/*
 * هم‌نشست — landing page
 *
 * Tokens mirror the app theme (mobile/lib/core/theme): iris for the brand,
 * apricot for hands and highlights, mint for the speaking signal, warm paper
 * neutrals by day and "night" neutrals in the dark. Spacing sits on the app's
 * 4-point grid and radii match Radii.sm…xl, so the page and the app read as
 * one product. RTL throughout: logical properties only, no letter-spacing.
 */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

/* ───────────── Tokens ───────────── */

:root {
  color-scheme: light;

  --bg: #f8f7f4;
  --surface: #ffffff;
  --surface-low: #f2f1ec;
  --surface-mid: #eceae4;
  --surface-high: #e5e3dc;
  --ink: #1b1a22;
  --ink-soft: #5e5b6c;
  --line: #dddad2;
  --line-soft: #eae7e0;

  --primary: #5b4fe9;
  --primary-deep: #3e33c4;
  --primary-soft: #eceafe;
  --on-primary: #ffffff;
  --on-primary-soft: #20197a;
  --brand-solid: #5b4fe9;

  --apricot: #f59e54;
  --apricot-soft: #ffeedd;
  --on-apricot-soft: #6a3300;
  --mint: #12a594;
  --mint-soft: #d8f6f0;
  --on-mint-soft: #00473f;
  --speaking-glow: rgba(18, 165, 148, 0.33);
  --live: #ef4461;
  --verified: #2f80ed;

  --role-host: #b07800;
  --role-cohost: #7c5cfa;
  --role-mod: #1f7ae0;
  --role-speaker: #5f6b7e;

  --shadow: 0 1px 2px rgba(32, 26, 77, 0.05), 0 8px 24px rgba(32, 26, 77, 0.07);
  --shadow-lg: 0 2px 6px rgba(32, 26, 77, 0.06), 0 24px 60px rgba(32, 26, 77, 0.14);
  --glass: rgba(248, 247, 244, 0.78);
  --phone-frame: #1b1a22;
  --wave: #0dc3ae;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --page: 20px;
  --max: 1180px;
  --ease: cubic-bezier(0.215, 0.61, 0.355, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111018;
    --surface: #1a1922;
    --surface-low: #16151d;
    --surface-mid: #211f2a;
    --surface-high: #2a2834;
    --ink: #edecf3;
    --ink-soft: #a4a2b2;
    --line: #363442;
    --line-soft: #2a2934;
    --primary: #9a93ff;
    --primary-deep: #b9b3ff;
    --primary-soft: #2e2890;
    --on-primary: #15105a;
    --on-primary-soft: #e4e1ff;
    --apricot: #ffb475;
    --apricot-soft: #5a3208;
    --on-apricot-soft: #ffe2ca;
    --mint: #3dd9c5;
    --mint-soft: #0b4a42;
    --on-mint-soft: #c9f7ee;
    --speaking-glow: rgba(61, 217, 197, 0.4);
    --live: #ff6680;
    --verified: #5b9dff;
    --role-host: #f5bd45;
    --role-cohost: #b9a6ff;
    --role-mod: #6aa8ff;
    --role-speaker: #a9b3c4;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.5);
    --glass: rgba(17, 16, 24, 0.78);
    --phone-frame: #000000;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111018;
  --surface: #1a1922;
  --surface-low: #16151d;
  --surface-mid: #211f2a;
  --surface-high: #2a2834;
  --ink: #edecf3;
  --ink-soft: #a4a2b2;
  --line: #363442;
  --line-soft: #2a2934;
  --primary: #9a93ff;
  --primary-deep: #b9b3ff;
  --primary-soft: #2e2890;
  --on-primary: #15105a;
  --on-primary-soft: #e4e1ff;
  --apricot: #ffb475;
  --apricot-soft: #5a3208;
  --on-apricot-soft: #ffe2ca;
  --mint: #3dd9c5;
  --mint-soft: #0b4a42;
  --on-mint-soft: #c9f7ee;
  --speaking-glow: rgba(61, 217, 197, 0.4);
  --live: #ff6680;
  --verified: #5b9dff;
  --role-host: #f5bd45;
  --role-cohost: #b9a6ff;
  --role-mod: #6aa8ff;
  --role-speaker: #a9b3c4;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.5);
  --glass: rgba(17, 16, 24, 0.78);
  --phone-frame: #000000;
}

/* ───────────── Base ───────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  font-synthesis: none;
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.6;
  font-weight: 800;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  inset-block-start: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}
.skip:focus {
  inset-block-start: 12px;
}

.container {
  inline-size: 100%;
  max-inline-size: var(--max);
  margin-inline: auto;
  padding-inline: var(--page);
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

/* ───────────── Buttons ───────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-block-size: 52px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
  transition: transform 150ms var(--ease), background-color 150ms var(--ease),
    box-shadow 250ms var(--ease), border-color 150ms var(--ease);
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.98);
}
.btn svg {
  flex: none;
  inline-size: 22px;
  block-size: 22px;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 32%, transparent);
}
.btn-primary:hover {
  background: var(--primary-deep);
}
:root[data-theme="dark"] .btn-primary:hover {
  background: #aea8ff;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  min-block-size: 44px;
  padding: 8px 18px;
  font-size: 15px;
}

/* Official store badges retain their original artwork and aspect ratio. */
.store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 64px;
  border-radius: 10px;
  transition: transform 150ms var(--ease);
}
.store:hover {
  transform: translateY(-2px);
}
.store-badge {
  inline-size: 202px;
  max-inline-size: 100%;
  block-size: auto;
  flex: none;
}

/* ───────────── Header ───────────── */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: var(--glass);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-block-end: 1px solid transparent;
  transition: border-color 250ms var(--ease);
}
.site-header.scrolled {
  border-block-end-color: var(--line-soft);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  block-size: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
}
.brand-mark {
  inline-size: 40px;
  block-size: 40px;
  padding: 6px;
  border-radius: 12px;
  background: #ffffff;
  color: #0a2b58;
  box-shadow: 0 0 0 1px rgba(10, 43, 88, 0.08), 0 4px 10px rgba(32, 26, 77, 0.08);
}
.brand-mark svg {
  inline-size: 100%;
  block-size: 100%;
}
.nav {
  display: flex;
  gap: 4px;
  margin-inline-start: 16px;
}
.nav a {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
  transition: color 150ms, background-color 150ms;
}
.nav a:hover {
  color: var(--ink);
  background: var(--surface-low);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}
.icon-btn {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 150ms;
}
.icon-btn:hover {
  border-color: var(--primary);
}
.icon-btn svg {
  inline-size: 20px;
  block-size: 20px;
}
.icon-btn .i-sun {
  display: none;
}
:root[data-theme="dark"] .icon-btn .i-sun {
  display: block;
}
:root[data-theme="dark"] .icon-btn .i-moon {
  display: none;
}

/* ───────────── Hero ───────────── */

.hero {
  position: relative;
  padding-block: 56px 88px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset-block-start: -100px;
  inset-inline-end: -140px;
  inline-size: 780px;
  block-size: 780px;
  border-radius: 50%;
  z-index: -1;
  background: var(--primary-soft);
  opacity: 0.55;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23817c99'/%3E%3C/svg%3E");
  background-size: 22px 22px;
  opacity: 0.13;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 16px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}
.live-dot {
  position: relative;
  inline-size: 9px;
  block-size: 9px;
  border-radius: 50%;
  background: var(--live);
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--live);
  opacity: 0;
  animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.hero h1 {
  margin-block: 24px 20px;
  font-size: clamp(36px, 4.2vw, 54px);
  line-height: 1.55;
}
.hero-title-accent {
  display: block;
  color: var(--primary);
}
.lead {
  max-inline-size: 31em;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.95;
}
.hero-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 32px;
}
.hero-alt {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-block-start: 18px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  padding-block: 6px;
}
.text-link svg {
  inline-size: 18px;
  block-size: 18px;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-block-start: 26px;
  font-size: 14px;
  color: var(--ink-soft);
}
.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-note svg {
  inline-size: 16px;
  block-size: 16px;
  color: var(--mint);
}

/* ───────────── Phone mock-up of a live نشست ───────────── */

.stage-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-block-size: 640px;
}
.phone {
  position: relative;
  inline-size: 312px;
  block-size: 640px;
  padding: 12px;
  border-radius: 48px;
  background: var(--phone-frame);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  transform: rotate(-2deg);
}
.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  inline-size: 100%;
  block-size: 100%;
  overflow: hidden;
  border-radius: 38px;
  background: var(--bg);
  font-size: 12px;
  line-height: 1.6;
}
.notch {
  position: absolute;
  inset-block-start: 10px;
  inset-inline: 0;
  margin-inline: auto;
  inline-size: 96px;
  block-size: 26px;
  border-radius: var(--r-pill);
  background: #000;
  z-index: 2;
}
.statusbar {
  display: flex;
  justify-content: space-between;
  padding: 14px 26px 0;
  font-size: 12px;
  font-weight: 700;
  direction: ltr;
}
.room-head {
  padding: 18px 16px 12px;
}
.room-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-soft);
}
.chip-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 9px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--live) 14%, transparent);
  color: var(--live);
  font-weight: 700;
}
.chip-live .live-dot {
  inline-size: 6px;
  block-size: 6px;
}
.chip-live .live-dot::after {
  inset: -3px;
}
.chip-rec {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--live);
}
.chip-rec::before {
  content: "";
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.4s steps(2, jump-none) infinite;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
.room-title {
  margin-block-start: 6px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
}
.room-topic {
  display: inline-block;
  margin-block-start: 6px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  background: var(--primary-soft);
  color: var(--on-primary-soft);
  font-size: 11px;
  font-weight: 700;
}

.stage {
  flex: 1;
  margin-inline: 10px;
  padding: 14px 8px 8px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stage-label {
  padding-inline: 6px;
  margin-block-end: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
}
.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 4px;
}
.people.listeners {
  grid-template-columns: repeat(4, 1fr);
  margin-block-start: 14px;
  padding-block-start: 12px;
  border-block-start: 1px dashed var(--line);
}
.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}
.avatar {
  position: relative;
  display: grid;
  place-items: center;
  inline-size: 58px;
  block-size: 58px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 18px;
  background: var(--av-bg);
  color: var(--av-fg);
}
.listeners .avatar {
  inline-size: 44px;
  block-size: 44px;
  font-size: 14px;
}
.avatar.speaking {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--mint), 0 0 18px 6px var(--speaking-glow);
  animation: talk 1.6s ease-in-out infinite;
}
.avatar.speaking.alt {
  animation-delay: 0.8s;
}
@keyframes talk {
  0%,
  100% {
    box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--mint), 0 0 8px 2px var(--speaking-glow);
  }
  50% {
    box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--mint), 0 0 22px 9px var(--speaking-glow);
  }
}
.badge-mic {
  position: absolute;
  inset-block-end: -2px;
  inset-inline-start: -2px;
  display: grid;
  place-items: center;
  inline-size: 20px;
  block-size: 20px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink-soft);
}
.badge-mic svg {
  inline-size: 12px;
  block-size: 12px;
}
.badge-hand {
  position: absolute;
  inset-block-start: -4px;
  inset-inline-end: -6px;
  display: grid;
  place-items: center;
  inline-size: 22px;
  block-size: 22px;
  border-radius: 50%;
  background: var(--apricot);
  font-size: 12px;
  box-shadow: 0 0 0 2px var(--surface);
  animation: wave-hand 2.4s ease-in-out infinite;
  transform-origin: 50% 90%;
}
@keyframes wave-hand {
  0%,
  60%,
  100% {
    transform: rotate(0);
  }
  70% {
    transform: rotate(-14deg);
  }
  80% {
    transform: rotate(10deg);
  }
  90% {
    transform: rotate(-6deg);
  }
}
.pname {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  font-size: 11.5px;
  line-height: 1.4;
}
.star {
  inline-size: 11px;
  block-size: 11px;
}
.prole {
  font-size: 10px;
  line-height: 1.3;
  font-weight: 500;
}
.r-host {
  color: var(--role-host);
}
.r-cohost {
  color: var(--role-cohost);
}
.r-mod {
  color: var(--role-mod);
}
.r-speaker {
  color: var(--role-speaker);
}
.verified-tick {
  inline-size: 12px;
  block-size: 12px;
  color: var(--verified);
}

.room-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 20px;
}
.leave {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--surface-mid);
  font-weight: 700;
  font-size: 12px;
  color: var(--live);
}
.bar-spacer {
  flex: 1;
}
.round {
  display: grid;
  place-items: center;
  inline-size: 38px;
  block-size: 38px;
  border-radius: 50%;
  background: var(--surface-mid);
  font-size: 16px;
}
.round.hand {
  background: var(--apricot-soft);
}

/* Floating notes around the phone */
.float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  animation: bob 6s ease-in-out infinite;
}
.float .ico {
  display: grid;
  place-items: center;
  inline-size: 34px;
  block-size: 34px;
  border-radius: var(--r-sm);
  flex: none;
  font-size: 17px;
}
.float small {
  display: block;
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 12px;
}
.float-hand {
  inset-block-start: 190px;
  inset-inline-start: -28px;
}
.float-hand .ico {
  background: var(--apricot-soft);
}
.float-rec {
  inset-block-end: 118px;
  inset-inline-end: -8px;
  animation-delay: -3s;
}
.float-rec .ico {
  background: color-mix(in srgb, var(--live) 14%, transparent);
  color: var(--live);
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.reactions {
  position: absolute;
  inset-block-end: 70px;
  inset-inline-end: calc(50% - 110px);
  inline-size: 60px;
  block-size: 260px;
  pointer-events: none;
  z-index: 4;
}
.reactions span {
  position: absolute;
  inset-block-end: 0;
  font-size: 24px;
  opacity: 0;
  animation: rise 4.8s ease-in infinite;
}
.reactions span:nth-child(2) {
  inset-inline-start: 22px;
  animation-delay: 1.6s;
}
.reactions span:nth-child(3) {
  inset-inline-start: 8px;
  animation-delay: 3.2s;
}
@keyframes rise {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0;
  }
  12% {
    opacity: 1;
    transform: translateY(-20px) scale(1);
  }
  100% {
    transform: translateY(-240px) translateX(-14px) scale(1.1);
    opacity: 0;
  }
}

/* ───────────── Topics marquee ───────────── */

.topics {
  padding-block: 28px;
  border-block: 1px solid var(--line-soft);
  background: var(--surface-low);
}
.topics-head {
  max-inline-size: 42em;
  margin-inline: auto;
  padding-inline: var(--page);
  margin-block-end: 16px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
}
.marquee {
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 10px;
  inline-size: max-content;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
/* RTL: content starts on the right, so the track travels right to reveal it. */
@keyframes marquee {
  to {
    transform: translateX(calc(50% + 5px));
  }
}
.topic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.topic i {
  font-style: normal;
  font-size: 17px;
}

/* ───────────── Sections ───────────── */

.section {
  padding-block: 104px;
}
.section-head {
  max-inline-size: 720px;
  margin-block-end: 48px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.kicker {
  display: inline-block;
  margin-block-end: 12px;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}
.section-head h2 {
  font-size: clamp(28px, 3.3vw, 40px);
  line-height: 1.6;
}
.section-head p {
  max-inline-size: 38em;
  margin-block-start: 16px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.95;
}
.section-head.center p {
  margin-inline: auto;
}

/* Bento of in-room features */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card h3 {
  font-size: 21px;
  line-height: 1.65;
  font-weight: 700;
}
.card p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
}
.card .icon {
  display: grid;
  place-items: center;
  inline-size: 48px;
  block-size: 48px;
  margin-block-end: 6px;
  border-radius: var(--r-md);
  background: var(--primary-soft);
  color: var(--on-primary-soft);
}
.card .icon svg {
  inline-size: 24px;
  block-size: 24px;
}
.icon.apricot {
  background: var(--apricot-soft);
  color: var(--on-apricot-soft);
}
.icon.mint {
  background: var(--mint-soft);
  color: var(--on-mint-soft);
}
.icon.live {
  background: color-mix(in srgb, var(--live) 14%, transparent);
  color: var(--live);
}
.span-4 {
  grid-column: span 4;
}
.span-3 {
  grid-column: span 3;
}
.span-2 {
  grid-column: span 2;
}

/* Visual fragments inside cards */
.demo {
  margin-block-start: auto;
  padding-block-start: 18px;
}
.wave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  block-size: 120px;
}
.wave span {
  flex: 1;
  max-inline-size: 8px;
  min-block-size: 8px;
  block-size: var(--h, 40%);
  border-radius: var(--r-pill);
  background: var(--mint);
  animation: eq 1.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.13s);
}
@keyframes eq {
  0%,
  100% {
    block-size: 18%;
  }
  50% {
    block-size: 100%;
  }
}
.sheet {
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--surface-low);
  border: 1px solid var(--line-soft);
}
.sheet-q {
  font-size: 14px;
  font-weight: 700;
}
.sheet-input {
  margin-block: 10px 12px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}
.caret {
  display: inline-block;
  inline-size: 2px;
  block-size: 1.1em;
  margin-inline-start: 2px;
  vertical-align: middle;
  background: var(--primary);
  animation: blink 1s steps(2, jump-none) infinite;
}
.sheet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: var(--r-md);
  background: var(--apricot);
  color: #3a1d00;
  font-weight: 800;
  font-size: 14px;
}
.poll {
  display: grid;
  gap: 8px;
}
.poll-q {
  font-weight: 700;
  font-size: 14px;
  margin-block-end: 2px;
}
.poll-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: var(--surface-low);
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  isolation: isolate;
}
.poll-row::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: var(--p);
  z-index: -1;
  border-radius: inherit;
  background: var(--primary-soft);
  transition: inline-size 1.2s var(--ease);
}
.js .reveal:not(.in) .poll-row::before {
  inline-size: 0;
}
.poll-row b {
  font-weight: 800;
}
.rec-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--live) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--live) 25%, transparent);
  font-size: 14px;
  font-weight: 700;
}
.rec-box .chip-rec {
  font-size: 14px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-low);
  border: 1px solid var(--line-soft);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}
.chip.on {
  background: var(--mint-soft);
  border-color: transparent;
  color: var(--on-mint-soft);
}

/* Outside the room: stories + messages */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-block-start: 16px;
}
.story-bar {
  display: flex;
  gap: 14px;
  overflow: hidden;
}
.story {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}
.story-ring {
  display: grid;
  place-items: center;
  inline-size: 62px;
  block-size: 62px;
  border-radius: 50%;
  padding: 3px;
  background: var(--primary);
}
.avatar.official svg {
  inline-size: 34px;
  block-size: 34px;
}
.story-ring.seen {
  background: var(--line);
}
.story-ring .avatar {
  inline-size: 100%;
  block-size: 100%;
  font-size: 16px;
  box-shadow: 0 0 0 3px var(--surface);
}
.bubbles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bubble {
  max-inline-size: 78%;
  padding: 8px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.7;
}
.bubble.them {
  align-self: flex-start;
  background: var(--surface-low);
  border-end-start-radius: 6px;
}
.bubble.me {
  align-self: flex-end;
  background: var(--primary);
  color: var(--on-primary);
  border-end-end-radius: 6px;
}
.bubble.voice {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mini-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  block-size: 18px;
}
.mini-wave i {
  inline-size: 3px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.8;
}

/* ───────────── Host tools band ───────────── */

.band {
  position: relative;
  border-radius: 40px;
  margin-inline: 12px;
  padding: 88px 0;
  background: #241d65;
  color: #f3f2f7;
  overflow: hidden;
  isolation: isolate;
}
.band::before {
  content: "";
  position: absolute;
  inset-block-start: -180px;
  inset-inline-end: -180px;
  inline-size: 540px;
  block-size: 540px;
  border-radius: 50%;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.band .kicker {
  color: #b9b3ff;
}
.band .section-head p {
  color: #c9c6e6;
}
.host-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.glass {
  padding: 28px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}
.glass h3 {
  font-size: 20px;
  margin-block-end: 18px;
  font-weight: 700;
}
.roles {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.roles li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-block-end: 1px solid rgba(255, 255, 255, 0.08);
}
.roles li:last-child {
  border-block-end: 0;
}
.role-star {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.08);
}
.role-star svg {
  inline-size: 22px;
  block-size: 22px;
}
.roles strong {
  display: block;
  font-size: 17px;
}
.roles p,
.controls p {
  color: #c9c6e6;
  font-size: 15px;
  line-height: 1.8;
}
.band .s-host {
  color: #f5bd45;
}
.band .s-cohost {
  color: #b9a6ff;
}
.band .s-mod {
  color: #6aa8ff;
}
.band .s-speaker {
  color: #a9b3c4;
}
.band .s-listener {
  color: #ffb475;
}
.controls {
  display: grid;
  gap: 12px;
}
.control {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.control strong {
  display: block;
  font-size: 16px;
}
.toggle {
  position: relative;
  inline-size: 46px;
  block-size: 28px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.18);
  flex: none;
}
.toggle::after {
  content: "";
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 3px;
  inline-size: 22px;
  block-size: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 250ms var(--ease);
}
.toggle.on {
  background: #3dd9c5;
}
/* In RTL the knob starts on the right; "on" slides it to the left. */
.toggle.on::after {
  transform: translateX(-18px);
}
.mute-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mute-pair .control {
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: start;
}
.mute-pair .ico {
  display: grid;
  place-items: center;
  inline-size: 38px;
  block-size: 38px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.1);
}
.mute-pair svg {
  inline-size: 20px;
  block-size: 20px;
}

/* ───────────── Steps ───────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}
.step-num {
  display: grid;
  place-items: center;
  inline-size: 52px;
  block-size: 52px;
  margin-block-end: 18px;
  border-radius: 16px;
  background: var(--brand-solid);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-solid) 24%, transparent);
}
.step h3 {
  font-size: 20px;
  margin-block-end: 8px;
  font-weight: 700;
}
.step p {
  color: var(--ink-soft);
  font-size: 16px;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-block-start: 56px;
  inset-inline-end: -20px;
  inline-size: 20px;
  border-block-start: 2px dashed var(--line);
}

/* ───────────── Privacy ───────────── */

.privacy {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.privacy .card {
  padding: 24px;
}
.privacy .card h3 {
  font-size: 18px;
}
.privacy .card p {
  font-size: 15px;
}

/* ───────────── Download ───────────── */

.download {
  background: var(--surface-low);
  border-block: 1px solid var(--line-soft);
}
.dl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.dl {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px 24px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), border-color 250ms;
}
.dl:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.dl.recommended {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}
.dl-badge {
  position: absolute;
  inset-block-start: -13px;
  inset-inline-start: 22px;
  display: none;
  padding: 2px 12px;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 12px;
  font-weight: 800;
}
.dl.recommended .dl-badge {
  display: inline-block;
}
.dl-logo {
  position: absolute;
  inset-block-start: 24px;
  inset-inline-end: 24px;
  display: grid;
  place-items: center;
  inline-size: 36px;
  block-size: 36px;
  border-radius: var(--r-sm);
  background: var(--surface-low);
  color: var(--ink);
}
.dl-logo svg {
  inline-size: 20px;
  block-size: 20px;
}
.dl-logo.android-logo {
  background: var(--mint-soft);
  color: var(--on-mint-soft);
}
.android-logo svg {
  inline-size: 26px;
  block-size: 26px;
}
.dl h3 {
  font-size: 20px;
  font-weight: 700;
}
.dl .for {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}
.dl p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}
.dl .btn,
.dl .store {
  margin-block-start: auto;
  inline-size: 100%;
}
.dl-spec {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

.install {
  margin-block-start: 28px;
  padding: 28px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line-soft);
}
.install-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-block-end: 20px;
}
.install-head h3 {
  font-size: 20px;
}
.tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--r-md);
  background: var(--surface-low);
  border: 1px solid var(--line-soft);
}
.tab {
  min-block-size: 40px;
  padding: 6px 16px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.howto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.howto li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--surface-low);
  font-size: 15px;
  line-height: 1.8;
}
.howto .n {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 30px;
  block-size: 30px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--on-primary-soft);
  font-weight: 800;
  font-size: 14px;
}
.howto b {
  font-weight: 800;
}
.panel[hidden] {
  display: none;
}

/* ───────────── FAQ ───────────── */

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.faq-grid .section-head {
  position: sticky;
  inset-block-start: 110px;
}
.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: border-color 150ms, box-shadow 250ms;
}
.faq details[open] {
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  inline-size: 12px;
  block-size: 12px;
  /* A drawn chevron, so physical sides are intended: it points down. */
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 250ms var(--ease);
}
.faq details[open] summary::after {
  transform: translateY(3px) rotate(-135deg);
}
.faq .answer {
  padding: 0 22px 20px;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ───────────── Final CTA + footer ───────────── */

.cta {
  position: relative;
  padding: 64px 48px;
  border-radius: 36px;
  background: var(--brand-solid);
  color: #fff;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  inset-block-end: -240px;
  inset-inline-start: -160px;
  inline-size: 500px;
  block-size: 500px;
  border-radius: 50%;
  z-index: -1;
  background: rgba(255, 255, 255, 0.06);
}
.cta h2 {
  font-size: clamp(26px, 3.4vw, 38px);
}
.cta p {
  max-inline-size: 34em;
  margin: 12px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-block-start: 30px;
}
.cta .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: #fff;
}
.cta-bars {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  block-size: 90px;
  z-index: -1;
  opacity: 0.18;
}
.cta-bars span {
  inline-size: 10px;
  block-size: var(--h, 40%);
  border-radius: 6px 6px 0 0;
  background: #fff;
  animation: eq 1.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.11s);
}

.site-footer {
  padding-block: 56px 36px;
  border-block-start: 1px solid var(--line-soft);
  margin-block-start: 104px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-about {
  max-inline-size: 360px;
}
.footer-about p {
  margin-block-start: 12px;
  color: var(--ink-soft);
  font-size: 15px;
}
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
}
.footer-col h4 {
  margin-block-end: 10px;
  font-size: 15px;
}
.footer-col ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col a {
  color: var(--ink-soft);
  font-size: 15px;
}
.footer-col a:hover {
  color: var(--primary);
}
.copyright {
  margin-block-start: 40px;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 14px;
}

/* ───────────── Reveal on scroll (only when JS runs) ───────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ───────────── Responsive ───────────── */

@media (max-width: 1080px) {
  .dl-grid,
  .privacy {
    grid-template-columns: repeat(2, 1fr);
  }
  .span-4,
  .span-3,
  .span-2 {
    grid-column: span 3;
  }
  .bento .card.wide {
    grid-column: span 6;
  }
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }
  .hero {
    padding-block: 32px 72px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-copy h1 {
    max-inline-size: 15em;
    margin-inline: auto;
  }
  .hero-copy .lead {
    margin-inline: auto;
  }
  .hero-stores,
  .hero-alt,
  .hero-note {
    justify-content: center;
  }
  .host-grid,
  .faq-grid,
  .duo {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq-grid {
    gap: 8px;
  }
  .faq-grid .section-head {
    position: static;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step:not(:last-child)::after {
    display: none;
  }
  .howto {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --page: 16px;
  }
  body {
    font-size: 16px;
  }
  .section {
    padding-block: 72px;
  }
  .section-head {
    margin-block-end: 32px;
  }
  .header-row {
    block-size: 64px;
    gap: 12px;
  }
  .header-actions .btn {
    padding-inline: 14px;
  }
  .bento,
  .dl-grid,
  .privacy {
    grid-template-columns: minmax(0, 1fr);
  }
  .span-4,
  .span-3,
  .span-2,
  .bento .card.wide {
    grid-column: auto;
  }
  .card {
    padding: 22px;
  }
  .stage-wrap {
    min-block-size: 0;
    padding-block: 12px;
  }
  .phone {
    inline-size: 288px;
    block-size: 600px;
    transform: none;
  }
  .float-hand {
    inset-inline-start: -4px;
    inset-block-start: 150px;
  }
  .float-rec {
    inset-inline-end: -4px;
    inset-block-end: 96px;
  }
  .hero-stores .store {
    flex: 0 1 calc(50% - 6px);
    min-inline-size: 0;
    justify-content: center;
  }
  .hero-stores .store-badge {
    inline-size: 100%;
    max-inline-size: 202px;
  }
  .band {
    margin-inline: 0;
    border-radius: 28px;
    padding-block: 64px;
  }
  .glass {
    padding: 20px;
  }
  .mute-pair {
    grid-template-columns: 1fr;
  }
  .cta {
    padding: 48px 20px;
    border-radius: 28px;
  }
  .cta-actions .store,
  .cta-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .install {
    padding: 20px;
  }
  .tabs {
    inline-size: 100%;
  }
  .tab {
    flex: 1;
    padding-inline: 8px;
  }
  .footer-cols {
    gap: 32px;
  }
}

@media (max-width: 380px) {
  .header-actions .btn span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .marquee-track {
    flex-wrap: wrap;
    justify-content: center;
    inline-size: auto;
  }
  .marquee-track [aria-hidden="true"] {
    display: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .wave span,
  .cta-bars span {
    animation: none;
  }
}
