/* Faithfully marketing site. One stylesheet, no build step.
   Tokens first; sections follow page order. */

:root {
  --bg: #fdf9f6;
  --ink: #1a1320;
  --ink-soft: #4b4352;
  --ink-mute: #7a7183;
  --purple-900: #1c0533;
  --purple-800: #2a0a4a;
  --purple-700: #4a1580;
  --purple-600: #5b2a86;
  --purple-500: #7c3aed;
  --purple-400: #9a63f2;
  --purple-200: #e5d7fb;
  --purple-100: #f2ebfd;
  --violet-glow: #6d0ac9;
  --green: #22c55e;
  --cyan: #22c3d6;
  --line: rgba(26, 19, 32, 0.08);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --font-sans: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ui: 'Figtree', 'Lato', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0; }
::selection { background: var(--purple-200); color: var(--purple-800); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--purple-800); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--purple-500); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font-family: var(--font-ui); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple-500); margin-bottom: 18px; }
.eyebrow--light { color: #c7a8ff; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); line-height: 1.55; }
.display-light { font-weight: 300; font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.03em; line-height: 1.12; color: #fff; }

/* ---------- Reveal animations (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out); transition-delay: calc(var(--d, 0) * 120ms); }
.js .reveal[data-delay="1"] { --d: 1; }
.js .reveal[data-delay="2"] { --d: 2; }
.js .reveal[data-delay="3"] { --d: 3; }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

.split-words .w { display: inline-block; white-space: pre; }
.js .split-words .w { opacity: 0; transform: translateY(0.45em) rotate(2deg); filter: blur(8px); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out), filter 0.8s var(--ease-out); transition-delay: calc(var(--i) * 45ms); }
.js .split-words.is-in .w { opacity: 1; transform: none; filter: none; }

.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }

/* ---------- Nav ---------- */
.nav-wrap { position: fixed; inset: 18px 0 auto; z-index: 50; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav {
  pointer-events: auto;
  width: min(440px, 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8a4df0 0%, #3a0f6e 45%, #17042b 100%);
  border: 1px solid rgba(181, 120, 255, 0.55);
  box-shadow: 0 10px 30px -8px rgba(76, 18, 150, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: width 0.6s var(--ease-out), transform 0.5s var(--ease-out), box-shadow 0.4s;
}
.nav-wrap.is-scrolled .nav { width: min(520px, 100%); box-shadow: 0 18px 40px -10px rgba(76, 18, 150, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.nav-wrap.is-hidden .nav { transform: translateY(-140%); }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { width: 30px; height: auto; transition: transform 0.5s var(--ease-spring); }
.nav-logo:hover img { transform: scale(1.15) rotate(-8deg); }
.nav-wordmark { font-family: var(--font-ui); font-weight: 600; color: #fff; font-size: 16px; letter-spacing: -0.01em; max-width: 0; overflow: hidden; opacity: 0; transition: max-width 0.6s var(--ease-out), opacity 0.4s; }
.nav-wrap.is-scrolled .nav-wordmark { max-width: 100px; opacity: 1; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { font-family: var(--font-ui); font-size: 15px; color: rgba(255, 255, 255, 0.72); text-decoration: none; padding: 8px 12px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-cta { font-family: var(--font-ui); font-size: 15px; font-weight: 500; color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: #1d1626; border: 1px solid rgba(255, 255, 255, 0.08); white-space: nowrap; transition: background 0.2s, transform 0.3s var(--ease-spring); }
.nav-cta:hover { background: #000; transform: scale(1.04); }
@media (max-width: 560px) {
  .nav-link[href="/#how-it-works"] { display: none; }
  .nav-wrap.is-scrolled .nav-wordmark { max-width: 0; opacity: 0; }
}

/* ---------- Buttons ---------- */
.btn-glow {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-size: 18px; color: #fff; text-decoration: none;
  padding: 13px 24px; border-radius: 14px; border: 1px solid rgba(214, 186, 255, 0.8);
  background: linear-gradient(180deg, #9b5cff 0%, #6d28d9 55%, #5b1fc2 100%);
  box-shadow: 0 12px 28px -10px rgba(124, 58, 237, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.3s;
}
.btn-glow::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%); transform: translateX(-120%); }
.btn-glow:hover { box-shadow: 0 18px 36px -10px rgba(124, 58, 237, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-glow:hover::after { transform: translateX(120%); transition: transform 0.9s var(--ease-out); }
.btn-glow:active { transform: scale(0.97); }
.btn-glow[disabled] { opacity: 0.6; cursor: progress; }
.btn-block { width: 100%; }

.download { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.browsers { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); text-decoration: none; }
.browser-icons { display: flex; gap: 6px; }
.browser-icons img { box-sizing: content-box; width: 28px; height: 28px; object-fit: contain; padding: 7px; background: #fff; border-radius: 12px; box-shadow: 0 4px 14px -6px rgba(40, 10, 80, 0.3); border: 1px solid var(--line); transition: transform 0.4s var(--ease-spring); }
.browsers:hover .browser-icons img { transform: translateY(-4px); }
.browsers:hover .browser-icons img:nth-child(2) { transition-delay: 0.05s; }
.browsers:hover .browser-icons img:nth-child(3) { transition-delay: 0.1s; }
.browsers:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 110px; overflow: clip; }
.hero-glow {
  position: absolute; left: 50%; top: 300px; width: min(1100px, 140vw); aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(156, 90, 255, 0.42), rgba(197, 160, 255, 0.18) 55%, transparent 75%);
  pointer-events: none; animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.06); } }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-title { max-width: 11ch; font-weight: 900; font-size: clamp(48px, 8.4vw, 104px); letter-spacing: -0.045em; line-height: 0.94; color: var(--purple-600); }
.hero-stage { position: relative; width: min(1000px, 100%); margin-top: 56px; display: flex; justify-content: center; perspective: 1400px; --p: 0; }
.hero-phone { position: relative; z-index: 3; width: clamp(230px, 27vw, 350px); filter: drop-shadow(0 40px 50px rgba(60, 10, 120, 0.35)); }
.js .hero-phone { animation: phone-in 1.4s var(--ease-out) 0.35s both; }
@keyframes phone-in { from { opacity: 0; transform: translateY(120px) scale(0.92); } to { opacity: 1; transform: none; } }
.hero-card {
  position: absolute; z-index: 1; width: clamp(200px, 30vw, 380px); top: 20%;
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(60, 10, 120, 0.45);
  will-change: transform, opacity;
  /* --p is scroll progress (0 tucked behind the phone, 1 fanned out) set by site.js */
  --x: 0px; --y: 0px; --r: 0deg; --ry: 0deg;
  transform: translate3d(calc(var(--x) * var(--p)), calc(var(--y) * var(--p)), 0) rotateY(calc(var(--ry) * var(--p))) rotate(calc(var(--r) * var(--p))) scale(calc(0.78 + 0.22 * var(--p)));
  opacity: calc(0.15 + 0.85 * var(--p));
  filter: saturate(calc(0.6 + 0.4 * var(--p)));
}
.hero-card img { width: 100%; height: auto; }
.hero-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(253, 249, 246, 0) 40%, rgba(253, 249, 246, 0.55)); pointer-events: none; }
.hero-card--tl, .hero-card--bl { right: 50%; }
.hero-card--tr, .hero-card--br { left: 50%; }
.hero-card--tr::after, .hero-card--br::after { background: linear-gradient(270deg, rgba(253, 249, 246, 0) 40%, rgba(253, 249, 246, 0.55)); }
.hero-card--tl { --x: -14vw; --y: -4%; --r: 2deg; --ry: 22deg; top: 18%; }
.hero-card--bl { --x: -13vw; --y: 6%; --r: 4deg; --ry: 18deg; top: 52%; }
.hero-card--tr { --x: 14vw; --y: -3%; --r: -1deg; --ry: -22deg; top: 18%; }
.hero-card--br { --x: 13vw; --y: 7%; --r: -3deg; --ry: -18deg; top: 52%; }
@media (min-width: 1300px) {
  .hero-card--tl, .hero-card--bl { --x: -190px; }
  .hero-card--tr, .hero-card--br { --x: 190px; }
}
.hero-copy { max-width: 560px; margin-top: 56px; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.hero-copy .download { margin-top: 12px; }
@media (max-width: 720px) {
  .hero { padding-top: 120px; }
  .hero-card { width: 46vw; }
  .hero-card--tl, .hero-card--bl { --x: -24vw; }
  .hero-card--tr, .hero-card--br { --x: 24vw; }
  .hero-phone { width: 56vw; }
}

/* ---------- Dark panel: agreement types + features ---------- */
.dark-panel {
  --inset: 0px;
  position: relative; color: #fff;
  margin: 0 var(--inset);
  border-radius: var(--radius-lg);
  padding: clamp(80px, 10vw, 140px) 0 clamp(80px, 10vw, 140px);
  background: var(--purple-900);
  overflow: clip;
  transition: margin 0.1s linear;
}
.dark-panel-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 50% 32%, rgba(109, 10, 201, 0.85), transparent 70%),
    radial-gradient(50% 30% at 50% 78%, rgba(120, 20, 220, 0.7), transparent 70%),
    linear-gradient(180deg, #210640 0%, #1c0533 100%);
}
.dark-panel .container { position: relative; }
.types-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; margin-bottom: 72px; }
.types-sub { color: rgba(255, 255, 255, 0.66); font-size: 18px; line-height: 1.65; padding-top: 10px; }
.types-sub a { color: #fff; }
.device-frame { padding: 10px; border-radius: 40px; background: #0c0612; border: 7px solid #fff; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.15); }
.types-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.type-card {
  position: relative; padding: 32px 32px 36px; border-radius: 30px;
  background: linear-gradient(180deg, #7a3be6 0%, #3a0c6e 40%, #22053d 70%);
  border: 1px solid rgba(160, 100, 255, 0.45);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.type-card:hover { box-shadow: 0 30px 60px -30px rgba(124, 58, 237, 0.8); }
.type-media { border-radius: 18px; overflow: hidden; aspect-ratio: 2 / 1; background: linear-gradient(180deg, #8a62c9, #c7b2ea); }
.type-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 1.2s var(--ease-out); }
.type-card:hover .type-media img { transform: scale(1.06); }
.type-media--placeholder { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding-top: 14px; background: linear-gradient(180deg, #fbfaff 0%, #e7dcf7 60%, #c9b5ea 100%); border-inline: clamp(20px, 8%, 52px) solid #9a7cc9; }
.type-card .email-head { font-family: Inter, 'Helvetica Neue', Arial, sans-serif; color: #111; font-size: clamp(18px, 2.4vw, 30px); line-height: 1.08; text-align: center; letter-spacing: -0.02em; }
.email-head em { font-family: var(--font-serif); font-style: italic; color: #5b2a86; font-weight: 400; font-size: 1.08em; }
.email-head strong { font-weight: 700; }
.note-doc { width: 34%; margin-bottom: -18%; transform: rotate(-6deg); filter: drop-shadow(0 10px 18px rgba(60, 10, 120, 0.3)); transition: transform 0.8s var(--ease-spring); }
.type-card:hover .note-doc { transform: rotate(0deg) translateY(-8%); }
.type-check { width: 26px; height: 26px; color: var(--green); margin: 26px 0 14px; }
.type-card h3 { font-weight: 400; font-size: clamp(22px, 2vw, 26px); letter-spacing: -0.02em; margin-bottom: 14px; }
.type-card p { color: rgba(255, 255, 255, 0.9); max-width: 42ch; }

.features { margin-top: clamp(120px, 14vw, 200px); }
.features h2 { max-width: 15em; margin: 0 auto 72px; }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; perspective: 1200px; }
.feature-card {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; padding: 44px 28px 32px; border-radius: 22px;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(170, 110, 255, 0.22), transparent 45%), #18151c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  transition: transform 0.5s var(--ease-out);
}
.feature-row .feature-card:nth-child(1) { transform: rotate(0.8deg); }
.feature-row .feature-card:nth-child(2) { transform: rotate(-0.6deg) translateY(4px); }
.feature-row .feature-card:nth-child(3) { transform: rotate(0.7deg); }
.feature-icon { width: 92px; height: 92px; margin: 0 auto 44px; filter: drop-shadow(0 0 20px currentColor); }
.feature-icon--green { color: #21d151; }
.feature-icon--violet { color: #b76cf0; }
.feature-icon--cyan { color: var(--cyan); }
.js .feature-icon .draw { stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset 1.2s var(--ease-out) 0.3s; }
.js .feature-card.is-in .feature-icon .draw { stroke-dashoffset: 0; }
.feature-card h3 { font-weight: 400; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 8px; }
.feature-card p { color: rgba(255, 255, 255, 0.6); font-size: 16px; }

@media (max-width: 900px) {
  .types-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
  .types-grid, .feature-row { grid-template-columns: 1fr; }
  .device-frame { border-width: 5px; border-radius: 32px; padding: 6px; }
  .type-card { padding: 22px 22px 28px; border-radius: 26px; }
  .feature-row .feature-card { transform: none !important; }
}

/* ---------- How it works ---------- */
.steps { position: relative; }
.steps-track { height: 300vh; }
.steps-sticky { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; padding: 110px 0 40px; }
.steps-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.step-texts { position: relative; min-height: 300px; }
.step-text { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out), filter 0.6s; pointer-events: none; }
.step-text.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.step-text h2 { font-weight: 900; font-size: clamp(40px, 4.6vw, 60px); letter-spacing: -0.04em; color: #4a4350; margin-bottom: 36px; }
.step-text .accent { background: linear-gradient(90deg, #a855f7, #c084fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step-text p { font-size: 19px; color: #5c5463; max-width: 30em; }
.step-text strong { color: #3e3744; }
.step-tabs { display: flex; flex-direction: column; gap: 14px; margin-top: 36px; max-width: 280px; }
.step-tab {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 12px; border: 0; cursor: pointer; text-align: left;
  font-size: 16px; color: #4a4350; background: #efebe8;
  transition: background 0.3s, transform 0.3s var(--ease-spring);
}
.step-tab svg { position: relative; width: 20px; height: 20px; color: #8b8390; flex: none; }
.step-tab:hover { transform: translateX(4px); }
.step-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--fill, 0) * 100%); background: #dcd6d2; }
.step-tab.is-active { color: var(--ink); }
.step-tab.is-active svg { color: var(--ink); }
.step-tab > :not(.step-fill) { position: relative; }
.step-tab { isolation: isolate; }
.step-tab .step-fill { z-index: -1; }
.steps-visual { position: relative; aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden; background: #1b1433; box-shadow: 0 40px 80px -40px rgba(30, 10, 60, 0.6); }
.step-visual { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.8s var(--ease-out); }
.step-visual.is-active { opacity: 1; }
.step-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 6s linear; }
.step-visual.is-active .step-bg { transform: scale(1); }
.step-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 8, 50, 0.1), rgba(20, 8, 50, 0.35)); }
.step-screen { -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); position: absolute; z-index: 1; left: 50%; top: 14%; width: 42%; height: auto; border-radius: 22px 22px 0 0; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); transform: translate(-50%, 30%) rotate(-4deg); opacity: 0; transition: transform 1s var(--ease-out) 0.1s, opacity 0.6s 0.1s; }
.step-visual.is-active .step-screen { transform: translate(-50%, 0) rotate(0); opacity: 1; }
.step-screen--fade { width: 36%; -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 99%); mask-image: linear-gradient(180deg, #000 82%, transparent 99%); }
@media (max-width: 900px) {
  .steps-track { height: auto; }
  .steps-sticky { position: static; min-height: 0; padding: 100px 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-texts { min-height: 280px; }
  .step-tabs { flex-direction: row; flex-wrap: wrap; max-width: none; gap: 8px; }
  .step-tab { font-size: 14px; padding: 9px 12px; }
}

/* ---------- Mission ---------- */
.mission { position: relative; padding: clamp(120px, 16vw, 220px) 0; overflow: clip; }
.mission-text {
  position: relative; z-index: 2; max-width: 14em; margin: 0 auto;
  font-weight: 900; font-size: clamp(34px, 5vw, 72px); letter-spacing: -0.035em; line-height: 1.02;
  color: var(--purple-500);
}
.mission-text .ch { color: #e8dcfb; transition: color 0.25s linear; }
.mission-text .ch.is-lit { color: var(--purple-500); }
.mission-text .ch.is-last { color: var(--purple-800); }
.no-js-friendly .mission-text .ch { color: inherit; }
.mission-video { position: absolute; z-index: 1; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(60, 10, 120, 0.55); will-change: transform; }
.mission-video--a { left: max(2vw, calc(50% - 690px)); top: 3%; width: clamp(140px, 15vw, 230px); }
.mission-video--b { right: max(2vw, calc(50% - 700px)); bottom: 2%; width: clamp(200px, 26vw, 400px); }
.mission-video--c { right: max(4vw, calc(50% - 640px)); top: 6%; width: clamp(160px, 18vw, 280px); }
.vimeo { position: relative; aspect-ratio: var(--ratio, 16 / 9); background: #2a0a4a var(--poster) center / cover no-repeat; }
.vimeo iframe { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); border: 0; pointer-events: none; opacity: 0; transition: opacity 0.8s; }
.vimeo iframe.is-ready { opacity: 1; }
.mission-text, .mission-video { mix-blend-mode: normal; }
@media (max-width: 900px) {
  .mission { padding: 80px 0 60px; display: flex; flex-direction: column; }
  .mission .container { order: 1; }
  .mission-video { position: relative; inset: auto; }
  .mission-video--a { order: 2; width: 46vw; margin: 48px 0 0 6vw; }
  .mission-video--b { order: 3; width: 72vw; margin: -30vw 6vw 0 auto; }
  .mission-video--c { order: 4; width: 58vw; margin: 28px 0 0 10vw; }
}

/* ---------- Footer ---------- */
.footer-cta {
  position: relative; overflow: hidden; margin: 0 8px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(180deg, #7b3bf0 0%, #4b1ca8 38%, #210a4f 72%, #160632 100%);
  color: #fff; padding: clamp(140px, 18vw, 240px) 0 clamp(90px, 10vw, 130px);
}
.starfield { position: absolute; inset: 0; width: 100%; height: 100%; }
.footer-cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 34px; }
.footer-heart { width: 72px; height: auto; filter: drop-shadow(0 10px 30px rgba(180, 120, 255, 0.6)); }
.footer-title { max-width: 14em; font-weight: 300; font-size: clamp(32px, 4vw, 50px); letter-spacing: -0.03em; line-height: 1.12; }
.footer-cta .browsers { color: rgba(255, 255, 255, 0.85); }
.footer-cta .browser-icons img { border-color: rgba(255, 255, 255, 0.15); }
.footer-bottom { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-top: 64px; padding-bottom: 64px; }
.footer-brand .nav-wordmark { max-width: none; opacity: 1; color: var(--purple-800); }
.footer-brand p { color: var(--ink-mute); font-size: 15px; margin-top: 14px; max-width: 26ch; }
.footer-legal-name { font-size: 13px !important; }
.footer-col h3 { font-family: var(--font-ui); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--ink-soft); text-decoration: none; font-size: 15px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--ease-out), color 0.2s; }
.footer-col a:hover { color: var(--purple-500); background-size: 100% 1px; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--purple-600); transition: transform 0.35s var(--ease-spring), background 0.2s, color 0.2s; }
.socials a:hover { transform: translateY(-3px); background: var(--purple-600); color: #fff; }
.socials svg { width: 19px; height: 19px; }
.socials .social-emblem svg { width: 26px; height: 26px; }
.socials .social-emblem path { stroke: currentColor; stroke-width: 22; stroke-linejoin: round; }
.footer-support { margin-top: 18px; font-size: 14px; color: var(--ink-mute); }
@media (max-width: 900px) { .footer-bottom { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Contact ---------- */
.page-hero--dark { position: relative; overflow: clip; color: #fff; margin: 0 8px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 150px 0 110px; background: var(--purple-900); }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-intro .display-light { margin-bottom: 24px; }
.community { margin-top: 48px; display: grid; gap: 10px; max-width: 420px; }
.community h2 { font-family: var(--font-ui); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); margin-bottom: 6px; }
.community-link { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); text-decoration: none; transition: background 0.3s, transform 0.35s var(--ease-spring); }
.community-link span { color: rgba(255, 255, 255, 0.6); font-size: 15px; }
.community-link i { font-style: normal; transition: transform 0.35s var(--ease-spring); }
.community-link:hover { background: rgba(255, 255, 255, 0.12); transform: translateX(4px); }
.community-link:hover i { transform: translateX(4px); }
.contact-form { display: grid; gap: 18px; padding: clamp(24px, 3vw, 36px); border-radius: 26px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7); }
.contact-form label { display: grid; gap: 8px; font-family: var(--font-ui); font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.contact-form input, .contact-form textarea { width: 100%; font: inherit; font-family: var(--font-sans); font-size: 16px; color: #fff; padding: 13px 15px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(10, 2, 22, 0.45); transition: border-color 0.2s, box-shadow 0.2s; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #b78cff; box-shadow: 0 0 0 4px rgba(156, 92, 255, 0.25); }
.contact-form [aria-invalid="true"] { border-color: #ff8fa3; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #ffb4c2; font-size: 15px; }
.form-error a { color: #fff; }
.form-note { font-size: 13px; color: rgba(255, 255, 255, 0.5); text-align: center; }
.form-note a { color: rgba(255, 255, 255, 0.75); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .page-hero--dark { padding-top: 120px; } }

/* ---------- Simple pages (thank you, 404, unsubscribe) ---------- */
.simple { padding: 190px 0 150px; position: relative; overflow: clip; }
.simple::before { content: ''; position: absolute; left: 50%; top: 80px; width: 700px; aspect-ratio: 1; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(156, 90, 255, 0.22), transparent); pointer-events: none; }
.simple-inner { position: relative; max-width: 680px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.simple h1 { font-weight: 900; font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.04em; color: var(--purple-600); }
.simple p:not(.lead):not(.eyebrow):not(.big-404) { color: var(--ink-mute); }
.simple .lead a { color: var(--purple-500); }
.big-404 { font-weight: 900; font-size: clamp(110px, 22vw, 220px); line-height: 0.9; letter-spacing: -0.06em; background: linear-gradient(180deg, #9b5cff, #2a0a4a); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 150px 0 40px; position: relative; }
.legal-hero h1 { font-weight: 900; font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.04em; color: var(--purple-600); }
.legal-updated { margin-top: 16px; color: var(--ink-mute); font-family: var(--font-ui); font-size: 15px; }
.legal-body { padding-bottom: 120px; }
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-toc { position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow: auto; font-size: 14px; }
.legal-toc summary { font-family: var(--font-ui); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); cursor: pointer; margin-bottom: 12px; list-style: none; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.legal-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-mute); text-decoration: none; line-height: 1.35; transition: color 0.2s, border-color 0.2s; }
.legal-toc a:hover { color: var(--ink); }
.legal-toc a.is-current { color: var(--purple-600); border-left-color: var(--purple-500); }
.prose { max-width: 760px; font-size: 17px; line-height: 1.75; color: #2e2833; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; letter-spacing: -0.02em; line-height: 1.2; margin-top: 2.4em; color: var(--ink); scroll-margin-top: 110px; }
.prose h3 { font-size: 20px; line-height: 1.3; margin-top: 2em; color: var(--ink); scroll-margin-top: 110px; }
.prose h4 { font-size: 17px; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose .anchor { float: left; margin-left: -1.1em; width: 1.1em; color: var(--purple-400); text-decoration: none; opacity: 0; transition: opacity 0.2s; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--purple-500); text-underline-offset: 3px; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--purple-100); }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--purple-200); color: var(--ink-soft); }
.prose code { font-size: 0.9em; background: var(--purple-100); padding: 1px 5px; border-radius: 5px; }
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; max-height: none; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
  .legal-toc details:not([open]) summary { margin-bottom: 0; }
  .prose .anchor { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .split-words .w { opacity: 1; transform: none; filter: none; }
  .hero-card { --p: 1 !important; }
  .mission-text .ch { color: inherit !important; }
}
