/* ChatterHub website — one stylesheet for the landing page and every policy page.
   Brand colours match the app (lib/app/theme.dart): aubergine #36013F, logo purple #673AB7,
   lavender #B388FF — used as accents only. Backgrounds are white in light mode and black in dark
   mode, following the visitor's system setting. Every animation is switched off under
   prefers-reduced-motion. */

:root {
  --brand: #36013F;
  --brand-deep: #1A0020;
  --logo: #673AB7;
  --lavender: #B388FF;
  --glow: #9D5CFF;
  --mint: #3DDC97;
  --sun: #FFC857;

  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F5F5F7;
  --ink: #111111;
  --muted: #5F5F66;
  --line: #E6E6EA;
  --link: #5B2DA8;
  --chip: #F0F0F3;

  /* The hero and the full-width bands: white here, black in dark mode. */
  --band-bg: #FFFFFF;
  --band-ink: #111111;
  --band-muted: rgba(17, 17, 17, .72);
  --band-faint: rgba(17, 17, 17, .55);
  --band-soft: rgba(0, 0, 0, .04);
  --band-soft-2: rgba(0, 0, 0, .07);
  --band-line: rgba(0, 0, 0, .14);
  --band-grid: rgba(0, 0, 0, .05);
  --accent-text: #673AB7;   /* highlighted words: dark enough to read on white */
  --warn-text: #8a5a00;
  --btn-main-bg: var(--brand);  /* the main button on the hero and bands */
  --btn-main-ink: #FFFFFF;
  --dark-card: linear-gradient(150deg, #1C1C1F, #000000);  /* the highlighted tile and plan */

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow: 0 1px 2px rgba(27, 19, 32, .06), 0 12px 32px -12px rgba(54, 1, 63, .18);
  --shadow-l: 0 30px 80px -30px rgba(54, 1, 63, .45);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #0D0D0F;
    --surface-2: #151517;
    --ink: #F5F5F7;
    --muted: #A1A1AA;
    --line: #26262B;
    --link: #C9A8FF;
    --chip: #1C1C20;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);

    --band-bg: #000000;
    --band-ink: #FFFFFF;
    --band-muted: rgba(255, 255, 255, .78);
    --band-faint: rgba(255, 255, 255, .6);
    --band-soft: rgba(255, 255, 255, .07);
    --band-soft-2: rgba(255, 255, 255, .12);
    --band-line: rgba(255, 255, 255, .2);
    --band-grid: rgba(255, 255, 255, .06);
    --accent-text: #B388FF;
    --warn-text: #FFC857;
    --btn-main-bg: #FFFFFF;
    --btn-main-ink: #000000;
    --dark-card: linear-gradient(150deg, #1C1C1F, #0D0D0F);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 400 16px/1.65 var(--font); color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------------ header */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-head .bar { display: flex; align-items: center; gap: 24px; height: 68px; }
.site-head.solid, .page-legal .site-head {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--band-ink); }
.brand .mark { width: 34px; height: 34px; border-radius: 10px; background: #000; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.brand .mark svg { width: 26px; height: 26px; }
.site-head.solid .brand, .page-legal .brand { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--band-muted); text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--band-soft-2); color: var(--band-ink); }
.site-head.solid .nav a, .page-legal .nav a { color: var(--muted); }
.site-head.solid .nav a:hover, .page-legal .nav a:hover { color: var(--ink); background: var(--chip); }
.nav a.cta { background: var(--btn-main-bg); color: var(--btn-main-ink); margin-left: 8px; }
.site-head.solid .nav a.cta, .page-legal .nav a.cta { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .site-head.solid .nav a.cta, .page-legal .nav a.cta { background: var(--logo); } }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--band-line); background: transparent; color: var(--band-ink); cursor: pointer; }
.site-head.solid .menu-btn, .page-legal .menu-btn { color: var(--ink); border-color: var(--line); }
.menu-btn span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 68px 12px auto; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-l);
    opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
  }
  .nav a, .site-head.solid .nav a, .page-legal .nav a { color: var(--ink); padding: 12px 14px; font-size: 16px; }
  .nav a.cta { margin: 6px 0 0; text-align: center; background: var(--brand); color: #fff; }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px;
  font: 700 15.5px/1 var(--font); text-decoration: none; cursor: pointer; border: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-light { background: var(--btn-main-bg); color: var(--btn-main-ink); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .35); }
.btn-ghost { background: var(--band-soft); color: var(--band-ink); box-shadow: inset 0 0 0 1.5px var(--band-line); }
.btn-ghost:hover { background: var(--band-soft-2); }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 12px 30px -12px rgba(54, 1, 63, .7); }
@media (prefers-color-scheme: dark) { .btn-brand { background: var(--logo); } }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .small { display: block; font-size: 10.5px; font-weight: 600; opacity: .7; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 3px; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--band-ink);
  background: var(--band-bg);
  padding: 132px 0 96px;
}
/* Soft glows: radial gradients that already fade to transparent, so no blur filter or blend mode
   (both made every frame expensive on phones). Only transform animates. */
.aurora { position: absolute; inset: -20%; z-index: -2; opacity: .8; pointer-events: none; }
/* The purple glows are off: backgrounds stay plain white / black. */
.aurora { display: none; }
.aurora i { position: absolute; border-radius: 50%; will-change: transform; animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 52vw; height: 52vw; left: 44%; top: 0; background: radial-gradient(circle, rgba(123, 63, 228, .75) 0%, rgba(123, 63, 228, .25) 35%, transparent 68%); }
.aurora i:nth-child(2) { width: 44vw; height: 44vw; left: 4%; top: 34%; background: radial-gradient(circle, rgba(176, 40, 122, .6) 0%, rgba(176, 40, 122, .2) 38%, transparent 66%); animation-duration: 22s; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 34vw; height: 34vw; left: 60%; top: 50%; background: radial-gradient(circle, rgba(46, 107, 255, .4) 0%, transparent 64%); animation-duration: 26s; animation-delay: -12s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-6%, 5%, 0) scale(1.12); }
  100% { transform: translate3d(5%, -4%, 0) scale(.94); }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--band-grid) 1px, transparent 1px), linear-gradient(90deg, var(--band-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--band-soft); box-shadow: inset 0 0 0 1px var(--band-line);
  font-size: 13.5px; font-weight: 600; color: var(--band-muted);
}
.pill b { background: var(--lavender); color: var(--brand-deep); font-size: 11.5px; padding: 3px 9px; border-radius: 999px; letter-spacing: .02em; }
.hero h1 { font-size: clamp(40px, 6.6vw, 78px); font-weight: 800; letter-spacing: -.035em; margin: 22px 0 22px; line-height: 1.02; }
.hero h1 em { font: italic 400 1.08em/1 var(--serif); letter-spacing: -.01em; color: var(--accent-text); }
/* Words slide up through a clipped slot. Only .on/.out animate, so a word that finished leaving
   jumps back below the slot unseen instead of sliding down through it. */
.rotator { display: inline-grid; vertical-align: bottom; height: 1.05em; overflow: hidden; clip-path: inset(0 -0.2em); }
.rotator span { grid-area: 1 / 1; transform: translateY(110%); opacity: 0; color: var(--band-ink); text-decoration: underline; text-decoration-color: var(--lavender); text-decoration-thickness: .07em; text-underline-offset: .12em; }
.rotator span.on { transform: none; opacity: 1; transition: transform .7s var(--ease), opacity .5s; }
.rotator span.out { transform: translateY(-110%); opacity: 0; transition: transform .7s var(--ease), opacity .5s; }
.hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--band-muted); max-width: 560px; margin: 0 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .fine { margin-top: 22px; font-size: 13.5px; color: var(--band-faint); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero .fine span::before { content: "✓"; margin-right: 6px; color: #1E9E63; font-weight: 800; }
@media (prefers-color-scheme: dark) { .hero .fine span::before { color: var(--mint); } }

/* the phone */
.stage { position: relative; display: grid; place-items: center; min-height: 600px; perspective: 1400px; }
.phone {
  position: relative; width: 300px; height: 610px; border-radius: 46px; padding: 12px; color: #fff;
  background: linear-gradient(145deg, #2a2a2e, #0b0b0d); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14), var(--shadow-l), 0 60px 120px -40px rgba(157, 92, 255, .35);
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(1deg); transform-style: preserve-3d;
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob { 50% { transform: rotateY(-10deg) rotateX(3deg) rotateZ(0deg) translateY(-12px); } }
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #0f0b12; display: flex; flex-direction: column; }
.screen .notch { position: absolute; top: 10px; left: 50%; width: 96px; height: 26px; margin-left: -48px; border-radius: 20px; background: #000; z-index: 3; }
.chat-top { display: flex; align-items: center; gap: 10px; padding: 46px 16px 12px; background: #1b1320; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.chat-top .av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #FF9A8B, #B388FF); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #1B1320; }
.chat-top b { display: block; font-size: 14px; }
.chat-top small { color: var(--mint); font-size: 11.5px; }
.msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px 12px; font-size: 13px; line-height: 1.4; overflow: hidden; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 16px; opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .45s, transform .55s var(--ease); }
.msg.in { opacity: 1; transform: none; }
.msg.them { align-self: flex-start; background: #2A2A2E; border-bottom-left-radius: 5px; }
.msg.me { align-self: flex-end; background: #4A1B57; border-bottom-right-radius: 5px; }
.msg.ai { align-self: flex-start; background: linear-gradient(135deg, rgba(179, 136, 255, .22), rgba(103, 58, 183, .28)); box-shadow: inset 0 0 0 1px rgba(179, 136, 255, .35); }
.msg.ai .who { display: block; font-size: 10.5px; font-weight: 800; color: var(--lavender); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 3px; }
.msg .t { display: block; text-align: right; font-size: 10px; opacity: .55; margin-top: 2px; }
.voice { display: flex; align-items: center; gap: 8px; min-width: 170px; }
.voice .play { width: 26px; height: 26px; border-radius: 50%; background: var(--lavender); display: grid; place-items: center; flex: none; }
.voice .play::after { content: ""; border-left: 8px solid #1B1320; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.wave { display: flex; align-items: center; gap: 2px; height: 22px; }
.wave i { width: 3px; height: 20px; border-radius: 2px; background: rgba(255, 255, 255, .7); transform: scaleY(.25); animation: eq 1.1s ease-in-out infinite; }
.wave i:nth-child(odd) { animation-duration: .9s; }
.wave i:nth-child(3n) { animation-duration: 1.3s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .7); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.composer { display: flex; align-items: center; gap: 8px; padding: 10px 12px 20px; }
.composer .field { flex: 1; height: 36px; border-radius: 18px; background: #221a28; color: rgba(255, 255, 255, .45); font-size: 12.5px; display: flex; align-items: center; padding: 0 14px; }
.composer .mic { width: 36px; height: 36px; border-radius: 50%; background: var(--logo); display: grid; place-items: center; }
.composer .mic svg { width: 16px; height: 16px; }
.float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px;
  background: rgba(18, 18, 20, .94); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 18px 40px -18px rgba(0, 0, 0, .8);
  font-size: 13px; font-weight: 700; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.float small { display: block; font-weight: 500; color: rgba(255, 255, 255, .6); font-size: 11.5px; }
.float .ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; }
.float.f1 { top: 9%; right: -8%; }
.float.f1 .ico { background: rgba(61, 220, 151, .18); }
.float.f2 { top: 50%; left: -9%; animation-delay: -2s; }
.float.f2 .ico { background: rgba(179, 136, 255, .2); }
.float.f3 { bottom: 11%; right: -5%; animation-delay: -4s; }
.float.f3 .ico { background: rgba(255, 200, 87, .18); }
@keyframes float { 50% { transform: translateY(-14px); } }

@media (max-width: 980px) {
  .hero { padding: 116px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .stage { min-height: 560px; }
  .phone { transform: none; animation: bob-flat 7s ease-in-out infinite; }
  @keyframes bob-flat { 50% { transform: translateY(-10px); } }
}
@media (max-width: 520px) {
  .stage { min-height: 520px; }
  .phone { width: 262px; height: 540px; border-radius: 40px; }
  .screen { border-radius: 30px; }
  .float { font-size: 12px; padding: 8px 10px; }
  .float.f1 { right: 0; top: 4%; }
  .float.f2 { left: 0; }
  .float.f3 { right: 0; bottom: 4%; }
  .float small { display: none; }
}

/* ------------------------------------------------------------------ marquee */
.marquee { position: relative; overflow: hidden; padding: 26px 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.marquee .track { display: flex; width: max-content; gap: 44px; animation: slide 46s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; color: var(--muted); letter-spacing: -.01em; white-space: nowrap; }
.marquee span:nth-child(3n+1) { font: italic 400 clamp(22px, 2.6vw, 31px)/1 var(--serif); color: var(--ink); }
.marquee span:nth-child(4n+2) { color: var(--logo); }
@media (prefers-color-scheme: dark) { .marquee span:nth-child(4n+2) { color: var(--lavender); } }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--surface), transparent); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ sections */
section.block { padding: 110px 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--logo); margin-bottom: 14px; }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--lavender); } }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.03em; }
.section-head h2 em { font: italic 400 1.06em/1 var(--serif); color: var(--logo); letter-spacing: 0; }
@media (prefers-color-scheme: dark) { .section-head h2 em { color: var(--lavender); } }
.section-head p { font-size: 18px; color: var(--muted); margin: 18px 0 0; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; grid-column: span 2; min-height: 250px; padding: 28px; border-radius: var(--radius-l);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(157, 92, 255, .14), transparent 45%); }
.tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--lavender) 55%, var(--line)); }
.tile:hover::before { opacity: 1; }
.tile.wide { grid-column: span 3; }
.tile.xl { grid-column: span 4; }
.tile.full { grid-column: span 6; min-height: 0; }
.tile.dark { background: var(--dark-card); color: #fff; border-color: var(--line); }
.tile.dark p { color: rgba(255, 255, 255, .75); }
.tile h3 { font-size: 22px; font-weight: 800; margin: 18px 0 8px; }
.tile p { color: var(--muted); margin: 0; font-size: 15.5px; }
.tile .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--chip); color: var(--logo); }
.tile.dark .ico { background: rgba(255, 255, 255, .1); color: var(--lavender); }
.tile .ico svg { width: 24px; height: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags span { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--chip); color: var(--ink); }
.tile.dark .tags span { background: rgba(255, 255, 255, .1); color: #fff; }
.soon { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(255, 200, 87, .2); color: #8a5a00; vertical-align: middle; margin-left: 6px; }
@media (prefers-color-scheme: dark) { .soon { color: var(--sun); } }
.tile.dark .soon { color: var(--sun); }
.res { display: flex; gap: 8px; margin-top: 22px; align-items: flex-end; }
.res span { flex: 1; border-radius: 10px; background: linear-gradient(180deg, var(--lavender), var(--logo)); color: #fff; font-weight: 800; font-size: 12.5px; display: grid; place-items: end center; padding-bottom: 8px; transform-origin: bottom; transform: scaleY(.2); opacity: .4; transition: transform 1s var(--ease), opacity .6s; }
.res span:nth-child(1) { height: 48px; } .res span:nth-child(2) { height: 72px; transition-delay: .1s; } .res span:nth-child(3) { height: 96px; transition-delay: .2s; } .res span:nth-child(4) { height: 124px; transition-delay: .3s; }
.visible .res span { transform: none; opacity: 1; }
.ai-lines { margin-top: 20px; display: grid; gap: 8px; }
.ai-lines i { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, rgba(179, 136, 255, .5), rgba(179, 136, 255, .1)); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.ai-lines i:nth-child(2) { width: 86%; transition-delay: .25s; } .ai-lines i:nth-child(3) { width: 64%; transition-delay: .5s; }
.visible .ai-lines i { transform: none; }
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.wide, .tile.xl, .tile.full { grid-column: span 2; }
  .tile.half { grid-column: span 1; }
}
@media (max-width: 600px) { .tile.half { grid-column: span 2; } section.block { padding: 80px 0; } }

/* privacy band */
.privacy-band { position: relative; overflow: hidden; background: var(--band-bg); color: var(--band-ink); border: 1px solid var(--line); border-radius: 40px; margin: 0 16px; padding: 96px 0; isolation: isolate; }
.privacy-band .aurora { opacity: .45; }
.privacy-band .section-head p { color: var(--band-muted); }
.privacy-band .eyebrow, .privacy-band .section-head h2 em { color: var(--accent-text); }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promise { padding: 26px; border-radius: 22px; background: var(--band-soft); box-shadow: inset 0 0 0 1px var(--band-line); }
.promise h3 { font-size: 18px; margin: 12px 0 6px; }
.promise p { color: var(--band-muted); font-size: 15px; margin: 0; }
.promise .n { font-size: 30px; }
.honest { margin-top: 28px; display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: 20px; background: rgba(255, 200, 87, .1); box-shadow: inset 0 0 0 1px rgba(255, 200, 87, .4); font-size: 15px; color: var(--band-ink); }
.honest b { color: var(--warn-text); }
@media (max-width: 860px) { .promises { grid-template-columns: 1fr; } .privacy-band { border-radius: 28px; margin: 0 8px; padding: 72px 0; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.stat { text-align: center; padding: 24px 12px; }
.stat b { display: block; font-size: clamp(38px, 5vw, 60px); font-weight: 800; letter-spacing: -.04em; line-height: 1; background: linear-gradient(180deg, var(--band-ink), var(--accent-text)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--band-faint); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* plans */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .35s var(--ease); }
.plan:hover { transform: translateY(-6px); }
.plan .tier { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.plan h3 { font-size: 28px; font-weight: 800; margin: 6px 0 4px; }
.plan .price { font-size: 15px; color: var(--muted); margin-bottom: 18px; min-height: 24px; }
.plan .price b { font-size: 30px; color: var(--ink); letter-spacing: -.03em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; font-size: 14.5px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--chip) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23673AB7' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
@media (prefers-color-scheme: dark) { .plan li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23B388FF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); } }
.plan.hot { background: var(--dark-card); color: #fff; border-color: var(--line); box-shadow: var(--shadow-l); }
.plan.hot .tier, .plan.hot .price { color: rgba(255, 255, 255, .7); }
.plan.hot .price b { color: #fff; }
.plan.hot li::before { background-color: rgba(255, 255, 255, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23B388FF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ribbon { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; color: var(--brand-deep); background: linear-gradient(90deg, var(--lavender), #fff, var(--lavender)); background-size: 200% 100%; animation: shimmer 3.5s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.plans-note { text-align: center; margin-top: 28px; color: var(--muted); font-size: 15px; }
@media (max-width: 1060px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius-l); background: var(--surface-2); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: italic 400 46px/1 var(--serif); color: var(--logo); margin-bottom: 18px; }
@media (prefers-color-scheme: dark) { .step::before { color: var(--lavender); } }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 15.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s; }
.faq details[open] { border-color: color-mix(in srgb, var(--lavender) 60%, var(--line)); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 22px; font-weight: 700; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); font-size: 20px; font-weight: 500; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 22px 20px; color: var(--muted); }
.faq .a p:last-child { margin: 0; }

/* cta */
.cta-band { position: relative; overflow: hidden; isolation: isolate; margin: 0 16px 16px; border-radius: 40px; padding: 90px 24px; text-align: center; color: var(--band-ink); background: var(--band-bg); border: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -.035em; max-width: 820px; margin: 0 auto 16px; }
.cta-band h2 em { font: italic 400 1.06em/1 var(--serif); color: var(--accent-text); }
.cta-band p { color: var(--band-muted); font-size: 18px; margin: 0 auto 30px; max-width: 560px; }
.cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 600px) { .cta-band { border-radius: 28px; margin: 0 8px 8px; padding: 70px 18px; } }

/* ------------------------------------------------------------------ footer */
.site-foot { padding: 72px 0 40px; border-top: 1px solid var(--line); background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid .brand { color: var(--ink); }
.foot-grid p { color: var(--muted); font-size: 14.5px; margin: 14px 0 0; max-width: 320px; }
.foot-grid h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--ink); text-decoration: none; font-size: 14.5px; }
.foot-grid a:hover { color: var(--link); text-decoration: underline; }
.foot-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ policy pages */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--logo), var(--lavender)); }
.legal-hero { position: relative; overflow: hidden; isolation: isolate; padding: 128px 0 56px; background: var(--bg); border-bottom: 1px solid var(--line); }
.legal-hero::after { display: none; content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(157, 92, 255, .22), transparent 65%); animation: drift 20s ease-in-out infinite alternate; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.legal-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.035em; max-width: 900px; }
.legal-hero .summary { font-size: 19px; color: var(--muted); max-width: 760px; margin: 18px 0 22px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); }
.meta span { padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.meta .draft { background: rgba(255, 200, 87, .18); border-color: rgba(255, 200, 87, .45); color: #7a5000; font-weight: 700; }
@media (prefers-color-scheme: dark) { .meta .draft { color: var(--sun); } }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 220px; gap: 48px; padding-top: 56px; padding-bottom: 96px; align-items: start; }
.side { position: sticky; top: 92px; min-width: 0; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.side h4, .toc h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.side nav { display: grid; gap: 2px; }
.side a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.side a:hover { background: var(--chip); color: var(--ink); }
.side a.on { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .side a.on { background: var(--logo); } }
.toc { position: sticky; top: 92px; }
.toc nav { display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 13.5px; transition: color .2s, border-color .2s; }
.toc a.on { color: var(--ink); border-left-color: var(--logo); font-weight: 700; }
.prose { max-width: 760px; font-size: 17px; }
.prose h2 { font-size: 26px; font-weight: 800; margin: 48px 0 14px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.1em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--logo); }
.prose .note { padding: 18px 20px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); margin: 0 0 1.2em; }
.prose .note.warn { background: rgba(255, 200, 87, .12); border-color: rgba(255, 200, 87, .45); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.prose code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--chip); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.pager a { display: block; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); transition: transform .3s var(--ease), border-color .3s; }
.pager a:hover { transform: translateY(-3px); border-color: var(--lavender); }
.pager small { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 4px; }
.pager b { font-size: 16px; }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 1180px) { .legal-layout { grid-template-columns: 230px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 860px) {
  /* minmax(0, 1fr): the one-row policy list below must scroll, not widen the page to its full length. */
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
  .side { position: static; max-height: none; overflow: visible; }
  .side nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .side a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; }
  .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; }
}

/* join page */
.join-card { max-width: 560px; margin: 0 auto; text-align: center; padding: 40px 28px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.join-card .code { font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed var(--lavender); margin: 16px 0; font-size: 15px; }
.join-card .actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 22px 0; }

/* ------------------------------------------------------------------ reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].visible { opacity: 1; transform: none; }
/* Above the fold nothing waits for JavaScript: the hero rises in on first paint. */
.js .hero [data-reveal] { opacity: 1; transform: none; transition: none; animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .msg { opacity: 1; transform: none; }
  .rotator span { display: none; }
  .rotator span:first-child { display: inline; opacity: 1; transform: none; }
  .res span, .ai-lines i { transform: none; opacity: 1; }
}
