/* =========================================================
   Klick n Code design system
   Palette: green-black ink + one chartreuse accent.
   Radius rule: panels 20px, inner tiles 12px, controls full pill, inputs 12px.
   Type: Geist (display + body), Geist Mono (numbers, code, labels).
   ========================================================= */

:root {
  --bg: #0b0f0d;
  --bg-2: #101613;
  --surface: #141b17;
  --surface-2: #1a231e;
  --line: rgb(220 240 226 / 0.09);
  --line-strong: rgb(220 240 226 / 0.18);
  --text: #e7eee9;
  --muted: #9aa89f;
  --accent: #c8f55a;
  --accent-ink: #0b0f0d;
  --accent-text: #c8f55a;
  --accent-soft: rgb(200 245 90 / 0.12);
  --shadow: 0 24px 60px -24px rgb(0 8 4 / 0.7);
  --grain-opacity: 0.05;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-panel: 20px;
  --r-tile: 12px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 68px;

  /* z-index scale */
  --z-progress: 60;
  --z-nav: 50;
  --z-grain: 40;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f3f5f0;
  --bg-2: #eaeee6;
  --surface: #fbfcf9;
  --surface-2: #eef2ea;
  --line: rgb(17 26 20 / 0.1);
  --line-strong: rgb(17 26 20 / 0.2);
  --text: #111a14;
  --muted: #536058;
  --accent: #c8f55a;
  --accent-ink: #111a14;
  --accent-text: #3f6a0c;
  --accent-soft: rgb(120 170 30 / 0.14);
  --shadow: 0 24px 60px -28px rgb(30 50 30 / 0.28);
  --grain-opacity: 0.035;
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f5f0;
    --bg-2: #eaeee6;
    --surface: #fbfcf9;
    --surface-2: #eef2ea;
    --line: rgb(17 26 20 / 0.1);
    --line-strong: rgb(17 26 20 / 0.2);
    --text: #111a14;
    --muted: #536058;
    --accent-ink: #111a14;
    --accent-text: #3f6a0c;
    --accent-soft: rgb(120 170 30 / 0.14);
    --shadow: 0 24px 60px -28px rgb(30 50 30 / 0.28);
    --grain-opacity: 0.035;
    color-scheme: light;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.03em; font-weight: 650; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--r-pill); font-weight: 600;
  z-index: 100; text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* grain: fixed, non-scrolling layer */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: var(--z-grain);
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.accent { color: var(--accent-text); }
.lede { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 56ch; }
.h-display { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.045em; line-height: 1.02; }
.h-section { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -0.04em; }
.h-card { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.02em; }
.eyebrow {
  font-family: var(--mono); font-size: 0.8125rem; color: var(--accent-text);
  letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 8px;
}
.stack > * + * { margin-top: var(--stack, 20px); }
.mark {
  background: linear-gradient(transparent 62%, var(--accent-soft) 62%, var(--accent-soft) 92%, transparent 92%);
  padding-inline: 2px;
}

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: var(--z-progress);
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--accent); --b-fg: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  background: var(--b-bg); color: var(--b-fg); border: 1px solid transparent;
  font: 600 0.9844rem/1 var(--font); letter-spacing: -0.01em; text-decoration: none;
  white-space: nowrap; cursor: pointer;
  transition: transform .35s var(--ease), background-color .25s, border-color .25s, box-shadow .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn--primary { box-shadow: inset 0 -2px 0 rgb(0 0 0 / .12); }
.btn--primary:hover { box-shadow: inset 0 -2px 0 rgb(0 0 0 / .12), 0 10px 30px -10px rgb(200 245 90 / .55); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9063rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text);
  text-decoration: none; padding-block: 10px;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .35s var(--ease); color: var(--accent-text); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 1.0625rem; }
.brand svg { width: 32px; height: 32px; }
.nav__links { display: flex; gap: 4px; margin-inline: auto; }
.nav__links a {
  position: relative; display: block; padding: 8px 14px; border-radius: var(--r-pill);
  text-decoration: none; color: var(--muted); font-size: .9375rem; font-weight: 500;
  transition: color .2s, background-color .2s;
}
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--accent);
}
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--r-pill);
  background: transparent; border: 1px solid var(--line); color: var(--text); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--surface); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.menu-btn { display: none; }
.nav__links .nav__mobile-cta { display: none; }

@media (max-width: 1060px) {
  .icon-btn.menu-btn { display: inline-grid; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; margin: 0;
    flex-direction: column; gap: 0; padding: 12px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  }
  .nav__links a { padding: 14px 4px; font-size: 1.125rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__links a:hover { background: none; }
  .nav__links a[aria-current="page"]::after { left: auto; right: 4px; top: 50%; bottom: auto; margin-top: -2px; }
  .nav__links .nav__mobile-cta { display: flex; margin-top: 20px; border: 0; justify-content: center; color: var(--accent-ink); font-size: 1rem; border-radius: var(--r-pill); }
  .nav.is-open .nav__links { opacity: 1; transform: none; visibility: visible; transition: opacity .25s var(--ease), transform .35s var(--ease); }
}

/* theme menu */
.theme { position: relative; }
.theme__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-tile);
  box-shadow: var(--shadow); display: none;
}
.theme.is-open .theme__menu { display: block; }
.theme__menu button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 8px;
  background: none; color: var(--text); font: 500 .9063rem var(--font); cursor: pointer; text-align: left;
}
.theme__menu button:hover { background: var(--surface-2); }
.theme__menu button[aria-checked="true"]::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.theme__menu svg { width: 16px; height: 16px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy > * + * { margin-top: 24px; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 8px; }
.hero__art { position: relative; aspect-ratio: 1 / 1; }
.hero__art svg { width: 100%; height: 100%; overflow: visible; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 520px; width: 100%; margin-inline: auto; }
}

/* ambient field behind hero */
.field {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.field::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
}
.field::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000, transparent 75%);
}

/* page header for inner pages */
.page-hero { position: relative; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: end; }
.page-hero__art { max-width: 340px; justify-self: end; width: 100%; }
@media (max-width: 860px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__art { justify-self: start; max-width: 240px; }
}

/* ---------- Parallax (progressive: CSS scroll-driven) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    [data-depth] {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    [data-depth="1"] { --drift: -24px; }
    [data-depth="2"] { --drift: -56px; }
    [data-depth="3"] { --drift: -96px; }
    [data-depth="-1"] { --drift: 32px; }
    @keyframes drift {
      from { translate: 0 calc(var(--drift) * -1); }
      to { translate: 0 var(--drift); }
    }
  }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line); overflow: hidden; padding-block: 22px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; gap: 56px; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-family: var(--mono); font-size: .9375rem; white-space: nowrap; }
.marquee__item img { width: 22px; height: 22px; opacity: .8; }
:root[data-theme="light"] .marquee__item img { filter: invert(1) brightness(.35); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .marquee__item img { filter: invert(1) brightness(.35); } }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r-panel);
  background: var(--surface); border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px;
  isolation: isolate;
}
.tile--wide { grid-column: span 4; }
.tile--half { grid-column: span 3; }
.tile--third { grid-column: span 2; }
.tile--accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.tile--accent .muted { color: color-mix(in srgb, var(--accent-ink) 72%, transparent); }
.tile--deep { background: radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 60%), var(--surface-2); }
.tile__art { margin-top: auto; }
.tile__art svg { width: 100%; height: auto; }
.tile h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
.tile p { max-width: 44ch; }
/* spotlight border */
.tile::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgb(200 245 90 / .09), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.tile:hover::before { opacity: 1; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--wide, .tile--half { grid-column: span 2; }
  .tile--third { grid-column: span 1; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile--wide, .tile--half, .tile--third { grid-column: auto; }
}

.icon { width: 44px; height: 44px; border-radius: var(--r-tile); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.icon svg { width: 22px; height: 22px; }
.tile--accent .icon { background: rgb(11 15 13 / .1); color: var(--accent-ink); }

/* ---------- Process (sticky + drawing line) ---------- */
.process { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
.process__head { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
.process__head > * + * { margin-top: 20px; }
.steps { position: relative; padding-left: 48px; margin: 0; list-style: none; }
.steps__line { position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps__line span { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(1); }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .steps__line span { transform: scaleY(0); animation: fill linear both; animation-timeline: view(); animation-range: entry 40% exit 60%; }
    .steps { view-timeline-name: --steps; }
    .steps__line span { animation-timeline: --steps; animation-range: contain -20% contain 80%; }
    @keyframes fill { to { transform: scaleY(1); } }
  }
}
.step { position: relative; padding-bottom: clamp(40px, 6vw, 72px); }
.step:last-child { padding-bottom: 0; }
.step__dot {
  position: absolute; left: -48px; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-strong); display: grid; place-items: center;
}
.step__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.step h3 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); margin-bottom: 10px; }
.step p { color: var(--muted); max-width: 48ch; }
.step__meta { margin-top: 12px; font-family: var(--mono); font-size: .8125rem; color: var(--accent-text); }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; }
  .process__head { position: static; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__num { font-family: var(--mono); font-size: clamp(2.25rem, 4.5vw, 3.5rem); letter-spacing: -0.04em; line-height: 1; font-weight: 500; }
.stat__label { margin-top: 12px; color: var(--muted); font-size: .9375rem; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* ---------- Quote ---------- */
.quote { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.quote__glyph { width: clamp(56px, 8vw, 96px); color: var(--accent-text); }
.quote blockquote { margin: 0; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.25; letter-spacing: -0.025em; font-weight: 500; max-width: 30ch; text-wrap: balance; }
.quote figcaption { margin-top: 24px; display: flex; align-items: center; gap: 14px; }
.quote figcaption strong { display: block; font-weight: 600; }
.avatar {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--surface-2); border: 1px solid var(--line); font-family: var(--mono); font-weight: 600; color: var(--accent-text);
}
@media (max-width: 640px) { .quote { grid-template-columns: 1fr; } }

/* ---------- Testimonials wall ---------- */
.wall { columns: 3 300px; column-gap: 16px; }
.wall .card { break-inside: avoid; margin-bottom: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(22px, 3vw, 32px); }
.card p.said { font-size: 1.0625rem; line-height: 1.6; }
.who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.who strong { display: block; font-weight: 600; }
.tag { display: inline-flex; font-family: var(--mono); font-size: .75rem; padding: 3px 9px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--muted); }

/* ---------- Pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.tier {
  position: relative; display: flex; flex-direction: column; gap: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel);
  padding: clamp(24px, 3vw, 36px);
}
.tier--featured { background: var(--surface-2); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: var(--shadow); }
.tier__badge { position: absolute; top: 20px; right: 20px; font-family: var(--mono); font-size: .75rem; padding: 4px 10px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.tier__name { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.tier__price { font-family: var(--mono); font-size: clamp(2.5rem, 4vw, 3.25rem); letter-spacing: -0.05em; line-height: 1; }
.tier__price small { font-size: 1rem; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.tier__time { font-size: .9375rem; color: var(--muted); }
.checks { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: .9844rem; }
.checks svg { width: 20px; height: 20px; color: var(--accent-text); margin-top: 2px; }
.tier .btn { margin-top: auto; width: 100%; }
.pay-note { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: .9375rem; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 24px 0; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 600; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .4s var(--ease), background-color .2s; }
.faq summary .plus svg { width: 16px; height: 16px; }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.faq details p { color: var(--muted); padding-bottom: 24px; max-width: 60ch; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ---------- Feature rows (features / integrations pages) ---------- */
.rows { display: grid; gap: 16px; }
.row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel);
  padding: clamp(24px, 4vw, 48px); overflow: hidden;
}
.row > .stack { --stack: 16px; }
.row__art { background: var(--bg-2); border-radius: var(--r-tile); border: 1px solid var(--line); padding: clamp(16px, 3vw, 32px); }
.row__art svg { width: 100%; height: auto; }
.row--flip .row__art { order: -1; }
@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; }
  .row--flip .row__art { order: 0; }
}

.logos { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.logos a { display: grid; place-items: center; height: 72px; padding: 12px 20px; border-radius: var(--r-tile); background: #f4f6f2; border: 1px solid var(--line); transition: transform .3s var(--ease); }
.logos a:hover { transform: translateY(-2px); }
.logos img { max-height: 48px; width: auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.channels { display: grid; gap: 12px; }
.channel {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center;
  padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel);
  text-decoration: none; transition: border-color .25s, transform .35s var(--ease);
}
.channel:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.channel small { display: block; color: var(--muted); font-size: .8125rem; font-family: var(--mono); }
.channel strong { font-weight: 600; word-break: break-word; }
.channel .copy { font: 500 .8125rem var(--mono); color: var(--muted); background: none; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 12px; cursor: pointer; }
.channel .copy:hover { color: var(--text); border-color: var(--line-strong); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(24px, 4vw, 40px); display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-group { display: grid; gap: 8px; }
.field-group label, .field-group legend { font-weight: 600; font-size: .9375rem; }
.field-group .hint { color: var(--muted); font-size: .8438rem; }
.input, .textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong);
  border-radius: var(--r-tile); padding: 13px 14px; font: 400 1rem var(--font);
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 140px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-soft); }
.field-group.has-error .input, .field-group.has-error .textarea { border-color: #f26b5b; }
.error { color: #f58a7c; font-size: .8438rem; display: none; }
:root[data-theme="light"] .error { color: #b3261e; }
.field-group.has-error .error { display: block; }
fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); cursor: pointer; font-size: .9375rem; font-weight: 500;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.form__status { font-size: .9375rem; color: var(--muted); min-height: 1.5em; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: calc(var(--r-panel) + 8px);
  background: var(--accent); color: var(--accent-ink);
  padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 80px);
  display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: end;
}
.cta h2 { font-size: clamp(2rem, 5vw, 3.75rem); letter-spacing: -0.045em; max-width: 16ch; }
.cta p { margin-top: 16px; max-width: 44ch; color: color-mix(in srgb, var(--accent-ink) 75%, transparent); }
.cta .btn { --b-bg: #111a14; --b-fg: #c8f55a; }
.cta__art { position: absolute; right: -40px; top: -40px; width: 320px; opacity: .22; pointer-events: none; color: var(--accent-ink); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } .cta__art { width: 220px; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 56px 32px; margin-top: clamp(72px, 10vw, 128px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer h2 { font-size: .8125rem; font-family: var(--mono); font-weight: 500; color: var(--muted); letter-spacing: 0.02em; margin-bottom: 14px; }
.footer li a { display: inline-block; padding: 5px 0; text-decoration: none; color: var(--text); font-size: .9375rem; }
.footer li a:hover { color: var(--accent-text); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .875rem; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); transition: color .2s, border-color .2s; }
.socials a:hover { color: var(--text); border-color: var(--line-strong); }
.socials svg { width: 16px; height: 16px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.lost { min-height: calc(100dvh - var(--nav-h) - 200px); display: grid; place-items: center; text-align: center; padding-block: 64px; }
.lost__art { width: min(420px, 80vw); margin: 0 auto 32px; }
.lost .hero__ctas { justify-content: center; }

/* ---------- Reveal (content visible by default; JS only defers below-fold items) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal.is-pending { opacity: 0; transform: translateY(28px); }
  .reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
}

/* SVG line-draw helper */
@media (prefers-reduced-motion: no-preference) {
  .draw { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); animation: draw 2.2s var(--ease) .3s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  .blink { animation: blink 1.1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  .float-a { animation: floaty 7s ease-in-out infinite; }
  .float-b { animation: floaty 9s ease-in-out -3s infinite; }
  @keyframes floaty { 50% { transform: translateY(-8px); } }
  .pop { opacity: 0; animation: pop .6s var(--ease) forwards; animation-delay: var(--d, 0s); transform-box: fill-box; transform-origin: 0 100%; }
  @keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__track [aria-hidden="true"] { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
