/* Wrap365 site design system v2: VINYL360 "Garage Protocol" brand applied to Wrap365.
   Dark-only by design. Chamfered corners (45deg cuts), not rounded. HUD teal accent,
   flip gradient reserved for hero moments. Glass panels are a frosted approximation
   with solid fallbacks under prefers-reduced-transparency. */

/* ---------- Fonts (self-hosted, brand type system) ---------- */
@font-face { font-family: "Chakra Petch"; src: url("/assets/fonts/chakra-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("/assets/fonts/chakra-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("/assets/fonts/chakra-700i.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/plexmono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- Tokens (from vinyl360 tokens.json v1.1) ---------- */
:root {
  --void: #07090C;
  --booth: #0B0E12;
  --panel: #12161D;
  --panel2: #171C25;
  --seam: #262E3A;
  --seam2: #39424E;
  --gloss: #EAF0F6;
  --primer: #8A94A3;
  --hud: #2DE1C2;
  --hud-soft: rgba(45, 225, 194, 0.13);
  --hud-ink: #052821;
  --hazard: #FF5D5D;
  --flip: linear-gradient(115deg, #2DE1C2 0%, #4A7DFF 40%, #9A4DFF 70%, #E84DB0 100%);
  --font-display: "Chakra Petch", "Avenir Next Condensed", system-ui, sans-serif;
  --font-body: "Archivo", "Avenir Next", system-ui, sans-serif;
  --font-data: "IBM Plex Mono", "SF Mono", ui-monospace, monospace;
  --nav-h: 66px;
  /* chamfer cuts (TL + BR, matching the tile mark) */
  --cut-s: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  --cut-m: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  --cut-l: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  /* ambient orb colors, shifted per page stage */
  --orb-a: #0d3f38;
  --orb-b: #14294d;
  --orb-c: #0b1d33;
}
body[data-stage="1"] { --orb-a: #123c50; --orb-b: #0d3f38; --orb-c: #1b2340; }
body[data-stage="2"] { --orb-a: #16294d; --orb-b: #2b2050; --orb-c: #0d3a44; }
body[data-stage="3"] { --orb-a: #0d3f38; --orb-b: #241f4e; --orb-c: #14294d; }
body[data-stage="4"] { --orb-a: #103a52; --orb-b: #0f4038; --orb-c: #221d49; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* every in-page anchor (#plans, #billing, #payback, #film) otherwise lands
   underneath the sticky header */
html { scroll-padding-top: calc(var(--nav-h) + 24px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--void);
  color: var(--gloss);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(45, 225, 194, 0.3); }

/* ---------- Living background ---------- */
.sky {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background: radial-gradient(ellipse 120% 70% at 50% -10%, #0c1118 0%, var(--void) 62%);
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(110px); opacity: 0.9; will-change: transform;
  transition: background-color 1.6s ease, transform 1.6s ease;
}
.orb-a { width: 52vw; height: 52vw; top: -14vw; left: -10vw; background-color: var(--orb-a); }
.orb-b { width: 44vw; height: 44vw; top: 18vh; right: -14vw; background-color: var(--orb-b); }
.orb-c { width: 40vw; height: 40vw; bottom: -16vw; left: 22vw; background-color: var(--orb-c); }
@media (prefers-reduced-motion: no-preference) {
  .orb-a { animation: drift-a 46s ease-in-out infinite alternate; }
  .orb-b { animation: drift-b 58s ease-in-out infinite alternate; }
  .orb-c { animation: drift-c 52s ease-in-out infinite alternate; }
  @keyframes drift-a { to { transform: translate(9vw, 7vh) scale(1.12); } }
  @keyframes drift-b { to { transform: translate(-7vw, -6vh) scale(1.08); } }
  @keyframes drift-c { to { transform: translate(6vw, -8vh) scale(0.94); } }
}
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}

/* ---------- Chamfered panel (the signature surface) ----------
   .cham draws a 1px seam edge that survives the corner cuts:
   outer element = edge color clipped to the chamfer, ::before = fill inset 1px. */
.cham {
  position: relative;
  isolation: isolate;
  clip-path: var(--cut, var(--cut-l));
  background: linear-gradient(160deg, var(--seam2), var(--seam) 40%, var(--seam));
}
.cham::before {
  content: "";
  position: absolute; inset: 1px; z-index: -1;
  clip-path: var(--cut, var(--cut-l));
  background:
    linear-gradient(155deg, rgba(234, 240, 246, 0.085), rgba(234, 240, 246, 0.015) 45%),
    linear-gradient(to top, rgba(0, 0, 0, 0.30), transparent 42%),
    rgba(15, 19, 26, 0.62);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
}
.cham.solid::before {
  background: var(--panel);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
@media (prefers-reduced-transparency: reduce) {
  .cham::before { background: var(--panel); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.cut-s { --cut: var(--cut-s); }
.cut-m { --cut: var(--cut-m); }
.cut-l { --cut: var(--cut-l); }

/* pointer spotlight */
.spot::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  clip-path: var(--cut, var(--cut-l));
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(45, 225, 194, 0.09), transparent 65%);
  opacity: 0; transition: opacity 0.35s ease; pointer-events: none;
}
.spot:hover::after { opacity: 1; }

/* ---------- Type ---------- */
h1, .display {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.06;
  font-size: clamp(1.9rem, 4.4vw, 3.3rem);
}
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.12;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
}
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.02rem;
  line-height: 1.3;
}
.flip-ink {
  background: var(--flip);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { color: var(--primer); font-size: clamp(1rem, 1.35vw, 1.13rem); max-width: 58ch; }
.eyebrow {
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hud);
  margin-bottom: 14px;
}
a { color: var(--hud); text-decoration: none; }
a:hover { text-decoration: underline; }
.num { font-family: var(--font-data); font-weight: 500; }

/* ---------- Buttons (chamfered; confirm-pulse on press) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  clip-path: var(--cut-s);
  padding: 14px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.88rem;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--hud); color: var(--hud-ink); position: relative; overflow: hidden; isolation: isolate; }
.btn-primary:hover { background: #52ead0; }
.btn-primary::after {
  content: ""; position: absolute; top: -30%; bottom: -30%; left: -60%; width: 36%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg); pointer-events: none;
  transition: left 0.5s ease;
}
.btn-primary:hover::after { left: 125%; }
@media (prefers-reduced-motion: reduce) { .btn-primary::after { display: none; } }
.btn-ghost {
  position: relative;
  color: var(--gloss);
  background: linear-gradient(160deg, var(--seam2), var(--seam));
}
.btn-ghost::before {
  content: ""; position: absolute; inset: 1px; z-index: -1;
  clip-path: var(--cut-s);
  background: rgba(15, 19, 26, 0.7);
}
.btn-ghost { isolation: isolate; }
.btn-ghost:hover { color: var(--hud); }

/* ---------- Layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
@media (max-width: 767px) { section { padding: 64px 0; } }

/* ---------- Nav (tabs) ---------- */
.nav {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 20px));
  z-index: 50;
  --cut: var(--cut-m);
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 0 18px 0 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; z-index: 1; }
.brand:hover { text-decoration: none; }
.brand svg { display: block; }
.brand .word {
  font-family: var(--font-display);
  font-weight: 700; font-style: italic;
  font-size: 1.06rem; letter-spacing: 0.02em;
  color: var(--gloss);
}
.brand .word b { background: var(--flip); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  /* the ribbon W folds in one stroke at a time, then the shadowed faces settle */
  .brand .rb polygon { opacity: 0; transform: translateY(6px); transform-box: fill-box; animation: rbIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
  .brand .rb polygon:nth-child(2) { animation-delay: 0.1s; }
  .brand .rb polygon:nth-child(3) { animation-delay: 0.2s; }
  .brand .rb polygon:nth-child(4) { animation-delay: 0.3s; }
  .brand .rs { opacity: 0; animation: rsIn 0.4s ease 0.5s forwards; }
  @keyframes rbIn { to { opacity: 1; transform: none; } }
  @keyframes rsIn { to { opacity: 0.32; } }
}
.tabs { display: flex; gap: 4px; align-items: stretch; height: 100%; z-index: 1; }
.tabs a {
  position: relative;
  display: flex; align-items: center;
  padding: 0 15px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: var(--primer);
  text-decoration: none;
  transition: color 0.2s ease;
}
.tabs a:hover { color: var(--gloss); }
.tabs a.active { color: var(--gloss); }
.tabs a.active::after {
  content: "";
  position: absolute; left: 15px; right: 15px; top: 0;
  height: 2px;
  background: var(--hud);
}
.nav .cta { display: flex; gap: 10px; align-items: center; z-index: 1; }
.nav .cta .btn { padding: 11px 20px; font-size: 0.8rem; }
.menu-btn {
  display: none;
  background: none; border: 0; color: var(--gloss);
  width: 44px; height: 44px; cursor: pointer;
  align-items: center; justify-content: center;
  z-index: 1;
}
.sheet {
  display: none;
  position: fixed;
  top: calc(var(--nav-h) + 22px);
  left: 10px; right: 10px;
  z-index: 49;
  --cut: var(--cut-m);
  padding: 16px;
  flex-direction: column; gap: 2px;
}
.sheet a {
  color: var(--gloss); text-decoration: none;
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.95rem;
  padding: 13px 14px;
  z-index: 1;
}
.sheet a.active { color: var(--hud); }
.sheet a:hover { color: var(--hud); }
.sheet .btn { margin-top: 10px; }
body.sheet-open .sheet { display: flex; }
@media (max-width: 960px) {
  .tabs, .nav .cta .btn-ghost { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 400px) {
  .nav { padding: 0 8px 0 12px; gap: 8px; }
  .brand { gap: 8px; }
  .brand .word { font-size: 1rem; }
  .nav .cta { gap: 4px; }
  .nav .cta .btn { padding: 11px 13px; font-size: 0.74rem; letter-spacing: 0.04em; }
  .menu-btn { width: 40px; }
}

/* ---------- Promo ribbon ---------- */
.ribbon {
  display: none;
  position: fixed; bottom: 16px; left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 48;
  --cut: var(--cut-s);
  padding: 12px 22px;
  font-family: var(--font-display);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  font-size: 0.8rem;
  color: var(--gloss);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  max-width: calc(100% - 28px);
  text-align: center;
}
.ribbon.on { display: block; }
.ribbon.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ribbon b { color: var(--hud); font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  min-height: 92dvh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 44px) 0 36px;
}
.hero.short { min-height: 0; padding-bottom: 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 46px; align-items: center;
  width: 100%;
}
.hero-copy .lede { margin: 18px 0 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
/* The caption used to be absolutely positioned in the same bottom-left corner
   as the film strip, so the two overlapped and the caption ran off the stage.
   It lives under the stage now, in its own column. */
.hero-stage-col { display: grid; gap: 12px; align-content: center; }
.hero-stage { position: relative; min-height: 460px; --cut: var(--cut-l); }
.hero-stage .spin {
  position: relative; z-index: 1;
  width: 100%; height: 100%; min-height: 460px;
}
.stage-caption {
  margin: 0; padding-left: 2px;
  font-family: var(--font-data);
  font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--primer);
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding-top: calc(var(--nav-h) + 56px); }
  .hero-stage, .hero-stage .spin { min-height: 330px; }
}

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

.card { padding: 30px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--primer); font-size: 0.97rem; }
.card .go {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px;
  font-family: var(--font-data);
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hud);
  z-index: 1; position: relative;
}
.card .go::after { content: "\2192"; transition: transform 0.2s ease; }
.card:hover .go::after { transform: translateX(4px); }
.card:hover, .cell:hover { background: linear-gradient(160deg, rgba(45, 225, 194, 0.55), var(--seam) 45%); }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.cell { padding: 32px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.cell-a { grid-column: span 7; min-height: 360px; }
.cell-b { grid-column: span 5; min-height: 360px; }
.cell-c { grid-column: span 12; }
.cell-c-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
@media (max-width: 900px) {
  .cell-a, .cell-b { grid-column: span 12; min-height: 300px; }
  .cell-c-inner { grid-template-columns: 1fr; gap: 16px; }
}

.art-ring {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 90% 60% at 72% 6%, rgba(45, 225, 194, 0.14), transparent 55%),
    conic-gradient(from 210deg at 72% 28%, transparent 0deg, rgba(45, 225, 194, 0.2) 40deg, transparent 90deg, rgba(74, 125, 255, 0.13) 160deg, transparent 220deg, rgba(154, 77, 255, 0.14) 300deg, transparent 360deg);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 70% 22%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 100% 80% at 70% 22%, #000 30%, transparent 75%);
}
.art-pulse {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle 260px at 78% 16%, rgba(45, 225, 194, 0.18), transparent 70%),
    linear-gradient(200deg, rgba(23, 28, 37, 0.85), transparent 60%);
}
.cell > * { position: relative; z-index: 1; }

.badge {
  display: inline-flex; align-items: center;
  align-self: flex-start;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  background: var(--hud-soft);
  color: var(--hud);
  padding: 5px 12px;
  font-family: var(--font-data);
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 14px;
}
.stat-big {
  font-family: var(--font-data);
  font-size: clamp(2.4rem, 4.4vw, 3.3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--gloss);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-big em { font-style: normal; color: var(--hud); }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill-row span {
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  background: var(--panel2);
  padding: 8px 15px;
  font-family: var(--font-data);
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primer);
}

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 50px; align-items: center; }
.split .visual { min-height: 330px; position: relative; }
.brandwall {
  position: absolute; inset: 0; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 24px;
}
.brandwall > div {
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  background: var(--panel2);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: 0.02em; font-size: 1rem;
  padding: 10px;
}
@media (min-width: 901px) { .split.rev > :first-child { order: 2; } }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Timeline rail ---------- */
.rail { position: relative; margin-top: 44px; }
.rail::before {
  content: "";
  position: absolute; left: 11px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(var(--hud), rgba(45, 225, 194, 0.05));
}
.rail .step { position: relative; padding: 0 0 40px 52px; max-width: 640px; }
.rail .step:last-child { padding-bottom: 0; }
.rail .step::before {
  content: "";
  position: absolute; left: 4px; top: 5px;
  width: 14px; height: 14px;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  background: var(--hud);
}
.rail .step h3 { margin-bottom: 8px; }
.rail .step p { color: var(--primer); }

/* ---------- Film ---------- */
.film-frame { position: relative; aspect-ratio: 16 / 9; margin-top: 40px; --cut: var(--cut-l); overflow: hidden; }
.film-frame iframe, .film-frame video {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; border: 0; display: block; background: #000;
  clip-path: var(--cut-l);
}
.film-empty {
  position: absolute; inset: 1px; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  clip-path: var(--cut-l);
  background:
    radial-gradient(ellipse 70% 90% at 50% 110%, rgba(45, 225, 194, 0.12), transparent 60%),
    linear-gradient(170deg, rgba(23, 28, 37, 0.7), rgba(9, 12, 17, 0.85));
}
.film-empty .play {
  width: 74px; height: 74px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  background: var(--hud-soft);
  display: flex; align-items: center; justify-content: center;
}
.film-empty .play::after {
  content: "";
  margin-left: 5px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--hud);
}
.film-empty p {
  color: var(--primer);
  font-family: var(--font-data);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
}
@media (prefers-reduced-motion: no-preference) {
  .film-empty .play { animation: pulse 3.2s ease-in-out infinite; }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(45, 225, 194, 0.2); }
    50% { box-shadow: 0 0 0 18px rgba(45, 225, 194, 0); }
  }
}

/* ---------- Testimonial ---------- */
.quote-card { max-width: 820px; margin: 0 auto; padding: 48px 50px 42px; }
.quote-card blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
  line-height: 1.45;
  position: relative; z-index: 1;
}
.quote-card blockquote::before { content: "\201C"; color: var(--hud); }
.quote-card blockquote::after { content: "\201D"; color: var(--hud); }
.attrib { display: flex; align-items: center; gap: 14px; margin-top: 24px; position: relative; z-index: 1; }
.attrib .mark {
  width: 44px; height: 44px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  background: linear-gradient(140deg, #133c35, #101b2e);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--hud);
}
.attrib .who b { display: block; color: var(--gloss); font-weight: 600; }
.attrib .who span { color: var(--primer); font-size: 0.88rem; }
@media (max-width: 640px) { .quote-card { padding: 32px 24px 28px; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1.12fr; gap: 18px; align-items: stretch; margin-top: 44px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan { padding: 34px; display: flex; flex-direction: column; }
.plan > * { position: relative; z-index: 1; }
.plan.featured { background: linear-gradient(160deg, rgba(45, 225, 194, 0.7), var(--seam) 45%); }
.plan .name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.2rem; }
.plan .for { color: var(--primer); font-size: 0.92rem; margin: 4px 0 22px; }
.price-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font-family: var(--font-data); font-size: 2.7rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.price-was { color: var(--primer); text-decoration: line-through; font-family: var(--font-data); font-size: 1.2rem; display: none; }
.per { color: var(--primer); font-size: 0.9rem; }
.promo-note { display: none; margin-top: 10px; color: var(--hud); font-size: 0.88rem; font-weight: 600; }
.plan ul { list-style: none; margin: 24px 0 28px; display: grid; gap: 11px; }
.plan li { padding-left: 26px; position: relative; color: var(--primer); font-size: 0.96rem; }
.plan li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 13px; height: 7px;
  border-left: 2px solid var(--hud);
  border-bottom: 2px solid var(--hud);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; }
body.promo-discount .price-was { display: inline; }
body.promo-discount .promo-note, body.promo-trial .promo-note { display: block; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 40px auto 0; display: grid; gap: 10px; }
.faq details { --cut: var(--cut-m); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.92rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  position: relative; z-index: 1;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.35rem; color: var(--hud);
  transition: transform 0.25s ease; flex-shrink: 0;
  font-family: var(--font-data);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 24px 22px; color: var(--primer); max-width: 64ch; position: relative; z-index: 1; }

/* ---------- CTA band ---------- */
.band { text-align: center; padding: 68px 32px; --cut: var(--cut-l); }
.band > * { position: relative; z-index: 1; }
.band h2 { margin-bottom: 14px; }
.band .lede { margin: 0 auto 28px; }
.band-rule { height: 3px; background: var(--flip); margin: 0 auto 34px; max-width: 220px; }

/* ---------- Footer ---------- */
footer { padding: 56px 0 34px; border-top: 1px solid var(--seam); margin-top: 32px; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; align-items: start; }
.foot h4 {
  font-family: var(--font-data); font-weight: 500;
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primer); margin-bottom: 12px;
}
.foot-col a { display: block; color: var(--gloss); opacity: 0.82; text-decoration: none; font-size: 0.92rem; padding: 5px 0; }
.foot-col a:hover { color: var(--hud); opacity: 1; text-decoration: none; }
.foot .fine { color: var(--primer); opacity: 0.8; font-size: 0.88rem; margin-top: 14px; max-width: 34ch; }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--seam);
  font-family: var(--font-data); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primer);
}
@media (max-width: 800px) { .foot { grid-template-columns: 1fr 1fr; gap: 30px; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Prose pages ---------- */
.page-head { padding: calc(var(--nav-h) + 78px) 0 26px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.2rem; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--primer); }
.prose ul { margin: 12px 0 12px 22px; }
.prose .updated { color: var(--primer); opacity: 0.7; font-family: var(--font-data); font-size: 0.8rem; letter-spacing: 0.1em; }
.callout { padding: 22px 26px; margin: 26px 0; --cut: var(--cut-m); }
.callout b { color: var(--gloss); }
.callout > * { position: relative; z-index: 1; }

/* ---------- Forms ---------- */
.form-card { max-width: 520px; margin: 0 auto; padding: 36px; --cut: var(--cut-l); }
.form-card > * { position: relative; z-index: 1; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label {
  font-family: var(--font-data);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primer);
}
.field input, .field select, .field textarea {
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  background: var(--panel2);
  border: 0;
  border-bottom: 1px solid var(--seam2);
  color: var(--gloss);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-bottom-color: var(--hud);
  background: #1a2029;
}
.field .err { color: var(--hazard); font-size: 0.85rem; display: none; }
.field.bad input { border-bottom-color: var(--hazard); }
.field.bad .err { display: block; }
.form-msg { margin-top: 16px; font-size: 0.95rem; display: none; }
.form-msg.ok { display: block; color: var(--hud); }
.form-msg.fail { display: block; color: var(--hazard); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Admin ---------- */
.admin-grid { display: grid; gap: 18px; max-width: 860px; }
.admin-grid > * { min-width: 0; }
.mode-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .mode-row { grid-template-columns: 1fr; } }
.mode-card {
  position: relative;
  clip-path: var(--cut-s);
  padding: 19px;
  cursor: pointer;
  background: var(--panel2);
  transition: background-color 0.2s ease;
}
.mode-card.sel { background: var(--hud-soft); outline: none; }
.mode-card.sel h3 { color: var(--hud); }
.mode-card h3 { font-size: 0.9rem; margin-bottom: 5px; }
.mode-card p { color: var(--primer); font-size: 0.85rem; }
.admin-panel { padding: 28px; --cut: var(--cut-l); }
.admin-panel > * { position: relative; z-index: 1; }
.admin-panel h2 { font-size: 1.05rem; margin-bottom: 16px; }
.range-row { display: flex; align-items: center; gap: 16px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--hud); }
.range-val { font-family: var(--font-data); font-weight: 500; font-size: 1.3rem; min-width: 64px; text-align: right; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tbl th {
  text-align: left; color: var(--primer);
  font-family: var(--font-data); font-weight: 500;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 12px; border-bottom: 1px solid var(--seam);
}
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--seam); color: var(--primer); }
.tbl th, .tbl td { white-space: nowrap; }
.tbl-scroll { overflow-x: auto; }
.save-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.save-note { color: var(--primer); font-size: 0.9rem; }
.live-dot { color: var(--hud); font-family: var(--font-data); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; display: none; }
.live-dot.show { display: inline; }

/* ---------- HUD stat strip (home hero) ---------- */
.hud-strip { display: flex; margin-top: 30px; --cut: var(--cut-m); max-width: 560px; }
.hud-strip > div { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 14px 18px; position: relative; z-index: 1; border-left: 1px solid var(--seam); }
.hud-strip > div:first-child { border-left: 0; }
.hud-strip b { display: block; font-family: var(--font-data); font-weight: 500; font-size: 1.35rem; line-height: 1.1; color: var(--gloss); white-space: nowrap; }
.hud-strip b em { font-style: normal; color: var(--hud); }
.hud-strip small { display: block; margin-top: 4px; font-family: var(--font-data); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primer); }
@media (max-width: 640px) {
  .hud-strip { flex-direction: column; max-width: none; }
  .hud-strip > div { border-left: 0; border-top: 1px solid var(--seam); padding: 12px 16px; display: flex; flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 12px; }
  .hud-strip > div:first-child { border-top: 0; }
  .hud-strip small { margin-top: 0; }
}

/* ---------- UI mocks (illustrative product surfaces, pure HTML/CSS) ----------
   A .ui panel is a chamfered .cham with a title bar and a body grid. Rows, chat
   bubbles, board columns and KPI tiles compose inside it, or stand alone in a bento cell. */
.ui { --cut: var(--cut-m); font-size: 0.8rem; line-height: 1.4; }
.ui > * { position: relative; z-index: 1; }
.ui-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--seam);
  font-family: var(--font-data); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primer);
}
.ui-bar i {
  display: block; width: 8px; height: 8px; flex-shrink: 0;
  clip-path: polygon(2px 0, 100% 0, 100% calc(100% - 2px), calc(100% - 2px) 100%, 0 100%, 0 2px);
  background: var(--seam2);
}
.ui-bar i:first-child { background: var(--hud); }
.ui-bar span { margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-bar .r { margin-left: auto; color: var(--hud); flex-shrink: 0; }
/* the single track is minmax(0,1fr) so no row's nowrap text can floor the panel width */
.ui-body { padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ui-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: rgba(23, 28, 37, 0.7);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.ui-av {
  width: 30px; height: 30px; flex-shrink: 0;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  background: var(--seam2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.02em;
  color: var(--gloss);
}
.ui-av.ok { background: var(--hud-soft); color: var(--hud); }
.ui-row .txt { min-width: 0; flex: 1; line-height: 1.35; contain: inline-size; }
.ui-row .txt b, .ui-row .txt small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-row .txt b { color: var(--gloss); font-weight: 600; }
.ui-row .txt small { color: var(--primer); font-size: 0.72rem; margin-top: 1px; }
.ui-tag {
  flex-shrink: 0;
  font-family: var(--font-data); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--hud); background: var(--hud-soft);
  padding: 4px 8px;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}
.ui-tag.warm { color: #F5C451; background: rgba(245, 196, 81, 0.12); }
.ui-tag.dim { color: var(--primer); background: var(--panel2); }
/* chat thread */
.ui-chat { display: grid; gap: 8px; }
.ui-msg {
  max-width: 82%; justify-self: start;
  padding: 9px 12px; line-height: 1.4;
  background: var(--panel2); color: var(--gloss);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.ui-msg.me { justify-self: end; background: var(--hud); color: var(--hud-ink); }
.ui-msg time { display: block; margin-top: 4px; font-family: var(--font-data); font-size: 0.6rem; letter-spacing: 0.08em; opacity: 0.72; }
/* pipeline board */
.ui-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ui-col h5 {
  display: flex; justify-content: space-between; gap: 6px;
  font-family: var(--font-data); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primer); margin-bottom: 8px;
}
.ui-col h5 em { font-style: normal; color: var(--hud); }
.ui-card {
  background: rgba(23, 28, 37, 0.85);
  border-left: 2px solid var(--seam2);
  padding: 8px 10px; margin-bottom: 8px;
  color: var(--gloss); line-height: 1.35;
}
.ui-card:last-child { margin-bottom: 0; }
.ui-card.hot { border-left-color: var(--hud); }
.ui-card small { display: block; margin-top: 3px; color: var(--primer); font-family: var(--font-data); font-size: 0.62rem; letter-spacing: 0.06em; }
@media (max-width: 640px) {
  .ui-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ui-col:nth-child(3) { display: none; }
}
/* KPI tiles */
.ui-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ui-kpi {
  padding: 10px 12px;
  background: rgba(23, 28, 37, 0.7);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.ui-kpi b { display: block; font-family: var(--font-data); font-weight: 500; font-size: clamp(0.95rem, 3vw, 1.15rem); line-height: 1.1; color: var(--gloss); }
.ui-kpi small { display: block; margin-top: 3px; font-family: var(--font-data); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primer); }
/* the first bar dot breathes: the surface is live */
@media (prefers-reduced-motion: no-preference) {
  .ui-bar i:first-child { animation: uiLive 2.4s ease-in-out infinite; }
  @keyframes uiLive { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
}
/* mocks living inside home bento cells */
.cell .ui-float {
  position: absolute; top: 26px; right: 26px;
  width: min(320px, calc(100% - 52px));
  font-size: 0.8rem;
  background: rgba(18, 22, 29, 0.92);
}
@media (max-width: 900px) {
  /* the stacked cell has no empty sky above its copy: let the row flow in place */
  .cell .ui-float { position: relative; top: auto; right: auto; width: auto; margin-bottom: 18px; }
}
.cell .ui-chat { font-size: 0.8rem; margin: 6px 0 20px; max-width: 360px; }
.cell .ui-cols { font-size: 0.78rem; }

/* ---------- Plan comparison ---------- */
.cmp-wrap { margin-top: 64px; }
.cmp-wrap h2 { margin-bottom: 22px; }
.cmp-panel { --cut: var(--cut-l); padding: 6px 0; }
.cmp-panel > * { position: relative; z-index: 1; }
.cmp { min-width: 520px; width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.cmp th {
  text-align: left; padding: 16px 22px;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.84rem;
  color: var(--gloss); border-bottom: 1px solid var(--seam2);
}
.cmp th.ultra { color: var(--hud); }
.cmp th:nth-child(n+2), .cmp td:nth-child(n+2) { text-align: center; width: 22%; }
.cmp td { padding: 13px 22px; border-bottom: 1px solid var(--seam); color: var(--gloss); }
.cmp td:nth-child(n+2) { color: var(--primer); font-size: 0.9rem; }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .y::before { content: "\2713"; content: "\2713" / "Included"; color: var(--hud); font-family: var(--font-data); font-size: 1.05rem; }
.cmp .n::before { content: "\00B7"; content: "\00B7" / "Not included"; color: var(--primer); opacity: 0.55; font-size: 1.6rem; line-height: 0; }
.cmp tbody tr { transition: background-color 0.2s ease; }
.cmp tbody tr:hover { background: rgba(45, 225, 194, 0.04); }
@media (max-width: 640px) {
  /* on a phone the three columns compress instead of hiding the plan checks behind a scroll */
  .cmp { min-width: 0; font-size: 0.88rem; }
  .cmp th, .cmp td { padding: 12px 12px; }
  .cmp th:nth-child(n+2), .cmp td:nth-child(n+2) { width: 74px; }
  .cmp th { font-size: 0.74rem; }
}

/* ---------- Depth + CTA (hero floor, CTA note, phone dock) ----------
   The hero stage gets a lit studio floor under the 3D model: a perspective
   grid that fades toward the horizon and a teal ground glow, so the vehicle
   sits ON something instead of floating in a panel. */
.stage-floor {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  pointer-events: none;
  container-type: size;
  /* --hz: where the floor meets the backdrop. The car's tyre line sits on the
     80% line (GROUND in site.js), so everything between --hz and that line is
     floor BEHIND the vehicle: the plane tone, the horizon haze and the grid all
     run up to --hz, and the grid's vanishing line is pinned to it below. */
  --hz: 50%;
  background:
    radial-gradient(ellipse 58% 30% at 50% 100%, rgba(45, 225, 194, 0.26), transparent 70%),
    radial-gradient(ellipse 80% 18% at 50% var(--hz), rgba(150, 222, 232, 0.16), transparent 70%),
    linear-gradient(to bottom,
      transparent calc(var(--hz) - 1.5%),
      rgba(234, 240, 246, 0.085) var(--hz),
      rgba(234, 240, 246, 0.03) calc(var(--hz) + 12%),
      rgba(45, 225, 194, 0.035) calc(var(--hz) + 26%),
      rgba(45, 225, 194, 0.07) 100%);
}
/* Perspective grid on the floor plane. A plane rotated about its bottom edge
   by 64deg converges on a line perspective/tan(64deg) above that edge, so
   perspective = (100% - --hz) * 2.05 puts the vanishing line exactly on the
   horizon; the element is many stage-heights tall so its far edge reaches the
   line, and the mask (applied before the transform) fades the far cells before
   they alias. */
.stage-floor::before {
  content: ""; position: absolute; left: -120%; right: -120%; top: -1400%; bottom: 0;
  background-image:
    linear-gradient(rgba(45, 225, 194, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 225, 194, 0.15) 1px, transparent 1px);
  background-size: 46px 46px;
  background-position: 50% 100%;
  transform-origin: 50% 100%;
  transform: perspective(441px) rotateX(64deg);
  -webkit-mask-image: linear-gradient(to top, #000 4%, rgba(0, 0, 0, 0.8) 9%, transparent 32%);
  mask-image: linear-gradient(to top, #000 4%, rgba(0, 0, 0, 0.8) 9%, transparent 32%);
}
@supports (height: 1cqh) {
  .stage-floor::before { transform: perspective(102.5cqh) rotateX(64deg); }
}
.stage-floor::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 55%;
  background: radial-gradient(ellipse 60% 90% at 50% 0%, rgba(234, 240, 246, 0.10), transparent 62%);
}

.cta-note {
  margin: 14px 0 0;
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-family: var(--font-data);
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primer);
}
.cta-note > span { white-space: nowrap; padding-left: 15px; position: relative; }
.cta-note > span::before {
  content: ""; position: absolute; left: 0; top: 0.52em;
  width: 7px; height: 2px; background: var(--hud); opacity: 0.75;
}
.cta-note [data-from] { color: var(--gloss); }
.hero-copy .cta-note + .hud-strip { margin-top: 26px; }

/* Phone CTA dock: slides in once the hero has scrolled away, hides while the
   footer (which carries its own links) is on screen. Desktop keeps the nav CTA. */
.cta-dock {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 9px 9px 16px;
  --cut: var(--cut-s);
  transform: translateY(130%); opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.cta-dock.show { transform: none; opacity: 1; }
.cta-dock .btn { padding: 11px 16px; font-size: 0.76rem; letter-spacing: 0.05em; flex: none; }
.dock-copy {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-data);
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primer);
}
.dock-copy b { color: var(--gloss); font-weight: 500; }
@media (max-width: 900px) {
  .cta-dock { display: flex; }
  body.sheet-open .cta-dock { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cta-dock { transition: none; } }

/* ---------- Stage seams (depth between sections) ----------
   A hairline with a teal glint where one page stage hands off to the next, so
   the page reads as stacked plates instead of one continuous scroll. */
section { position: relative; }
section[data-stage] + section[data-stage]::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(1132px, calc(100% - 48px)); height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--seam2) 22%, rgba(45, 225, 194, 0.5) 50%, var(--seam2) 78%, transparent);
}
section[data-stage] + section[data-stage]::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 240px; height: 1px; pointer-events: none;
  box-shadow: 0 0 26px 7px rgba(45, 225, 194, 0.2);
}

/* ---------- 360 spin stage ---------- */
/* Photographic turntable (46 alpha WebP frames on a canvas). The poster <img>
   is frame 00 laid out with the same math the canvas uses (96% width cap, 62%
   height cap, the ring's mean tyre line on the 80% line: translateY(2.16%) is
   the floor padding under that line, FOOT in site.js) so the swap to canvas
   is invisible. */
.spin {
  display: block;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
  cursor: grab;
  outline: none;
}
.spin.grab { cursor: grabbing; }
.spin:focus-visible { box-shadow: inset 0 0 0 2px var(--hud); }
.spin canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 0.35s;
}
.spin.live canvas { opacity: 1; }
.spin .poster {
  position: absolute; left: 2%; width: 96%; bottom: 20%; max-height: 62%;
  height: auto;
  transform: translateY(2.16%);
  object-fit: contain; object-position: 50% 100%;
  pointer-events: none;
  transition: opacity 0.25s;
}
.spin.live .poster { opacity: 0; }

/* ---------- Payback calculator (pricing) ---------- */
.roi-panel {
  clip-path: var(--cut-l);
  background: linear-gradient(180deg, var(--panel) 0%, var(--booth) 100%);
  border: 1px solid var(--seam);
  padding: 38px clamp(20px, 4vw, 44px) 40px;
}
.roi-head { max-width: 62ch; }
.roi-head h2 { margin-top: 6px; }
.roi-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 46px);
  margin-top: 32px;
  align-items: start;
}
.roi-inputs { min-width: 0; }
.roi-fine { color: var(--primer); font-size: 0.86rem; line-height: 1.6; margin-top: 14px; }
.roi-out {
  min-width: 0;
  clip-path: var(--cut-m);
  background: var(--panel2);
  border: 1px solid var(--seam2);
  padding: 28px 26px 30px;
  display: grid;
  gap: 22px;
}
.roi-label {
  display: block;
  font-family: var(--font-data);
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primer);
  margin-bottom: 8px;
}
.roi-big {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.3rem, 6vw, 3.4rem);
  line-height: 1;
  background: var(--flip);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  overflow-wrap: anywhere;
}
.roi-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; border-top: 1px solid var(--seam); padding-top: 20px; }
.roi-num { font-family: var(--font-data); font-weight: 500; font-size: 1.5rem; color: var(--gloss); }
.roi-num.hud { color: var(--hud); }
.roi-net {
  color: var(--gloss); font-size: 0.95rem; line-height: 1.6;
  border-top: 1px solid var(--seam); padding-top: 20px;
}
.roi-net.thin { color: var(--primer); }
.roi-out .btn { justify-content: center; }
@media (max-width: 860px) {
  .roi-body { grid-template-columns: 1fr; }
}
@media (prefers-reduced-transparency: reduce) {
  .roi-panel { background: var(--panel); }
}

/* ---------- Admin funnel ---------- */
.funnel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.funnel-head h2 { margin: 0; }
.funnel-steps { display: grid; gap: 14px; }
.funnel-step {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 72px minmax(0, 1fr) minmax(96px, auto);
  align-items: center; gap: 14px;
}
.funnel-label { font-family: var(--font-data); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primer); }
.funnel-num { font-family: var(--font-data); font-weight: 500; font-size: 1.25rem; color: var(--gloss); }
.funnel-bar { height: 10px; background: var(--panel2); border: 1px solid var(--seam); overflow: hidden; min-width: 0; }
.funnel-bar i { display: block; height: 100%; background: var(--flip); transition: width 0.5s ease; }
.funnel-rate { font-family: var(--font-data); font-size: 0.78rem; color: var(--hud); text-align: right; }
.funnel-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 30px; }
.funnel-sub { font-family: var(--font-data); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primer); margin: 0 0 10px; }
@media (max-width: 760px) {
  .funnel-cols { grid-template-columns: 1fr; }
  .funnel-step { grid-template-columns: 1fr auto; grid-template-areas: "label num" "bar bar" "rate rate"; gap: 6px 12px; }
  .funnel-label { grid-area: label; }
  .funnel-num { grid-area: num; text-align: right; }
  .funnel-bar { grid-area: bar; }
  .funnel-rate { grid-area: rate; text-align: left; }
}
.roi-share {
  background: none; border: 0; padding: 0;
  color: var(--primer); font-family: var(--font-data);
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; text-align: center; margin-top: -8px;
  transition: color 0.2s ease;
}
.roi-share:hover, .roi-share:focus-visible { color: var(--hud); }

/* --- the app hub (/apps) --------------------------------------------------
   Three product cards, the platform-aware install guide, and the workspace
   links only an owner sees. */

.who {
  margin-top: 18px;
  font-family: var(--font-data);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primer);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.app-card {
  background: var(--panel);
  border: 1px solid var(--seam);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
}

.app-head {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.app-head h2 { font-size: 1.1rem; margin: 0; }

.app-kicker {
  margin: 2px 0 0;
  color: var(--primer);
  font-size: 0.84rem;
}

.app-icon {
  width: 46px;
  height: 46px;
  border: 1px solid var(--seam2);
  background: var(--panel2);
  position: relative;
  clip-path: var(--cut-s, none);
}

.app-icon::after {
  content: "";
  position: absolute;
  inset: 12px;
  background: var(--hud);
}

.app-icon.studio::after {
  background: linear-gradient(135deg, #2DE1C2, #4A7DFF 45%, #9A4DFF);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.app-icon.shop::after {
  background: #7FA6FF;
  clip-path: polygon(0 22%, 100% 22%, 100% 100%, 0 100%);
}

.app-icon.crm::after {
  background: #F06CC0;
  border-radius: 50%;
}

.app-state {
  font-family: var(--font-data);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primer);
  border: 1px solid var(--seam2);
  padding: 4px 9px;
  white-space: nowrap;
}

.app-state.live { color: var(--hud); border-color: var(--hud); }

.app-card > p { color: var(--primer); font-size: 0.95rem; }

.app-facts {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 9px;
  flex: 1;
}

.app-facts li {
  position: relative;
  padding-left: 24px;
  color: var(--primer);
  font-size: 0.9rem;
}

.app-facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--hud);
  border-bottom: 2px solid var(--hud);
  transform: rotate(-45deg);
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.app-pending { color: var(--primer); font-size: 0.85rem; }

.install-help,
.ws-card {
  margin-top: 34px;
  background: var(--panel);
  border: 1px solid var(--seam);
  padding: 26px 24px;
}

.install-help h3,
.ws-card h3 { margin: 0 0 14px; font-size: 1.02rem; }

.install-help ol { margin: 0; padding-left: 20px; color: var(--primer); }
.install-help li { margin-bottom: 8px; font-size: 0.93rem; }
.install-help .fine { margin-top: 14px; }

.ws-card form { margin-top: 18px; max-width: 520px; }

.signout-row { margin: 40px 0 80px; }

/* --- hero: the Studio, live ----------------------------------------------
   The stage starts as the cheap 46-frame spin and becomes the real 3D studio
   the moment a visitor picks a film. The studio bundle is 1.6 MB, so it is
   never on the critical path of a homepage that has to load fast. */

.hero-studio {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--void);
  z-index: 3;
}

.hero-films {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: rgba(7, 9, 12, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--seam2);
  clip-path: var(--cut-s);
}

.films-label {
  font-family: var(--font-data);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primer);
  margin-right: 3px;
}

.film {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(234, 240, 246, 0.28);
  background: var(--chip);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.film:hover,
.film:focus-visible { transform: translateY(-2px); border-color: var(--hud); }

.hero-films.gone { display: none; }

/* --- the revenue arm ------------------------------------------------------ */

.arm-note {
  margin-top: 26px;
  padding: 26px 28px;
  background: var(--hud-soft);
  border: 1px solid var(--hud);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.arm-note p { margin: 0; max-width: 62ch; color: var(--gloss); font-size: 0.98rem; }
.arm-note b { color: var(--hud); }

/* --- install strip -------------------------------------------------------- */

.device-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.device {
  background: var(--panel);
  border: 1px solid var(--seam);
  padding: 20px 20px 18px;
  display: grid;
  gap: 6px;
}

.device b { font-family: var(--font-display); font-size: 1rem; }
.device span { color: var(--primer); font-size: 0.88rem; }

@media (max-width: 720px) {
  .hero-films { left: 10px; bottom: 10px; padding: 7px 9px; gap: 7px; }
  .film { width: 22px; height: 22px; }
  .films-label { display: none; }
}

/* The `hidden` attribute must actually hide.
   The UA stylesheet's [hidden]{display:none} loses to any class that sets
   display, and .btn is inline-flex, so `el.hidden = true` on a button was doing
   nothing: the app hub showed "Open Shop OS" next to "your URL appears here once
   we provision it". One rule, and every hidden control in the site obeys. */
[hidden] { display: none !important; }


/* --- shared section utilities (were inline styles on the homepage) --------- */
.center { text-align: center; }
.sec-lede { margin-top: 16px; }
.center.sec-lede { margin-left: auto; margin-right: auto; }
.bento { margin-top: 42px; }
.device-row { margin-top: 38px; }
.quote-card { margin-top: 40px; }
.steps-cta { margin-top: 34px; }
.steps-sub { margin-top: 14px; }
.cell.card { text-decoration: none; color: inherit; }

/* --- the revenue arm, rebuilt --------------------------------------------
   Six boxes of long bullets read as a spec sheet. The capability list is the
   same length, but a promise line carries the sell and the capabilities sit
   as scannable tags underneath it. */
.arm-lede { margin-top: 16px; max-width: 74ch; }

.replaces {
  margin-top: 34px;
  display: grid;
  gap: 14px;
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--seam);
  --cut: var(--cut-m);
}
.replaces-label {
  font-family: var(--font-data);
  font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--hud);
}
.replaces ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 10px;
}
.replaces li {
  font-family: var(--font-data);
  font-size: 0.76rem; letter-spacing: 0.04em;
  color: var(--primer);
  padding: 5px 11px;
  border: 1px solid var(--seam2);
  text-decoration: line-through;
  text-decoration-color: var(--hazard);
  text-decoration-thickness: 1px;
}
.replaces-note { margin: 0; color: var(--gloss); font-size: 0.95rem; }

.arm-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.arm-col {
  background: var(--panel);
  border: 1px solid var(--seam);
  padding: 24px 24px 22px;
  --cut: var(--cut-m);
  display: flex; flex-direction: column;
}
.arm-col header { display: flex; align-items: baseline; gap: 12px; }
.arm-no {
  font-family: var(--font-data);
  font-size: 0.72rem; letter-spacing: 0.14em;
  color: var(--hud);
}
.arm-col h3 { font-size: 1.05rem; margin: 0; color: var(--gloss); }
.arm-col > p {
  margin: 12px 0 16px;
  color: var(--gloss);
  font-size: 0.94rem;
  line-height: 1.55;
}
.arm-col .tags {
  list-style: none; margin: 0; padding: 16px 0 0;
  border-top: 1px solid var(--seam);
  display: flex; flex-wrap: wrap; gap: 7px;
}
.arm-col .tags li {
  font-family: var(--font-data);
  font-size: 0.71rem; letter-spacing: 0.03em; line-height: 1.35;
  color: var(--primer);
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--seam);
}

/* --- how the sale happens ------------------------------------------------- */
.steps {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.step {
  background: var(--panel);
  border: 1px solid var(--seam);
  padding: 26px 24px 24px;
  --cut: var(--cut-m);
}
.step-no {
  display: block;
  font-family: var(--font-data);
  font-size: 0.72rem; letter-spacing: 0.16em;
  color: var(--hud);
}
.step h3 { margin: 10px 0 10px; font-size: 1.12rem; }
.step p { margin: 0; color: var(--primer); font-size: 0.93rem; line-height: 1.6; }
