:root {
  --bg: #060913;
  --bg-elev: #0d1224;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.095);
  --border: rgba(255, 255, 255, 0.13);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent-1: #38bdf8;
  --accent-2: #a855f7;
  --accent-3: #ec4899;
  --accent-lime: #b8ff3c;
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
}

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

body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 92vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 52% 45% at 18% 18%, rgba(56, 189, 248, 0.22), transparent 68%),
    radial-gradient(ellipse 46% 42% at 84% 22%, rgba(168, 85, 247, 0.22), transparent 68%),
    radial-gradient(ellipse 42% 38% at 54% 62%, rgba(236, 72, 153, 0.14), transparent 72%);
  filter: blur(16px);
}

a { color: var(--accent-1); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Single-Row Compact Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(6, 9, 19, 0.86);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #38bdf8 0%, #a855f7 52%, #ec4899 100%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links a { color: var(--muted); transition: color 0.15s ease; }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.32);
  white-space: nowrap;
}

/* Hero Workspace */
.hero {
  padding: 28px 0 24px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  white-space: nowrap;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
}

.hero-copy-col {
  display: flex;
  flex-direction: column;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.1vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.grad-text {
  background: linear-gradient(110deg, #38bdf8 0%, #c084fc 48%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 550px;
}

/* STRICTLY Mobile-Only Instant Action Bar — hidden on desktop (>920px)! */
.mobile-quick-actions {
  display: none;
}

/* Dropzone */
.dropzone {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 24px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  border: 1.5px dashed rgba(125, 211, 252, 0.45);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  text-align: center;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.is-dragover {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16), 0 20px 48px rgba(0, 0, 0, 0.42);
  transform: translateY(-2px);
}

.dropzone-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(168, 85, 247, 0.26));
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}

.dropzone h2 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin: 0 0 6px;
}

.dropzone p {
  color: var(--muted);
  font-size: 0.87rem;
  margin: 0 0 14px;
}

.format-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-bottom: 16px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #cbd5e1;
}
.chip.is-highlight {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.12);
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.btn-row .btn-primary { grid-column: 1 / -1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  color: #060913;
  background: linear-gradient(120deg, #38bdf8 0%, #c084fc 55%, #f472b6 100%);
  box-shadow: 0 10px 28px rgba(168, 85, 247, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(56, 189, 248, 0.42);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.085);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.14); }

.btn-sm {
  padding: 9px 12px;
  font-size: 0.82rem;
  border-radius: 10px;
}

.status-banner {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 0.86rem;
  display: none;
  text-align: left;
}
.status-banner.is-visible { display: block; }
.status-banner.is-error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.42);
  color: #fecaca;
}
.status-banner.is-warn {
  background: rgba(251, 146, 60, 0.14);
  border: 1px solid rgba(251, 146, 60, 0.42);
  color: #fed7aa;
}
.status-banner.is-success {
  background: rgba(34, 197, 94, 0.13);
  border: 1px solid rgba(34, 197, 94, 0.38);
  color: #bbf7d0;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* =========================================================================
   WYSIWYG LIVE CANVAS STORY THEATER (v3)
   Renders the EXACT exported poster pixels — zero dark empty mockup box!
   ========================================================================= */
.theater-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.story-stage {
  position: relative;
  width: 100%;
  max-width: 404px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #0b1035;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  display: flex;
  flex-direction: column;
  user-select: none;
}

.story-stage[data-format="9:16"] {
  max-width: 318px;
}

.story-progress {
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  display: flex;
  gap: 5px;
  z-index: 6;
  pointer-events: auto;
}

.prog-seg {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: rgba(15, 23, 42, 0.42);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  cursor: pointer;
}

.prog-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 99px;
  transition: width 0.25s ease;
}
.prog-seg.is-done .prog-fill,
.prog-seg.is-active .prog-fill { width: 100%; }

.story-canvas-wrap {
  position: relative;
  width: 100%;
  background: linear-gradient(160deg, #0b1035 0%, #312e81 100%);
  cursor: pointer;
}

#story-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
}

.story-stage[data-format="9:16"] #story-canvas {
  aspect-ratio: 9 / 16;
}

.story-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: rgba(8, 12, 28, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.story-slide-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}

.story-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  border-radius: 9px;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
}
.story-nav-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Opt-in Personal Moment Reveal Drawer */
.moment-controls {
  display: none;
  width: 100%;
  max-width: 404px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(192, 132, 252, 0.36);
  flex-direction: column;
  gap: 8px;
}
.moment-controls.is-visible { display: flex; }

.moment-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: #e9d5ff;
}

.moment-input {
  width: 100%;
  background: rgba(6, 9, 19, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.86rem;
  padding: 8px 11px;
}

/* Studio Controls */
.studio-controls {
  width: 100%;
  max-width: 404px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.control-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.pill-btn {
  border-radius: 999px;
  padding: 6px 11px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
}
.pill-btn.is-active,
.pill-btn:hover {
  color: var(--text);
  border-color: var(--accent-1);
  background: rgba(56, 189, 248, 0.16);
}

.export-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Sections, Platform Cards, Breakdown, FAQ */
.section {
  padding: 46px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  max-width: 740px;
  margin-bottom: 24px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.section-header p { color: var(--muted); margin: 0; }

.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.dash-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.dash-card .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
}
.dash-card .num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  margin: 6px 0 4px;
}
.dash-card .hint { font-size: 0.82rem; color: var(--muted); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.step-card h3 { font-family: var(--font-display); font-size: 1.08rem; margin: 0 0 8px; }
.step-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }
.step-card .card-link {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
}

.callout-warn {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(251, 146, 60, 0.1);
  border: 1px solid rgba(251, 146, 60, 0.34);
  color: #fed7aa;
  font-size: 0.91rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: 0.91rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); }
th { font-family: var(--font-display); color: var(--text); background: rgba(255, 255, 255, 0.04); }
td { color: #cbd5e1; }
tr:last-child td { border-bottom: none; }

.faq-list { display: grid; gap: 11px; }
.faq-item {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px 18px;
}
.faq-item summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::after { content: "+"; color: var(--accent-1); font-size: 1.25rem; font-family: var(--font-mono); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); margin: 10px 0 0; font-size: 0.92rem; }

.prose { max-width: 780px; padding: 40px 0 60px; }
.prose h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.12; margin: 0 0 14px; }
.prose h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 32px 0 10px; }
.prose h3 { font-family: var(--font-display); font-size: 1.1rem; margin: 22px 0 8px; }
.prose p, .prose li { color: #cbd5e1; font-size: 0.97rem; }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 46px;
  color: var(--muted);
  font-size: 0.84rem;
}
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.disclaimer { font-size: 0.77rem; color: #64748b; max-width: 820px; }

/* MOBILE FIRST-SCREEN OVERHAUL (390x844 phone — ENTIRE 4:5 live poster fits inside first screen!) */
@media (max-width: 920px) {
  .header-inner { min-height: 52px; }
  .hero { padding: 10px 0 22px; }
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .hero-copy-col { display: contents; }
  .hero-heading-group { order: 1; }
  .mobile-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    order: 2;
    margin: 0;
  }
  .theater-shell { order: 3; }
  .dropzone-block { order: 4; margin-top: 4px; }

  .hero-eyebrow { display: none; }
  .hero h1 { font-size: 1.56rem; line-height: 1.08; margin: 0 0 4px; }
  .hero-lead { font-size: 0.84rem; margin: 0; line-height: 1.35; }
  .story-stage {
    max-width: 360px;
    border-radius: 22px;
  }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .nav-links .hide-mobile { display: none; }
  .privacy-pill { display: none; }
  .nav-links { gap: 12px; font-size: 0.84rem; }
}

@media (max-width: 480px) {
  .dash-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   WHATSAPP WRAPPED EMERALD ACCENTS & LEADERBOARD EXTRAS (`.page-whatsapp`)
   ========================================================================= */
.page-whatsapp::before {
  background:
    radial-gradient(ellipse 52% 45% at 18% 18%, rgba(37, 211, 102, 0.22), transparent 68%),
    radial-gradient(ellipse 46% 42% at 84% 22%, rgba(56, 189, 248, 0.2), transparent 68%),
    radial-gradient(ellipse 42% 38% at 54% 62%, rgba(184, 255, 60, 0.12), transparent 72%);
}

.page-whatsapp .hero-eyebrow {
  background: rgba(37, 211, 102, 0.13);
  border-color: rgba(37, 211, 102, 0.36);
  color: #86efac;
}

.grad-text-wa {
  background: linear-gradient(110deg, #25d366 0%, #34d399 45%, #b8ff3c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-whatsapp .dropzone {
  border-color: rgba(37, 211, 102, 0.48);
}

.page-whatsapp .dropzone:hover,
.page-whatsapp .dropzone:focus-visible,
.page-whatsapp .dropzone.is-dragover {
  border-color: #25d366;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.18), 0 20px 48px rgba(0, 0, 0, 0.42);
}

.page-whatsapp .dropzone-icon {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.24), rgba(56, 189, 248, 0.22));
}

.page-whatsapp .chip.is-highlight {
  color: #86efac;
  border-color: rgba(37, 211, 102, 0.44);
  background: rgba(37, 211, 102, 0.12);
}

.page-whatsapp .btn-primary {
  color: #04130b;
  background: linear-gradient(120deg, #25d366 0%, #34d399 52%, #b8ff3c 100%);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.3);
}
.page-whatsapp .btn-primary:hover {
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.42);
}

.page-whatsapp .story-stage {
  background: #04261e;
}
.page-whatsapp .story-canvas-wrap {
  background: linear-gradient(160deg, #04261e 0%, #0e5a46 100%);
}

.page-whatsapp .step-num {
  background: rgba(37, 211, 102, 0.16);
  border-color: rgba(37, 211, 102, 0.38);
  color: #86efac;
}

.pill-btn.is-privacy-on {
  color: #bbf7d0;
  border-color: rgba(37, 211, 102, 0.6);
  background: rgba(37, 211, 102, 0.2);
}

.wa-emoji-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.wa-emoji-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text);
}
.wa-emoji-pill .em {
  font-size: 1.2rem;
  line-height: 1;
}

.wa-crosslink-banner {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(37, 211, 102, 0.12), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(37, 211, 102, 0.32);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.wa-crosslink-banner h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin: 0 0 4px;
}
.wa-crosslink-banner p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
