/* Clipistry landing page. Tokens first: components below use only these. Dark is the default; light is its own
   palette (not an inversion), applied by System preference or by the footer's theme switch. */

:root {
  /* brand: the logo's own gradient, violet → magenta → orange */
  --violet: #6a3bff;
  --magenta: #c43dd0;
  --orange: #ff8f57;
  --grad: linear-gradient(100deg, var(--violet) 0%, var(--magenta) 55%, var(--orange) 100%);
  --grad-btn: linear-gradient(100deg, #6a3bff 0%, #9d3ee0 100%);

  /* dark palette */
  --ground: #08070c;
  --surface: #111019;
  --surface-2: #19172a;
  --field: #0d0c14;
  --ink: #f4f2fa;
  --ink-muted: #a9a4bd;
  --ink-faint: #767190;
  --line: rgba(232, 226, 255, 0.08);
  --line-strong: rgba(232, 226, 255, 0.16);
  --accent: #a68bff;
  --pill-bg: #efecf7;
  --pill-ink: #0c0a14;
  --good: #4ade80;
  --wash-a: rgba(106, 59, 255, 0.22);
  --wash-b: rgba(255, 143, 87, 0.10);
  --glass: rgba(17, 16, 25, 0.72);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --shadow-float: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 60px -20px rgba(0, 0, 0, 0.75);
  --phone-edge: rgba(255, 255, 255, 0.10);
  --dots: rgba(232, 226, 255, 0.07);

  /* type */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --t-xs: 12px;
  --t-sm: 14px;
  --t-md: 16px;
  --t-body: 17px;
  --t-lg: 20px;
  --t-xl: 24px;
  --t-2xl: clamp(28px, 2.2vw + 18px, 36px);
  --t-d2: clamp(34px, 3.6vw + 18px, 60px);
  --t-d1: clamp(42px, 5.2vw + 20px, 88px);

  /* space (4/8 grid), shape, motion */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 144px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in: cubic-bezier(0.5, 0, 0.75, 0);
  --fast: 180ms;
  --wrap: 1200px;
  --pad: clamp(64px, 9svh, 112px);   /* a section's top and bottom room */
  --gutter: 16px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --ground: #faf9fc;
  --surface: #ffffff;
  --surface-2: #f2f0f8;
  --field: #ffffff;
  --ink: #14121c;
  --ink-muted: #57526b;
  --ink-faint: #7f7a95;
  --line: rgba(28, 20, 60, 0.09);
  --line-strong: rgba(28, 20, 60, 0.17);
  --accent: #5b2ff0;
  --pill-bg: #14121c;
  --pill-ink: #ffffff;
  --good: #15803d;
  --wash-a: rgba(106, 59, 255, 0.12);
  --wash-b: rgba(255, 143, 87, 0.12);
  --glass: rgba(255, 255, 255, 0.78);
  --shadow: 0 1px 2px rgba(30, 20, 70, 0.06), 0 8px 24px -12px rgba(30, 20, 70, 0.18);
  --shadow-float: 0 2px 6px rgba(30, 20, 70, 0.08), 0 30px 60px -24px rgba(30, 20, 70, 0.35);
  --phone-edge: rgba(20, 18, 28, 0.12);
  --dots: rgba(28, 20, 60, 0.08);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ground: #faf9fc;
    --surface: #ffffff;
    --surface-2: #f2f0f8;
    --field: #ffffff;
    --ink: #14121c;
    --ink-muted: #57526b;
    --ink-faint: #7f7a95;
    --line: rgba(28, 20, 60, 0.09);
    --line-strong: rgba(28, 20, 60, 0.17);
    --accent: #5b2ff0;
    --pill-bg: #14121c;
    --pill-ink: #ffffff;
    --good: #15803d;
    --wash-a: rgba(106, 59, 255, 0.12);
    --wash-b: rgba(255, 143, 87, 0.12);
    --glass: rgba(255, 255, 255, 0.78);
    --shadow: 0 1px 2px rgba(30, 20, 70, 0.06), 0 8px 24px -12px rgba(30, 20, 70, 0.18);
    --shadow-float: 0 2px 6px rgba(30, 20, 70, 0.08), 0 30px 60px -24px rgba(30, 20, 70, 0.35);
    --phone-edge: rgba(20, 18, 28, 0.12);
    --dots: rgba(28, 20, 60, 0.08);
    color-scheme: light;
  }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: 650; }
::selection { background: rgba(106, 59, 255, 0.35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: var(--s-4); top: -60px; z-index: 100;
  background: var(--surface); padding: var(--s-2) var(--s-4); border-radius: var(--r-sm);
}
.skip:focus { top: var(--s-4); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.eyebrow {
  font: 600 var(--t-xs)/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.display, .display-2 {
  font-weight: 650;
  letter-spacing: -0.042em;
  line-height: 1.02;
  text-wrap: balance;
}
.display { font-size: var(--t-d1); }
.display-2 { font-size: var(--t-d2); letter-spacing: -0.036em; line-height: 1.05; }
.display-3 { font-size: clamp(26px, 1.6vw + 16px, 40px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
.muted { color: var(--ink-muted); }
.lede { font-size: clamp(17px, 0.5vw + 15px, 20px); color: var(--ink-muted); max-width: 58ch; text-wrap: pretty; }

/* the highlighted keyword: a solid pill with a small brand-gradient badge */
.pill {
  display: inline-flex; align-items: center; gap: 0.16em;
  white-space: nowrap;
  background: var(--pill-bg); color: var(--pill-ink);
  border-radius: 0.34em;
  padding: 0.02em 0.22em 0.06em 0.14em;
  line-height: 1.08;
  vertical-align: baseline;
  box-shadow: 0 0 0 1px var(--line), 0 10px 40px -12px rgba(106, 59, 255, 0.55);
}
.pill-icon {
  width: 0.62em; height: 0.62em; flex: none;
  padding: 0.11em; border-radius: 50%;
  background: var(--grad); color: #fff;
  transform: translateY(0.02em);
}

/* ---------- buttons, links, fields ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-5);
  border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 600; font-size: var(--t-md); letter-spacing: -0.01em; white-space: nowrap;
  cursor: pointer;
  transition: transform var(--fast) var(--ease-out), background-color var(--fast), border-color var(--fast), box-shadow var(--fast);
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 38px; padding: 0 var(--s-4); font-size: var(--t-sm); }
.btn-lg { min-height: 52px; padding: 0 var(--s-6); font-size: var(--t-md); }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--grad-btn); color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 10px 30px -10px rgba(140, 70, 255, 0.7), 0 6px 24px -14px rgba(255, 143, 87, 0.8);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 14px 36px -10px rgba(140, 70, 255, 0.85), 0 8px 30px -12px rgba(255, 143, 87, 0.9); }
.btn-primary svg { transition: transform var(--fast) var(--ease-out); }
.btn-primary:hover svg { transform: translateX(2px); }
.btn-quiet { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
.btn-quiet:hover { border-color: var(--line-strong); }
.link-quiet { font-size: var(--t-sm); font-weight: 550; color: var(--ink-muted); padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); transition: color var(--fast); }
.link-quiet:hover { color: var(--ink); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; background: transparent; border-radius: var(--r-pill); cursor: pointer; color: var(--ink);
  transition: background-color var(--fast), transform var(--fast) var(--ease-out);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn-ring { border: 1px solid var(--line-strong); }

.field { display: grid; gap: var(--s-2); }
.field span { font-size: var(--t-sm); font-weight: 550; color: var(--ink-muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4);
  font: inherit; font-size: var(--t-md); color: var(--ink);
  background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color var(--fast), box-shadow var(--fast);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(106, 59, 255, 0.25); }
.field input[aria-invalid="true"] { border-color: #f87171; }

/* ---------- header ---------- */

.top {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color 240ms, border-color 240ms, backdrop-filter 240ms;
  border-bottom: 1px solid transparent;
}
.top.scrolled { background: var(--glass); border-bottom-color: var(--line); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); }
.top-in { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; height: 64px; display: flex; align-items: center; gap: var(--s-5); }
.brand { display: flex; align-items: center; margin-left: -6px; padding: 6px; }
.logo { height: 30px; width: auto; }
.nav { display: none; gap: var(--s-1); margin-left: var(--s-4); }
.nav a { font-size: var(--t-sm); font-weight: 550; color: var(--ink-muted); padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); transition: color var(--fast); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.show-sm { display: inline-grid; }
.hide-sm { display: none; }
@media (min-width: 1000px) {
  .nav { display: flex; }
  .show-sm { display: none; }
  .hide-sm { display: inline-flex; }
}
@media (max-width: 380px) { .logo { height: 26px; } }

/* logo per theme: the white wordmark on dark, the for-light cut-out on light; never recoloured */
.logo-light { display: none; }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .logo-dark { display: none; }
  :root:not([data-theme="dark"]) .logo-light { display: block; }
}

.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.45); }
.drawer[hidden] { display: none; }
.drawer-in {
  position: absolute; inset: 0 0 auto 0;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: calc(env(safe-area-inset-top) + var(--s-3)) var(--gutter) var(--s-6);
  box-shadow: var(--shadow-float);
  animation: drop 240ms var(--ease-out);
}
@keyframes drop { from { transform: translateY(-16px); opacity: 0; } }
.drawer-close { margin-left: auto; display: grid; }
.drawer nav { display: grid; margin-top: var(--s-2); }
.drawer nav a { font-size: var(--t-xl); font-weight: 650; letter-spacing: -0.02em; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.drawer-sign { display: grid; gap: var(--s-2); margin-top: var(--s-5); }
.drawer-sign .eyebrow { margin-bottom: var(--s-1); }

/* ---------- reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--rd, 0ms); }

/* ---------- hero: the promise, then the arc of our work ---------- */

.hero { position: relative; overflow: clip; display: flex; flex-direction: column; padding: var(--s-6) 0 var(--s-6); }
.wash {
  position: absolute; inset: -20% -10% auto -10%; height: 900px; pointer-events: none; z-index: -1;
  background:
    radial-gradient(36% 46% at 50% 40%, var(--wash-a), transparent 70%),
    radial-gradient(26% 34% at 64% 52%, var(--wash-b), transparent 70%);
}
.wash-low { inset: auto -10% -30% -10%; height: 700px; background: radial-gradient(40% 50% at 30% 60%, var(--wash-a), transparent 70%), radial-gradient(30% 40% at 60% 70%, var(--wash-b), transparent 70%); }
.hero-copy { display: grid; justify-items: center; text-align: center; gap: var(--s-4); }
.hero-copy .eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero-copy .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.hero .display { font-size: clamp(40px, 3.4vw + 18px, 80px); }
.hero-copy .lede { max-width: 64ch; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-1); }
@media (min-width: 960px) {
  /* the copy, the arc and its controls share the first screen: the cards take whatever height is left */
  .hero { min-height: calc(100svh - 64px); padding: clamp(16px, 4svh, 48px) 0 var(--s-4); }
  .hero .arc { --cw: clamp(150px, min(20vw, calc((100svh - 630px) * 0.5625)), 270px); flex: 1 0 auto; }
}

/* the ticker: everything a video gets, slowly passing */
.ticker {
  border-block: 1px solid var(--line); overflow: hidden; padding: var(--s-4) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: tick 48s linear infinite; }
.ticker-track span {
  display: inline-flex; align-items: center; gap: var(--s-6); padding-right: var(--s-6);
  font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.02em; color: var(--ink-muted); white-space: nowrap;
}
.ticker-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */

.section { position: relative; padding-block: var(--s-9); }
@media (min-width: 960px) { .section { padding-block: var(--pad); } }
.sec-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-8); max-width: 820px; }
.sec-head.center { text-align: center; justify-items: center; margin-inline: auto; margin-bottom: var(--s-6); }

/* ---------- how it works ---------- */

.steps { display: grid; gap: var(--s-8); counter-reset: step; position: relative; }
.step { display: grid; gap: var(--s-5); align-items: center; }
.step-copy { display: grid; gap: var(--s-3); max-width: 460px; }
.step-num {
  justify-self: start; font: 600 var(--t-xs)/1 var(--mono); letter-spacing: 0.08em; color: var(--ink-muted);
  padding: 6px 10px; border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  transition: color 300ms, border-color 300ms, background-color 300ms;
}
.step.on .step-num { color: #fff; border-color: transparent; background: var(--grad-btn); }
.step h3 { font-size: var(--t-2xl); font-weight: 650; letter-spacing: -0.03em; line-height: 1.12; }
.step p { color: var(--ink-muted); }
.step-vis {
  position: relative; height: 380px; border-radius: var(--r-lg); overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, var(--dots) 1px, transparent 1.5px) 0 0 / 18px 18px,
    var(--surface);
  border: 1px solid var(--line);
}
@media (min-width: 900px) {
  .steps { gap: var(--s-9); }
  .step { grid-template-columns: 0.85fr 1.15fr; gap: var(--s-8); }
  .step:nth-child(even) { grid-template-columns: 1.15fr 0.85fr; }
  .step:nth-child(even) .step-copy { order: 2; }
  .step-vis { height: 420px; }
  .vis-kit { min-height: 420px; }
}

/* 1 · brand kit: inputs arrive, the kit assembles */
.vis-kit { height: auto; min-height: 380px; display: grid; grid-template-columns: 1fr; align-content: center; justify-items: center; gap: var(--s-4); padding: var(--s-5); }
.kit-inputs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); max-width: 380px; }
.kit-chip {
  display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3);
  border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line);
  font: 500 var(--t-xs)/1 var(--mono); color: var(--ink);
  opacity: 0; transform: translateY(-14px) scale(0.96);
}
.kit-chip svg { width: 16px; height: 16px; color: var(--ink-muted); }
.kit-card {
  width: min(320px, 100%); display: grid; gap: var(--s-1); padding: var(--s-3);
  border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow-float);
  opacity: 0; transform: translateY(18px) scale(0.97);
}
.kit-row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2); border-radius: var(--r-sm); }
.kit-row b { display: block; font-size: var(--t-sm); }
.kit-row small { display: block; font-size: var(--t-xs); color: var(--ink-muted); }
.kit-logo { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #1f6f5c; color: #fff; font: 700 var(--t-sm)/1 var(--sans); }
.kit-swatches { gap: var(--s-2); }
.kit-swatches i { flex: 1; height: 34px; border-radius: 8px; transform: scaleY(0); transform-origin: bottom; }
.kit-swatches i:nth-child(1) { background: #1f6f5c; }
.kit-swatches i:nth-child(2) { background: #e9dcc6; }
.kit-swatches i:nth-child(3) { background: #d9693a; }
.kit-swatches i:nth-child(4) { background: #222018; }
.aa { width: 40px; height: 40px; display: grid; place-items: center; font-size: var(--t-lg); font-weight: 750; letter-spacing: -0.04em; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.bars { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; gap: 3px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.bars i { width: 3px; height: 8px; border-radius: 2px; background: var(--grad); }
.step.on .kit-chip { animation: chipIn 520ms var(--ease-out) forwards; }
.step.on .kit-chip:nth-child(2) { animation-delay: 120ms; }
.step.on .kit-chip:nth-child(3) { animation-delay: 240ms; }
.step.on .kit-chip:nth-child(4) { animation-delay: 360ms; }
.step.on .kit-card { animation: cardIn 700ms var(--ease-out) 620ms forwards; }
.step.on .kit-swatches i { animation: swatch 500ms var(--ease-out) forwards; }
.step.on .kit-swatches i:nth-child(1) { animation-delay: 1050ms; }
.step.on .kit-swatches i:nth-child(2) { animation-delay: 1130ms; }
.step.on .kit-swatches i:nth-child(3) { animation-delay: 1210ms; }
.step.on .kit-swatches i:nth-child(4) { animation-delay: 1290ms; }
.step.on .bars i { animation: bar 1.1s ease-in-out 1.4s infinite alternate; }
.step.on .bars i:nth-child(2) { animation-delay: 1.5s; }
.step.on .bars i:nth-child(3) { animation-delay: 1.62s; }
.step.on .bars i:nth-child(4) { animation-delay: 1.45s; }
.step.on .bars i:nth-child(5) { animation-delay: 1.7s; }
.step.on .bars i:nth-child(6) { animation-delay: 1.55s; }
.step.on .bars i:nth-child(7) { animation-delay: 1.66s; }
@keyframes chipIn { to { opacity: 1; transform: none; } }
@keyframes cardIn { to { opacity: 1; transform: none; } }
@keyframes swatch { to { transform: scaleY(1); } }
@keyframes bar { from { height: 6px; } to { height: 24px; } }

/* 2 · storyboard: three looks rise in, one gets picked */
.vis-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); padding: var(--s-5); align-items: center; }
.look { display: grid; gap: var(--s-2); justify-items: center; opacity: 0; transform: translateY(24px); transition: opacity 400ms, transform 400ms var(--ease-out), filter 400ms; }
.look-frame { position: relative; width: 100%; max-width: 168px; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line-strong), var(--shadow); transition: box-shadow 400ms, transform 400ms var(--ease-out); }
.look-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 600ms; }
.look-frame img.cur { opacity: 1; }
.look-name { font-size: var(--t-xs); font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.look-badge {
  position: absolute; left: 50%; bottom: 10px; transform: translate(-50%, 8px) scale(0.9); opacity: 0;
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px 5px 8px; border-radius: var(--r-pill);
  background: #fff; color: #14121c; font-size: var(--t-xs); font-weight: 650; white-space: nowrap; box-shadow: var(--shadow);
  transition: opacity 300ms, transform 300ms var(--ease-out);
}
.look-badge svg { width: 14px; height: 14px; color: #15803d; }
.step.on .look { animation: cardIn 600ms var(--ease-out) forwards; }
.step.on .look:nth-child(2) { animation-delay: 140ms; }
.step.on .look:nth-child(3) { animation-delay: 280ms; }
.vis-board.picked .look:not(.chosen) { filter: grayscale(0.35) brightness(0.85); }
.vis-board.picked .look:not(.chosen) .look-frame { transform: scale(0.94); }
.vis-board.picked .chosen .look-frame { transform: scale(1.04); box-shadow: 0 0 0 2px var(--violet), 0 0 0 5px rgba(196, 61, 208, 0.25), var(--shadow-float); }
.vis-board.picked .chosen .look-badge { opacity: 1; transform: translate(-50%, 0) scale(1); }
.vis-board.picked .chosen .look-name { color: var(--ink); }

/* 3 · approve: a note on a moment, made again, approved */
.vis-approve { display: grid; place-items: center; padding: var(--s-5); }
.ap-card { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); width: min(460px, 100%); padding: var(--s-3); border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow-float); }
.ap-media { width: clamp(110px, 30vw, 150px); aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #000; }
.ap-media img { width: 100%; height: 100%; object-fit: cover; }
.ap-side { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; padding-top: var(--s-1); }
.ap-title { font-weight: 650; font-size: var(--t-md); line-height: 1.25; letter-spacing: -0.01em; }
.ap-meta { font-size: var(--t-xs); color: var(--ink-muted); font-family: var(--mono); }
.ap-track { position: relative; height: 4px; border-radius: 4px; background: var(--line-strong); margin-top: var(--s-3); }
.ap-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; background: var(--grad); }
.ap-pin { position: absolute; left: 11%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--violet); transform: scale(0); }
.ap-note, .ap-fixed { font-size: var(--t-xs); line-height: 1.4; padding: var(--s-2) var(--s-3); border-radius: 10px; opacity: 0; transform: translateY(6px); }
.ap-note { background: var(--surface); border: 1px solid var(--line-strong); }
.ap-time { font-family: var(--mono); color: var(--accent); margin-right: 6px; font-weight: 600; }
.ap-fixed { display: inline-flex; align-items: center; gap: 6px; color: var(--good); background: transparent; padding-inline: 0; margin-top: -4px; }
.ap-fixed svg { width: 14px; height: 14px; }
.ap-btns { display: flex; gap: var(--s-2); margin-top: auto; }
.ap-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 36px; border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: 650; background: var(--surface); border: 1px solid var(--line); }
.ap-btn svg { width: 14px; height: 14px; }
.step.on .ap-fill { animation: fill 900ms var(--ease-out) 300ms forwards; }
.step.on .ap-pin { animation: pop 300ms var(--ease-out) 1150ms forwards; }
.step.on .ap-note { animation: noteIn 400ms var(--ease-out) 1350ms forwards; }
.step.on .ap-fixed { animation: noteIn 400ms var(--ease-out) 2700ms forwards; }
.step.on .ap-yes { animation: approve 500ms var(--ease-out) 3400ms forwards; }
@keyframes fill { to { width: 11%; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes noteIn { to { opacity: 1; transform: none; } }
@keyframes approve { 40% { transform: scale(0.95); } to { background: var(--grad-btn); color: #fff; border-color: transparent; transform: none; box-shadow: 0 8px 24px -10px rgba(140, 70, 255, 0.8); } }

/* 4 · schedule: posts drop into the week */
.vis-cal { display: grid; place-items: center; padding: var(--s-4); }
.cal { width: min(520px, 100%); padding: var(--s-4); border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow-float); }
.cal-head { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); font-size: var(--t-sm); }
.cal-head svg { width: 18px; height: 18px; color: var(--ink-muted); }
.cal-head span { margin-left: auto; color: var(--ink-muted); font-size: var(--t-xs); font-family: var(--mono); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-day { text-align: center; font: 600 var(--t-xs)/1 var(--mono); color: var(--ink-muted); padding-bottom: 6px; }
.cal-cell { aspect-ratio: 9 / 15; border-radius: 8px; background: var(--surface); border: 1px dashed var(--line-strong); position: relative; overflow: hidden; }
.cal-post { position: absolute; inset: 0; opacity: 0; transform: translateY(-30px) scale(0.9); }
.cal-post img { width: 100%; height: 100%; object-fit: cover; }
.cal-list { display: grid; margin-top: var(--s-3); border-top: 1px solid var(--line); }
.cal-list li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--line); font-size: var(--t-xs); opacity: 0; }
.cal-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.cal-list .when { font-family: var(--mono); color: var(--ink-muted); width: 72px; flex: none; }
.cal-list .what { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.cal-list .where { color: var(--ink-muted); }
.step.on .cal-post { animation: postIn 600ms cubic-bezier(0.3, 1.4, 0.5, 1) forwards; }
.step.on .p2 { animation-delay: 220ms; }
.step.on .p3 { animation-delay: 440ms; }
.step.on .cal-list li { animation: noteIn 400ms var(--ease-out) forwards; }
.step.on .cal-list li:nth-child(1) { animation-delay: 800ms; }
.step.on .cal-list li:nth-child(2) { animation-delay: 920ms; }
.step.on .cal-list li:nth-child(3) { animation-delay: 1040ms; }
@keyframes postIn { to { opacity: 1; transform: none; } }

/* ---------- engine ---------- */

.engine { background: linear-gradient(180deg, transparent, var(--surface) 18%, var(--surface) 82%, transparent); }
.eng { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); align-items: start; }
@media (min-width: 1000px) {
  .eng { grid-template-columns: auto minmax(0, 1fr); gap: var(--s-7); }
  .eng-player { width: clamp(240px, calc((100svh - 64px - 2 * var(--pad) - 100px) * 0.5625), 340px); }
  .eng-head-copy { margin-bottom: 0; gap: var(--s-3); }
  .eng-side { gap: var(--s-4); }
  .eng-head-copy .display-2 { font-size: clamp(30px, 1.8vw + 14px, 46px); }
  .eng-head-copy .lede { font-size: var(--t-md); }
}
.eng-player {
  margin: 0; justify-self: center; width: min(340px, 100%);
  border-radius: var(--r-lg); overflow: hidden; background: var(--ground);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-float);
}
.win-bar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 var(--s-4); border-bottom: 1px solid var(--line); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.win-bar span { flex: 1; text-align: center; margin-right: 40px; font: 500 var(--t-xs)/1 var(--mono); color: var(--ink-muted); }
.eng-screen { aspect-ratio: 9 / 16; background: #000; }
.eng-screen video { width: 100%; height: 100%; object-fit: cover; }
.eng-controls { display: flex; align-items: center; gap: var(--s-1); padding: var(--s-2); }
.eng-time { font: 500 var(--t-xs)/1 var(--mono); color: var(--ink-muted); font-variant-numeric: tabular-nums; min-width: 34px; text-align: center; }
.eng-time b { color: var(--ink); font-weight: 600; }
.eng-scrub { flex: 1; min-width: 0; height: 44px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.eng-scrub::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ink) var(--p, 0%), var(--line-strong) var(--p, 0%)); }
.eng-scrub::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-strong); }
.eng-scrub::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ink); }
.eng-scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--ink); border: 0; }
.eng-scrub::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 0; }

.eng-panel {
  min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); padding: var(--s-5);
  border-radius: var(--r-lg); background: var(--ground); border: 1px solid var(--line-strong); box-shadow: var(--shadow-float);
}
.eng-stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-6); }
.eng-stats div { display: flex; align-items: baseline; gap: var(--s-2); }
.eng-stats b { font-size: clamp(28px, 2.4vw + 14px, 44px); font-weight: 650; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.eng-stats span { color: var(--ink-muted); font-size: var(--t-md); }
.eng-stats .eng-dur { margin-left: auto; }
.eng-stats .eng-dur b { font: 500 var(--t-md)/1 var(--mono); color: var(--ink-muted); letter-spacing: 0; }
.eng-tl { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding-top: var(--s-1); cursor: pointer; touch-action: pan-y; }
.eng-wave { width: 100%; min-width: 0; height: 44px; }
.eng-film { display: flex; gap: 2px; height: 52px; }
.eng-film i { flex: 1; min-width: 0; border-radius: 3px; background-repeat: no-repeat; background-color: var(--surface-2); }
.eng-scenes { display: flex; gap: 3px; height: 24px; }
.eng-scenes span {
  position: relative; min-width: 0; height: 100%; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line);
  font: 500 var(--t-xs)/22px var(--mono); color: var(--ink-faint); padding: 0 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  transition: color 200ms, background-color 200ms, border-color 200ms;
}
.eng-scenes span.cur { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }
.eng-scenes span.cur::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); }
.eng-lensbox { position: absolute; top: 0; bottom: 0; border-radius: 6px; border: 1.5px solid var(--ink); pointer-events: none; transition: left 80ms linear; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0); }
.eng-head { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--ink); pointer-events: none; }
.eng-head::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 3px; background: var(--ink); }
.eng-lens {
  position: relative; height: 140px; overflow: hidden; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.eng-lens-track { position: absolute; top: 0; bottom: 0; left: 50%; will-change: transform; }
.eng-lens-head { position: absolute; top: 10px; bottom: 10px; left: 50%; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 2px; }
.eng-lens-head::before { content: ""; position: absolute; top: -2px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.w {
  position: absolute; top: 14px; height: 32px; display: flex; align-items: center;
  font-size: var(--t-md); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; color: var(--ink-faint);
  transition: color 120ms;
}
.w.r2 { top: 48px; }
.w span { padding: 2px 6px; border-radius: 6px; transition: background-color 120ms, color 120ms, box-shadow 120ms; }
.w.k span { color: var(--ink); box-shadow: inset 0 -3px 0 rgba(255, 143, 87, 0.85); }
.w.said { color: var(--ink-muted); }
.w.now { color: var(--ink); }
.w.now span { background: var(--pill-bg); color: var(--pill-ink); box-shadow: 0 0 0 1px var(--line-strong); }
.w.now.k span { background: var(--grad-btn); color: #fff; }
.cap { position: absolute; top: 86px; height: 10px; border: 1.5px solid var(--line-strong); border-top: 0; border-radius: 0 0 6px 6px; }
.cap.now { border-color: var(--accent); }
.tick { position: absolute; bottom: 10px; width: 1px; height: 8px; background: var(--line-strong); }
.tick.sec { height: 14px; background: var(--ink-faint); }
.tick-label { position: absolute; bottom: 26px; transform: translateX(-50%); font: 500 var(--t-xs)/1 var(--mono); color: var(--ink-faint); }
.eng-now { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2) var(--s-3); font-size: var(--t-sm); }
.eng-now b { text-transform: capitalize; }
.eng-look { margin-left: auto; color: var(--ink-muted); font-size: var(--t-xs); font-family: var(--mono); }

.eng-side { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); align-content: start; }
.checks { display: grid; gap: var(--s-3); }

/* phones and tablets: a small player beside the counts, so the video and its timeline fit on one screen */
@media (max-width: 999px) {
  .eng { grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr); gap: var(--s-5) var(--s-4); }
  .eng-side, .eng-panel { display: contents; }
  .eng-player { grid-column: 1; grid-row: 1; width: 100%; max-width: 300px; border-radius: var(--r); }
  .win-bar { height: 28px; padding: 0 var(--s-3); gap: 4px; }
  .win-bar i { width: 7px; height: 7px; }
  .win-bar span { display: none; }
  .eng-scrub, [data-eng-dur] { display: none; }
  .eng-controls { justify-content: space-between; padding: var(--s-1); }
  .eng-stats { grid-column: 2; grid-row: 1; align-self: center; flex-direction: column; align-items: flex-start; gap: var(--s-4); }
  .eng-stats div { flex-direction: column; gap: 2px; }
  .eng-stats span { font-size: var(--t-sm); }
  .eng-stats .eng-dur { margin-left: 0; }
  .eng-tl, .eng-lens, .eng-now, .checks { grid-column: 1 / -1; }
  .eng-head-copy { grid-column: 1 / -1; grid-row: 1; margin-bottom: var(--s-2); }
  .eng-player, .eng-stats { grid-row: 2; }
  .eng-now { margin-top: calc(-1 * var(--s-2)); }
}
.checks-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.checks-list li { display: grid; gap: 2px; padding: var(--s-3) var(--s-4); background: var(--ground); }
.checks-list b { font-size: var(--t-lg); font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: var(--s-2); }
.checks-list b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.checks-list span { color: var(--ink-muted); font-size: var(--t-sm); }
@media (min-width: 760px) { .checks-list { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 759px) { .checks-list li:last-child { grid-column: span 2; } }

/* ---------- styles arc ---------- */

.styles { overflow: clip; padding-bottom: var(--s-8); }
.arc { --cw: clamp(150px, min(22vw, calc((100svh - 560px) * 0.5625)), 260px); position: relative; height: calc(var(--cw) * 16 / 9 + 170px); perspective: 1600px; outline: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.arc:focus-visible { outline: 2px solid var(--accent); outline-offset: -8px; border-radius: var(--r-lg); }
.arc-stage { position: absolute; inset: -30px 0 30px; transform-style: preserve-3d; }
.card {
  position: absolute; left: 50%; top: 50%; width: var(--cw); aspect-ratio: 9 / 16; margin: 0;
  transform-style: preserve-3d; cursor: pointer; will-change: transform;
  transition: transform 800ms var(--ease-out), opacity 800ms var(--ease-out), filter 800ms;
}
.card.dragging { transition: none; }
.card-media { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--phone-edge), var(--shadow-float); }
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media video { opacity: 0; transition: opacity 400ms; }
.card-media video.ready { opacity: 1; }
.card-tag {
  position: absolute; left: 50%; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px 7px 9px; border-radius: var(--r-pill);
  background: var(--pill-bg); color: var(--pill-ink); font-size: clamp(14px, 0.6vw + 11px, 18px); font-weight: 650; letter-spacing: -0.015em; white-space: nowrap;
  box-shadow: 0 0 0 1px var(--line-strong), var(--shadow);
  transform: translate(-50%, 0) rotate(var(--tr, 0deg)) translateZ(30px);
  pointer-events: none;
}
.card-tag svg { width: 18px; height: 18px; flex: none; padding: 3px; border-radius: 50%; background: var(--grad); color: #fff; }
.card-tag.up { bottom: calc(100% + 14px); }
.card-tag.down { top: calc(100% + 14px); }
.card-tag { transition: opacity 400ms; }
.card.tagless .card-tag { opacity: 0; }
.card-tag-in { display: contents; }
.js .card-tag { animation: bob 6s ease-in-out infinite; animation-delay: var(--bd, 0s); }
@keyframes bob { 50% { translate: 0 -6px; } }
.card.front .card-media { box-shadow: 0 0 0 1px var(--phone-edge), 0 0 0 6px rgba(106, 59, 255, 0.0), 0 40px 80px -30px rgba(106, 59, 255, 0.55), var(--shadow-float); }
.arc-foot { display: flex; align-items: center; justify-content: center; gap: var(--s-5); }
.arc-caption { display: grid; justify-items: center; gap: var(--s-2); min-width: 200px; text-align: center; }
.arc-title { font-size: clamp(22px, 1vw + 16px, 32px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; }
.arc-now { font-size: var(--t-sm); color: var(--ink-muted); min-height: 1.5em; }
.arc-now b { color: var(--ink); font-weight: 650; }

/* same video, any look: one moment in each of a job's looks, playing in step */
.looks { display: grid; gap: var(--s-6); align-items: center; }
.looks-copy { display: grid; gap: var(--s-4); }
@media (min-width: 960px) { .looks { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-8); } }
.looks-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.6vw, 20px); }
.look-phone { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); justify-items: center; }
.look-screen { position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: clamp(12px, 1.6vw, 22px); overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--phone-edge), var(--shadow-float); }
.look-screen img, .look-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.look-name { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 6px; font-size: var(--t-sm); font-weight: 600; text-align: center; }
.look-name i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.look-name small { color: var(--ink-muted); font-weight: 500; font-size: var(--t-xs); }

/* ---------- value ---------- */

.value-grid { display: grid; gap: var(--s-7); align-items: center; }
.value-copy { display: grid; gap: var(--s-4); }
@media (min-width: 960px) { .value-grid { grid-template-columns: 1fr 1fr; } }
.merge { position: relative; height: 380px; border-radius: var(--r-lg); border: 1px solid var(--line); background: radial-gradient(circle at 1px 1px, var(--dots) 1px, transparent 1.5px) 0 0 / 18px 18px, var(--surface); overflow: hidden; }
.role {
  position: absolute; left: 50%; top: 50%; padding: var(--s-2) var(--s-4); border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line-strong); font-size: var(--t-sm); font-weight: 600; white-space: nowrap; box-shadow: var(--shadow);
  transform: translate(-50%, -50%) translate(var(--x), var(--y));
  transition: transform 900ms var(--ease-out), opacity 700ms var(--ease-out);
}
.r1 { --x: -120px; --y: -140px; } .r2 { --x: 90px; --y: -132px; }
.r3 { --x: -150px; --y: -64px; } .r4 { --x: 150px; --y: -58px; }
.r5 { --x: -154px; --y: 60px; } .r6 { --x: 146px; --y: 66px; }
.r7 { --x: -96px; --y: 136px; } .r8 { --x: 104px; --y: 140px; }
@media (min-width: 560px) {
  .r1 { --x: -170px; --y: -130px; } .r2 { --x: 150px; --y: -136px; }
  .r3 { --x: -210px; --y: -40px; } .r4 { --x: 210px; --y: -44px; }
  .r5 { --x: -200px; --y: 56px; } .r6 { --x: 196px; --y: 52px; }
  .r7 { --x: -140px; --y: 140px; } .r8 { --x: 150px; --y: 136px; }
}
.merge-core {
  position: absolute; left: 50%; top: 50%; display: grid; justify-items: center; gap: 2px; width: max-content;
  padding: var(--s-5) var(--s-6); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -30px rgba(106, 59, 255, 0.6), var(--shadow-float);
  transform: translate(-50%, -50%) scale(0.6); opacity: 0;
  transition: transform 700ms cubic-bezier(0.3, 1.3, 0.5, 1) 500ms, opacity 400ms 500ms;
}
.merge-core img { width: 56px; height: auto; margin-bottom: var(--s-2); }
.merge-core b { font-size: var(--t-xl); letter-spacing: -0.03em; }
.merge-core small { color: var(--ink-muted); font-size: var(--t-sm); }
.merge.on .role { transform: translate(-50%, -50%) scale(0.6); opacity: 0; transition-delay: calc(var(--i, 0) * 50ms); }
.merge.on .merge-core { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.r1 { --i: 0; } .r2 { --i: 1; } .r3 { --i: 2; } .r4 { --i: 3; } .r5 { --i: 4; } .r6 { --i: 5; } .r7 { --i: 6; } .r8 { --i: 7; }

.values { display: grid; gap: var(--s-6) var(--s-6); margin-top: var(--s-8); }
.values li { display: grid; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--line-strong); }
.values h3 { font-size: var(--t-lg); font-weight: 650; letter-spacing: -0.02em; }
.values p { color: var(--ink-muted); font-size: var(--t-md); }
@media (min-width: 720px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .values { grid-template-columns: repeat(4, 1fr); } }

/* ---------- who ---------- */

.who-grid { display: grid; gap: var(--s-4); }
@media (min-width: 720px) { .who-grid { grid-template-columns: repeat(2, 1fr); } }
.who-card {
  display: grid; gap: var(--s-3); align-content: start; padding: var(--s-6);
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: transform 300ms var(--ease-out), border-color 300ms, box-shadow 300ms;
}
.who-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-float); }
.who-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--grad); color: #fff; }
.who-ic svg { width: 20px; height: 20px; }
.who-card h3 { font-size: var(--t-xl); font-weight: 650; letter-spacing: -0.025em; }
.who-card p { color: var(--ink-muted); }

/* ---------- not software ---------- */

.vs { display: grid; gap: var(--s-4); max-width: 960px; margin-inline: auto; }
@media (min-width: 760px) { .vs { grid-template-columns: 1fr 1fr; gap: var(--s-5); } }
.vs-card { display: grid; gap: var(--s-4); align-content: start; padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.vs-title { display: flex; align-items: center; gap: var(--s-2); font-weight: 650; font-size: var(--t-lg); letter-spacing: -0.02em; }
.vs-title img { width: 24px; height: auto; }
.vs-card ul { display: grid; gap: var(--s-1); }
.vs-card li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) 0; border-top: 1px solid var(--line); font-size: var(--t-md); }
.vs-card li svg { width: 18px; height: 18px; flex: none; }
.vs-them { color: var(--ink-muted); }
.vs-them li svg { color: var(--ink-faint); }
.vs-them li { text-decoration: line-through; text-decoration-color: transparent; transition: text-decoration-color 600ms; }
.vs-them.in li { text-decoration-color: var(--ink-faint); }
.vs-us {
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent; box-shadow: 0 30px 80px -40px rgba(106, 59, 255, 0.6), var(--shadow-float);
}
.vs-us li svg { color: var(--good); }
.js .vs-card li { opacity: 0; transform: translateX(-8px); }
.js .vs-card.in li { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.vs-card.in li:nth-child(2) { transition-delay: 90ms; }
.vs-card.in li:nth-child(3) { transition-delay: 180ms; }
.vs-card.in li:nth-child(4) { transition-delay: 270ms; }
.vs-card.in li:nth-child(5) { transition-delay: 360ms; }

/* ---------- pricing ---------- */

.billing { margin-top: var(--s-1); }
.pricing .sec-head { margin-bottom: var(--s-7); gap: var(--s-3); }
.seg.seg-text button { width: auto; height: 38px; padding: 0 var(--s-4); gap: var(--s-2); display: inline-flex; align-items: center; font-size: var(--t-sm); font-weight: 600; }
.save { padding: 3px 8px; border-radius: var(--r-pill); background: rgba(74, 222, 128, 0.14); color: var(--good); font-size: var(--t-xs); font-weight: 650; }
.tiers { display: grid; gap: var(--s-4); align-items: stretch; }
@media (min-width: 680px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tiers { grid-template-columns: repeat(4, 1fr); } }
.tier { position: relative; display: flex; flex-direction: column; gap: 6px; padding: var(--s-5) var(--s-5) var(--s-4); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.tier-pick, .sig {
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent; box-shadow: 0 30px 80px -40px rgba(106, 59, 255, 0.6), var(--shadow-float);
}
.tier-badge { position: absolute; top: -13px; left: var(--s-5); padding: 5px 12px; border-radius: var(--r-pill); background: var(--grad-btn); color: #fff; font: 600 var(--t-xs)/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.tier-name { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-xl); font-weight: 650; letter-spacing: -0.02em; }
.tier-for { color: var(--ink-muted); font-size: var(--t-sm); margin-top: -4px; }
.tier-price { display: flex; align-items: baseline; gap: 4px; margin-top: var(--s-2); }
.tier-price b { font-size: clamp(36px, 1.2vw + 26px, 46px); font-weight: 650; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.tier-price span, .tier-price small { color: var(--ink-muted); font-size: var(--t-md); }
.tier-price small { margin-right: 4px; }
.tier-sub { font: 500 var(--t-xs)/1.4 var(--mono); color: var(--ink-muted); min-height: 1.4em; }
.tier-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s-2); padding: var(--s-2) 0; margin: var(--s-1) 0; border-block: 1px solid var(--line); }
.tier-count b { font-size: var(--t-md); font-weight: 650; }
.tier-count span { color: var(--ink-muted); font-size: var(--t-sm); }
.tier-list { display: grid; gap: 6px; margin-bottom: var(--s-3); flex: 1; align-content: start; }
.tier-list li { display: flex; align-items: flex-start; gap: var(--s-2); font-size: var(--t-sm); line-height: 1.45; }
.tier-list svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--good); }
.status { padding: 4px 9px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--ink-muted); font: 600 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }

.sig { display: grid; gap: var(--s-5); margin-top: var(--s-5); padding: var(--s-6); border-radius: var(--r-lg); }
.sig .tier-count { border-bottom: 0; padding-bottom: 0; }
.sig-list { grid-template-columns: 1fr; margin: 0; }
.sig-cta { display: grid; gap: var(--s-4); align-content: center; justify-items: start; }
.sig-note { color: var(--ink-muted); font-size: var(--t-sm); }
@media (min-width: 900px) {
  .sig { grid-template-columns: 1fr 1.2fr 0.9fr; align-items: center; }
  .sig-list { grid-template-columns: 1fr 1fr; }
}

.extras { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
@media (min-width: 900px) { .extras { grid-template-columns: 1.1fr 1fr 1fr; } }
.included, .extra { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-5); border-radius: var(--r-lg); border: 1px solid var(--line); }
.included ul { display: grid; gap: var(--s-2); margin-top: var(--s-1); }
.included li { display: flex; gap: var(--s-2); align-items: center; font-size: var(--t-sm); }
.included svg { width: 16px; height: 16px; flex: none; color: var(--good); }
.extra-list { display: contents; }
.extra-name { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); font-weight: 650; letter-spacing: -0.01em; }
.extra-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s-2); }
.extra-price b { font-size: var(--t-lg); font-weight: 650; }
.extra-price span { color: var(--ink-muted); font-size: var(--t-xs); font-family: var(--mono); }
.extra-detail { color: var(--ink-muted); font-size: var(--t-sm); }

/* ---------- quote ---------- */

.quote { overflow: clip; }
.quote-grid { display: grid; gap: var(--s-7); align-items: start; }
.quote-copy { display: grid; gap: var(--s-4); }
@media (min-width: 960px) { .quote-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.field-row { display: grid; gap: var(--s-4); }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field select {
  width: 100%; min-height: 48px; padding: var(--s-3) var(--s-7) var(--s-3) var(--s-4);
  font: inherit; font-size: var(--t-md); color: var(--ink);
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%238a85a0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); -webkit-appearance: none; appearance: none;
}
.field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(106, 59, 255, 0.25); }
.form { display: grid; gap: var(--s-4); padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-float); }
@media (max-width: 480px) { .form { padding: var(--s-5); } }
.form-note { font-size: var(--t-sm); color: var(--ink-muted); text-align: center; }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--line); padding: var(--s-6) 0 calc(var(--s-4) + env(safe-area-inset-bottom)); }
/* one row: logo, links, theme; then a quiet line with the copyright and the sign-ins */
.foot-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-6); }
.foot-main .logo { height: 26px; }
.foot-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-5); }
.foot-nav a, .foot-sign a { color: var(--ink-muted); font-size: var(--t-sm); padding: var(--s-2) 0; transition: color var(--fast); }
.foot-nav a:hover, .foot-sign a:hover { color: var(--ink); }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--ink-faint); }
.foot-sign { display: flex; gap: var(--s-5); }
.foot-sign a { font-size: var(--t-xs); }
@media (max-width: 760px) {
  .foot-main { flex-direction: column; align-items: flex-start; }
  .foot-nav { gap: 0 var(--s-5); }
}
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); }
.seg button { width: 40px; height: 34px; display: grid; place-items: center; border: 0; background: transparent; border-radius: var(--r-pill); color: var(--ink-muted); cursor: pointer; transition: background-color var(--fast), color var(--fast); }
.seg button svg { width: 18px; height: 18px; }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.foot-legal { margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--ink-faint); }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker-track { width: auto; flex-wrap: wrap; justify-content: center; row-gap: var(--s-2); }
  .ticker-track span[aria-hidden="true"] { display: none; }
  .ticker { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- 404 ---------- */

.notfound { min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: var(--s-4); padding-block: var(--s-8); }
.notfound .brand { margin-bottom: var(--s-6); }
