/* ============================================================
   Knock — landing site
   Design system + sections + interactive phone demo
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;

  --ink: #1a0f0f;
  --ink-2: rgba(26, 15, 15, 0.64);
  --ink-3: rgba(26, 15, 15, 0.62);
  --line: rgba(26, 15, 15, 0.08);
  --line-2: rgba(26, 15, 15, 0.14);

  --accent: #ff4d6d;
  /* darker accent for white text / small accent text — clears WCAG AA (4.5:1) */
  --accent-deep: #db2b57;
  --accent-2: #ffd60a;
  --accent-3: #3a86ff;
  --good: #10b981;
  --good-text: #047857;

  --bg: #fffbef;
  --bg-2: #fff4d6;
  --surface: #ffffff;
  --plum: #0e0b14;
  --plum-2: #19151f;

  --r-xs: 10px;
  --r-sm: 14px;
  --r: 20px;
  --r-lg: 28px;
  --r-xl: 40px;

  --shadow-sm: 0 2px 10px rgba(26, 15, 15, 0.06);
  --shadow: 0 14px 40px rgba(26, 15, 15, 0.1);
  --shadow-lg: 0 40px 90px rgba(26, 15, 15, 0.18);
  --shadow-accent: 0 14px 30px rgba(255, 77, 109, 0.32);

  --maxw: 1180px;
  --nav-h: 68px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}
p {
  margin: 0;
}
::selection {
  background: var(--accent);
  color: #fff;
}
:focus-visible {
  outline: 3px solid var(--accent-3);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: clamp(64px, 9vw, 132px) 0;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.section-head {
  max-width: 660px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}
.section-head h2 {
  font-size: clamp(32px, 4.6vw, 54px);
  margin: 16px 0 0;
}
.section-head p {
  margin-top: 18px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-2);
}
.center-eyebrow {
  display: flex;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.16s ease, box-shadow 0.22s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn-primary {
  background: var(--accent-deep);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(255, 77, 109, 0.42);
}
.btn-ghost {
  background: rgba(26, 15, 15, 0.05);
  color: var(--ink);
}
.btn-ghost:hover {
  background: rgba(26, 15, 15, 0.09);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(26, 15, 15, 0.28);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn-lg {
  padding: 17px 30px;
  font-size: 17px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 251, 239, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.05em;
  display: inline-flex;
  align-items: center;
}
.brand .dot {
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.18s, background 0.18s;
}
.nav-links a:hover {
  color: var(--ink);
  background: rgba(26, 15, 15, 0.05);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-cta {
  padding: 11px 20px;
  font-size: 15px;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.6);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 96px));
  padding-bottom: clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      120% 80% at 70% -10%,
      #fff6d8 0%,
      #ffe8cc 42%,
      #ffdad2 100%
    );
}
.hero-rings {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 760px;
  height: 760px;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}
.hero-rings span {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 77, 109, 0.28);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.hero-grid > * {
  min-width: 0;
}
.hero-copy {
  max-width: 600px;
}
.hero h1 {
  font-size: clamp(42px, 7vw, 86px);
  margin: 22px 0 0;
}
.hero h1 .grad {
  background: linear-gradient(105deg, var(--accent), #ff7a3d 60%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 500px;
}

/* waitlist form */
.waitlist {
  margin-top: 30px;
  max-width: 470px;
}
.waitlist-row {
  display: flex;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 7px 7px 8px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.waitlist-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.12);
}
.waitlist-row input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  padding: 9px 14px;
  min-width: 0;
}
.waitlist-row input::placeholder {
  color: var(--ink-3);
}
.waitlist-row input:focus {
  outline: none;
}
.waitlist .btn {
  flex-shrink: 0;
}
.waitlist-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 10px;
}
.waitlist.done .waitlist-row {
  border-color: var(--good);
  background: rgba(16, 185, 129, 0.06);
}
.waitlist-success {
  display: none;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--good-text);
  padding: 4px 6px;
}
.waitlist-success svg {
  width: 20px;
  height: 20px;
  stroke: var(--good-text);
}
.waitlist.done .waitlist-row {
  display: none;
}
.waitlist.done .waitlist-success {
  display: flex;
}

/* avatar stack proof */
.proof {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar-stack {
  display: flex;
}
.avatar-stack .av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.9);
  margin-left: -12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-stack .av:first-child {
  margin-left: 0;
}
.proof-text {
  font-size: 14.5px;
  color: var(--ink-2);
}
.proof-text b {
  color: var(--ink);
}

/* hero phone column */
.hero-phone-col {
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-confetti span {
  position: absolute;
  font-size: 26px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12));
  animation: bob 3.4s ease-in-out infinite alternate;
}

/* ---------- Phone frame ---------- */
.phone-shell {
  --p-accent: #ff4d6d;
  --p-accent2: #ffd60a;
  --p-accent3: #3a86ff;
  --p-bg: #fffbef;
  --p-surface: #ffffff;
  --p-surface2: #fff4d6;
  --p-card: #ffffff;
  --p-text: #1a0f0f;
  --p-muted: rgba(26, 15, 15, 0.6);
  --p-faint: rgba(26, 15, 15, 0.35);
  --p-line: rgba(26, 15, 15, 0.08);
  --p-line2: rgba(26, 15, 15, 0.16);
  --p-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  width: 312px;
  flex-shrink: 0;
}
.phone-shell[data-palette="sherbet"] {
  --p-accent: #ff006e;
  --p-accent2: #ffbe0b;
  --p-accent3: #8338ec;
}
.phone-shell[data-palette="citrus"] {
  --p-accent: #ff5722;
  --p-accent2: #10b981;
  --p-accent3: #111111;
}
.phone-shell[data-palette="citrus"]:not([data-mode="dark"]) {
  --p-bg: #fafaf7;
  --p-surface2: #f2f1ec;
}
.phone-shell[data-mode="dark"] {
  --p-bg: #0e0b14;
  --p-surface: #19151f;
  --p-surface2: #241e2c;
  --p-card: #1f1a28;
  --p-text: #ffffff;
  --p-muted: rgba(255, 255, 255, 0.62);
  --p-faint: rgba(255, 255, 255, 0.35);
  --p-line: rgba(255, 255, 255, 0.08);
  --p-line2: rgba(255, 255, 255, 0.18);
  --p-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.phone {
  position: relative;
  width: 312px;
  height: 640px;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2a30, #08080a);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: var(--p-bg);
  color: var(--p-text);
  font-size: 13px;
}
.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 27px;
  background: #000;
  border-radius: 20px;
  z-index: 60;
}
.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 24px 4px;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 40;
}
.statusbar .sb-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}
.statusbar .sb-icons svg {
  height: 11px;
  width: auto;
}
.phone-mode-dark .statusbar,
.phone-screen .statusbar {
  color: var(--p-text);
}
/* the in-room screen is always dark — keep its status bar legible in any palette/mode */
.room-screen .statusbar {
  color: #fff;
}

/* scroll body of a screen */
.screen-body {
  position: absolute;
  inset: 38px 0 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 16px 84px;
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar {
  display: none;
}

/* phone generic bits */
.p-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 14px;
}
.p-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.04em;
}
.p-title .dot {
  color: var(--p-accent);
}
.p-sublabel {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--p-faint);
  margin: 14px 2px 8px;
}
.avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  flex-shrink: 0;
  user-select: none;
}
.online-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--good);
  border: 2px solid var(--p-bg);
}

/* room card */
.room-card {
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: 22px;
  padding: 13px;
  margin-bottom: 11px;
  box-shadow: var(--p-shadow);
  cursor: pointer;
  transition: transform 0.16s ease;
}
.room-card:hover,
.room-card:focus-visible {
  transform: translateY(-2px);
}
.room-card:focus-visible {
  outline: 2.5px solid var(--p-accent);
  outline-offset: 2px;
}
.room-card .rc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}
.room-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.room-meta {
  font-size: 11.5px;
  color: var(--p-muted);
  margin-top: 1px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--p-surface2);
  color: var(--p-text);
}
.chip.live {
  background: var(--p-accent);
  color: #fff;
}
.tiles-row {
  display: flex;
  gap: 7px;
}
.vtile {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 1;
  flex: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.vtile .vt-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.vtile .vt-name {
  position: absolute;
  left: 6px;
  bottom: 6px;
  right: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vtile.speaking {
  box-shadow: 0 0 0 3px var(--p-accent2), 0 8px 20px rgba(0, 0, 0, 0.2);
}
.host-tag {
  background: var(--p-accent2);
  color: #1a0f0f;
  border-radius: 4px;
  padding: 0 4px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* friend bubbles row */
.friend-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}
.friend-rail::-webkit-scrollbar {
  display: none;
}
.friend-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  width: 58px;
}
.friend-bubble .name {
  font-size: 11px;
  font-weight: 600;
  color: var(--p-muted);
  white-space: nowrap;
}
.friend-bubble .av-wrap {
  position: relative;
}
.friend-bubble .mood {
  position: absolute;
  bottom: -2px;
  right: -4px;
  font-size: 14px;
}

/* notif rows */
.notif {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--p-line);
}
.notif:last-child {
  border-bottom: 0;
}
.notif .n-body {
  flex: 1;
  min-width: 0;
}
.notif .n-text {
  font-size: 13px;
  line-height: 1.35;
}
.notif .n-text b {
  font-weight: 700;
}
.notif .n-time {
  font-size: 11px;
  color: var(--p-faint);
  margin-top: 2px;
}
.notif .n-act {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: var(--p-accent);
  padding: 7px 13px;
  border-radius: 999px;
  border: 0;
}
.notif .unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p-accent);
  flex-shrink: 0;
}

/* in-room screen */
.room-screen {
  position: absolute;
  inset: 0;
  background: #0c0a12;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.room-top {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 5;
}
.room-top .rt-title {
  font-weight: 700;
  font-size: 14px;
}
.room-top .rt-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}
.room-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.room-grid {
  position: absolute;
  inset: 92px 14px 116px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.room-grid .vtile {
  border-radius: 20px;
  aspect-ratio: auto;
}
.room-grid .vt-face {
  font-size: 40px;
}
.room-grid .vt-name {
  font-size: 12px;
}
.room-controls {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 5;
}
.ctrl {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background 0.18s, transform 0.12s;
}
.ctrl:hover {
  transform: translateY(-2px);
}
.ctrl svg {
  width: 22px;
  height: 22px;
}
.ctrl.off {
  background: #fff;
  color: #1a0f0f;
}
.ctrl.leave {
  background: #ff3b30;
  box-shadow: 0 8px 20px rgba(255, 59, 48, 0.4);
}
.react-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.react-layer span {
  position: absolute;
  bottom: 120px;
  font-size: 30px;
  animation: reactFloat 2.8s ease-in forwards;
}

/* games grid */
.game-card {
  border-radius: 20px;
  padding: 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: transform 0.16s ease;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}
.game-card:hover {
  transform: translateY(-3px);
}
.game-card .g-emoji {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 30px;
  opacity: 0.92;
}
.game-card .g-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.game-card .g-sub {
  font-size: 11px;
  opacity: 0.86;
  margin-top: 2px;
  line-height: 1.3;
}
.games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

/* profile */
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0 18px;
}
.profile-hero .handle {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  margin-top: 12px;
}
.profile-hero .sub {
  font-size: 12px;
  color: var(--p-muted);
  margin-top: 2px;
}
.setting {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: 16px;
  margin-bottom: 9px;
}
.setting .s-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--p-surface2);
  flex-shrink: 0;
}
.setting .s-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--p-accent);
}
.setting .s-body {
  flex: 1;
  min-width: 0;
}
.setting .s-title {
  font-weight: 600;
  font-size: 13.5px;
}
.setting .s-sub {
  font-size: 11px;
  color: var(--p-muted);
}
.toggle {
  width: 42px;
  height: 25px;
  border-radius: 999px;
  border: 0;
  background: var(--p-line2);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: left 0.2s;
}
.toggle.on {
  background: var(--p-accent);
}
.toggle.on::after {
  left: 19px;
}

/* tab bar */
.tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding-top: 9px;
  z-index: 30;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--p-bg) 44%
  );
}
.tab {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  color: var(--p-muted);
  position: relative;
}
.tab svg {
  width: 23px;
  height: 23px;
}
.tab span {
  font-size: 9.5px;
  font-weight: 600;
}
.tab.active {
  color: var(--p-accent);
}
.tab .tab-badge {
  position: absolute;
  top: 0;
  right: 6px;
  background: var(--p-accent);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  border-radius: 999px;
  min-width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.tab-create {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--p-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-8px);
  box-shadow: 0 10px 22px rgba(255, 77, 109, 0.45);
}
.tab-create svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
  stroke-width: 2.6;
}

/* ---------- Stat strip ---------- */
.stat-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
}
.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 24px;
}
.stat {
  text-align: center;
}
.stat .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--accent), #ff8a3d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .lbl {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-top: 4px;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-accent);
}
.step:nth-child(2)::before {
  background: var(--accent-3);
  box-shadow: 0 14px 30px rgba(58, 134, 255, 0.3);
}
.step:nth-child(3)::before {
  background: var(--good);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.3);
}
.step h3 {
  font-size: 21px;
  margin: 20px 0 8px;
}
.step p {
  color: var(--ink-2);
  font-size: 15px;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}
.feature .f-ic {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature .f-ic svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.9;
}
.feature h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.feature p {
  color: var(--ink-2);
  font-size: 14.5px;
}
.f-ic.c1 { background: rgba(255, 77, 109, 0.12); }
.f-ic.c1 svg { stroke: var(--accent); }
.f-ic.c2 { background: rgba(58, 134, 255, 0.12); }
.f-ic.c2 svg { stroke: var(--accent-3); }
.f-ic.c3 { background: rgba(16, 185, 129, 0.12); }
.f-ic.c3 svg { stroke: var(--good); }
.f-ic.c4 { background: rgba(131, 56, 236, 0.12); }
.f-ic.c4 svg { stroke: #8338ec; }
.f-ic.c5 { background: rgba(255, 122, 61, 0.14); }
.f-ic.c5 svg { stroke: #ff7a3d; }
.f-ic.c6 { background: rgba(255, 190, 11, 0.16); }
.f-ic.c6 svg { stroke: #d99b00; }

/* ---------- Demo section ---------- */
.demo {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--line);
}
.demo-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.demo-controls {
  max-width: 420px;
}
.demo-controls h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin: 16px 0 16px;
}
.demo-controls > p {
  color: var(--ink-2);
  font-size: 17px;
  margin-bottom: 28px;
}
.ctrl-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 22px 0 10px;
}
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.seg button {
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.16s ease;
}
.seg button:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.seg button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.demo-screen-note {
  margin-top: 26px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  font-size: 14.5px;
  color: var(--ink-2);
  min-height: 78px;
}
.demo-screen-note b {
  color: var(--ink);
}
.demo-phone-col {
  display: flex;
  justify-content: center;
}

/* ---------- Call showcase (dark) ---------- */
.callshow {
  background: radial-gradient(120% 90% at 50% -10%, #1a1426 0%, var(--plum) 55%);
  color: #fff;
}
.callshow .eyebrow {
  color: var(--accent-2);
}
.callshow .eyebrow::before {
  background: var(--accent-2);
}
.callshow .section-head h2 {
  color: #fff;
}
.callshow .section-head p {
  color: rgba(255, 255, 255, 0.66);
}
.call-stage {
  max-width: 920px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-xl);
  padding: clamp(18px, 3vw, 34px);
  position: relative;
  overflow: hidden;
}
.call-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.call-bar .cb-title {
  font-weight: 700;
  font-size: 16px;
}
.call-bar .cb-meta {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}
.call-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.call-tiles .ct {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.call-tiles .ct-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 52px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.call-tiles .ct-name {
  position: absolute;
  left: 12px;
  bottom: 11px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.call-tiles .ct.speaking {
  box-shadow: 0 0 0 3px var(--accent-2), 0 12px 30px rgba(0, 0, 0, 0.35);
}
.call-react {
  position: absolute;
  font-size: 34px;
  animation: reactFloat 3.2s ease-in infinite;
}
.call-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
}
.call-controls .ctrl {
  width: 56px;
  height: 56px;
}
.call-controls .ctrl svg {
  width: 24px;
  height: 24px;
}

/* ---------- Privacy ---------- */
.privacy {
  background: var(--bg-2);
}
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}
.privacy-cards {
  display: grid;
  gap: 14px;
}
.priv-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.priv-card .pc-ic {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.priv-card .pc-ic svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-2);
}
.priv-card h3 {
  font-size: 18px;
  margin-bottom: 5px;
}
.priv-card p {
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line-2);
}
.faq-q {
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.faq-q .pm {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  position: relative;
}
.faq-q .pm::before,
.faq-q .pm::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s;
}
.faq-q .pm::before {
  width: 16px;
  height: 2.5px;
}
.faq-q .pm::after {
  width: 2.5px;
  height: 16px;
}
.faq-item.open .pm::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.faq-a p {
  padding: 0 4px 24px;
  color: var(--ink-2);
  font-size: 16px;
}

/* ---------- Final CTA ---------- */
.final {
  padding: clamp(70px, 9vw, 130px) 0;
}
.final-card {
  position: relative;
  background: linear-gradient(140deg, var(--accent) 0%, #ff7a3d 55%, var(--accent-2) 120%);
  border-radius: var(--r-xl);
  padding: clamp(44px, 6vw, 80px);
  text-align: center;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(255, 77, 109, 0.3);
}
.final-card .fc-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}
.final-card .fc-rings span {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.final-card h2 {
  font-size: clamp(32px, 5vw, 60px);
  position: relative;
}
.final-card p {
  position: relative;
  margin: 18px auto 30px;
  font-size: clamp(16px, 2vw, 20px);
  max-width: 520px;
  color: rgba(255, 255, 255, 0.92);
}
.final .waitlist {
  margin: 0 auto;
  position: relative;
}
.final .waitlist-row {
  border: 0;
}
.final .btn-primary {
  background: var(--ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.final .waitlist-note {
  color: rgba(255, 255, 255, 0.85);
  justify-content: center;
}
.final .waitlist-success {
  color: #fff;
  justify-content: center;
}
.final .waitlist-success svg {
  stroke: #fff;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--plum);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer .brand {
  color: #fff;
  font-size: 30px;
}
.footer-tag {
  margin-top: 12px;
  max-width: 280px;
  font-size: 14.5px;
  line-height: 1.5;
}
.footer-cols {
  display: contents;
}
.footer-col h4 {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 14.5px;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.16s;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

/* ---------- Reveal animation ---------- */
/* Scoped to .js so content is fully visible if JavaScript is disabled */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Keyframes ---------- */
@keyframes bob {
  from { transform: translateY(0) rotate(-4deg); }
  to { transform: translateY(-14px) rotate(4deg); }
}
@keyframes reactFloat {
  0% { transform: translateY(0) scale(0.5); opacity: 0; }
  18% { transform: translateY(-30px) scale(1.2); opacity: 1; }
  100% { transform: translateY(-220px) scale(1); opacity: 0; }
}
@keyframes ringPulse {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}
@keyframes floatPhone {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}
.float-phone {
  animation: floatPhone 4.5s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy {
    margin: 0 auto;
  }
  .waitlist,
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .proof {
    justify-content: center;
  }
  .hero-phone-col {
    margin-top: 50px;
  }
  .steps,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .demo-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .demo-controls {
    text-align: center;
    max-width: 540px;
  }
  .seg,
  .palette-row {
    justify-content: center;
  }
  .ctrl-label {
    text-align: center;
  }
  .privacy-grid {
    grid-template-columns: 1fr;
  }
  .call-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 251, 239, 0.97);
    backdrop-filter: blur(16px);
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.28s ease, visibility 0.28s ease;
    box-shadow: var(--shadow);
    visibility: hidden;
  }
  .nav-links.open {
    transform: none;
    visibility: visible;
  }
  .nav-links a {
    padding: 13px 16px;
    font-size: 16px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav .nav-cta {
    display: none;
  }
  .stat-strip .wrap {
    grid-template-columns: 1fr 1fr;
    gap: 30px 16px;
  }
  .steps,
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 64px 0;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px 24px;
  }
  .footer-top > div:first-child {
    grid-column: 1 / -1;
  }
  .hero h1 {
    font-size: clamp(33px, 9vw, 52px);
  }
  .hero-copy,
  .hero-sub,
  .waitlist {
    max-width: 100%;
  }
  .hero-sub,
  .proof-text {
    overflow-wrap: break-word;
  }
  .waitlist-row .btn {
    padding: 14px 18px;
  }
}

@media (max-width: 380px) {
  .phone,
  .phone-shell {
    width: 290px;
  }
  .phone {
    height: 595px;
  }
  .call-tiles {
    grid-template-columns: 1fr 1fr;
  }
}
