/* ============================================================
   SpeakUp landing — design tokens
   Palette pulled directly from the iOS app: warm cream surface,
   pure white cards, a single gold/amber accent and an ink near-black.
   ============================================================ */
:root {
  --ink: #0e0e0c;
  --ink-soft: #1c1b18;
  --muted: #6d675c;
  --muted-light: #b3ad9f;
  --paper: #ffffff;
  --paper-warm: #fffaf0;
  --cream: #f7f1e7;
  --cream-deep: #efe6d3;
  --line: rgba(14, 14, 12, 0.08);
  --line-strong: rgba(14, 14, 12, 0.14);
  --line-light: rgba(255, 255, 255, 0.12);
  --gold: #f3ad16;
  --gold-soft: #ffd13a;
  --gold-deep: #b97e02;
  --gold-tint: rgba(243, 173, 22, 0.14);
  --green: #35c75a;
  --green-soft: #d8f3df;
  --red: #ff5656;
  --red-soft: #fde2e2;
  --pink: #ff7a8a;
  --shadow-sm: 0 1px 2px rgba(14, 14, 12, 0.04), 0 8px 24px rgba(14, 14, 12, 0.06);
  --shadow-md: 0 18px 48px rgba(14, 14, 12, 0.10);
  --shadow-lg: 0 32px 80px rgba(14, 14, 12, 0.14);
  --shadow-phone: 0 40px 80px rgba(14, 14, 12, 0.22), 0 12px 28px rgba(14, 14, 12, 0.16);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --max: 1180px;
  --easing: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.wrap {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

/* ============================================================
   Type scale
   ============================================================ */
h1, h2, h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--ink);
}

h1 {
  font-size: clamp(3.4rem, 7.4vw, 6rem);
  line-height: 0.98;
}

h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
}

h3 {
  font-size: 1.4rem;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

p { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(243, 173, 22, 0.12);
  color: var(--gold-deep);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(243, 173, 22, 0.2);
}

.eyebrow-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-soft);
}

.eyebrow-light::before {
  box-shadow: 0 0 0 4px rgba(243, 173, 22, 0.18);
}

/* ============================================================
   Buttons
   ============================================================ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 220ms var(--easing), box-shadow 220ms var(--easing), background 220ms var(--easing);
}

.button svg { width: 22px; height: 22px; }

.button:hover { transform: translateY(-2px); }

.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 32px rgba(14, 14, 12, 0.22);
}

.button-primary:hover {
  background: #1f1f1c;
  box-shadow: 0 18px 40px rgba(14, 14, 12, 0.28);
}

.button-light {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 16px 36px rgba(243, 173, 22, 0.36);
}

.button-light:hover {
  background: var(--gold-soft);
}

.button-block {
  width: 100%;
}

.button-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 1.5px solid transparent;
  transition: border-color 200ms var(--easing);
}

.button-link::after {
  content: "→";
  transition: transform 200ms var(--easing);
}

.button-link:hover {
  border-bottom-color: var(--ink);
}

.button-link:hover::after {
  transform: translateX(3px);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 231, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(14, 14, 12, 0.14);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.header-nav a {
  transition: color 160ms var(--easing);
}

.header-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
}

.nav-cta:hover {
  background: #1f1f1c;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(243, 173, 22, 0.22), transparent 48%),
    radial-gradient(ellipse at 0% 50%, rgba(255, 209, 58, 0.16), transparent 55%),
    var(--cream);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  transition: opacity 700ms var(--easing), transform 700ms var(--easing);
}

.js-ready .hero-copy {
  opacity: 0;
  transform: translateY(20px);
}

.js-ready .hero-copy.in-view {
  opacity: 1;
  transform: none;
}

.hero-copy .eyebrow { margin-bottom: 24px; }

.hero-copy h1 {
  margin-bottom: 22px;
}

.hero-copy > p {
  max-width: 38ch;
  margin-bottom: 32px;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--muted);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  transition: opacity 800ms 120ms var(--easing), transform 800ms 120ms var(--easing);
}

.js-ready .hero-stage {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
}

.js-ready .hero-stage.in-view {
  opacity: 1;
  transform: none;
}

.hero-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 173, 22, 0.34), transparent 65%);
  filter: blur(8px);
  z-index: 0;
}

.phone-hero {
  animation: float-soft 8s ease-in-out infinite;
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================================
   Phone mockup component
   ============================================================ */
.phone {
  position: relative;
  background: #0a0a0a;
  border-radius: 44px;
  padding: 8px;
  box-shadow: var(--shadow-phone);
  isolation: isolate;
}

.phone::before,
.phone::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

.phone::before {
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 30%);
  z-index: 2;
}

.phone::after {
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background: #f3f3f3;
  z-index: 1;
}

.phone-screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

/* Caps tuned to the 471px source width — at 2× retina, ≤280 CSS px keeps
   the screenshots crisp instead of upscaled and blurry. */
.phone-hero { width: min(280px, 84%); }
.phone-feature { width: min(260px, 80%); }

.phone img,
.phone-screen img {
  image-rendering: -webkit-optimize-contrast;
}

/* ============================================================
   Stats band
   ============================================================ */
.band {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-warm);
}

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

.band-stats-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: opacity 600ms var(--easing), transform 600ms var(--easing);
}

.js-ready .band-stats-grid > div {
  opacity: 0;
  transform: translateY(10px);
}

.js-ready .band-stats-grid > div.in-view {
  opacity: 1;
  transform: none;
}

.band-stats-grid > div:nth-child(2) { transition-delay: 80ms; }
.band-stats-grid > div:nth-child(3) { transition-delay: 160ms; }
.band-stats-grid > div:nth-child(4) { transition-delay: 240ms; }

.band-stats-grid strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.band-stats-grid span {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: 110px 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: left;
}

.section-head-center { text-align: center; }
.section-head-center .eyebrow { margin: 0 auto; }

.section-head .eyebrow { margin-bottom: 18px; }

.section-head h2 { margin-bottom: 14px; }

.section-head p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 56ch;
}

.section-head-center p {
  margin: 0 auto;
}

.section-flow {
  background: var(--cream);
}

/* Flow cards — text on top, phone peeking from the bottom of the card.
   The card is a fixed height with overflow:hidden, and a fade gradient
   blends the phone into the card so the cut never looks abrupt. */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.flow-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 32px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  height: 480px;
  transition: opacity 700ms var(--easing), transform 700ms var(--easing), box-shadow 220ms var(--easing), border-color 220ms var(--easing);
}

/* Soft fade at the bottom — visually dissolves the phone into the card
   so the natural cut from overflow:hidden never looks abrupt. */
.flow-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 110px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--paper) 65%);
  pointer-events: none;
  z-index: 3;
}

.js-ready .flow-card {
  opacity: 0;
  transform: translateY(20px);
}

.js-ready .flow-card.in-view {
  opacity: 1;
  transform: none;
}

.flow-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold-tint);
}

.flow-card:hover .phone-mini {
  transform: translateY(-8px);
}

.flow-card:nth-child(2) { transition-delay: 100ms; }
.flow-card:nth-child(3) { transition-delay: 200ms; }

.flow-card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.flow-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
}

.flow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
}

.flow-icon svg { width: 22px; height: 22px; }

.flow-card h3 {
  margin-top: 2px;
  font-size: 1.3rem;
}

.flow-card-top > p {
  font-size: 0.98rem;
  color: var(--muted);
  font-weight: 500;
}

.flow-preview {
  position: relative;
  margin-top: 18px;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
}

.phone-mini {
  width: 175px;
  transition: transform 500ms var(--easing);
}

/* ============================================================
   Feature sections
   ============================================================ */
.section-feature {
  padding: 120px 0;
}

.feature-results { background: var(--cream); }
.feature-ten { background: var(--paper-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-dark {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(243, 173, 22, 0.18), transparent 45%),
    #0e0e0c;
  color: #fff;
}

.section-dark h2,
.section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, 0.66); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  transition: opacity 800ms var(--easing), transform 800ms var(--easing);
}

.js-ready .feature-grid {
  opacity: 0;
  transform: translateY(20px);
}

.js-ready .feature-grid.in-view {
  opacity: 1;
  transform: none;
}

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

.feature-copy .eyebrow { margin-bottom: 18px; }
.feature-copy h2 { margin-bottom: 16px; }
.feature-copy > p {
  margin-bottom: 28px;
  font-size: 1.06rem;
  font-weight: 500;
  max-width: 44ch;
}

.check-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--paper);
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(243, 173, 22, 0.18);
}

.check-list strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.feature-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.visual-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 173, 22, 0.28), transparent 60%);
  filter: blur(12px);
  z-index: 0;
}

.visual-glow-dark {
  background: radial-gradient(circle, rgba(243, 173, 22, 0.22), rgba(243, 173, 22, 0) 60%);
}

/* Insight tags */
.insight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-light);
  border-radius: 22px;
  margin-bottom: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: "Manrope", sans-serif;
}

.tag-regular {
  background: rgba(255, 245, 200, 0.14);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 245, 200, 0.18);
}

.tag-filler {
  background: rgba(255, 122, 138, 0.18);
  color: #ff9caa;
  border: 1px solid rgba(255, 122, 138, 0.28);
  font-weight: 600;
}

/* Compare cards */
.compare-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.compare-card {
  padding: 18px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.compare-card p { color: inherit; font-weight: 500; }

.compare-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.compare-label i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 800;
  color: #fff;
  font-size: 0.85rem;
}

.compare-bad {
  background: var(--red-soft);
  color: #7a1c1c;
  border: 1px solid rgba(255, 86, 86, 0.18);
}

.compare-bad i { background: var(--red); }

.compare-good {
  background: var(--green-soft);
  color: #16461f;
  border: 1px solid rgba(53, 199, 90, 0.22);
}

.compare-good i { background: var(--green); }

/* ============================================================
   CTA banner
   ============================================================ */
.cta-band {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(243, 173, 22, 0.4), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(243, 173, 22, 0.28), transparent 55%),
    #0e0e0c;
  color: #fff;
  padding: 80px 0;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
}

.cta-inner h2 { color: #fff; margin-bottom: 8px; }
.cta-inner p { color: rgba(255, 255, 255, 0.74); max-width: 48ch; font-size: 1.05rem; }

/* ============================================================
   Pricing
   ============================================================ */
.section-pricing {
  background: var(--cream);
}

.pricing-wrap { max-width: 880px; margin: 0 auto; }

.pricing-card {
  margin-top: 16px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-xl);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: center;
  transition: opacity 800ms var(--easing), transform 800ms var(--easing);
}

.js-ready .pricing-card {
  opacity: 0;
  transform: translateY(20px);
}

.js-ready .pricing-card.in-view {
  opacity: 1;
  transform: none;
}

.pricing-label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold-tint);
  color: var(--gold-deep);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  letter-spacing: -0.05em;
  margin-bottom: 14px;
}

.pricing-currency {
  font-size: 2rem;
  font-weight: 600;
}

.pricing-amount {
  font-size: 4.2rem;
  font-weight: 700;
}

.pricing-period {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 6px;
}

.pricing-note {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  padding-left: 0;
}

.pricing-card .pricing-features { margin-bottom: 0; }

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.98rem;
}

.pricing-features li:first-child { border-top: 0; padding-top: 0; }

.pricing-features li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 999px;
  background: var(--gold-tint) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b97e02' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 12 10 18 20 6'/></svg>") center/14px no-repeat;
}

.pricing-card .button-block { margin-top: 22px; grid-column: 2; }

@media (max-width: 720px) {
  .pricing-card .button-block { grid-column: auto; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #0a0a09;
  color: rgba(255, 255, 255, 0.6);
  padding: 36px 0;
}

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

.site-footer .brand {
  color: #fff;
}

.site-footer .brand-mark {
  box-shadow: none;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.94rem;
  font-weight: 600;
}

.footer-links a:hover { color: var(--gold-soft); }

.footer-copyright {
  font-size: 0.9rem;
}

/* ============================================================
   Doc pages (privacy / terms / support)
   ============================================================ */
.doc-page {
  background:
    radial-gradient(circle at 16% 0%, rgba(243, 173, 22, 0.22), transparent 30%),
    linear-gradient(180deg, #0e0e0c 0, #0e0e0c 380px, var(--cream) 380px);
}

.doc-hero {
  padding: 64px 0 48px;
  color: #fff;
}

.doc-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin-top: 14px;
}

.doc-hero p {
  max-width: 50ch;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.04rem;
  font-weight: 500;
}

/* legacy pill (used in doc heros) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-header.dark {
  background: rgba(14, 14, 12, 0.75);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-header.dark .brand { color: #fff; }
.site-header.dark .header-nav { color: rgba(255, 255, 255, 0.7); }
.site-header.dark .header-nav a:hover,
.site-header.dark .header-nav a.active { color: #fff; }
.site-header.dark .nav-cta {
  background: var(--gold);
  color: var(--ink) !important;
}
.site-header.dark .nav-cta:hover { background: var(--gold-soft); }

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 80px;
}

.doc-nav {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.doc-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
}

.doc-nav a:hover,
.doc-nav a.active {
  background: var(--ink);
  color: #fff;
}

.doc-card {
  padding: clamp(24px, 4vw, 48px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}

.doc-card.compact { max-width: 880px; margin: 0 auto; }

.doc-meta {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 24px;
}

.doc-card h2 {
  margin-top: 32px;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.doc-card h2:first-of-type { margin-top: 0; }

.doc-card h3 {
  margin: 22px 0 8px;
  font-size: 1.15rem;
}

.doc-card p,
.doc-card li {
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 500;
}

.doc-card p { margin-top: 12px; }

.doc-card ul,
.doc-card ol { margin: 12px 0 18px 1.3rem; }

.doc-card li { margin: 6px 0; }

.doc-card a { color: var(--gold-deep); font-weight: 700; }

.toc, .notice, .contact-panel, .faq-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-warm);
}

.toc, .notice { padding: 22px; margin: 18px 0 28px; }

.toc ol { columns: 2; }

.notice { border-left: 4px solid var(--gold); }

.contact-panel { padding: 28px; margin: 24px 0 32px; text-align: center; }

.contact-email {
  display: inline-block;
  margin: 12px 0;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--gold-deep);
  font-weight: 800;
}

.faq-grid { display: grid; gap: 14px; margin-top: 18px; }

.faq-card { padding: 22px; }

.faq-card h3 { margin-top: 0; color: var(--ink); }

.redirect-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: #0e0e0c;
  color: #fff;
  text-align: center;
}

.redirect-card {
  width: min(calc(100% - 40px), 460px);
  padding: 32px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-light);
}

.redirect-card .brand {
  justify-content: center;
  margin-bottom: 14px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .header-nav { gap: 16px; font-size: 0.86rem; }
  .header-nav a:not(.nav-cta) { display: none; }

  .hero {
    padding: 56px 0 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-stage {
    min-height: 540px;
  }

  .hero-glow { width: 420px; height: 420px; }

  .band-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .section { padding: 80px 0; }
  .section-feature { padding: 80px 0; }

  .flow-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .flow-card {
    height: 460px;
  }

  .phone-mini { width: 180px; }

  .feature-grid,
  .feature-grid-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-grid-reverse .feature-visual { order: 2; }

  .feature-visual { min-height: 520px; }

  .pricing-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px;
  }

  .pricing-card .button-block { grid-column: auto; }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 18px;
  }

  .doc-layout { grid-template-columns: 1fr; }
  .doc-nav { position: static; grid-template-columns: repeat(4, 1fr); }
  .toc ol { columns: 1; }
}

@media (max-width: 600px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .hero-copy h1 { font-size: clamp(2.8rem, 11vw, 4rem); }
  .hero-stage { min-height: auto; }
  .phone-hero { width: min(260px, 80%); }
  .phone-feature { width: min(240px, 80%); }
  .feature-visual { min-height: auto; }
  .visual-glow { width: 280px; height: 280px; }
  .hero-glow { width: 320px; height: 320px; }
  .flow-card { height: 440px; padding: 28px 24px 0; }
  .phone-mini { width: 170px; }
  .check-list { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-feature { padding: 64px 0; }
  .pricing-amount { font-size: 3.4rem; }
  .compare-mini { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-copy,
  .hero-stage,
  .flow-card,
  .feature-grid,
  .pricing-card,
  .band-stats-grid > div {
    opacity: 1 !important;
    transform: none !important;
  }
}
