/* komya.app — tempered glass, like a visor on the road (the team dashboard's liquid glass, taken further).
   Direction: Komya is group voice and a live map for riders, whatever intercom they wear. Character: sturdy, alive,
   warm. World: the road at dusk, asphalt and chalk, the visor a rider looks through. Moments: the live ride in the
   hero phone, the phone that changes screen feature by feature, the signals you can send. Signature: the logo's
   waves, only where someone is talking or something is live.
   Rules (README): everything from 'self', no inline style, prefers-reduced-motion turns motion off. Bump ?v= on every
   page after a change. */

@font-face { font-family: "Archivo Expanded"; src: url("fonts/ArchivoExpanded-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("fonts/AtkinsonHyperlegibleNext-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("fonts/AtkinsonHyperlegibleNext-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Atkinson Mono"; src: url("fonts/AtkinsonHyperlegibleMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

/* ---------- Tokens: light by default (the apps' light values), dark on demand ---------- */

:root {
  --bg: #e9e7e1;
  --raised: #ffffff;
  --sunken: #eae7df;
  --ink: #14171b;
  --muted: #575e68;
  --faint: #8a8f97;
  --line: rgb(20 23 27 / 9%);
  --signal: #3dd68c;
  --signal-ink: #0f7a45;
  --signal-soft: #ddf3e6;
  --on-signal: #0d0f12;
  --position: #1f5fcc;
  --violet: #6b3fd4;
  --warning: #8a5a00;
  --danger: #d92d20;

  --display: "Archivo Expanded", "Arial Black", system-ui, sans-serif;
  --text: "Atkinson Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Atkinson Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-control: 14px;
  --r-card: 22px;
  --r-panel: 32px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 0.15s;
  --base: 0.36s;
  --enter: 0.8s;

  --glow:
    radial-gradient(900px 680px at 4% -6%, rgb(61 214 140 / 50%), transparent 66%),
    radial-gradient(900px 760px at 102% 14%, rgb(90 162 255 / 44%), transparent 66%),
    radial-gradient(800px 700px at 46% 70%, rgb(155 123 255 / 26%), transparent 70%),
    radial-gradient(700px 620px at 92% 104%, rgb(61 214 140 / 28%), transparent 70%);
  --glass-fill: linear-gradient(145deg, rgb(255 255 255 / 34%) 0%, rgb(255 255 255 / 8%) 50%, rgb(255 255 255 / 18%) 100%);
  --glass-filter: blur(30px) saturate(220%) brightness(1.08) contrast(1.02);
  --glass-shadow:
    inset 0 2px 1px -1px #fff, inset 0 -2px 2px -1px rgb(20 23 27 / 10%), inset 2px 0 2px -1px rgb(255 255 255 / 70%),
    inset -2px 0 2px -1px rgb(20 23 27 / 5%), inset 0 0 0 1px rgb(255 255 255 / 35%), inset 0 0 32px rgb(255 255 255 / 28%),
    0 30px 60px -24px rgb(30 40 60 / 35%), 0 3px 8px rgb(30 40 60 / 8%);
  --glass-rim: linear-gradient(140deg, #fff 0%, rgb(255 255 255 / 25%) 30%, rgb(20 23 27 / 8%) 55%, rgb(255 255 255 / 20%) 75%, #fff 100%);
  --glass-sheen: linear-gradient(180deg, rgb(255 255 255 / 55%), rgb(255 255 255 / 0%));
  --glint: rgb(255 255 255 / 55%);
  --chip-fill: linear-gradient(180deg, rgb(255 255 255 / 60%), rgb(255 255 255 / 18%));
  --chip-shadow: inset 0 1.5px 0 #fff, inset 0 -1px 1px rgb(20 23 27 / 8%), inset 0 0 0 1px rgb(255 255 255 / 45%), 0 6px 14px -8px rgb(30 40 60 / 35%);
  --ink-pill: linear-gradient(180deg, rgb(20 23 27 / 94%), rgb(20 23 27 / 80%));
  --ink-pill-text: #fff;
  --track: rgb(20 23 27 / 8%);
  --map-land: #e4e2db;
  --map-water: #b9d3ea;
  --map-road: #ffffff;
  --map-minor: #f5f4ef;
  --map-park: #cfe5d2;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0d0f12;
  --raised: #1c2025;
  --sunken: #0a0b0d;
  --ink: #f4f2ec;
  --muted: #a2a8b1;
  --faint: #6f7681;
  --line: rgb(244 242 236 / 9%);
  --signal-ink: #3dd68c;
  --signal-soft: #0f2e20;
  --position: #5aa2ff;
  --violet: #9b7bff;
  --warning: #ffc24d;

  --glow:
    radial-gradient(900px 620px at 4% -6%, rgb(61 214 140 / 30%), transparent 68%),
    radial-gradient(900px 700px at 102% 18%, rgb(90 162 255 / 26%), transparent 68%),
    radial-gradient(800px 640px at 50% 110%, rgb(155 123 255 / 22%), transparent 70%);
  --glass-fill: linear-gradient(135deg, rgb(255 255 255 / 11%) 0%, rgb(255 255 255 / 3%) 45%, rgb(255 255 255 / 7%) 100%);
  --glass-filter: blur(28px) saturate(170%) brightness(0.95);
  --glass-shadow:
    inset 0 1px 0 rgb(255 255 255 / 28%), inset 0 -1px 0 rgb(255 255 255 / 6%), inset 0 0 22px rgb(255 255 255 / 4%),
    0 24px 48px -18px rgb(0 0 0 / 70%), 0 2px 6px rgb(0 0 0 / 30%);
  --glass-rim: linear-gradient(140deg, rgb(255 255 255 / 55%) 0%, rgb(255 255 255 / 6%) 40%, rgb(255 255 255 / 2%) 62%, rgb(255 255 255 / 28%) 100%);
  --glass-sheen: linear-gradient(180deg, rgb(255 255 255 / 9%), rgb(255 255 255 / 0%));
  --glint: rgb(255 255 255 / 16%);
  --chip-fill: linear-gradient(180deg, rgb(255 255 255 / 13%), rgb(255 255 255 / 4%));
  --chip-shadow: inset 0 1px 0 rgb(255 255 255 / 22%), inset 0 0 0 1px rgb(255 255 255 / 6%), 0 4px 10px -6px rgb(0 0 0 / 60%);
  --ink-pill: linear-gradient(180deg, rgb(255 255 255 / 24%), rgb(255 255 255 / 10%));
  --ink-pill-text: var(--ink);
  --track: rgb(255 255 255 / 8%);
  --map-land: #15181d;
  --map-water: #0f2238;
  --map-road: #2a3038;
  --map-minor: #1d2127;
  --map-park: #132a1f;
  color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 400 17px/1.55 var(--text);
  color: var(--ink);
  background: transparent; /* the glow (body::before) sits behind it */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: color var(--base) var(--ease);
}
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; background: var(--glow), var(--bg); transition: background var(--base) var(--ease); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--signal-ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 500; }
p { text-wrap: pretty; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 10px; background: var(--ink); color: var(--bg); }
.skip:focus { left: 8px; }
.label { font: 500 13px var(--mono); color: var(--muted); }
.lede { font-size: 19px; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }

/* ---------- Tempered glass ---------- */

.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass-fill);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
  border-radius: var(--r-card);
  box-shadow: var(--glass-shadow);
}
/* Rim light: brighter top-left, like light on a visor. */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: var(--glass-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
/* Sheen across the top, and the glint that follows the pointer (--mx, --my set by site.js). */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(420px circle at var(--mx, 30%) var(--my, -20%), var(--glint), transparent 60%),
    var(--glass-sheen) top / 100% 40% no-repeat;
  pointer-events: none;
  transition: opacity var(--base) var(--ease);
}
.chip {
  background: var(--chip-fill);
  box-shadow: var(--chip-shadow);
  backdrop-filter: blur(14px) saturate(200%);
  -webkit-backdrop-filter: blur(14px) saturate(200%);
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .chip { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--raised); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--fast) var(--ease), box-shadow var(--base) var(--ease), background var(--base) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--go {
  background: linear-gradient(180deg, rgb(61 214 140 / 96%), rgb(61 214 140 / 74%));
  color: var(--on-signal);
  box-shadow: inset 0 1.5px 0 rgb(255 255 255 / 70%), inset 0 -1px 0 rgb(0 0 0 / 8%), 0 12px 26px -12px rgb(61 214 140 / 95%);
}
.btn--go:hover { box-shadow: inset 0 1.5px 0 rgb(255 255 255 / 70%), inset 0 -1px 0 rgb(0 0 0 / 8%), 0 16px 34px -12px rgb(61 214 140 / 100%); }
.btn--glass { color: var(--ink); }
.btn--big { min-height: 60px; padding: 0 30px; font-size: 18px; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--quiet { background: transparent; color: var(--muted); }
.btn--quiet:hover { color: var(--ink); }

/* ---------- Navigation ---------- */

.nav { position: fixed; inset: 16px 0 auto; z-index: 50; pointer-events: none; }
.nav__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(1120px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
}
/* The legal pages keep a plain header: same pill. */
.nav > .wrap.nav__inner { width: min(1120px, 100% - 2 * var(--gutter)); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__symbol { width: 28px; height: 28px; }
.brand__word {
  display: block;
  height: 14px;
  aspect-ratio: 742.57 / 104;
  background: var(--ink);
  -webkit-mask: url("img/wordmark.svg") no-repeat center / contain;
  mask: url("img/wordmark.svg") no-repeat center / contain;
}
.brand__word--footer { height: 18px; }
.nav__links { display: flex; gap: 4px; margin-left: 12px; flex: 1; }
.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  transition: color var(--fast) var(--ease), background var(--base) var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-current { color: var(--ink-pill-text); background: var(--ink-pill); }
.nav__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font: 500 13px var(--mono);
}
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .moon, :root[data-theme="dark"] .theme-btn .sun { display: block; }
.theme-btn .sun, :root[data-theme="dark"] .theme-btn .moon { display: none; }

/* ---------- Sections ---------- */

section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(40px, 6vw, 64px); max-width: 760px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.05; }

/* ---------- Hero ---------- */

.hero { min-height: 100svh; display: grid; align-items: center; padding: 140px 0 80px; overflow: clip; }
.hero__grid > *, .signals__grid > *, .tour__grid > *, .privacy__panel > *, .beta__panel > *, .faq__grid > * { min-width: 0; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__text { display: grid; gap: 24px; justify-items: start; }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px; font-size: 14px; color: var(--muted); }
.hero h1 { font-size: clamp(36px, 7vw, 92px); overflow-wrap: anywhere; hyphens: manual; line-height: 0.98; letter-spacing: -0.035em; }
.hero h1 .accent { color: var(--signal-ink); }
.hero .lede { font-size: clamp(18px, 1.6vw, 21px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 24px; font: 500 13px var(--mono); color: var(--muted); }
.hero__facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }

.live-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--signal); opacity: 0; animation: wave 1.6s var(--ease) infinite; }

.hero__stage { position: relative; display: grid; place-items: center; perspective: 1400px; min-height: 640px; }
.hero__floater { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; font-size: 14px; }
.hero__floater b { display: block; font-weight: 500; font-size: 15px; }
.hero__floater small { color: var(--muted); font-size: 13px; }
.hero__floater--a { top: 38%; left: -10%; }
.hero__floater--b { bottom: 16%; right: -4%; }
.floater__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--signal); color: var(--on-signal); }
.floater__icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.floater__icon--blue { background: var(--position); color: #fff; }

/* ---------- The phone: tempered glass around a real screen ---------- */

.phone {
  position: relative;
  width: min(330px, 78vw);
  aspect-ratio: 600 / 1305;
  padding: 10px;
  border-radius: 54px;
  background: linear-gradient(150deg, #3a4048, #0d0f12 40%, #1c2025 70%, #50565f);
  box-shadow:
    inset 0 0 0 1.5px rgb(255 255 255 / 22%), inset 0 0 0 5px #0d0f12,
    0 60px 120px -40px rgb(13 15 18 / 55%), 0 24px 48px -24px rgb(13 15 18 / 45%);
  transform-style: preserve-3d;
  transform: rotateY(var(--ry, -14deg)) rotateX(var(--rx, 6deg)) rotateZ(1deg);
  transition: transform 0.9s var(--ease);
}
/* The glass over the screen: a long diagonal reflection, like tempered glass catching the sky. */
.phone::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 44px;
  background:
    linear-gradient(115deg, rgb(255 255 255 / 0%) 30%, rgb(255 255 255 / 16%) 42%, rgb(255 255 255 / 0%) 52%),
    linear-gradient(200deg, rgb(255 255 255 / 10%), transparent 30%);
  pointer-events: none;
  z-index: 4;
}
.phone__screen { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 44px; background: var(--map-land); }
.phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone__notch { position: absolute; z-index: 5; top: 18px; left: 50%; width: 92px; height: 26px; translate: -50% 0; border-radius: 20px; background: #0d0f12; }

/* Screenshots exist in both themes: only the current one shows. */
.shot--dark, :root[data-theme="dark"] .shot--light { display: none; }
:root[data-theme="dark"] .shot--dark { display: block; }

/* ---------- The live ride (hero screen, drawn in code) ---------- */

.ride { position: absolute; inset: 0; }
.ride svg { width: 100%; height: 100%; }
.ride .land { fill: var(--map-land); }
.ride .water { fill: var(--map-water); }
.ride .park { fill: var(--map-park); }
.ride .road { fill: none; stroke: var(--map-road); stroke-linecap: round; stroke-linejoin: round; }
.ride .minor { fill: none; stroke: var(--map-minor); stroke-linecap: round; }
.ride .route { fill: none; stroke: var(--violet); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.ride .route-casing { fill: none; stroke: rgb(13 15 18 / 30%); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.rider { position: absolute; left: 0; top: 0; width: 42px; height: 42px; margin: -21px 0 0 -21px; z-index: 2; will-change: transform; }
.rider__helmet { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; background: var(--raised); box-shadow: 0 0 0 3px var(--ring, var(--raised)), 0 6px 14px rgb(0 0 0 / 30%); }
.rider__helmet i {
  width: 26px;
  height: 26px;
  background: var(--helmet, #3dd68c);
  -webkit-mask: url("img/helmet.svg") no-repeat center / contain;
  mask: url("img/helmet.svg") no-repeat center / contain;
}
.rider.is-group { --ring: var(--signal); }
.rider__name { position: absolute; top: 46px; left: 50%; translate: -50% 0; padding: 2px 8px; border-radius: 999px; font: 500 11px var(--text); white-space: nowrap; background: var(--raised); color: var(--ink); box-shadow: 0 2px 6px rgb(0 0 0 / 18%); }
/* The signature: the logo's waves leave whoever is talking. */
.rider.is-talking .rider__helmet::before,
.rider.is-talking .rider__helmet::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2.5px solid var(--signal); animation: wave 1.4s var(--ease) infinite; }
.rider.is-talking .rider__helmet::after { animation-delay: 0.7s; }
.ride__top { position: absolute; top: 56px; left: 12px; right: 12px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; transform: translateY(-140%); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.4s var(--ease); }
.ride__top.is-shown { transform: none; opacity: 1; }
.ride__top .floater__icon { width: 34px; height: 34px; border-radius: 10px; }
.ride__top small { display: block; color: var(--muted); font-size: 11px; }
.ride__top b { display: block; font-weight: 500; font-size: 15px; }
.ride__speed { position: absolute; left: 12px; bottom: 112px; z-index: 3; width: 74px; padding: 10px 0 8px; border-radius: 16px; text-align: center; }
.ride__speed b { display: block; font: 700 28px/1 var(--display); font-variant-numeric: tabular-nums; }
.ride__speed small { font: 500 10px var(--mono); color: var(--muted); }
.ride__bar { position: absolute; left: 12px; right: 12px; bottom: 44px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 18px; }
.ride__bar small { display: block; font: 500 10px var(--mono); color: var(--muted); }
.ride__bar b { display: block; font-weight: 500; font-size: 14px; }
.ride__mic { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--signal); color: var(--on-signal); }
.ride__mic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.eq i { width: 3px; border-radius: 2px; background: var(--signal-ink); animation: eq 0.9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -0.3s; }
.eq i:nth-child(3) { animation-delay: -0.6s; }
.eq i:nth-child(4) { animation-delay: -0.15s; }

@keyframes wave { 0% { transform: scale(1); opacity: 0.85; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes eq { from { height: 4px; } to { height: 16px; } }

/* ---------- What Komya does, in a few words, under the hero ---------- */

.strip { padding: 0 0 40px; }
.strip__track { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.strip__item { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; }
.strip__item svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Signals ---------- */

.signals__grid { display: grid; grid-template-columns: 1fr 0.8fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.signal-pad { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 32px; }
.signal {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-card);
  font-size: 19px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: transform var(--fast) var(--ease);
}
.signal:active { transform: scale(0.97); }
.signal svg { flex: none; width: 26px; height: 26px; stroke: var(--signal-ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.signal.is-sent { outline: 2px solid var(--signal); outline-offset: 2px; }
.signals__phones { position: relative; display: grid; place-items: center; min-height: 560px; }
.signals__phones .phone { --ry: 10deg; --rx: 4deg; width: min(290px, 72vw); }
.signals__phones .phone.is-buzz { animation: buzz 0.42s linear; }
@keyframes buzz { 0%, 100% { translate: 0 0; } 20% { translate: -3px 0; } 40% { translate: 3px 0; } 60% { translate: -2px 0; } 80% { translate: 2px 0; } }

/* ---------- Features: the phone that follows the story ---------- */

.tour__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
.tour__sticky { position: sticky; top: 112px; height: calc(100vh - 140px); display: grid; place-items: center; }
.tour__sticky .phone { --ry: -8deg; --rx: 3deg; width: min(320px, 70vw); }
.tour__screens img { opacity: 0; transform: scale(1.04); transition: opacity 0.6s var(--ease), transform 0.9s var(--ease); }
.tour__screens img.is-active { opacity: 1; transform: none; }
.tour__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.tour__step { padding: 28px 28px 30px; border-radius: var(--r-card); opacity: 0.55; transition: opacity var(--base) var(--ease), transform var(--base) var(--ease); }
.tour__step.is-active { opacity: 1; }
.tour__step .tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; font: 500 12px var(--mono); color: var(--signal-ink); background: var(--signal-soft); }
.tour__step .tag.is-new { color: var(--position); background: color-mix(in srgb, var(--position) 14%, transparent); }
.tour__step h3 { font: 700 clamp(22px, 2.4vw, 28px)/1.15 var(--display); letter-spacing: -0.01em; margin-bottom: 12px; }
.tour__step p { color: var(--muted); }
.tour__step .shot, :root[data-theme="dark"] .tour__step .shot { display: none; } /* small screens only, below */

/* ---------- Built for gloves ---------- */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { padding: 26px; display: grid; gap: 10px; align-content: start; }
.card h3 { font: 700 19px/1.2 var(--display); }
.card p { color: var(--muted); font-size: 16px; }
.card--3 { grid-column: span 3; }
.card--2 { grid-column: span 2; }
.card--4 { grid-column: span 4; }
.demo { position: relative; height: 120px; margin-bottom: 10px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; }
.demo--swipe .dot { position: absolute; bottom: 22px; left: 18%; width: 34px; height: 34px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 8px rgb(61 214 140 / 20%); animation: swipe 2.8s var(--ease) infinite; }
.demo--swipe .lane { position: absolute; bottom: 38px; left: 12%; right: 12%; height: 2px; background: var(--track); }
.demo--swipe span { position: absolute; top: 22px; font: 500 13px var(--mono); color: var(--muted); }
.demo--swipe span:first-of-type { left: 14%; }
.demo--swipe span:last-of-type { right: 14%; }
@keyframes swipe { 0%, 15% { left: 18%; } 55%, 70% { left: calc(82% - 34px); } 100% { left: 18%; } }
.demo--target b { position: relative; font: 700 44px/1 var(--display); }
.demo--target b small { font: 500 14px var(--mono); color: var(--muted); margin-left: 6px; }
.demo--target::before { content: ""; position: absolute; width: 96px; height: 96px; border-radius: 26px; border: 2px dashed var(--signal-ink); opacity: 0.6; }
.demo--keys { display: flex; gap: 10px; }
.demo--keys kbd { min-width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; font: 500 14px var(--mono); }
.demo--keys kbd svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo--quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 16px; }
.demo--quick span { padding: 8px 14px; border-radius: 999px; font-size: 14px; }
.demo--glance b { font: 700 64px/1 var(--display); font-variant-numeric: tabular-nums; }
.demo--glance b small { font: 500 14px var(--mono); color: var(--muted); }

/* ---------- Privacy ---------- */

.privacy__panel { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: var(--r-panel); }
.privacy__panel h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; margin-top: 12px; }
.privacy__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.privacy__list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.privacy__list .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.privacy__list .ico svg { width: 20px; height: 20px; stroke: var(--signal-ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.privacy__list b { display: block; font-weight: 500; }
.privacy__list span { color: var(--muted); font-size: 16px; }
.privacy__shot { display: grid; place-items: center; }
.privacy__shot .phone { --ry: 10deg; --rx: 2deg; width: min(270px, 70vw); }

/* ---------- Three steps, along a road ---------- */

.steps__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps__road { position: absolute; top: 46px; left: 8%; right: 8%; height: 4px; border-radius: 4px; background: var(--track); overflow: hidden; }
.steps__road span { display: block; height: 100%; width: var(--progress, 0%); background: var(--signal); transition: width 1.2s var(--ease); }
.steps__list li { position: relative; padding: 26px; display: grid; gap: 10px; }
.steps__list .steps__road { position: absolute; padding: 0; display: block; z-index: -1; }
.steps__n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 18px var(--display); background: var(--signal); color: var(--on-signal); }
.steps__list h3 { font: 700 20px/1.2 var(--display); }
.steps__list p { color: var(--muted); font-size: 16px; }

/* ---------- Beta ---------- */

.beta__panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; padding: clamp(32px, 6vw, 72px); border-radius: var(--r-panel); }
.beta__panel h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1; margin: 12px 0 18px; }
.beta__panel .kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 14px var(--mono); color: var(--signal-ink); }
.beta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.beta__needs { list-style: none; margin: 0; padding: 22px; border-radius: var(--r-card); display: grid; gap: 14px; }
.beta__needs li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.beta__needs svg { flex: none; width: 20px; height: 20px; stroke: var(--signal-ink); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- FAQ ---------- */

.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq__grid .section-head { margin: 0; position: sticky; top: 120px; }
.faq__list { display: grid; gap: 12px; }
.faq__list details { border-radius: var(--r-card); padding: 0 24px; }
.faq__list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; cursor: pointer; list-style: none; font-weight: 500; font-size: 18px; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; font: 500 22px var(--mono); color: var(--muted); transition: transform var(--base) var(--ease); }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0 0 22px; color: var(--muted); }

/* ---------- Footer ---------- */

.footer { padding: 48px 0 56px; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; align-items: center; padding: 28px 32px; border-radius: var(--r-card); }
.footer__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color var(--fast) var(--ease); }
.footer__links a:hover { color: var(--ink); }
.footer__small { grid-column: 1 / -1; margin: 0; font: 500 12px/1.6 var(--mono); color: var(--faint); }

/* ---------- Legal pages and 404 ---------- */

.legal { padding: 140px 0 72px; }
.legal .wrap { max-width: 820px; }
.legal section { padding: 0; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 8px; }
.legal h2 { font-size: 20px; letter-spacing: -0.01em; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--signal-ink); }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal__date { font: 500 13px var(--mono); color: var(--faint) !important; }
.legal #en { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); }
.lang-switch { margin-bottom: 32px; font: 500 14px var(--mono); color: var(--muted); }
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter); }
.lost .glass { padding: 48px; display: grid; gap: 16px; justify-items: center; max-width: 520px; }
.lost h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; }
.nav__inner > .btn:last-child { margin-left: auto; }

/* ---------- Reveal on scroll (site.js adds .is-in; without the script everything shows) ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--enter) var(--ease), transform var(--enter) var(--ease); transition-delay: var(--delay, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Small screens ---------- */

@media (max-width: 980px) {
  .hero__grid, .signals__grid, .privacy__panel, .beta__panel, .faq__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero__stage { min-height: 560px; }
  .hero__floater--a { left: 0; }
  .hero__floater--b { right: 0; }
  .tour__grid { grid-template-columns: 1fr; }
  .tour__sticky { display: none; }
  .tour__step { opacity: 1; }
  .tour__step .shot { display: block; width: min(260px, 70%); height: auto; margin: 22px auto 0; border-radius: 28px; box-shadow: 0 24px 48px -24px rgb(13 15 18 / 50%); }
  :root[data-theme="dark"] .tour__step .shot.shot--light, .tour__step .shot.shot--dark { display: none; }
  :root[data-theme="dark"] .tour__step .shot.shot--dark { display: block; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card--3, .card--2, .card--4 { grid-column: span 1; }
  .faq__grid .section-head { position: static; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__inner { padding-left: 14px; }
  .bento { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr; }
  .steps__road { display: none; }
  .signal-pad { grid-template-columns: 1fr 1fr; }
  .signal { min-height: 72px; padding: 0 16px; font-size: 16px; gap: 10px; }
  .hero__floater { display: none; }
  .footer__inner { grid-template-columns: 1fr; }
  .brand__word { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
