/* ==========================================================================
   Duet Watch — design tokens
   ========================================================================== */
/* Self-hosted fonts (SIL Open Font License, see /fonts): no requests to third-party font services. */
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 500;
  src: url(/fonts/space-grotesk-latin-500-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 700;
  src: url(/fonts/space-grotesk-latin-700-normal.woff2) format("woff2");
}

:root {
  --bg: #0b0a10;
  --surface: rgb(24 21 33 / 0.72);
  --surface-solid: #18151f;
  --surface-2: rgb(255 255 255 / 0.06);
  --line: rgb(255 255 255 / 0.1);
  --line-strong: rgb(255 255 255 / 0.18);
  --text: #f5f2fa;
  --muted: #a39cb3;
  --accent: #ff4f8b;
  --accent-2: #ff8a5c;
  --accent-grad: linear-gradient(135deg, #ff4f8b 0%, #ff8a5c 100%);
  --ok: #3ddc84;
  --warn: #ffbf47;
  --danger: #ff6b81;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgb(0 0 0 / 0.5);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; flex: none; }
.muted { color: var(--muted); }
.spacer { flex: 1; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px;
  font-weight: 600; letter-spacing: 0.01em;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: transform 0.12s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { border-color: var(--line-strong); background: rgb(255 255 255 / 0.09); }
.btn:active { transform: scale(0.97); }
.btn.primary {
  background: var(--accent-grad); border: 0; color: #fff;
  box-shadow: 0 8px 24px rgb(255 79 139 / 0.35);
}
.btn.primary:hover { box-shadow: 0 10px 30px rgb(255 79 139 / 0.5); filter: brightness(1.05); }
.btn.ghost { background: transparent; }
.btn.wide { width: 100%; height: 50px; font-size: 16px; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-grid; place-items: center; flex: none;
  color: #fff; transition: background 0.15s, transform 0.12s var(--ease), color 0.15s;
}
.icon-btn:hover { background: rgb(255 255 255 / 0.12); }
.icon-btn:active { transform: scale(0.9); }
.icon-btn.big svg { width: 28px; height: 28px; }
.icon-btn.small { width: 32px; height: 32px; }
.icon-btn.small svg { width: 18px; height: 18px; }
/* two-state toggles (mic / camera) */
.toggle .ic-on, .toggle.on .ic-off { display: none; }
.toggle.on .ic-on { display: block; }
.toggle.on { background: rgb(61 220 132 / 0.18); color: var(--ok); }

.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap;
  background: rgb(0 0 0 / 0.35); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.pill svg { width: 16px; height: 16px; }

/* ==========================================================================
   Home
   ========================================================================== */
.home { position: relative; min-height: 100%; overflow: hidden; padding: 0 20px 40px; }
.aurora {
  position: absolute; inset: 0 0 auto; height: 1100px; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { width: 520px; height: 520px; background: #ff4f8b; top: -160px; right: -120px; }
.aurora i:nth-child(2) { width: 460px; height: 460px; background: #6c4cff; bottom: -200px; left: -140px; animation-delay: -6s; opacity: 0.4; }
.aurora i:nth-child(3) { width: 320px; height: 320px; background: #ff8a5c; top: 40%; left: 45%; animation-delay: -12s; opacity: 0.25; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }

.home-nav { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 22px 0; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* "App By SUMIT BAWEZA": eye-catching gradient-border pill with a glow pulse */
.maker {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 8px 6px 18px; border-radius: 999px; color: #fff; text-decoration: none;
  font-family: "Space Grotesk", var(--font);
  background: linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box,
              linear-gradient(120deg, #ff4f8b, #ffbf47, #6c4cff, #ff4f8b) border-box;
  background-size: 100% 100%, 300% 300%;
  border: 2px solid transparent;
  box-shadow: 0 0 0 0 rgb(255 79 139 / 0.55), 0 10px 30px rgb(255 79 139 / 0.25);
  animation: makerBorder 6s linear infinite, makerPulse 2.4s ease-out infinite;
  transition: transform 0.2s var(--ease);
}
.maker:hover { transform: translateY(-2px) scale(1.03); }
.maker:active { transform: scale(0.98); }
.maker-text { display: grid; justify-items: center; text-align: center; line-height: 1.1; }
.maker-text b { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; }
.maker-text small {
  margin-top: 2px; font-size: 10px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.maker-arrow {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-grad); font-size: 15px; font-weight: 700; transition: transform 0.2s var(--ease);
}
.maker:hover .maker-arrow { transform: translateX(4px); }
@keyframes makerBorder { to { background-position: 0 0, 300% 0; } }
@keyframes makerPulse {
  0% { box-shadow: 0 0 0 0 rgb(255 79 139 / 0.55), 0 10px 30px rgb(255 79 139 / 0.25); }
  70% { box-shadow: 0 0 0 14px rgb(255 79 139 / 0), 0 10px 30px rgb(255 79 139 / 0.25); }
  100% { box-shadow: 0 0 0 0 rgb(255 79 139 / 0), 0 10px 30px rgb(255 79 139 / 0.25); }
}
.brand {
  display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none;
  font-family: "Space Grotesk", var(--font); font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -0.045em;
}
.brand img { width: 48px; height: 48px; border-radius: 14px; box-shadow: 0 8px 24px rgb(255 79 139 / 0.35); }
.brand span { white-space: nowrap; }
.brand span {
  background: linear-gradient(180deg, #fff 35%, #ffc2d6); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 2px; /* keep descender-free gradient text from clipping */
}
.brand em {
  font-style: normal; font-weight: 500; letter-spacing: -0.03em;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Phones: logo and "App By" button share one row (these must come after the base .brand rules). */
@media (max-width: 420px) {
  .home-nav { gap: 10px; flex-wrap: nowrap; justify-content: space-between; }
  .brand { font-size: 21px; gap: 7px; }
  .brand img { width: 30px; height: 30px; border-radius: 9px; }
  .maker { gap: 6px; padding: 4px 5px 4px 11px; }
  .maker-text b { font-size: 11px; letter-spacing: 0.02em; white-space: nowrap; }
  .maker-text small { font-size: 8px; letter-spacing: 0.18em; }
  .maker-arrow { width: 22px; height: 22px; font-size: 12px; }
}

.hero {
  position: relative; max-width: 1120px; margin: 4vh auto 0;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: #ffc2d6; font-size: 13px; font-weight: 600;
}
.eyebrow svg { width: 14px; height: 14px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.035em; margin: 18px 0 16px; font-weight: 800; }
.grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0 0 28px; }

.card {
  position: relative; padding: 26px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}
.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: rgb(0 0 0 / 0.3); margin-bottom: 22px; }
.tab { position: relative; z-index: 1; height: 40px; border-radius: 10px; font-weight: 600; color: var(--muted); transition: color 0.2s; }
.tab.active { color: #fff; }
.tab-ink {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px;
  background: rgb(255 255 255 / 0.1); border: 1px solid var(--line); transition: transform 0.3s var(--ease);
}
.tabs.join .tab-ink { transform: translateX(100%); }

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > span, .field-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input {
  height: 50px; padding: 0 16px; border-radius: 12px; outline: none;
  background: rgb(0 0 0 / 0.3); border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgb(255 79 139 / 0.15); }
.field input.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 18%, transparent); }
.field input.shake { animation: shake 0.35s; }
.panel { display: grid; gap: 14px; }
.hint { margin: -4px 0 4px; color: var(--muted); font-size: 14px; }
.code-boxes { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.code-boxes input {
  width: 100%; min-width: 0; height: 56px; text-align: center; text-transform: uppercase;
  font-size: 22px; font-weight: 700; border-radius: 12px; outline: none; caret-color: var(--accent);
  background: rgb(0 0 0 / 0.3); border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.code-boxes input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgb(255 79 139 / 0.15); }
.code-boxes input.filled { border-color: var(--line-strong); }
.code-boxes .dash { width: 12px; height: 2px; background: var(--line-strong); flex: none; }
.code-boxes.shake { animation: shake 0.35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.error { color: var(--danger); min-height: 1.4em; margin: 12px 0 0; font-size: 14px; text-align: center; }

@media (max-width: 860px) {
  /* Single column: headline → Create/Join card → features. `display: contents` lets the
     features list (inside .hero-copy) be placed after the card. */
  .hero { grid-template-columns: 1fr; gap: 0; margin-top: 0; }
  .hero-copy { display: contents; }
  .eyebrow { justify-self: center; }
  .hero h1, .lede { text-align: center; }
  .hero h1 { margin-top: 14px; }
  .lede { margin: 0 auto 24px; }
  .card { order: 1; }
}
@media (max-width: 420px) {
  .card { padding: 20px; }
  .code-boxes { gap: 6px; }
  .code-boxes input { height: 50px; font-size: 20px; }
}

/* ---------- Landing sections ---------- */
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 600; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: #fff; }
.card-legal { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.card-legal a, .modal-legal a, .faq a { color: #ffc2d6; }

.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.trust li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; font-weight: 600;
}
.trust svg { width: 17px; height: 17px; color: var(--accent); }
@media (max-width: 860px) { .trust { order: 2; justify-content: center; margin-top: 22px; } }

.section { position: relative; max-width: 1120px; margin: 0 auto; padding: 110px 0 0; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.kicker {
  display: inline-block; margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section h2 {
  margin: 0 0 16px; font-family: "Space Grotesk", var(--font); font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1; letter-spacing: -0.03em; font-weight: 700;
}
.section-head p, .section-copy p { color: var(--muted); font-size: 17px; margin: 0 0 14px; }
.section-copy p b { color: var(--text); font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; font-weight: 500; }
.ticks li::before {
  content: '✓'; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: var(--accent-grad);
}

/* Two-column rows: visual + copy, alternating sides */
.intro, .row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.row.flip .visual { order: 2; }
.visual {
  position: relative; min-height: 340px; display: grid; place-items: center; padding: 32px; border-radius: 28px;
  background: radial-gradient(120% 90% at 30% 10%, rgb(255 79 139 / 0.16), transparent 60%),
              radial-gradient(90% 80% at 90% 100%, rgb(108 76 255 / 0.18), transparent 60%), var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
}

/* Device mock-ups (pure CSS) */
.mock-stage { position: relative; min-height: 360px; display: grid; place-items: center start; padding: 0 0 18px 4%; }
.mock-laptop { width: min(84%, 500px); }
.mock-screen {
  position: relative; aspect-ratio: 16 / 10; border-radius: 14px 14px 4px 4px; overflow: hidden;
  border: 10px solid #1e1a28; background: #000; box-shadow: var(--shadow);
}
.mock-base { height: 14px; margin: 0 -6%; border-radius: 0 0 14px 14px; background: linear-gradient(#2a2536, #15121c); }
.mock-movie {
  position: absolute; inset: 0; overflow: hidden;
  background: linear-gradient(180deg, #2b1a4f 0%, #ff6f91 55%, #ffb36b 100%);
}
.mock-sun { position: absolute; width: 22%; aspect-ratio: 1; left: 58%; top: 34%; border-radius: 50%; background: #ffe7a8; box-shadow: 0 0 60px #ffcf7a; }
.mock-hills {
  position: absolute; left: -10%; right: -10%; bottom: -30%; height: 75%; border-radius: 50% 50% 0 0;
  background: #1a1030; box-shadow: -140px 30px 0 -20px #26173f, 160px 40px 0 -10px #120b22;
}
.mock-title {
  position: absolute; top: 10px; left: 12px; display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; text-shadow: 0 1px 4px #000;
}
.mock-title svg { width: 14px; height: 14px; color: var(--accent); }
.mock-bubbles { position: absolute; top: 10px; right: 10px; display: grid; gap: 6px; }
.face {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-weight: 800; font-size: 16px;
  border: 2px solid rgb(255 255 255 / 0.8); box-shadow: 0 6px 16px rgb(0 0 0 / 0.4);
}
.face.f1 { background: linear-gradient(135deg, #ff4f8b, #ff8a5c); }
.face.f2 { background: linear-gradient(135deg, #6c4cff, #3dc9ff); }
.face.big { width: 64px; height: 64px; border-radius: 16px; font-size: 22px; }
.mock-bar {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 10px; background: rgb(0 0 0 / 0.55); backdrop-filter: blur(6px);
}
.mock-play { width: 0; height: 0; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.mock-track { flex: 1; height: 4px; border-radius: 4px; background: rgb(255 255 255 / 0.25); overflow: hidden; }
.mock-track i { display: block; height: 100%; width: 62%; background: var(--accent-grad); }
.mock-time { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mock-react { position: absolute; font-size: 22px; animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 4px 8px rgb(0 0 0 / 0.4)); }
.mock-react.r1 { left: 18%; bottom: 26%; }
.mock-react.r2 { left: 32%; bottom: 40%; animation-delay: -1s; }
.mock-react.r3 { left: 46%; bottom: 30%; animation-delay: -2s; }
@keyframes bob { 50% { transform: translateY(-10px) scale(1.08); } }
.mock-phone {
  position: absolute; right: 0; bottom: 0; width: 23%; min-width: 96px; aspect-ratio: 9 / 19; padding: 6px;
  border-radius: 22px; background: #1e1a28; box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.mock-phone-screen { position: relative; height: 100%; border-radius: 16px; overflow: hidden; background: #000; }
.mock-phone-screen .mock-movie { inset: 30% 0 auto; height: 32%; }
.mock-phone-screen .mock-bar { bottom: 38%; left: 6px; right: 6px; padding: 4px 6px; }
.mock-sync {
  position: absolute; left: 6px; right: 6px; bottom: 14%; display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 5px; border-radius: 8px; font-size: 9px; font-weight: 700; color: var(--ok); background: rgb(61 220 132 / 0.12);
}
.mock-sync svg { width: 11px; height: 11px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; padding: 30px 26px 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.step:hover { transform: translateY(-4px); border-color: rgb(255 79 139 / 0.4); }
.step-num {
  position: absolute; top: 18px; right: 22px; font-family: "Space Grotesk", var(--font); font-size: 48px; font-weight: 700; line-height: 1;
  color: rgb(255 255 255 / 0.07);
}
.step-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--accent-grad); box-shadow: 0 10px 26px rgb(255 79 139 / 0.35); margin-bottom: 18px; }
.step-icon svg { width: 26px; height: 26px; color: #fff; }
.step h3 { margin: 0 0 8px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); }
.step p b { color: var(--text); }

/* Highlight visuals */
.flow { display: flex; align-items: center; gap: 10px; width: 100%; }
.node {
  flex: none; display: grid; justify-items: center; gap: 4px; width: 116px; padding: 18px 10px; border-radius: 20px;
  background: rgb(0 0 0 / 0.35); border: 1px solid var(--line); text-align: center;
}
.node svg { width: 36px; height: 36px; color: var(--accent); }
.node b { font-size: 14px; }
.node small { color: var(--muted); font-size: 12px; }
.wire { position: relative; flex: 1; height: 4px; border-radius: 4px; background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.25) 0 8px, transparent 8px 14px); }
.wire em { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 12px; font-weight: 700; color: var(--ok); letter-spacing: 0.08em; text-transform: uppercase; }
.packet { position: absolute; top: -4px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-grad); box-shadow: 0 0 14px var(--accent); animation: travel 2.4s linear infinite; }
.packet.p2 { animation-delay: -0.8s; }
.packet.p3 { animation-delay: -1.6s; }
@keyframes travel { to { left: calc(100% - 12px); } }
.server-off {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 34px; padding: 10px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--muted); background: rgb(0 0 0 / 0.35); border: 1px dashed var(--line-strong);
}
.server-off svg { width: 18px; height: 18px; }

.vault { display: grid; justify-items: center; gap: 22px; }
.vault-shield {
  display: grid; place-items: center; width: 96px; height: 96px; border-radius: 30px; background: var(--accent-grad);
  box-shadow: 0 0 0 12px rgb(255 79 139 / 0.12), 0 0 0 26px rgb(255 79 139 / 0.06), 0 20px 50px rgb(255 79 139 / 0.4);
}
.vault-shield svg { width: 48px; height: 48px; color: #fff; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 340px; }
.chips span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: rgb(0 0 0 / 0.35); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.chips svg { width: 16px; height: 16px; color: var(--accent); }
.chips svg.lk { color: var(--ok); width: 14px; height: 14px; }
.vault-note { margin: 0; font-size: 13px; color: var(--muted); }

.sync-demo { display: grid; gap: 12px; width: min(100%, 380px); }
.sync-screen { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: rgb(0 0 0 / 0.4); border: 1px solid var(--line); }
.sync-screen .who { font-weight: 700; width: 54px; }
.sync-screen b { font-variant-numeric: tabular-nums; font-size: 15px; }
.sync-screen .mock-track { height: 6px; }
.sync-screen .mock-track i { width: 64%; }
.sync-link { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ok); }
.sync-link svg { width: 18px; height: 18px; animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.remote-row { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }
.remote-row span {
  display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 10px; border-radius: 50%;
  background: rgb(255 255 255 / 0.08); border: 1px solid var(--line); font-weight: 700; font-size: 13px;
}
.remote-row span:first-child { background: var(--accent-grad); border: 0; }
.remote-row svg { width: 20px; height: 20px; }

.ladder { width: min(100%, 360px); display: grid; gap: 12px; }
.ladder-head { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.ladder-head svg { color: var(--accent); }
.pill-mini { margin-left: auto; padding: 3px 10px; border-radius: 999px; font-size: 12px; background: var(--accent-grad); }
.rung { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgb(0 0 0 / 0.3); border: 1px solid transparent; font-size: 14px; font-weight: 600; color: var(--muted); }
.rung i { display: block; height: 8px; width: var(--w); border-radius: 8px; background: rgb(255 255 255 / 0.18); }
.rung.on { color: #fff; border-color: rgb(255 79 139 / 0.5); background: rgb(255 79 139 / 0.12); }
.rung.on i { background: var(--accent-grad); }
.ladder-note { margin: 4px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

.bigscreen { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 14px; width: 100%; }
.small-phone { position: relative; display: grid; place-items: center; width: 70px; height: 120px; border-radius: 18px; background: #1e1a28; border: 1px solid var(--line); }
.small-phone svg { width: 40px; height: 40px; color: var(--accent); }
.badge4k { position: absolute; top: -8px; right: -10px; padding: 2px 8px; border-radius: 8px; font-size: 12px; font-weight: 800; background: var(--accent-grad); }
.arrow-flow { font-size: 30px; color: var(--accent); font-weight: 700; }
.big-tv { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; border: 8px solid #1e1a28; overflow: hidden; box-shadow: var(--shadow); }
.tv-label { position: absolute; left: 8px; bottom: 8px; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; background: rgb(0 0 0 / 0.6); }
.formats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.formats span { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; background: rgb(0 0 0 / 0.35); border: 1px solid var(--line); }

.couple { width: min(100%, 420px); display: grid; gap: 14px; }
.couple-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.couple-faces { position: absolute; top: 12px; right: 12px; display: grid; gap: 8px; }
.couple-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.couple-controls span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgb(61 220 132 / 0.12); color: var(--ok); }
.couple-controls span:last-child { background: rgb(255 255 255 / 0.08); color: var(--text); }
.couple-controls svg { width: 16px; height: 16px; }

/* Feature grid */
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid li {
  display: grid; gap: 6px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.grid li:hover { transform: translateY(-3px); border-color: rgb(255 79 139 / 0.35); }
.grid svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: var(--accent); background: rgb(255 79 139 / 0.12); margin-bottom: 6px; }
.grid b { font-size: 16px; }
.grid span { color: var(--muted); font-size: 14px; }

/* Comparison */
.compare-wrap { overflow-x: auto; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 15px 18px; text-align: center; border-bottom: 1px solid var(--line); font-size: 14px; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: 14px; color: var(--muted); font-weight: 700; }
.compare th[scope='row'] { text-align: left; font-weight: 600; }
.compare .us { background: rgb(255 79 139 / 0.09); color: #fff; font-weight: 700; }
.compare thead .us { color: #fff; background: rgb(255 79 139 / 0.18); }
.compare .yes::before { content: '✓ '; color: var(--ok); font-weight: 800; }
.compare .no { color: var(--muted); }
.compare .no::before { content: '✕ '; color: var(--danger); font-weight: 800; }
.compare .mid { color: var(--muted); }
.compare .mid::before { content: '~ '; color: var(--warn); font-weight: 800; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s; }
.faq details[open] { border-color: rgb(255 79 139 / 0.35); }
.faq summary {
  position: relative; list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 600; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px; background: rgb(255 255 255 / 0.08); transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--accent-grad); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* Final call to action */
.cta {
  position: relative; max-width: 1120px; margin: 110px auto 0; padding: 56px 24px; border-radius: 32px; text-align: center; overflow: hidden;
  background: radial-gradient(80% 120% at 20% 0%, rgb(255 79 139 / 0.35), transparent 60%),
              radial-gradient(70% 120% at 100% 100%, rgb(108 76 255 / 0.35), transparent 60%), var(--surface-solid);
  border: 1px solid var(--line);
}
.cta h2 { margin: 0 0 10px; font-family: "Space Grotesk", var(--font); font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.03em; }
.cta p { margin: 0 0 26px; color: var(--muted); font-size: 17px; }
.cta .btn { height: 52px; padding: 0 28px; font-size: 16px; text-decoration: none; }

/* Footer (home + legal pages) */
.site-footer {
  max-width: 1120px; margin: 70px auto 0; padding: 36px 0 10px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px;
}
.footer-brand p { margin: 12px 0 0; color: var(--muted); font-size: 14px; max-width: 360px; }
.brand.small { font-size: 24px; gap: 9px; }
.brand.small img { width: 32px; height: 32px; border-radius: 9px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-links div { display: grid; gap: 8px; align-content: start; }
.footer-links b { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.footer-links a { color: var(--text); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #ffc2d6; }
.footer-copy { grid-column: 1 / -1; margin: 6px 0 0; color: var(--muted); font-size: 13px; }

/* Terms acceptance dialog */
.modal {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px;
  background: rgb(5 4 9 / 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.modal-card {
  position: relative; width: min(100%, 460px); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 30px 28px 24px; border-radius: 26px;
  background: radial-gradient(120% 60% at 50% 0%, rgb(255 79 139 / 0.16), transparent 70%), var(--surface-solid);
  border: 1px solid var(--line-strong); box-shadow: 0 40px 90px rgb(0 0 0 / 0.6);
  animation: rise 0.28s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.modal-icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 18px; background: var(--accent-grad); box-shadow: 0 12px 30px rgb(255 79 139 / 0.4); }
.modal-icon svg { width: 30px; height: 30px; color: #fff; }
.modal-card h2 { margin: 0; text-align: center; font-family: "Space Grotesk", var(--font); font-size: 26px; letter-spacing: -0.02em; }
.modal-sub { margin: 6px 0 20px; text-align: center; color: var(--muted); font-size: 14px; }
.modal-points { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.modal-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.modal-points li svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: var(--ok); background: rgb(61 220 132 / 0.14); }
.modal-points b { color: #fff; }
.modal-legal { margin: 0 0 20px; padding: 12px 14px; border-radius: 12px; font-size: 13px; color: var(--muted); background: rgb(255 255 255 / 0.05); text-align: center; }
.modal-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.modal-actions .btn { height: 50px; }
.modal-actions .btn.primary { font-size: 15px; }
body.modal-open { overflow: hidden; }

/* Guest: "host left the room" card */
.ended-card { text-align: center; width: min(100%, 400px); }
.ended-avatar {
  position: relative; display: grid; place-items: center; width: 76px; height: 76px; margin: 4px auto 18px; border-radius: 50%;
  font-family: "Space Grotesk", var(--font); font-size: 32px; font-weight: 700; color: #fff;
  background: var(--accent-grad); box-shadow: 0 0 0 8px rgb(255 79 139 / 0.12), 0 16px 36px rgb(255 79 139 / 0.35);
}
.ended-avatar i {
  position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-solid); border: 2px solid var(--surface-solid); box-shadow: 0 0 0 1px var(--line-strong);
}
.ended-avatar i svg { width: 16px; height: 16px; color: var(--muted); }
.ended-card .modal-sub { margin: 8px 0 18px; font-size: 15px; line-height: 1.5; }
.ended-tip {
  display: flex; gap: 10px; align-items: flex-start; margin: 0 0 20px; padding: 12px 14px; border-radius: 12px; text-align: left;
  font-size: 13px; color: var(--muted); background: rgb(255 255 255 / 0.05);
}
.ended-tip svg { width: 18px; height: 18px; flex: none; color: var(--accent); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .intro, .row { grid-template-columns: 1fr; gap: 34px; }
  .row.flip .visual { order: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding-top: 84px; }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 30px; }
  .section-head p, .section-copy p { font-size: 16px; }
  .visual { min-height: 0; padding: 24px 16px; border-radius: 22px; }
  .mock-stage { min-height: 0; padding-bottom: 20px; }
  .mock-phone { width: 30%; min-width: 0; border-radius: 16px; padding: 4px; }
  .mock-phone-screen { border-radius: 12px; }
  .mock-sync { font-size: 7px; }
  .face { width: 30px; height: 30px; font-size: 12px; border-radius: 9px; }
  .face.big { width: 46px; height: 46px; font-size: 17px; }
  .node { width: 92px; padding: 14px 6px; }
  .node svg { width: 28px; height: 28px; }
  .server-off { font-size: 12px; text-align: center; }
  .bigscreen { grid-template-columns: auto auto 1fr; gap: 8px; }
  .small-phone { width: 52px; height: 90px; }
  .small-phone svg { width: 28px; height: 28px; }
  .cta { margin-top: 84px; padding: 44px 18px; border-radius: 24px; }
}
@media (max-width: 600px) {
  /* Comparison fits a phone screen instead of scrolling sideways */
  .compare { min-width: 0; table-layout: fixed; }
  .compare th, .compare td { padding: 11px 6px; font-size: 12px; line-height: 1.3; }
  .compare thead th { font-size: 12px; }
  .compare th[scope='row'] { width: 31%; padding-left: 12px; }
  .compare .yes::before, .compare .no::before, .compare .mid::before { display: block; font-size: 14px; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .grid li { grid-template-columns: auto 1fr; column-gap: 14px; padding: 16px; }
  .grid li svg { grid-row: span 2; margin: 0; }
  .trust { justify-content: center; }
  .trust li { font-size: 13px; padding: 7px 12px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .modal-card { padding: 24px 20px 20px; border-radius: 22px; }
  .modal-actions { grid-template-columns: 1fr; }
  .modal-actions .btn.ghost { order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .packet, .mock-react, .sync-link svg { animation: none; }
}

/* ---------- Legal pages ---------- */
.legal-page { position: relative; min-height: 100%; padding: 0 20px 40px; overflow: hidden; }
.legal-page .aurora { height: 700px; }
.legal { position: relative; max-width: 780px; margin: 20px auto 0; padding: 40px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.legal h1 { margin: 0 0 6px; font-family: "Space Grotesk", var(--font); font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.03em; }
.legal .updated { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.legal .summary { margin: 0 0 30px; padding: 18px 20px; border-radius: 16px; background: rgb(255 79 139 / 0.1); border: 1px solid rgb(255 79 139 / 0.3); }
.legal .summary p { margin: 0; }
.legal h2 { margin: 30px 0 10px; font-size: 20px; }
.legal p, .legal li { color: #d9d3e4; }
.legal ul { padding-left: 22px; display: grid; gap: 6px; }
.legal a { color: #ffc2d6; }
.legal-nav { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-nav .btn { height: 40px; text-decoration: none; font-size: 14px; }
.legal-page .site-footer { max-width: 780px; }
@media (max-width: 600px) {
  .legal { padding: 24px 18px; border-radius: 22px; }
  .legal-nav .brand { font-size: 22px; }
  .legal-nav .brand img { width: 30px; height: 30px; }
}

/* ==========================================================================
   Room / player
   ========================================================================== */
.room { height: 100dvh; background: #000; }
.stage { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; user-select: none; -webkit-user-select: none; }
.stage video#video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* Auto-hiding chrome: everything with .chrome fades together */
.chrome { transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.stage:not(.ui-visible) .chrome { opacity: 0; pointer-events: none; }
.stage:not(.ui-visible) .topbar { transform: translateY(-8px); }
.stage:not(.ui-visible) .controls { transform: translateY(8px); }
.stage:not(.ui-visible) { cursor: none; }

.topbar {
  position: absolute; z-index: 6; left: 0; right: 0; top: 0;
  display: flex; align-items: center; gap: 8px;
  padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 40px max(14px, env(safe-area-inset-left));
  background: linear-gradient(rgb(0 0 0 / 0.65), transparent);
}
.topbar { flex-wrap: wrap; row-gap: 10px; }
/* Second row of the top bar: the movie's name, for both people */
.now-playing {
  flex-basis: 100%; min-width: 0; display: flex; align-items: center; gap: 8px;
  font-size: 15px; text-shadow: 0 1px 6px rgb(0 0 0 / 0.6);
}
.now-playing[hidden] { display: none; }
.now-playing svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.np-label {
  flex: none; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.np-title {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 600;
}
.np-edit {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgb(255 255 255 / 0.1); color: #fff; transition: background 0.15s;
}
.np-edit:hover { background: rgb(255 255 255 / 0.2); }
.np-edit svg { width: 15px; height: 15px; }
.np-input {
  flex: 1; min-width: 0; max-width: 420px; height: 34px; padding: 0 12px; border-radius: 10px; outline: none;
  font: 600 15px "Space Grotesk", var(--font); background: rgb(0 0 0 / 0.6); border: 1px solid var(--accent);
  box-shadow: 0 0 0 3px rgb(255 79 139 / 0.2);
}
.now-playing.editing .np-title { display: none; }
.code-pill strong { letter-spacing: 0.16em; font-weight: 700; }
.code-pill:hover { border-color: var(--line-strong); }
.link-pill .bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.link-pill .bars b { width: 3px; border-radius: 2px; background: currentColor; }
.link-pill .bars b:nth-child(1) { height: 5px; } .link-pill .bars b:nth-child(2) { height: 8px; } .link-pill .bars b:nth-child(3) { height: 12px; }
.link-pill.direct { color: var(--ok); }
.link-pill.relay { color: var(--warn); }
.link-pill.bad { color: var(--danger); }
.avatar {
  width: 24px; height: 24px; margin-left: -8px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: rgb(255 255 255 / 0.12); color: var(--muted);
  box-shadow: 0 0 0 2px transparent; transition: box-shadow 0.15s;
}
.partner-pill.online .avatar { background: var(--accent-grad); color: #fff; }
.partner-pill.speaking .avatar { box-shadow: 0 0 0 3px var(--ok); }

/* Gesture layer covers the video; controls sit above it */
.gestures { position: absolute; inset: 0; z-index: 2; touch-action: manipulation; }
.ripple {
  position: absolute; top: 0; bottom: 0; width: 42%; display: grid; place-items: center; overflow: hidden;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.ripple.left { left: 0; background: radial-gradient(closest-side at 18% 50%, rgb(255 255 255 / 0.2), transparent); }
.ripple.right { right: 0; background: radial-gradient(closest-side at 82% 50%, rgb(255 255 255 / 0.2), transparent); }
.ripple.show { opacity: 1; }
.ripple-inner {
  display: grid; justify-items: center; gap: 2px; padding: 12px 16px; border-radius: 18px;
  color: #fff; font-size: 14px; font-weight: 600; background: rgb(0 0 0 / 0.35);
}
.ripple.left .ripple-inner { margin-right: 20%; }
.ripple.right .ripple-inner { margin-left: 20%; }
.ripple .chev { font-size: 26px; letter-spacing: -0.1em; line-height: 1; }
.ripple.show .chev { animation: chev 0.6s ease-out; }
@keyframes chev { from { opacity: 0.2; transform: translateX(var(--dir, 0)); } to { opacity: 1; transform: none; } }
.ripple.left { --dir: 10px; } .ripple.right { --dir: -10px; }

/* Big centre play/pause */
.center-play {
  position: absolute; z-index: 3; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgb(0 0 0 / 0.45); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.3s var(--ease), transform 0.2s var(--ease);
}
.center-play svg { width: 36px; height: 36px; }
.center-play .ic-play { margin-left: 4px; }
.center-play:active { transform: scale(0.92); }
.stage:not(.ui-visible) .center-play, .stage:not(.has-media) .center-play, .stage.busy .center-play { opacity: 0; pointer-events: none; }
.ic-pause, .stage.playing .ic-play { display: none; }
.stage.playing .ic-pause { display: block; }
@media (hover: hover) and (pointer: fine) { .stage.playing .center-play { opacity: 0; pointer-events: none; } }

/* Status overlay */
.overlay {
  position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; padding: 90px 20px 120px;
  background: radial-gradient(ellipse at center, rgb(11 10 16 / 0.7), rgb(11 10 16 / 0.92));
  transition: opacity 0.3s var(--ease), visibility 0s;
}
/* visibility too, after the fade: Chrome keeps painting backdrop-filter children of an opacity:0 parent */
.overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.3s var(--ease), visibility 0s 0.3s; }
.overlay-card {
  display: grid; justify-items: center; gap: 10px; text-align: center; max-width: 420px; padding: 32px 28px;
  border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow);
}
.overlay-title { margin: 6px 0 0; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.overlay-sub { margin: 0; color: var(--muted); font-size: 14px; }
.overlay-sub:empty { display: none; }
.overlay-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.drop-icon svg { width: 48px; height: 48px; color: var(--accent); }
.overlay.dropzone .overlay-card { border: 2px dashed rgb(255 255 255 / 0.2); }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgb(255 255 255 / 0.12); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.drop-hint {
  position: absolute; z-index: 9; inset: 12px; border-radius: 20px; display: grid; place-items: center;
  border: 2px dashed var(--accent); background: rgb(255 79 139 / 0.12); backdrop-filter: blur(6px);
}
.drop-hint div { display: grid; justify-items: center; gap: 10px; font-size: 18px; }
.drop-hint svg { width: 56px; height: 56px; color: var(--accent); }

/* Bottom controls */
.controls {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: 0;
  padding: 48px max(14px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: linear-gradient(transparent, rgb(0 0 0 / 0.8));
}
.control-row { display: flex; align-items: center; gap: 4px; }
.time { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: 6px; }

.timeline { position: relative; height: 22px; display: flex; align-items: center; cursor: pointer; touch-action: none; margin: 0 4px 2px; }
.track { position: relative; width: 100%; height: 4px; border-radius: 4px; background: rgb(255 255 255 / 0.22); transition: height 0.15s var(--ease); }
.timeline:hover .track, .timeline.scrubbing .track { height: 6px; }
.buffered { position: absolute; inset: 0; }
.buffered i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: rgb(255 255 255 / 0.32); }
.progress { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: var(--accent-grad); }
.thumb {
  position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgb(255 79 139 / 0.35); transform: scale(0.8); transition: transform 0.15s var(--ease);
}
.timeline:hover .thumb, .timeline.scrubbing .thumb { transform: scale(1.1); }
.hover-time {
  position: absolute; bottom: 24px; transform: translateX(-50%); padding: 4px 8px; border-radius: 8px;
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: rgb(0 0 0 / 0.75); border: 1px solid var(--line); pointer-events: none;
}

/* Volume panel: separate levels for the movie and the call */
.vol-wrap { position: relative; }
.ic-vol-off, .muted-on .ic-vol { display: none; }
.muted-on .ic-vol-off { display: block; }
.vol-pop {
  position: absolute; bottom: 52px; left: -6px; width: 260px; padding: 8px; display: grid; gap: 4px;
  border-radius: 16px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: pop2 0.18s var(--ease);
}
.vol-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 4px; border-radius: 12px; }
.vol-icon {
  position: relative; flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: rgb(255 79 139 / 0.16); color: var(--accent); transition: background 0.15s, color 0.15s;
}
.vol-icon svg { width: 19px; height: 19px; }
.vol-icon:hover { background: rgb(255 79 139 / 0.26); }
.vol-row.off .vol-icon { background: rgb(255 255 255 / 0.08); color: var(--muted); }
.vol-row.off .vol-icon::after { /* slash over the icon when muted */
  content: ''; position: absolute; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(-45deg);
}
.vol-body { flex: 1; min-width: 0; display: grid; gap: 2px; cursor: pointer; }
.vol-name { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.vol-name b { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.vol-body input { width: 100%; }
.vol-row.off .vol-body input { opacity: 0.45; }
.vol-note { margin: 2px 6px 4px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.no-volume .vol-body input { display: none; }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 22px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: rgb(255 255 255 / 0.3); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgb(255 255 255 / 0.3); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: #fff; }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }

.ic-shrink, .is-fullscreen .ic-expand { display: none; }
.is-fullscreen .ic-shrink { display: block; }

/* Reactions */
.react-wrap { position: relative; }
.react-pop {
  position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 6px;
  border-radius: 999px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: pop 0.18s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, 6px) scale(0.95); } }
.react { width: 42px; height: 42px; border-radius: 50%; font-size: 22px; line-height: 1; transition: transform 0.12s var(--ease), background 0.15s; }
.react:hover { background: rgb(255 255 255 / 0.1); transform: scale(1.18); }
.react:active { transform: scale(0.9); }
.reactions { position: absolute; z-index: 7; inset: 0; pointer-events: none; overflow: hidden; }
.reactions span { position: absolute; bottom: 90px; font-size: 40px; animation: floatUp 2.6s ease-out forwards; filter: drop-shadow(0 4px 10px rgb(0 0 0 / 0.4)); }
@keyframes floatUp {
  0% { transform: translateY(0) scale(0.5); opacity: 0; }
  12% { opacity: 1; transform: translateY(-24px) scale(1.15); }
  100% { transform: translateY(-340px) scale(1); opacity: 0; }
}

/* Quality menu */
.quality-wrap { position: relative; }
#quality-btn { position: relative; }
.quality-badge {
  position: absolute; right: 1px; top: 3px; padding: 0 4px; border-radius: 5px; line-height: 14px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.02em; background: var(--accent); color: #fff;
}
.quality-badge:empty { display: none; }
.quality-pop {
  position: absolute; bottom: 52px; right: -8px; min-width: 170px; padding: 6px; display: grid; gap: 2px;
  border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: pop2 0.18s var(--ease);
}
.q-opt { text-align: left; padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; }
.q-opt:hover { background: rgb(255 255 255 / 0.08); }
.q-opt.active { background: rgb(255 79 139 / 0.18); color: #fff; font-weight: 700; }
.q-opt.active::after { content: '✓'; float: right; color: var(--accent); }

/* Stats sheet */
.stats {
  position: absolute; z-index: 8; top: 70px; right: max(14px, env(safe-area-inset-right)); width: min(320px, calc(100% - 28px));
  padding: 14px 16px; border-radius: var(--radius); background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: pop2 0.2s var(--ease);
}
@keyframes pop2 { from { opacity: 0; transform: translateY(-6px); } }
.stats-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.stats dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; font-variant-numeric: tabular-nums; word-break: break-word; }
.stats-foot { margin: 12px 0 0; font-size: 12px; color: var(--muted); }

/* Face-cam picture-in-picture */
.pip {
  position: absolute; z-index: 6;
  touch-action: none; cursor: grab;
  transition: top 0.25s, bottom 0.25s, left 0.25s, right 0.25s;
}
.pip.dragging { transition: none; cursor: grabbing; }
.pip.corner-tl { top: 72px; left: 14px; }
.pip.corner-tr { top: 72px; right: 14px; }
.pip.corner-bl { bottom: 104px; left: 14px; }
.pip.corner-br { bottom: 104px; right: 14px; }
.pip-tile {
  position: relative; overflow: hidden; background: #111; aspect-ratio: 4 / 3;
  border-radius: 16px; border: 1px solid var(--line-strong); box-shadow: 0 12px 30px rgb(0 0 0 / 0.55);
}
.pip-tile video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.partner-tile { width: clamp(120px, 22vw, 240px); transition: width 0.2s, outline-color 0.15s; outline: 3px solid transparent; outline-offset: -1px; }
.pip.large .partner-tile { width: clamp(180px, 38vw, 440px); }
.pip.speaking .partner-tile { outline-color: var(--ok); }
.self-tile { width: clamp(84px, 14vw, 150px); }
.self-tile video { transform: scaleX(-1); }
.pip.both .self-tile { position: absolute; width: 34%; left: 8px; bottom: 8px; border-radius: 10px; }
.pip-name { position: absolute; right: 8px; bottom: 6px; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 6px; background: rgb(0 0 0 / 0.55); }

/* Toast */
.toast {
  position: fixed; z-index: 20; left: 50%; bottom: 24px;
  transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px;
  font-size: 14px; font-weight: 500; text-align: center;
  background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: toastIn 0.25s var(--ease);
}
.room:not([hidden]) ~ .toast { bottom: max(110px, calc(env(safe-area-inset-bottom) + 100px)); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .pill { height: 32px; padding: 0 11px; font-size: 12px; }
  .code-pill .muted { display: none; }
  .np-label { display: none; }
  .now-playing { font-size: 14px; }
  .link-pill #link-text { display: none; }
  .link-pill { padding: 0 10px; }
  .icon-btn { width: 40px; height: 40px; }
  .center-play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .control-row { gap: 0; }
  .time { font-size: 12px; }
  .pip.corner-tl, .pip.corner-tr { top: 60px; }
  .pip.corner-bl, .pip.corner-br { bottom: 96px; }
}
/* Phones in portrait: one row can't hold every button (it pushed fullscreen off-screen on
   384–412 px phones, more so with a larger system font). Two rows, like mobile video apps:
   play · time · fullscreen on top, the call/extras row below, spread evenly. */
@media (max-width: 520px) {
  .control-row { position: relative; flex-wrap: wrap; justify-content: space-around; row-gap: 2px; }
  .control-row > * { order: 6; }
  .control-row > #play { order: 1; }
  .control-row > .time { order: 2; }
  .control-row > .spacer { order: 3; }
  .control-row > #fullscreen { order: 4; }
  .control-row::before { content: ''; order: 5; flex-basis: 100%; height: 0; } /* line break */
  /* Reactions sit near the left edge now: centre their popover on the bar instead of the button. */
  .react-wrap { position: static; }
  .react-pop { bottom: calc(100% + 6px); }
  .pip.corner-bl, .pip.corner-br { bottom: 140px; }
}
@media (max-width: 380px) {
  #partner-name { display: none; }
  .avatar { margin-left: -4px; }
  .control-row .icon-btn { width: 36px; }
  .control-row .icon-btn svg { width: 20px; height: 20px; }
  .control-row .icon-btn.big svg { width: 26px; height: 26px; }
}
@media (max-width: 360px) {
  .home { padding-left: 14px; padding-right: 14px; }
  .brand { font-size: 19px; gap: 6px; }
  .brand img { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
