/* ---------- Tokens ---------- */
:root {
  /* Brand: violet + cyan from the logo, navy + card from the app UI */
  --violet: #8b5cf6;
  --violet-deep: #6d3ff0;
  --violet-soft: #c4b5fd;
  --cyan: #67e8f9;
  --navy: #111827;
  --card: #18181b;
  --ink: #0a0d16;
  --ink-2: #0e1320;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f5fa;
  --muted: #a3a8b8;
  --paper: #f4f1ff;
  --paper-ink: #14102a;

  --display: "Archivo Black", "Arial Black", sans-serif;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Motion tokens */
  --dur-1: 120ms;
  --dur-2: 180ms;
  --dur-3: 240ms;
  --dur-4: 300ms;
  --dur-5: 500ms;
  --dur-ill: 900ms;
  --ease-out-quad: cubic-bezier(.25, .46, .45, .94);
  --ease-out-quart: cubic-bezier(.165, .84, .44, 1);
  --ease-out-expo: cubic-bezier(.19, 1, .22, 1);
  --ease-in-out-cubic: cubic-bezier(.645, .045, .355, 1);
  --ease-in-out-quart: cubic-bezier(.77, 0, .175, 1);

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--violet); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.1vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.display-md { font-size: clamp(2.3rem, 5.6vw, 4.4rem); }
.display .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.accent {
  background: linear-gradient(100deg, var(--violet) 10%, var(--cyan) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.2vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  max-width: 17ch;
}
.kicker {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--violet-soft); margin-bottom: 18px;
}
.kicker.dark { color: var(--violet-deep); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.lede.center { margin-inline: auto; text-align: center; }
.body { color: var(--muted); max-width: 46ch; }
.body + .body { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 14px;
  background: var(--violet); color: #fff; font-weight: 600; font-size: 1rem;
  box-shadow: 0 10px 34px -10px rgba(139, 92, 246, 0.75);
  transition: transform var(--dur-1) var(--ease-out-quad), background-color 150ms ease, box-shadow 150ms ease;
  will-change: auto;
}
.btn:active { transform: scale(0.97); }
.btn-small { padding: 10px 16px; border-radius: 11px; font-size: 0.92rem; box-shadow: none; }
.btn-lg { padding: 19px 30px; font-size: 1.08rem; border-radius: 16px; }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }
@media (hover: hover) {
  .btn:hover { background: var(--violet-deep); box-shadow: 0 14px 40px -10px rgba(139, 92, 246, 0.9); }
  .btn-ghost:hover { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
  .nav-links a:hover, .footer nav a:hover { color: #fff; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter);
  transition: background-color var(--dur-3) ease, border-color var(--dur-3) ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck { background: rgba(10, 13, 22, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 30px; font-size: 0.95rem; color: var(--muted); }
.nav-links a { transition: color 150ms ease; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- Entrance primitives ----------
   Purpose: understanding/hierarchy on a marketing page (low frequency) ->
   ease-out-expo, illustrative duration, transform + opacity only. */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity var(--dur-ill) var(--ease-out-expo), transform var(--dur-ill) var(--ease-out-expo);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.word { display: inline-block; transform-origin: 0 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + clamp(36px, 7vw, 90px)) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 980px; max-height: 980px;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.38), rgba(103, 232, 249, 0.08) 55%, transparent 72%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(20px, 4vw, 60px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 500; color: var(--violet-soft); padding: 7px 14px; border: 1px solid rgba(139, 92, 246, 0.35); border-radius: 999px; margin-bottom: 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: pulse 2.4s var(--ease-in-out-cubic) infinite; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.8); } }
.hero .lede { margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-cta.center { justify-content: center; }

.hero-visual { position: relative; min-height: 420px; }
.hero-phone { position: relative; z-index: 2; margin-right: calc(var(--gutter) * -1); }
.hero-phone img { width: 100%; filter: drop-shadow(0 40px 70px rgba(0, 0, 0, 0.55)); -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }

/* Saved posts flying from the "feed" into the phone: spatial continuity */
.saves { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.save { position: absolute; }
.save-a { left: -6%; top: 6%; }
.save-b { left: -12%; top: 40%; }
.save-c { left: 0%; top: 72%; }
.save-in {
  display: flex; align-items: center; gap: 11px; padding: 9px 14px 9px 9px;
  background: rgba(24, 24, 27, 0.9); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.7);
  animation: drift 6s var(--ease-in-out-cubic) infinite; animation-delay: calc(var(--i) * -1.7s);
}
@keyframes drift { 50% { transform: translate3d(10px, -10px, 0); } }
.save-meta { display: grid; line-height: 1.25; }
.save-meta b { font-size: 0.88rem; font-weight: 600; }
.save-meta i { font-style: normal; font-size: 0.74rem; color: var(--muted); }
.thumb { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.t1 { background: linear-gradient(135deg, #8b5cf6, #4c1d95); }
.t2 { background: linear-gradient(135deg, #67e8f9, #6d3ff0); }
.t3 { background: linear-gradient(135deg, #f0abfc, #8b5cf6); }
.t4 { background: linear-gradient(135deg, #312e81, #67e8f9); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; margin-top: 10px; }
  .hero-phone { margin-inline: 4% calc(var(--gutter) * -1); }
  .save-a { left: 0; top: 2%; } .save-b { left: 0; top: 34%; } .save-c { display: none; }
}

/* ---------- Ticker (time-based -> linear) ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--ink-2); overflow: hidden; padding: 20px 0; }
.ticker-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: ticker 36s linear infinite; }
.ticker span { font-family: var(--display); font-size: clamp(1.3rem, 3vw, 2.2rem); text-transform: uppercase; white-space: nowrap; }
.ticker .hollow { color: transparent; -webkit-text-stroke: 1.2px var(--violet); }
.ticker i { width: 12px; height: 12px; border-radius: 3px; background: var(--cyan); transform: skewX(-20deg); flex: none; }
@keyframes ticker { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Problem: pile -> plan ---------- */
.problem { padding: clamp(80px, 11vw, 150px) 0; }
.problem-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.problem .h2 { margin-bottom: 22px; }

.toggle { margin-top: 30px; display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 0.92rem; }
.toggle-knob { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #33334a; transition: background-color var(--dur-3) ease; }
.toggle-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform var(--dur-3) var(--ease-in-out-cubic); }
.toggle[aria-pressed="true"] .toggle-knob { background: var(--violet); }
.toggle[aria-pressed="true"] .toggle-knob::after { transform: translateX(18px); }

/* Cards are already on screen and reposition -> ease-in-out, staggered */
.pile { position: relative; height: 400px; --row: 76px; }
.pile-card {
  position: absolute; left: 50%; top: 50%; width: min(340px, 86%); height: 64px; margin: -32px 0 0 calc(min(340px, 86%) / -2);
  transform: translate3d(var(--mx), calc(var(--my) * 9 + 80px), 0) rotate(var(--mr));
  transition: transform 800ms var(--ease-in-out-quart); transition-delay: calc(var(--n) * 70ms);
}
.pile.is-sorted .pile-card { transform: translate3d(0, calc((var(--n) - 2) * var(--row)), 0) rotate(0deg); }
.face { position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; padding: 0 14px 0 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.8); transition: opacity 400ms ease; transition-delay: calc(var(--n) * 70ms + 200ms); }
.face span { display: grid; line-height: 1.25; min-width: 0; }
.face b { font-size: 0.93rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.face i { font-style: normal; font-size: 0.78rem; color: var(--muted); }
.face.tidy { opacity: 0; background: var(--navy); border-color: rgba(139, 92, 246, 0.4); }
.face.tidy em { font-style: normal; font-family: var(--display); width: 30px; height: 30px; border-radius: 9px; background: rgba(139, 92, 246, 0.2); color: var(--violet-soft); display: grid; place-items: center; font-size: 0.85rem; flex: none; }
.face.tidy u { margin-left: auto; text-decoration: none; font-size: 0.76rem; color: var(--cyan); padding: 4px 9px; border-radius: 999px; background: rgba(103, 232, 249, 0.1); }
.pile.is-sorted .messy { opacity: 0; }
.pile.is-sorted .tidy { opacity: 1; }
@media (max-width: 900px) { .problem-grid { grid-template-columns: 1fr; } .pile { height: 420px; } }

/* ---------- How it works ---------- */
.how { padding: clamp(70px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); background: linear-gradient(var(--ink), var(--ink-2) 18%, var(--ink-2) 82%, var(--ink)); }
.how-title { max-width: none; }
.how-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(30px, 7vw, 110px); margin-top: clamp(20px, 4vw, 50px); }
.how-stage { position: sticky; top: calc(var(--nav-h) + 3vh); height: calc(100vh - var(--nav-h) - 6vh); height: calc(100svh - var(--nav-h) - 6vh); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.device { position: relative; flex: none; height: min(calc(100% - 40px), 680px); aspect-ratio: 440 / 916; filter: drop-shadow(0 40px 80px rgba(109, 63, 240, 0.35)); }
.device-shot { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Coded screens are positioned over the screenshot's display area
   (display is x 20-420 of 440, y 22-894 of 916). */
.screen {
  position: absolute; left: 4.55%; right: 4.55%; top: 2.4%; bottom: 2.4%;
  border-radius: 11% / 5.05%; background: var(--navy); overflow: hidden;
  padding: 0 7% 7%; display: flex; flex-direction: column;
  font-size: calc(var(--dw, 320) * 0.036px); /* scales with the device, like a real screenshot */
  opacity: 0; transform: translate3d(0, 14px, 0) scale(0.985);
  transition: opacity var(--dur-3) var(--ease-out-quart), transform var(--dur-5) var(--ease-out-quart);
  pointer-events: none;
}
.screen.is-on { opacity: 1; transform: none; }
.s-status { display: flex; align-items: center; justify-content: space-between; height: 9.5%; flex: none; font-weight: 600; font-size: 1.05em; padding: 0 4%; }
.island { width: 33%; height: 52%; background: #000; border-radius: 999px; }
.s-sig { width: 15%; height: 22%; border-radius: 4px; background: linear-gradient(90deg, #fff 60%, rgba(255, 255, 255, 0.35) 0); opacity: 0.9; }
.s-h { font-size: 1.75em; font-weight: 700; line-height: 1.15; margin-top: 5%; }
.s-sub { font-size: 1.05em; color: #b6bccb; margin-top: 2.5%; }
.s-btn { margin-top: auto; background: var(--violet); border-radius: 0.9em; text-align: center; padding: 1.05em; font-weight: 600; font-size: 1.15em; }

.s-input { margin-top: 8%; display: flex; align-items: center; gap: 0.7em; background: var(--card); border: 1px solid rgba(139, 92, 246, 0.6); border-radius: 0.9em; padding: 1em; font-size: 1.05em; color: var(--violet-soft); min-height: 3.3em; }
.typed { color: #fff; white-space: nowrap; overflow: hidden; }
.caret { width: 1.5px; height: 1.2em; background: var(--cyan); margin-left: -0.5em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.s-chips { display: flex; gap: 0.6em; margin-top: 4%; }
.s-chips span { padding: 0.45em 1em; border-radius: 999px; border: 1px solid var(--line); color: #b6bccb; }
.s-chips .on { background: rgba(139, 92, 246, 0.2); border-color: transparent; color: #fff; }
.s-read { margin-top: 9%; display: grid; gap: 1.2em; }
.s-row { display: flex; align-items: center; gap: 0.9em; font-size: 1.15em; opacity: 0.35; transition: opacity var(--dur-4) ease; transition-delay: calc(1500ms + var(--i) * 450ms); }
.tick { width: 1.7em; height: 1.7em; border-radius: 50%; border: 2px solid rgba(139, 92, 246, 0.45); position: relative; flex: none; transition: background-color var(--dur-3) ease, border-color var(--dur-3) ease; transition-delay: inherit; }
.tick::after, .check::after { content: ""; position: absolute; left: 50%; top: 46%; width: 30%; height: 52%; border: solid #fff; border-width: 0 2px 2px 0; transform: translate(-50%, -50%) rotate(45deg) scale(0.6); opacity: 0; transition: transform var(--dur-3) var(--ease-out-quart), opacity var(--dur-2) ease; transition-delay: inherit; }
.screen.is-on .s-row { opacity: 1; }
.screen.is-on .tick { background: var(--violet); border-color: var(--violet); }
.screen.is-on .tick::after { opacity: 1; transform: translate(-50%, -50%) rotate(45deg) scale(1); }

.s-list, .s-plan { margin-top: 6%; display: grid; gap: 0.7em; }
.s-item, .s-pl, .s-add { display: flex; align-items: center; gap: 0.9em; background: var(--card); border: 1px solid var(--line); border-radius: 1em; padding: 0.75em; opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity var(--dur-4) var(--ease-out-quart), transform var(--dur-5) var(--ease-out-quart); transition-delay: calc(160ms + var(--i) * 90ms); }
.screen.is-on .s-item, .screen.is-on .s-pl, .screen.is-on .s-add { opacity: 1; transform: none; }
.s-item span:nth-child(2), .s-pl span { display: grid; line-height: 1.3; min-width: 0; }
.s-item b, .s-pl b { font-size: 1.08em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-item i, .s-pl i { font-style: normal; color: #9aa1b3; font-size: 0.92em; }
.s-fig { width: 3em; height: 3em; border-radius: 0.7em; flex: none; background: #f4f4f6; position: relative; }
.s-fig::after { content: ""; position: absolute; inset: 26%; border-radius: 40% 40% 30% 30%; }
.f1::after { background: linear-gradient(#f97316 45%, #2a2a33 0); }
.f2::after { background: linear-gradient(#2a2a33 50%, #f97316 0); }
.f3::after { background: linear-gradient(90deg, #f97316 50%, #2a2a33 0); }
.check { margin-left: auto; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--violet); position: relative; flex: none; transform: scale(0.94); opacity: 0; transition: transform var(--dur-3) var(--ease-out-quart), opacity var(--dur-2) ease; transition-delay: calc(700ms + var(--i) * 160ms); }
.s-item .check::after { transition-delay: calc(760ms + var(--i) * 160ms); }
.screen.is-on .check { opacity: 1; transform: none; }
.screen.is-on .check::after { opacity: 1; transform: translate(-50%, -50%) rotate(45deg) scale(1); }
.s-add { justify-content: center; border-style: dashed; color: var(--violet-soft); background: transparent; font-weight: 500; }
.s-link { margin-top: 5%; text-align: center; color: var(--cyan); font-size: 1em; }
.s-pl em { font-style: normal; font-weight: 700; width: 2.1em; height: 2.1em; border-radius: 0.6em; display: grid; place-items: center; background: rgba(139, 92, 246, 0.2); color: var(--violet-soft); flex: none; }
.s-pl u { margin-left: auto; text-decoration: none; font-size: 0.82em; padding: 0.3em 0.75em; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #c8cddb; white-space: nowrap; }
.s-pl u.mine { background: rgba(103, 232, 249, 0.12); color: var(--cyan); }

.device-shot { opacity: 0; transition: opacity var(--dur-4) ease; }
.device-shot.is-on { opacity: 1; }
/* The frame image is always underneath so the bezel never disappears */
.device::before { content: ""; position: absolute; inset: 0; background: url("assets/phone-4.png") center / 100% 100% no-repeat; }

.how-progress { width: 120px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.how-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan)); transform-origin: left; transform: scaleX(var(--p, 0.25)); transition: transform var(--dur-5) var(--ease-in-out-cubic); }

.steps { display: grid; padding-bottom: 14vh; }
.step { min-height: 78vh; min-height: 78svh; display: flex; flex-direction: column; justify-content: center; opacity: 0.28; transition: opacity var(--dur-5) ease; }
.step.is-active { opacity: 1; }
.step-n { font-family: var(--display); font-size: 0.95rem; color: var(--cyan); letter-spacing: 0.08em; }
.step h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.05; margin: 12px 0 16px; }
.step p { color: var(--muted); max-width: 40ch; font-size: 1.06rem; }

@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; gap: 0; }
  .how-stage { top: var(--nav-h); height: 56svh; z-index: 2; background: linear-gradient(var(--ink-2) 88%, transparent); padding-top: 12px; gap: 12px; }
  .device { height: calc(100% - 30px); filter: none; }
  .step { min-height: 46svh; justify-content: flex-start; padding-top: 6svh; }
}

/* ---------- Inside the app ---------- */
.app { padding: clamp(80px, 10vw, 140px) 0; }
.app-grid { margin-top: clamp(34px, 5vw, 60px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.feature {
  --mx: 50%; --my: 0%;
  position: relative; grid-column: span 2; padding: 30px; border-radius: 24px; overflow: hidden;
  background: var(--navy); border: 1px solid var(--line);
}
/* Hover: spotlight follows the pointer on a child layer; the card itself never moves */
.feature::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(139, 92, 246, 0.22), transparent 60%); opacity: 0; transition: opacity 150ms ease; pointer-events: none; }
@media (hover: hover) { .feature:hover::before { opacity: 1; } }
.feature > * { position: relative; }
.feature h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 0.99rem; }
.feature-shot { grid-column: span 3; display: grid; grid-template-rows: auto 1fr; gap: 26px; padding-bottom: 0; min-height: 520px; background: linear-gradient(160deg, #1a1436, var(--navy) 60%); }
.feature-shot.alt { background: linear-gradient(200deg, #0f2a3a, var(--navy) 60%); }
.feature-phone { width: min(290px, 74%); margin-inline: auto; align-self: end; margin-bottom: -22%; }
.glyph { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: rgba(139, 92, 246, 0.18); color: var(--violet-soft); margin-bottom: 20px; }
.glyph svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .feature, .feature-shot { grid-column: span 6; } .feature-shot { min-height: 0; } }

/* ---------- Banner ---------- */
.banner { position: relative; aspect-ratio: 3 / 1; min-height: 340px; width: 100%; display: grid; align-items: center; overflow: hidden; background: #0b0d14; }
.banner-img { position: absolute; inset: -7% 0; background: url("assets/banner.jpg") right center / cover no-repeat; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 13, 22, 0.9) 12%, rgba(10, 13, 22, 0.2) 48%, transparent 60%); }
.banner-copy { position: relative; z-index: 1; padding-block: 60px; }
.banner .display-md { font-size: clamp(2rem, 4.6vw, 3.8rem); }
.banner-lines { margin-top: 22px; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 500; color: #dcdfea; }
@media (max-width: 720px) { .banner-img { background-position: 78% center; } .banner::after { background: linear-gradient(rgba(10, 13, 22, 0.55), rgba(10, 13, 22, 0.9)); } }

/* ---------- Principles ---------- */
.principles { padding: clamp(80px, 10vw, 140px) 0; }
.principles .h2 { max-width: 20ch; }
.p-grid { margin-top: clamp(34px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 4vw, 48px); }
.p-item { border-top: 1px solid rgba(139, 92, 246, 0.5); padding-top: 22px; }
.p-n { font-family: var(--display); color: var(--cyan); font-size: 0.9rem; letter-spacing: 0.1em; }
.p-item h3 { font-size: 1.25rem; margin: 10px 0; }
.p-item p { color: var(--muted); font-size: 0.99rem; }
@media (max-width: 800px) { .p-grid { grid-template-columns: 1fr; } }

/* ---------- Story (light) ---------- */
.story { background: var(--paper); color: var(--paper-ink); padding: clamp(80px, 10vw, 140px) 0; border-radius: 36px 36px 0 0; }
.story-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 90px); }
.ink { color: var(--paper-ink); }
.story-copy { display: grid; gap: 22px; font-size: 1.12rem; max-width: 52ch; }
.qs { display: grid; gap: 8px; font-family: var(--display); text-transform: uppercase; font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1.15; color: var(--violet-deep); }
.mission { font-weight: 700; padding-top: 22px; border-top: 2px solid var(--paper-ink); }
@media (max-width: 800px) { .story-grid { grid-template-columns: 1fr; } }

/* ---------- Final CTA ---------- */
.final { position: relative; text-align: center; padding: clamp(90px, 12vw, 170px) 0; overflow: hidden; background: var(--ink); }
.final-glow { position: absolute; left: 50%; top: 50%; width: min(900px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(139, 92, 246, 0.42), rgba(103, 232, 249, 0.07) 60%, transparent 75%); pointer-events: none; }
.final-in { position: relative; display: grid; justify-items: center; gap: 24px; }
.final-logo { animation: float 5s var(--ease-in-out-cubic) infinite; }
@keyframes float { 50% { transform: translate3d(0, -8px, 0); } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0 44px; font-size: 0.88rem; color: var(--muted); }
.footer-in { display: grid; grid-template-columns: auto 1fr; gap: 14px 30px; align-items: center; }
.footer nav { display: flex; gap: 22px; justify-content: flex-end; }
.footer nav a { transition: color 150ms ease; }
.footer p { grid-column: 1 / -1; max-width: 70ch; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}


/* =====================================================================
   Motion layer v2 — GSAP + ScrollTrigger + Lenis + WebGL
   ===================================================================== */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

/* Until the entrance timeline takes over, keep the hero from flashing */
.js .hero-copy, .js .hero-visual { opacity: 0; }
.no-gsap .hero-copy, .no-gsap .hero-visual { opacity: 1; }

/* ---------- Preloader ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--ink); display: none; place-items: center; align-content: center; gap: 26px; animation: loader-failsafe 0s linear 5s forwards; }
.js .loader { display: grid; }
.no-gsap .loader { display: none; }
.loader-mark { opacity: 0; transform: scale(0.9); }
.loader-bar { width: 132px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.loader-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan)); transform: scaleX(0); transform-origin: left; }
@keyframes loader-failsafe { to { visibility: hidden; } }

/* ---------- Scroll progress + film grain ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan)); transform: scaleX(0); transform-origin: left; }
.grain { position: fixed; inset: 0; z-index: 55; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- WebGL aurora ---------- */
.aurora { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1200ms ease; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.aurora.is-live { opacity: 1; }
.hero:has(.aurora.is-live) .hero-glow, .final:has(.aurora.is-live) .final-glow { opacity: 0; }
.aurora-final { -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent); mask-image: radial-gradient(closest-side, #000 40%, transparent); }

/* ---------- Hero depth ---------- */
.hero-visual { perspective: 1400px; }
.hero-phone, .hero-phone-tilt { transform-style: preserve-3d; }
.hero-phone-tilt { will-change: transform; }

/* ---------- Masked word reveal on section headings ---------- */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
[data-split] .wi { display: inline-block; will-change: transform; }

/* ---------- Ticker driven by scroll velocity ---------- */
.gsap-on .ticker-track { animation: none; will-change: transform; }

/* ---------- Buttons: a sheen crosses on hover (the button itself stays put) ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.32) 50%, transparent 65%); transform: translateX(-120%); }
@media (hover: hover) { .btn:hover::after { transform: translateX(120%); transition: transform 700ms var(--ease-out-quart); } }

/* ---------- How it works: device gets depth ---------- */
.how-stage { perspective: 1600px; }
.device { transform-style: preserve-3d; will-change: transform; }
.step-n { display: inline-flex; align-items: center; gap: 12px; }
.step-n::after { content: ""; width: 44px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--dur-5) var(--ease-out-quart); }
.step.is-active .step-n::after { transform: scaleX(1); }

/* ---------- Feature cards tilt ---------- */
.app-grid { perspective: 1400px; }
.feature { will-change: transform; }

/* ---------- Film ---------- */
.film { padding: 0 0 clamp(80px, 10vw, 140px); }
.film-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(26px, 4vw, 44px); }
.film-head .h2 { max-width: 16ch; }
.film-frame { position: relative; border-radius: 28px; overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: 0 60px 120px -50px rgba(109, 63, 240, 0.55); }
.film-frame canvas { display: block; width: 100%; aspect-ratio: 16 / 9; }
.film-bar { position: absolute; inset: auto 0 0 0; display: flex; align-items: center; gap: 14px; padding: 34px 20px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.72)); opacity: 0; transition: opacity var(--dur-3) ease; }
.film-frame:hover .film-bar, .film-frame:focus-within .film-bar, .film-frame.is-paused .film-bar { opacity: 1; }
@media (hover: none) { .film-bar { opacity: 1; } }
.film-play, .film-speed { flex: none; height: 38px; min-width: 38px; padding: 0 10px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; display: grid; place-items: center; cursor: pointer; font-weight: 600; font-size: 0.85rem; transition: background-color 150ms ease, transform var(--dur-1) var(--ease-out-quad); }
.film-play:active, .film-speed:active { transform: scale(0.95); }
@media (hover: hover) { .film-play:hover, .film-speed:hover { background: rgba(255, 255, 255, 0.26); } }
.film-play .i-play { display: none; }
.is-paused .film-play .i-play { display: block; }
.is-paused .film-play .i-pause { display: none; }
.film-time { font-variant-numeric: tabular-nums; font-size: 0.85rem; color: #dcdfea; min-width: 44px; text-align: right; }
.film-scrub { flex: 1; min-width: 0; height: 22px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; --p: 0%; }
.film-scrub::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--violet), var(--cyan)) 0 / var(--p) 100% no-repeat, rgba(255, 255, 255, 0.22); }
.film-scrub::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.22); }
.film-scrub::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--violet); }
.film-scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; margin-top: -5px; }
.film-scrub::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }

/* ---------- Banner opens from a card to full bleed ---------- */
.gsap-on .banner { will-change: clip-path; }

/* ---------- Principles: the rule draws itself ---------- */
.p-item { position: relative; border-top-color: rgba(139, 92, 246, 0.16); }
.p-item::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: linear-gradient(90deg, var(--violet), var(--cyan)); transform: scaleX(0); transform-origin: left; transition: transform 1100ms var(--ease-out-expo); transition-delay: calc(var(--i, 0) * 80ms + 150ms); }
.p-item.is-in::before { transform: scaleX(1); }

/* ---------- Story: questions light up as you read ---------- */
.gsap-on [data-qs] li { opacity: 0.16; }

@media (prefers-reduced-motion: reduce) {
  .loader { display: none !important; }
  .js .hero-copy, .js .hero-visual { opacity: 1; }
  .aurora { transition: none; }
}

.final .lede { margin-top: 8px; }

/* Decorative elements may hang past the edge; never let them widen the page */
html, body { overflow-x: clip; }
.problem, .hero { overflow-x: clip; }

/* ---------- Legal pages ---------- */
.legal { padding: calc(var(--nav-h) + clamp(40px, 7vw, 90px)) 0 clamp(70px, 9vw, 120px); }
.legal-wrap { max-width: 760px; }
.legal .h2 { max-width: none; margin-bottom: clamp(26px, 4vw, 44px); }
.legal h2 { font-size: 1.3rem; font-weight: 700; margin: 38px 0 12px; color: var(--text); }
.legal p, .legal li { color: #c9cdda; font-size: 1.02rem; }
.legal p + p { margin-top: 12px; }
.legal ul { display: grid; gap: 10px; margin: 6px 0 14px; padding-left: 1.2em; list-style: disc; }
.legal li::marker { color: var(--violet); }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FAQ ---------- */
:root { interpolate-size: allow-keywords; }
.faq { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 90px); align-items: start; }
.faq-list { display: grid; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 1.12rem; font-weight: 600; transition: color 150ms ease; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 12px; height: 12px; border: solid var(--violet-soft); border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); transition: transform var(--dur-3) var(--ease-in-out-cubic); }
.faq-item[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq-item p { color: var(--muted); max-width: 60ch; padding: 0 0 24px; }
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size var(--dur-4) var(--ease-in-out-cubic), content-visibility var(--dur-4) allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
@media (hover: hover) { .faq-item summary:hover { color: var(--violet-soft); } }
@media (max-width: 800px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Support page ---------- */
.support-lede { font-size: 1.12rem; color: var(--muted); max-width: 56ch; margin-top: -14px; }
.support-card { margin: 34px 0 10px; padding: 28px; border-radius: 24px; border: 1px solid rgba(139, 92, 246, 0.35); background: linear-gradient(160deg, #1a1436, var(--navy) 65%); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; box-shadow: 0 40px 90px -50px rgba(109, 63, 240, 0.6); }
.support-card > div { flex: 1 1 320px; }
.legal .support-card h2 { margin: 0 0 8px; }
.support-card p { margin: 0; }
.legal .support-card p + p { margin-top: 10px; }
.support-email { font-weight: 600; }
.legal .btn { color: #fff; text-decoration: none; }
.legal h2 + .faq-list { margin-top: 4px; }
.support-legal { margin-top: 44px; }

/* =====================================================================
   v3 polish: everything in frame
   ===================================================================== */

/* ---------- Hero: full phone with the rebuilt Workouts screen ---------- */
.hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.hero-visual { min-height: 0; display: flex; justify-content: flex-end; padding: 10px 0 20px; }
.hero-phone { margin: 0; position: relative; z-index: 2; }
.hero-phone::before { content: ""; position: absolute; inset: 8% -18% -6%; z-index: -1; background: radial-gradient(closest-side, rgba(139, 92, 246, 0.55), rgba(103, 232, 249, 0.12) 60%, transparent 75%); filter: blur(10px); pointer-events: none; }
.device-hero { --dw: 300; width: calc(var(--dw) * 1px); height: auto; filter: drop-shadow(0 50px 80px rgba(0, 0, 0, 0.6)); }
.device-hero::before { background-image: url("assets/phone-4.png"); }
.hs {
  position: absolute; left: 4.55%; right: 4.55%; top: 2.4%; bottom: 2.4%; border-radius: 11% / 5.05%; overflow: hidden;
  background: var(--navy); padding: 0 6.5% 0; display: flex; flex-direction: column;
  font-size: calc(var(--dw) * 0.036px); color: #fff;
}
.hs svg { width: 1.6em; height: 1.6em; flex: none; }
.hs-top { display: flex; align-items: center; justify-content: space-between; margin-top: 7%; }
.hs-top b { font-size: 2.55em; font-weight: 700; letter-spacing: -0.01em; }
.hs-search { display: flex; gap: 0.6em; margin-top: 6%; }
.hs-search span { flex: 1; display: flex; align-items: center; gap: 0.6em; padding: 0.85em 0.9em; border-radius: 0.8em; background: #1b1b1f; border: 1px solid rgba(255, 255, 255, 0.12); color: #a9adbb; font-size: 1.05em; }
.hs-search i { display: grid; place-items: center; width: 3.2em; border-radius: 0.8em; background: #1b1b1f; border: 1px solid rgba(255, 255, 255, 0.12); }
.hs-label { margin-top: 6%; font-weight: 600; font-size: 1.25em; }
.hs-card { margin-top: 3.5%; padding: 1.2em; border-radius: 1em; background: var(--card); border: 1px solid rgba(255, 255, 255, 0.1); }
.hs-row { display: flex; justify-content: space-between; align-items: center; gap: 0.6em; }
.hs-row b { font-size: 1.45em; font-weight: 600; }
.hs-row span { display: inline-flex; align-items: center; gap: 0.3em; color: #c9cdda; font-size: 1em; }
.hs-row svg { width: 1.25em; height: 1.25em; }
.hs-card p { color: #a9adbb; margin-top: 0.4em; font-size: 1em; }
.hs-progress { position: relative; margin-top: 1em; height: 0.55em; border-radius: 1em; background: #2a2a31; margin-right: 3em; }
.hs-progress span { position: absolute; inset: 0 auto 0 0; width: 60%; border-radius: inherit; background: var(--violet); transform-origin: left; }
.hs-progress em { position: absolute; right: -3em; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 0.95em; color: var(--violet-soft); }
.hs-btn { margin-top: 1.1em; padding: 0.95em; border-radius: 0.8em; background: var(--violet); text-align: center; font-weight: 600; font-size: 1.15em; }
.hs-gen { margin-top: 4%; display: flex; align-items: center; gap: 0.9em; padding: 1.3em 1.2em; border-radius: 1em; border: 1.5px solid var(--violet); background: rgba(139, 92, 246, 0.08); color: var(--violet); }
.hs-gen b { color: #fff; font-size: 1.3em; font-weight: 600; }
.hs-tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 1.1em 0 2.2em; border-top: 1px solid rgba(255, 255, 255, 0.08); color: #c9cdda; }
.hs-tabs svg.on { color: var(--violet); }

/* Saved posts sit in the gap beside the phone, never on its screen */
.saves { inset: 0 auto 0 0; width: 100%; }
.save-a { left: 0; top: 12%; } .save-b { left: -4%; top: 44%; } .save-c { left: 4%; top: 74%; }

@media (max-width: 1100px) { .device-hero { --dw: 270; } .save-b { left: 0; } }
@media (max-width: 900px) {
  .hero-visual { justify-content: center; padding-top: 26px; }
  .device-hero { --dw: 250; }
  .saves { display: none; }
}

/* ---------- Inside the app: whole phones, side by side with the copy ---------- */
.feature-shot { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: none; align-items: center; gap: 22px; padding: 30px; min-height: 0; }
.feature-phone { width: 210px; margin: 0; align-self: center; }
.feature-phone img { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5)); }
@media (max-width: 1100px) { .feature-phone { width: 180px; } }
@media (max-width: 640px) {
  .feature-shot { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .feature-shot .feature-copy { justify-self: stretch; }
  .feature-phone { width: min(230px, 70vw); }
}

/* ---------- Footer wraps on small screens ---------- */
.footer nav { flex-wrap: wrap; gap: 10px 22px; }
@media (max-width: 640px) {
  .footer-in { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
}

/* ---------- Film controls sit under the film on touch screens ---------- */
@media (hover: none), (max-width: 700px) {
  .film-frame { overflow: visible; background: transparent; border: 0; box-shadow: none; }
  .film-frame canvas { border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 40px 90px -50px rgba(109, 63, 240, 0.55); }
  .film-bar { position: static; opacity: 1; background: none; padding: 14px 2px 0; }
}

/* ---------- Waitlist ---------- */
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.wl { position: relative; overflow: hidden; padding: calc(var(--nav-h) + clamp(36px, 6vw, 80px)) 0 clamp(70px, 9vw, 120px); }
.wl-glow { position: absolute; inset: 0; pointer-events: none; }
.wl-glow span { position: absolute; width: 640px; height: 640px; border-radius: 50%; filter: blur(60px); opacity: 0.55; animation: wl-drift 18s var(--ease-in-out-cubic) infinite alternate; }
.wl-glow span:first-child { background: radial-gradient(closest-side, rgba(139, 92, 246, 0.7), transparent); left: -160px; top: -120px; }
.wl-glow span:last-child { background: radial-gradient(closest-side, rgba(103, 232, 249, 0.35), transparent); right: -200px; bottom: -160px; animation-delay: -9s; }
@keyframes wl-drift { to { transform: translate3d(80px, 60px, 0) scale(1.08); } }
.wl-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: start; }
.wl-title { font-size: clamp(2.8rem, 6.4vw, 5.4rem); margin: 22px 0 22px; }
.wl-points { display: grid; gap: 14px; margin-top: 30px; }
.wl-points li { display: flex; gap: 14px; align-items: baseline; color: #dcdfea; }
.wl-points span { font-family: var(--display); font-size: 0.8rem; color: var(--cyan); letter-spacing: 0.08em; flex: none; }
.wl-phone { width: 190px; margin-top: 40px; transform: rotate(-5deg); filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55)); }
.wl-phone img { width: 100%; animation: wl-float 6s var(--ease-in-out-cubic) infinite alternate; }
@keyframes wl-float { to { transform: translate3d(0, -12px, 0); } }

/* Entrance: each block rises in on load, staggered */
.wl-in { opacity: 0; transform: translate3d(0, 24px, 0); animation: wl-rise var(--dur-ill) var(--ease-out-expo) forwards; animation-delay: calc(120ms + var(--i, 0) * 90ms); }
@keyframes wl-rise { to { opacity: 1; transform: none; } }

/* The form card with a slow light travelling round its border */
.wl-card { position: relative; border-radius: 28px; padding: clamp(24px, 3.4vw, 40px); background: linear-gradient(170deg, #161230, var(--navy) 55%); box-shadow: 0 60px 120px -60px rgba(109, 63, 240, 0.7); isolation: isolate; }
.wl-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: conic-gradient(from var(--beam), rgba(255, 255, 255, 0.08) 0deg, rgba(255, 255, 255, 0.08) 250deg, var(--violet) 300deg, var(--cyan) 330deg, rgba(255, 255, 255, 0.08) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: wl-beam 6s linear infinite; }
@keyframes wl-beam { to { --beam: 360deg; } }
.wl-form h2, .wl-done h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 22px; }
.wl-form { display: grid; gap: 20px; transition: opacity var(--dur-3) var(--ease-out-quart), transform var(--dur-3) var(--ease-out-quart); }
.wl-form.is-leaving { opacity: 0; transform: translate3d(0, -10px, 0); }
.wl-form[hidden] { display: none; }
.wl-field { display: grid; gap: 9px; border: 0; padding: 0; margin: 0; min-width: 0; }
.wl-field > span, .wl-field legend { font-weight: 600; font-size: 0.95rem; padding: 0; margin-bottom: 2px; }
.wl-field i { font-style: normal; color: var(--muted); font-weight: 400; }
.wl-field input[type="email"], .wl-field input[type="text"] {
  width: 100%; font: inherit; color: var(--text); background: #12151f; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; padding: 14px 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease; }
.wl-field input::placeholder { color: #6f7586; }
.wl-field input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.22); }
.wl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; padding: 10px 15px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: #12151f; font-size: 0.93rem; font-weight: 500;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform var(--dur-1) var(--ease-out-quad); }
.chip input:checked + span { background: rgba(139, 92, 246, 0.22); border-color: var(--violet); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.chip:active span { transform: scale(0.97); }
@media (hover: hover) { .chip:hover span { border-color: rgba(255, 255, 255, 0.32); } }
.wl-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: #c9cdda; cursor: pointer; }
.wl-consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--violet); cursor: pointer; }
.wl-consent a, .wl-status a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.wl-error { font-style: normal; font-size: 0.85rem; color: #ff8fa3; min-height: 0; }
.wl-error:empty { display: none; }
.has-error input[type="email"], .has-error input[type="text"] { border-color: #ff8fa3; }
.has-error .chip span { border-color: rgba(255, 143, 163, 0.6); }
.wl-submit { justify-content: center; width: 100%; margin-top: 4px; }
.wl-submit:disabled { cursor: progress; }
.wl-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: wl-spin 700ms linear infinite; }
.is-sending .wl-spinner { display: inline-block; }
.is-sending .wl-submit-label { opacity: 0.7; }
@keyframes wl-spin { to { transform: rotate(360deg); } }
.wl-status { font-size: 0.92rem; color: #dcdfea; min-height: 1.2em; }
.wl-status:empty { display: none; }

/* Success state */
.wl-done { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 20px 0 6px; outline: none; }
.wl-done[hidden] { display: none; }
.wl-done > * { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity var(--dur-5) var(--ease-out-quart), transform var(--dur-5) var(--ease-out-quart); }
.wl-done.is-in > * { opacity: 1; transform: none; }
.wl-done.is-in > :nth-child(2) { transition-delay: 120ms; } .wl-done.is-in > :nth-child(3) { transition-delay: 200ms; } .wl-done.is-in > :nth-child(4) { transition-delay: 280ms; }
.wl-done p { color: #c9cdda; max-width: 34ch; margin-bottom: 18px; }
.wl-check { width: 76px; height: 76px; margin-bottom: 8px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wl-check circle { stroke: var(--violet); stroke-width: 3; stroke-dasharray: 183; stroke-dashoffset: 183; }
.wl-check path { stroke: #fff; stroke-width: 4; stroke-dasharray: 44; stroke-dashoffset: 44; }
.wl-done.is-in .wl-check circle { transition: stroke-dashoffset 700ms var(--ease-out-quart) 100ms; stroke-dashoffset: 0; }
.wl-done.is-in .wl-check path { transition: stroke-dashoffset 420ms var(--ease-out-quart) 620ms; stroke-dashoffset: 0; }

@media (max-width: 900px) {
  .wl-grid { grid-template-columns: 1fr; }
  .wl-phone { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wl-in { opacity: 1; transform: none; }
  .wl-card::before { animation: none; }
}
/* hero fixes after the audit */
.device-hero { --dw: 320; }
.hs-row b { font-size: 1.3em; }
.hs-row span { font-size: 0.92em; white-space: nowrap; }
.save-a { left: -10%; top: 10%; } .save-b { left: -16%; top: 43%; } .save-c { left: -8%; top: 75%; }
@media (max-width: 1100px) { .device-hero { --dw: 280; } .save-a { left: -4%; } .save-b { left: -8%; } .save-c { left: -2%; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .device-hero { --dw: 260; }
}
