/* Newsreader (headline serif) + Inter (body sans), embedded from fonts/ --
   both variable fonts, sourced from Google Fonts' official GitHub repo
   (OFL-licensed, see fonts/OFL-*.txt). */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader.ttf");
  font-weight: 200 800;
  font-style: normal;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Italic.ttf");
  font-weight: 200 800;
  font-style: italic;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter.ttf");
  font-weight: 100 900;
  font-style: normal;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Italic.ttf");
  font-weight: 100 900;
  font-style: italic;
}

:root {
  --ivory: #F7F4EC;
  --ink: #2B2823;
  --muted: #746B5E;
  --accent: #9C6B4A;
  --rule: #E1D9C8;
  --max-width: 720px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, .serif {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  color: var(--ink);
}

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

.hero { text-align: center; padding: 56px 20px 32px; }
.hero h1 { font-size: 30px; line-height: 1.25; margin: 0 0 14px; }
.hero .sub { font-size: 16px; color: var(--muted); margin: 0 0 22px; }
.hero .trust { font-size: 12.5px; color: var(--accent); letter-spacing: 0.02em; }
.hero-media { margin: 30px auto 0; }
.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(43, 40, 35, 0.10);
}

.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  margin: 8px 0 18px;
}
.btn-cta:active { opacity: 0.85; }

.tiles { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 24px 20px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}
.tile-icon { width: 32px; height: 32px; margin: 0 0 10px; }
.tile h3 { font-size: 15px; margin: 0 0 6px; }
.tile p { font-size: 13.5px; color: var(--muted); margin: 0; }

.section { padding: 32px 20px; border-top: 1px solid var(--rule); }
.section h2 { font-size: 22px; text-align: center; margin: 0 0 20px; }

.steps { display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .num {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Newsreader", serif;
  font-size: 14px;
}
.step h3 { font-size: 15px; margin: 0 0 2px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }

.product-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}
.price { font-size: 28px; margin: 10px 0 4px; }
.guarantee { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.chapters { text-align: left; font-size: 13.5px; color: var(--ink); padding-left: 18px; }

.honesty {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 22px;
}
.honesty h2 { font-size: 19px; margin: 0 0 14px; }
.honesty-cols { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 640px) { .honesty-cols { flex-direction: row; } }
.honesty-cols > div { flex: 1; }
.honesty-cols h4 { margin: 0 0 8px; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.honesty-cols ul { list-style: none; margin: 0; padding-left: 0; font-size: 13.5px; }
.honesty-cols li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.honesty-cols li:last-child { margin-bottom: 0; }
.not-doing-list li::before { content: "\2715"; position: absolute; left: 0; top: 0.5px; color: var(--muted); font-size: 11px; }
.doing-list li::before { content: "\2713"; position: absolute; left: 0; top: 0.5px; color: var(--accent); font-weight: 700; font-size: 12px; }

.faq-item { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.faq-item p { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }

footer { padding: 24px 20px 40px; text-align: center; font-size: 12px; color: var(--muted); }
footer .links a { color: var(--muted); margin: 0 6px; text-decoration: underline; }
footer .disclaimer { margin-top: 14px; font-style: italic; }

/* Quiz + free result page */
.progress { height: 4px; background: var(--rule); border-radius: 2px; margin: 20px 0; overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent); width: 0%; transition: width 0.2s; }

.question { display: none; }
.question.active { display: block; }
.question h2 { font-size: 19px; margin-bottom: 16px; }

.option-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  margin-bottom: 10px;
  cursor: pointer;
}
.option-btn:active, .option-btn.selected { border-color: var(--accent); background: #FBF3EA; }

.intake-field { margin-bottom: 16px; text-align: left; }
.intake-field label { display: block; font-size: 13.5px; margin-bottom: 5px; font-weight: 600; }
.intake-field .hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.intake-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
}

.result-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 24px;
}
.result-card h2 { font-size: 21px; margin: 0 0 10px; }
.result-card p { font-size: 14.5px; }
.result-transition { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); }
.share-btn {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 13.5px;
  cursor: pointer;
  margin-top: 10px;
}

.hidden { display: none !important; }

/* Legal pages + checkout */
.legal { max-width: 640px; margin: 0 auto; padding: 40px 20px 60px; }
.legal h1 { font-size: 26px; margin-bottom: 6px; }
.legal .legal-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 28px; }
.legal h2 { font-size: 17px; margin-top: 28px; margin-bottom: 8px; }
.legal p, .legal li { font-size: 14px; color: var(--ink); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }
.legal .draft-notice {
  background: #FBF3EA;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 28px;
}

.consent-banner {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 6px 24px rgba(43,40,35,0.12);
  font-size: 13px;
  z-index: 999;
}
.consent-banner p { margin: 0 0 10px; color: var(--muted); }
.consent-banner .consent-actions { display: flex; gap: 10px; }
.consent-banner button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.consent-accept { background: var(--accent); color: #fff; border: none; }
.consent-decline { background: none; border: 1px solid var(--rule); color: var(--ink); }

.checkout-form .intake-field { margin-bottom: 16px; }
.checkout-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--muted);
  margin: 18px 0;
}
.checkout-consent input { margin-top: 3px; }

/* Language switcher -- fixed upper-right on every page */
.lang-switcher {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1000;
  font-family: "Inter", -apple-system, sans-serif;
}
.lang-switcher-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(43,40,35,0.08);
}
.lang-flag { font-size: 15px; line-height: 1; }
.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(43,40,35,0.14);
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 160px;
}
.lang-switcher-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}
.lang-switcher-option:hover { background: var(--ivory); }
.lang-switcher-option.active { font-weight: 700; color: var(--accent); }

@media (max-width: 480px) {
  .lang-switcher { top: 10px; right: 10px; }
  .lang-switcher-toggle .lang-code { display: none; }
}
