/* GenLaunch Customer Recovery Guide landing page
   Static CSS. Tokens first, then layout, then components. */

:root {
  --bg: #0D0D12;
  --surface: #171326;
  --surface-2: #1F1933;
  --text: #FAF8F5;
  --text-muted: #C7C2D6;
  --border: #514767;
  --brand: #6D00FF;
  --brand-hover: #5700D4;
  --brand-soft: #B794FF;
  --focus: #E7D8FF;
  --danger: #FFB4AB;
  --light-bg: #FAF8F5;
  --light-text: #16131F;
  --light-muted: #4A4458;
  --light-border: #DDD6EA;
  --preview-bg: #FFF6D8;
  --preview-text: #4A3500;

  --radius-lg: 2rem;
  --radius-md: 1.25rem;
  --radius-pill: 999px;
  --container: 1280px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open { overflow: hidden; }

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

h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--brand-soft); text-underline-offset: 3px; }
a:hover { color: var(--text); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .footer { position: relative; z-index: 2; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(109, 0, 255, 0.7);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { background: var(--brand-hover); color: #FFFFFF; transform: scale(1.03); box-shadow: 0 14px 36px -10px rgba(109, 0, 255, 0.85); }
.btn:active { transform: scale(0.99); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: var(--radius-pill); }
.btn-lg { min-height: 3.5rem; padding: 1rem 2rem; font-size: 1.0625rem; }
.btn-sm { min-height: 2.75rem; padding: 0.6rem 1.15rem; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.7; cursor: progress; transform: none; }

/* Floating navigation */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.85rem var(--gutter) 0;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav.scrolled {
  background: rgba(13, 13, 18, 0.78);
  border-color: rgba(81, 71, 103, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, 0.8);
}
.brand {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.nav .brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  line-height: 0;
  background: var(--light-bg);
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.72rem 0.28rem 0.42rem;
}
.nav .brand img {
  display: block;
  height: 1.85rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.brand span { color: var(--brand-soft); }
.brand-lg { font-size: 1.6rem; }
.nav-links { display: none; gap: 1.75rem; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; text-decoration: none; padding: 0.5rem 0.25rem; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: none; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
}
@media (min-width: 768px) {
  .nav-cta { display: inline-flex; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 7.5rem 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.glow-a { width: 46rem; height: 46rem; right: -14rem; top: -12rem; background: radial-gradient(circle, rgba(109, 0, 255, 0.75), transparent 65%); }
.glow-b { width: 34rem; height: 34rem; left: -12rem; bottom: -14rem; background: radial-gradient(circle, rgba(183, 148, 255, 0.35), transparent 65%); }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(250, 248, 245, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 248, 245, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}
.hero-inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: end;
}
.hero-copy { max-width: 46rem; }
.preview-pill {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--preview-bg);
  color: var(--preview-text);
  font-size: 0.875rem;
  font-weight: 500;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--brand-soft);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.confirm-line { color: var(--text-muted); font-size: 1rem; margin-bottom: 1.25rem; max-width: 40rem; }
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 5.25rem);
  font-weight: 900;
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}
.hero-sub { margin-top: 1.5rem; color: var(--text-muted); font-size: clamp(1.02rem, 1.4vw, 1.2rem); max-width: 40rem; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.trust-line {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.trust-line li { display: flex; align-items: center; gap: 0.5rem; }
.trust-line li::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--brand-soft); flex: none; }

/* Hero stage (designed poster, not a player) */
.stage { margin: 0; }
.stage-frame {
  position: relative;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(31, 25, 51, 0.95), rgba(23, 19, 38, 0.9));
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -40px rgba(109, 0, 255, 0.55);
}
.stage-cover, .book-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  aspect-ratio: 4 / 5;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: calc(var(--radius-lg) - 0.6rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 12%, rgba(183, 148, 255, 0.55), transparent 45%),
    radial-gradient(circle at 10% 95%, rgba(109, 0, 255, 0.6), transparent 50%),
    linear-gradient(165deg, #2A0F66 0%, #170A3A 55%, #0D0D12 100%);
  color: var(--text);
}
.stage-cover::before, .book-cover::before {
  content: "";
  position: absolute;
  top: clamp(1.5rem, 4vw, 2.25rem);
  left: clamp(1.5rem, 4vw, 2.25rem);
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: var(--brand);
  box-shadow: inset 0 0 0 2px rgba(250, 248, 245, 0.25);
}
.cover-kicker { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-soft); }
.cover-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 900; line-height: 1.02; text-transform: uppercase; }
.cover-rule { width: 4rem; height: 4px; border-radius: 4px; background: var(--brand-soft); }
.cover-sub { font-size: 0.95rem; color: var(--text-muted); }
.stage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.stage-chips li {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  color: var(--text-muted);
  background: rgba(13, 13, 18, 0.5);
}
.stage-cap { margin-top: 0.85rem; font-size: 0.875rem; color: var(--text-muted); text-align: center; }

@media (min-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); }
  .stage { max-width: 26rem; justify-self: end; width: 100%; }
}
@media (max-width: 979px) {
  .stage { max-width: 24rem; }
  .stage-cover { aspect-ratio: 5 / 4; }
}
@media (max-width: 520px) {
  .stage-cover { aspect-ratio: 4 / 3; }
  .stage-cover::before { width: 2.5rem; height: 2.5rem; border-radius: 0.8rem; }
}

/* Sections */
.section { padding: var(--section-y) 0; }
.kicker {
  color: var(--brand-soft);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.section h2 { font-size: clamp(1.85rem, 4vw, 3.4rem); font-weight: 900; }

/* Benefits */
.cards {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 820px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--brand-soft); background: var(--surface-2); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card-num { font-size: 0.875rem; font-weight: 700; color: var(--brand-soft); letter-spacing: 0.08em; }
.card-label {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(109, 0, 255, 0.22);
  color: var(--focus);
  font-size: 0.875rem;
  font-weight: 500;
}
.card-icon {
  width: 3rem;
  height: 3rem;
  margin: 1.75rem 0 1.25rem;
  fill: none;
  stroke: var(--brand-soft);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 800; margin-bottom: 0.75rem; }
.card p { color: var(--text-muted); }

/* Light contrast section */
.light { background: var(--light-bg); color: var(--light-text); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.light + .section { border-radius: 0; }
.light .kicker { color: #5A00D6; }
.light a { color: #5A00D6; }
.preview-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .preview-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }
.preview-copy > p { margin-top: 1.25rem; color: var(--light-muted); font-size: 1.1rem; max-width: 40rem; }
.checks { margin-top: 1.75rem; display: grid; gap: 0.9rem; }
.checks li { position: relative; padding-left: 2.1rem; color: var(--light-text); }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}
.book { margin: 0; justify-self: center; width: 100%; max-width: 22rem; }
.book-cover { box-shadow: 0 40px 70px -30px rgba(45, 0, 110, 0.55), 12px 12px 0 -2px #DDD6EA; transform: rotate(-2deg); border-radius: 1.25rem; }
.book figcaption { margin-top: 1.25rem; text-align: center; color: var(--light-muted); font-size: 0.95rem; }

/* About */
.about { background: var(--bg); }
.about-inner { max-width: 56rem; }
.about-text { margin-top: 1.5rem; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.55; color: var(--text-muted); }
.about-text strong { color: var(--text); }

/* Signup */
.signup { padding-top: 0; }
.signup-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4.5rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 0%, rgba(183, 148, 255, 0.28), transparent 45%),
    radial-gradient(circle at 5% 100%, rgba(109, 0, 255, 0.35), transparent 50%),
    linear-gradient(135deg, #1E1240 0%, #171326 55%, #0D0D12 100%);
  border: 1px solid var(--border);
  text-align: center;
}
.signup-panel h2 { max-width: 40rem; margin: 0 auto; }
.signup-sub { margin: 1rem auto 2rem; max-width: 34rem; color: var(--focus); }
.status-note {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--preview-bg);
  color: var(--preview-text);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Privacy */
.privacy { padding: 0 0 var(--section-y); }
.privacy-inner {
  max-width: 56rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.privacy h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.75rem; }
.privacy p { color: var(--text-muted); font-size: 0.98rem; }
.privacy p + p { margin-top: 0.5rem; }
.privacy:target .privacy-inner, .privacy.flash .privacy-inner { outline: 2px solid var(--brand-soft); outline-offset: 12px; border-radius: 8px; }
.privacy a { color: var(--brand-soft); font-weight: 700; }

body.privacy-doc { background: var(--light-bg); color: var(--light-text); }
.privacy-top { background: var(--bg); color: var(--text); padding: 0.85rem 0 1rem; }
.privacy-top .nav { padding: 0.45rem 0; }
.privacy-top .back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.privacy-article {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 4rem;
}
.privacy-article h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 0 0 0.75rem;
  color: var(--light-text);
}
.privacy-article .dated { color: var(--light-muted); margin-bottom: 1.5rem; }
.privacy-article h2 { font-size: 1.35rem; margin: 2rem 0 0.6rem; color: var(--brand); }
.privacy-article p, .privacy-article li { font-size: 1.05rem; line-height: 1.65; }
.privacy-article p + p { margin-top: 0.85rem; }
.privacy-article ul { margin: 0.75rem 0 0; padding-left: 1.2rem; }
.privacy-article li { margin: 0.45rem 0; }
.privacy-article a { color: var(--brand); font-weight: 700; }
.home-main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 4rem var(--gutter) 5rem;
}
.home-main h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); margin: 0; }
.home-main p { margin-top: 1rem; color: var(--text-muted); }
.home-main .btn { margin-top: 0.5rem; }
.privacy-gap {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: var(--preview-bg);
  color: var(--preview-text);
}

/* Footer */
.footer {
  background: #08080C;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 calc(clamp(2.5rem, 5vw, 3.5rem) + 5rem);
}
@media (min-width: 768px) { .footer { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); } }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.footer-tag, .footer-legal { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.4rem; }
.footer-legal { max-width: 28rem; }

/* Sticky mobile CTA sits below the scrolling page, so text can scroll clear of it. */
.page-scroll { display: contents; }
.sticky-cta { display: none; }
@media (max-width: 767px) {
  body:has(.page-scroll) {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body.dialog-open .page-scroll { overflow: hidden; }
  .page-scroll {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }
  .nav-wrap { position: sticky; top: 0; }
  .footer { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
  .sticky-cta {
    display: block;
    position: static;
    flex: none;
    z-index: 40;
    padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--border);
  }
  .sticky-cta.is-hidden { display: none; }
}
.sticky-cta .btn { width: 100%; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* Dialog */
.guide-dialog {
  width: min(34rem, calc(100% - 2rem));
  max-height: min(90vh, 90dvh);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  overflow: auto;
  overscroll-behavior: contain;
}
.guide-dialog::backdrop { background: rgba(5, 4, 10, 0.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.guide-dialog[open] { animation: dialog-in 0.32s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.dialog-inner { padding: clamp(1.5rem, 5vw, 2.5rem); }
.dialog-close {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
  margin: -0.5rem -0.5rem 0.5rem 1rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}
.dialog-close:hover { background: var(--surface-2); }
.dialog-close svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.dialog-kicker { color: var(--brand-soft); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.guide-dialog h2 { clear: none; margin-top: 0.5rem; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 900; }
.dialog-banner {
  clear: both;
  margin-top: 1.25rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  background: var(--preview-bg);
  color: var(--preview-text);
  font-size: 0.92rem;
  font-weight: 500;
}
.dialog-helper { margin-top: 1rem; color: var(--text-muted); font-size: 0.98rem; }
#guide-form { margin-top: 1.5rem; display: grid; gap: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.45rem; }
.field input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}
.field input::placeholder { color: #8E87A3; }
.field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--brand-soft); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { min-height: 0; margin-top: 0.45rem; color: var(--danger); font-size: 0.92rem; }
.field-error:empty { display: none; }
.form-status:empty { display: none; }
.form-status {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: var(--preview-bg);
  color: var(--preview-text);
  font-size: 0.95rem;
}
.form-status strong { display: block; margin-bottom: 0.2rem; }
/* SendFox embed. SendFox styles its form with inline styles (white card,
   orange button), so these overrides need !important to match the page. */
.sf-embed { margin-top: 1.5rem; min-height: 3.25rem; }
.sf-embed .sendfox-embed-card {
  background: transparent !important; border: 0 !important; padding: 0 !important;
  box-shadow: none !important; color: var(--text) !important; font-family: inherit !important;
}
.sf-embed form { gap: 1rem !important; }
.sf-embed label { font-family: inherit !important; font-size: 1rem !important; font-weight: 700 !important; color: var(--text) !important; margin-bottom: 0.45rem !important; }
.sf-embed input[type="email"] {
  min-height: 3.25rem !important; padding: 0.8rem 1rem !important;
  border: 1.5px solid var(--border) !important; border-radius: var(--radius-md) !important;
  background: var(--bg) !important; color: var(--text) !important;
  font-family: inherit !important; font-size: 1rem !important;
}
.sf-embed input[type="email"]::placeholder { color: #8E87A3; }
.sf-embed input[type="email"]:focus,
.sf-embed input[type="email"]:focus-visible { outline: 3px solid var(--focus) !important; outline-offset: 2px !important; border-color: var(--brand-soft) !important; }
.sf-embed button[type="submit"] {
  min-height: 3.25rem !important; padding: 0.9rem 1.5rem !important; border-radius: 999px !important;
  background: var(--brand) !important; color: #FFFFFF !important;
  font-family: inherit !important; font-size: 1rem !important; font-weight: 700 !important;
  box-shadow: 0 10px 30px -10px rgba(109, 0, 255, 0.7);
}
.sf-embed button[type="submit"]:hover { background: var(--brand-hover) !important; }
.sf-embed button[type="submit"]:focus-visible { outline: 3px solid var(--focus) !important; outline-offset: 3px !important; }
.sf-fallback {
  margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius-md);
  background: var(--preview-bg); color: var(--preview-text); font-size: 0.95rem;
}
.sf-fallback[hidden] { display: none; }
.dialog-privacy { margin-top: 1.5rem; color: var(--text-muted); font-size: 0.88rem; }

@media (max-width: 600px) {
  .guide-dialog {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: 0;
    max-height: 90vh;
    max-height: 90dvh;
  }
  .guide-dialog[open] { animation-name: sheet-in; }
  .dialog-inner { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
  @keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
}

/* Scroll reveals (only hidden when JS is running) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@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;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover { transform: none; }
  .book-cover { transform: none; }
}

@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .card, .stage-frame, .guide-dialog { border: 1px solid CanvasText; }
}
