/* ---------------------------------------------------------------------
   VibeMatch marketing site
   Color tokens are ported verbatim from vibe_match/lib/core/theme —
   VibePaletteDark / VibePaletteLight — so the site matches the app.
   --------------------------------------------------------------------- */

:root {
  /* ---- VibePaletteDark (default) ---- */
  --bg: #14101e;
  --bg2: #19152b;
  --card: #201933;
  --card2: #2a2142;
  --hairline: #2a2142;

  --text-primary: #f3edff;
  --text-muted: #a99fc4;
  --text-faint: #776d94;

  --peach: #ffb088;
  --rose: #ff7aa8;
  --violet-fill: #c77dff;
  --violet-accent: #8b7cff;
  --on-accent: #14101e;
  --danger: #ff9a9a;

  --accent-fill: var(--rose);
  --accent-text: var(--rose);
  --accent-text-alt: var(--violet-accent);

  --bubble-mine: #3b2a5e;
  --bubble-theirs: var(--card2);

  --wash-peach-card: rgba(255, 176, 136, 0.14);
  --wash-violet-card: rgba(199, 125, 255, 0.14);
  --wash-violet-glow: rgba(199, 125, 255, 0.2);

  --glow-alpha-rest: 0.35;
  --glow-alpha-peak: 0.6;
  --glow-blur-rest: 26px;
  --glow-blur-peak: 40px;

  --gradient: linear-gradient(135deg, var(--peach) 0%, var(--rose) 50%, var(--violet-fill) 100%);

  --shadow-card: 0 20px 60px rgba(10, 6, 20, 0.35);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;

  color-scheme: dark;
}

/* ---- VibePaletteLight, via system preference ---- */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fbf8ff;
    --bg2: #f6f1fc;
    --card: #fbf8ff;
    --card2: #f3eefa;
    --hairline: rgba(0, 0, 0, 0.08);

    --text-primary: #1a1426;
    --text-muted: #55506b;
    --text-faint: #6e6884;

    --danger: #b3261e;
    --accent-text: #c2185b;
    --accent-text-alt: #5b3fa6;

    --bubble-mine: #f0e4ff;
    --bubble-theirs: var(--card2);

    --wash-peach-card: rgba(255, 176, 136, 0.07);
    --wash-violet-card: rgba(199, 125, 255, 0.07);
    --wash-violet-glow: rgba(199, 125, 255, 0.08);

    --glow-alpha-rest: 0.18;
    --glow-alpha-peak: 0.3;
    --glow-blur-rest: 12px;
    --glow-blur-peak: 16px;

    --shadow-card: 0 20px 60px rgba(20, 16, 30, 0.08);
    color-scheme: light;
  }
}

/* ---- explicit toggle override (wins over media query both ways) ---- */
[data-theme="light"] {
  --bg: #fbf8ff;
  --bg2: #f6f1fc;
  --card: #fbf8ff;
  --card2: #f3eefa;
  --hairline: rgba(0, 0, 0, 0.08);

  --text-primary: #1a1426;
  --text-muted: #55506b;
  --text-faint: #6e6884;

  --danger: #b3261e;
  --accent-text: #c2185b;
  --accent-text-alt: #5b3fa6;

  --bubble-mine: #f0e4ff;
  --bubble-theirs: var(--card2);

  --wash-peach-card: rgba(255, 176, 136, 0.07);
  --wash-violet-card: rgba(199, 125, 255, 0.07);
  --wash-violet-glow: rgba(199, 125, 255, 0.08);

  --glow-alpha-rest: 0.18;
  --glow-alpha-peak: 0.3;
  --glow-blur-rest: 12px;
  --glow-blur-peak: 16px;

  --shadow-card: 0 20px 60px rgba(20, 16, 30, 0.08);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #14101e;
  --bg2: #19152b;
  --card: #201933;
  --card2: #2a2142;
  --hairline: #2a2142;

  --text-primary: #f3edff;
  --text-muted: #a99fc4;
  --text-faint: #776d94;

  --danger: #ff9a9a;
  --accent-text: var(--rose);
  --accent-text-alt: var(--violet-accent);

  --bubble-mine: #3b2a5e;
  --bubble-theirs: var(--card2);

  --wash-peach-card: rgba(255, 176, 136, 0.14);
  --wash-violet-card: rgba(199, 125, 255, 0.14);
  --wash-violet-glow: rgba(199, 125, 255, 0.2);

  --glow-alpha-rest: 0.35;
  --glow-alpha-peak: 0.6;
  --glow-blur-rest: 26px;
  --glow-blur-peak: 40px;

  --shadow-card: 0 20px 60px rgba(10, 6, 20, 0.35);
  color-scheme: dark;
}

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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Subtle grain so flat gradients read as material, not flat color fills. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
  border-radius: 4px;
}

img,
svg {
  max-width: 100%;
  display: block;
}

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

h1,
h2,
h3,
h4 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  color: var(--text-primary);
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-text);
  background: var(--wash-violet-card);
  border: 1px solid var(--hairline);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 44px);
}

.section-head p {
  color: var(--text-muted);
  font-size: 17px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: "Instrument Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--gradient);
  color: var(--on-accent);
  box-shadow: 0 8px 24px rgba(255, 122, 168, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(255, 122, 168, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--hairline);
}

.btn-outline:hover {
  border-color: var(--accent-text);
  color: var(--accent-text);
}

.btn-block {
  width: 100%;
}

/* ---------------------------------------------------------------------
   Nav
   --------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--hairline);
  box-shadow: 0 8px 24px rgba(10, 6, 20, 0.12);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 600;
  font-family: "Instrument Sans", sans-serif;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--gradient);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  top: 5px;
  left: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  filter: blur(0.5px);
  box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.55);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 16px 2px rgba(255, 122, 168, 0.5);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.35), transparent 55%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links-cta {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon {
    display: none;
  }
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun {
    display: block;
  }
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--card);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
  color: var(--text-primary);
}

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

.hero {
  padding: 176px 0 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-bg .blob-1 {
  width: 480px;
  height: 480px;
  top: -160px;
  right: -120px;
  background: var(--wash-peach-card);
}

.hero-bg .blob-2 {
  width: 520px;
  height: 520px;
  bottom: -220px;
  left: -160px;
  background: var(--wash-violet-glow);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero-copy h1 {
  font-size: clamp(42px, 5.6vw, 68px);
}

.hero-copy .lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-note {
  font-size: 13.5px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-stack {
  display: flex;
}

.avatar-stack span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient);
  border: 2px solid var(--bg);
  margin-left: -8px;
}

.avatar-stack span:first-child {
  margin-left: 0;
}

/* ---- Glow orb visual ---- */

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 460px;
}

.orb-ring {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px dashed var(--hairline);
}

.orb-ring.r2 {
  width: 420px;
  height: 420px;
}

.orb {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background: var(--gradient);
  position: relative;
  animation: breathe 3.6s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    box-shadow: 0 0 var(--glow-blur-rest) 2px rgba(255, 122, 168, var(--glow-alpha-rest));
  }
  50% {
    box-shadow: 0 0 var(--glow-blur-peak) 6px rgba(255, 122, 168, var(--glow-alpha-peak));
  }
}

.orb-card {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-card);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.orb-card.timer {
  top: 12px;
  left: -8px;
  color: var(--accent-text);
}

.orb-card.timer::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 8px 1px var(--rose);
}

.orb-card.reveal {
  bottom: 24px;
  right: -16px;
  color: var(--text-primary);
}

.orb-card.reveal .heart {
  color: var(--accent-text-alt);
}

/* ---------------------------------------------------------------------
   Logo strip / stats
   --------------------------------------------------------------------- */

.stats {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 40px 0;
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat h3 {
  font-size: clamp(28px, 3vw, 36px);
}

.stat span {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-faint);
  font-weight: 500;
}

/* ---------------------------------------------------------------------
   How it works
   --------------------------------------------------------------------- */

.how {
  padding: 140px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--accent-text);
  box-shadow: var(--shadow-card);
}

.step-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wash-violet-card);
}

.step-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-text);
}

.step-num {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: "Instrument Serif", serif;
  font-size: 34px;
  color: var(--text-faint);
  opacity: 0.5;
}

.step h3 {
  font-family: "Instrument Sans", sans-serif;
  font-size: 19px;
  font-weight: 700;
}

.step p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------------------------------------------------------------------
   Features
   --------------------------------------------------------------------- */

.features {
  padding: 0 0 140px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-text);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--on-accent);
}

.feature-card h3 {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 700;
  font-size: 16.5px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------------------------------------------------------------------
   Philosophy / preview
   --------------------------------------------------------------------- */

.philosophy {
  padding: 0 0 140px;
}

.philosophy .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.philosophy-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.philosophy-copy h2 {
  font-size: clamp(30px, 3.6vw, 40px);
}

.philosophy-copy p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.philosophy-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.philosophy-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-primary);
}

.philosophy-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent-text);
  margin-top: 1px;
}

/* ---- phone mock / live demo ---- */

.phone-wrap {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.demo-eyebrow .dot {
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.phone {
  position: relative;
  width: 300px;
  border-radius: 44px;
  background: linear-gradient(165deg, var(--card2), var(--bg2));
  border: 1px solid var(--hairline);
  padding: 14px;
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone::before,
.phone::after {
  content: "";
  position: absolute;
  right: -1px;
  width: 3px;
  border-radius: 2px 0 0 2px;
  background: var(--hairline);
}

.phone::before {
  top: 108px;
  height: 46px;
}

.phone::after {
  top: 168px;
  height: 70px;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  border-radius: 12px;
  background: var(--bg2);
  z-index: 2;
}

.phone-notch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hairline);
}

.phone-home-indicator {
  width: 108px;
  height: 4px;
  border-radius: 2px;
  background: var(--text-faint);
  opacity: 0.5;
  align-self: center;
  margin-top: 2px;
}

.phone-screen {
  position: relative;
  background: var(--bg);
  border-radius: 32px;
  padding: 34px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 534px;
  overflow: hidden;
}

.phone-tabs {
  display: flex;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 6px;
}

.phone-tabs span {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 0;
  border-radius: var(--radius-pill);
  color: var(--text-faint);
  transition: background 0.3s ease, color 0.3s ease;
}

.phone-tabs span.active {
  background: var(--wash-violet-card);
  color: var(--accent-text);
}

.phone-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 0 8px;
}

.phone-orb {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--gradient);
  animation: breathe 3.6s ease-in-out infinite;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.phone.is-idle .phone-orb {
  opacity: 0.45;
  transform: scale(0.88);
}

.phone.is-revealed .phone-orb {
  animation: breathe 3.6s ease-in-out infinite, pop 0.5s ease;
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

.phone-hero strong {
  font-size: 13px;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.phone-hero span {
  font-size: 11.5px;
  color: var(--accent-text);
  font-weight: 600;
  min-height: 14px;
  transition: color 0.3s ease;
}

.phone.is-revealed .phone-hero span {
  color: var(--accent-text-alt);
}

.phone-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 12.5px;
  line-height: 1.4;
  animation: bubble-in 0.35s ease;
}

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bubble.theirs {
  align-self: flex-start;
  background: var(--bubble-theirs);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.bubble.mine {
  align-self: flex-end;
  background: var(--bubble-mine);
  color: var(--text-primary);
  border-bottom-right-radius: 4px;
}

.bubble.typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 13px 16px;
}

.bubble.typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  animation: typing-dot 1s ease-in-out infinite;
}

.bubble.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.bubble.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing-dot {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.phone-cta {
  background: var(--gradient);
  color: var(--on-accent);
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-pill);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease,
    transform 0.15s ease;
}

.phone-cta.is-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--hairline);
}

.phone-cta.is-pressed {
  transform: scale(0.95);
}

.phone-toast {
  position: absolute;
  left: 50%;
  bottom: 68px;
  transform: translate(-50%, 8px);
  background: var(--card);
  border: 1px solid var(--hairline);
  color: var(--accent-text);
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.phone.show-toast .phone-toast {
  opacity: 1;
  transform: translate(-50%, 0);
}

.phone-caption {
  max-width: 300px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.5;
}

.demo-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 300px;
}

.demo-play {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.demo-play svg {
  width: 15px;
  height: 15px;
}

.demo-play .icon-play {
  display: none;
}

.demo-play.is-paused .icon-pause {
  display: none;
}

.demo-play.is-paused .icon-play {
  display: block;
}

.demo-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.demo-step {
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--text-faint);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.demo-step:hover {
  color: var(--text-primary);
  border-color: var(--accent-text);
}

.demo-step.active {
  background: var(--wash-violet-card);
  border-color: transparent;
  color: var(--accent-text);
}

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

.faq {
  padding: 0 0 140px;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 4px 22px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text-primary);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .chev {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text-faint);
  transition: transform 0.25s ease;
}

.faq-item[open] summary .chev {
  transform: rotate(180deg);
  color: var(--accent-text);
}

.faq-item p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
  padding: 0 0 20px;
}

/* ---------------------------------------------------------------------
   Waitlist CTA
   --------------------------------------------------------------------- */

.cta {
  padding: 0 0 140px;
}

.cta-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 32px;
  padding: 72px 40px;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-card .blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--wash-violet-glow);
  filter: blur(90px);
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(32px, 4.4vw, 46px);
  max-width: 560px;
  position: relative;
}

.cta-card > p {
  color: var(--text-muted);
  max-width: 480px;
  font-size: 16px;
  position: relative;
}

.waitlist-form {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.waitlist-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: var(--bg);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14.5px;
}

.waitlist-form input::placeholder {
  color: var(--text-faint);
}

.waitlist-form input:focus {
  outline: none;
  border-color: var(--accent-text);
}

.waitlist-note {
  position: relative;
  font-size: 12.5px;
  color: var(--text-faint);
}

.waitlist-success {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--accent-text);
  font-weight: 600;
  font-size: 14.5px;
  position: relative;
}

.waitlist-success svg {
  width: 18px;
  height: 18px;
}

.waitlist-form.error input {
  border-color: var(--danger);
}

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

footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p {
  color: var(--text-faint);
  font-size: 14px;
  margin-top: 14px;
  max-width: 260px;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-socials a:hover {
  color: var(--accent-text);
  border-color: var(--accent-text);
}

.footer-socials svg {
  width: 16px;
  height: 16px;
}

.footer-col h4 {
  font-family: "Instrument Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------------------------------------------------------------------
   Scroll reveal
   --------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */

@media (max-width: 980px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    height: 360px;
    order: -1;
  }

  .philosophy .container {
    grid-template-columns: 1fr;
  }

  .phone-wrap {
    order: -1;
  }

  .steps,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats .container {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: var(--shadow-card);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 10px;
    border-radius: 10px;
  }

  .nav-links a:hover {
    background: var(--card2);
  }

  .nav-links-cta {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--hairline);
  }

  .nav-links-cta a {
    padding: 12px 10px;
  }

  .nav-links-cta a:hover {
    background: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 140px 0 80px;
  }

  .how,
  .features,
  .philosophy,
  .faq,
  .cta {
    padding-bottom: 88px;
  }

  .steps,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
