/* Alouvi marketing: indigo / cream / coral + dark & light themes */

:root,
html[data-theme="dark"] {
  --bg: #120e24;
  --bg-deep: #0c0918;
  --bg-elevated: #1a1030;
  --bg-card: #1a1432;
  --ink: #f5efe6;
  --ink-soft: rgba(245, 239, 230, 0.78);
  --muted: rgba(245, 239, 230, 0.55);
  --line: rgba(245, 239, 230, 0.14);
  --line-strong: rgba(245, 239, 230, 0.28);
  --accent: #ff6b4a;
  --accent-deep: #d14a32;
  --accent-hover: #ff8268;
  --accent-soft: rgba(255, 107, 74, 0.14);
  --accent-glow: rgba(255, 107, 74, 0.35);
  --on-accent: #fff8f4;
  --header-bg: rgba(18, 14, 36, 0.86);
  --header-bg-scroll: rgba(26, 16, 48, 0.94);
  --hero-grad: linear-gradient(160deg, #1a1030 0%, #15102e 45%, #0c0918 100%);
  --body-grad: linear-gradient(180deg, #120e24 0%, #15102e 42%, #0c0918 100%);
  --footer-bg: #0c0918;
  --warn: #f0d080;
  --warn-bg: rgba(240, 208, 128, 0.12);
  --radius: 0.55rem;
  --max: 68rem;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Figtree", "Helvetica Neue", sans-serif;
  --shadow-soft: 0 18px 50px rgba(8, 4, 20, 0.45);
  --shadow-glow: 0 0 40px rgba(255, 107, 74, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: #ff6b4a;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f7f1e8;
  --bg-deep: #efe6d8;
  --bg-elevated: #fffaf3;
  --bg-card: #fffdf9;
  --ink: #15102e;
  --ink-soft: rgba(21, 16, 46, 0.72);
  --muted: rgba(21, 16, 46, 0.52);
  --line: rgba(21, 16, 46, 0.12);
  --line-strong: rgba(21, 16, 46, 0.22);
  --accent: #d14a32;
  --accent-deep: #b53c28;
  --accent-hover: #e0553c;
  --accent-soft: rgba(209, 74, 50, 0.12);
  --accent-glow: rgba(209, 74, 50, 0.22);
  --on-accent: #fff8f4;
  --header-bg: rgba(247, 241, 232, 0.88);
  --header-bg-scroll: rgba(255, 250, 243, 0.96);
  --hero-grad: linear-gradient(160deg, #fffaf3 0%, #f7f1e8 50%, #efe6d8 100%);
  --body-grad: linear-gradient(180deg, #f7f1e8 0%, #f3ebe0 50%, #efe6d8 100%);
  --footer-bg: #efe6d8;
  --warn: #9a6b10;
  --warn-bg: rgba(154, 107, 16, 0.1);
  --shadow-soft: 0 18px 50px rgba(21, 16, 46, 0.1);
  --shadow-glow: 0 0 36px rgba(209, 74, 50, 0.14);
  --focus: #d14a32;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--body-grad);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: var(--header-bg-scroll);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark-img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  flex-shrink: 0;
  background: transparent;
  box-shadow: none;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.45rem 0.65rem;
  font: inherit;
  cursor: pointer;
}

/* Theme toggle */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink);
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  box-shadow: 0 10px 28px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

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

.btn-ghost {
  background: var(--accent-soft);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-on-dark {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-on-dark:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn-outline-light {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-outline-light:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
}

.btn .badge,
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

.badge-draft {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid rgba(240, 208, 128, 0.35);
}

.badge-rec {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(255, 107, 74, 0.35);
}

/* Hero */

.hero {
  position: relative;
  min-height: min(88vh, 48rem);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--hero-grad);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

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

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 6% 2% auto auto;
  width: min(52vw, 30rem);
  height: min(52vw, 30rem);
  background:
    radial-gradient(circle at 42% 42%, rgba(255, 107, 74, 0.28), transparent 58%),
    radial-gradient(circle at 65% 55%, rgba(120, 80, 200, 0.22), transparent 60%);
  border-radius: 50%;
  filter: blur(10px);
  animation: drift 16s ease-in-out infinite alternate;
  opacity: 0.9;
}

.hero-visual::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 18%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 107, 74, 0.08) 20%,
    rgba(255, 107, 74, 0.45) 50%,
    rgba(255, 107, 74, 0.08) 80%,
    transparent
  );
  animation: wave 4s var(--ease) infinite;
}

html[data-theme="light"] .hero-visual::before {
  background:
    radial-gradient(circle at 42% 42%, rgba(209, 74, 50, 0.18), transparent 58%),
    radial-gradient(circle at 65% 55%, rgba(90, 60, 160, 0.1), transparent 60%);
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-3%, 4%, 0) scale(1.06);
  }
}

@keyframes wave {
  0%,
  100% {
    transform: scaleX(0.9);
    opacity: 0.55;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

.hero-inner {
  padding: 6.5rem 0 4.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-mark {
  justify-self: end;
  width: min(100%, 18rem);
}

.hero-mark img {
  background: transparent;

  width: 100%;
  height: auto;
  border-radius: 1.75rem;
  box-shadow:
    0 24px 60px rgba(8, 4, 20, 0.45),
    0 0 0 1px var(--line),
    0 0 48px var(--accent-glow);
}

.brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

.brand-eyebrow .pronounce {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: 500;
  color: var(--muted);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1.1rem;
  max-width: 14ch;
  color: var(--ink);
}

.hero .lede {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.hero .micro {
  color: var(--muted);
}

.hero .social-proof {
  margin: 2rem 0 0;
  max-width: 32rem;
  color: var(--ink-soft);
  font-size: 1rem;
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.micro {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Sections */

section {
  padding: 4.5rem 0;
}

#how-it-works {
  padding: 2.75rem 0 3rem;
}

#how-it-works .section-head {
  margin-bottom: 1.25rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-head h2,
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.kicker {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shortcut {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  padding: 0.25rem 0.55rem;
  border-radius: 0.35rem;
}

.loop-close {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 0;
  max-width: 28rem;
  color: var(--ink-soft);
}

/* How it works */

.how-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.5rem;
  counter-reset: how-step;
}

.how-step {
  position: relative;
  padding: 1rem 1rem 1.05rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  counter-increment: how-step;
  min-width: 0;
  box-shadow: 0 0 0 0 transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.how-step:hover {
  border-color: rgba(255, 107, 74, 0.35);
  box-shadow: var(--shadow-glow);
}

.how-step::before {
  content: counter(how-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  margin-bottom: 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.how-step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 520;
  letter-spacing: -0.02em;
  margin: 0 0 0.3rem;
  color: var(--ink);
}

.how-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.how-step .shortcut {
  margin-bottom: 0.55rem;
}

/* Voices strip */

.voices-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0 1.25rem;
}

.voices-aside-link {
  margin: 0;
}

/* Plans teaser: never overlap */

.plan-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2rem 0 1.5rem;
  align-items: stretch;
  width: 100%;
}

.plan-teaser {
  padding: 1.25rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  min-width: 0;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.plan-teaser h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  color: var(--ink);
}

.plan-teaser .price {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
  color: var(--ink);
}

.plan-teaser p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: var(--ink);
}

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

.faq-item summary::after {
  content: "+";
  font-weight: 400;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0.7rem 0 0.2rem;
  color: var(--ink-soft);
  max-width: 42rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1.35rem) scale(0.98);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform;
}

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

/* Footer */

.site-footer {
  padding: 3.25rem 0 2.5rem;
  background: var(--footer-bg);
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.footer-brand img {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.35rem;
}

.footer-tag {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-meta p {
  margin: 0.25rem 0;
}

.footer-meta a {
  color: var(--muted);
}

/* Page hero (inner pages) */

.page-hero {
  padding: 4.5rem 0 2.5rem;
}

.page-hero .lede {
  max-width: 42rem;
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.15rem);
}

.billing-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1rem;
}

/* Pricing cards: 2-col, never overlap */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  width: 100%;
  padding-bottom: 1rem;
}

.plan {
  padding: 1.5rem 1.35rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  overflow: hidden;
  position: relative;
  z-index: 0;
  height: auto;
  transform: none;
  margin: 0;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.plan:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.plan.is-featured {
  border-color: rgba(255, 107, 74, 0.45);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-glow);
  z-index: 0;
  transform: none;
}

.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.plan h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 520;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.plan .tagline {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.price-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.price-main {
  font-family: var(--font-display);
  font-size: 2.15rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.price-alt {
  color: var(--muted);
  font-size: 0.9rem;
}

.plan-includes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  flex: 1;
}

.plan-includes li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.plan-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.plan-actions {
  display: grid;
  gap: 0.55rem;
}

.plan-actions .btn {
  width: 100%;
  white-space: normal;
  text-align: center;
}

.billing-toggle {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.billing-toggle button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-soft);
}

.billing-toggle button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
}

.plan[data-period="yearly"] .price-monthly,
.plan[data-period="monthly"] .price-yearly {
  display: none;
}

.compare-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
}

.compare {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare th,
.compare td {
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare th {
  font-weight: 600;
  color: var(--ink);
}

.compare td {
  color: var(--ink-soft);
}

.compare th:first-child,
.compare td:first-child {
  width: 28%;
}

/* Privacy stub */

.stub {
  max-width: 40rem;
  padding: 4.5rem 0 5rem;
}

.stub h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--ink);
}

.stub p {
  color: var(--ink-soft);
}

/* Download */

#get-alouvi {
  scroll-margin-top: 5rem;
}

.download-panel {
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  max-width: 36rem;
  box-shadow: var(--shadow-glow);
}

.download-panel h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.download-panel p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

/* Voices + accounts */

.filter-stub {
  padding: 1.25rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  margin-bottom: 0.5rem;
}

.filter-stub-section {
  padding-top: 0;
  padding-bottom: 1.5rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: end;
}

.filter-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.filter-field select {
  font: inherit;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--muted);
  min-width: 11rem;
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
}

.voice-card {
  padding: 1.2rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
  min-width: 0;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.voice-card:hover {
  border-color: rgba(255, 107, 74, 0.35);
  box-shadow: var(--shadow-glow);
}

.voice-card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.5rem;
}

.voice-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 520;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.voice-id {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.voice-id code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  background: var(--accent-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.12rem 0.4rem;
  border-radius: 0.3rem;
}

.voice-represents {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(255, 107, 74, 0.28);
}

.voice-card .btn[disabled],
.account-card .btn[disabled],
a.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.coming-soon-panel {
  padding: 1.5rem 1.35rem;
  background: var(--accent-soft);
  border: 1px dashed rgba(255, 107, 74, 0.35);
  border-radius: 1rem;
  max-width: 36rem;
}

.coming-soon-label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.account-sections {
  display: grid;
  gap: 1.15rem;
  padding-bottom: 2rem;
}

.account-card {
  padding: 1.4rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  max-width: 42rem;
}

.account-card h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 520;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
  color: var(--ink);
}

.account-card p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}

.account-card .note {
  margin-top: 0.65rem;
  margin-bottom: 0;
}

/* Mobile: stack plans */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 5rem;
    text-align: left;
  }

  .hero-mark {
    justify-self: start;
    width: min(100%, 12rem);
    order: -1;
  }

  .hero h1 {
    max-width: none;
  }

  .how-steps,
  .plan-row,
  .plans {
    grid-template-columns: 1fr;
  }

  .voices-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    display: none;
  }

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

  .nav-toggle {
    display: inline-flex;
  }

  .site-header.is-open .nav {
    flex-wrap: wrap;
  }

  .site-header.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    order: 3;
    width: 100%;
    margin-top: 0.75rem;
    padding: 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    box-shadow: var(--shadow-soft);
  }

  .site-header.is-open .nav-cta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    order: 4;
    width: 100%;
    gap: 0.55rem;
    margin-top: 0.65rem;
    padding-bottom: 0.5rem;
  }

  .site-header.is-open .nav-cta .btn {
    display: inline-flex;
    flex: 1;
  }

  .voice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .voices-strip {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-visual::before,
  .hero-visual::after,
  .reveal,
  .btn {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Smooth theme switch */
html {
  transition: color-scheme 0.35s ease;
}

html.theme-animating,
html.theme-animating body,
html.theme-animating .site-header,
html.theme-animating .hero,
html.theme-animating .site-footer,
html.theme-animating .plan,
html.theme-animating .plan-teaser,
html.theme-animating .voice-card,
html.theme-animating .how-step,
html.theme-animating .btn,
html.theme-animating .download-panel,
html.theme-animating .account-card {
  transition:
    background 0.45s var(--ease),
    background-color 0.45s var(--ease),
    color 0.45s var(--ease),
    border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease) !important;
}

/* === Motion amp: logo float, glow, parallax, stagger === */

.hero-glow {
  position: absolute;
  inset: -10% -5% auto 35%;
  height: min(70vh, 36rem);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(255, 107, 74, 0.32), transparent 55%),
    radial-gradient(ellipse at 30% 60%, rgba(110, 70, 200, 0.22), transparent 50%);
  filter: blur(28px);
  animation: glow-breathe 5.5s ease-in-out infinite alternate;
  transform: translate3d(0, calc(var(--parallax-y, 0) * 0.35px), 0);
  will-change: transform, opacity;
}

html[data-theme="light"] .hero-glow {
  background:
    radial-gradient(ellipse at 60% 40%, rgba(209, 74, 50, 0.2), transparent 55%),
    radial-gradient(ellipse at 30% 60%, rgba(100, 70, 180, 0.12), transparent 50%);
}

@keyframes glow-breathe {
  from {
    opacity: 0.65;
    transform: translate3d(0, calc(var(--parallax-y, 0) * 0.35px), 0) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate3d(-2%, calc(var(--parallax-y, 0) * 0.35px + 2%), 0) scale(1.08);
  }
}

.hero-mark {
  position: relative;
  animation: logo-float 6s ease-in-out infinite;
  transform: translate3d(0, calc(var(--parallax-y, 0) * -0.18px), 0);
  will-change: transform;
}

.hero-mark-glow {
  position: absolute;
  inset: -18%;
  border-radius: 2.5rem;
  background: radial-gradient(circle at 62% 48%, rgba(255, 107, 74, 0.55), transparent 58%);
  filter: blur(22px);
  animation: arc-pulse 2.8s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes logo-float {
  0%,
  100% {
    transform: translate3d(0, calc(var(--parallax-y, 0) * -0.18px), 0) rotate(-0.6deg);
  }
  50% {
    transform: translate3d(0, calc(var(--parallax-y, 0) * -0.18px - 12px), 0) rotate(0.8deg);
  }
}

@keyframes arc-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.hero-mark img {
  animation: logo-pulse 3.6s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%,
  100% {
    filter: drop-shadow(0 18px 40px rgba(8, 4, 20, 0.45)) drop-shadow(0 0 28px rgba(255, 107, 74, 0.22));
  }
  50% {
    filter: drop-shadow(0 22px 50px rgba(8, 4, 20, 0.5)) drop-shadow(0 0 48px rgba(255, 107, 74, 0.4));
  }
}

.hero-visual::before {
  animation: drift 12s ease-in-out infinite alternate, coral-flare 4.5s ease-in-out infinite alternate;
}

@keyframes coral-flare {
  from {
    opacity: 0.7;
    filter: blur(10px) hue-rotate(0deg);
  }
  to {
    opacity: 1;
    filter: blur(14px) hue-rotate(12deg);
  }
}

.hero-visual::after {
  animation: wave 3.2s var(--ease) infinite;
  height: 2px;
  box-shadow: 0 0 12px rgba(255, 107, 74, 0.55);
}

/* Scroll-driven gradient shift on body */
body {
  background-attachment: fixed;
  background-size: 100% 140%;
  background-position: 0 calc(var(--scroll-progress, 0) * 28%);
}

.theme-toggle {
  position: relative;
  overflow: hidden;
}

.theme-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, var(--accent-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.theme-toggle:hover::after,
.theme-toggle:focus-visible::after {
  opacity: 1;
}

.theme-toggle svg {
  transition: transform 0.45s var(--ease), opacity 0.35s var(--ease);
}

.theme-toggle:active svg {
  transform: rotate(28deg) scale(0.9);
}

/* Featured plan soft pulse */
.plan.is-featured {
  animation: featured-glow 4s ease-in-out infinite alternate;
}

@keyframes featured-glow {
  from {
    box-shadow: 0 0 0 rgba(255, 107, 74, 0), 0 0 24px rgba(255, 107, 74, 0.12);
  }
  to {
    box-shadow: 0 0 0 1px rgba(255, 107, 74, 0.25), 0 0 40px rgba(255, 107, 74, 0.28);
  }
}

.how-step.is-visible:nth-child(1) { transition-delay: 0ms; }
.how-step.is-visible:nth-child(2) { transition-delay: 100ms; }
.how-step.is-visible:nth-child(3) { transition-delay: 200ms; }

.btn-primary,
.btn-on-dark {
  position: relative;
  overflow: hidden;
}

.btn-primary::after,
.btn-on-dark::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg) translateX(-120%);
  transition: transform 0.6s var(--ease);
  pointer-events: none;
}

.btn-primary:hover::after,
.btn-on-dark:hover::after {
  transform: skewX(-18deg) translateX(320%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow,
  .hero-mark,
  .hero-mark-glow,
  .hero-mark img,
  .hero-visual::before,
  .hero-visual::after,
  .plan.is-featured,
  .reveal,
  .btn-primary::after,
  .btn-on-dark::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-glow,
  .hero-mark {
    transform: none !important;
  }

  body {
    background-attachment: scroll;
    background-position: 0 0;
  }
}


/* Mark plate kill: full-bleed indigo tile, no pale frame */
.brand-mark-img,
.hero-mark img,
.footer-brand img {
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important; /* glow via filter on hero only */
}
.hero-mark img {
  filter: drop-shadow(0 18px 40px rgba(8, 4, 20, 0.45)) drop-shadow(0 0 28px rgba(255, 107, 74, 0.22));
}


/* === Growth enrichment: trust, use-cases, about, dividers === */

.section-divide {
  border-top: 1px solid var(--line);
}

.trust-strip {
  padding: 1.75rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.trust-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  min-width: 0;
}

.trust-item strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-size: 0.98rem;
}

.trust-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.trust-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(255, 107, 74, 0.28);
}

.trust-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.use-cases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.use-case {
  padding: 1.2rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  min-width: 0;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.use-case:hover {
  border-color: rgba(255, 107, 74, 0.35);
  box-shadow: var(--shadow-glow);
}

.use-case-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 0.75rem;
  border-radius: 0.7rem;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(255, 107, 74, 0.28);
}

.use-case-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.use-case h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 520;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.use-case p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  padding-bottom: 1rem;
}

.about-card {
  padding: 1.4rem 1.3rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  min-width: 0;
}

.about-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 520;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
  color: var(--ink);
}

.about-card p:last-child {
  margin: 0;
  color: var(--ink-soft);
}

.voice-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.voice-card-rich {
  gap: 0.4rem;
}

.voice-grid-live {
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.provider-soon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 44rem;
}

.coming-soon-panel {
  max-width: none;
}

.coming-soon-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.coming-soon-head .coming-soon-label {
  margin: 0;
}

.badge-draft {
  font-size: 0.68rem;
}

@media (max-width: 900px) {
  .trust-list,
  .use-cases,
  .about-grid,
  .provider-soon-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .use-cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* —— Login / IdP (#63) —— */
.login-wrap {
  max-width: 28rem;
  margin: 0 auto 4rem;
}
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 2);
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow: var(--shadow-soft, 0 18px 50px rgba(8, 4, 20, 0.25));
}
.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding: 0.25rem;
  background: var(--bg-deep);
  border-radius: var(--radius);
}
.login-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 0.4rem;
  border-radius: calc(var(--radius) * 0.85);
  cursor: pointer;
}
.login-tab.is-active {
  background: var(--bg-elevated);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.login-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.login-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--ink);
  font: inherit;
  margin-bottom: 0.75rem;
}
.login-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.login-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.45;
}
.login-submit {
  width: 100%;
  justify-content: center;
}
.login-status {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
}
.login-status.is-ok { color: var(--ink-soft); }
.login-status.is-err { color: var(--accent); }
.login-fine {
  margin: 1.1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
.login-fine a { color: var(--accent); }
.page-hero code {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 0.3em;
  background: var(--accent-soft);
}

.login-continue-title {
  margin: 0.25rem 0 0.75rem;
  font-size: 1.35rem;
  color: var(--ink);
}

.login-stage { text-align: center; position: relative; overflow: hidden; }
.login-stage-orb {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 14px;
  background: linear-gradient(160deg, #1a1030, #2a1a55);
  box-shadow: 0 0 0 0 rgba(255,107,74,0.35);
}
.login-stage[data-state="loading"] .login-stage-orb,
.login-stage[data-state="opening"] .login-stage-orb {
  animation: alouvi-pulse 1.2s ease-in-out infinite;
}
.login-stage[data-state="ready"] .login-stage-orb {
  box-shadow: 0 0 0 6px rgba(255,107,74,0.18);
}
.login-stage[data-state="error"] .login-stage-orb {
  background: linear-gradient(160deg, #3a1020, #1a1030);
}
.login-stage[data-state="sent"] .login-stage-orb {
  box-shadow: 0 0 24px rgba(255,107,74,0.25);
}
@keyframes alouvi-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,107,74,0.35); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 12px rgba(255,107,74,0); }
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.legal-prose { max-width: 42rem; padding-bottom: 3rem; }
.legal-prose h2 { margin: 1.75rem 0 0.6rem; font-size: 1.15rem; color: var(--ink); }
.legal-prose p, .legal-prose li { color: var(--ink-soft); line-height: 1.55; }
.legal-prose ul { padding-left: 1.2rem; }
.legal-prose .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }

.admin-nav { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.admin-nav a { color: var(--accent); font-weight: 600; text-decoration: none; }
.admin-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding-bottom: 3rem; }
.admin-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: calc(var(--radius) * 2);
  padding: 1.25rem 1.2rem;
}
.admin-muted, .admin-pending { color: var(--muted); line-height: 1.5; }
.admin-pending { padding: 0.75rem 0; }

.voice-card-rich { display: flex; flex-direction: column; gap: 0.35rem; }
.voice-preview { margin-top: 0.65rem; align-self: flex-start; }
.voice-preview:disabled { opacity: 0.55; cursor: not-allowed; }
audio[data-voice-audio] { display: none; }
.voice-card-rich .voice-represents { font-weight: 600; color: var(--ink); margin: 0; }
.voice-card-rich .voice-meta { margin: 0; color: var(--muted); font-size: 0.9rem; }
