/*
  Hazy marketing surfaces — shared CSS for landing / pricing / privacy
  / terms. JS-free, self-contained, no build step.

  CSS variables follow the same names as the SPA's style.css so a
  future shared-theme palette stays trivial to keep in sync.
*/

:root {
    --bg: #fbfbfd;
    --surface: #ffffff;
    --ink: #1a1f2c;
    --ink-muted: #5a6478;
    /* Accent pulled from the favicon's bottom-left teal — same hue
       the SPA uses. --accent-ink stays white on the light accent;
       darkens to the bg tone on the lighter dark-mode accent so the
       CTA button's text reads. */
    --accent: #168a8e;
    --accent-ink: #ffffff;
    --border: #e2e6ee;
    --shadow-soft: 0 6px 20px rgba(20, 32, 46, .07);
    --radius: 12px;
    --max-w: 1100px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0e1622;
        --surface: #14202e;
        --ink: #e9ecf3;
        --ink-muted: #95a0b5;
        --accent: #4ec5cf;
        --accent-ink: #0e1622;
        --border: #233347;
        --shadow-soft: 0 6px 20px rgba(0, 0, 0, .35);
    }
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover { text-decoration: underline; }

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .92em;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    padding: .1em .35em;
    border-radius: 4px;
}

/* ---------- Topbar ---------- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1.1rem 1.25rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.15rem;
}
.brand:hover { text-decoration: none; }
.brand img {
    width: 28px;
    height: 28px;
}
.topbar-nav {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    font-size: .95rem;
}
.topbar-nav a {
    color: var(--ink-muted);
}
.topbar-nav a:hover {
    color: var(--ink);
    text-decoration: none;
}
.topbar-nav a.cta {
    background: var(--accent);
    color: var(--accent-ink);
    padding: .45rem .9rem;
    border-radius: 999px;
    font-weight: 600;
}
.topbar-nav a.cta:hover { text-decoration: none; opacity: .92; }
.topbar-nav a[aria-current="page"] {
    color: var(--ink);
    font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
    padding: 4rem 1.25rem 2.5rem;
}
.hero-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.hero-tag {
    display: inline-block;
    margin: 0 0 .9rem;
    padding: .25rem .7rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink-muted);
    background: var(--surface);
}
.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -.02em;
    font-weight: 800;
}
.hero-lede {
    margin: 0 auto 1.7rem;
    max-width: 640px;
    color: var(--ink-muted);
    font-size: 1.08rem;
}
.hero-cta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
    margin: 1rem 0 0;
}
.hero-foot {
    margin: 1.6rem 0 0;
    color: var(--ink-muted);
    font-size: .9rem;
}

.primary {
    display: inline-block;
    background: var(--accent);
    color: var(--accent-ink);
    padding: .7rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
}
.primary:hover { text-decoration: none; opacity: .92; }
.ghost {
    display: inline-block;
    background: transparent;
    color: var(--ink);
    padding: .7rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 1rem;
}
.ghost:hover { text-decoration: none; background: var(--surface); }

/* ---------- Bands ---------- */
.band {
    padding: 3rem 1.25rem;
}
.band--alt {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.band-head {
    max-width: var(--max-w);
    margin: 0 auto 2rem;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    text-align: center;
    letter-spacing: -.01em;
}

/* ---------- Cards ---------- */
.cards {
    list-style: none;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0;
    display: grid;
    gap: 1rem;
}
.cards.two   { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    box-shadow: var(--shadow-soft);
}
.card h3 {
    margin: 0 0 .55rem;
    font-size: 1.1rem;
}
.card p {
    margin: 0;
    color: var(--ink-muted);
    font-size: .98rem;
}

/* ---------- Steps ---------- */
.steps {
    list-style: none;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0;
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    counter-reset: step;
}
.steps li {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
}
.step-n {
    display: inline-block;
    width: 1.9rem;
    height: 1.9rem;
    line-height: 1.9rem;
    text-align: center;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
    margin-bottom: .55rem;
}
.steps h3 {
    margin: 0 0 .35rem;
    font-size: 1.05rem;
}
.steps p {
    margin: 0;
    color: var(--ink-muted);
    font-size: .96rem;
}

/* ---------- Closing CTA ---------- */
.closing {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.closing h2 {
    margin: 0 0 .9rem;
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    letter-spacing: -.01em;
}
.closing p {
    margin: 0 0 1.5rem;
    color: var(--ink-muted);
}

/* ---------- Pricing ---------- */
.cards--pricing { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.price-card {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}
.price-card--featured {
    border-color: var(--accent);
    box-shadow: 0 8px 26px color-mix(in srgb, var(--accent) 24%, transparent);
}
.price {
    margin: 0;
}
.price-num {
    font-size: 1.6rem;
    font-weight: 800;
}
.price-features {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--ink-muted);
    font-size: .96rem;
}
.price-features li {
    padding: .4rem 0;
    border-top: 1px dashed var(--border);
}
.price-features li:first-child { border-top: 0; }
.price-card .primary,
.price-card .ghost {
    align-self: flex-start;
    margin-top: .4rem;
}

/* ---------- Legal pages ---------- */
.legal-doc {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}
.legal-doc h1 {
    margin: 0 0 .35rem;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    letter-spacing: -.01em;
}
.legal-doc h2 {
    margin: 2rem 0 .7rem;
    font-size: 1.15rem;
}
.legal-doc p, .legal-doc ul { color: var(--ink-muted); }
.legal-doc ul { padding-left: 1.4rem; }
.legal-doc li { margin: .25rem 0; }
.legal-doc .muted { font-size: .9rem; }

/* "draft template — needs lawyer review" banner. Replaced with an
   empty string by the server when HAZY_LEGAL_REVIEWED=1. */
.legal-banner {
    margin: 0 0 1.5rem;
    padding: .9rem 1rem;
    border: 1px solid #c08c00;
    background: #fff4d6;
    color: #5a4400;
    border-radius: 8px;
    font-size: .92rem;
}
@media (prefers-color-scheme: dark) {
    .legal-banner {
        background: #3a2e10;
        color: #ffe49a;
        border-color: #8a6a00;
    }
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 1.25rem 2.5rem;
    text-align: center;
}
.footer-line {
    margin: 0 0 .4rem;
    color: var(--ink-muted);
    font-size: .9rem;
}
.footer-line a { color: var(--ink-muted); }
.footer-line a:hover { color: var(--ink); }
.footer-line--muted { font-size: .8rem; opacity: .7; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
    .hero { padding-top: 2.5rem; }
    .topbar-nav { gap: .8rem; font-size: .9rem; }
    .topbar-nav a.cta { padding: .35rem .75rem; }
}
