/* ============================
   Error Nil — digital 2026 redesign
   ============================ */

:root {
  --bg: #efece3;
  --bg-2: #e7e3d6;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --mute: #6a6a63;
  --mute-2: #a8a59a;
  --line: #d8d3c4;
  --line-2: #c8c2b0;
  --accent: #356837;
  --accent-2: #c4ff3d;
  --paper: #f6f3ec;
  --font-display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-accent: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --code-bg: #0a0a0a;
  --code-fg: #e8e6df;
  --code-bar: #1f1f1f;
  --max: 1440px;
  --pad: clamp(20px, 4vw, 64px);
  --radius: 22px;
  --radius-sm: 14px;
  --t-fast: 220ms cubic-bezier(.2,.7,.2,1);
  --t: 480ms cubic-bezier(.2,.7,.2,1);
  --t-slow: 900ms cubic-bezier(.2,.7,.2,1);
}

[data-theme="dark"] {
  --bg: #0c0c0e;
  --bg-2: #131316;
  --ink: #f1eee5;
  --ink-2: #d6d3ca;
  --mute: #8e8b80;
  --mute-2: #5a5750;
  --line: #25241f;
  --line-2: #36342d;
  --accent: #7c6bff;
  --accent-2: #c4ff3d;
  --paper: #16161a;
  --code-bg: #050507;
  --code-fg: #e8e6df;
  --code-bar: #1a1a1d;
}

/* Invert the dark-styled price card in dark theme so it stays visually distinct */
[data-theme="dark"] .price-card.dark {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: 0 30px 80px -30px color-mix(in oklab, var(--accent) 50%, transparent);
}
[data-theme="dark"] .price-card.dark .price-old { color: var(--mute); }
[data-theme="dark"] .price-card.dark .price-meta { color: var(--mute); }
[data-theme="dark"] .price-card.dark .feature { border-color: var(--line); }
[data-theme="dark"] .price-card.dark .feature::before { color: var(--accent); }

/* Logo: ensure NIL text stays legible on the lavender chip */
[data-theme="dark"] .logo-nil { fill: var(--bg); }

/* Code window stays dark in both themes — keep as-is */
.code-window { background: var(--code-bg); color: var(--code-fg); }
.code-bar { border-bottom-color: var(--code-bar) !important; }
.code-bar .dot { background: var(--code-bar); }

[data-font="editorial"] {
  --font-display: 'Cormorant Garamond', 'Onest', Georgia, serif;
  --font-body: 'Onest', system-ui, sans-serif;
}
[data-font="techno"] {
  --font-display: 'Space Grotesk', 'Onest', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', 'Onest', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}
[data-font="mono"] {
  --font-display: 'JetBrains Mono', ui-monospace, monospace;
  --font-body: 'JetBrains Mono', ui-monospace, monospace;
}
[data-font="geometric"] {
  --font-display: 'Tektur', 'Unbounded', sans-serif;
  --font-body: 'PT Sans', 'Onest', system-ui, sans-serif;
}

html, body, h1, h2, h3, h4, .mono, .eyebrow {
  transition: font-variation-settings 200ms ease;
}


html, body { transition: background-color 400ms ease, color 400ms ease; }
.bento-card, .price-card, .aud-card, .review, .site-header, .site-footer, .spec-card, .code-window {
  transition: background-color 400ms ease, color 400ms ease, border-color 400ms ease;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.45;
  font-feature-settings: "ss01", "ss02", "cv11";
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--ink); color: var(--bg); }

/* ---- Typography ---- */
.mono {
  font-family: var(--font-mono);
  font-feature-settings: "ss01", "ss02";
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 21px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 400;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.045em;
  margin: 0;
  line-height: 0.96;
}
h1 { font-size: clamp(56px, 9vw, 168px); font-weight: 400; }
h2 { font-size: clamp(40px, 6.4vw, 104px); font-weight: 400; }
h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.03em; line-height: 1.08; }
h4 { font-size: 17px; letter-spacing: -0.01em; line-height: 1.2; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 0 var(--pad);
  margin-bottom: clamp(48px, 8vw, 120px);
  flex-wrap: wrap;
}
.section-head h2 { max-width: 18ch; }
.section-head .meta {
  display: flex; flex-direction: column; gap: 8px;
  align-items: flex-end;
  text-align: right;
  min-width: 180px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ============================
   Background ambient
   ============================ */
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.ambient::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  left: var(--mx, 30%); top: var(--my, 20%);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 22%, transparent), transparent 70%);
  filter: blur(60px);
  opacity: 0.55;
  transition: left 1200ms cubic-bezier(.2,.7,.2,1), top 1200ms cubic-bezier(.2,.7,.2,1);
}
.ambient::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 40%, black, transparent 70%);
  opacity: 0.6;
}
main, header, footer { position: relative; z-index: 1; }

/* ============================
   Header
   ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 18px var(--pad);
  display: flex; align-items: center; gap: 24px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 8%, transparent);
}
.logo {
  display: flex; align-items: center;
  color: var(--ink);
  transition: opacity var(--t-fast);
}
.logo:hover { opacity: 0.75; }
.logo-svg {
  height: 26px;
  width: auto;
  display: block;
}
.logo-chip {
  fill: var(--accent);
  transition: fill var(--t-fast);
}
.logo-nil {
  fill: var(--bg);
  transition: fill var(--t-fast);
}
.foot-tag .logo-svg {
  height: clamp(40px, 6vw, 64px);
}
.nav {
  display: flex; gap: 4px;
  margin-left: 40px;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  transition: background var(--t-fast);
}
.nav a:hover { background: color-mix(in oklab, var(--ink) 7%, transparent); }
.spacer { flex: 1; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}
.btn-ghost {
  border: 1px solid color-mix(in oklab, var(--ink) 15%, transparent);
  background: transparent;
}
.btn-ghost:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.btn-ink {
  background: var(--ink); color: var(--bg);
}
.btn-ink:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn-accent {
  background: var(--accent); color: white;
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -10px var(--accent); }
.btn-lg {
  padding: 18px 26px;
  font-size: 16px;
  border-radius: 999px;
}

.btn .arrow {
  width: 18px; height: 18px;
  display: inline-grid; place-items: center;
  transition: transform var(--t-fast);
}
.btn:hover .arrow { transform: translateX(3px); }

.header-cta {
  display: flex; gap: 8px;
  align-items: center;
}

.theme-btn {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--ink) 15%, transparent);
  background: transparent;
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.theme-btn:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); transform: rotate(12deg); }
.theme-btn svg { width: 18px; height: 18px; position: absolute; inset: 0; margin: auto; transition: transform 500ms cubic-bezier(.6,-0.2,.4,1.2), opacity 280ms ease; }
.theme-btn .i-sun { transform: rotate(0deg) scale(1); opacity: 1; }
.theme-btn .i-moon { transform: rotate(-90deg) scale(0.4); opacity: 0; }
[data-theme="dark"] .theme-btn .i-sun { transform: rotate(90deg) scale(0.4); opacity: 0; }
[data-theme="dark"] .theme-btn .i-moon { transform: rotate(0deg) scale(1); opacity: 1; }

/* ============================
   Hero
   ============================ */
.hero {
  padding: clamp(60px, 9vw, 120px) var(--pad) clamp(80px, 10vw, 160px);
  position: relative;
}
.hero-top {
  display: flex; justify-content: space-between; gap: 40px;
  margin-bottom: clamp(60px, 8vw, 120px);
  flex-wrap: wrap;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--bg) 30%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  font-size: 13px;
  color: var(--ink-2);
}
.hero-tag .live {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: #2ecc71;
  position: relative;
}
.hero-tag .live::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 999px;
  background: #2ecc71;
  opacity: 0.35;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(.6); opacity: .5; }
  100% { transform: scale(2.5); opacity: 0; }
}

.hero-meta {
  display: flex; flex-direction: column; gap: 6px;
  text-align: right;
  font-size: 13px;
  color: var(--mute);
}

.hero-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-title .line:nth-child(1) > span { animation-delay: .1s; }
.hero-title .line:nth-child(2) > span { animation-delay: .2s; }
.hero-title .line:nth-child(3) > span { animation-delay: .3s; }
.hero-title .accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.03em;
}
@keyframes rise {
  to { transform: translateY(0); }
}

.hero-foot {
  margin-top: clamp(50px, 7vw, 90px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: end;
}
.hero-sub {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.35;
  color: var(--ink-2);
  max-width: 38ch;
  letter-spacing: -0.015em;
  font-weight: 400;
}
.hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.hero-price-tag {
  display: flex; flex-direction: column; gap: 2px;
  margin-right: 16px;
  text-align: right;
}
.hero-price-tag b {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.03em;
}
.hero-price-tag span {
  font-size: 12px;
  color: var(--mute);
  font-family: var(--font-mono);
}

/* code window */
.code-strip {
  margin: clamp(60px, 8vw, 100px) var(--pad) 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.code-window {
  background: #0a0a0a;
  border-radius: var(--radius);
  padding: 18px 24px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #e8e6df;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}
.code-window::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--accent) 70%, transparent), transparent);
}
.code-bar {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid #1f1f1f;
  margin-bottom: 14px;
}
.code-bar .dots { display: flex; gap: 6px; }
.code-bar .dot {
  width: 11px; height: 11px;
  border-radius: 999px;
  background: #2a2a2a;
}
.code-bar .file {
  font-size: 11px;
  color: #6a6a63;
  margin-left: 12px;
}
.code-bar .file span { color: #e8e6df; }
.code-window pre {
  margin: 0;
  white-space: pre;
  min-height: 280px;
}
.tok-kw { color: #ff7ab6; }
.tok-type { color: #b4d2ff; }
.tok-str { color: #ffd479; }
.tok-num { color: #ffd479; }
.tok-fn { color: #82e0ff; }
.tok-prop { color: #a5d6ff; }
.tok-cm { color: #5f6064; font-style: italic; }
.tok-acc { color: var(--accent-2); }
.caret {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--accent-2);
  vertical-align: -2px;
  margin-left: 1px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.spec-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.spec-card h4 { color: var(--mute); font-weight: 400; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; font-family: var(--font-mono);}
.spec-rows { display: grid; gap: 14px; flex: 1; }
.spec-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px dashed var(--line-2); padding-bottom: 12px; }
.spec-row:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-row .k { color: var(--mute); font-size: 13px; font-family: var(--font-mono); }
.spec-row .v { font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: -0.04em;}
.spec-row .v small { font-size: 12px; color: var(--mute); font-family: var(--font-mono); letter-spacing: 0; font-weight: 400; margin-left: 4px;}

/* Marquee */
.marquee {
  margin: clamp(40px, 5vw, 80px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  --m-speed: 38s;
}
.marquee-track {
  display: flex; gap: 60px;
  animation: marquee var(--m-speed) linear infinite;
  width: max-content;
  will-change: transform;
}
.marquee-item {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -0.04em;
  font-weight: 400;
  white-space: nowrap;
}
.marquee-item .star {
  width: 26px; height: 26px; color: var(--accent);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================
   Section
   ============================ */
section { padding: clamp(80px, 12vw, 180px) 0; position: relative; }
section + section { padding-top: 0; }

/* ---- What & How (bento) ---- */
.bento {
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.bento-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  gap: 18px;
  min-height: 280px;
  transition: transform var(--t-fast), border-color var(--t-fast);
}
.bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}
.bento-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mute);
  display: flex; justify-content: space-between; align-items: center;
}
.bento-card .num .plus {
  width: 14px; height: 14px;
  position: relative;
}
.bento-card .num .plus::before,
.bento-card .num .plus::after {
  content: ''; position: absolute; background: var(--ink); top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.bento-card .num .plus::before { width: 14px; height: 1px; }
.bento-card .num .plus::after { width: 1px; height: 14px; }

.bento-card h3 { margin-top: auto; max-width: 22ch; }
.bento-card p {
  color: var(--mute);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  max-width: 36ch;
}

.bento-card.c01 { grid-column: span 5; }
.bento-card.c02 { grid-column: span 7; }
.bento-card.c03 { grid-column: span 4; }
.bento-card.c04 { grid-column: span 4; }
.bento-card.c05 { grid-column: span 4; }
.bento-card.c06 { grid-column: span 12; min-height: 320px; }

.bento-card.c06 { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 30px; }
.bento-card.c06 h3 { font-size: clamp(28px, 3vw, 44px); max-width: 16ch; }
.bento-card.c06 .pulse-bg {
  position: absolute;
  width: 600px; height: 600px;
  right: -200px; top: -200px;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 28%, transparent), transparent 60%);
  filter: blur(40px);
}

.bento-visual {
  position: absolute;
  top: 24px; right: 24px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.04em;
}

/* ============================
   Pricing
   ============================ */
.pricing {
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: flex; flex-direction: column;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.price-card.dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.price-card.dark .price-old { color: var(--mute-2); }
.price-card.dark .price-meta { color: color-mix(in oklab, var(--paper) 60%, transparent); }
.price-card.dark .feature { border-color: #2a2a2a; }
.price-card .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}
.price-card .price-row {
  display: flex; align-items: baseline; gap: 14px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: clamp(54px, 7vw, 96px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}
.price-old {
  font-family: var(--font-display);
  font-size: 24px;
  text-decoration: line-through;
  color: var(--mute);
  letter-spacing: -0.03em;
}
.price-meta { color: var(--mute); font-size: 14px; max-width: 38ch; }
.price-features {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 8px;
}
.feature {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.feature::before {
  content: '→';
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 14px;
}
.price-card.dark .feature::before { color: var(--accent-2); }
.price-cta {
  margin-top: auto;
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}

/* ============================
   Flow
   ============================ */
.flow {
  padding: 0 var(--pad);
  position: relative;
}
.flow-line {
  position: absolute;
  left: var(--pad); right: var(--pad);
  top: 90px;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.flow-line::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%; width: var(--w, 0%);
  background: var(--ink);
  transition: width 1.2s cubic-bezier(.2,.7,.2,1);
}
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.flow-step {
  display: flex; flex-direction: column;
  gap: 18px;
  padding-top: 0;
}
.flow-node {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}
.flow-step.is-on .flow-node {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.flow-step h3 { font-size: clamp(22px, 2.4vw, 32px); }
.flow-step p { color: var(--mute); font-size: 14px; line-height: 1.55; max-width: 28ch; margin: 0;}

/* ============================
   For who
   ============================ */
.audience {
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.aud-card {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 380px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  position: relative;
  overflow: hidden;
}
.aud-card:hover { background: var(--paper); border-color: var(--ink); transform: translateY(-3px);}
.aud-card .ix {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mute);
}
.aud-card h3 { font-size: clamp(24px, 2.4vw, 32px); max-width: 12ch; }
.aud-card .glyph {
  width: 100%; height: 80px;
  display: flex; align-items: flex-end; justify-content: flex-end;
}
.aud-card .glyph svg { width: 70px; height: 70px; color: var(--ink); opacity: 0.85; }

/* ============================
   Program
   ============================ */
.program {
  padding: 0 var(--pad);
}
.program-stats {
  display: flex; gap: clamp(40px, 6vw, 100px);
  margin-bottom: clamp(40px, 6vw, 80px);
  flex-wrap: wrap;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(60px, 9vw, 140px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.9;
  display: flex; align-items: flex-start; gap: 4px;
}
.stat .num sup { font-size: 0.4em; font-family: var(--font-mono); color: var(--mute); margin-top: 0.3em; }
.stat .label { color: var(--mute); font-size: 14px; max-width: 16ch; margin-top: 10px; }

.modules { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.module {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  display: grid;
  grid-template-columns: 80px 1.5fr 2fr 60px;
  grid-template-areas: "num name content toggle";
  gap: 30px;
  align-items: start;
  cursor: pointer;
  transition: padding var(--t-fast);
}
.module .m-num { grid-area: num; }
.module .m-name { grid-area: name; }
.module .m-content { grid-area: content; }
.module .m-toggle { grid-area: toggle; }
.module:hover { padding-left: 8px; }
.module .m-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mute);
  padding-top: 6px;
}
.module .m-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}
.module .m-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
  font-size: 14px;
  color: var(--ink-2);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}
.module.is-open .m-list { max-height: 600px; }
.module .m-list li {
  list-style: none;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-2);
  display: flex; gap: 14px; align-items: baseline;
}
.module .m-list .ix {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mute);
  min-width: 22px;
}
.module ul { margin: 0; padding: 0; }
.module .m-toggle {
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  justify-self: end;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
  position: relative;
}
.module .m-toggle::before,
.module .m-toggle::after {
  content: ''; position: absolute;
  background: currentColor;
  transition: transform var(--t-fast);
}
.module .m-toggle::before { width: 14px; height: 1.5px; }
.module .m-toggle::after { width: 1.5px; height: 14px; }
.module.is-open .m-toggle { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.module.is-open .m-toggle::after { transform: scaleY(0); }
.module .m-preview {
  font-size: 14px;
  color: var(--mute);
  line-height: 1.5;
  padding-top: 16px;
  transition: opacity var(--t-fast);
}
.module.is-open .m-preview { display: none; }

/* ============================
   Reviews
   ============================ */
.reviews { padding: 0; }
.reviews-track-wrap {
  overflow: hidden;
  padding: 12px 0;
  --r-speed: 80s;
}
.reviews-track {
  display: flex; gap: 16px;
  width: max-content;
  animation: marquee var(--r-speed) linear infinite;
  padding: 0 8px;
}
.reviews-track:hover { animation-play-state: paused; }
.reviews-row + .reviews-row .reviews-track { animation-direction: reverse; --r-speed: 95s; }

.review {
  width: clamp(360px, 30vw, 460px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column;
  gap: 18px;
  flex: 0 0 auto;
  transition: border-color var(--t-fast);
}
.review:hover { border-color: var(--ink); }
.review-head {
  display: flex; align-items: center; gap: 14px;
}
.avatar {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.04em;
  font-weight: 400;
}
.review .name { font-weight: 500; font-size: 15px; }
.review .handle {
  display: block; font-size: 12px; color: var(--mute);
  font-family: var(--font-mono);
}
.review p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  letter-spacing: -0.005em;
}

/* ============================
   CTA
   ============================ */
.cta {
  padding: clamp(80px, 12vw, 180px) var(--pad);
  text-align: center;
  position: relative;
}
.cta h2 {
  font-size: clamp(50px, 9vw, 160px);
  max-width: 16ch;
  margin: 0 auto;
}
.cta .sub {
  margin: 30px auto 0;
  max-width: 50ch;
  color: var(--mute);
  font-size: clamp(16px, 1.4vw, 19px);
}
.cta .cta-buttons {
  margin-top: 50px;
  display: flex; gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================
   Footer
   ============================ */
.site-footer {
  padding: 60px var(--pad) 36px;
  border-top: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 60%, var(--paper));
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.foot-col h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 16px;
  font-weight: 400;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.foot-col a:hover { color: var(--accent); }
.foot-tag {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}
.foot-meta {
  color: var(--mute);
  font-size: 12px;
  font-family: var(--font-mono);
  max-width: 45ch;
}
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--mute);
  font-family: var(--font-mono);
}
.foot-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ============================
   Reveal animations
   ============================ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--t), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

/* ============================
   Responsive
   ============================ */
@media (max-width: 1080px) {
  .nav { display: none; }
  .code-strip { grid-template-columns: 1fr; }
  .bento-card.c01,
  .bento-card.c02 { grid-column: span 12; }
  .bento-card.c03,
  .bento-card.c04,
  .bento-card.c05 { grid-column: span 6; }
  .pricing { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .flow-line { display: none; }
  .audience { grid-template-columns: repeat(2, 1fr); }
  .module {
    grid-template-columns: 50px 1fr 60px;
    grid-template-areas:
      "num name toggle"
      "num content content";
    gap: 16px 24px;
  }
  .module .m-num { grid-area: num; }
  .module .m-name { grid-area: name; }
  .module .m-content { grid-area: content; }
  .module .m-toggle { grid-area: toggle; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-foot { grid-template-columns: 1fr; }
  .hero-ctas { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .header-cta .btn-ghost { display: none; }
  .bento-card.c03,
  .bento-card.c04,
  .bento-card.c05 { grid-column: span 12; }
  .bento-card.c06 { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
  .module {
    grid-template-columns: 36px 1fr 40px;
    grid-template-areas:
      "num name toggle"
      "content content content";
    gap: 12px 14px;
  }
  .module .m-list { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  h1 { font-size: 56px; }
  .review { width: 88vw; }
  section.cta h2 { font-size: 38px; }
  h1.hero-title { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ============================================================
   MODALS · shared between index.html and modals.html
   ============================================================ */

.modal {
  position: fixed; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 24px;
}
.modal[data-open="true"] { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: color-mix(in oklab, #0a0a0a 50%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  animation: modal-backdrop-in 320ms cubic-bezier(.2,.7,.2,1) both;
}
@keyframes modal-backdrop-in {
  from { opacity: 0; backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); }
}

.modal-card {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: clamp(20px, 2vw, 28px);
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: clamp(28px, 4vw, 56px);
  box-shadow:
    0 50px 100px -20px rgba(0,0,0,0.35),
    0 1px 0 color-mix(in oklab, #fff 60%, transparent) inset;
  animation: modal-card-in 480ms cubic-bezier(.2,.8,.2,1) both;
}
@keyframes modal-card-in {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
}
.modal-card.modal-narrow { width: min(480px, 100%); }
.modal-card.modal-wide { width: min(960px, 100%); }

.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
  z-index: 2;
}
.modal-close:hover {
  background: color-mix(in oklab, var(--ink) 6%, transparent);
  border-color: var(--ink);
  transform: rotate(90deg);
}
.modal-close svg { width: 16px; height: 16px; }

.modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.modal-eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 25%, transparent);
}

.modal-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
  font-size: clamp(32px, 5vw, 56px);
  margin: 0 0 12px;
  max-width: 16ch;
}
.modal-title .accent {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--accent);
}
.modal-sub {
  color: var(--mute);
  font-size: 15px;
  max-width: 48ch;
  margin: 0 0 32px;
  line-height: 1.55;
}

/* Form fields */
.form-section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 14px;
}
.field-group {
  display: flex; flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.field {
  position: relative;
  display: flex; align-items: stretch;
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 18px 22px;
  font: 400 15px/1.2 var(--font-body);
  color: var(--ink);
  letter-spacing: -0.005em;
  transition: border-color var(--t-fast), background var(--t-fast);
  outline: none;
}
.field textarea {
  border-radius: 18px;
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--mute-2); }
.field input:hover,
.field textarea:hover { border-color: var(--mute); }
.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
  background: color-mix(in oklab, var(--bg) 50%, transparent);
}
.field.has-prefix input { padding-left: 56px; }
.field .prefix {
  position: absolute;
  left: 22px; top: 50%;
  transform: translateY(-50%);
  color: var(--mute);
  font-family: var(--font-mono);
  font-size: 14px;
  pointer-events: none;
}
.field .hint {
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  color: var(--mute);
  font-family: var(--font-mono);
  font-size: 11px;
}
.field.float input,
.field.float textarea {
  padding-top: 26px;
  padding-bottom: 10px;
  border-radius: 18px;
}
.field.float label {
  position: absolute;
  left: 22px; top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  pointer-events: none;
}

/* Price strip */
.price-strip {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border: 1px dashed var(--line-2);
  border-radius: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.price-strip .price-label { color: var(--mute); font-size: 14px; }
.price-strip .price-value {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.04em;
  font-weight: 400;
}
.price-strip .price-value small {
  font-family: var(--font-mono);
  color: var(--mute);
  font-size: 12px;
  letter-spacing: 0;
  margin-left: 6px;
  font-weight: 400;
}

/* Modal actions row */
.modal-actions {
  display: flex; gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.modal-actions .terms {
  color: var(--mute);
  font-size: 12px;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
  font-family: var(--font-mono);
  letter-spacing: 0;
}
.modal-actions .terms a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Steps indicator */
.steps {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mute);
}
.steps .step { display: flex; align-items: center; gap: 8px; color: var(--mute); }
.steps .step .num {
  width: 22px; height: 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-size: 11px;
}
.steps .step.is-active { color: var(--ink); }
.steps .step.is-active .num { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.steps .step.is-done .num { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.steps .seg { flex: 1; height: 1px; background: var(--line-2); max-width: 40px; }

/* Plan radio cards */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}
.plan { display: block; cursor: pointer; position: relative; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-card {
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 20px;
  transition: border-color var(--t-fast), background var(--t-fast);
  display: flex; flex-direction: column; gap: 6px;
}
.plan:hover .plan-card { border-color: var(--mute); }
.plan input:checked + .plan-card {
  border-color: var(--ink);
  background: color-mix(in oklab, var(--accent) 12%, transparent);
}
.plan-card .p-name {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}
.plan-card .p-price {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.04em;
  font-weight: 400;
}
.plan-card .p-price small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mute);
  margin-left: 4px;
}
.plan-card .p-note { font-size: 12px; color: var(--mute); }

/* Success state */
.success-mark {
  width: 80px; height: 80px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  display: grid; place-items: center;
  margin: 0 0 28px;
  position: relative;
}
.success-mark::after {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.35;
  z-index: -1;
  animation: modal-pulse 1.8s ease-out infinite;
}
@keyframes modal-pulse {
  0% { transform: scale(.85); opacity: .4; }
  100% { transform: scale(1.4); opacity: 0; }
}
.success-mark svg { width: 32px; height: 32px; }

/* Info list */
.info-list { display: flex; flex-direction: column; margin-bottom: 28px; }
.info-list .row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px dashed var(--line-2);
  font-size: 14px;
}
.info-list .row:first-child { border-top: 0; }
.info-list .k { color: var(--mute); font-family: var(--font-mono); font-size: 13px; }
.info-list .v { font-weight: 500; }

/* Danger / destructive */
.modal-card.danger { border-color: color-mix(in oklab, #e21b3c 50%, var(--line)); }
.danger-mark {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: color-mix(in oklab, #e21b3c 12%, transparent);
  color: #e21b3c;
  display: grid; place-items: center;
  margin-bottom: 24px;
}
.btn-danger { background: #e21b3c; color: white; }
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -10px #e21b3c; }


/* ============================================================
   MODALS DEMO PAGE · scoped to .modals-page only
   ============================================================ */

.modals-page .demo-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px clamp(20px, 4vw, 64px) 120px;
}
.modals-page .demo-head {
  display: flex; justify-content: space-between; gap: 24px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.modals-page .demo-head h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin: 0;
  max-width: 16ch;
}
.modals-page .demo-head .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex; flex-direction: column; gap: 6px;
  text-align: right;
}
.modals-page .demo-head .demo-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 25%, transparent);
}
.modals-page .theme-flip {
  border: 1px solid color-mix(in oklab, var(--ink) 15%, transparent);
  background: transparent;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font: 13px/1 var(--font-mono);
  cursor: pointer;
  margin-top: 12px;
  transition: background var(--t-fast);
}
.modals-page .theme-flip:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }

.modals-page .specimens {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.modals-page .specimen {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  gap: 22px;
  min-height: 220px;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.modals-page .specimen:hover { border-color: var(--ink); transform: translateY(-2px); }
.modals-page .specimen .ix {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mute);
  display: flex; justify-content: space-between; align-items: center;
}
.modals-page .specimen .ix .plus {
  width: 14px; height: 14px;
  position: relative;
}
.modals-page .specimen .ix .plus::before,
.modals-page .specimen .ix .plus::after {
  content: ''; position: absolute; background: var(--ink); top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.modals-page .specimen .ix .plus::before { width: 14px; height: 1px; }
.modals-page .specimen .ix .plus::after { width: 1px; height: 14px; }
.modals-page .specimen h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.035em;
  font-size: 22px;
  line-height: 1.1;
  margin: 0 0 4px;
}
.modals-page .specimen p {
  color: var(--mute);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  max-width: 32ch;
}

@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; }
  .modal { padding: 16px; }
  .modal-card { padding: 28px 22px; border-radius: 22px; }
  .modal-close { top: 14px; right: 14px; width: 36px; height: 36px; }
}

.payment-form .payment-options {
  margin: 25px 0 40px;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  display: flex;
}
.payment-form .payment-option {
  width: calc(50% - 10px);
  padding: 20px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.payment-form .payment-option input[type=radio] {
  display: none;
}
.payment-form .payment-option span {
  font-size: 17px;
  line-height: 1.2;
  color: #5a5a5a;
  font-weight: 300;
}
.payment-form .payment-option:hover {
  background: rgba(186, 177, 224, 0.05);
}
.payment-form .payment-option input[type=radio]:checked + span {
  font-weight: 400;
  color: #fff;
}
input[type=radio]:checked + .payment-form .payment-option {
  background: rgba(186, 177, 224, 0.1);
  border-color: #BAB1E0;
}