/* ============================================================
   marketing.css — public-facing pages (landing, signup).
   Authenticated dashboard pages use style.css instead.

   Visual language: security printing. Verdigris accent (banknote
   intaglio green), warm neutrals biased toward it, monospace for
   labels so the page reads as infrastructure rather than brochure.
   ============================================================ */

:root {
  --paper:     #FAFAF7;
  --surface:   #FFFFFF;
  --surface-2: #F1F4F2;
  --ink:       #15191A;
  --ink-2:     #3C4644;
  --muted:     #6A7371;
  --rule:      #DCE1DE;
  --accent:    #0F5F57;
  --accent-dk: #0A4640;
  --accent-bg: #E6F0ED;
  --warn:      #8A5A12;
  --warn-bg:   #FBF2E2;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.shell { max-width: 68rem; margin: 0 auto; padding: 0 var(--gutter); }

a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 0; border-bottom: 1px solid var(--rule); gap: 1rem;
}
.wordmark {
  font-weight: 680; font-size: 1.08rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: .55rem;
}
.wordmark .glyph {
  width: 1.35rem; height: 1.35rem; border-radius: 3px;
  background: var(--accent); display: inline-block; position: relative;
}
.wordmark .glyph::after {
  content: ""; position: absolute; inset: .32rem .3rem;
  border-left: 2px solid var(--paper); border-right: 2px solid var(--paper);
}
.topbar nav { display: flex; align-items: center; gap: .6rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: .62rem 1.15rem; border-radius: 5px;
  font-size: .92rem; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: .8rem 1.5rem; font-size: 1rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 1rem;
}
h1 {
  font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem);
  line-height: 1.02; letter-spacing: -.035em; font-weight: 680;
  margin: 0 0 1.25rem; text-wrap: balance;
}
h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  line-height: 1.15; letter-spacing: -.025em; font-weight: 670;
  margin: 0 0 .75rem; text-wrap: balance;
}
h3 { font-size: 1.02rem; font-weight: 640; margin: 0 0 .4rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; max-width: var(--measure); }
.lede { font-size: 1.16rem; color: var(--ink-2); max-width: 40rem; }

/* ---------- hero ---------- */
.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-note { font-family: var(--mono); font-size: .76rem; color: var(--muted); margin-top: 1.5rem; }

/* ---------- layered diagram ---------- */
.layers { display: grid; gap: .6rem; margin: 2.5rem 0 0; }
.layer {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.25rem;
  align-items: baseline; padding: 1.1rem 1.25rem;
  border: 1px solid var(--rule); border-radius: 6px; background: var(--surface);
}
.layer-you { border-color: var(--accent); background: var(--accent-bg); }
.layer-k {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .11em;
  text-transform: uppercase; color: var(--muted);
}
.layer-you .layer-k { color: var(--accent); }
.layer-v { font-weight: 620; }
.layer-d { color: var(--ink-2); font-size: .92rem; display: block; margin-top: .15rem; max-width: var(--measure); }
@media (max-width: 640px) { .layer { grid-template-columns: 1fr; gap: .25rem; } }

/* ---------- sections ---------- */
.band { padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--rule); }
.section-head { margin-bottom: 2rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }

.card { border: 1px solid var(--rule); border-radius: 6px; padding: 1.4rem; background: var(--surface); }

/* The lead capability spans the grid; on the single-column layout the span
   is a no-op, so no separate mobile rule is needed. */
.card-wide { grid-column: 1 / -1; }

/* Secondary line inside a card: a caveat or eligibility note, set quieter
   than the body copy so it reads as a qualifier rather than a feature. */
.card-note {
  margin-top: .7rem; padding-top: .7rem;
  border-top: 1px solid var(--rule);
  font-size: .85rem; color: var(--muted);
}

/* Inline qualifier on a heading, e.g. "where you qualify". */
.tag {
  display: inline-block; vertical-align: middle; margin-left: .45rem;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--rule); border-radius: 999px; padding: .18rem .5rem;
}
.card .num {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em;
  color: var(--accent); display: block; margin-bottom: .6rem;
}
.card p { font-size: .93rem; color: var(--ink-2); margin: 0; }

.callout {
  border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  background: var(--accent-bg); border-radius: 5px; padding: 1.15rem 1.35rem;
  max-width: var(--measure);
}
.callout.warn { border-left-color: var(--warn); background: var(--warn-bg); }
.callout p:last-child { margin-bottom: 0; }
.callout-label {
  display: block; font-family: var(--mono); font-size: .67rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: .4rem;
}
.callout.warn .callout-label { color: var(--warn); }

ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; max-width: var(--measure); }
ul.ticks li::before {
  content: ""; position: absolute; left: .1rem; top: .55em;
  width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent);
}

/* ---------- auth card (signup / login) ---------- */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 3rem var(--gutter); }
.auth-card {
  width: 100%; max-width: 30rem; background: var(--surface);
  border: 1px solid var(--rule); border-radius: 8px; padding: 2.25rem;
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink-2); }
.field input {
  width: 100%; padding: .68rem .8rem; font-size: .95rem; font-family: inherit;
  border: 1px solid var(--rule); border-radius: 5px;
  background: var(--paper); color: var(--ink);
}
.field input:focus { border-color: var(--accent); }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }

.alert { padding: .8rem 1rem; border-radius: 5px; font-size: .9rem; margin-bottom: 1.25rem; }
.alert-error { background: #FAEDEB; border: 1px solid #E4BDB7; color: #7C2C24; }
.alert-ok    { background: var(--accent-bg); border: 1px solid #B9D6CE; color: var(--accent-dk); }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--rule); padding: 2.5rem 0 3.5rem;
  font-size: .87rem; color: var(--muted);
}
.site-foot .cols { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; }
.site-foot a { color: var(--ink-2); }
.legal { font-size: .8rem; max-width: 46rem; margin-top: 1.5rem; line-height: 1.55; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:     #0F1312;
    --surface:   #161B1A;
    --surface-2: #1D2422;
    --ink:       #E8EDEB;
    --ink-2:     #BBC5C2;
    --muted:     #8A9693;
    --rule:      #293230;
    --accent:    #5FBFB0;
    --accent-dk: #7FD0C2;
    --accent-bg: #132825;
    --warn:      #D9A855;
    --warn-bg:   #231D0F;
  }
  :root:not([data-theme="light"]) .btn-primary { color: #08201D; }
  :root:not([data-theme="light"]) .alert-error { background: #2A1614; border-color: #5A2F29; color: #E7A79F; }
  :root:not([data-theme="light"]) .alert-ok { background: var(--accent-bg); border-color: #2C4A45; color: var(--accent-dk); }
  :root:not([data-theme="light"]) .wordmark .glyph::after { border-color: var(--paper); }
}
