/* =========================================================
   ToastGhost — Design System & Landing Styles
   ========================================================= */

:root {
  --bg: #14161b;
  --surface: #1e2129;
  --surface-raised: #272b34;
  --surface-sunken: #0d0f13;
  --text: #F5F1E8;
  --text-muted: #C6C9D2;
  --text-faint: #888C99;
  --primary: #D4AF37;
  --primary-dim: #B4922C;
  --accent: #B5476B;
  --accent-dim: #8F3A57;
  --border: rgba(245, 241, 232, 0.09);
  --border-strong: rgba(245, 241, 232, 0.17);
  --success: #6FBF8B;

  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.45);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --max-width: 1160px;
  --max-width-narrow: 720px;

  --transition-fast: 140ms ease;
  --transition-med: 240ms ease;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-3);
  color: var(--text);
  overflow-wrap: anywhere;
}
p { margin: 0 0 var(--space-4); color: var(--text-muted); overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }

::selection { background: var(--primary); color: #221808; }

/* subtle candlelit background wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(720px 520px at 12% -8%, rgba(212,175,55,0.12), transparent 60%),
    radial-gradient(920px 620px at 112% 8%, rgba(181,71,107,0.11), transparent 60%),
    radial-gradient(620px 420px at 50% 105%, rgba(111,191,139,0.06), transparent 60%),
    var(--bg);
}
/* faint grain for a slightly whimsical, printed-invitation texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(245,238,227,0.025) 1px, transparent 1px),
    radial-gradient(rgba(245,238,227,0.02) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 2px 3px;
}

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

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.container-narrow { max-width: var(--max-width-narrow); }

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 760px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.section-title {
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.1rem);
  text-align: center;
  margin-bottom: var(--space-6);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   Section divider (whimsical "cheers" rule)
   ========================================================= */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  max-width: 420px;
  margin: 0 auto;
  padding: var(--space-2) var(--space-5);
}
.section-divider .divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.section-divider .divider-icon {
  font-size: 1.1rem;
  opacity: 0.85;
  filter: drop-shadow(0 0 8px rgba(212,175,55,0.25));
}

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 22, 27, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-mark { flex-shrink: 0; }
.nav-links {
  display: none;
  gap: var(--space-6);
  align-items: center;
}
.nav-links a {
  position: relative;
  color: var(--text-muted);
  font-size: 0.94rem;
  transition: color var(--transition-fast);
  padding-bottom: 2px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--primary);
  transition: right var(--transition-med);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { right: 0; }
@media (min-width: 860px) {
  .nav-links { display: flex; }
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav-actions .btn-ghost { display: none; }
@media (min-width: 560px) {
  .nav-actions .btn-ghost { display: inline-flex; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #E8C566);
  color: #221808;
  box-shadow: 0 6px 20px rgba(212,175,55,0.30);
}
.btn-primary:hover {
  box-shadow: 0 12px 30px rgba(212,175,55,0.45);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1.02rem;
}

.btn-danger {
  background: transparent;
  color: var(--accent);
  border-color: rgba(181,71,107,0.4);
}
.btn-danger:hover {
  background: rgba(181,71,107,0.12);
  border-color: var(--accent);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: var(--space-8) 0 var(--space-6);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}
.eyebrow {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 3.4vw + 1rem, 3.3rem);
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 1.12rem;
  max-width: 52ch;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}
.hero-ctas { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.hero-microcopy { font-size: 0.85rem; color: var(--text-faint); margin: 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-2); }

/* Phones: grid children default to min-width:auto, letting intrinsic
   content width blow the 1fr column past the viewport (measured +8px).
   Let them shrink; long CTA labels wrap instead of clipping. */
@media (max-width: 700px){
  .hero-grid > * { min-width: 0; }
  .hero-ctas, .hero-cta-row { max-width: 100%; }
  .hero-cta-row .btn, .hero-ctas .btn { white-space: normal; max-width: 100%; text-align: center; }
}

.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-visual-stack { position: relative; width: 100%; max-width: 460px; }
.speech-preview {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  box-shadow: var(--shadow-md);
}
.speech-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-1);
}
.speech-preview-time {
  font-size: 0.8rem;
  color: var(--text-faint);
}
.speech-line {
  position: relative;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  padding-left: var(--space-3);
  border-left: 2px solid var(--border-strong);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  margin-right: var(--space-2);
  margin-bottom: 4px;
  cursor: help;
}
.tag-laugh { background: rgba(212,175,55,0.16); color: var(--primary); }
.tag-tear { background: rgba(181,71,107,0.16); color: var(--accent); }
.tag-landing { background: rgba(111,191,139,0.16); color: var(--success); }

.floating-card-mini {
  position: absolute;
  left: -18px;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  animation: floatUp 4s ease-in-out infinite;
  max-width: 220px;
}
.floating-card-mini .mini-icon { font-size: 1.3rem; flex-shrink: 0; }
.floating-card-mini .mini-title { margin: 0; font-size: 0.78rem; color: var(--text-faint); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.floating-card-mini .mini-sub { margin: 2px 0 0; font-size: 0.88rem; color: var(--text); font-weight: 600; }
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@media (max-width: 640px) {
  .floating-card-mini { position: static; margin-top: var(--space-4); animation: none; max-width: none; }
}

/* whimsical sparkle accents around the hero visual */
.sparkle {
  position: absolute;
  color: var(--primary);
  font-size: 1.1rem;
  opacity: 0.7;
  animation: sparkleTwinkle 2.6s ease-in-out infinite;
  pointer-events: none;
}
.sparkle-1 { top: -14px; right: 18%; animation-delay: 0s; }
.sparkle-2 { top: 30%; right: -10px; font-size: 0.85rem; color: var(--accent); animation-delay: 0.8s; }
.sparkle-3 { bottom: 18%; left: -6px; font-size: 0.9rem; animation-delay: 1.5s; }
@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.85) rotate(0deg); }
  50% { opacity: 0.9; transform: scale(1.1) rotate(12deg); }
}
@media (max-width: 640px) { .sparkle { display: none; } }

/* trust strip under hero (legacy — retained, no longer rendered by default) */
.trust-strip {
  margin-top: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-faint);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.trust-dot { color: var(--border-strong); }
@media (max-width: 640px) { .trust-dot { display: none; } }

/* CTA row + free-during-beta note, sits right next to the primary hero CTA */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.cta-freenote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.3);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* Proof bar — replaces the old audience/trust strip with concrete, specific numbers */
.proof-bar {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}
@media (min-width: 760px) {
  .proof-grid { grid-template-columns: repeat(4, 1fr); }
}
.proof-item {
  text-align: center;
  padding: var(--space-4) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color var(--transition-med), transform var(--transition-med);
}
.proof-item:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.proof-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1;
}
.proof-label { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* =========================================================
   Cards
   ========================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.value-props { padding: var(--space-7) 0; }
.value-card {
  height: 100%;
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}
.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.value-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-3);
}
.value-card h3 { font-size: 1.2rem; margin-bottom: var(--space-2); }
.value-card p { margin: 0; font-size: 0.96rem; }

/* =========================================================
   Panic timeline ("Sound familiar?")
   ========================================================= */
.panic-timeline {
  padding: var(--space-7) 0;
}
.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 820px) {
  .timeline { grid-template-columns: repeat(4, 1fr); }
}
.timeline-item {
  padding: var(--space-2) var(--space-4);
  border-left: 2px solid var(--border-strong);
  transition: border-color var(--transition-med);
}
.timeline-icon { font-size: 1.5rem; display: block; margin-bottom: 8px; }
.timeline-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-weight: 700;
  margin-bottom: 4px;
}
.timeline-item p:last-child { font-size: 0.92rem; margin: 0; color: var(--text-muted); }
.timeline-item-highlight { border-left-color: var(--primary); }
.timeline-item-highlight p:last-child { color: var(--text); }

/* =========================================================
   How it works
   ========================================================= */
.how-it-works {
  padding: var(--space-7) 0;
  background: var(--surface-sunken);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps-row { position: relative; }
.step {
  padding: var(--space-2);
  text-align: left;
  position: relative;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--primary);
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}
@media (min-width: 760px) {
  .step:not(:last-child) .step-number::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    width: calc(100vw / 3 - 40px);
    max-width: 140px;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 12px);
    transform: translateY(-50%);
  }
}
.step h3 { font-size: 1.1rem; margin-bottom: var(--space-2); }
.step p { margin: 0; font-size: 0.95rem; }

/* =========================================================
   Tone showcase
   ========================================================= */
.tone-showcase { padding: var(--space-7) 0; }
.tone-showcase-grid { margin-top: var(--space-2); }
.tone-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-top: 3px solid transparent;
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}
.tone-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tone-card-funny:hover { border-top-color: var(--primary); }
.tone-card-sentimental:hover { border-top-color: var(--accent); }
.tone-card-safe:hover { border-top-color: var(--success); }
.tone-card-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-4);
  transition: transform var(--transition-med);
}
.tone-card-visual svg { display: block; }
.tone-card:hover .tone-card-visual { transform: scale(1.06); }
.tone-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}
.tone-photo svg { display: block; width: 100%; height: 100%; }
.tone-card:hover .tone-photo { transform: scale(1.03); box-shadow: var(--shadow-md); }
.tone-card-head { margin-bottom: var(--space-3); text-align: center; }
.tone-card-excerpt {
  font-size: 0.98rem;
  color: var(--text);
  flex: 1;
  position: relative;
  padding-left: var(--space-4);
}
.tone-card-excerpt::before {
  content: "“";
  position: absolute;
  left: -4px;
  top: -10px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--border-strong);
  line-height: 1;
}
.tone-card-foot { font-size: 0.82rem; color: var(--text-faint); margin: 0; }
.badge-sentimental { background: rgba(181,71,107,0.16); color: var(--accent); border-color: transparent; }
.badge-safe { background: rgba(111,191,139,0.15); color: var(--success); border-color: transparent; }

/* =========================================================
   Anatomy section
   ========================================================= */
.anatomy-section { padding: var(--space-7) 0; border-top: 1px solid var(--border); }
.anatomy-lede { max-width: 60ch; margin: 0 auto var(--space-2); }
.anatomy-demo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-6);
  text-align: left;
}
.anatomy-demo-item { max-width: 220px; }
.anatomy-demo-item p { font-size: 0.88rem; margin: 8px 0 0; }

/* =========================================================
   Rehearse showcase
   ========================================================= */
.rehearse-showcase {
  padding: var(--space-8) 0;
  background: var(--surface-sunken);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.rehearse-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 900px) {
  .rehearse-showcase-grid { grid-template-columns: 1fr 1fr; }
}
.rehearse-copy h2 { font-size: clamp(1.4rem, 1.8vw + 1rem, 1.9rem); }
.rehearse-points { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rehearse-points li { font-size: 0.95rem; color: var(--text-muted); }
.mock-teleprompter { background: var(--surface); box-shadow: var(--shadow-md); }
.mock-tp-line { margin-bottom: 6px; }
.mock-tp-text { font-size: 1.05rem; color: var(--text); margin: 0 0 var(--space-4); }
.mock-timer-chip {
  margin-top: var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary);
  background: rgba(212,175,55,0.1);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}
.text-faint-inline { font-family: var(--font-body); font-size: 0.8rem; color: var(--text-faint); }

/* =========================================================
   Compare section
   ========================================================= */
.compare-section { padding: var(--space-7) 0; }
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.9rem;
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.compare-table thead th {
  color: var(--text-faint);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  background: var(--surface-sunken);
}
.compare-table td:first-child { color: var(--text-muted); font-weight: 600; }
.compare-highlight-col { background: rgba(212,175,55,0.08); color: var(--text); font-weight: 600; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: rgba(245,238,227,0.03); }
.compare-table tbody tr:hover td.compare-highlight-col { background: rgba(212,175,55,0.13); }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: var(--space-8) 0; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-3);
  transition: border-color var(--transition-fast);
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
  transition: transform var(--transition-med);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: var(--space-3) 0 0;
  font-size: 0.96rem;
}

/* =========================================================
   Final CTA
   ========================================================= */
.final-cta {
  padding: var(--space-8) 0;
  background: linear-gradient(160deg, rgba(212,175,55,0.14), rgba(181,71,107,0.08));
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.final-cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  max-width: 640px;
}
.final-cta-icon {
  font-size: 2rem;
  animation: bobGentle 2.8s ease-in-out infinite;
}
@keyframes bobGentle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-4deg); }
}
.final-cta-inner h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2rem); margin: 0; }
.final-cta-inner p { margin: 0; }

/* Elevated final-CTA card — makes the closing ask feel like starting something, not a form */
.final-cta-card {
  position: relative;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.final-cta-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(212,175,55,0.5), rgba(181,71,107,0.3), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.final-cta-card .final-cta-icon { font-size: 2.1rem; }
.final-cta-card h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem); margin: 0; }
.final-cta-lede { max-width: 46ch; margin: 0; color: var(--text-muted); }
.final-cta-note {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin: 4px 0 0;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: var(--space-7) 0 var(--space-5);
  border-top: 1px solid var(--border);
  background: var(--surface-sunken);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr; }
}
.footer-brand p { font-size: 0.9rem; max-width: 30ch; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: var(--space-3);
}
.footer-col a {
  display: block;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--primary); }
.footer-note { font-size: 0.9rem; margin: 0; }
.footer-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin: 0;
}

/* =========================================================
   Component Kit — used by app.js SPA
   ========================================================= */

/* Nav (generic component, distinct from .site-header for reuse) */
.nav {
  display: flex;
  align-items: center;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.badge-tone { background: rgba(212,175,55,0.16); color: var(--primary); border-color: transparent; }
.badge-success { background: rgba(111,191,139,0.15); color: var(--success); border-color: transparent; }
.badge-accent { background: rgba(181,71,107,0.15); color: var(--accent); border-color: transparent; }

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-4);
}
.label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.input, textarea.input {
  width: 100%;
  background: var(--surface-sunken);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.98rem;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.input::placeholder { color: var(--text-faint); }
.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.18);
}
.input.input-invalid {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(181,71,107,0.16);
  animation: inputShake 320ms ease;
}
.input.input-valid {
  border-color: var(--success);
}
@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
textarea.input { resize: vertical; min-height: 120px; line-height: 1.6; }

.error-text {
  color: var(--accent);
  font-size: 0.85rem;
  margin: 2px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.error-text::before { content: "⚠"; font-size: 0.9em; }
.error-text:empty { display: none; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 11, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  z-index: 100;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  animation: modalPop 220ms ease;
}
@keyframes modalPop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal h2, .modal h3 { margin-bottom: var(--space-2); }
.modal-close {
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  border-radius: 6px;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.modal-close:hover { color: var(--text); background: var(--surface-raised); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--text-muted);
}
.empty-state .empty-icon {
  font-size: 2.2rem;
  margin-bottom: var(--space-3);
  opacity: 0.85;
}
.empty-state h3 { margin-bottom: var(--space-2); }
.empty-state p { max-width: 40ch; margin: 0 auto var(--space-5); }

/* Lists */
.list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}
.list-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.list-item:focus-visible { border-color: var(--primary); }
.list-item-main { min-width: 0; }
.list-item-main h4 {
  font-size: 1rem;
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.list-item-main p {
  font-size: 0.86rem;
  margin: 0;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.toolbar-spacer { flex: 1; }

/* Skeleton loading */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface-raised);
  border-radius: var(--radius-sm);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(245,241,232,0.08), transparent);
  transform: translateX(-100%);
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}
@keyframes skeletonShimmer {
  100% { transform: translateX(100%); }
}
.skeleton-line { height: 14px; margin-bottom: 10px; border-radius: 6px; }
.skeleton-block { height: 80px; border-radius: var(--radius-md); }
.skeleton-list-item {
  height: 76px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: var(--space-3);
}
.skeleton-wrap { padding: var(--space-2) 0; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Blog section (landing page)
   ========================================================= */
.blog-section { padding: var(--space-8) 0; border-top: 1px solid var(--border); }
.blog-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-2);
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.blog-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.blog-card summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}
.blog-card summary::-webkit-details-marker { display: none; }
.blog-card-head { display: flex; flex-direction: column; gap: 6px; }
.blog-card-kicker {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: rgba(212,175,55,0.12);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.blog-card h3 {
  font-size: 1.08rem;
  margin: 0;
  color: var(--text);
}
.blog-card-arrow {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform var(--transition-med);
  line-height: 1;
  margin-top: 2px;
}
.blog-card[open] .blog-card-arrow { transform: rotate(45deg); }
.blog-card-body { margin-top: var(--space-4); }
.blog-card-body p { font-size: 0.96rem; margin: 0 0 var(--space-3); }
.blog-card-body p:last-child { margin-bottom: 0; }
.blog-card-body a { color: var(--primary); font-weight: 600; }
/* ── BizMax mobile hardening (visually verified at 390px) ─────────────── */
@media (max-width: 640px) {
  html { overflow-x: clip; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-discord span { display: none; }
  .nav-actions .btn-discord { padding: 8px 10px; }
  .nav-actions .btn { padding: 10px 12px; font-size: 0.85rem; }
}


/* BizMax mobile guard: form fields never render under 16px on phones —
   iOS Safari auto-zooms into any focused input below 16px, which jolts
   the viewport exactly when an ad visitor is trying to sign up. */
@media (max-width: 768px){
  input[type="email"], input[type="password"], input[type="text"],
  input[type="number"], input[type="tel"], select, textarea{ font-size: 16px; }
}


/* ── BizMax mobile app-view guard (measured at 390px) ─────────────────────
   1. iOS Safari auto-zooms any focused control under 16px — the app views'
      classed/ID'd controls kept beating the old element-selector guard, so
      this one doesn't lose: !important, with max() so controls styled
      LARGER than 16px keep their size.
   2. No-wrap action rows (e.g. Cancel + a wide primary) shove buttons off
      the left edge of 390px screens — let them wrap instead. */
@media (max-width: 768px){
  input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),
  select, textarea { font-size: max(16px, 1em) !important; }
  .form-actions{ flex-wrap: wrap; }
  .form-actions .btn, .form-actions button, .form-actions a{ min-width: 0; max-width: 100%; }
}

/* ── Monetization (inert until a product goes live) ──────────────────── */
.mz-slot{ margin-top: 18px; }
.mz-offer{ text-align: center; max-width: 640px; margin: 18px auto 8px; }
.mz-line1{ font-weight: 600; font-size: 1.02rem; margin: 0 0 6px; }
.mz-line2{ font-size: .92rem; opacity: .85; line-height: 1.55; margin: 0 0 12px; }
.mz-receipt{ list-style: none; margin: 0 auto 14px; padding: 0; font-size: .88rem; max-width: 440px; text-align: left; }
.mz-receipt li{ margin: 4px 0; padding-left: 22px; position: relative; }
.mz-receipt li::before{ content: "✓"; position: absolute; left: 2px; opacity: .7; }
.mz-actions-row{ display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.mz-actions-row .btn, .mz-actions .btn{ min-height: 48px; }
.mz-fine{ font-size: .72rem; opacity: .55; margin: 0; }

/* Overlay is "paper mode": white panel + dark ink on every app theme. */
#mz-overlay{ position: fixed; inset: 0; z-index: 1400; }
#mz-overlay .mz-backdrop{ position: absolute; inset: 0; background: rgba(0,0,0,.62); }
#mz-overlay .mz-panel{
  position: relative; max-width: 680px; margin: 3vh auto; max-height: 94vh;
  overflow-y: auto; background: #fff; color: #20242c; border-radius: 14px;
  padding: 16px; box-shadow: 0 18px 60px rgba(0,0,0,.45);
}
.mz-toolbar{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: .85rem; color: #555; }
#mz-overlay .btn{ color: #2a2f38; background: #fff; border: 1px solid #c9cdd4; }
#mz-overlay .btn.mz-btn-primary{ background: #20242c; color: #fff; border-color: #20242c; }
#mz-overlay .btn[disabled]{ opacity: .6; }
.mz-sheet{ background: #fff; color: #20242c; border: 1px solid #e4e2dc; border-radius: 6px; padding: 36px 34px; }
.mz-sheet-serif{ font-family: Georgia, 'Times New Roman', serif; }
.mz-cover{ text-align: center; margin-bottom: 26px; }
.mz-logo{ display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; background: #f1f0ec; margin-bottom: 12px; overflow: hidden; }
.mz-logo-mono{ font-size: 1.5rem; font-weight: 700; color: #6b6f78; }
.mz-logo-img{ width: 40px; height: 40px; object-fit: contain; }
.mz-eyebrow{ font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: #8a8f98; margin: 0 0 8px; }
.mz-doc-title{ font-size: 1.45rem; font-weight: 650; margin: 0 0 6px; color: #20242c; line-height: 1.3; }
.mz-doc-sub{ font-size: .84rem; color: #6b6f78; margin: 0; }
.mz-doc-section{ margin-top: 22px; text-align: left; }
.mz-doc-section h2{ font-size: 1.02rem; margin: 0 0 8px; color: #20242c; border-bottom: 1px solid #eceae4; padding-bottom: 6px; }
.mz-doc-section h3{ font-size: .82rem; margin: 12px 0 4px; color: #565b64; text-transform: uppercase; letter-spacing: .06em; }
.mz-doc-section ul, .mz-doc-section ol{ margin: 0 0 8px 20px; padding: 0; font-size: .9rem; line-height: 1.65; color: #2a2f38; }
.mz-doc-section li{ margin: 3px 0; }
.mz-email{ border: 1px solid #eceae4; border-radius: 8px; padding: 12px 14px; margin: 10px 0; }
.mz-email h3{ margin: 0 0 8px; text-transform: none; letter-spacing: 0; font-size: .88rem; color: #20242c; }
.mz-email pre{ white-space: pre-wrap; font-family: inherit; font-size: .85rem; line-height: 1.6; margin: 0; color: #3a3f47; }
.mz-doc-table{ width: 100%; border-collapse: collapse; font-size: .82rem; margin: 8px 0; }
.mz-doc-table th, .mz-doc-table td{ border: 1px solid #e4e2dc; padding: 5px 8px; text-align: left; color: #2a2f38; }
.mz-doc-table th{ background: #f7f6f2; font-weight: 600; }
.mz-table-scroll{ overflow-x: auto; }
.mz-actions{ margin-top: 14px; text-align: center; color: #20242c; }
.mz-actions .mz-line2{ color: #444; }

@media print{
  body.mz-printing > *:not(#mz-overlay){ display: none !important; }
  body.mz-printing #mz-overlay{ position: static; }
  body.mz-printing #mz-overlay .mz-backdrop, body.mz-printing .mz-toolbar, body.mz-printing .mz-actions{ display: none !important; }
  body.mz-printing #mz-overlay .mz-panel{ margin: 0; max-width: none; max-height: none; box-shadow: none; border: none; padding: 0; overflow: visible; }
  body.mz-printing .mz-sheet{ border: none; border-radius: 0; }
}
@media (max-width: 640px){
  #mz-overlay .mz-panel{ margin: 1.5vh 8px; padding: 10px; }
  .mz-sheet{ padding: 24px 18px; }
}

.mz-cue-card{ border: 1.5px dashed #c9c4b8; border-radius: 10px; padding: 14px 16px; margin: 12px 0; page-break-inside: avoid; }
.mz-cue-num{ font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #8a8f98; margin-bottom: 6px; }
.mz-cue-text{ font-size: 1rem; line-height: 1.65; margin: 0 0 8px; color: #20242c; }
.mz-cue-pace{ font-size: .75rem; font-style: italic; color: #8a6d3b; }

/* App dark-theme text rules must not bleed into the paper sheet. */
#mz-overlay .mz-sheet p:not([class]), #mz-overlay .mz-sheet li, #mz-overlay .mz-sheet ul, #mz-overlay .mz-sheet ol{ color: inherit; }

/* ── Continue with Google (inert until configured platform-side) ── */
.gsi-wrap{ margin-top: 16px; text-align: center; }
.gsi-divider{ display: flex; align-items: center; gap: 10px; margin-bottom: 14px; opacity: .55; font-size: .8rem; text-transform: lowercase; }
.gsi-divider::before, .gsi-divider::after{ content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35; }
.gsi-btn{ display: flex; justify-content: center; min-height: 44px; }
.gsi-btn > div{ color-scheme: light; }
.gsi-err{ color: #d97862; font-size: .85rem; margin-top: 8px; }

/* ── Conversion polish (hero pass 2) ─────────────────────────────────────
   Sticky action bar inside the premium-preview overlay (the unlock stays
   on screen while they scroll the artifact), ✓ receipts, steering badge,
   and a consistent trust line. */
.mz-panel .mz-actions{
  position: sticky; bottom: -16px; margin: 12px -16px -16px;
  padding: 14px 16px 16px;
  background: #fff;
  border-top: 1px solid #e6e4de;
  box-shadow: 0 -6px 16px 8px #fff;
}
.mz-receipt li{ position: relative; padding-left: 22px; margin: 0 0 6px; list-style: none; }
.mz-receipt li::before{ content: "\2713"; position: absolute; left: 0; top: 0; font-weight: 800; color: #16a34a; }
.mz-actions-row button, .mz-actions-row a{ position: relative; overflow: visible; }
.mz-badge{
  position: absolute; top: -9px; right: -8px; background: #f59e0b; color: #1c1917;
  font-size: .6rem; font-weight: 800; letter-spacing: .05em; padding: 2px 7px;
  border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.3); white-space: nowrap;
}

.mz-urgency{ font-size: .85rem; font-weight: 700; color: #b45309; margin: 2px 0 8px; }

/* ── Premium banners (Deliver It Kit) ─────────────────────────────────── */
.mz-banner-slot:empty, #mz-dash-banner:empty{ display: none; }
.mz-banner{ display: flex; align-items: center; gap: 12px; border-radius: 14px; padding: 12px 14px; margin: 0 0 16px;
  background: linear-gradient(90deg, rgba(212,175,90,.18), rgba(212,175,90,.06)); border: 1px solid rgba(255,255,255,.14); }
.mz-banner-text{ flex: 1; font-size: .9rem; color: #f0ede6; line-height: 1.4; }
.mz-banner-text strong{ color: #fff; }
.mz-banner .mz-banner-cta{ white-space: nowrap; flex-shrink: 0; }
.mz-banner-bar{ position: sticky; bottom: 10px; margin: 22px 0 0; box-shadow: 0 10px 30px rgba(0,0,0,.4); z-index: 30; }
@media (max-width: 640px){
  .mz-banner{ flex-wrap: wrap; }
  .mz-banner-text{ flex-basis: 100%; }
  .mz-banner .mz-banner-cta{ width: 100%; }
  .mz-banner-bar{ bottom: 6px; }
}
