﻿/* SnagTrace landing page, "Site Notes" theme.
   Tokens mirror app-snag-trace/src/theme.ts; see DESIGN_GUIDELINES.md (repo root). */

/* The wordmark, every social image and the app icons are all Inter, while the site
   ran on whatever sans the device happened to have. That mismatch is most of why
   the pages read as generic. Self-hosted rather than fetched from Google, because
   cookies.html states there are no third-party requests and that has to stay true.
   One 51KB variable file covers 100 to 900, so no separate weights to load. */
@font-face {
    font-family: "InterVar";
    src: url("inter-var.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Canvas & surfaces */
    --bg: #F6F7F9;
    --surface: #FFFFFF;
    --surface-alt: #EDEFF2;
    --line: #E7E9EC;

    /* Text */
    --ink: #16181D;
    --ink-mid: #5B6472;
    --ink-faint: #667080;   /* was #9AA3AF: 2.4:1, below AA, and it carries real copy */

    /* Brand accent.
       #0E8A6B is the brand green and stays on the mark, borders and filled shapes,
       where the 3:1 rule for graphics applies. It only reaches 4.3:1 against white,
       so anything that is *text* uses --accent-dark instead, which clears AA on
       every surface here (6.2:1 on white, 5.8:1 on the page, 5.4:1 on the soft
       green). Nobody sees the difference; a screen in daylight does. */
    --accent: #0E8A6B;
    --accent-dark: #0B6E56;
    --accent-deep: #084C3B;
    --accent-soft: #E5F3EE;

    /* Status */
    --open: #A85307;        /* was #C2620A: 3.7:1 on its own pill */
    --open-soft: #FBF0E1;
    --done: #0B6E56;
    --done-soft: #E5F3EE;

    /* Radii */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-full: 999px;

    --shadow-card: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-lift: 0 6px 24px rgba(15, 23, 42, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Anchored sections stop below the sticky nav instead of underneath it */
section[id] { scroll-margin-top: 76px; }

body {
    font-family: "InterVar", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-optical-sizing: auto;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Nav ---------- */
.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(246, 247, 249, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo {
    display: flex; align-items: center; gap: 8px;
    font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none;
}
.logo svg { width: 22px; height: 22px; color: var(--accent); }
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a {
    color: var(--ink-mid); text-decoration: none; font-weight: 600; font-size: 14px;
}
.nav-links a:hover { color: var(--ink); }

/* ---------- Buttons & pills ---------- */
.btn {
    display: inline-block;
    padding: 13px 22px;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s ease, opacity 0.15s ease;
}
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-primary { background: var(--accent-dark); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { background: var(--surface-alt); }

.pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px;
    border-radius: var(--r-full);
    font-size: 13px; font-weight: 600;
}
.pill-accent { background: var(--accent-soft); color: var(--accent-dark); border: 1px solid var(--accent); }

/* ---------- Hero ---------- */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
    padding-top: 64px;
    padding-bottom: 48px;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}
.hero h1 em { font-style: normal; color: var(--accent-dark); }
.lede { font-size: 17px; color: var(--ink-mid); max-width: 46ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { font-size: 13px; font-weight: 600; color: var(--ink-faint); }

/* ---------- Phone mockup ---------- */
.hero-phone { display: flex; justify-content: center; }
.phone {
    position: relative;
    width: 290px;
    padding: 18px 16px 70px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 36px;
    box-shadow: var(--shadow-lift);
    display: flex; flex-direction: column; gap: 10px;
}
.phone-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 6px; }
.phone-title { font-weight: 800; font-size: 20px; }
.phone-avatar {
    width: 28px; height: 28px; border-radius: var(--r-full);
    background: var(--accent-soft); border: 1px solid var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: var(--accent-dark);
}
.phone-progress { display: flex; flex-direction: column; gap: 5px; padding: 0 4px 4px; }
.phone-progress .bar {
    height: 6px; border-radius: var(--r-full); background: var(--surface-alt); overflow: hidden;
}
.phone-progress .fill { width: 40%; height: 100%; background: var(--accent); border-radius: var(--r-full); }
.phone-progress span { font-size: 11.5px; font-weight: 500; color: var(--ink-mid); }
.phone-card {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 11px;
    box-shadow: var(--shadow-card);
}
.phone-card .lines { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.phone-card b { font-size: 12.5px; font-weight: 600; line-height: 1.35; }
/* The meta line is the longest string in the mock. Let it shrink rather than push
   the status pill off the edge of the phone. */
.phone-card i { font-style: normal; font-size: 11px; color: var(--ink-mid);
                white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10.5px; font-weight: 700;
    padding: 3px 8px; border-radius: var(--r-full);
    flex-shrink: 0;
}
.status .dot { width: 5px; height: 5px; border-radius: var(--r-full); background: currentColor; }
.status.open { background: var(--open-soft); color: var(--open); }
.status.done { background: var(--done-soft); color: var(--done); }
.phone-fab {
    position: absolute; right: 18px; bottom: 18px;
    width: 48px; height: 48px; border-radius: var(--r-full);
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.18);
}
/* SVG plus instead of a text "+": glyphs sit on a text baseline so they
   centre visually low; the icon's geometry centres exactly. */
.phone-fab svg { width: 22px; height: 22px; display: block; }

/* ---------- Sections ---------- */
.section { padding: 72px 20px; }
.container.section { padding-left: 20px; padding-right: 20px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker {
    display: block;
    font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 8px;
}
h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 28px; }

.grid { display: grid; gap: 16px; }
.pricing { grid-template-columns: repeat(2, minmax(0, 380px)); }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
}
.section-alt .card { background: var(--bg); }
.card h3 { font-size: 16px; font-weight: 700; margin: 12px 0 6px; }
.card p { font-size: 14px; color: var(--ink-mid); }

/* ---------- Feature schedule ---------- */
/* Ruled rows rather than cards: the product's own output is a numbered schedule,
   so the section is set as one. Three columns on desktop, reference / name /
   detail, which is the shape of the exported report. */
.schedule { list-style: none; border-top: 1px solid var(--line); }
.schedule-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 240px) minmax(0, 1fr);
    gap: 8px 28px;
    align-items: baseline;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.schedule-ref {
    font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
    color: var(--accent-dark); font-variant-numeric: tabular-nums;
}
.schedule-row h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.schedule-row p { font-size: 15px; color: var(--ink-mid); }

/* ---------- Flow ---------- */
/* The three words are the brand line, so they are set as one rather than as three
   more card headings. Order carries the sequence, so there are no numbers. */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.flow-step { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.flow-word {
    font-size: clamp(28px, 3.2vw, 38px); font-weight: 800;
    letter-spacing: -0.03em; line-height: 1.05; color: var(--ink);
}
.flow-rule { display: block; width: 48px; height: 3px; border-radius: 2px; background: var(--accent); }
.flow-step p { font-size: 15px; color: var(--ink-mid); }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.price-card.featured { border-color: var(--accent); box-shadow: var(--shadow-lift); }
/* `.card p` (0,1,1) beat a bare `.price` (0,1,0), so the price rendered at body
   size and the plan cards had no focal point at all. Scoped to win. */
.price-card .price { font-size: 34px; font-weight: 800; line-height: 1.15; color: var(--ink); }
.price-card .price span { font-size: 14px; font-weight: 600; color: var(--ink-mid); }
/* "Free for founding members" sits where a number would. The qualifier drops to its
   own line so the word carrying the offer keeps the weight of a price. */
.price-qual { display: block; }
.price-card ul { list-style: none; margin: 6px 0 16px; display: flex; flex-direction: column; gap: 8px; }
.price-card li { font-size: 14px; color: var(--ink-mid); padding-left: 24px; position: relative; }
.price-card li::before {
    content: "";
    position: absolute; left: 0; top: 4px;
    width: 14px; height: 14px;
    background: var(--accent-soft);
    border-radius: var(--r-full);
}
.price-card li::after {
    content: "";
    position: absolute; left: 4px; top: 9px;
    width: 6px; height: 3px;
    border-left: 1.5px solid var(--accent);
    border-bottom: 1.5px solid var(--accent);
    transform: rotate(-45deg);
}
.price-card .btn { width: 100%; margin-top: auto; }
.small-print { margin-top: 16px; font-size: 12.5px; color: var(--ink-faint); }

/* ---------- CTA ---------- */
/* The page's one moment of contrast. Everything above is light cards on a light
   ground, so the close is a solid green panel: it reads as an ending rather than
   another section, and it is the same green world as the Facebook cover. */
.cta-panel {
    background: var(--accent-dark);
    border-radius: 28px;
    padding: 56px 40px 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-shadow: 0 18px 40px rgba(11, 110, 86, 0.18);
}
.cta-kicker {
    font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: #C6E8DB;
}
.cta-panel h2 { color: #fff; margin-bottom: 0; text-wrap: balance; }
.cta-lede { color: #CFE9E0; font-size: 17px; max-width: 46ch; }

/* Inverted button: white on the green panel, green label. 6.2:1 both ways. */
.btn-invert {
    background: #fff; color: var(--accent-dark);
    margin-top: 10px; padding: 15px 34px; font-size: 16px;
}
.btn-invert:hover { background: #EAF6F1; }

.cta-hint { font-size: 13px; color: #C6E8DB; }

/* The second route, given its own rule rather than trailing off the button. */
.cta-alt {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    margin-top: 18px; padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    width: 100%; max-width: 340px;
}
.cta-or {
    font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; color: #C6E8DB;
}
.mail-chip {
    display: inline-flex; align-items: center; gap: 10px;
    font: inherit; font-size: 15px; font-weight: 700;
    color: #fff; background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--r-full);
    padding: 10px 18px; cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.mail-chip:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.45); }
.mail-chip-icon { width: 15px; height: 15px; flex: none; opacity: 0.75; }
.mail-chip[data-copied] { background: #fff; color: var(--accent-dark); border-color: #fff; }
.mail-chip[data-copied] .mail-chip-icon { display: none; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Footer ---------- */
.footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 28px; padding-bottom: 36px;
    font-size: 13px; color: var(--ink-faint);
}
.logo-sm { font-size: 15px; }
.logo-sm svg { width: 18px; height: 18px; }
/* The footer is the site's other brand moment. The tagline lived only in the
   hero, so every page below the fold ended on a copyright line and nothing else. */
.footer-tagline { font-weight: 600; color: var(--ink-mid); }

/* ---------- Focus ---------- */
/* There was no focus style at all. The default ring is close to invisible on the
   filled green button, which is the one thing on the page you want to activate. */
a:focus-visible, button:focus-visible {
    outline: 3px solid var(--accent-dark);
    outline-offset: 3px;
    border-radius: 6px;
}
.btn-primary:focus-visible { outline-color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
}

@media (max-width: 720px) {
    /* The links used to be hidden outright below this width, which left phones
       with no route to the guides except the footer of a very long page. Almost
       all the traffic is mobile, so the nav wraps to a second row instead.

       That row was justified across the full width, which spread four words to
       the edges of the screen with uneven gaps between them and read as floating
       text rather than a menu. It is now a left-aligned sub-bar with an even
       rhythm and a hairline separating it from the logo row, so it looks like a
       deliberate second tier. It scrolls sideways rather than wrapping again if
       the labels ever outgrow a narrow phone. */
    .nav { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 0;
           row-gap: 0; column-gap: 14px; }
    .nav-links {
        order: 3; width: 100%; margin: 12px -20px 0; padding: 9px 20px 10px;
        justify-content: flex-start; gap: 20px;
        border-top: 1px solid var(--line);
        overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links a { white-space: nowrap; }
    .nav > .btn { margin-left: auto; }
    /* The wrapped nav is ~96px, so the 76px default would drop an anchored
       section's heading behind it. */
    section[id] { scroll-margin-top: 108px; }
    .hero { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; gap: 40px; }
    .cta-panel { padding: 40px 22px 36px; border-radius: 22px; }
    .mail-chip { font-size: 14px; padding: 10px 15px; max-width: 100%; }
    .mail-chip-text { overflow: hidden; text-overflow: ellipsis; }
    .pricing { grid-template-columns: 1fr; }
    /* Reference and name share the top line, detail runs full width beneath. */
    .schedule-row { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; padding: 18px 0; }
    .schedule-row p { grid-column: 1 / -1; }
    .flow { grid-template-columns: 1fr; gap: 32px; }
    .section { padding: 56px 20px; }
    .footer { flex-direction: column; gap: 10px; }
}

.footer a { color: var(--ink-faint); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---- Legal pages (privacy.html / terms.html) ---- */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.legal .updated { font-size: 13px; font-weight: 600; color: var(--ink-faint); margin-bottom: 32px; }
.legal h2 { font-size: 20px; margin: 36px 0 10px; }
.legal p, .legal li { font-size: 15px; color: var(--ink-mid); line-height: 1.65; }
.legal p { margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.legal a:hover { text-decoration: underline; }
/* `.legal a` beats `.btn-primary` on specificity, so every call-to-action button
   inside a guide or help page was rendering its label in accent green on an
   accent green background: an invisible button on all ten of them. */
.legal a.btn-primary { color: #fff; }
.legal a.btn-secondary { color: var(--ink); }
.legal a.btn:hover { text-decoration: none; }


/* Draft watermark for legal pages pending solicitor review (launch item 7).
   Remove the .draft-banner elements once review is complete. */
.draft-banner {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    color: #92400E;
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 28px;
}
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line, #E5E7EB); color: var(--ink-mid); line-height: 1.5; }
.legal th { color: var(--ink); font-weight: 700; }

/* ---- Skip link ---------------------------------------------------------
   Keyboard users land on the nav on every page; this gives them one tab to
   jump past it. Off-screen until focused, then it sits over the header. */
.skip-link {
    position: absolute; left: 20px; top: -60px; z-index: 100;
    padding: 10px 16px; border-radius: 0 0 10px 10px;
    background: var(--accent-dark); color: #fff;
    font-size: 14px; font-weight: 700; text-decoration: none;
    transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* ---- Reduced motion ----------------------------------------------------
   Nothing here animates much today, but the rule belongs in place before
   anything does. Kept last so it wins. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
