/* SeeMate website. Plain CSS, no build step.
   Shape rule: buttons and chips are full pills, panels are 20px, small UI 12px. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b0e12;
  --bg-2: #0f1318;
  --surface: #131920;
  --surface-2: #18202a;
  --line: rgba(232, 240, 236, 0.09);
  --line-strong: rgba(232, 240, 236, 0.16);
  --text: #eef2ef;
  --muted: #a6b0ab;
  --dim: #818b87;
  --accent: #68d96b;
  --accent-rgb: 104, 217, 107;
  --accent-ink: #08170a;
  --sq-light: #46505a;
  --sq-dark: #262d35;
  --r-panel: 20px;
  --r-ui: 12px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --chess: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2", "DejaVu Sans", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(var(--accent-rgb), 0.35); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.accent { color: var(--accent); }
.mono { font-family: var(--mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 1rem/1 var(--font); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 28px -10px rgba(var(--accent-rgb), 0.55); }
.btn-primary:hover { background: #7ee281; box-shadow: 0 10px 34px -10px rgba(var(--accent-rgb), 0.7); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(232, 240, 236, 0.28); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn[aria-disabled="true"] { background: var(--surface-2); color: var(--muted); border-color: var(--line-strong); box-shadow: none; cursor: default; }
.btn[aria-disabled="true"]:active { transform: none; }
.btn .ico { width: 1.15em; height: 1.15em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 18, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 1.125rem; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 0.9375rem; transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-cta { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .ico { width: 22px; height: 22px; }
.menu-btn .ico-close { display: none; }
.menu-btn[aria-expanded="true"] .ico-open { display: none; }
.menu-btn[aria-expanded="true"] .ico-close { display: block; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav-cta { margin-left: 0; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 4px; border-radius: 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); background: none !important; }
  .nav-links li:last-child a { border-bottom: 0; }
}
@media (max-width: 400px) {
  .nav { gap: 12px; }
  .nav-cta { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 120px; border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 40px; font-size: 0.9375rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid h2 { font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 12px; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--muted); }
.footer-grid a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-brand p { margin-top: 12px; max-width: 30ch; }
.footer-legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 0.8125rem; color: var(--dim); }
.footer-legal p { margin: 0; max-width: 90ch; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 136px) 0 0; }
.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.125rem; max-width: 58ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 550; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 18px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 24px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; min-height: min(640px, calc(100dvh - 140px)); }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 640; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { margin: 22px 0 32px; color: var(--muted); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); max-width: 34ch; line-height: 1.55; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); font-size: 0.875rem; color: var(--muted); margin-bottom: 24px; }
.hero-badge b { background: rgba(var(--accent-rgb), 0.14); color: var(--accent); font-weight: 600; padding: 3px 10px; border-radius: 999px; font-size: 0.8125rem; }

.js .hero-copy > * { animation: rise 0.9s var(--ease) both; }
.js .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.js .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.js .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Hero scene: perspective board */
.scene { position: relative; aspect-ratio: 1 / 0.9; width: 100%; max-width: 600px; margin-left: auto; }
.scene::before {
  content: ""; position: absolute; inset: 8% 4% 2%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.16), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.viewfinder { position: absolute; inset: 4% 3% 3%; pointer-events: none; }
.viewfinder i { position: absolute; width: 13%; aspect-ratio: 1; border: 3px solid var(--accent); opacity: 0.9; }
.viewfinder i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.viewfinder i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.viewfinder i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.viewfinder i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }

.stage { position: absolute; inset: 0; perspective: 1150px; perspective-origin: 50% 0%; display: grid; place-items: center; }
.board3d {
  --tilt: 50deg;
  position: relative; width: 76%; aspect-ratio: 1;
  container-type: inline-size;
  transform: translateY(4%) rotateX(var(--tilt));
  transform-style: preserve-3d;
}
.js .board3d { animation: tilt-in 1.4s var(--ease) both 0.1s; }
@keyframes tilt-in { from { opacity: 0; transform: translateY(16%) rotateX(64deg) scale(0.94); } to { opacity: 1; transform: translateY(4%) rotateX(var(--tilt)); } }

.squares {
  position: absolute; inset: 0; border-radius: 4px;
  background: conic-gradient(var(--sq-dark) 25%, var(--sq-light) 0 50%, var(--sq-dark) 0 75%, var(--sq-light) 0) 0 0 / 25% 25%;
  box-shadow: 0 0 0 6px #1a2027, 0 40px 80px -20px rgba(0, 0, 0, 0.8);
}
.board3d .overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pc {
  position: absolute; width: 12.5%; height: 12.5%;
  display: flex; align-items: flex-end; justify-content: center;
  font-family: var(--chess); line-height: 1; font-size: 3.4rem; font-size: 15.5cqw;
  transform-origin: 50% 100%;
  transform: translateY(-38%) rotateX(calc(var(--tilt) * -1));
  pointer-events: none; user-select: none;
}
.pc.w { color: #f2f3ee; text-shadow: 0 1px 0 #9aa19b, 0 6px 10px rgba(0, 0, 0, 0.55); }
.pc.b { color: #161a1f; -webkit-text-stroke: 0.04em #aab3ae; paint-order: stroke fill; text-shadow: 0 6px 10px rgba(0, 0, 0, 0.5); }

.arrow-main { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .arrow-main { animation: draw 1.1s var(--ease) both 1.05s; }
.js .arrow-head { animation: fade 0.4s ease both 1.9s; }
.js .arrow-glow { animation: fade 0.6s ease both 1.6s, glow 3.2s ease-in-out 2.4s infinite; }
.js .alt { animation: fade 0.6s ease both 2.1s; }
.js .hl { animation: fade 0.6s ease both 0.9s; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes glow { 50% { opacity: 0.45; } }

.bubble {
  position: absolute; top: 6%; right: 2%;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 20px 20px 6px 20px;
  background: rgba(24, 32, 42, 0.86); border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-weight: 600; font-size: clamp(0.9375rem, 1.6vw, 1.125rem); letter-spacing: -0.01em;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7);
}
.bubble .ico { color: var(--accent); width: 1.3em; height: 1.3em; }
.live {
  position: absolute; left: -2%; bottom: -2%; width: min(300px, 64%);
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 22px;
  background: rgba(20, 26, 33, 0.82); border: 1px solid var(--line-strong);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 50px -18px rgba(0, 0, 0, 0.8);
}
.live img { width: 40px; height: 40px; border-radius: 10px; }
.live small { display: block; font-size: 0.75rem; color: var(--dim); line-height: 1.3; }
.live strong { display: block; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.3; }
.live strong span { color: var(--accent); font-family: var(--mono); font-weight: 400; }
.js .bubble { animation: pop 0.8s var(--ease) both 2.2s; }
.js .live { animation: pop 0.8s var(--ease) both 1.5s; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.96); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  .hero-sub { max-width: 40ch; }
  .scene { margin: 0 auto; }
}
@media (max-width: 520px) {
  .bubble { padding: 9px 13px; }
  .live { padding: 10px 12px; gap: 10px; border-radius: 18px; }
  .live img { width: 32px; height: 32px; border-radius: 8px; }
  .live strong { font-size: 0.9375rem; }
}

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; counter-reset: step; }
.steps li { position: relative; padding: 32px 32px 0 0; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 999px; margin-bottom: 24px;
  background: var(--bg); border: 1px solid rgba(var(--accent-rgb), 0.5); color: var(--accent);
  font: 500 1rem/1 var(--mono); position: relative; z-index: 1;
}
.steps::before { content: ""; position: absolute; left: 22px; right: 10%; top: 54px; height: 1px; background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.5), var(--line) 60%, transparent); }
.steps h3 { font-size: 1.375rem; margin-bottom: 10px; }
.steps p { color: var(--muted); max-width: 32ch; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before { left: 22px; right: auto; top: 40px; bottom: 40px; width: 1px; height: auto; background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.5), var(--line)); }
  .steps li { padding: 0 0 36px 68px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- Features bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "ar ar voice" "ar ar live" "bg fix fix" "track track demo"; gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--surface); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.tile h3 { font-size: 1.25rem; }
.tile p { color: var(--muted); margin: 0; font-size: 1rem; max-width: 46ch; }
.tile .tile-ico { width: 40px; height: 40px; border-radius: var(--r-ui); display: grid; place-items: center; background: rgba(var(--accent-rgb), 0.1); color: var(--accent); margin-bottom: 6px; }
.tile .tile-ico .ico { width: 22px; height: 22px; }
.t-ar { grid-area: ar; background: radial-gradient(120% 80% at 100% 0%, rgba(var(--accent-rgb), 0.1), transparent 55%), var(--surface); }
.t-voice { grid-area: voice; }
.t-live { grid-area: live; background: linear-gradient(160deg, #1a2430, #121820 70%); }
.t-bg { grid-area: bg; background: radial-gradient(90% 90% at 0% 100%, rgba(var(--accent-rgb), 0.12), transparent 60%), var(--surface); }
.t-fix { grid-area: fix; }
.t-track { grid-area: track; }
.t-demo { grid-area: demo; background: repeating-conic-gradient(rgba(255, 255, 255, 0.025) 0 25%, transparent 0 50%) 0 0 / 28px 28px, var(--surface); }
.t-ar .board2d { margin-top: auto; align-self: center; width: min(100%, 400px); }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "ar ar" "voice live" "bg bg" "fix fix" "track demo"; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "ar" "voice" "live" "bg" "fix" "track" "demo"; }
  .tile { padding: 22px; }
}

/* 2D board (flat mode) */
.board2d { position: relative; aspect-ratio: 1; container-type: inline-size; margin-top: 20px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 5px #1a2027; }
.board2d .squares { border-radius: 0; box-shadow: none; }
.board2d .pc2 { position: absolute; width: 12.5%; height: 12.5%; display: grid; place-items: center; font-family: var(--chess); font-size: 2rem; font-size: 13.5cqw; line-height: 1; }
.board2d .pc2.w { color: #f2f3ee; text-shadow: 0 1px 0 #7f8781; }
.board2d .pc2.b { color: #161a1f; -webkit-text-stroke: 0.035em #aab3ae; paint-order: stroke fill; }
.board2d svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* voice tile */
.speech { margin-top: auto; padding-top: 24px; display: grid; gap: 14px; }
.speech .say { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 20px 20px 20px 6px; background: var(--surface-2); border: 1px solid var(--line-strong); font-weight: 600; font-size: 1.125rem; }
.wave { display: flex; align-items: center; gap: 4px; height: 22px; }
.wave i { width: 3px; height: 100%; border-radius: 3px; background: var(--accent); transform-origin: center; transform: scaleY(0.35); }
.js .reveal.in .wave i { animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: 0.15s !important; }
.wave i:nth-child(3) { animation-delay: 0.3s !important; }
.wave i:nth-child(4) { animation-delay: 0.45s !important; }
.wave i:nth-child(5) { animation-delay: 0.6s !important; }
@keyframes wave { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

/* lock screen tile */
.lock { margin-top: auto; padding-top: 18px; display: grid; gap: 12px; justify-items: center; }
.island { display: inline-flex; align-items: center; gap: 10px; padding: 7px 8px 7px 7px; border-radius: 999px; background: #050607; border: 1px solid rgba(255, 255, 255, 0.06); font: 400 0.9375rem/1 var(--mono); color: var(--accent); }
.island img { width: 22px; height: 22px; border-radius: 6px; }
.island span { padding-right: 8px; }
.lock-time { font-size: 2.75rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: rgba(238, 242, 239, 0.92); }
.lock .live { position: static; width: 100%; max-width: 320px; }

/* background tile */
.t-bg .big { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; max-width: 18ch; }

/* fix tile chips */
.chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); font-size: 0.9375rem; color: var(--text); }
.chips .ico { color: var(--accent); width: 18px; height: 18px; }

/* tracking tile */
.moves { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 4px; font: 400 0.9375rem/1 var(--mono); }
.moves span { padding: 7px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); color: var(--muted); }
.moves span.n { background: none; color: var(--dim); padding-right: 2px; }
.moves span.rec { background: rgba(var(--accent-rgb), 0.13); color: var(--accent); }
.moves-cap { margin-top: 10px; font-size: 0.875rem; color: var(--dim); }

/* ---------- Glasses or iPhone ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.duo > div { padding: clamp(28px, 4vw, 48px); }
.duo > div + div { border-left: 1px solid var(--line); }
.duo .glasses { background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.07), transparent 50%); }
.duo .big-ico { width: 56px; height: 56px; color: var(--accent); margin-bottom: 20px; }
.duo h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); margin-bottom: 8px; }
.duo .lead { color: var(--muted); margin-bottom: 24px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.ticks .ico { color: var(--accent); width: 20px; height: 20px; margin-top: 3px; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } .duo > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Privacy band ---------- */
.privacy-band { text-align: left; }
.privacy-band .statement { font-size: clamp(2.25rem, 5.6vw, 4.5rem); font-weight: 620; letter-spacing: -0.045em; line-height: 1.02; max-width: 15ch; }
.privacy-band .statement span { color: var(--dim); }
.privacy-band .sub { margin-top: 24px; color: var(--muted); font-size: 1.125rem; max-width: 56ch; }
.nos { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.nos li { padding: 24px 24px 0 0; display: grid; gap: 10px; align-content: start; }
.nos .ico { width: 28px; height: 28px; color: var(--accent); }
.nos strong { font-size: 1.0625rem; }
.nos span { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.text-link { color: var(--accent); text-decoration: none; font-weight: 550; display: inline-flex; align-items: center; gap: 6px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link .ico { width: 1em; height: 1em; transition: transform 0.2s var(--ease); }
.text-link:hover .ico { transform: translateX(3px); }
@media (max-width: 860px) { .nos { grid-template-columns: 1fr 1fr; } .nos li { padding-bottom: 8px; } }
@media (max-width: 420px) { .nos { grid-template-columns: 1fr; } }

/* ---------- Fair play ---------- */
.fair { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding: clamp(28px, 5vw, 56px); border-radius: var(--r-panel); border: 1px solid rgba(var(--accent-rgb), 0.28); background: radial-gradient(80% 120% at 0% 0%, rgba(var(--accent-rgb), 0.08), transparent 60%), var(--bg-2); }
.fair h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); margin-bottom: 16px; }
.fair p { color: var(--muted); }
.fair-lists { display: grid; gap: 28px; align-content: center; }
.fair-lists h3 { font-size: 1rem; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.fair-lists ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fair-lists li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--muted); }
.fair-lists li .ico { width: 18px; height: 18px; margin-top: 4px; }
.fair-lists .yes .ico { color: var(--accent); }
.fair-lists .no .ico { color: #ef8a7a; }
@media (max-width: 820px) { .fair { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq-layout .section-head { position: sticky; top: 100px; }
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer a, .prose a { color: var(--accent); text-underline-offset: 3px; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } .faq-layout .section-head { position: static; margin-bottom: 8px; } }

/* ---------- CTA band ---------- */
.cta-band { margin-top: clamp(80px, 11vw, 136px); position: relative; overflow: hidden; border-radius: var(--r-panel); padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 72px); background: radial-gradient(60% 120% at 100% 100%, rgba(var(--accent-rgb), 0.2), transparent 60%), var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); letter-spacing: -0.04em; }
.cta-band p { color: var(--muted); margin: 14px 0 0; font-size: 1.125rem; }
.cta-band img { width: clamp(88px, 12vw, 132px); height: auto; border-radius: 28%; box-shadow: 0 24px 60px -20px rgba(var(--accent-rgb), 0.45); }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 640px) { .cta-band { grid-template-columns: 1fr; } .cta-band img { grid-row: 1; } }

/* ---------- Document pages ---------- */
.page-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.04em; }
.page-hero p { margin: 16px 0 0; color: var(--muted); font-size: 1.125rem; max-width: 60ch; }
.page-hero .meta { font-size: 0.9375rem; color: var(--dim); margin-top: 14px; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); padding-top: 48px; align-items: start; }
.toc { position: sticky; top: 96px; font-size: 0.9375rem; }
.toc p { font-weight: 600; margin-bottom: 10px; color: var(--text); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--text); border-left-color: var(--line-strong); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; padding-top: 32px; } .toc { position: static; } .toc ol { grid-template-columns: 1fr 1fr; border-left: 0; gap: 0 16px; } .toc a { padding-left: 0; border-left: 0; } }
@media (max-width: 420px) { .toc ol { grid-template-columns: 1fr; } }

.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); margin: 56px 0 16px; padding-top: 8px; }
.prose > h2:first-child, .prose > section:first-child > h2 { margin-top: 0; }
.prose h3 { font-size: 1.1875rem; margin: 32px 0 10px; }
.prose p, .prose li { color: #c9d1cd; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45em; padding-left: 0.2em; }
.prose li::marker { color: var(--dim); }
.prose strong { color: var(--text); font-weight: 600; }
.prose code { font-family: var(--mono); font-size: 0.9em; background: rgba(255, 255, 255, 0.06); padding: 2px 6px; border-radius: 6px; }
.prose .path { font-weight: 600; color: var(--text); }
.callout { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 18px 20px; border-radius: var(--r-ui); border: 1px solid var(--line-strong); background: var(--surface); margin: 24px 0; }
.callout .ico { color: var(--accent); width: 22px; height: 22px; margin-top: 2px; }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }
.callout.warn { border-color: rgba(var(--accent-rgb), 0.35); background: rgba(var(--accent-rgb), 0.05); }
pre.license { white-space: pre-wrap; word-break: break-word; font: 400 0.8125rem/1.6 var(--mono); color: #c9d1cd; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-ui); padding: 20px; overflow-x: auto; margin: 16px 0 24px; }

/* Beta page */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-top: 48px; }
.join-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: j; }
.join-steps > li { counter-increment: j; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 22px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); }
.join-steps > li::before { content: counter(j); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(var(--accent-rgb), 0.5); color: var(--accent); font: 500 1rem/1 var(--mono); }
.join-steps h3 { font-size: 1.1875rem; margin: 9px 0 6px; }
.join-steps p { color: var(--muted); margin: 0; }
.join-steps a { color: var(--accent); text-underline-offset: 3px; }
.invite { position: sticky; top: 96px; padding: clamp(24px, 4vw, 36px); border-radius: var(--r-panel); border: 1px solid var(--line-strong); background: radial-gradient(100% 80% at 100% 0%, rgba(var(--accent-rgb), 0.14), transparent 60%), var(--surface); }
.invite img { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 18px; }
.invite h2 { font-size: 1.625rem; margin-bottom: 6px; }
.invite p { color: var(--muted); }
.invite .btn { width: 100%; margin-top: 8px; }
.invite .state { font-size: 0.9375rem; color: var(--dim); margin: 14px 0 0; }
.invite .reqs { list-style: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 0.9375rem; color: var(--muted); }
.invite .reqs li { display: flex; gap: 10px; align-items: center; }
.invite .reqs .ico { color: var(--accent); width: 18px; height: 18px; }
@media (max-width: 860px) { .join { grid-template-columns: 1fr; } .invite { position: static; grid-row: 1; } }

.trouble { display: grid; gap: 12px; margin: 16px 0 24px; }
.trouble > div { padding: 18px 20px; border-radius: var(--r-ui); background: var(--surface); border: 1px solid var(--line); }
.trouble h3 { margin: 0 0 6px; font-size: 1.0625rem; }
.trouble p { margin: 0; }

.contact-card { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 24px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); margin: 16px 0 24px; }
.contact-card p { margin: 0; }

/* 404 */
.notfound { min-height: 60dvh; display: grid; align-content: center; gap: 20px; padding-top: 64px; }
.notfound .code { font: 400 0.9375rem/1 var(--mono); color: var(--accent); }
.notfound h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.045em; max-width: 14ch; }
.notfound p { color: var(--muted); font-size: 1.125rem; max-width: 46ch; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header, .bubble, .live { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface-2); }
}

.menu-only { display: none; }
@media (max-width: 400px) { .menu-only { display: block; } }
