/* ==========================================================================
   EchoStars — landing page styles
   Design tokens ported from the EchoStars/Astra product design system:
   cosmic dark theme, Cormorant Garamond + Manrope, glass cards, gold accent.
   ========================================================================== */

/* Self-hosted fonts (variable, latin subset only — avoids the render-blocking
   fonts.googleapis.com round trip). Each file covers its full weight range. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/manrope.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Fixed dark design, no light variant — declared once here (color-scheme
     is inherited) so native controls (the waitlist email input, scrollbars,
     text selection) render dark consistently, regardless of the visitor's
     OS/browser theme setting. */
  color-scheme: dark;
  --bg0: #070819;
  --bg1: #0B0E27;
  --bg2: #11163A;
  --nebula1: #1D1A4D;
  --nebula2: #2B1A3D;

  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --surface-hi: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --gold: #C9A961;
  --gold-dim: #8A7340;
  --gold-glow: rgba(201, 169, 97, 0.35);
  --violet: #7B6EE8;
  --rose: #E89BB5;
  --teal: #5DD9C1;

  --text: #F5F2E8;
  --text-dim: rgba(245, 242, 232, 0.7);
  --text-mute: rgba(245, 242, 232, 0.45);
  --text-faint: rgba(245, 242, 232, 0.22);

  --good: #7BC4A0;
  --neutral: #D4B860;
  --caution: #D97560;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container-w: 1180px;
  --container-narrow-w: 760px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --header-h: 76px;
}

/* -------------------------------------------------------------------------
   Reset
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
#top, #features, #how, #faq, #waitlist { scroll-margin-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg1);
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--gold);
  color: var(--bg0);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  z-index: 999;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.container-narrow { max-width: var(--container-narrow-w); }
.center { text-align: center; }
.center .btn { margin-inline: auto; }

/* -------------------------------------------------------------------------
   Typography helpers
   ------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.section-title.center { margin-inline: auto; }

.section-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 2rem;
}
.section-sub.center { margin-inline: auto; }

em { color: var(--gold); font-style: italic; }

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gold);
  color: var(--bg0);
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  box-shadow: 0 0 0 rgba(0,0,0,0), 0 8px 30px var(--gold-glow);
}
.btn-primary:hover { box-shadow: 0 0 0 rgba(0,0,0,0), 0 10px 40px var(--gold-glow); transform: translateY(-1px); }

.btn-primary.btn-pulse { animation: btn-pulse-glow 2.4s ease-in-out infinite; }
.btn-primary.btn-pulse:hover { animation-play-state: paused; }
@keyframes btn-pulse-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(0,0,0,0), 0 7px 24px rgba(201, 169, 97, 0.3); transform: scale(1); }
  50% { box-shadow: 0 0 0 rgba(0,0,0,0), 0 10px 38px 5px rgba(201, 169, 97, 0.53); transform: scale(1.015); }
}

.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.1rem; font-size: 1.05rem; margin-top: 0.5rem; }

.btn:disabled { opacity: 0.6; cursor: default; }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-strong);
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-mute); }

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 25, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  margin-right: auto;
}
.brand-mark { flex-shrink: 0; border-radius: 6px; }
.brand-word {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.site-nav { display: none; gap: 1.75rem; }
.site-nav a {
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.is-current { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-actions .btn { display: none; }

/* Hidden while only English is available. Remove this rule to bring the toggle back. */
.lang-switch { display: none; gap: 0.25rem; }
.lang-switch button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-mute);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.lang-switch button[aria-current="true"] {
  color: var(--bg0);
  background: var(--gold);
  border-color: var(--gold);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 18px;
  margin-inline: auto;
  background: var(--text);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--bg1);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a { padding: 0.7rem 0.25rem; font-size: 0.98rem; color: var(--text-dim); }
.mobile-nav a.btn { color: var(--bg0); }
.mobile-nav a.is-current:not(.btn) { color: var(--gold); }
.mobile-nav .btn { margin-top: 0.5rem; }
.mobile-nav[hidden] { display: none; }

/* -------------------------------------------------------------------------
   Starfield decoration (populated by js/main.js)
   ------------------------------------------------------------------------- */
.starfield {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.starfield .star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 4.5s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: var(--o, 0.5); }
  50% { opacity: calc(var(--o, 0.5) * 0.3); }
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) - 5px);
  padding-bottom: 5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, var(--nebula1) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 15% 85%, var(--nebula2) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 55%, var(--bg1) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
  text-align: left;
}

.hero-copy h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 1.25rem;
}

.hero-copy h1 .h1-line {
  display: block;
  line-height: 1;
  margin-bottom: 0.3em;
}

.hero-copy h1 .h1-accent {
  display: block;
}

.hero-sub {
  font-size: 1.08rem;
  max-width: 520px;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 2rem;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.waitlist-form { max-width: 480px; }
.waitlist-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.waitlist-row .btn { width: 100%; }
.waitlist-row input {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  outline: none;
  transition: border-color 0.15s ease;
}
.waitlist-row input::placeholder { color: var(--text-mute); }
.waitlist-row input:focus { border-color: var(--gold); }
.waitlist-row input:invalid[data-touched="true"] { border-color: var(--caution); }
.waitlist-row input.email-spotlight {
  animation: email-spotlight 1.6s ease-out 1;
}
@keyframes email-spotlight {
  0% { border-color: var(--border-strong); box-shadow: 0 0 0 rgba(0,0,0,0); }
  30% { border-color: var(--gold); box-shadow: 0 0 0 6px var(--gold-glow); }
  100% { border-color: var(--border-strong); box-shadow: 0 0 0 rgba(0,0,0,0); }
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-mute);
  margin-top: 0.7rem;
}
.form-feedback {
  font-size: 0.88rem;
  margin-top: 0.7rem;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
}
.form-feedback[hidden] { display: none; }
.form-feedback.is-success {
  color: var(--good);
  background: rgba(123, 196, 160, 0.1);
  border: 1px solid rgba(123, 196, 160, 0.3);
}
.form-feedback.is-error {
  color: var(--caution);
  background: rgba(217, 117, 96, 0.1);
  border: 1px solid rgba(217, 117, 96, 0.3);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-top: 2.25rem;
}
.hero-stats li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-mute);
}
.hero-stats .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  order: -1;
  max-width: 220px;
  margin-inline: auto;
}
.phone-carousel {
  position: relative;
  z-index: 1;
  width: 245px;
  max-width: 100%;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.45));
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.phone-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.2s ease;
  -webkit-user-drag: none;
}
.phone-carousel img.is-active {
  opacity: 1;
  z-index: 1;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(17, 22, 58, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.carousel-arrow svg { width: 16px; height: 16px; }
.carousel-arrow-prev { left: -44px; }
.carousel-arrow-next { right: -44px; }
.carousel-arrow:hover { background: var(--surface-strong); border-color: var(--gold); color: var(--gold); }
.carousel-arrow:focus-visible {
  opacity: 1;
  pointer-events: auto;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  margin-top: 1.1rem;
  position: relative;
  z-index: 1;
}
.carousel-dot {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
}
.carousel-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.carousel-dot:hover::before { background: var(--gold-dim); }
.carousel-dot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.carousel-dot.is-active::before {
  background: var(--gold);
  transform: scale(1.45);
  box-shadow: 0 0 8px var(--gold-glow);
}
.hero-glow {
  position: absolute;
  inset: -10% -10%;
  background: radial-gradient(circle, var(--gold-glow) 0%, rgba(123,110,232,0.18) 45%, transparent 70%);
  filter: blur(30px);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .phone-carousel { animation: none; }
}

/* -------------------------------------------------------------------------
   Generic sections
   ------------------------------------------------------------------------- */
.section {
  position: relative;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}
.section-alt { background: var(--bg2); }

/* Value prop cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.8, 0.35, 1), border-color 0.2s ease;
}
.card-grid.in-view .card { opacity: 1; transform: translateY(0); }
.card-grid .card:nth-child(1) { transition-delay: 0s; }
.card-grid .card:nth-child(2) { transition-delay: 0.12s; }
.card-grid .card:nth-child(3) { transition-delay: 0.24s; }
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); transition: transform 0.2s ease, border-color 0.2s ease; }
.card-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.card p { font-size: 0.95rem; }

/* How it works steps */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
.step {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.8, 0.35, 1);
}
.steps.in-view .step { opacity: 1; transform: translateY(0); }
.steps .step:nth-child(1) { transition-delay: 0s; }
.steps .step:nth-child(2) { transition-delay: 0.12s; }
.steps .step:nth-child(3) { transition-delay: 0.24s; }
.step-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-dim);
  margin-bottom: 0.75rem;
}
.step h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.step p { font-size: 0.95rem; }

/* Preview / inside the app */
.preview-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
.preview-copy { position: static; }

.preview-mocks {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.mock-card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.mock-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.mock-headline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 1rem;
}
.mock-bars { display: flex; flex-direction: column; gap: 0.7rem; }
.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.mock-bar span { width: 110px; flex-shrink: 0; }
.mock-bar i {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.mock-bar i::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--violet), var(--gold));
  background-size: 200% 100%;
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.25, 0.8, 0.35, 1);
}
.mock-bars .mock-bar:nth-child(1) i::before { transition-delay: 0.05s; }
.mock-bars .mock-bar:nth-child(2) i::before { transition-delay: 0.25s; }
.mock-bars .mock-bar:nth-child(3) i::before { transition-delay: 0.45s; }

.mock-card.in-view .mock-bar i::before { width: var(--v, 50%); }
.mock-card.in-view .mock-bars .mock-bar:nth-child(1) i::before { animation: bar-shimmer 3.4s ease-in-out 1.1s infinite; }
.mock-card.in-view .mock-bars .mock-bar:nth-child(2) i::before { animation: bar-shimmer 3.4s ease-in-out 1.3s infinite; }
.mock-card.in-view .mock-bars .mock-bar:nth-child(3) i::before { animation: bar-shimmer 3.4s ease-in-out 1.5s infinite; }

@keyframes bar-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.mock-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 1rem;
}
.mock-calendar i {
  display: block;
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--border);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(var(--i, 0) * 0.035s);
}
.mock-card.in-view .mock-calendar i { opacity: 1; transform: scale(1); }
.mock-calendar i.good { background: rgba(123, 196, 160, 0.35); }
.mock-calendar i.neutral { background: rgba(212, 184, 96, 0.3); }
.mock-calendar i.caution { background: rgba(217, 117, 96, 0.3); }
.mock-calendar i.today { background: var(--good); box-shadow: 0 0 0 2px rgba(123,196,160,0.4); }
.mock-card.in-view .mock-calendar i.today {
  animation: today-pulse 2.6s ease-in-out 0.9s infinite;
}

@keyframes today-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(123,196,160,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(123,196,160,0.12); }
}

.mock-text { font-size: 0.9rem; }

.mock-chat { display: flex; flex-direction: column; gap: 0.6rem; }
.bubble {
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  font-size: 0.88rem;
  max-width: 85%;
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.8, 0.35, 1);
}
.mock-card.in-view .bubble { opacity: 1; transform: translateY(0); }
.bubble-user {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 3px;
  color: var(--text);
  transition-delay: 0.1s;
}
.bubble-ai {
  align-self: flex-end;
  background: rgba(201, 169, 97, 0.13);
  border: 1px solid rgba(201, 169, 97, 0.28);
  border-bottom-right-radius: 3px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text);
  transition-delay: 0.65s;
}
.mock-card.in-view .bubble-ai {
  animation: bubble-glow 3.6s ease-in-out 1.4s infinite;
}

@keyframes bubble-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 97, 0); }
  50% { box-shadow: 0 0 16px 1px rgba(201, 169, 97, 0.22); }
}

@media (prefers-reduced-motion: reduce) {
  .mock-bar i::before,
  .mock-calendar i,
  .bubble,
  .card,
  .step {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .mock-bar i::before { width: var(--v, 50%) !important; }
}

/* Legal / policy pages */
.policy-body { margin-top: 2.5rem; }
.policy-body h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--text);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}
.policy-body p { font-size: 0.95rem; margin-bottom: 1rem; }
.policy-body a { color: var(--gold); text-decoration: underline; }
.policy-body strong { color: var(--text); }

/* Premium */
.premium-inner .section-sub { margin-bottom: 2rem; }

/* FAQ */
.faq-list { margin-top: 2.5rem; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  max-width: 640px;
}

/* Final CTA */
.final-cta {
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, var(--nebula1) 0%, transparent 55%),
    var(--bg0);
}
.final-cta .section-title { margin-inline: auto; }
.final-cta .section-sub { margin-inline: auto; margin-bottom: 2rem; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg0);
  border-top: 1px solid var(--border);
  padding-top: 3.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  text-align: center;
}
.footer-brand p { margin-top: 0.75rem; font-size: 0.9rem; color: var(--text-mute); }
.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 0.9rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.9rem; color: var(--text-dim); }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-mute);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-bottom a { color: var(--text-mute); }
.footer-bottom a:hover { color: var(--text-dim); }

/* -------------------------------------------------------------------------
   Cookie consent banner
   ------------------------------------------------------------------------- */
.cookie-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: rgba(7, 8, 25, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-strong);
}
.cookie-consent[hidden] { display: none; }
.cookie-consent-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 1.25rem;
}
.cookie-consent-inner p {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin: 0;
}
.cookie-consent-inner a { color: var(--gold); text-decoration: underline; }
.cookie-consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-consent-actions .btn { flex: 1; }

/* -------------------------------------------------------------------------
   Responsive (mobile-first: base styles above are for small screens,
   progressively enhanced here as viewport width grows)
   ------------------------------------------------------------------------- */
@media (min-width: 521px) {
  .waitlist-row { flex-direction: row; }
  .waitlist-row .btn { width: auto; }
  .hero-stats { gap: 1.5rem; }
}

@media (min-width: 700px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 861px) {
  .site-nav { display: flex; }
  .header-actions .btn { display: inline-flex; }
  .nav-toggle { display: none; }

  .hero-inner { grid-template-columns: 1.05fr 0.7fr; }
  .hero-visual { order: 0; max-width: none; margin-inline: 0; }
  .hero-copy h1 .h1-line { line-height: 0.8; }
  .hero { padding-top: calc(var(--header-h) + 4rem); }
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .hero-visual:hover .carousel-arrow,
  .hero-visual:focus-within .carousel-arrow {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 861px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }

  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; text-align: left; }
  .footer-bottom {
    text-align: left;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-consent-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cookie-consent-inner p { max-width: 640px; }
  .cookie-consent-actions .btn { flex: none; }
}

@media (min-width: 961px) {
  .preview-inner { grid-template-columns: 0.85fr 1.15fr; }
  .preview-copy { position: sticky; top: calc(var(--header-h) + 2rem); }
}
