/* ==========================================================================
   PlotCloud.ai — styles
   Mobile-first: base rules target phones; min-width queries layer on
   tablet (640px), small desktop (900px) and desktop (980px+) refinements.
   ========================================================================== */

:root {
  --bg: #060a12;
  --bg-2: #0a1120;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.26);
  --text: #e8eef8;
  --muted: #9aa8bd;
  --dim: #6b7a90;
  --cyan: #4fe3ff;
  --mint: #3ef5c8;
  --amber: #ffc266;
  --danger: #ff8c96;
  --ink: #03141a;
  --grad: linear-gradient(120deg, #4fe3ff 0%, #3ef5c8 100%);

  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75);
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --font-head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;

  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233EF5C8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --icon-check-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303141A' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA8BD' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA8BD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

  color-scheme: dark;
}

/* ------------------------------- Base ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.no-scroll { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(79, 227, 255, 0.3); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 640px) { .container { padding-inline: 28px; } }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 10px;
  background: var(--cyan); color: var(--ink); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ------------------------------ Buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px; padding: 0.7rem 1.2rem;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.98rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background-color 0.2s, border-color 0.2s, opacity 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad); color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(79, 227, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(79, 227, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(148, 163, 184, 0.45); }
.btn-lg { min-height: 54px; padding: 0.95rem 1.5rem; font-size: 1.03rem; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:disabled { cursor: progress; opacity: 0.75; }
.btn.is-loading::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------- Header -------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(6, 10, 18, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.scrolled, .site-header.nav-open { border-bottom-color: var(--border); background: rgba(6, 10, 18, 0.9); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 10px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  font-family: var(--font-head); font-weight: 700; font-size: 1.16rem; letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand .tld { color: var(--cyan); }

.header-cta { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.9rem; }
@media (max-width: 359px) { .header-cta { display: none; } }

.nav-toggle {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; cursor: pointer;
}
.nav-toggle span {
  position: absolute; width: 18px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform 0.25s var(--ease);
}
.nav-toggle span:first-child { transform: translateY(-4px); }
.nav-toggle span:last-child { transform: translateY(4px); }
.nav-open .nav-toggle span:first-child { transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: rotate(-45deg); }

/* Mobile menu: drops down under the header */
.nav {
  position: absolute; top: 100%; left: 0; right: 0;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  padding: 8px 20px 24px;
  background: var(--bg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid var(--border);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s 0.25s;
}
.nav-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.25s var(--ease); }
.nav ul a {
  display: block; padding: 15px 2px;
  font-size: 1.1rem; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.nav .nav-cta { width: 100%; margin-top: 18px; min-height: 52px; }

@media (min-width: 900px) {
  .nav-toggle, .header-cta { display: none; }
  .nav {
    position: static; display: flex; align-items: center; gap: 32px;
    max-height: none; overflow: visible; padding: 0;
    background: none; border: 0; opacity: 1; visibility: visible; transform: none;
  }
  .nav ul { display: flex; gap: 28px; }
  .nav ul a { padding: 6px 0; font-size: 0.95rem; color: var(--muted); border: 0; transition: color 0.2s; }
  .nav ul a:hover { color: var(--text); }
  .nav .nav-cta { width: auto; margin: 0; min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.93rem; }
}

/* -------------------------------- Hero --------------------------------- */
.hero { position: relative; isolation: isolate; padding: 32px 0 56px; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 25%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 85% 65% at 50% 25%, #000 25%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -120px;
  width: 900px; height: 600px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 35% 45%, rgba(79, 227, 255, 0.16), transparent),
    radial-gradient(closest-side at 70% 55%, rgba(62, 245, 200, 0.1), transparent);
  pointer-events: none;
}

.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-grid > * { min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font: 500 0.74rem/1.3 var(--font-mono); letter-spacing: 0.03em; color: var(--muted);
}
.pulse {
  width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--mint);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 245, 200, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(62, 245, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 245, 200, 0); }
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(2.5rem, 10vw, 4.8rem); line-height: 1.02; letter-spacing: -0.04em;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 36em; }

.hero-ctas { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 520px) { .hero-ctas { display: flex; flex-wrap: wrap; } }

.hero-proof { display: grid; gap: 9px; margin-top: 26px; color: var(--muted); font-size: 0.93rem; }
.hero-proof li { display: flex; align-items: center; gap: 10px; }
.hero-proof li::before,
.checks li::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(62, 245, 200, 0.12) var(--icon-check) center / 12px no-repeat;
}
@media (min-width: 640px) { .hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; } }

/* Hero visual: animated point cloud on canvas, with HUD chips on top */
.hero-visual {
  position: relative; width: 100%; max-width: 560px; margin-inline: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(79, 227, 255, 0.09), transparent 60%),
    linear-gradient(180deg, #0a1324, #070c17);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hud {
  position: absolute; left: 12px; right: 12px;
  display: flex; justify-content: space-between; gap: 8px;
  pointer-events: none;
  font: 500 0.68rem/1.2 var(--font-mono); letter-spacing: 0.03em;
}
.hud-top { top: 12px; align-items: flex-start; }
.hud-bottom { bottom: 12px; align-items: flex-end; }
.hud-files, .hud-checks { display: grid; gap: 6px; }
.hud-checks { justify-items: end; }
.hud-files { transition: opacity 0.4s; }
.hero-visual:not([data-state="delivered"]) .hud-files { opacity: 0.35; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 9px; border-radius: 8px; white-space: nowrap;
  background: rgba(6, 10, 18, 0.74); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--muted);
}
.tag b { color: var(--text); font-weight: 600; }
.tag-rev { color: var(--mint); border-color: rgba(62, 245, 200, 0.35); }
.tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); transition: background-color 0.3s, box-shadow 0.3s; }
.hero-visual[data-state="delivered"] .tag .dot { background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.file .ext {
  padding: 2px 5px; border-radius: 4px;
  background: var(--cyan); color: var(--ink); font-weight: 700; font-size: 0.62rem;
}
.file .ext.dwg { background: var(--mint); }

@media (min-width: 960px) {
  .hero { padding: 72px 0 104px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
  .hero-visual { max-width: none; }
  .hud { font-size: 0.72rem; left: 16px; right: 16px; }
  .hud-top { top: 16px; } .hud-bottom { bottom: 16px; }
}

/* -------------------------------- Stats -------------------------------- */
.stats { border-block: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { padding: 24px 16px 24px 0; }
.stat:nth-child(odd) { border-right: 1px solid var(--border); }
.stat:nth-child(even) { padding-left: 18px; }
.stat:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
.stat strong {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.55rem, 6.5vw, 2.4rem); line-height: 1.1; letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat p { margin-top: 6px; color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
@media (min-width: 900px) {
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats-grid .stat { padding: 32px 24px; border: 0; }
  .stats-grid .stat:not(:last-child) { border-right: 1px solid var(--border); }
  .stats-grid .stat:first-child { padding-left: 0; }
}

/* ------------------------------- Sections ------------------------------ */
.section { position: relative; padding: 76px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
@media (min-width: 900px) { .section { padding: 112px 0; } }

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2, .book-copy h2 {
  margin: 14px 0; font-size: clamp(1.95rem, 6vw, 3.05rem); line-height: 1.07; letter-spacing: -0.03em;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }
@media (min-width: 900px) { .section-head { margin-bottom: 56px; } }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 0.74rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan);
}
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.center .kicker::after { content: ""; width: 18px; height: 1px; background: currentColor; }

.checks { display: grid; gap: 10px; font-size: 0.96rem; }
.checks li { display: flex; align-items: flex-start; gap: 10px; }
.checks li::before { margin-top: 2px; }

/* ------------------------------- Compare ------------------------------- */
.compare { display: grid; gap: 14px; }
.cmp-row {
  display: grid; gap: 16px; padding: 20px;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
}
.cmp-row h3 { font-size: 1.12rem; }
.cmp-row h3 small { display: block; margin-top: 2px; font: 500 0.74rem var(--font-mono); color: var(--dim); letter-spacing: 0.02em; }
.cmp-bars { display: grid; gap: 14px; }
.bar-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: 0.86rem; }
.bar-meta span { color: var(--dim); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; }
.bar-meta b { font-weight: 600; }
.bar.old .bar-meta b { color: var(--muted); }
.bar.new .bar-meta b { color: var(--mint); }
.track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.track i { display: block; height: 100%; width: var(--w); border-radius: inherit; }
.js .track i { width: 0; transition: width 1.3s var(--ease) 0.25s; }
.js .in .track i { width: var(--w); }
.bar.old .track i { background: linear-gradient(90deg, #2a3a52, #4a5d78); }
.bar.new .track i { min-width: 10px; background: var(--grad); box-shadow: 0 0 16px rgba(62, 245, 200, 0.6); }
.footnote { margin-top: 18px; font-size: 0.8rem; color: var(--dim); max-width: 70ch; }

@media (min-width: 900px) {
  .cmp-row { grid-template-columns: 260px 1fr; align-items: center; gap: 32px; padding: 26px 30px; }
  .cmp-row h3 { font-size: 1.25rem; }
}

/* ------------------------------- Services ------------------------------ */
.cards { display: grid; gap: 18px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.card {
  display: flex; flex-direction: column; padding: 18px 18px 24px;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  transition: border-color 0.3s, translate 0.3s var(--ease);
}
.card:hover { border-color: rgba(79, 227, 255, 0.35); translate: 0 -3px; }
.card-art {
  height: 160px; margin-bottom: 22px; padding: 6px;
  border-radius: 14px; border: 1px solid var(--border); background: #08101e; overflow: hidden;
}
.card-art svg { width: 100%; height: 100%; }
.card h3, .card p, .card .meta, .card .checks, .card .link { margin-inline: 6px; }
.card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.card p { color: var(--muted); }
.card .meta {
  align-self: flex-start; margin-top: 16px; padding: 5px 9px; border-radius: 6px;
  font: 500 0.74rem var(--font-mono); color: var(--mint);
  background: rgba(62, 245, 200, 0.08); border: 1px solid rgba(62, 245, 200, 0.2);
}
.card .checks { margin-top: 18px; margin-bottom: 24px; }
.card .link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  min-height: 44px; font-weight: 600; color: var(--cyan); text-decoration: none;
}
.card .link span { transition: transform 0.2s var(--ease); }
.card .link:hover span { transform: translateX(3px); }
.fit-f { fill: #3ef5c8; fill-opacity: 0.7; }
.fit-t { fill: #ffc266; fill-opacity: 0.8; }
.fit-n { fill: #22324a; }

/* ----------------------------- How it works ---------------------------- */
.steps { display: grid; counter-reset: step; }
.step { position: relative; padding: 0 0 34px 64px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid rgba(79, 227, 255, 0.3); background: rgba(79, 227, 255, 0.08);
  font: 600 0.9rem var(--font-mono); color: var(--cyan);
}
.step::after {
  content: ""; position: absolute; left: 22px; top: 54px; bottom: 8px; width: 1px;
  background: linear-gradient(var(--border-strong), transparent);
}
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.2rem; margin: 9px 0 6px; }
.step p { color: var(--muted); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .step { padding: 66px 0 0; }
  .step:last-child { padding-bottom: 0; }
  .step::after {
    left: 58px; right: -14px; top: 22px; bottom: auto; width: auto; height: 1px;
    background: linear-gradient(90deg, var(--border-strong), transparent);
  }
}

/* ------------------------------- Features ------------------------------ */
.features { display: grid; gap: 14px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
/* Phones: compact icon-left rows. Larger screens: stacked cards. */
.feature {
  display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 16px; align-items: start;
  padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
}
.feature .icon { grid-row: span 2; }
@media (min-width: 640px) {
  .feature { display: block; padding: 22px; }
  .feature .icon { margin-bottom: 16px; }
}
.feature .icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid rgba(79, 227, 255, 0.22); background: rgba(79, 227, 255, 0.08); color: var(--cyan);
}
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.96rem; }

.audience {
  margin-top: 48px; padding: 26px 20px; text-align: center;
  border-radius: var(--radius-lg); border: 1px dashed var(--border-strong);
}
.audience h3 {
  margin-bottom: 16px; font: 600 0.74rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.pill-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill-list li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 0.92rem; }

/* -------------------------------- Plans -------------------------------- */
.plans { display: grid; gap: 22px; }
@media (min-width: 980px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; } }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px;
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface);
}
.plan.featured {
  background: linear-gradient(180deg, #0d1a2c, #0a1222) padding-box, var(--grad) border-box;
  border-color: transparent;
  box-shadow: 0 30px 80px -30px rgba(79, 227, 255, 0.4);
}
.badge {
  position: absolute; top: -12px; left: 24px;
  padding: 5px 10px; border-radius: 999px; background: var(--grad); color: var(--ink);
  font: 700 0.68rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.plan h3 { font-size: 1.4rem; }
.plan .for { margin: 6px 0 18px; color: var(--muted); }
.plan .price {
  padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--border);
  font: 600 0.78rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan);
}
.plan .checks { flex: 1; margin-bottom: 26px; }

/* --------------------------------- FAQ --------------------------------- */
.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details {
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
  transition: border-color 0.2s, background-color 0.2s;
}
.faq details[open] { border-color: rgba(79, 227, 255, 0.3); background: rgba(79, 227, 255, 0.04); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; list-style: none; cursor: pointer;
  font-weight: 600; font-size: 1.02rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px;
  background: var(--icon-plus) center / 20px no-repeat; transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); }
.faq-more { margin-top: 28px; text-align: center; color: var(--muted); }
.faq-more a, .contact-line a { color: var(--cyan); font-weight: 600; text-underline-offset: 3px; }

/* ----------------------------- Book a call ----------------------------- */
.book { overflow-x: clip; }
.book::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 10%;
  width: 1000px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(79, 227, 255, 0.1), transparent);
  pointer-events: none;
}
.book { isolation: isolate; }
.book-grid { display: grid; gap: 36px; align-items: start; }
.book-grid > * { min-width: 0; }
.book-copy .lede { margin-bottom: 26px; }
.book-copy .checks { margin-bottom: 26px; }
.contact-line { color: var(--muted); font-size: 0.95rem; }
@media (min-width: 980px) {
  .book-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; }
  .book-copy { position: sticky; top: calc(var(--header-h) + 40px); }
}

.form-card {
  position: relative; padding: 22px 18px;
  border-radius: var(--radius-lg); border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, #0e1829, #0a1120);
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
@media (min-width: 640px) { .form-card { padding: 32px; } }

.progress { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.progress span { position: relative; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress span::after {
  content: ""; position: absolute; inset: 0; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.progress span.done::after, .progress span.active::after { transform: none; }
.step-count { margin: 14px 0 6px; font: 500 0.72rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }

.form-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-step > legend { padding: 0; margin-bottom: 6px; }
.form-step h3 { font-size: 1.4rem; line-height: 1.2; }
.form-step h3:focus { outline: none; }
.hint { color: var(--muted); font-size: 0.94rem; margin-bottom: 20px; }

.sub { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.field-label, .sub > legend { padding: 0; margin-bottom: 9px; font-size: 0.88rem; font-weight: 500; }

/* Chips (checkbox / radio). Inputs stay focusable; the span is the visual. */
.chip, .date-chip, .time-chip { position: relative; display: block; }
.chip input, .date-chip input, .time-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chip span {
  display: flex; align-items: center; gap: 10px; height: 100%; min-height: 56px; padding: 12px;
  border-radius: 14px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.03);
  font-weight: 500; font-size: 0.93rem; line-height: 1.25;
  transition: border-color 0.2s, background-color 0.2s;
}
.chip span::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 6px;
  border: 1.5px solid var(--border-strong); transition: background-color 0.2s, border-color 0.2s;
}
.chip input:checked + span { border-color: var(--cyan); background: rgba(79, 227, 255, 0.08); }
.chip input:checked + span::before { border-color: transparent; background: var(--grad); background-image: var(--icon-check-ink), var(--grad); background-size: 12px, cover; background-position: center; background-repeat: no-repeat; }
.chip input:focus-visible + span,
.date-chip input:focus-visible + span,
.time-chip input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.chip:hover span, .date-chip:hover span, .time-chip:hover span { border-color: rgba(148, 163, 184, 0.45); }

.date-scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: 64px; gap: 8px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  padding: 3px 3px 10px; margin: -3px -3px 0;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.date-chip { scroll-snap-align: start; }
.date-chip span {
  display: grid; justify-items: center; gap: 1px; padding: 9px 0;
  border-radius: 14px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, background-color 0.2s;
}
.date-chip small { font: 500 0.66rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.date-chip strong { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }

.time-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.time-chip span {
  display: grid; place-items: center; min-height: 46px;
  border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.03);
  font-weight: 500; font-size: 0.9rem; transition: border-color 0.2s, background-color 0.2s;
}
.date-chip input:checked + span,
.time-chip input:checked + span { border-color: var(--cyan); background: rgba(79, 227, 255, 0.1); box-shadow: inset 0 0 0 1px var(--cyan); }
.date-chip input:checked + span small { color: var(--cyan); }

.tz-note { margin-top: -6px; font: 0.76rem var(--font-mono); color: var(--dim); }
.skip-row { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.link-btn {
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--cyan); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(79, 227, 255, 0.4);
}

.field { display: grid; gap: 7px; margin-top: 16px; }
.field label { font-size: 0.88rem; font-weight: 500; }
.field .opt { color: var(--dim); font-weight: 400; }
.form-step[data-step="need"] .field { margin-top: 18px; }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.035);
  font-size: 16px; /* 16px keeps iOS from zooming on focus */
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.input::placeholder { color: var(--dim); }
.input:focus { outline: none; border-color: var(--cyan); background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 4px rgba(79, 227, 255, 0.15); }
.input[aria-invalid="true"] { border-color: var(--danger); }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: var(--icon-chevron); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
select.input option { background: #0b1222; color: var(--text); }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
.row-2 { display: grid; column-gap: 14px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.plan-note {
  display: inline-flex; margin-top: 14px; padding: 5px 10px; border-radius: 8px;
  font: 500 0.76rem var(--font-mono); color: var(--mint);
  background: rgba(62, 245, 200, 0.08); border: 1px solid rgba(62, 245, 200, 0.22);
}
.step-error { min-height: 1.3em; margin-top: 12px; font-size: 0.88rem; color: var(--danger); }
.step-error:empty { min-height: 0; margin-top: 0; }
.step-error a { color: inherit; }
.form-nav { display: flex; gap: 10px; margin-top: 22px; }
.form-nav .btn-primary { flex: 1; }
.form-nav .btn-ghost { padding-inline: 1.2rem; }
.fine-print { margin-top: 14px; font-size: 0.78rem; color: var(--dim); }
.fine-print a, .legal a { color: var(--muted); text-underline-offset: 3px; }
.legal a:hover { color: var(--text); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.noscript { color: var(--muted); }
.noscript a { color: var(--cyan); }

.success { padding: 18px 2px 6px; text-align: center; }
.success-check {
  width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center;
  border-radius: 50%; background: var(--grad); color: var(--ink);
  box-shadow: 0 0 0 8px rgba(62, 245, 200, 0.1), 0 16px 40px -10px rgba(62, 245, 200, 0.6);
}
.success-check svg { width: 30px; height: 30px; }
.success h3 { font-size: 1.6rem; }
.success h3:focus { outline: none; }
.success > p { max-width: 38ch; margin: 10px auto 0; color: var(--muted); }
.success .slot {
  display: inline-block; margin-top: 18px; padding: 9px 14px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
}
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.scheduler-embed { margin-top: 24px; }
.scheduler-embed iframe { display: block; width: 100%; height: 680px; border: 0; border-radius: 14px; background: #fff; }

/* -------------------------------- Footer ------------------------------- */
.site-footer {
  padding: 48px 0 calc(110px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
}
.footer-grid { display: grid; gap: 30px; }
.footer-blurb { margin-top: 14px; max-width: 34ch; color: var(--muted); font-size: 0.94rem; }
.footer-title { margin-bottom: 10px; font: 600 0.72rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.footer-col a { display: inline-block; padding: 6px 0; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px;
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border);
  font-size: 0.84rem; color: var(--dim);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 900px) { .site-footer { padding-bottom: 48px; } }

/* -------------------------- Sticky mobile CTA -------------------------- */
.mobile-cta {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px;
  border-radius: 18px; border: 1px solid var(--border-strong);
  background: rgba(10, 17, 32, 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.75);
  transform: translateY(calc(100% + 40px)); visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0s 0.35s;
}
.mobile-cta.show { transform: none; visibility: visible; transition: transform 0.35s var(--ease); }
.mobile-cta p { flex: 1; min-width: 0; font-size: 0.8rem; line-height: 1.3; color: var(--muted); }
.mobile-cta p b { display: block; font-size: 0.9rem; color: var(--text); }
.mobile-cta .btn { min-height: 44px; padding: 0.6rem 1.05rem; font-size: 0.92rem; }
@media (min-width: 900px) { .mobile-cta { display: none; } }

/* ----------------------------- Legal pages ----------------------------- */
.legal-back { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.9rem; }
.legal-doc { max-width: 820px; padding-top: 40px; padding-bottom: 64px; }
.legal-head { padding-bottom: 22px; border-bottom: 1px solid var(--border-strong); }
.legal-head h1 { font-size: clamp(2rem, 7vw, 2.8rem); line-height: 1.1; letter-spacing: -0.03em; }
.legal-sub { margin-top: 8px; color: var(--muted); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 18px 0 0; font: 500 0.72rem/1.5 var(--font-mono); }
.legal-meta div { display: flex; gap: 8px; min-width: 0; }
.legal-meta dt { color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; }
.legal-meta dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.legal-scope {
  margin: 24px 0; padding: 16px 18px;
  border-left: 3px solid var(--cyan); border-radius: 0 12px 12px 0;
  background: rgba(79, 227, 255, 0.05); color: var(--muted); font-size: 0.95rem;
}
.legal-toc { padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.legal-toc h2 { margin-bottom: 10px; font: 600 0.74rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.legal-toc ol { display: grid; gap: 4px 28px; padding-left: 1.5em; list-style: decimal; color: var(--dim); }
.legal-toc a { color: var(--text); text-decoration: none; }
.legal-toc a:hover { color: var(--cyan); }
@media (min-width: 640px) { .legal-toc ol { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(6, auto); grid-auto-flow: column; } }
.legal-doc section {
  margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.legal-doc section h2 { margin-bottom: 12px; font-size: 1.3rem; }
.legal-doc section p, .legal-doc section li { color: #c3cddb; }
.legal-doc section p + p { margin-top: 12px; }
.legal-doc section b { color: var(--text); font-weight: 600; }
.legal-doc section ul { display: grid; gap: 8px; margin: 12px 0; padding-left: 1.3em; list-style: disc; }
.legal-doc section li::marker { color: var(--cyan); }
.legal-doc code {
  padding: 1px 5px; border-radius: 5px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.06);
  font: 0.86em var(--font-mono); color: var(--text); overflow-wrap: anywhere;
}
.legal-doc a { color: var(--cyan); text-underline-offset: 3px; }
.legal-doc .legal-permalink { font: 0.8rem var(--font-mono); color: var(--dim); }
.legal-foot { padding: 24px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--dim); }
.legal-foot p + p { margin-top: 4px; }
.legal-foot a { color: var(--muted); }

/* ---------------------------- Scroll reveal ---------------------------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].in { opacity: 1; transform: none; }
.js .card[data-reveal] {
  transition: opacity 0.8s var(--ease) var(--d, 0s), transform 0.8s var(--ease) var(--d, 0s), translate 0.3s var(--ease), border-color 0.3s;
}

/* --------------------------- Reduced motion ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
