:root {
  --bg: #f7f3ee;
  --bg-deep: #efe8df;
  --ink: #1e2a24;
  --muted: #5a6b66;
  --accent: #e87800;
  --accent-dark: #c96600;
  --accent-soft: #fff3e6;
  --card: #fffcf8;
  --line: rgba(30, 42, 36, 0.1);
  --ok: #1c6b4a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(30, 42, 36, 0.07);
  --max: 1080px;
  --quiz-max: 560px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); }
img { max-width: 100%; }

/* ——— Site nav ——— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo span { color: var(--accent); }
.nav-links {
  display: none;
  gap: 22px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(232, 120, 0, 0.3);
}
.nav-cta:hover { background: var(--accent-dark); }
.nav-burger {
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
}
@media (min-width: 760px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
  .nav-links .nav-cta { margin-left: 8px; }
}

/* ——— Landing layout ——— */
.landing-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 20px;
}
.landing-section.narrow { max-width: 720px; }
.section-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 10px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 28px;
  max-width: 36em;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 20px 64px;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 36px;
}
.hero-blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 120, 0, 0.18), transparent 70%);
  top: -80px;
  right: -100px;
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; max-width: 560px; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5.5vw, 3.2rem);
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 34em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(232, 120, 0, 0.35);
  text-decoration: none;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--muted);
}
.hero-trust span::before {
  content: "✓ ";
  color: var(--ok);
  font-weight: 700;
}
.hero-card {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.hero-card .tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.hero-card h3 {
  font-family: var(--serif);
  margin: 0 0 8px;
  font-size: 1.25rem;
}
.hero-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-card li { margin-bottom: 6px; }
@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    padding-top: 64px;
    padding-bottom: 80px;
  }
}

/* How it works */
.steps-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 700px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
}
.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fbfaf6;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Why us */
.why-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 700px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
.why-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  gap: 14px;
}
.why-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.why-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.why-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Pricing */
.pricing-band {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.price-grid {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}
@media (min-width: 700px) {
  .price-grid { grid-template-columns: 1fr 1fr 0.85fr; align-items: stretch; }
}
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(232, 120, 0, 0.2), var(--shadow);
}
.price-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.price-card .amount {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}
.price-card .amount small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  font-family: var(--sans);
}
.price-card h3 { margin: 6px 0 8px; font-size: 1.1rem; }
.price-card .desc { color: var(--muted); font-size: 0.92rem; margin: 0 0 16px; flex: 1; }
.price-card ul {
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}
.price-card li { margin-bottom: 6px; }
.price-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 20px 0 0;
}

/* Social proof */
.proof-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 700px) {
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
}
.proof-card {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.proof-card .label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 10px;
}
.proof-card blockquote {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--ink);
}
.proof-card cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}
.proof-disclaimer {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 12px 14px;
}

/* FAQ */
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 18px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 0.95rem;
}
.faq-item a { font-weight: 600; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #1e2a24;
  color: #d9d2c6;
  padding: 40px 20px 48px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}
@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: #fbfaf6;
  margin: 0 0 8px;
}
.footer-brand span { color: var(--accent); }
.site-footer p { margin: 0 0 8px; font-size: 0.9rem; }
.site-footer a { color: #f3c98a; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-col h4 {
  margin: 0 0 10px;
  color: #fbfaf6;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-bottom {
  max-width: var(--max);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: #9aa39c;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
}

/* Final CTA band */
.cta-band {
  text-align: center;
  padding: 56px 20px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--accent-soft) 100%);
}
.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  margin: 0 0 12px;
}
.cta-band p { color: var(--muted); margin: 0 0 22px; }

/* ——— Quiz shell ——— */
#app-quiz-shell.hidden,
.hidden { display: none !important; }

.quiz-wrap {
  max-width: var(--quiz-max);
  margin: 0 auto;
  padding: 20px 18px 120px;
}
.quiz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.quiz-topbar .logo { font-size: 1rem; }
.quiz-exit {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.rules {
  background: var(--accent-soft);
  border: 1px solid rgba(232, 120, 0, 0.28);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
}
.rules strong { color: var(--ink); }
.rules ul { margin: 8px 0 0; padding-left: 18px; }

.quiz-wrap h1 {
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.2;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.sub { color: var(--muted); margin: 0 0 20px; }
.progress {
  height: 8px;
  background: rgba(232, 120, 0, 0.15);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress > i {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width 0.25s;
}
.stepnum { font-size: 12px; color: var(--muted); margin-bottom: 16px; }

label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 15px; }
.hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input[type=text],
input[type=email],
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
}
textarea { min-height: 96px; resize: vertical; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid #c8d0da;
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 15px;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
}
.chip.on {
  background: #243129;
  color: #fbfaf6;
  border-color: #243129;
}

.quiz-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(247, 243, 238, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
}
.quiz-nav-inner {
  max-width: var(--quiz-max);
  margin: 0 auto;
  display: flex;
  gap: 10px;
}
button.btn {
  flex: 1;
  height: 48px;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
button.back {
  flex: 0.7;
  background: #fff;
  border: 1px solid var(--line) !important;
  color: var(--muted);
}
button.next {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 120, 0, 0.35);
  flex: 1.4;
}
button.next:hover { background: var(--accent-dark); }
button.next:disabled { opacity: 0.55; cursor: not-allowed; }

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  margin: 10px 0;
}
.tier {
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.tier.on {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(232, 120, 0, 0.25);
}
.price { font-size: 22px; font-weight: 800; }
.badge {
  display: inline-block;
  background: #fff3e0;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 6px;
}
.checkrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.total { font-size: 18px; font-weight: 700; margin-top: 12px; }
.err { color: #c62828; font-size: 13px; margin-top: 6px; }
.linkish {
  background: none;
  border: 0;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  font-family: inherit;
}
.gen { text-align: center; padding: 28px 8px; }
.gen .bar {
  height: 10px;
  background: #e8e0d5;
  border-radius: 999px;
  overflow: hidden;
  margin: 16px 0;
}
.gen .bar > i {
  display: block;
  height: 100%;
  width: 8%;
  background: var(--ok);
  transition: width 0.4s;
}

body.quiz-mode .site-nav,
body.quiz-mode #landing-root,
body.quiz-mode .site-footer {
  display: none !important;
}
