/* ============================================================
   Nono — shared styles
   Palette: cool mist paper, deep slate-teal ink, periwinkle accent
   Type:    Bricolage Grotesque (display) / Hanken Grotesk (body)
            / IBM Plex Mono (numbers + labels)
   ============================================================ */

:root {
  --paper:       #eef1f1;
  --paper-2:     #e6eaea;
  --card:        #ffffff;
  --ink:         #17262a;
  --ink-soft:    #5b6a6e;
  --ink-faint:   #8b9799;
  --line:        #d8dfdf;
  --accent:      #6172d6;
  --accent-deep: #4a59ba;
  --accent-wash: #ecedfb;
  --danger:      #b4452f;
  --ok:          #2f7d5b;

  --r-card: 16px;
  --r-btn:  11px;
  --r-input:10px;

  --shadow-sm: 0 1px 2px rgba(23,38,42,.05), 0 2px 8px rgba(23,38,42,.04);
  --shadow-md: 0 4px 14px rgba(23,38,42,.07), 0 12px 30px rgba(23,38,42,.06);

  --maxw: 1080px;

  --font-display: 'Bricolage Grotesque', Georgia, serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle grain-free haze gradient at the top */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 480px;
  background: radial-gradient(120% 100% at 80% -10%, var(--accent-wash) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 0;
}
.brand .b {
  display: inline-block;
  filter: blur(2px);
  transition: filter .25s ease;
}
.site-head:hover .brand .b { filter: blur(0); }
.brand sup.b { font-size: .72em; position: relative; bottom: 0.4em; }
.site-foot .mark sup { font-size: .72em; }

nav.main { display: flex; gap: 4px; align-items: center; }
nav.main a {
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
nav.main a:hover { color: var(--ink); background: var(--paper-2); }
nav.main a[aria-current="page"] { color: var(--ink); background: var(--accent-wash); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 11px 18px; border-radius: var(--r-btn);
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-faint); }

/* ---------- generic type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-deep);
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.08; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.7rem); font-weight: 700; margin: .2em 0 .35em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
.lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--ink-soft); max-width: 42ch; }

/* numbers that get blurred */
.num {
  font-family: var(--font-mono);
  filter: blur(6px);
  transition: filter .3s ease;
  cursor: default;
  user-select: none;
}
.revealed .num,
.num:hover { filter: blur(0); }

/* ---------- hero ---------- */
.hero-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  display: block;
  margin-bottom: 20px;
}

.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero .actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero .fineprint { margin-top: 16px; font-size: 13px; color: var(--ink-faint); font-family: var(--font-mono); }

/* demo card */
.demo {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-md);
  padding: 22px;
}
.demo-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.demo-bar .label { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); letter-spacing: .08em; text-transform: uppercase; }
.toggle {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  border: 1px solid var(--line); background: var(--paper);
  padding: 6px 12px; border-radius: 999px; cursor: pointer; color: var(--ink-soft);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.toggle:hover { border-color: var(--accent); color: var(--accent-deep); }
.demo-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 4px; border-bottom: 1px dashed var(--line); gap: 16px;
}
.demo-row:last-child { border-bottom: 0; }
.demo-row .k { color: var(--ink-soft); font-size: 15px; }
.demo-row .v { font-size: 17px; font-weight: 600; }

/* ---------- sections ---------- */
section.block { padding: clamp(40px, 7vw, 80px) 0; }
.section-head { max-width: 50ch; margin-bottom: 40px; }
.section-head .eyebrow { display: block; margin-bottom: 12px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.step .n {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent-deep);
  letter-spacing: .1em; display: block; margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- prose pages (about / privacy) ---------- */
.prose { max-width: 68ch; padding: clamp(40px, 7vw, 72px) 0; }
.prose h1 { margin-bottom: .15em; }
.prose .updated { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); margin-bottom: 2.4em; }
.prose h2 { margin: 1.8em 0 .5em; }
.prose p, .prose li { color: var(--ink-soft); font-size: 16.5px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose strong { color: var(--ink); }
.callout {
  background: var(--accent-wash); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius: var(--r-card); padding: 18px 20px; margin: 1.8em 0; font-size: 15.5px; color: var(--ink);
}

/* ---------- inline citations ---------- */
.prose sup a {
  color: var(--accent-deep);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: .7em;
}
.prose sup a:hover { text-decoration: underline; }

.refs { padding-left: 1.4em; }
.refs li {
  font-size: 14.5px !important;
  margin: .7em 0;
  line-height: 1.55;
}

/* ---------- home-page stat band ---------- */
.reason-band {
  display: flex;
  gap: 28px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  max-width: 680px;
  margin: 0 auto;
}
.reason-stat {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}
.reason-body p { margin: 0 0 10px; color: var(--ink-soft); font-size: 16px; }
.reason-body a { font-size: 14.5px; font-weight: 600; }

/* ---------- support / form ---------- */
.support-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.faq { margin-top: 8px; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 16px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent-deep); font-size: 18px; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 2px; color: var(--ink-soft); font-size: 15.5px; }

.formcard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow-md); padding: 28px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 7px; }
.field .hint { font-weight: 400; color: var(--ink-faint); font-size: 13px; }
.input, .textarea, select.input {
  width: 100%; font-family: var(--font-body); font-size: 15.5px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-input);
  padding: 11px 13px; transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus, select.input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash); background: var(--card);
}
.textarea { resize: vertical; min-height: 130px; }

.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-block; padding: 7px 18px; border-radius: 999px; cursor: pointer;
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft); transition: background .15s, color .15s;
}
.seg input:checked + span { background: var(--accent); color: #fff; }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-wash); }

.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg { margin-top: 4px; font-size: 14.5px; min-height: 1.2em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--danger); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 36px 0; color: var(--ink-soft); }
.site-foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; }
.site-foot a:hover { color: var(--ink); }
.site-foot .mark { font-family: var(--font-display); font-weight: 700; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; gap: 36px; }
  nav.main a { padding: 7px 9px; font-size: 14px; }
}

@media (max-width: 540px) {
  .reason-band { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
