/* PageSight marketing site
   Single stylesheet. No build step.

   Design decisions (locked):
   - One theme: light. Product vignettes sit on dark slate panels as components, not as section theme flips.
   - One accent: terracotta (from the brand mark). Used for the mark, links on hover, and small semantic markers only.
   - Radius system: buttons + inputs 8px, cards + panels 12px, pills full.
   - Type: Geist (variable) for everything; Geist Mono for the few product-surface labels.
   - Motion: transform/opacity only, reveal-on-view via IntersectionObserver, all gated by prefers-reduced-motion.
*/

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f7f7f5;
  --bg-2: #efefec;
  --surface: #ffffff;
  --ink: #16181d;
  --ink-2: #3a3e46;
  --muted: #676c75;
  --faint: #9a9ea6;
  --rule: rgba(22, 24, 29, 0.10);
  --rule-2: rgba(22, 24, 29, 0.18);

  --accent: #c4623d;
  --accent-deep: #9c4b2c;
  --accent-soft: rgba(196, 98, 61, 0.12);

  --slate-900: #15181e;
  --slate-800: #1d2129;
  --slate-700: #272c36;
  --slate-600: #343a46;
  --on-slate: #e8eaee;
  --on-slate-2: #aab0bb;
  --on-slate-3: #6f7683;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1180px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (min-width: 900px) { .wrap { padding: 0 40px; } }

/* ---------- type ---------- */
.display {
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 1.02;
  font-size: clamp(38px, 5.4vw, 66px);
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-weight: 500;
  letter-spacing: -0.026em;
  line-height: 1.08;
  font-size: clamp(30px, 3.6vw, 46px);
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.2;
  font-size: clamp(20px, 2vw, 24px);
  margin: 0;
}
.lede {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  max-width: 58ch;
}
.body { color: var(--ink-2); margin: 0; max-width: 62ch; }
.small { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.em { color: var(--accent); }

/* ---------- brand mark ---------- */
.wordmark {
  display: inline-flex; align-items: center; gap: 0;
  font-weight: 600; letter-spacing: -0.025em; font-size: 19px; color: var(--ink);
}
/* The mark is an inline SVG so the lens can be a real knock-out: the page is
   currentColor, the lens shows whatever is behind it, the pupil is the accent. */
/* The original P monogram: stem + ring bowl + accent pupil, so the letter is
   also an eye. Drawn at 1.3em with a heavier stroke than the first build so
   it actually reads against the light ground. viewBox aspect is 52:80. */
.wordmark .mark { height: 1.3em; width: 0.845em; margin-right: 0.4em; flex: none; display: block; }
.wordmark.on-dark { color: var(--on-slate); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  border-radius: 8px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.08s, background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(22,24,29,0.03); }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.btn .arrow { display: inline-block; width: 14px; height: 1.5px; background: currentColor; position: relative; }
.btn .arrow::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.btn-on-dark { background: var(--on-slate); color: var(--slate-900); }
.btn-on-dark:hover { background: #fff; }
.link { color: var(--ink); border-bottom: 1px solid var(--rule-2); transition: color .15s, border-color .15s; }
.link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 247, 245, 0.85);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.is-scrolled { border-bottom-color: var(--rule); }
.nav-inner {
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--ink-2);
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--ink); background: rgba(22,24,29,0.04); }
.nav-link[aria-current="page"] { color: var(--ink); }
.nav-cta { display: none; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: block; }
  .nav-burger { display: none; }
}
.nav-burger {
  width: 40px; height: 40px; border: 0; background: transparent; border-radius: 8px; cursor: pointer;
  display: grid; place-items: center; position: relative;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  display: block; width: 18px; height: 1.6px; background: var(--ink); position: relative; content: "";
  transition: transform .2s var(--ease), opacity .2s;
}
.nav-burger span::before { position: absolute; top: -6px; }
.nav-burger span::after { position: absolute; top: 6px; }
.drawer {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; background: var(--bg);
  padding: 24px; display: none; flex-direction: column; gap: 4px;
}
.drawer.open { display: flex; }
.drawer a { font-size: 22px; font-weight: 500; padding: 14px 8px; border-bottom: 1px solid var(--rule); }
.drawer .btn { margin-top: 20px; align-self: flex-start; }
body.drawer-open { overflow: hidden; }
@media (min-width: 900px) { .nav-burger, .drawer { display: none !important; } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .h2 + .lede, .section-head .h2 + .body { margin-top: 18px; }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
}
.hero-copy .lede { margin-top: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- dark product panel ---------- */
.panel {
  background: var(--slate-900); color: var(--on-slate); border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 30px 80px -40px rgba(22,24,29,0.45), 0 1px 0 rgba(255,255,255,0.04) inset;
  overflow: hidden; position: relative;
}
.panel-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.07);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--on-slate-3);
}
.panel-bar .crumbs { display: flex; gap: 8px; align-items: center; }
.panel-bar .crumbs b { color: var(--on-slate-2); font-weight: 500; }
.panel-bar .live { display: inline-flex; align-items: center; gap: 6px; color: var(--on-slate-2); }
.panel-bar .live i { width: 6px; height: 6px; border-radius: 50%; background: #7bc47f; display: inline-block; }
.panel-body { padding: 18px; display: grid; gap: 14px; }
@media (min-width: 560px) { .panel-body { padding: 20px; } }

.card {
  background: var(--slate-800); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 16px;
}
.card-title {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-slate-3);
  margin-bottom: 12px;
}
.tag {
  display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); color: var(--on-slate-2);
}
.tag.warn { color: #f0b36a; border-color: rgba(240,179,106,0.35); }
.tag.crit { color: #f28b82; border-color: rgba(242,139,130,0.35); }
.tag.good { color: #8fd694; border-color: rgba(143,214,148,0.35); }
.tag.accent { color: #e9a58a; border-color: rgba(233,165,138,0.4); }

.finding { display: grid; grid-template-columns: 10px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.07); }
.finding:first-of-type { border-top: 0; padding-top: 0; }
.finding .sev { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--on-slate-3); }
.finding .sev.crit { background: #f28b82; }
.finding .sev.warn { background: #f0b36a; }
.finding .sev.good { background: #8fd694; }
.finding p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--on-slate); }
.finding .meta { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.finding .meta button {
  background: transparent; border: 1px solid rgba(255,255,255,0.14); color: var(--on-slate-2);
  font-size: 12px; padding: 4px 10px; border-radius: 6px; cursor: default;
}

.rows { display: grid; gap: 0; }
.row {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.07); font-size: 14px;
}
.row:first-child { border-top: 0; padding-top: 0; }
.row .who { color: var(--on-slate); }
.row .where { color: var(--on-slate-3); font-family: var(--mono); font-size: 12px; margin-top: 2px; }

.toast {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  background: var(--slate-700); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 12px 14px;
}
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: #f28b82; margin-top: 6px; box-shadow: 0 0 0 4px rgba(242,139,130,0.15); }
.toast b { display: block; font-weight: 500; font-size: 14px; }
.toast span { display: block; font-size: 12.5px; color: var(--on-slate-2); margin-top: 3px; }
.toast .chan { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

/* bars without numerals */
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 12px; align-items: center; font-size: 13.5px; }
.bar .lbl { color: var(--on-slate-2); }
.bar .trk { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; }
.bar .trk i { display: block; height: 100%; border-radius: 999px; background: var(--on-slate-2); }
.bar .trk i.accent { background: #d9805c; }
.split { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; }
.split i { display: block; height: 100%; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--on-slate-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* treemap without numerals */
.treemap { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 46px; gap: 4px; }
.tile {
  border-radius: 6px; padding: 8px 10px; font-family: var(--mono); font-size: 11.5px; color: var(--on-slate);
  display: flex; align-items: flex-end; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.tile.v-high { background: #3d6b4a; }
.tile.v-mid { background: #3a4150; }
.tile.v-dead { background: #7a3a2f; }
.tile.v-gem { background: #5f4a8a; }
.tile.v-low { background: #2b3038; color: var(--on-slate-2); }

/* ---------- feature tabs ---------- */
.tabs { display: grid; gap: 24px; }
@media (min-width: 980px) { .tabs { grid-template-columns: 300px 1fr; gap: 48px; align-items: start; } }
.tablist { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
@media (min-width: 980px) { .tablist { flex-direction: column; overflow: visible; position: sticky; top: calc(var(--nav-h) + 24px); } }
.tab {
  text-align: left; background: transparent; border: 1px solid transparent; border-radius: 10px;
  padding: 14px 16px; cursor: pointer; flex: 0 0 auto; min-width: 160px;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.tab b { display: block; font-weight: 500; font-size: 16px; letter-spacing: -0.01em; }
.tab span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.tab:hover { background: rgba(22,24,29,0.035); }
.tab[aria-selected="true"] { background: var(--surface); border-color: var(--rule); box-shadow: 0 1px 2px rgba(22,24,29,0.04); }
.tab[aria-selected="true"] b::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 2px; }
.tabpanel { display: none; }
.tabpanel.active { display: grid; gap: 28px; }
@media (min-width: 1100px) { .tabpanel.active { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; } }
.tabpanel .h3 { margin-bottom: 12px; }
.tabpanel .body { margin-bottom: 20px; }
.caplist { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.caplist li { padding-left: 22px; position: relative; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.caplist li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 1.5px; background: var(--accent); }
.caplist li b { color: var(--ink); font-weight: 500; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 2px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--rule); padding: 22px 20px 24px; position: relative; min-height: 190px; }
.step:first-child { border-radius: 12px 12px 0 0; }
.step:last-child { border-radius: 0 0 12px 12px; }
@media (min-width: 820px) {
  .step:first-child { border-radius: 12px 0 0 12px; }
  .step:last-child { border-radius: 0 12px 12px 0; }
}
.step .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.step h3 { margin: 10px 0 8px; font-size: 19px; font-weight: 500; letter-spacing: -0.015em; }
.step p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

/* ---------- split feature ---------- */
.split-feature { display: grid; gap: 36px; align-items: center; }
@media (min-width: 980px) { .split-feature { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; } }
.split-feature.flip > :first-child { order: 2; }
@media (max-width: 979px) { .split-feature.flip > :first-child { order: 0; } }
.split-feature .h2 { margin-bottom: 18px; }
.split-feature .caplist { margin-top: 24px; }

/* ---------- dark band ---------- */
.band { background: var(--slate-900); color: var(--on-slate); }
.band .h2, .band .h3 { color: #fff; }
.band .lede, .band .body { color: var(--on-slate-2); }
.band .caplist li { color: var(--on-slate-2); }
.band .caplist li b { color: var(--on-slate); }
.band .eyebrow { color: var(--on-slate-3); }
.band .panel { box-shadow: none; border-color: rgba(255,255,255,0.09); background: var(--slate-800); }
.band .card { background: var(--slate-700); }

/* ---------- facts grid (privacy) ---------- */
.facts { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
@media (min-width: 700px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .facts { grid-template-columns: 1fr 1fr 1fr; } }
.fact { background: var(--surface); padding: 26px 24px 28px; }
.fact h3 { margin: 0 0 8px; font-size: 17px; font-weight: 500; letter-spacing: -0.012em; }
.fact p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

/* ---------- stack mapping ---------- */
.stack { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.stack-row { display: grid; gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
@media (min-width: 820px) { .stack-row { grid-template-columns: 1.3fr 1fr 1fr; } }
.stack-row .q { font-size: 17px; font-weight: 500; letter-spacing: -0.012em; }
.stack-row .tool { font-size: 14.5px; color: var(--muted); }
.stack-row .tool::before { content: "usually: "; }
.stack-row .in { font-size: 14.5px; color: var(--ink-2); }
.stack-row .in::before { content: "in PageSight: "; color: var(--accent); }

/* ---------- honesty list ---------- */
.nots { display: grid; gap: 14px; }
@media (min-width: 820px) { .nots { grid-template-columns: 1fr 1fr; gap: 16px 40px; } }
.not { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.not i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--rule-2); position: relative; margin-top: 5px; }
.not i::before, .not i::after { content: ""; position: absolute; left: 3px; top: 5.5px; width: 6px; height: 1.5px; background: var(--muted); }
.not i::before { transform: rotate(45deg); } .not i::after { transform: rotate(-45deg); }
.not b { color: var(--ink); font-weight: 500; }

/* ---------- agency teaser / cta ---------- */
.cta {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px;
  padding: clamp(36px, 5vw, 64px); display: grid; gap: 24px; align-items: center;
}
@media (min-width: 900px) { .cta { grid-template-columns: 1.4fr auto; } }
.cta .lede { margin-top: 12px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--rule); padding: 56px 0 32px; background: var(--bg-2); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-col .fcol-title { margin: 0 0 14px; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); }
.footer-col > a:not(.wordmark) { display: block; font-size: 15px; padding: 5px 0; color: var(--ink-2); }
.footer-col > a:hover { color: var(--accent); }
.footer-blurb { margin: 16px 0 0; max-width: 34ch; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.footer-bottom {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13.5px; color: var(--muted);
}
.footer-bottom a { color: var(--ink-2); border-bottom: 1px solid var(--rule-2); }
.footer-bottom a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- forms (contact) ---------- */
.form-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .form-grid { grid-template-columns: 0.85fr 1.15fr; gap: 64px; } }
.form-aside { position: sticky; top: calc(var(--nav-h) + 24px); }
@media (max-width: 899px) { .form-aside { position: static; } }
.points { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }
.points li i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--accent); position: relative; margin-top: 3px; }
.points li i::after { content: ""; position: absolute; left: 4px; top: 3px; width: 6px; height: 3px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.form-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 32px; }
@media (max-width: 560px) { .form-card { padding: 22px 18px; } }
.form-card h3 { margin: 0 0 4px; font-size: 20px; font-weight: 500; letter-spacing: -0.012em; }
.form-card .hint { margin: 0 0 24px; font-size: 14px; color: var(--muted); }
.group-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin: 28px 0 14px; padding-top: 20px; border-top: 1px dashed var(--rule); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field label .req { color: var(--accent); margin-left: 2px; }
.field label .opt { color: var(--faint); font-weight: 400; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; margin-left: 6px; }
.input, .select, .textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--rule-2); border-radius: 8px; padding: 12px 14px; -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23676c75' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; cursor: pointer;
}
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.field.err .input, .field.err .select { border-color: #b3423a; }
.err-msg { display: none; color: #b3423a; font-size: 13px; margin-top: 6px; }
.field.err .err-msg { display: block; }
.submit { margin-top: 26px; }
.submit .btn { width: 100%; }
.fine { margin: 14px 0 0; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.5; }
.success { display: none; text-align: center; padding: 20px 8px 8px; }
.success.show { display: block; }
.success .badge { width: 56px; height: 56px; border-radius: 14px; background: var(--ink); margin: 0 auto 20px; position: relative; }
.success .badge::after { content: ""; position: absolute; left: 18px; top: 16px; width: 18px; height: 10px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.success h3 { font-size: 24px; margin-bottom: 10px; }
.success p { margin: 0 auto; max-width: 40ch; color: var(--ink-2); }
.form-error { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: rgba(179,66,58,0.08); color: #8f3129; font-size: 14px; }
.form-error.show { display: block; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 56px); }
.page-hero .lede { margin-top: 20px; }

/* ---------- reveal motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transition-delay 0s, transform .7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal[data-delay="1"] { transition-delay: .08s; }
  .reveal[data-delay="2"] { transition-delay: .16s; }
  .reveal[data-delay="3"] { transition-delay: .24s; }
  .reveal[data-delay="4"] { transition-delay: .32s; }
}

/* ---------- utilities ---------- */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ==========================================================================
   ALIVE LAYER
   Added per MARKETING-PLAYBOOK section 9 (engagement, micro-interactions,
   sticky CTA) and MOBILE-UX-AUDIT (tap targets, touch-action, safe areas,
   reduced motion). Every animation below moves transform/opacity only, so
   none of it can shift layout (CLS) or block the main thread (INP).
   ========================================================================== */

/* --- reading progress ---------------------------------------------------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  pointer-events: none;
}

/* --- hero: the watched page ---------------------------------------------- */
.watch {
  background: var(--slate-900); border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 30px 80px -44px rgba(22,24,29,0.5);
  position: relative;
}
.watch-bar {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-family: var(--mono); font-size: 11.5px; color: var(--on-slate-3);
}
.wdot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.14); flex: none; }
.watch-url {
  margin-left: 6px; padding: 3px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.05); color: var(--on-slate-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.watch-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--on-slate-2); flex: none; }
.watch-live i { width: 6px; height: 6px; border-radius: 50%; background: #7bc47f; flex: none; }
.watch-body { position: relative; padding: 22px 20px 26px; min-height: 344px; }
@media (min-width: 560px) { .watch-body { min-height: 384px; padding: 26px 24px 30px; } }

/* The wireframe is deliberately kept to the left ~64% so the annotation chips
   have a clear column of their own and never sit on top of what they label. */
.wrow { height: 9px; width: 64%; border-radius: 999px; background: rgba(255,255,255,0.07); margin-bottom: 12px; }
.wrow.wtitle { height: 15px; width: 44%; background: rgba(255,255,255,0.14); margin-bottom: 18px; }
.wrow.w70 { width: 56%; }
.wrow.w50 { width: 36%; }
.wfield {
  height: 34px; width: 64%; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03); margin-bottom: 10px;
}
.wbtn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 22px; border-radius: 8px; margin-top: 10px;
  background: var(--on-slate); color: var(--slate-900);
  font-size: 13.5px; font-weight: 500;
}

.ptr {
  position: absolute; left: 0; top: 0; width: 13px; height: 18px; z-index: 4;
  background: var(--on-slate); opacity: 0;
  clip-path: polygon(0 0, 0 15px, 4px 11.5px, 7px 18px, 10px 16.5px, 7px 10.5px, 12px 10.5px);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.55));
}
.ring {
  position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; z-index: 3;
  border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0;
}
.sweep {
  position: absolute; left: 0; right: 0; height: 84px; z-index: 2; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(196,98,61,0.15), transparent);
  border-bottom: 1px solid rgba(196,98,61,0.45);
}
.chip {
  position: absolute; z-index: 5; opacity: 0;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em;
  padding: 5px 9px; border-radius: 6px; white-space: nowrap;
  background: var(--slate-600); color: var(--on-slate);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 6px 18px -8px rgba(0,0,0,0.7);
}
.chip.c1 { left: 69%; top: 55%; }
.chip.c2 { left: 69%; top: 28%; }
.chip.c3 { left: 69%; top: 40%; }
.chip.c4 { left: 69%; top: 75%; }
.ring.r1 { left: 10%; top: 59%; }
.ring.r2 { left: 34%; top: 32%; }

@media (prefers-reduced-motion: no-preference) {
  .watch.play .ptr     { animation: ptrPath 17s var(--ease) infinite; }
  .watch.play .ring.r1 { animation: ringPop 17s linear infinite; }
  .watch.play .ring.r2 { animation: ringPop 17s linear infinite; animation-delay: 4.4s; }
  .watch.play .sweep   { animation: sweepDown 17s ease-in-out infinite; }
  .watch.play .chip.c1 { animation: chipIn 17s ease infinite; animation-delay: 1.9s; }
  .watch.play .chip.c2 { animation: chipIn 17s ease infinite; animation-delay: 5.2s; }
  .watch.play .chip.c3 { animation: chipIn 17s ease infinite; animation-delay: 7.8s; }
  .watch.play .chip.c4 { animation: chipIn 17s ease infinite; animation-delay: 11.6s; }
  .watch.play .wbtn    { animation: btnDead 17s linear infinite; }
}
@keyframes ptrPath {
  0%   { opacity: 0; transform: translate(14%, 14%); }
  4%   { opacity: 1; }
  10%  { transform: translate(9%, 57%); }
  14%  { transform: translate(9%, 57%); }
  20%  { transform: translate(10%, 59%); }
  27%  { transform: translate(33%, 30%); }
  36%  { transform: translate(33%, 30%); }
  44%  { transform: translate(35%, 42%); }
  52%  { transform: translate(35%, 42%); }
  64%  { transform: translate(22%, 78%); }
  76%  { opacity: 1; transform: translate(22%, 78%); }
  84%  { opacity: 0; transform: translate(22%, 82%); }
  100% { opacity: 0; transform: translate(14%, 14%); }
}
@keyframes ringPop {
  0%, 9%   { opacity: 0; transform: scale(0.3); }
  11%      { opacity: 1; transform: scale(0.5); }
  17%      { opacity: 0; transform: scale(1.5); }
  19%      { opacity: 1; transform: scale(0.5); }
  25%      { opacity: 0; transform: scale(1.5); }
  100%     { opacity: 0; transform: scale(1.5); }
}
@keyframes sweepDown {
  0%, 63%   { opacity: 0; transform: translateY(-90px); }
  67%       { opacity: 1; }
  77%       { opacity: 1; transform: translateY(310px); }
  81%, 100% { opacity: 0; transform: translateY(310px); }
}
@keyframes chipIn {
  0%   { opacity: 0; transform: translateY(6px) scale(0.96); }
  3%   { opacity: 1; transform: none; }
  70%  { opacity: 1; transform: none; }
  76%  { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 0; }
}
@keyframes btnDead {
  0%, 9%, 13%, 100% { transform: none; }
  10%, 12%          { transform: scale(0.985); }
}
@media (prefers-reduced-motion: reduce) {
  .watch .chip { opacity: 1; }
  .watch .ptr, .watch .ring, .watch .sweep { opacity: 0; }
}

/* --- hero entrance ------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .lift { opacity: 0; transform: translateY(14px); animation: liftIn .8s var(--ease) forwards; }
  .lift[data-delay="1"] { animation-delay: .08s; }
  .lift[data-delay="2"] { animation-delay: .18s; }
  .lift[data-delay="3"] { animation-delay: .28s; }
  @keyframes liftIn { to { opacity: 1; transform: none; } }
}

/* --- bars fill on reveal ------------------------------------------------- */
.bar .trk i { width: 0; transition: width 1.1s var(--ease); }
.reveal.in .bar .trk i, .tabpanel.active .bar .trk i { width: var(--w, 50%); }
@media (prefers-reduced-motion: reduce) { .bar .trk i { transition: none; width: var(--w, 50%); } }

/* --- micro-interactions -------------------------------------------------- */
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.fact, .step { transition: transform .25s var(--ease), border-color .25s var(--ease); }
@media (hover: hover) {
  .fact:hover, .step:hover { transform: translateY(-2px); border-color: var(--rule-2); }
  .stack-row { transition: background .2s var(--ease); }
  .stack-row:hover { background: rgba(22,24,29,0.025); }
}
.watch-live i, .panel-bar .live i { animation: pulseDot 2.4s ease-in-out infinite; }
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(123,196,127,.5); }
  50%      { box-shadow: 0 0 0 5px rgba(123,196,127,0); }
}
.tabpanel.active { animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .watch-live i, .panel-bar .live i, .tabpanel.active { animation: none; }
}

/* --- live demo ----------------------------------------------------------- */
.demo { display: grid; gap: 20px; }
@media (min-width: 940px) { .demo { grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr); gap: 28px; align-items: stretch; } }

.demo-stage {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px;
  padding: 26px 24px 28px; position: relative; overflow: hidden;
}
.demo-stage h3 { margin: 0 0 6px; font-size: 19px; font-weight: 500; letter-spacing: -0.014em; }
.demo-stage .sub { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.demo-stage label { display: block; font-size: 13.5px; font-weight: 500; margin: 0 0 6px; }
.demo-field { margin-bottom: 14px; }
.demo-stage .input { font-size: 16px; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.demo-dead {
  min-height: 46px; padding: 12px 22px; border-radius: 8px; border: 0;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: transform .08s;
}
.demo-dead:active { transform: translateY(1px); }
.demo-ghost {
  min-height: 46px; padding: 12px 18px; border-radius: 8px;
  border: 1px solid var(--rule-2); background: transparent; color: var(--ink-2);
  font-size: 15px; cursor: pointer;
}
.demo-scroll {
  margin-top: 20px; height: 130px; overflow-y: auto; overscroll-behavior: contain;
  border-top: 1px dashed var(--rule); padding-top: 14px;
  font-size: 14.5px; line-height: 1.6; color: var(--muted);
  -webkit-overflow-scrolling: touch;
}
.demo-scroll p { margin: 0 0 12px; }

.demo-read {
  background: var(--slate-900); border-radius: 12px; color: var(--on-slate);
  border: 1px solid rgba(255,255,255,0.07); padding: 20px; display: flex; flex-direction: column;
}
.signals { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; flex: 1; align-content: start; }
.signals li {
  display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: center;
  padding: 11px 0; border-top: 1px solid rgba(255,255,255,0.07); font-size: 14px;
}
.signals li:first-child { border-top: 0; }
.signals .led {
  width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.16);
  transition: background .25s, box-shadow .25s;
}
.signals li .nm { color: var(--on-slate-2); }
.signals li .vl {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--on-slate-3); text-align: right;
}
.signals li.fired .led { background: var(--accent); box-shadow: 0 0 0 4px rgba(196,98,61,0.18); }
.signals li.fired .nm { color: var(--on-slate); }
.signals li.fired .vl { color: #e9a58a; }
.signals li.known .led { background: #7bc47f; }
.signals li.known .vl { color: var(--on-slate-2); }
.signals li .depth { grid-column: 2 / -1; height: 5px; border-radius: 999px; background: rgba(255,255,255,0.09); overflow: hidden; margin-top: 4px; }
.signals li .depth i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .18s linear; }
.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.07); }
.demo-foot span { font-size: 12.5px; color: var(--on-slate-3); }
.demo-reset {
  background: transparent; border: 1px solid rgba(255,255,255,0.16); color: var(--on-slate-2);
  border-radius: 8px; padding: 8px 14px; font-size: 13px; cursor: pointer; min-height: 40px; flex: none;
}
.demo-reset:hover { border-color: rgba(255,255,255,0.35); color: #fff; }

/* --- FAQ (AEO/GEO: question-shaped, extractable) ------------------------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-size: clamp(17px, 1.6vw, 19px); font-weight: 500; letter-spacing: -0.012em;
  min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px;
  border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .22s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--accent); }
.faq .ans { padding: 0 0 24px; max-width: 74ch; color: var(--ink-2); }
.faq .ans p { margin: 0 0 12px; }
.faq .ans p:last-child { margin-bottom: 0; }

/* --- sticky mobile CTA --------------------------------------------------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; z-index: 45;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: none; opacity: 0; transform: translateY(140%);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.sticky-cta .btn { width: 100%; min-height: 50px; box-shadow: 0 12px 30px -10px rgba(22,24,29,0.55); }
.sticky-cta.show { opacity: 1; transform: none; }
@media (max-width: 899px) { .sticky-cta { display: block; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* --- mobile / touch hardening -------------------------------------------- */
@media (max-width: 899px) {
  body { padding-bottom: 78px; }
}
.btn, .nav-link, .footer-col a, .drawer a, .faq summary, .tab,
.demo-dead, .demo-ghost, .demo-reset, .nav-burger {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
@media (pointer: coarse) {
  .btn { min-height: 46px; }
  .nav-link { min-height: 44px; display: flex; align-items: center; }
  .footer-col > a:not(.wordmark) { min-height: 44px; display: flex; align-items: center; }
  .drawer a { min-height: 52px; display: flex; align-items: center; }
  .tab { min-height: 58px; }
  .nav-burger { width: 46px; height: 46px; }
  .link, .faq summary { min-height: 44px; }
}
.nav { padding-top: env(safe-area-inset-top, 0px); }
.wrap { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
@media (min-width: 900px) {
  .wrap { padding-left: max(40px, env(safe-area-inset-left)); padding-right: max(40px, env(safe-area-inset-right)); }
}
.drawer { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); overscroll-behavior: contain; }
@supports (height: 100dvh) {
  .drawer { height: calc(100dvh - var(--nav-h)); }
}
/* 320px reflow stress (WCAG 1.4.10) */
@media (max-width: 360px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .display { font-size: clamp(31px, 8.6vw, 40px); }
  .demo-stage, .form-card { padding: 20px 16px; }
}

/* Narrow phones: the annotation column needs more room, so the wireframe
   shrinks and the chips move left and down a size. */
@media (max-width: 559px) {
  .wrow, .wfield { width: 52%; }
  .wrow.wtitle { width: 38%; }
  .wrow.w70 { width: 46%; }
  .wrow.w50 { width: 30%; }
  .chip { font-size: 9.5px; padding: 4px 7px; letter-spacing: 0.02em; }
  .chip.c1, .chip.c2, .chip.c3, .chip.c4 { left: 55%; }
}

/* --- content protection (MARKETING-PLAYBOOK section 8) -------------------
   Selection is off site-wide. Form controls and anything inside .copyable
   stay selectable, so the forms work and contact details can always be
   copied. The exemption is by mechanism, never by value. */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;   /* stops the iOS long-press copy sheet */
}
input, textarea, select, option,
[contenteditable=""], [contenteditable="true"],
.copyable, .copyable * {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
