/* Resonate — Editorial Studio Design System
 * Mobile-first (390px primary IG/FB webview), warm ivory paper + espresso ink + Braun vermilion accent.
 */
:root {
  --ink: #111317;
  --ink-soft: #1b1f26;
  --paper: #f6f3ec;
  --card: #ffffff;
  --line: #e4dfd4;
  --line-dark: rgba(255, 255, 255, 0.12);
  --muted: #5b606b;
  --muted-light: #b6bac3;
  --accent: #d94a27;
  --accent-hover: #be3d1d;
  --accent-soft: #fdf0ec;
  --ok: #15803d;
  --ok-soft: #eaf7ef;
  --warn: #b45309;
  --warn-soft: #fef6e7;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(17, 19, 23, 0.04), 0 12px 32px rgba(17, 19, 23, 0.07);
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 0 18px;
}

.wrap-wide {
  max-width: 820px;
}

/* Preview switcher (only visible when ?preview=1) */
.preview-bar {
  display: none;
  background: #232730;
  color: #e6e8ec;
  font-size: 12px;
  padding: 8px 14px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.preview-bar.visible { display: flex; }
.preview-bar a {
  color: #fff;
  text-decoration: none;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  font-weight: 600;
}
.preview-bar a.active {
  background: var(--accent);
  border-color: var(--accent);
}

/* Top bar */
.topbar {
  background: var(--ink);
  color: #fff;
  padding: 16px 0 0;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.brand-mark span {
  display: block;
  width: 2.5px;
  background: #fff;
  border-radius: 2px;
}
.brand-mark span:nth-child(1) { height: 7px; }
.brand-mark span:nth-child(2) { height: 14px; }
.brand-mark span:nth-child(3) { height: 10px; }

.topbar-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-light);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 4px 10px;
}

.topbar-light {
  background: var(--paper);
  color: var(--ink);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.topbar-light .topbar-tag {
  color: var(--muted);
  border-color: var(--line);
}

/* Hero (dark studio contrast) */
.hero {
  background: var(--ink);
  color: #fff;
  padding: 26px 0 34px;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f6b3a1;
  margin-bottom: 12px;
}
.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 74, 39, 0.25);
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(31px, 7.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}
.hero .sub {
  color: #d2d5dc;
  font-size: 16px;
  line-height: 1.48;
  margin: 0 0 22px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(217, 74, 39, 0.28);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-secondary:hover { background: #efebe1; }
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-sm {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 13px;
  width: auto;
}

.cta-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--muted-light);
  text-align: center;
}

/* Illustrative before/after strip */
.compare-card {
  margin-top: 22px;
  background: var(--ink-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  padding: 14px;
}
.compare-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.take-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  padding: 10px;
}
.take-box.after {
  background: rgba(21, 128, 61, 0.14);
  border-color: rgba(74, 222, 128, 0.3);
}
.take-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f6b3a1;
  margin-bottom: 4px;
}
.take-box.after .take-label { color: #86efac; }
.take-quote {
  font-size: 12.5px;
  line-height: 1.38;
  color: #eceef2;
  margin: 0 0 8px;
}
.take-quote del { color: #f87171; text-decoration-color: rgba(248,113,113,0.7); }
.take-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted-light);
}

/* Decorative acoustic bars */
.wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  margin-bottom: 7px;
}
.wave i {
  display: block;
  flex: 1;
  border-radius: 2px;
  background: rgba(255,255,255,0.22);
}
.take-box.after .wave i { background: rgba(134, 239, 172, 0.55); }

/* Sections */
.section { padding-top: 26px; padding-bottom: 26px; }
.section-title {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 6px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

/* 3-step loop */
.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.step-num {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.step h3 { margin: 0 0 2px; font-size: 15px; }
.step p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* Quiz container */
.stage { display: none; }
.stage.active { display: block; }

.progress-track {
  width: 100%;
  height: 6px;
  background: #e5e0d4;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.25s ease;
}
.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}
.quiz-back {
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  padding: 4px 0;
}
.quiz-back:hover { color: var(--ink); }
.quiz-q {
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1.18;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.quiz-hint {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--muted);
}
.opt-list {
  display: grid;
  gap: 10px;
}
.opt-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.08s ease;
}
.opt-btn:hover { border-color: var(--ink); }
.opt-btn:active { transform: scale(0.99); }
.opt-btn.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.opt-title { display: block; font-size: 15.5px; font-weight: 650; color: var(--ink); }
.opt-sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.opt-arrow { color: var(--muted); font-weight: 700; font-size: 16px; }

/* Scale buttons */
.scale-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.scale-btn {
  height: 58px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  background: var(--card);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.scale-btn:hover { border-color: var(--ink); }
.scale-btn.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.scale-ends {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

/* Results / Plan & Paywall */
.plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ok-soft);
  color: var(--ok);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 18px;
}
.chip {
  font-size: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--ink);
  font-weight: 500;
}
.week-row {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
}
.week-row:last-child { padding-bottom: 0; }
.week-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  padding-top: 2px;
}
.week-row strong { display: block; font-size: 14px; }
.week-row span { font-size: 13px; color: var(--muted); }

/* Offer card */
.offer-card {
  margin-top: 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
}
.offer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.offer-badge {
  display: inline-block;
  background: rgba(217, 74, 39, 0.22);
  color: #f8b7a6;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.offer-card h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin: 0;
  line-height: 1.15;
}
.price-block { text-align: right; }
.price-main {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.price-sub {
  font-size: 11.5px;
  color: var(--muted-light);
  margin-top: 4px;
}
.inc-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.inc-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: #e4e6eb;
}
.inc-check {
  flex: 0 0 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.2);
  color: #86efac;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}
.honest-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-size: 12px;
  color: #d0d4dc;
  margin-bottom: 14px;
  line-height: 1.42;
}
.honest-box strong { color: #86efac; }

.preview-notice {
  display: none;
  margin-top: 12px;
  background: var(--warn-soft);
  color: var(--warn);
  border: 1px solid #f5d08a;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12.5px;
}
.preview-notice.visible { display: block; }

/* Alert banner (in-app browser warning on thanks.html) */
.banner {
  background: var(--warn-soft);
  border: 1px solid #f2cf8d;
  color: #7c3a04;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 13.5px;
}
.banner strong { display: block; margin-bottom: 3px; }

/* Forms & uploads */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 5px;
}
.field input[type="email"],
.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}
.prompt-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
}
.prompt-card.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.prompt-card input { margin-right: 7px; }
.prompt-card p { margin: 5px 0 0; font-size: 13.5px; color: var(--muted); }

.dropzone {
  border: 2px dashed #cbc5b7;
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  background: var(--paper);
  margin-bottom: 12px;
}
.rec-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.timer-pill {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Vault track cards */
.track {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 10px;
}
.track-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.track-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}
.track h3 { margin: 0; font-size: 16px; }
.track-dur { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.track p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }

/* FAQ & Footer */
details.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  margin-bottom: 8px;
}
details.faq summary {
  font-weight: 650;
  font-size: 14.5px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--muted); }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }

footer {
  padding: 24px 0 40px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
footer a { color: var(--muted); text-underline-offset: 2px; margin: 0 7px; }

/* Legal prose */
.prose h1 { font-family: var(--font-serif); font-size: 30px; margin: 0 0 8px; }
.prose h2 { font-size: 17px; margin: 22px 0 6px; }
.prose p, .prose li { font-size: 14.5px; color: #2b303a; }

@media (max-width: 400px) {
  .compare-grid { grid-template-columns: 1fr; }
  .offer-top { flex-direction: column; }
  .price-block { text-align: left; }
}
