/* Gridpeel landing — design system tokens
   Light by default, dark optional. Brand orange primary,
   Figma-style purple (margin) + green (padding) used in product visuals only. */
:root {
  /* Brand */
  --brand: #FF5D10;
  --brand-soft: #FF7A3A;
  --brand-deep: #E14A00;
  --brand-tint: rgba(255, 93, 16, 0.10);
  --brand-line: rgba(255, 93, 16, 0.28);

  /* Redline accents (used in product visuals only) */
  --margin-purple: #9747FF;
  --margin-purple-tint: rgba(151, 71, 255, 0.18);
  --padding-green: #00C871;
  --padding-green-tint: rgba(0, 200, 113, 0.20);
  --measure-red: #FF3B30;
  --measure-red-tint: rgba(255, 59, 48, 0.14);

  /* Light surfaces (default) */
  --bg: #FCFCFA;
  --bg-1: #F5F4EF;
  --bg-2: #EDEBE3;
  --bg-3: #E2DFD4;
  --ink: #0E0E0E;
  --ink-2: #1A1A1A;
  --line: rgba(14, 14, 14, 0.08);
  --line-2: rgba(14, 14, 14, 0.14);
  --line-strong: rgba(14, 14, 14, 0.22);

  --fg: #0E0E0E;
  --fg-2: rgba(14, 14, 14, 0.7);
  --fg-3: rgba(14, 14, 14, 0.5);
  --fg-4: rgba(14, 14, 14, 0.32);

  /* Type */
  --display: 'Geist', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 22px;
  --r-pill: 999px;

  --container: 1240px;
  --gutter: 28px;
  --section-y: 84px; /* compact density baked in */
}

[data-theme="dark"] {
  --bg: #0E0E0E;
  --bg-1: #141414;
  --bg-2: #1A1A1A;
  --bg-3: #232323;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.22);
  --fg: #F2F1ED;
  --fg-2: rgba(242, 241, 237, 0.72);
  --fg-3: rgba(242, 241, 237, 0.5);
  --fg-4: rgba(242, 241, 237, 0.32);
}

[data-density="regular"] { --section-y: 120px; }
[data-density="comfy"]   { --section-y: 160px; }
[data-density="compact"] { --section-y: 84px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  font-size: 16px;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-wide {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Type scale */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; letter-spacing: -0.022em; color: var(--fg); }
.h-display {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.034em;
}
.h-display .accent { color: var(--brand); }
.h-section {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.028em;
}
.h-card {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.3;
}
.body-lg { font-size: 18px; color: var(--fg-2); line-height: 1.55; max-width: 60ch; }
.body { color: var(--fg-2); line-height: 1.6; }
.caption { font-family: var(--mono); font-size: 12px; color: var(--fg-3); letter-spacing: 0.02em; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 0.5px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
  white-space: nowrap;
  color: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 22px -10px rgba(255, 93, 16, 0.55);
}
.btn-primary:hover { background: var(--brand-soft); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(14,14,14,0.04); border-color: var(--fg); }
[data-theme="dark"] .btn-ghost:hover { background: rgba(255,255,255,0.04); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2a2a; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 0.5px solid var(--line-2);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--fg-2);
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.pill-brand {
  background: var(--brand-tint);
  border-color: var(--brand-line);
  color: var(--brand-deep);
}
[data-theme="dark"] .pill-brand { color: var(--brand); }

/* Surfaces */
.card {
  background: var(--bg);
  border: 0.5px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.card-hover:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: 0 14px 40px -28px rgba(14,14,14,0.18);
}
.surface { background: var(--bg); border: 0.5px solid var(--line); border-radius: var(--r-xl); }

/* Section spacing */
.section { padding: var(--section-y) 0; position: relative; }
.section-tight { padding: calc(var(--section-y) * 0.55) 0; }

/* Hairline */
.hr { height: 0; border: 0; border-top: 0.5px solid var(--line); }

/* Selection */
::selection { background: var(--brand); color: #fff; }

/* Focus */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* Util */
.flex { display: flex; }
.grid { display: grid; }
.center { display: flex; align-items: center; justify-content: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 14px; } .gap-3 { gap: 22px; } .gap-4 { gap: 32px; }
.muted { color: var(--fg-2); }

.ticker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--fg-3); text-transform: uppercase; }

/* Subtle grid background pattern */
.bg-grid {
  background-image:
    linear-gradient(to right, var(--line) 0.5px, transparent 0.5px),
    linear-gradient(to bottom, var(--line) 0.5px, transparent 0.5px);
  background-size: 28px 28px;
}
.bg-grid-fade {
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}

/* Marquee */
@keyframes marqueeX { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marqueeX 60s linear infinite; }

/* Arrow */
.arrow { display: inline-block; transition: transform 160ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Tag (mono small) */
.tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.tag-num { font-family: var(--mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }

.step-num { font-family: var(--mono); font-size: 11px; color: var(--brand); letter-spacing: 0.08em; font-weight: 500; }

@media (max-width: 760px) {
  :root { --gutter: 20px; --section-y: 80px; }
  .hide-mobile { display: none !important; }
}
@media (min-width: 761px) {
  .show-mobile { display: none !important; }
}

/* Subtle glow under hero */
.hero-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 40% at 80% 35%, rgba(255,93,16,0.08), transparent 70%),
    radial-gradient(40% 50% at 12% 85%, rgba(151,71,255,0.05), transparent 70%);
  z-index: 0;
}

.shadow-soft { box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 16px 50px -28px rgba(14,14,14,0.22); }

.icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── Header ───────── */
.gp-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252,252,250,0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 200ms, background 200ms;
  border-bottom: 0.5px solid transparent;
}
[data-theme="dark"] .gp-header { background: rgba(14,14,14,0.7); }
.gp-header.is-scrolled { border-bottom-color: var(--line); }
.gp-nav { display: flex; gap: 28px; font-size: 13.5px; color: var(--fg-2); }
.gp-nav a:hover { color: var(--fg); }

/* Wordmark */
.gp-logo { display: block; width: auto; height: auto; }
.gp-logo-header { height: 18px; }
.gp-logo-footer { height: 22px; }
@media (max-width: 720px) {
  .gp-logo-header { height: 16px; }
  .gp-logo-footer { height: 20px; }
}

/* ───────── Hero ───────── */
.hero { padding: 64px 0 64px; position: relative; overflow: hidden; }
.hero-copy { text-align: center; max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }
.hero-h1 { max-width: 22ch; text-wrap: balance; }
.hero-figma-inline { display: inline-flex; align-items: baseline; gap: 0.18em; white-space: nowrap; }
.hero-figma-logo {
  display: inline-block;
  width: 0.55em;
  height: 0.78em;
  position: relative;
  top: 0.08em;
  flex-shrink: 0;
}
.hero-figma-logo svg { width: 100%; height: 100%; display: block; }
.hero-sub { margin-top: 22px; max-width: 56ch; }
.hero-ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }
.hero-micro { margin-top: 16px; }

.hero-demo-block { margin-top: 72px; position: relative; z-index: 1; }
.hero-demo-cap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; padding: 0 4px; }
.hero-demo-cap-text { margin: 0; font-size: 13.5px; color: var(--fg-2); font-family: var(--mono); letter-spacing: 0.01em; }
.hero-demo-cap-text strong { color: var(--fg); font-weight: 500; }

@media (max-width: 760px) {
  .hero { padding: 32px 0 48px; }
  .hero-demo-block { margin-top: 48px; }
  .hero-demo-cap { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ───────── Before / After compare slider ───────── */
.ba-compare {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  height: 540px;
  touch-action: none;
  user-select: none;
  cursor: ew-resize;
  background: var(--bg-1);
  border: 0.5px solid var(--line);
  box-shadow: 0 30px 80px -40px rgba(14,14,14,0.22);
}
.ba-side { position: absolute; inset: 0; }
.ba-side-inner { position: absolute; inset: 0; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.ba-bad-bg { background: #F0EDE3; }
.ba-good-bg { background: #FFFFFF; }
[data-theme="dark"] .ba-bad-bg { background: #1E1B17; }
[data-theme="dark"] .ba-good-bg { background: #0E0E0E; }

.ba-label { display: flex; align-items: center; gap: 10px; }
.ba-label-right { justify-content: flex-end; }
.ba-label-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(14,14,14,0.06);
  color: var(--fg-2);
}
[data-theme="dark"] .ba-label-tag { background: rgba(255,255,255,0.10); }
.ba-label-tag-good { background: var(--brand-tint); color: var(--brand-deep); }
[data-theme="dark"] .ba-label-tag-good { background: var(--brand); color: #fff; }
.ba-label-text { font-size: 13px; color: var(--fg-2); font-weight: 500; }

.ba-viz-wrap { flex: 1; min-height: 0; display: flex; }
.ba-viz-wrap > * { flex: 1; min-height: 0; margin-bottom: 0; }

.ba-divider {
  position: absolute;
  top: 0; bottom: 0;
  width: 24px;
  transform: translateX(-12px);
  pointer-events: auto;
  z-index: 10;
  cursor: ew-resize;
  touch-action: none;
  transition: left 0ms;
  left: 50%;
}
.ba-divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-1px);
  background: var(--brand);
  box-shadow: 0 0 0 1px rgba(255,93,16,0.18);
  pointer-events: none;
}
.ba-compare.is-dragging iframe { pointer-events: none; }
.ba-compare.is-dragging { cursor: ew-resize; }
.ba-compare:not(.has-nudged) .ba-divider { transition: left 700ms cubic-bezier(.4,0,.2,1); }
.ba-compare:not(.has-nudged) .ba-side-after { transition: clip-path 700ms cubic-bezier(.4,0,.2,1), -webkit-clip-path 700ms cubic-bezier(.4,0,.2,1); }

.ba-handle {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  pointer-events: auto;
  box-shadow:
    0 0 0 4px rgba(255,93,16,0.18),
    0 12px 28px -10px rgba(255,93,16,0.6),
    0 1px 0 rgba(255,255,255,0.18) inset;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.ba-handle:hover { transform: translate(-50%, -50%) scale(1.05); }
.ba-handle:focus-visible { outline: none; box-shadow: 0 0 0 5px var(--brand-tint), 0 12px 28px -10px rgba(255,93,16,0.6); }
.ba-handle:active { cursor: grabbing; }
.ba-handle-bar { width: 1px; height: 18px; background: rgba(255,255,255,0.55); display: inline-block; margin: 0 4px; }

.ba-hint {
  position: absolute;
  left: 50%;
  top: calc(50% + 44px);
  transform: translate(-50%, 0);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  animation: baHint 1.6s ease-in-out infinite alternate;
}
.ba-compare.has-nudged .ba-hint { display: none; }
@keyframes baHint {
  0% { transform: translate(-50%, 0); opacity: 0.85; }
  100% { transform: translate(-50%, 4px); opacity: 1; }
}

/* Figma embed iframes */
.fe-wrap { position: relative; flex: 1; min-height: 0; border-radius: 10px; overflow: hidden; background: #1E1E1E; border: 0.5px solid #0A0A0A; }
.fe-iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 760px) {
  .ba-compare { height: 460px; }
  .ba-side-inner { padding: 18px; gap: 12px; }
}
@media (max-width: 520px) {
  .ba-compare { height: 420px; }
  .ba-side-inner { padding: 14px; }
  .ba-label-text { font-size: 11.5px; }
  .ba-handle { width: 46px; height: 46px; }
}

/* ───────── How it works ───────── */
.how-head { max-width: 720px; margin-bottom: 64px; }
.how-scroll {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
  position: relative;
}
.how-left { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 20px; }
.how-rail { position: relative; height: 100%; padding: 4px 0; }
.how-rail-track { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line-2); transform: translateX(-50%); }
.how-rail-fill { position: absolute; left: 50%; top: 0; width: 1px; background: var(--brand); transform: translateX(-50%); transition: height 320ms cubic-bezier(.4,0,.2,1); }
.how-rail-dot {
  position: absolute;
  left: 50%;
  width: 14px; height: 14px;
  border-radius: 999px;
  background: var(--brand);
  border: 2px solid var(--bg);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px var(--brand-tint);
  transition: top 320ms cubic-bezier(.4,0,.2,1);
}

.how-steps { display: flex; flex-direction: column; }
.how-stepblock {
  padding: 12vh 0;
  opacity: 0.35;
  transition: opacity 320ms cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.how-stepblock.is-active { opacity: 1; }
.how-stepblock:first-child { padding-top: 4vh; }
.how-stepblock:last-child { padding-bottom: 30vh; }
.how-title {
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.024em;
  color: var(--fg);
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}
.how-desc { margin: 6px 0 0; max-width: 38ch; color: var(--fg-2); font-size: 15.5px; line-height: 1.55; }

.how-right { position: relative; height: 100%; }
.how-sticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.how-viz {
  background: var(--bg-1);
  border: 0.5px solid var(--line);
  border-radius: var(--r-xl);
  aspect-ratio: 4 / 3;
  padding: 22px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 60px -40px rgba(14,14,14,0.18);
}
.how-viz-tag {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 5;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg-3);
  border: 0.5px solid var(--line-2);
  text-transform: uppercase;
}
.how-viz-slide {
  position: absolute;
  inset: 22px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 320ms cubic-bezier(.4,0,.2,1), transform 320ms cubic-bezier(.4,0,.2,1);
}
.how-viz-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.how-viz-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.how-mob-dots { display: flex; gap: 6px; justify-content: center; padding-top: 12px; }
.hmd { width: 6px; height: 6px; border-radius: 999px; background: var(--line-2); transition: all 200ms; }
.hmd.is-on { background: var(--brand); width: 18px; }

/* Step viz: Enable */
.se-viz { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.se-toolbar { display: flex; gap: 6px; padding: 6px 8px; background: #fff; border: 0.5px solid var(--line); border-radius: 6px; align-self: flex-end; }
.se-icon { width: 18px; height: 18px; border-radius: 4px; background: rgba(14,14,14,0.08); position: relative; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 8px; color: #fff; font-weight: 600; }
.se-i-active { background: var(--brand); color: #fff; box-shadow: 0 0 0 3px var(--brand-tint); }
.se-pulse { position: absolute; inset: -4px; border: 1px solid var(--brand); border-radius: 6px; animation: sePulse 1.6s ease-out infinite; }
@keyframes sePulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.se-page { flex: 1; border-radius: 6px; background-color: #fff; border: 0.5px dashed var(--line-2); }

/* Stripes placeholder */
.stripes { background-image: repeating-linear-gradient(135deg, rgba(14,14,14,0.06) 0 8px, transparent 8px 16px); }
[data-theme="dark"] .stripes { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 8px, transparent 8px 16px); }

/* Step viz: Hover */
.sh-viz { height: 100%; }
.sh-page { background: #fff; border-radius: 6px; height: 100%; padding: 14px; position: relative; border: 0.5px solid var(--line); }
.sh-text { height: 6px; border-radius: 999px; background: rgba(14,14,14,0.08); margin-bottom: 8px; }
.sh-btn { position: absolute; bottom: 22px; left: 14px; }
.sh-btn-inner { background: #0E0E0E; color: #fff; padding: 6px 14px; border-radius: 999px; font-size: 10px; outline: 1.5px dashed var(--brand); outline-offset: 4px; box-shadow: 0 0 0 1px rgba(255,93,16,0.18); position: relative; }
.sh-pad { position: absolute; inset: -4px; background: var(--padding-green-tint); border-radius: 999px; z-index: -1; }
.sh-tick-l, .sh-tick-r { position: absolute; font-family: var(--mono); font-size: 9px; color: var(--measure-red); background: #fff; padding: 1px 4px; border-radius: 3px; box-shadow: 0 0 0 0.5px rgba(255,59,48,0.4); }
.sh-tick-l { top: -16px; left: 50%; transform: translateX(-50%); }
.sh-tick-r { right: -34px; top: 50%; transform: translateY(-50%); }
.sh-cursor { position: absolute; right: 36%; bottom: 14px; width: 12px; height: 16px; background: linear-gradient(135deg, #0E0E0E 50%, transparent 50%); transform: rotate(-15deg); }

/* Step viz: Outline */
.so-viz { font-family: var(--mono); font-size: 10px; color: var(--fg-2); display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 8px 4px; background: #fff; border: 0.5px solid var(--line); border-radius: 6px; }
.so-row { display: flex; gap: 4px; padding: 2px 4px; border-radius: 3px; align-items: center; }
.so-row.is-sel { background: var(--brand-tint); color: var(--brand-deep); outline: 0.5px solid var(--brand-line); }
.so-chev { color: var(--fg-4); }
.so-tag { color: var(--padding-green); }
.so-row.is-sel .so-tag { color: var(--brand-deep); }
.so-name { color: var(--fg-2); }

/* Step viz: Import */
.si-viz {
  height: 100%;
  background:
    linear-gradient(rgba(14,14,14,0.04) 1px, transparent 1px) 0 0/14px 14px,
    linear-gradient(90deg, rgba(14,14,14,0.04) 1px, transparent 1px) 0 0/14px 14px,
    #FAFAF7;
  border-radius: 6px; padding: 14px; position: relative; display: flex; align-items: center; justify-content: center;
}
.si-frame-tag { position: absolute; top: 8px; left: 12px; font-family: var(--mono); font-size: 9px; color: #5a1bb8; background: var(--margin-purple-tint); padding: 1px 5px; border-radius: 3px; }
.si-card { width: 130px; background: #0E0E0E; color: #fff; border-radius: 10px; padding: 12px; box-shadow: 0 10px 26px -14px rgba(14,14,14,0.45); }
.si-card-tier { font-size: 9.5px; opacity: 0.6; }
.si-card-price { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin: 4px 0 8px; }
.si-card-line { height: 4px; border-radius: 999px; background: rgba(255,255,255,0.18); margin-bottom: 4px; }
.si-card-btn { background: var(--brand); color: #fff; text-align: center; padding: 5px; border-radius: 999px; font-size: 9.5px; margin-top: 8px; }

@media (max-width: 880px) {
  .how-scroll { grid-template-columns: 1fr; gap: 0; }
  /* Unwrap .how-right so .how-sticky becomes a direct grid child of .how-scroll —
     this gives sticky a tall enough context (image + all steps) to actually stick. */
  .how-right { display: contents; }
  .how-left { order: 2; }
  .how-sticky {
    order: 1;
    position: sticky;
    top: 64px;
    z-index: 5;
    background: var(--bg);
    padding: 8px 0 12px;
    margin: 0 calc(var(--gutter) * -1) 12px;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
  .how-viz { aspect-ratio: auto; height: 38vh; max-height: 360px; min-height: 220px; padding: 16px; touch-action: pan-y; cursor: grab; }
  .how-viz:active { cursor: grabbing; }
  .how-stepblock { padding: 10vh 0; opacity: 0.35; }
  .how-stepblock:first-child { padding-top: 4vh; }
  .how-stepblock:last-child { padding-bottom: 24vh; }
  /* Show dots in the 761–880px gap too (was hidden by .show-mobile rule above) */
  .how-mob-dots.show-mobile { display: flex !important; padding-top: 10px; }
  .how-mob-dots .hmd { cursor: pointer; }
}

/* ───────── Features ───────── */
.ft-head { max-width: 720px; margin-bottom: 40px; }
.ft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ft-tile { padding: 28px; min-height: 220px; position: relative; display: flex; flex-direction: column; gap: 8px; }
.ft-tile h3 { margin-top: 12px; }
.ft-icon { width: 38px; height: 38px; border-radius: 8px; background: var(--bg-1); border: 0.5px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--brand-deep); }
.is-soon { opacity: 0.7; }
.ft-soon-pill { position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-deep); border: 0.5px solid var(--brand-line); }
@media (max-width: 760px) { .ft-grid { grid-template-columns: 1fr; } }

/* ───────── Pricing ───────── */
.pr-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.pr-head .eyebrow { justify-content: center; }
.pr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 920px; margin: 0 auto; }
.pr-card { background: var(--bg); border: 0.5px solid var(--line-2); border-radius: var(--r-xl); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.pr-card-pro { background: var(--ink); color: #fff; border-color: transparent; position: relative; box-shadow: 0 30px 60px -30px rgba(255,93,16,0.4); }
[data-theme="dark"] .pr-card-pro { background: var(--brand); color: #fff; box-shadow: 0 30px 60px -30px rgba(255,93,16,0.6); }
[data-theme="dark"] .pr-card-pro .pr-tier, [data-theme="dark"] .pr-card-pro .pr-price { color: #fff; }
[data-theme="dark"] .pr-card-pro .pr-pop { background: #fff; color: var(--brand-deep); }
[data-theme="dark"] .pr-card-pro .pr-feat li { color: rgba(255,255,255,0.92); }
[data-theme="dark"] .pr-card-pro .pr-price-per { color: rgba(255,255,255,0.7); }
[data-theme="dark"] .pr-card-pro .btn-primary { background: #fff; color: var(--brand-deep); box-shadow: none; }
[data-theme="dark"] .pr-card-pro .btn-primary:hover { background: rgba(255,255,255,0.92); }
[data-theme="dark"] .pr-card-pro .cp-on { background: #fff; color: var(--brand-deep); }
.pr-card-pro .pr-tier, .pr-card-pro .pr-price { color: #fff; }
.pr-pop { position: absolute; top: -12px; left: 32px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--brand); color: #fff; }
.pr-tier { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); }
.pr-price { font-family: var(--display); font-size: 44px; font-weight: 500; letter-spacing: -0.025em; line-height: 1; color: var(--fg); }
.pr-price-per { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--fg-3); margin-left: 6px; }
.pr-card-pro .pr-price-per { color: rgba(255,255,255,0.5); }
.pr-feat { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.pr-feat li { display: flex; align-items: center; gap: 10px; color: var(--fg-2); }
.pr-card-pro .pr-feat li { color: rgba(255,255,255,0.78); }
.pr-cta { margin-top: auto; align-self: flex-start; }

.cp { width: 18px; height: 18px; border-radius: 999px; background: rgba(14,14,14,0.06); color: var(--fg); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cp-on { background: var(--brand); color: #fff; }

@media (max-width: 760px) { .pr-grid { grid-template-columns: 1fr; } }

/* ───────── Audience ───────── */
.aud-head { max-width: 720px; margin-bottom: 40px; }
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.aud-card { padding: 26px; border-radius: var(--r-lg); background: var(--bg-1); border: 0.5px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.aud-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--bg); border: 0.5px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--brand-deep); }
.aud-t { font-size: 15px; font-weight: 600; color: var(--fg); letter-spacing: -0.01em; }
.aud-d { margin: 0; color: var(--fg-2); font-size: 14px; line-height: 1.5; }
@media (max-width: 880px) { .aud-grid { grid-template-columns: 1fr; } }

/* ───────── FAQ ───────── */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.faq-side { position: sticky; top: 90px; }
.faq-list { display: flex; flex-direction: column; }
.faq-row { border-top: 0.5px solid var(--line); }
.faq-row:last-child { border-bottom: 0.5px solid var(--line); }
.faq-q { width: 100%; appearance: none; background: transparent; border: 0; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; text-align: left; font-family: var(--sans); font-size: 17px; font-weight: 500; color: var(--fg); cursor: pointer; letter-spacing: -0.012em; }
.faq-plus { font-family: var(--mono); font-size: 18px; color: var(--fg-3); width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 0.5px solid var(--line-2); transition: all 200ms ease; flex-shrink: 0; }
.faq-row.is-open .faq-plus { background: var(--brand); color: #fff; border-color: var(--brand); }
.faq-a-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms cubic-bezier(.4,0,.2,1); }
.faq-row.is-open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a-wrap > p { overflow: hidden; }
.faq-a { margin: 0 0 22px; max-width: 60ch; color: var(--fg-2); font-size: 15px; line-height: 1.6; }
@media (max-width: 880px) {
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-side { position: static; }
}

/* ───────── Final CTA ───────── */
.fc-card { position: relative; border-radius: 28px; padding: 80px 56px; overflow: hidden; background: var(--ink); color: #fff; isolation: isolate; }
[data-theme="dark"] .fc-card { background: var(--brand); }
[data-theme="dark"] .fc-card .fc-glow { background: radial-gradient(ellipse at center, rgba(255,255,255,0.4), transparent 60%); }
[data-theme="dark"] .fc-card .eyebrow { color: rgba(255,255,255,0.85); }
[data-theme="dark"] .fc-card .eyebrow .dot { background: #fff; }
[data-theme="dark"] .fc-card .fc-sub { color: rgba(255,255,255,0.85); }
[data-theme="dark"] .fc-card .btn-primary { background: #fff; color: var(--brand-deep); box-shadow: none; }
[data-theme="dark"] .fc-card .btn-primary:hover { background: rgba(255,255,255,0.92); }
[data-theme="dark"] .fc-card .fc-form { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.22); }
.fc-bg { position: absolute; inset: 0; pointer-events: none; }
.fc-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 0.5px, transparent 0.5px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 0.5px, transparent 0.5px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 100%, #000, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 100% at 50% 100%, #000, transparent 80%);
}
.fc-glow { position: absolute; left: 50%; bottom: -120px; transform: translateX(-50%); width: 700px; height: 400px; background: radial-gradient(ellipse at center, rgba(255,93,16,0.5), transparent 60%); filter: blur(20px); }
.fc-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; text-align: center; }
.fc-inner .eyebrow { color: rgba(255,255,255,0.6); justify-content: center; }
.fc-inner .eyebrow .dot { background: var(--brand); }
.fc-h { color: #fff; }
.fc-sub { color: rgba(255,255,255,0.7); margin: 18px auto 0; }
.fc-form { display: flex; gap: 8px; margin-top: 32px; padding: 6px; background: rgba(255,255,255,0.06); border: 0.5px solid rgba(255,255,255,0.14); border-radius: 999px; max-width: 560px; margin-left: auto; margin-right: auto; }
.fc-input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 0 16px; height: 46px; color: #fff; font-family: var(--sans); font-size: 14.5px; }
.fc-input::placeholder { color: rgba(255,255,255,0.4); }
.fc-foot { color: rgba(255,255,255,0.7); }
[data-theme="dark"] .fc-card .fc-foot { color: rgba(255,255,255,0.85); }
.fc-submit { height: 46px; }
@media (max-width: 720px) {
  .fc-card { padding: 56px 22px; border-radius: 22px; }
  /* Drop the outer pill — make the input + button two intentional stacked blocks */
  .fc-form {
    flex-direction: column;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    max-width: 100%;
  }
  .fc-input {
    flex: none; /* neutralize `flex: 1` from line 752 so width:100% is the only width rule that matters (Android Chrome) */
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: rgba(255,255,255,0.08);
    border: 0.5px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    box-sizing: border-box;
    -webkit-appearance: none;
            appearance: none;
    font-family: var(--sans);
    font-size: 15px;
    line-height: 48px;
    color: #fff;
    margin: 0;
  }
  .fc-input:focus { border-color: rgba(255,255,255,0.4); }
  .fc-submit { width: 100%; height: 48px; border-radius: 14px; }
}

/* ───────── Footer ───────── */
.ftr { padding: 56px 0 40px; border-top: 0.5px solid var(--line); margin-top: 40px; }
.ftr-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 56px; }
.ftr-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.ftr-col-brand { gap: 0; align-items: flex-start; }
.ftr-col-brand .gp-logo-footer { margin: 0; }
.ftr-col-brand .ftr-tag { margin: 12px 0 0; max-width: 28ch; color: var(--fg-2); font-size: 14px; }
.ftr-h { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 4px; }
.ftr-col a { color: var(--fg-2); }
.ftr-col a:hover { color: var(--fg); }
.ftr-bot { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; border-top: 0.5px solid var(--line); }
@media (max-width: 760px) { .ftr-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* ───────── Waitlist modal ───────── */
.wl-scrim { position: fixed; inset: 0; background: rgba(14,14,14,0.5); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 22px; }
.wl-scrim[hidden] { display: none; }
.wl-modal { background: var(--bg); border-radius: 18px; padding: 32px; max-width: 440px; width: 100%; position: relative; border: 0.5px solid var(--line-2); box-shadow: 0 30px 80px -20px rgba(0,0,0,0.4); }
.wl-x { position: absolute; top: 14px; right: 14px; appearance: none; border: 0; background: transparent; color: var(--fg-3); width: 30px; height: 30px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.wl-x:hover { background: rgba(14,14,14,0.06); color: var(--fg); }
.wl-input { width: 100%; height: 46px; background: var(--bg-1); border: 0.5px solid var(--line-2); padding: 0 16px; border-radius: 12px; font-family: var(--sans); font-size: 14.5px; color: var(--fg); margin-top: 10px; outline: 0; box-sizing: border-box; }
.wl-input:focus { border-color: var(--brand); }
.wl-form > .wl-input:first-of-type { margin-top: 18px; }
.wl-textarea { height: auto; padding: 12px 16px; resize: vertical; min-height: 100px; font-family: var(--sans); line-height: 1.5; }
.wl-error { margin: 10px 0 0; font-size: 13px; color: #c0392b; }
.wl-error[hidden] { display: none; }
.wl-done { margin-top: 20px; padding: 22px; border-radius: 12px; background: rgba(34, 165, 91, 0.10); color: #166534; display: flex; gap: 10px; align-items: center; }
.wl-done[hidden] { display: none; }
.wl-done-mark { width: 32px; height: 32px; border-radius: 999px; background: #22A55B; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }

/* Inline button spinner — used during form submissions */
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1.8px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 600ms linear infinite;
  vertical-align: -2px;
  margin-right: 8px;
  flex-shrink: 0;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
