/* DravyaOS — landing site
   Pure static CSS. No build step, no framework, no shared tooling with the app.
   Direction: "the chemist's ledger, computerized." Ink on warm paper, monospace
   data, a keycap motif for the keyboard-first story. One surgical Rx-red accent. */

:root {
  /* paper & ink (monochrome base) */
  --paper:    #f5f4f0;
  --paper-2:  #ecebe5;
  --card:     #fffefb;
  --ink:      #15151a;
  --ink-2:    #33333b;
  --muted:    #6c6c72;
  --faint:    #9a9a9f;
  --line:     #e3e1d8;
  --line-2:   #d2cfc3;
  --accent:   #15151a;      /* primary = ink */
  --accent-soft: rgba(21,21,26,0.06);

  /* surgical domain accent — Rx / Schedule-H only */
  --rx:       #b23b2b;
  --rx-soft:  rgba(178,59,43,0.10);

  /* dark band */
  --ink-bg:   #16161b;
  --on-ink:   #f3f2ee;
  --on-ink-muted: #a4a3a0;

  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", "Consolas", monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1140px;
  --shadow: 0 1px 2px rgba(21,21,26,0.04), 0 10px 28px rgba(21,21,26,0.07);
  --shadow-lg: 0 30px 70px rgba(21,21,26,0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; font-weight: 600; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); }

/* ledger eyebrow: hairline + mono label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 11.5px; font-weight: 500; color: var(--muted); margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--line-2); }
.eyebrow .dot { display: none; }

/* reveal-on-scroll (visible without JS) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- Keycap motif (the signature) ---------- */
.kbd-cap {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 13px; line-height: 1;
  min-width: 30px; height: 30px; padding: 0 9px;
  color: var(--ink); background: var(--card);
  border: 1px solid var(--line-2); border-bottom-width: 3px; border-radius: 8px;
}
.kbd-cap.sm { min-width: 22px; height: 22px; font-size: 11px; border-bottom-width: 2px; padding: 0 6px; border-radius: 6px; }
.kbd-cap.dark { color: var(--paper); background: var(--ink); border-color: #000; }
.kbd-cap.press { transition: transform .08s ease, border-bottom-width .08s ease; }
.kbd-cap.press.is-down { transform: translateY(2px); border-bottom-width: 1px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,244,240,0.78); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(245,244,240,0.94); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px;
  font-family: var(--font-mono); font-weight: 700; font-size: 16px;
  color: var(--paper); background: var(--ink); border: 1px solid #000; border-bottom-width: 3px;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--muted); padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { color: var(--ink); background: var(--paper-2); text-decoration: none; }
.nav-links a.active, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { margin-left: 6px; }

.nav-toggle { display: none; appearance: none; background: none; border: 1px solid var(--line-2); border-radius: 8px; width: 40px; height: 40px; cursor: pointer; padding: 0; color: var(--ink); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; margin: 0 auto; position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body);
  font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 11px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.btn-primary:hover { background: #000; color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 8px 15px; font-size: 14px; }
.btn-on-ink { background: var(--paper); color: var(--ink); }
.btn-on-ink:hover { background: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 60px; }
.hero-inner { display: grid; grid-template-columns: minmax(0,1.04fr) minmax(0,0.96fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.02; font-weight: 600; margin: 0 0 22px; max-width: 15ch; }
/* underline via background so it follows line wraps (nowrap would overflow narrow screens) */
.hero h1 em {
  font-style: normal;
  background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 100% / 100% 0.13em;
  padding-bottom: 0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero .lead { color: var(--muted); font-size: clamp(17px, 2.1vw, 20px); margin: 0 0 28px; max-width: 52ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hint-row { margin-top: 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.hint-row .pair { display: inline-flex; align-items: center; gap: 7px; }
.hint-row .sep { color: var(--line-2); }

/* ---------- Receipt (hero signature) ---------- */
.receipt {
  background: var(--card); border: 1px solid var(--line-2); border-radius: 16px 16px 0 0;
  box-shadow: var(--shadow-lg); font-family: var(--font-mono); position: relative; overflow: hidden;
}
.receipt-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 14px; border-bottom: 1px dashed var(--line-2); }
.receipt-head .r-shop { font-weight: 700; font-size: 14px; letter-spacing: 0.06em; }
.receipt-head .r-meta { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.receipt-head .rx { color: var(--rx); border: 1px solid var(--rx); border-radius: 5px; padding: 1px 5px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.04em; }

.receipt-search { display: flex; align-items: center; gap: 8px; padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.receipt-search .r-prompt { color: var(--faint); }
.receipt-search .r-query { color: var(--ink); font-weight: 600; }
.receipt-search .r-caret { width: 8px; height: 17px; background: var(--ink); display: inline-block; animation: blink 1.05s step-end infinite; vertical-align: middle; }
.receipt-search .kbd-cap { margin-left: auto; }
@keyframes blink { 50% { opacity: 0; } }

.receipt-lines { padding: 6px 20px 4px; min-height: 132px; }
.r-line { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px dotted var(--line); font-size: 13px; }
.r-line .r-name { color: var(--ink); }
.r-line .r-name small { color: var(--muted); font-size: 10.5px; display: block; }
.r-line .r-q { color: var(--muted); font-size: 12px; }
.r-line .r-amt { font-variant-numeric: tabular-nums; font-weight: 600; }
.r-line.enter { animation: drop .26s ease both; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.r-line.is-hidden { display: none; }

.receipt-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--ink); color: var(--paper); }
.receipt-foot .k { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-ink-muted); }
.receipt-foot .r-total { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.receipt-perf { height: 13px; background: radial-gradient(circle at 8px 13px, transparent 7px, var(--card) 7.5px) repeat-x; background-size: 16px 13px; }

/* ---------- Stats / ledger strip ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat .big { font-family: var(--font-mono); font-size: 27px; font-weight: 600; letter-spacing: -0.02em; }
.stat .lbl { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 60ch; margin: 0 0 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 14px; line-height: 1.08; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.alt { background: var(--paper-2); }

/* ---------- Feature split rows ---------- */
.feature { padding: 76px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: none; }
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.08fr); gap: 60px; align-items: center; }
/* let grid items shrink below their content's min width (prevents wide tables/
   carousels from forcing horizontal overflow on narrow screens) */
.split > *, .hero-inner > * { min-width: 0; }
.split.reverse .feature-copy { order: 2; }
.split.reverse .feature-visual { order: 1; }

.feature-key { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.feature-key .lbl { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.feature-copy h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 14px; line-height: 1.1; }
.feature-copy .desc { color: var(--muted); font-size: 17px; margin: 0 0 24px; }

.bullets { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.bullets li { position: relative; padding-left: 28px; font-size: 15.5px; }
.bullets li strong { font-weight: 600; }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 11px; height: 11px;
  border: 1.5px solid var(--ink); border-radius: 3px;
}
.bullets li::after { content: ""; position: absolute; left: 3.5px; top: 11.5px; width: 4px; height: 4px; background: var(--ink); border-radius: 1px; }
.text-link { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; }
.text-link::after { content: "→"; transition: transform .15s ease; }
.text-link:hover { text-decoration: none; border-color: var(--ink); }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- App mockups ---------- */
/* Real-app screenshots */
.shots { display: grid; gap: 22px; max-width: 1000px; margin: 0 auto; }
.shot { border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; background: var(--card); }
.shot img { display: block; width: 100%; height: auto; }
.shot-cap { font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding: 11px 15px; border-top: 1px solid var(--line); background: var(--paper-2); }
.shots-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .shots-row { grid-template-columns: 1fr; } }

.mock { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-2); }
.mock-title { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.mock-body { display: flex; min-height: 296px; }
.mock-side { flex: 0 0 130px; background: var(--ink); color: var(--on-ink-muted); padding: 14px 10px; font-family: var(--font-mono); }
.mock-side .org { color: #fff; font-weight: 600; font-size: 12px; padding: 6px 10px; margin-bottom: 8px; }
.mock-side .item { font-size: 12px; padding: 7px 10px; border-radius: 7px; }
.mock-side .item.on { background: rgba(255,255,255,0.12); color: #fff; }
.mock-main { flex: 1; padding: 16px; min-width: 0; }
.mock-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mock-h h4 { margin: 0; font-size: 14px; }
.mock-h .chip { font-family: var(--font-mono); font-size: 11px; color: var(--paper); background: var(--ink); padding: 4px 9px; border-radius: 6px; }

.mrow { display: grid; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 7px; font-size: 12px; border: 1px solid var(--line); font-family: var(--font-mono); }
.mrow + .mrow { margin-top: 6px; }
.mrow .name { font-weight: 600; font-family: var(--font-body); }
.mrow .sub { color: var(--muted); font-size: 11px; }
.mrow .num { text-align: right; font-variant-numeric: tabular-nums; }
.mrow.head { background: var(--paper-2); border-color: transparent; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.mrow.cursor { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.badge { display: inline-block; font-family: var(--font-mono); font-size: 10px; font-weight: 500; padding: 2px 7px; border-radius: 5px; }
.badge.ok { color: var(--paper); background: var(--ink); }
.badge.warn { color: var(--rx); border: 1px solid var(--rx); }
.badge.line { color: var(--muted); border: 1px solid var(--line-2); }

.totbar { margin-top: 12px; padding: 12px 14px; background: var(--ink); color: var(--paper); border-radius: 9px; display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); }
.totbar .k { color: var(--on-ink-muted); font-size: 12px; }
.totbar .v { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }

.chart { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding: 8px 4px 0; }
.chart .bar { flex: 1; background: var(--paper-2); border: 1px solid var(--line-2); border-bottom: none; border-radius: 5px 5px 0 0; position: relative; }
.chart .bar.hi { background: var(--ink); border-color: var(--ink); }
.chart .bar span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-family: var(--font-mono); font-size: 10px; color: var(--faint); }
.kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px; }
.kpi { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
.kpi .k { font-family: var(--font-mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.kpi .v { font-family: var(--font-mono); font-size: 18px; font-weight: 600; }

.palette { padding: 16px; font-family: var(--font-mono); }
.palette .search { border: 1px solid var(--line-2); border-radius: 9px; padding: 11px 13px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.palette .opt { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; border-radius: 7px; font-size: 13px; margin-top: 7px; }
.palette .opt.on { background: var(--accent-soft); }

.invoice { background: #fff; padding: 18px 20px; font-family: var(--font-mono); font-size: 12px; }
.invoice .inv-top { display: flex; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 10px; }
.invoice .inv-top .shop { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.invoice .inv-top .meta { text-align: right; color: var(--muted); font-size: 10.5px; }
.invoice table { width: 100%; border-collapse: collapse; }
.invoice th { text-align: left; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); border-bottom: 1px solid var(--line); padding: 5px 4px; }
.invoice td { padding: 6px 4px; border-bottom: 1px solid var(--paper-2); font-variant-numeric: tabular-nums; }
.invoice td.r, .invoice th.r { text-align: right; }
.invoice .inv-tot { display: flex; justify-content: flex-end; margin-top: 10px; }
.invoice .inv-tot table { width: auto; min-width: 200px; }
.invoice .inv-tot td { border: none; padding: 3px 4px; }
.invoice .inv-tot .grand td { border-top: 1.5px solid var(--ink); font-weight: 700; font-size: 13px; padding-top: 6px; }
.invoice.thermal { max-width: 232px; margin: 0 auto; }
.invoice.thermal .inv-top { display: block; text-align: center; }
.invoice.thermal .inv-top .meta { text-align: center; }

.syncbox { padding: 16px; font-family: var(--font-mono); flex: 1; }
.sync-status { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 12px; }
.sync-status .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 0 rgba(21,21,26,0.4); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(21,21,26,0.32)} 70%{box-shadow:0 0 0 9px rgba(21,21,26,0)} 100%{box-shadow:0 0 0 0 rgba(21,21,26,0)} }
.sync-status .t { font-weight: 600; font-size: 13px; }
.sync-status .s { font-size: 11px; color: var(--muted); }
.sync-line { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; font-size: 12px; }
.sync-line + .sync-line { border-top: 1px solid var(--paper-2); }
.sync-line .ico { font-weight: 700; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding: 4px; margin: -4px; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { scroll-snap-align: center; flex: 0 0 100%; min-width: 0; }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.carousel-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; font-size: 17px; line-height: 1; display: grid; place-items: center; transition: border-color .15s, transform .1s; }
.carousel-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.carousel-btn:disabled { opacity: .35; cursor: default; transform: none; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; cursor: pointer; background: var(--line-2); transition: width .2s, background .2s; }
.carousel-dots button.on { width: 22px; border-radius: 999px; background: var(--ink); }
.carousel-cap { text-align: center; color: var(--muted); font-family: var(--font-mono); font-size: 12.5px; margin-top: 14px; min-height: 18px; }

/* ---------- Card grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.icon-mono { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; background: var(--paper-2); color: var(--ink); margin-bottom: 16px; }
.icon-mono svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- AI dark band ---------- */
.band { background: var(--ink-bg); color: var(--on-ink); border-radius: 22px; padding: 64px 56px; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(620px 320px at 84% -5%, rgba(255,255,255,0.07), transparent 70%); pointer-events: none; }
.band .eyebrow { color: var(--on-ink-muted); } .band .eyebrow::before { background: rgba(255,255,255,0.25); }
.band h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 16px; max-width: 20ch; }
.band p { color: var(--on-ink-muted); font-size: 18px; max-width: 56ch; margin: 0; }
.band .ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; position: relative; }
.band .ai-card { background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.1); border-radius: 13px; padding: 22px; }
.band .ai-card .icon-mono { background: rgba(255,255,255,0.07); color: #fff; width: 38px; height: 38px; margin-bottom: 14px; }
.band .ai-card h3 { margin: 0 0 8px; font-size: 17px; color: #fff; }
.band .ai-card p { margin: 0; font-size: 14.5px; color: var(--on-ink-muted); }

/* ---------- Steps (a real sequence — numbered) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding-top: 18px; border-top: 2px solid var(--ink); }
.step .n { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 12px; letter-spacing: 0.08em; }
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Compare ---------- */
.compare { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.compare thead th { background: var(--paper-2); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 500; }
.compare thead th.us { color: var(--ink); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare th.center { text-align: center; }
.compare td.center { text-align: center; font-family: var(--font-mono); }
.compare .yes { color: var(--ink); font-weight: 600; }
.compare .no { color: var(--faint); }
.compare .feat { font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 4px; font-family: var(--font-display); font-weight: 500; font-size: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: 0 0 auto; width: 22px; height: 22px; position: relative; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; transition: transform .2s ease; }
.faq summary .pm::before { top: 10px; left: 3px; right: 3px; height: 2px; }
.faq summary .pm::after { left: 10px; top: 3px; bottom: 3px; width: 2px; }
.faq details[open] summary .pm::after { transform: scaleY(0); }
.faq details > p { margin: 0 4px 22px; color: var(--muted); font-size: 15.5px; max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink-bg); color: var(--paper); border-radius: 22px; padding: 64px 32px; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px 260px at 50% -10%, rgba(255,255,255,0.08), transparent 70%); }
.cta-band h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); position: relative; }
.cta-band p { margin: 0 auto 26px; max-width: 48ch; color: var(--on-ink-muted); font-size: 18px; position: relative; }
.cta-band .cta-row { justify-content: center; position: relative; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 58px 0 36px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 42px; }
.footer-about .brand { margin-bottom: 14px; }
.footer-about p { margin: 0; max-width: 34ch; }
.footer-col h4 { margin: 0 0 14px; font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); font-weight: 500; }
.footer-col a { display: block; color: var(--muted); padding: 5px 0; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12.5px; }

/* ---------- Prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: 38px; margin: 0 0 8px; }
.prose .updated { font-family: var(--font-mono); color: var(--muted); font-size: 13px; margin: 0 0 32px; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose p, .prose li { font-size: 16px; }
.prose h3 { font-size: 18px; margin: 26px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose .lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
.prose blockquote { border-left: 3px solid var(--line-2); margin: 22px 0; padding: 4px 0 4px 18px; color: var(--muted); }
.prose .backlink { font-family: var(--font-mono); font-size: 13px; color: var(--muted); text-decoration: none; }
.prose .cta-box { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin: 34px 0; }
.prose .cta-box p { margin: 0 0 14px; }

/* blog index cards (reuse .grid/.card as anchors) */
a.card { display: block; color: inherit; text-decoration: none; }
a.card .tag { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
a.card h3 { margin: 10px 0 8px; font-size: 19px; }
.cat-nav { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.cat-nav a { margin: 0 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: minmax(0,1fr); gap: 44px; }
  .hero h1, .hero .lead { max-width: none; }
  .split { grid-template-columns: minmax(0,1fr); gap: 34px; }
  .split.reverse .feature-copy, .split.reverse .feature-visual { order: initial; }
  .feature-visual { order: 2; } .feature-copy { order: 1; }
  .band .ai-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .band { padding: 48px 28px; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--card); border-bottom: 1px solid var(--line); padding: 12px 16px 18px; transform: translateY(-130%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 12px; font-size: 16px; border-radius: 10px; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .nav-toggle { display: block; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .compare { overflow-x: auto; }
}
