/* =========================================================
   Docklet — Concept A v2 · "Editorial / Terminal"
   – richer dark-grey gradient palette
   – Special Gothic Expanded One display · Figtree body · Instrument Serif italics
   – classic (system) cursor
   ========================================================= */

:root {
  /* Base greys — dark, but never pure black */
  --bg-0: #15171c;        /* deepest slate-charcoal */
  --bg-1: #1a1d24;        /* default surface */
  --bg-2: #20242c;        /* card surface */
  --bg-3: #262a33;        /* raised card / inputs */
  --bg-warm: #1c1a19;     /* warm pocket (coral side) */
  --bg-cool: #161922;     /* cool pocket (lime side) */

  /* Ink */
  --ink: #f1ede4;         /* warm off-white */
  --ink-mute: #a5a39a;
  --ink-soft: #6f6f68;

  /* Lines */
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.1);
  --line-3: rgba(255, 255, 255, 0.16);

  /* Accents — lime primary, coral secondary, deeper saturation */
  --accent: #d6ff4e;
  --accent-soft: rgba(214, 255, 78, .18);
  --accent-2: #ff7a5c;
  --accent-2-soft: rgba(255, 122, 92, .16);

  /* Type */
  --display: "Special Gothic Expanded One", "Helvetica Neue", system-ui, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, sans-serif;
  --italic: "Instrument Serif", "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r: 14px;
  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.55;

  /* Living background — never solid black */
  background:
    radial-gradient(1100px 700px at 12% -10%, rgba(214, 255, 78, .06), transparent 60%),
    radial-gradient(900px 700px at 90% 10%, rgba(255, 122, 92, .055), transparent 60%),
    radial-gradient(1200px 900px at 50% 110%, rgba(214, 255, 78, .04), transparent 60%),
    linear-gradient(180deg, #15171c 0%, #1a1d24 28%, #1e2129 60%, #181b21 100%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ========================
   Grain overlay
======================== */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.7'/></svg>");
}

/* ========================
   Top bar
======================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto auto;
  align-items: center; gap: 28px;
  padding: 18px var(--gutter);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  background: linear-gradient(180deg, rgba(20,22,28,.78), rgba(20,22,28,.55));
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -.01em;
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; color: var(--accent);
}
.brand-word {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: -.01em;
  font-weight: 400;
}

.nav { display: flex; gap: 30px; justify-content: center; }
.nav a {
  font-family: var(--sans);
  font-size: 15px; color: var(--ink-mute);
  font-weight: 500;
  position: relative;
  transition: color .2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--accent); transform: scaleX(0);
  transform-origin: left; transition: transform .25s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.topbar-actions { display: flex; align-items: center; gap: 18px; }
.link-underline {
  font-size: 15px; padding-bottom: 2px;
  border-bottom: 1px solid var(--line-2);
  transition: border-color .2s ease, color .2s ease;
}
.link-underline:hover { border-color: var(--accent); color: var(--accent); }

.nav-toggle {
  display: none; background: transparent; border: 0;
  width: 36px; height: 36px; padding: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 1.5px; background: var(--ink);
  margin: 6px auto; width: 22px; transition: transform .25s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7.5px) rotate(-45deg); }

/* ========================
   Buttons
======================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  font-family: var(--sans);
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  user-select: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { width: 14px; height: 14px; }
.btn-lg { padding: 15px 26px; font-size: 15px; }
.btn-primary {
  background: var(--accent);
  color: #15171c;
  box-shadow: 0 14px 30px -14px rgba(214, 255, 78, .55);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: #e7ff63;
  box-shadow: 0 18px 36px -14px rgba(214, 255, 78, .65);
}
.btn-ghost {
  background: rgba(255,255,255,.025);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.05); border-color: var(--line-3);
}

/* ========================
   Hero
======================== */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 140px) var(--gutter) 80px;
  max-width: var(--maxw); margin: 0 auto;
}

.hero-bg {
  position: absolute; inset: -120px -10% 0; z-index: -1;
  overflow: hidden;
}
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 70%);
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .22;
}
.orb-1 { width: 540px; height: 540px; background: var(--accent); top: -10%; left: 22%; }
.orb-2 { width: 420px; height: 420px; background: var(--accent-2); top: 28%; right: 8%; opacity: .18; }

.hero-artifacts {
  margin: 0 0 24px;
  max-width: 100%;
}
.hero-artifacts-viewport {
  overflow: hidden;
  padding: 10px 0;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
}
.hero-artifacts-track {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  animation: artifact-ticker 38s linear infinite;
}

.artifact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 28px -16px rgba(0,0,0,.55);
  transform-origin: center center;
  opacity: .5;
  transform: translateY(0) scale(0.86);
  transition:
    transform .38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity .38s ease,
    box-shadow .38s ease,
    border-color .38s ease;
}
.artifact-chip.is-focused {
  opacity: 1;
  transform: translateY(-4px) scale(1.16);
  box-shadow:
    0 16px 36px -12px rgba(0,0,0,.6),
    0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line-2));
}

.artifact-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}
.artifact-icon svg { width: 14px; height: 14px; }
.artifact-sep {
  flex-shrink: 0;
  width: 14px;
  height: 1px;
  background: var(--line-3);
  opacity: .7;
}

@keyframes artifact-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-artifacts-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
  .hero-artifacts-viewport {
    mask-image: none;
    overflow: visible;
  }
  .artifact-chip {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .artifact-chip.is-focused {
    transform: none;
  }
  .feature:hover::after { animation: none; }
}

.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(42px, 8.2vw, 132px);
  line-height: .92;
  letter-spacing: -.015em;
  margin: 22px 0 28px;
}
.hero-title .line { display: block; }
.hero-title .accent {
  color: var(--accent);
  display: inline-block;
  position: relative;
  font-style: normal;
}
.hero-title .accent::after {
  content: "";
  position: absolute; left: -4px; right: -4px; bottom: 6%;
  height: 14%;
  background: var(--accent); opacity: .22;
  transform: skewX(-12deg);
  z-index: -1;
}

.hero-lead {
  max-width: 56ch;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-mute);
  line-height: 1.6;
}

.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 28px;
}

.hero-foot {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.012), transparent);
}
.hero-foot-cell {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  display: flex; gap: 18px; align-items: flex-start;
}
.hero-foot-cell:last-child { border-right: 0; }
.foot-num {
  font-family: var(--mono); font-size: 12px; color: var(--ink-soft);
}
.foot-text { font-size: 14px; color: var(--ink-mute); line-height: 1.55; }
.foot-text strong { color: var(--ink); font-weight: 600; }

/* Hero demo */
.hero-demo {
  margin-top: 70px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.demo-frame {
  width: 100%; max-width: 920px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-2); border-radius: var(--r);
  overflow: hidden;
  box-shadow:
    0 40px 100px -30px rgba(0,0,0,.65),
    0 0 0 1px rgba(255,255,255,.02);
}
.demo-frame-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.dotx { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dotx.red { background: #ff5f57; }
.dotx.yellow { background: #febc2e; }
.dotx.green { background: #28c840; }
.demo-frame-title {
  margin-left: 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-soft);
}
.demo-frame-body {
  padding: 22px 24px;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.75;
  background: linear-gradient(180deg, #181b21, #14171c);
}
.demo-line { margin: 0 0 8px; color: var(--ink); }
.demo-line.ai { color: #cfcfcf; }
.prompt-author {
  display: inline-block; margin-right: 12px;
  padding: 2px 8px; border-radius: 6px;
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255,255,255,.05); color: var(--ink-mute);
}
.prompt-author.ai { background: var(--accent-soft); color: var(--accent); }
.ok { color: var(--accent); font-weight: 600; }
.demo-link {
  color: var(--accent); border-bottom: 1px dashed var(--accent);
}
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  margin-left: 6px;
}
.badge.live {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
}
.typewriter::after {
  content: "▍"; color: var(--accent); animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.demo-tag {
  font-family: var(--mono); font-size: 12px; color: var(--ink-soft);
  letter-spacing: .04em; text-transform: uppercase;
}

/* ========================
   Sections — shared
======================== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 160px) var(--gutter);
}
.section-head { max-width: 70ch; margin-bottom: 56px; }
.eyebrow {
  display: inline-block;
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 18px;
  padding: 4px 10px;
  background: var(--accent-soft);
  border-radius: 999px;
}
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 4.7vw, 64px);
  line-height: 1;
  letter-spacing: -.01em;
  margin: 0;
}
.section-title .line { display: block; }
.section-title em {
  font-family: var(--italic);
  font-style: italic; font-weight: 400;
  color: var(--accent-2);
  letter-spacing: -.015em;
}
.section-title .accent {
  color: var(--accent);
  display: inline-block;
  position: relative;
  font-style: normal;
}
.section-title .accent::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 6%;
  height: 14%;
  background: var(--accent);
  opacity: .22;
  transform: skewX(-12deg);
  z-index: -1;
}
.section-subtitle {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 18px 0 0;
  max-width: 62ch;
  color: var(--ink);
}
.section-subtitle .accent,
.vision-pane--loud .accent {
  color: var(--accent);
  display: inline-block;
  position: relative;
  font-style: normal;
}
.section-subtitle .accent::after,
.vision-pane--loud .accent::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 6%;
  height: 14%;
  background: var(--accent);
  opacity: .22;
  transform: skewX(-12deg);
  z-index: -1;
}
.section-title .strike {
  text-decoration: line-through;
  text-decoration-color: var(--accent-2);
  text-decoration-thickness: 4px;
  color: var(--ink-mute);
}
.section-lead {
  margin-top: 22px;
  color: var(--ink-mute);
  font-size: 17px; max-width: 60ch; line-height: 1.6;
}
.section-bridge {
  margin: -24px 0 36px;
  max-width: 60ch;
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--ink);
}
.section-what .section-head { max-width: none; }
.section-what .section-subtitle { max-width: 70ch; }
.section-what .section-head .section-lead {
  max-width: 70ch;
  margin-top: 16px;
}
@media (min-width: 900px) {
  .section-what .section-title { white-space: nowrap; }
}

/* ========================
   Gap section
======================== */
.section-gap {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.018), transparent);
}
.gap-grid {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: stretch;
  margin-top: 32px;
}
.gap-col {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px 32px 36px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  position: relative;
}
.gap-col h4 {
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: .14em;
  margin: 0 0 22px; color: var(--ink-soft);
}
.gap-col ol {
  margin: 0; padding-left: 22px; line-height: 1.8;
  font-size: 16px;
}
.gap-before { color: var(--ink-mute); }
.gap-before ol li { color: var(--ink-mute); position: relative; }
.gap-after {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(214,255,78,.06), transparent 60%),
    linear-gradient(180deg, #1a1f17, #161a12);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  box-shadow:
    0 0 0 1px var(--accent-soft) inset,
    0 24px 60px -20px rgba(0,0,0,.55);
}
.gap-after ol li { color: var(--ink); }
.gap-after ol li::marker { color: var(--accent); }
.gap-arrow { display: grid; place-items: center; color: var(--accent); width: 80px; }

/* ========================
   How it works
======================== */
.how-list { list-style: none; margin: 0; padding: 0; }
.how-step {
  display: grid; grid-template-columns: 120px 1fr; gap: 36px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.how-step:last-child { border-bottom: 1px solid var(--line); }
.how-step-num {
  font-family: var(--display);
  font-style: normal;
  font-size: 64px;
  line-height: 1;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: -.02em;
}
.how-step-body h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 32px);
  margin: 0 0 12px;
  letter-spacing: -.01em;
}
.how-step-body p {
  color: var(--ink-mute); max-width: 60ch;
  font-size: 16px; line-height: 1.65; margin: 0 0 22px;
}
.prompt-block {
  font-family: var(--mono); font-size: 13px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: 10px; padding: 18px 20px;
  white-space: pre-wrap; color: var(--ink);
  line-height: 1.75;
}
.p-author {
  display: inline-block; margin-right: 8px;
  color: var(--ink-soft);
}
.p-author.ai { color: var(--accent); }

.inline-mock {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px;
  max-width: 560px;
  user-select: none;
  overflow: visible;
}

/* Comment recording mock — looped screencast */
.comment-rec {
  --cr-loop: 9s;
}
.comment-rec__viewport {
  position: relative;
  min-height: 118px;
  padding-top: 34px;
  overflow: visible;
}
.comment-rec__doc {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}
.comment-rec__anchor {
  position: relative;
  display: inline;
  white-space: nowrap;
}
.comment-rec__sel {
  position: absolute;
  left: 0;
  top: -2px;
  bottom: -2px;
  width: 0;
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 3px;
  animation: cr-select var(--cr-loop) infinite;
}
.comment-rec__text {
  position: relative;
  z-index: 1;
}
.comment-rec__toolbar {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px) scale(.94);
  opacity: 0;
  z-index: 3;
  animation: cr-toolbar var(--cr-loop) ease-in-out infinite;
}
.comment-rec__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 7px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .42);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
  white-space: nowrap;
}
.comment-rec__chip::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.comment-rec__pointer {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  transform-origin: 1px 1px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55));
  opacity: 0;
  will-change: left, top, transform, opacity;
}
.comment-rec__thread {
  position: relative;
  margin-top: 20px;
  padding-left: 14px;
  opacity: 0;
  transform: translateY(10px);
  animation: cr-thread var(--cr-loop) ease-in-out infinite;
}
.comment-rec__thread::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}
.comment-rec__pin {
  position: absolute;
  left: -4px;
  top: -18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  opacity: 0;
  animation: cr-pin var(--cr-loop) ease-in-out infinite;
}
.comment-rec__comment {
  padding: 12px 14px;
  background: rgba(214, 255, 78, .06);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: 8px;
}
.comment-rec__comment strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--accent);
}
.comment-rec__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.comment-rec__typed {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  animation: cr-type var(--cr-loop) steps(44, end) infinite;
}

@keyframes cr-select {
  0%, 26% { width: 0; opacity: 0; }
  27% {
    width: 0;
    opacity: 1;
    animation-timing-function: linear;
  }
  41%, 76% { width: 100%; opacity: 1; }
  84%, 100% { width: 0; opacity: 0; }
}
@keyframes cr-toolbar {
  0%, 42% { opacity: 0; transform: translateX(-50%) translateY(6px) scale(.94); }
  46%, 76% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  84%, 100% { opacity: 0; transform: translateX(-50%) translateY(6px) scale(.94); }
}
@keyframes cr-thread {
  0%, 48% { opacity: 0; transform: translateY(10px); }
  54%, 76% { opacity: 1; transform: translateY(0); }
  84%, 100% { opacity: 0; transform: translateY(10px); }
}
@keyframes cr-pin {
  0%, 51% { opacity: 0; transform: scale(.6); }
  55%, 76% { opacity: 1; transform: scale(1); }
  84%, 100% { opacity: 0; transform: scale(.6); }
}
@keyframes cr-type {
  0%, 54% { clip-path: inset(0 100% 0 0); }
  76%, 100% { clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  .comment-rec__pointer,
  .comment-rec__toolbar,
  .comment-rec__pin { display: none; }
  .comment-rec__sel {
    width: 100%;
    opacity: 1;
    animation: none;
  }
  .comment-rec__thread {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .comment-rec__typed {
    clip-path: none;
    animation: none;
  }
}

.how-stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  max-width: 720px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
}
.how-stats > div {
  padding: 18px 16px;
  border-right: 1px solid var(--line);
  font-size: 12px; color: var(--ink-soft);
  display: flex; flex-direction: column; gap: 4px;
}
.how-stats > div:last-child { border-right: 0; }
.how-stats > div span {
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -.01em;
}

/* ========================
   Features grid (bento)
======================== */
.section-features .section-head,
.section-features .section-title {
  max-width: 900px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
/* 12-col flex grid: mix span-N for 1:1 (6+6), 1:2 (4+8), 1:3 (3+9), 1:1:1 (4+4+4), etc. */
.feature-grid--flex {
  grid-template-columns: repeat(12, 1fr);
}
.feature-grid--flex .feature-span-3 { grid-column: span 3; }
.feature-grid--flex .feature-span-4 { grid-column: span 4; }
.feature-grid--flex .feature-span-5 { grid-column: span 5; }
.feature-grid--flex .feature-span-6 { grid-column: span 6; }
.feature-grid--flex .feature-span-7 { grid-column: span 7; }
.feature-grid--flex .feature-span-8 { grid-column: span 8; }
.feature-grid--flex .feature-span-9 { grid-column: span 9; }
.feature-grid--flex .feature-span-12 { grid-column: span 12; }
.feature {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .45s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.feature > * { position: relative; z-index: 1; }
.feature::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0);
  transform-origin: left; transition: transform .35s ease;
  z-index: 2;
}
.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 65% at 12% 8%, var(--accent-soft), transparent 58%),
    radial-gradient(ellipse 75% 55% at 92% 95%, var(--accent-2-soft), transparent 52%),
    linear-gradient(
      125deg,
      rgba(214, 255, 78, .11) 0%,
      rgba(255, 255, 255, .035) 32%,
      rgba(255, 122, 92, .09) 58%,
      rgba(214, 255, 78, .07) 100%
    );
  background-size: 100% 100%, 100% 100%, 280% 280%;
  transition: opacity .4s ease;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--line-3);
  box-shadow:
    0 14px 44px rgba(0, 0, 0, .28),
    0 0 48px rgba(214, 255, 78, .06);
}
.feature:hover::before { transform: scaleX(1); }
.feature:hover::after {
  opacity: 1;
  animation: feature-glow 5.5s ease-in-out infinite;
}
@keyframes feature-glow {
  0%, 100% { background-position: 0% 50%, 100% 50%, 0% 50%; }
  50% { background-position: 28% 18%, 72% 82%, 100% 50%; }
}
.feature-wide { grid-column: span 2; }
.feature-full { grid-column: 1 / -1; }
.feature-icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--accent); margin-bottom: 22px;
  background: rgba(214,255,78,.04);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 19px;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
.feature p { margin: 0; color: var(--ink-mute); font-size: 15px; line-height: 1.55; }
.feature-step {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}

/* ========================
   Pricing
======================== */
.section-pricing .section-head { display: grid; gap: 18px; max-width: none; }
.section-pricing .section-head > .eyebrow { width: fit-content; margin-bottom: 0; }
.section-pricing .section-head > .section-title { margin: 0; }
.section-pricing .section-head > .price-toggle { width: fit-content; }
.price-toggle {
  display: inline-flex;
  width: fit-content;
  flex: 0 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 4px;
}
.price-toggle button {
  cursor: pointer;
  border: 0; background: transparent; color: var(--ink-mute);
  padding: 9px 18px; border-radius: 999px;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  transition: all .2s ease;
}
.price-toggle button.active {
  background: var(--accent); color: #15171c;
}
.price-toggle .save {
  margin-left: 6px; font-size: 11px;
  color: inherit; opacity: .75;
}

.price-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.price-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px;
  display: flex; flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform .3s ease, border-color .3s ease;
}
.price-card:hover { transform: translateY(-3px); border-color: var(--line-3); }
.price-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 19px;
  margin: 0;
  letter-spacing: -.01em;
}
.price {
  display: flex; align-items: baseline; gap: 8px;
  border-bottom: 1px dashed var(--line-2); padding-bottom: 18px;
}
.price-amount {
  font-family: var(--display);
  font-weight: 400;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.015em;
  color: var(--ink);
}
.price-period {
  font-size: 12px; color: var(--ink-soft); font-family: var(--mono);
}
.price-desc { margin: 0; color: var(--ink-mute); font-size: 14px; }
.price-feat {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.price-feat li {
  position: relative; padding-left: 22px;
  font-size: 14px; color: var(--ink);
}
.price-feat li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.price-card .btn { align-self: stretch; justify-content: center; }
.price-card-featured {
  background:
    radial-gradient(circle at 30% 0%, rgba(214,255,78,.10), transparent 55%),
    linear-gradient(180deg, #1a1f17, #15171c);
  border-color: color-mix(in srgb, var(--accent) 36%, transparent);
  box-shadow: 0 30px 90px rgba(214, 255, 78, 0.06);
}
.badge-featured {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #15171c;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.price-card-quiet {
  background: transparent;
  border-style: dashed;
}

/* ========================
   Vision (side-by-side diptych)
======================== */
.section-manifesto .section-head {
  max-width: 70ch;
  margin-bottom: 56px;
}
.vision-diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  max-width: 1100px;
  position: relative;
}
.vision-diptych::before {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--accent) 40%, transparent) 40%,
    color-mix(in srgb, var(--accent) 40%, transparent) 60%,
    transparent
  );
  transform: translateX(-50%);
  pointer-events: none;
}
.vision-pane {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.005em;
  max-width: 52ch;
}
.vision-pane--quiet {
  font-size: clamp(20px, 2.3vw, 28px);
  color: rgba(156, 156, 145, 1);
  text-align: right;
}
.vision-pane--loud {
  font-size: clamp(22px, 2.7vw, 28px);
  color: var(--ink);
}
.vision-pane--loud em {
  font-family: var(--italic);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

@media (max-width: 760px) {
  .vision-diptych {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .vision-diptych::before { display: none; }
}
/* ========================
   FAQ
======================== */
.faq-list { display: flex; flex-direction: column; gap: 0; width: 100%; }
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center;
  list-style: none; cursor: pointer;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(18px, 2.1vw, 22px);
  letter-spacing: -.01em;
  gap: 24px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.plus {
  width: 22px; height: 22px;
  flex-shrink: 0;
  position: relative; color: var(--ink-mute);
  transition: transform .3s ease, color .3s ease;
}
.plus::before, .plus::after {
  content: ""; position: absolute; background: currentColor;
}
.plus::before { left: 0; right: 0; top: 50%; height: 1.5px; transform: translateY(-50%); }
.plus::after  { top: 0; bottom: 0; left: 50%; width: 1.5px; transform: translateX(-50%); transition: transform .3s ease; }
.faq-list details.is-open .plus { color: var(--accent); transform: rotate(45deg); }
.faq-answer {
  overflow: hidden;
  height: 0;
  transition: height .45s cubic-bezier(.4, 0, .2, 1);
}
.faq-answer-inner { min-height: 0; }
.faq-list details p {
  margin: 14px 0 0; color: var(--ink-mute); font-size: 16px;
  max-width: 64ch; line-height: 1.65;
  font-family: var(--sans);
}
@media (prefers-reduced-motion: reduce) {
  .faq-answer { transition: none; }
}
.faq-list a { color: var(--accent); border-bottom: 1px dashed currentColor; }

/* ========================
   CTA
======================== */
.section-cta {
  padding-top: var(--gutter);
  padding-bottom: 60px;
}
.cta-card {
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(circle at 75% 80%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 65%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-2);
  border-radius: 24px;
  padding: clamp(48px, 7vw, 88px);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-card h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 4.7vw, 62px);
  line-height: 1;
  letter-spacing: -.015em;
  margin: 0 0 16px;
  max-width: 20ch;
  margin-inline: auto;
  overflow: visible;
}
.cta-card h2 .accent {
  color: var(--accent);
  display: inline-block;
  position: relative;
  isolation: isolate;
  overflow: visible;
  font-style: normal;
}
.cta-card h2 .accent::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 6%;
  height: 14%;
  background: var(--accent);
  opacity: .45;
  transform: skewX(-12deg);
  z-index: -1;
}
.cta-card > p {
  margin: 0 auto; color: var(--ink-mute);
  max-width: 56ch; font-size: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.cta-actions {
  margin: 32px auto 0;
  display: flex;
  justify-content: center;
}

/* ========================
   Footer
======================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 70px var(--gutter) 28px;
  max-width: var(--maxw); margin: 0 auto;
}
.footer-top {
  display: grid; grid-template-columns: 1fr 2fr; gap: 56px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p { color: var(--ink-mute); font-size: 14px; max-width: 32ch; margin: 14px 0 0; }
.footer-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.footer-cols h5 {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-soft); margin: 0 0 16px;
  font-weight: 500;
}
.footer-cols a {
  display: block; font-size: 14px; padding: 6px 0;
  color: var(--ink); transition: color .2s ease;
}
.footer-cols a:hover { color: var(--accent); }
.footer-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-soft);
}
.footer-tagline {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}

/* ========================
   Cookie banner
======================== */
.cookie-banner {
  position: fixed;
  left: 24px; bottom: 24px; right: 24px;
  z-index: 200;
  display: flex; justify-content: flex-start;
  animation: cookie-in .35s ease;
}
.cookie-banner[hidden] {
  display: none !important;
}
@keyframes cookie-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 22px 24px;
  max-width: 480px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
}
.cookie-card h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 19px;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
.cookie-card > p { margin: 0; color: var(--ink-mute); font-size: 14px; }
.cookie-card a { color: var(--accent); border-bottom: 1px dashed currentColor; }
.cookie-toggles {
  display: flex; flex-direction: column; gap: 10px;
  margin: 18px 0 22px;
}
.cookie-toggles label {
  display: grid; grid-template-columns: 18px 1fr; gap: 10px;
  align-items: flex-start;
  font-size: 13px; color: var(--ink-mute); line-height: 1.45;
}
.cookie-toggles input { accent-color: var(--accent); margin-top: 2px; }
.cookie-toggles strong { color: var(--ink); font-weight: 600; }
.cookie-actions {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
}

/* ========================
   Privacy page
======================== */
.legal {
  max-width: 820px; margin: 0 auto;
  padding: 60px var(--gutter) 100px;
}
.legal h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 5.2vw, 56px);
  letter-spacing: -.015em;
  margin: 16px 0 12px;
}
.legal .updated {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  text-transform: uppercase; letter-spacing: .12em;
}
.legal h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  margin: 56px 0 14px;
  letter-spacing: -.01em;
}
.legal h3 {
  font-family: var(--sans); font-weight: 600;
  font-size: 16px; margin: 24px 0 8px;
}
.legal p, .legal li {
  font-size: 16px; color: var(--ink); line-height: 1.7;
}
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent); border-bottom: 1px dashed currentColor; }
.legal table {
  width: 100%; border-collapse: collapse; margin: 16px 0 8px;
  font-size: 14px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border-radius: 10px;
  overflow: hidden;
}
.legal th, .legal td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px; text-align: left; vertical-align: top;
}
.legal th {
  font-family: var(--mono); font-size: 12px;
  color: var(--accent);
  text-transform: uppercase; letter-spacing: .08em;
  font-weight: 500;
  background: rgba(214,255,78,.04);
}
.legal-toc {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 22px; margin: 30px 0 40px;
}
.legal-toc h4 {
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: .14em;
  margin: 0 0 10px; color: var(--accent);
  font-weight: 500;
}
.legal-toc ol { margin: 0; padding-left: 22px; }
.legal-toc li { font-size: 14px; color: var(--ink); }
.legal-toc a { border: 0; }

/* ========================
   Reveal-on-scroll
======================== */
.fade-in {
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in.is-visible {
  opacity: 1; transform: translateY(0);
}

/* ========================
   Responsive
======================== */
@media (max-width: 980px) {
  .topbar { grid-template-columns: auto 1fr auto; gap: 16px; padding-inline: 20px; }
  .nav { display: none; }
  .nav-toggle { display: inline-block; }

  .hero-foot { grid-template-columns: 1fr; }
  .hero-foot-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-foot-cell:last-child { border-bottom: 0; }

  .feature-grid, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-wide { grid-column: span 2; }
  .feature-full { grid-column: 1 / -1; }
  .feature-grid--flex { grid-template-columns: repeat(6, 1fr); }
  .feature-grid--flex .feature-span-3 { grid-column: span 2; }
  .feature-grid--flex .feature-span-4 { grid-column: span 2; }
  .feature-grid--flex .feature-span-5 { grid-column: span 3; }
  .feature-grid--flex .feature-span-6 { grid-column: span 3; }
  .feature-grid--flex .feature-span-7 { grid-column: span 3; }
  .feature-grid--flex .feature-span-8 { grid-column: span 4; }
  .feature-grid--flex .feature-span-9 { grid-column: span 4; }
  .feature-grid--flex .feature-span-12 { grid-column: span 6; }
  .gap-grid { grid-template-columns: 1fr; }
  .gap-arrow { transform: rotate(90deg); margin: 0 auto; }
  .how-step { grid-template-columns: 1fr; gap: 14px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .footer-bot { flex-direction: column; gap: 10px; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .topbar-actions .link-underline { display: none; }
  .feature-grid, .price-grid, .footer-cols { grid-template-columns: 1fr; }
  .feature-wide { grid-column: span 1; }
  .feature-full { grid-column: 1 / -1; }
  .feature-grid--flex .feature[class*="feature-span"] { grid-column: 1 / -1; }
  .how-stats { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
  .how-stats > div { padding: 18px 20px; font-size: 13px; }
  .how-stats > div span { font-size: 24px; }
  .how-stats > div:nth-child(2n) { border-right: 0; }
  .how-stats > div:nth-child(1),
  .how-stats > div:nth-child(2),
  .how-stats > div:nth-child(3),
  .how-stats > div:nth-child(4) { border-bottom: 1px solid var(--line); }
  .how-stats > div:nth-child(5) { grid-column: 1 / -1; border-right: 0; }
  .price-toggle { width: 100%; justify-content: stretch; }
  .price-toggle button { flex: 1; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}

/* Mobile nav drawer */
.nav-drawer {
  position: fixed; inset: 64px 0 0 0;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  padding: 30px var(--gutter);
  display: flex; flex-direction: column; gap: 18px;
  z-index: 40;
  transform: translateY(-120%);
  transition: transform .35s ease;
}
.nav-drawer.is-open { transform: translateY(0); }
.nav-drawer a {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  padding: 6px 0;
  letter-spacing: -.01em;
}
.nav-drawer .btn { align-self: flex-start; margin-top: 12px; }
