/* ==========================================================================
   YouMeTalk – Atelier Blue website
   Tokens: light by default, dark via prefers-color-scheme or [data-theme].
   Motion: only transform / opacity are animated.
   ========================================================================== */

:root {
  --bg: #fafaf7;
  --bg-2: #f2f5f8;
  --surface: #ffffff;
  --surface-2: #edf2f7;
  --surface-3: #dfe7f0;
  --text: #172a43;
  --text-2: #43566e;
  --muted: #56687e;
  --accent: #526b88;
  --accent-strong: #3d5470;
  --accent-soft: rgba(82, 107, 136, .14);
  --yellow: #F6C344;
  --yellow-ink: #6b4d00;
  --logo-ink: #0A2054;
  --logo-yellow: #F8C43E;
  --line: rgba(23, 42, 67, .11);
  --line-strong: rgba(23, 42, 67, .2);
  --btn-bg: #172a43;
  --btn-fg: #ffffff;
  --btn-hover: #2b4466;
  --focus: #2f6fd1;
  --shadow-sm: 0 1px 2px rgba(23, 42, 67, .06), 0 4px 14px rgba(23, 42, 67, .06);
  --shadow-lg: 0 30px 80px -20px rgba(23, 42, 67, .28), 0 10px 30px -10px rgba(23, 42, 67, .16);
  --blob-1: rgba(82, 107, 136, .38);
  --blob-2: rgba(246, 195, 68, .42);
  --blob-3: rgba(150, 178, 210, .45);
  --header-bg: rgba(250, 250, 247, .78);
  --sec-bg: #142740;
  --sec-surface: rgba(255, 255, 255, .06);
  --sec-text: #eaf0f7;
  --sec-text-2: #bccadb;
  --radius: 22px;
  --radius-lg: 32px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1B2E;
    --bg-2: #112238;
    --surface: #17283F;
    --surface-2: #1c3150;
    --surface-3: #25405f;
    --text: #EAF0F7;
    --text-2: #c2cfdd;
    --muted: #a7b7c9;
    --accent: #a3bad6;
    --accent-strong: #c9d7e8;
    --accent-soft: rgba(163, 186, 214, .14);
    --yellow-ink: #F6C344;
    --logo-ink: #ffffff;
    --line: rgba(234, 240, 247, .1);
    --line-strong: rgba(234, 240, 247, .2);
    --btn-bg: #F6C344;
    --btn-fg: #0E1B2E;
    --btn-hover: #ffd466;
    --focus: #ffd466;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .6), 0 10px 30px -10px rgba(0, 0, 0, .45);
    --blob-1: rgba(82, 107, 136, .5);
    --blob-2: rgba(246, 195, 68, .2);
    --blob-3: rgba(40, 80, 140, .55);
    --header-bg: rgba(14, 27, 46, .74);
    --sec-bg: #091426;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1B2E;
  --bg-2: #112238;
  --surface: #17283F;
  --surface-2: #1c3150;
  --surface-3: #25405f;
  --text: #EAF0F7;
  --text-2: #c2cfdd;
  --muted: #a7b7c9;
  --accent: #a3bad6;
  --accent-strong: #c9d7e8;
  --accent-soft: rgba(163, 186, 214, .14);
  --yellow-ink: #F6C344;
  --logo-ink: #ffffff;
  --line: rgba(234, 240, 247, .1);
  --line-strong: rgba(234, 240, 247, .2);
  --btn-bg: #F6C344;
  --btn-fg: #0E1B2E;
  --btn-hover: #ffd466;
  --focus: #ffd466;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .6), 0 10px 30px -10px rgba(0, 0, 0, .45);
  --blob-1: rgba(82, 107, 136, .5);
  --blob-2: rgba(246, 195, 68, .2);
  --blob-3: rgba(40, 80, 140, .55);
  --header-bg: rgba(14, 27, 46, .74);
  --sec-bg: #091426;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
html:not(.story-enhanced) { scroll-behavior: smooth; }
html.reduced-motion { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s ease, color .4s ease;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
html.i18n-pending body { opacity: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.025em; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#i-play path { fill: currentColor; stroke: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
main:focus { outline: none; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 1000;
  padding: 10px 16px; border-radius: 12px;
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s ease;
}
.skip-link:focus { transform: none; }

/* ---------- wordmark (supplied artwork used as a mask) ---------- */
.wordmark {
  display: inline-block;
  aspect-ratio: 1000 / 156;
  background: var(--logo-ink);
  -webkit-mask: url("../assets/img/wordmark.webp") center / contain no-repeat;
  mask: url("../assets/img/wordmark.webp") center / contain no-repeat;
}
.wordmark--sm { height: 22px; }
.wordmark--lg { width: min(340px, 72vw); }

/* ---------- buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .95rem; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn .icon { transition: transform .3s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; transition: background-color .25s ease;
}
.icon-btn:hover { background: var(--surface-2); }

/* store badges (not links yet – coming soon) */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-row--center { justify-content: center; }
.store-badge {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 10px 20px 10px 16px; border-radius: 16px;
  background: var(--btn-bg); color: var(--btn-fg);
  box-shadow: var(--shadow-sm); user-select: none;
}
.store-badge .icon { width: 26px; height: 26px; }
.store-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-text small { font-size: .72rem; opacity: .85; font-weight: 500; }
.store-text strong { font-size: 1.08rem; letter-spacing: -.01em; }
.soon {
  position: absolute; top: -10px; right: -8px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--yellow); color: #172a43;
  font-size: .68rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(246, 195, 68, .35);
}
.store-badge--light { background: #ffffff; color: #172a43; }

/* eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong);
  font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); position: relative; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--yellow); animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3); opacity: 0; } }

.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--left { align-items: flex-start; text-align: left; }
.section-title { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 800; max-width: 18ch; text-wrap: balance; }
.section-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 46ch; }
.split-word { display: inline-block; }
.split-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }

section { position: relative; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: transform .45s var(--ease-out), background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-symbol { width: 34px; height: 30px; }
.main-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; }
.main-nav a:not(.btn) {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; color: var(--text-2); text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.main-nav a:not(.btn):hover { color: var(--text); background: var(--surface-2); }
.nav-cta { margin-left: 8px; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.lang-btn {
  min-width: 40px; min-height: 36px; padding: 4px 10px; border-radius: 999px; border: 0; background: transparent;
  font-weight: 700; font-size: .82rem; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s;
}
.lang-btn[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.menu-toggle { display: none; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-grid; }
  .header-tools { margin-left: auto; }
  .main-nav {
    position: fixed; inset: 72px 12px auto 12px; margin: 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    padding: 16px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-12px) scale(.98); visibility: hidden;
    transition: opacity .3s ease, transform .35s var(--ease-out), visibility 0s linear .35s;
  }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .3s ease, transform .35s var(--ease-out); }
  .main-nav ul { flex-direction: column; }
  .main-nav a:not(.btn) { display: block; padding: 12px 16px; font-size: 1.05rem; }
  .nav-cta { margin: 6px 0 0; }
}
@media (max-width: 420px) {
  .header-inner { gap: 8px; }
  .brand .wordmark { display: none; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  padding: 110px 0 90px; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.blob-1 { width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; left: -10vw; top: -12vw; background: var(--blob-1); animation: drift1 18s ease-in-out infinite alternate; }
.blob-2 { width: 34vw; height: 34vw; max-width: 480px; max-height: 480px; right: -6vw; top: 18%; background: var(--blob-2); animation: drift2 14s ease-in-out infinite alternate; }
.blob-3 { width: 38vw; height: 38vw; max-width: 520px; max-height: 520px; left: 30%; bottom: -22vw; background: var(--blob-3); animation: drift3 20s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(8vw, 6vw, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-10vw, 8vw, 0) scale(.9); } }
@keyframes drift3 { to { transform: translate3d(-6vw, -8vw, 0) scale(1.1); } }
.hero-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%);
}
.hero-spot {
  position: absolute; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; background: radial-gradient(circle, var(--blob-2), transparent 65%);
  opacity: 0; transition: opacity .6s ease; will-change: transform;
}
.hero:hover .hero-spot { opacity: .6; }

.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(24px, 5vw, 72px); }
.hero-copy { order: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-logo { order: 2; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-title { font-size: clamp(2.3rem, 4.5vw, 4.1rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-title .line-inner { display: inline-block; }
.accent-text { color: var(--accent); }
.hero-sub { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--text-2); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 6px; }

.logo-stage {
  position: relative; display: block; width: min(400px, 74vw); aspect-ratio: 500 / 430;
  padding: 0; border: 0; background: none; cursor: pointer; border-radius: 40px;
}
.logo-halo {
  position: absolute; inset: -18%; border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, var(--blob-3), transparent 62%);
  opacity: .9; animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08); opacity: .6; } }
.logo-anim { position: relative; width: 100%; height: 100%; overflow: visible; }
.logo-anim .person circle { fill: var(--logo-ink); }
.logo-anim .arm { fill: none; stroke: var(--logo-ink); stroke-width: 80; stroke-linecap: round; }
.logo-anim .arm-full { opacity: 0; }
.logo-anim .hand-arc { fill: none; stroke: var(--logo-yellow); stroke-width: 80; stroke-linecap: butt; }
.logo-anim .hand-cap { fill: var(--logo-yellow); }
.logo-anim .hand-glow { opacity: .55; }
.logo-anim .join-ring { opacity: 0; }
.hero-wordmark { display: flex; justify-content: center; }
.logo-legend { font-size: .92rem; color: var(--muted); text-align: center; max-width: 34ch; }

/* static (no-JS / reduced motion) idle animation of the symbol */
html.reduced-motion .logo-halo, html.reduced-motion .blob, html.reduced-motion .pulse-dot::after { animation: none; }

.hero-logo { position: relative; }
.hero-floaters { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.floater { position: absolute; will-change: transform; }
.f1 { left: -14%; top: 0; }
.f2 { right: -16%; top: 34%; }
.f3 { left: -20%; top: 50%; }
.f4 { right: -8%; bottom: 2%; }
.bubble, .chip {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 16px; border-radius: 20px; font-size: .9rem; font-weight: 600;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  animation: bob 6s ease-in-out infinite;
}
.bubble-in { border-bottom-left-radius: 6px; }
.bubble-tr { border-bottom-right-radius: 6px; background: #526b88; color: #fff; border-color: transparent; }
.chip-lock .icon { color: var(--yellow-ink); }
.chip-call { background: var(--btn-bg); color: var(--btn-fg); }
.f2 .bubble { animation-delay: -1.5s; }
.f3 .chip { animation-delay: -3s; }
.f4 .chip { animation-delay: -4.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
html.reduced-motion .bubble, html.reduced-motion .chip { animation: none; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.scroll-line { width: 2px; height: 42px; border-radius: 2px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateY(-100%); animation: scrollline 2s var(--ease-out) infinite; }
@keyframes scrollline { 60%, 100% { transform: translateY(100%); } }

@media (max-width: 1240px) { .f2, .f3 { display: none; } }
@media (max-width: 900px) {
  .hero { padding-top: 96px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-logo { order: 1; }
  .hero-copy { order: 2; align-items: center; }
  .hero-actions, .hero .store-row { justify-content: center; }
  .logo-stage { width: min(260px, 62vw); }
  .wordmark--lg { width: min(300px, 70vw); }
  .floater { display: none; }
  .scroll-hint { display: none; }
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line);
  background: var(--bg-2);
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; flex: none; animation: marquee 38s linear infinite; }
.marquee-group span { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; padding-inline: 22px; white-space: nowrap; color: var(--text); }
.marquee-group span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.4px var(--accent); }
.marquee-group i { width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); flex: none; }
@keyframes marquee { to { transform: translateX(-100%); } }
html.reduced-motion .marquee-group { animation: none; }

/* ---------- story (pinned phone) ---------- */
.story { padding-top: clamp(80px, 12vw, 150px); }
.story-head { margin-bottom: 24px; }
.story-pin { position: relative; }
.story-night { position: absolute; inset: 0; background: #0E1B2E; opacity: 0; pointer-events: none; }
.story-stage { position: relative; }

/* Fallback (no JS / GSAP missing): steps listed, one phone */
.story-steps { display: grid; gap: 28px; }
.story-step { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.phone-wrap { display: none; }
.story-progress { display: none; }

.step-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong); font-size: .85rem; font-weight: 700;
}
.story-step h3 { font-size: clamp(1.7rem, 3.4vw, 2.75rem); font-weight: 800; margin-bottom: 14px; text-wrap: balance; }
.story-step p:not(.step-tag) { color: var(--text-2); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 44ch; }

/* Enhanced: pinned stage */
html.story-enhanced .story-pin { height: 100vh; height: 100svh; overflow: hidden; }
html.story-enhanced .story-stage {
  height: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 170px);
  align-items: center; gap: clamp(24px, 4vw, 64px);
}
html.story-enhanced .story-steps { position: relative; display: block; height: min(380px, 60svh); }
html.story-enhanced .story-step {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0; background: none; border: 0; opacity: 0;
}
html.story-enhanced .story-step.is-active { opacity: 1; }
html.story-enhanced .story-step > * { will-change: transform, opacity; }
html.story-enhanced .phone-wrap { display: block; position: relative; }
html.story-enhanced .story-progress { display: block; }

.story-pin.is-night .story-step--night h3 { color: #EAF0F7; }
.story-pin.is-night .story-step--night p:not(.step-tag) { color: #c2cfdd; }
.story-pin.is-night .story-step--night .step-tag { background: rgba(246, 195, 68, .16); color: #F6C344; }
.story-pin.is-night .sp-label { color: #c2cfdd; }
.story-pin.is-night .sp-dot.is-active .sp-label { color: #fff; }
.story-pin .story-step h3, .story-pin .story-step p, .story-pin .sp-label { transition: color .5s ease; }

.phone-glow {
  position: absolute; left: 50%; top: 50%; width: 140%; height: 90%;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, var(--blob-1), transparent);
  filter: blur(20px); opacity: .9; pointer-events: none;
}
.phone {
  --ph: min(74svh, 700px);
  position: relative; height: var(--ph); aspect-ratio: 9 / 20.2;
  padding: calc(var(--ph) * .016); border-radius: calc(var(--ph) * .085);
  background: linear-gradient(145deg, #2b3d57, #0d1a2c 40%, #1c2c44);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .12), inset 0 0 0 5px #0b1626;
  will-change: transform;
}
.phone-screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: calc(var(--ph) * .07); background: #fbfbf9;
  transform: translateZ(0);
}
.phone-island {
  position: absolute; left: 50%; top: calc(var(--ph) * .028); width: 28%; height: calc(var(--ph) * .036);
  transform: translateX(-50%); border-radius: 999px; background: #050b14; z-index: 3;
}
.screen {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center; background: #fbfbf9;
  opacity: 0; will-change: transform, opacity;
}
.screen.is-active { opacity: 1; }
/* the board screens have no status bar; give them room for the island */
img.screen:not([data-step="3"]) { padding-top: calc(var(--ph) * .06); }

.screen-dark {
  display: flex; flex-direction: column; gap: 14px;
  padding: calc(var(--ph) * .085) 16px 16px; background: #0E1B2E; color: #EAF0F7; font-size: .85rem;
}
.dk-top { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(234, 240, 247, .1); }
.dk-top .icon { width: 20px; height: 20px; color: #a3bad6; }
.dk-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #F6C344; color: #0E1B2E; }
.dk-who { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; }
.dk-who small { color: #8fd3a8; font-size: .72rem; }
.dk-day { align-self: center; font-size: .72rem; color: #a7b7c9; padding: 3px 10px; border-radius: 999px; background: #17283F; }
.dk-msgs { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.dk-msg { max-width: 78%; padding: 10px 14px; border-radius: 18px; line-height: 1.35; }
.dk-in { align-self: flex-start; background: #17283F; border-bottom-left-radius: 6px; }
.dk-out { align-self: flex-end; background: #F6C344; color: #0E1B2E; font-weight: 600; border-bottom-right-radius: 6px; }
.dk-input { display: flex; align-items: center; gap: 10px; }
.dk-plus { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #17283F; color: #F6C344; font-weight: 700; }
.dk-field { flex: 1; padding: 9px 14px; border-radius: 999px; background: #17283F; color: #8a9bb0; }

.deco-layer { position: absolute; inset: 0; pointer-events: none; }
.deco { position: absolute; inset: 0; opacity: 0; }
.deco-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 16px; border-radius: 16px; font-size: .88rem; font-weight: 700;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.deco-chip .icon { color: var(--accent); }
.deco .d-a { left: -42%; top: 22%; }
.deco .d-b { right: -16%; top: 70%; }
.deco-swatches i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line-strong); }
.deco-night { background: #17283F; color: #EAF0F7; border-color: rgba(255, 255, 255, .1); }
.deco-night .icon { color: #F6C344; }

.story-progress ol { display: flex; flex-direction: column; gap: 4px; }
.sp-dot {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 8px 4px; border: 0; background: none; cursor: pointer; text-align: left; border-radius: 10px;
}
.sp-dot::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--line-strong); transition: transform .3s var(--ease-out), background-color .3s;
}
.sp-dot.is-active::before { background: var(--yellow); transform: scale(1.5); }
.sp-label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.sp-dot.is-active .sp-label { color: var(--text); }

@media (max-width: 1100px) {
  .deco .d-a { left: -30%; top: 12%; }
  .deco .d-b { right: -10%; top: 74%; }
}
@media (max-width: 900px) {
  html.story-enhanced .story-stage {
    grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto; align-items: stretch;
    gap: 14px; padding-top: 68px; padding-bottom: 12px;
  }
  html.story-enhanced .phone-wrap { order: 1; justify-self: center; align-self: end; }
  html.story-enhanced .story-steps { order: 2; height: auto; overflow: hidden; }
  html.story-enhanced .story-step { align-items: center; text-align: center; justify-content: flex-start; }
  html.story-enhanced .story-step h3 { font-size: clamp(1.3rem, 5.6vw, 1.8rem); margin-bottom: 8px; }
  html.story-enhanced .story-step p:not(.step-tag) { font-size: .92rem; line-height: 1.5; margin-inline: auto; }
  html.story-enhanced .step-tag { margin-bottom: 10px; }
  html.story-enhanced .story-progress { order: 3; }
  .phone { --ph: min(44svh, 420px); }
  .deco-layer { display: none; }
  .story-progress ol { flex-direction: row; justify-content: center; gap: 0; }
  .sp-dot { width: 32px; height: 32px; padding: 0; justify-content: center; }
  .sp-label { display: none; }
}
@media (max-width: 900px) and (max-height: 640px) {
  .phone { --ph: 40svh; }
  html.story-enhanced .story-step p:not(.step-tag) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---------- stats ---------- */
.stats { padding: clamp(60px, 9vw, 120px) 0 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.stat-num { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.stat:nth-child(odd) .stat-num { color: var(--accent); }
.stat-label { color: var(--text-2); font-weight: 600; font-size: .98rem; }
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- features (bento) ---------- */
.features { padding: clamp(90px, 12vw, 160px) 0; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 18px; perspective: 1200px; }
.card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transform-style: preserve-3d; will-change: transform;
  min-height: 250px;
}
.card--wide { grid-column: span 2; }
.card--tall { grid-row: span 2; }
.card h3 { font-size: 1.3rem; font-weight: 800; }
.card p { color: var(--text-2); font-size: .98rem; }
.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; margin-bottom: 6px;
  background: var(--accent-soft); color: var(--accent-strong);
}
.card-icon .icon { width: 24px; height: 24px; }
.card-glow {
  position: absolute; left: 0; top: 0; width: 360px; height: 360px; margin: -180px 0 0 -180px; z-index: -1;
  border-radius: 50%; background: radial-gradient(circle, var(--blob-2), transparent 65%);
  opacity: 0; transition: opacity .35s ease; pointer-events: none; will-change: transform;
}
.card:hover .card-glow { opacity: .8; }
.card-art { margin-top: auto; padding-top: 14px; }
.art-bubbles { display: flex; flex-direction: column; gap: 8px; }
.art-bubbles span { height: 30px; border-radius: 15px; background: var(--surface-2); width: 46%; transform-origin: left center; }
.art-bubbles span:nth-child(2) { align-self: flex-end; width: 38%; background: #526b88; transform-origin: right center; }
.art-bubbles span:nth-child(3) { width: 58%; }
.card:hover .art-bubbles span { animation: pop .6s var(--ease-out) both; }
.card:hover .art-bubbles span:nth-child(2) { animation-delay: .08s; }
.card:hover .art-bubbles span:nth-child(3) { animation-delay: .16s; }
@keyframes pop { from { transform: scale(.6); opacity: .3; } }
.art-wave { display: flex; align-items: center; gap: 6px; height: 54px; }
.art-wave i { width: 6px; height: 100%; border-radius: 3px; background: var(--accent); transform: scaleY(.3); animation: wave 1.2s ease-in-out infinite; }
.art-wave i:nth-child(2) { animation-delay: -.2s; } .art-wave i:nth-child(3) { animation-delay: -.4s; background: var(--yellow); }
.art-wave i:nth-child(4) { animation-delay: -.6s; } .art-wave i:nth-child(5) { animation-delay: -.8s; }
.art-wave i:nth-child(6) { animation-delay: -1s; background: var(--yellow); } .art-wave i:nth-child(7) { animation-delay: -.3s; }
@keyframes wave { 50% { transform: scaleY(1); } }
.art-mail { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; color: var(--text); overflow-wrap: anywhere; }
.art-mail span { color: var(--accent); }
.art-translate { display: flex; flex-wrap: wrap; gap: 8px; }
.art-translate span { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-weight: 700; font-size: .9rem; color: var(--text); }
.art-translate span:nth-child(2) { background: var(--yellow); color: #172a43; }
.art-shield { display: grid; place-items: center; height: 70px; }
.art-shield .icon { width: 56px; height: 56px; color: var(--accent); stroke-width: 1.4; }
.card:hover .art-shield .icon { animation: shieldpulse 1.4s ease-in-out infinite; }
@keyframes shieldpulse { 50% { transform: scale(1.1); } }
.art-themes { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tm { display: flex; flex-direction: column; gap: 5px; width: 74px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); }
.tm i { height: 8px; border-radius: 4px; }
.tm-light { background: #fafaf7; } .tm-light i { background: #dfe7f0; } .tm-light i:nth-child(2) { background: #526b88; width: 60%; align-self: flex-end; }
.tm-dark { background: #0E1B2E; } .tm-dark i { background: #17283F; } .tm-dark i:nth-child(2) { background: #F6C344; width: 60%; align-self: flex-end; }
.swatches { display: flex; gap: 8px; }
.swatches i { width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line-strong); transition: transform .3s var(--ease-out); }
.card:hover .swatches i { transform: translateY(-4px); }
.card:hover .swatches i:nth-child(2) { transition-delay: .05s; } .card:hover .swatches i:nth-child(3) { transition-delay: .1s; }
.card:hover .swatches i:nth-child(4) { transition-delay: .15s; } .card:hover .swatches i:nth-child(5) { transition-delay: .2s; }
.card--shot { padding-bottom: 0; }
.mini-phone {
  margin: auto auto 0; width: min(78%, 240px); padding: 8px 8px 0; border-radius: 30px 30px 0 0;
  background: linear-gradient(145deg, #2b3d57, #0d1a2c); box-shadow: var(--shadow-lg);
  transform: translateY(14px); transition: transform .6s var(--ease-out);
}
.mini-phone img { border-radius: 23px 23px 0 0; width: 100%; aspect-ratio: 346 / 560; object-fit: cover; object-position: top; }
.card:hover .mini-phone { transform: translateY(0); }
html.reduced-motion .art-wave i { animation: none; transform: scaleY(.6); }

@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .card--tall { grid-row: auto; }
}

/* ---------- security ---------- */
.security { padding: 0 clamp(8px, 2vw, 24px); }
.security-panel {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(80px, 11vw, 140px) 0; border-radius: clamp(28px, 4vw, 56px);
  background: var(--sec-bg); color: var(--sec-text);
  will-change: transform;
}
.security-bg { position: absolute; inset: 0; z-index: -1; }
.blob-s1 { width: 50vw; height: 50vw; max-width: 700px; max-height: 700px; left: -15%; top: -20%; background: rgba(82, 107, 136, .55); animation: drift1 16s ease-in-out infinite alternate; }
.blob-s2 { width: 34vw; height: 34vw; max-width: 460px; max-height: 460px; right: -10%; bottom: -10%; background: rgba(246, 195, 68, .22); animation: drift2 12s ease-in-out infinite alternate; }
.security .eyebrow { background: rgba(246, 195, 68, .16); color: #F6C344; }
.security .section-sub { color: var(--sec-text-2); }

.e2e-demo {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(10px, 2vw, 24px);
  max-width: 920px; margin: 0 auto clamp(48px, 7vw, 80px);
  padding: clamp(18px, 3vw, 32px); border-radius: var(--radius-lg);
  background: var(--sec-surface); border: 1px solid rgba(255, 255, 255, .1);
}
.e2e-node { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--sec-text-2); text-align: center; }
.e2e-person { width: 48px; height: 48px; }
.e2e-person circle { fill: #EAF0F7; }
.e2e-them .e2e-person circle { fill: #F6C344; }
.e2e-track { position: relative; height: 120px; }
.e2e-line { position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed rgba(234, 240, 247, .25); }
.e2e-server {
  position: absolute; left: 50%; top: calc(50% + 18px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--sec-text-2); text-align: center;
}
.e2e-server .icon { width: 26px; height: 26px; }
.e2e-server small { font-size: .74rem; font-weight: 600; max-width: 18ch; line-height: 1.3; }
.e2e-packet {
  position: absolute; left: 0; top: 50%; transform: translate(0, -110%);
  display: inline-flex; align-items: center; gap: 8px; max-width: 70%;
  padding: 9px 14px; border-radius: 16px; white-space: nowrap;
  background: #ffffff; color: #172a43; font-weight: 700; font-size: .88rem;
  font-family: var(--font); box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  will-change: transform;
}
.e2e-packet.is-locked { background: #F6C344; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.e2e-lock { width: 16px; height: 16px; opacity: 0; transition: opacity .3s; }
.e2e-packet.is-locked .e2e-lock { opacity: 1; }
.e2e-text { overflow: hidden; text-overflow: clip; }

.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sec-item {
  padding: 28px; border-radius: var(--radius); background: var(--sec-surface); border: 1px solid rgba(255, 255, 255, .09);
  display: flex; flex-direction: column; gap: 10px; transition: background-color .3s ease, border-color .3s ease;
}
.sec-item:hover { background: rgba(255, 255, 255, .1); border-color: rgba(246, 195, 68, .4); }
.sec-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(246, 195, 68, .14); color: #F6C344; margin-bottom: 4px; }
.sec-item h3 { font-size: 1.2rem; font-weight: 800; }
.sec-item p { color: var(--sec-text-2); font-size: .98rem; }
@media (max-width: 960px) { .sec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .sec-grid { grid-template-columns: 1fr; }
  .e2e-demo { grid-template-columns: 1fr; justify-items: center; }
  .e2e-track { width: 100%; }
  .e2e-packet { font-size: .8rem; max-width: 92%; }
}

/* ---------- how ---------- */
.how { padding: clamp(90px, 12vw, 160px) 0; }
.how-wrap { position: relative; }
.how-path { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 120px; overflow: visible; pointer-events: none; }
.how-path path { fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.how-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 0 12px; }
.how-num {
  display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%;
  font-size: 2.8rem; font-weight: 800; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.how-icon { position: absolute; top: 80px; left: calc(50% + 28px); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); color: #172a43; box-shadow: var(--shadow-sm); }
.how-step h3 { font-size: 1.3rem; font-weight: 800; margin-top: 10px; }
.how-step p { color: var(--text-2); max-width: 32ch; }
@media (max-width: 800px) {
  .how-path { display: none; }
  .how-steps { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- built for ---------- */
.built { padding: 0 0 clamp(90px, 12vw, 160px); }
.built-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.built-card {
  position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.built-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out);
}
.built-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.built-card:hover::after { transform: scaleX(1); }
.built-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--surface); color: var(--accent); border: 1px solid var(--line); }
.built-card h3 { font-size: 1.2rem; font-weight: 800; }
.built-card p { color: var(--text-2); font-size: .98rem; }
.built-note { margin: 32px auto 0; max-width: 60ch; text-align: center; color: var(--muted); font-size: .95rem; }
@media (max-width: 1000px) { .built-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .built-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { padding: clamp(60px, 9vw, 120px) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.faq-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq .section-head { position: sticky; top: 110px; margin-bottom: 0; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .3s ease; }
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.06rem;
  border-radius: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform .4s var(--ease-out); color: var(--accent); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-a { padding: 0 22px 22px; color: var(--text-2); }
@media (max-width: 860px) {
  .faq-inner { grid-template-columns: 1fr; }
  .faq .section-head { position: static; align-items: center; text-align: center; margin-bottom: 8px; }
}

/* ---------- CTA ---------- */
.cta { padding: clamp(80px, 11vw, 150px) 0; }
.cta-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 60px);
  border-radius: clamp(28px, 4vw, 48px);
  background: #172a43; color: #EAF0F7;
}
:root[data-theme="dark"] .cta-card { background: #17283F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-card { background: #17283F; } }
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.blob-c1 { width: 420px; height: 420px; left: -120px; bottom: -200px; background: rgba(82, 107, 136, .7); animation: drift1 14s ease-in-out infinite alternate; }
.blob-c2 { width: 360px; height: 360px; right: -100px; top: -160px; background: rgba(246, 195, 68, .35); animation: drift2 12s ease-in-out infinite alternate; }
.cta-symbol { width: 120px; height: 104px; --logo-ink: #ffffff; filter: drop-shadow(0 10px 30px rgba(246, 195, 68, .35)); }
.cta-title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; max-width: 20ch; text-wrap: balance; }
.cta-sub { color: #bccadb; font-size: 1.15rem; }
.cta .store-row { margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer { padding: 64px 0 32px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.footer-brand p { color: var(--text-2); }
.footer-nav { display: flex; gap: clamp(40px, 8vw, 96px); }
.footer-nav h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.footer-nav ul { display: flex; flex-direction: column; gap: 4px; }
.footer-nav a { display: inline-block; padding: 6px 0; color: var(--text); text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

/* ---------- reveal defaults (JS sets initial state; no-JS shows everything) ---------- */
html.motion-ready [data-reveal] { opacity: 0; }

/* ---------- legal pages ---------- */
.legal-main { padding: 120px 0 80px; }
.legal-wrap { max-width: 780px; }
.draft-banner {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 20px; margin-bottom: 36px; border-radius: 16px;
  background: #fff3cd; color: #5c4300; border: 2px dashed #c99a1a; font-weight: 700;
}
.draft-banner .icon { margin-top: 2px; }
.legal-main h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: 12px; }
.legal-updated { color: var(--muted); margin-bottom: 24px; }
.legal-intro { font-size: 1.15rem; color: var(--text-2); margin-bottom: 36px; }
.legal-main h2 { font-size: 1.35rem; font-weight: 800; margin: 36px 0 12px; }
.legal-main p { color: var(--text-2); margin-bottom: 12px; white-space: pre-line; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 48px; font-weight: 700; color: var(--accent-strong); }
.back-link .icon { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
}
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.legal-links a { color: var(--text-2); font-weight: 600; text-decoration: none; }
.legal-links a:hover, .legal-links a[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
