:root {
  --ink: #1f211f;
  --muted: #68675f;
  --faint: #8a897f;
  --paper: #f8f5ef;
  --paper-deep: #eee8dd;
  --card: rgba(255, 253, 249, 0.86);
  --card-solid: #fffdfa;
  --line: rgba(65, 67, 60, 0.17);
  --line-strong: rgba(65, 67, 60, 0.28);
  --forest: #31443b;
  --forest-dark: #22342d;
  --sage: #aebcae;
  --gold: #b58a4b;
  --gold-pale: #e5d7bd;
  --danger: #9f3d35;
  --shadow: 0 28px 80px rgba(44, 42, 34, 0.10);
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -5%, rgba(181, 138, 75, 0.13), transparent 34rem),
    radial-gradient(circle at 100% 30%, rgba(49, 68, 59, 0.10), transparent 32rem),
    linear-gradient(145deg, var(--paper), var(--paper-deep));
  font-family: "Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.44;
  background-image: linear-gradient(rgba(64, 63, 57, .032) 1px, transparent 1px), linear-gradient(90deg, rgba(64, 63, 57, .025) 1px, transparent 1px);
  background-size: 28px 28px;
}

button, input { font: inherit; }
a { color: inherit; }
.hidden { display: none !important; }

.site-header,
.site-footer,
.page-shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--forest);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; letter-spacing: .02em; }
.brand-copy small, .header-note { color: var(--muted); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.header-note { margin: 0; }

.page-shell { position: relative; padding: 82px 0 68px; }
.intro-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .65fr); gap: 64px; align-items: end; }
.intro-copy { max-width: 760px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.5;
  text-transform: uppercase;
}
h1, h2 { font-family: "Cormorant Garamond", Georgia, serif; letter-spacing: -.035em; }
h1 { max-width: 780px; margin: 0; font-size: clamp(4rem, 8vw, 6.9rem); font-weight: 600; line-height: .94; }
.lead { max-width: 720px; margin: 28px 0 0; color: #3f433f; font-size: 1.18rem; line-height: 1.82; }
.sublead { max-width: 650px; margin: 15px 0 0; color: var(--muted); font-size: .98rem; line-height: 1.75; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 34px; }
.quiet-meta { color: var(--muted); font-size: .76rem; letter-spacing: .05em; }

.primary, .secondary, .text-link, .amazon-btn, .whatsapp-btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 15px 23px;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.primary { color: #fff; background: var(--forest); box-shadow: 0 12px 24px rgba(34, 52, 45, .16); font-size: .9rem; font-weight: 700; letter-spacing: .035em; }
.primary:hover { background: var(--forest-dark); box-shadow: 0 16px 28px rgba(34, 52, 45, .22); transform: translateY(-2px); }
.secondary { border: 1px solid var(--line-strong); color: var(--muted); background: rgba(255,255,255,.33); font-size: .84rem; font-weight: 700; }
.secondary:hover { color: var(--ink); background: rgba(255,255,255,.62); border-color: var(--forest); }

.editorial-panel {
  padding: 28px 0 5px 30px;
  border-left: 1px solid var(--line-strong);
}
.panel-kicker { margin: 0 0 22px; color: var(--forest); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.panel-list { display: grid; gap: 17px; margin: 0; padding: 0; list-style: none; }
.panel-list li { display: grid; grid-template-columns: 35px 1fr; gap: 12px; }
.panel-list span { color: var(--gold); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.2rem; }
.panel-list p { margin: 1px 0 0; color: #4f514c; font-size: .92rem; line-height: 1.65; }
.panel-footnote { margin: 26px 0 0; color: var(--faint); font-size: .75rem; line-height: 1.6; }

.quiz-shell,
.result-shell,
.privacy-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(25px, 5vw, 58px);
  border: 1px solid rgba(77, 78, 70, .15);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(15px);
}
.quiz-header { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.progress-title { margin: 0; color: var(--forest); font-size: .86rem; font-weight: 700; letter-spacing: .04em; }
.progress-number { color: var(--gold); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.85rem; line-height: 1; }
.progress-bar { height: 3px; margin: 21px 0 47px; overflow: hidden; border-radius: 999px; background: var(--gold-pale); }
.progress-fill { height: 100%; background: var(--forest); transition: width .32s ease; }
.question-text { max-width: 740px; margin: 0 0 30px; font-size: clamp(2.15rem, 5vw, 3.35rem); font-weight: 600; line-height: 1.08; }
.options-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.option-btn {
  min-height: 72px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: #464943;
  background: rgba(255, 255, 255, .54);
  cursor: pointer;
  font-size: .91rem;
  font-weight: 600;
  letter-spacing: .015em;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}
.option-btn:hover { border-color: var(--forest); background: rgba(255,255,255,.86); transform: translateY(-1px); }
.option-btn.selected { border-color: var(--forest); color: #fff; background: var(--forest); }

.email-step { max-width: 680px; }
.email-step h2 { margin: 0; color: var(--ink); font-size: clamp(3rem, 7vw, 4.8rem); font-weight: 600; line-height: .96; }
.email-intro { margin: 18px 0 26px; color: var(--muted); font-size: .97rem; line-height: 1.75; }
.email-step > label[for="email"] { display: block; margin: 0 0 8px; color: var(--forest); font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.email-step input[type="email"] { width: 100%; padding: 16px 17px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); background: rgba(255,255,255,.74); font-size: 1rem; }
.email-step input[type="email"]:focus { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(49,68,59,.10); outline: none; }
.consent-row { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; margin: 17px 0 0; color: var(--muted); cursor: pointer; font-size: .78rem; line-height: 1.55; }
.consent-row input { accent-color: var(--forest); margin-top: 3px; }
.privacy { margin: 15px 0 0; color: var(--faint); font-size: .73rem; line-height: 1.65; }
.privacy a { color: var(--forest); }
.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 37px; }
.error { min-height: 1.5em; margin: 15px 0 0; color: var(--danger); font-size: .8rem; font-weight: 700; }

.result-shell { max-width: 970px; }
.result-topline { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.result-number { color: var(--muted); font-size: .69rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.result-shell h1 { max-width: none; margin-top: 35px; font-size: clamp(4.1rem, 10vw, 7.6rem); }
.result-deck { max-width: 770px; margin: 21px 0 0; color: #4a4c47; font-size: 1.06rem; line-height: 1.86; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(250px, .87fr); gap: 17px; margin-top: 33px; }
.insight-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.46); }
.insight-label { margin: 0 0 11px; color: var(--gold); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.insight-card p:last-child { margin: 0; color: #4a4c47; font-size: .92rem; line-height: 1.77; }
.book-line { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.7rem !important; font-style: italic; line-height: 1.22 !important; }
.cta-section { margin-top: 42px; padding-top: 32px; border-top: 1px solid var(--line); }
.cta-section h2 { margin: 0; font-size: clamp(2.7rem, 6vw, 4.2rem); font-weight: 600; line-height: 1; }
.cta-copy { max-width: 720px; margin: 12px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.75; }
.book-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-top: 20px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.54); }
.book-kicker { margin: 0 0 7px; color: var(--gold); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.book-title { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 2rem; font-weight: 700; line-height: 1; }
.book-subtitle { max-width: 610px; margin: 8px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.book-actions { display: grid; justify-items: stretch; gap: 8px; min-width: 205px; }
.amazon-btn { border: 1px solid var(--forest); color: #fff; background: var(--forest); font-size: .76rem; font-weight: 700; }
.amazon-btn:hover { background: var(--forest-dark); transform: translateY(-1px); }
.amazon-btn.outline { color: var(--forest); background: transparent; }
.amazon-btn.outline:hover { color: #fff; background: var(--forest); }
.market-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 11px; }
.market-links a { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .03em; }
.market-links a:hover { color: var(--forest); }
.secondary-book { margin-top: 14px; opacity: .92; }
.channel-strip { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin-top: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(49,68,59,.06); }
.channel-strip p { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.65; }
.channel-strip strong { color: var(--forest); }
.whatsapp-btn { border: 1px solid var(--forest); color: var(--forest); background: rgba(255,255,255,.35); font-size: .76rem; font-weight: 700; }
.whatsapp-btn:hover { color: #fff; background: var(--forest); transform: translateY(-1px); }
.result-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-top: 28px; color: var(--faint); font-size: .72rem; }
.text-link { padding: 0; color: var(--forest); background: transparent; border-radius: 0; font-size: .74rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--forest-dark); }

.privacy-shell h1 { margin-bottom: 20px; font-size: clamp(3.2rem, 8vw, 5.8rem); }
.privacy-shell h2 { margin: 30px 0 8px; font-size: 2.05rem; }
.privacy-shell p, .privacy-shell li { color: var(--muted); font-size: .89rem; line-height: 1.8; }
.site-footer { padding: 0 0 24px; color: var(--faint); font-size: .68rem; letter-spacing: .04em; }



.intro-library { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(77, 78, 70, .12); }
.library-kicker { margin: 0 0 14px; color: var(--gold); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.library-book { margin: 0; }
.library-book img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 18px 34px rgba(38, 40, 35, .10); }
.library-book figcaption { margin-top: 9px; color: var(--muted); font-size: .73rem; font-weight: 700; letter-spacing: .02em; }
.library-note { margin: 12px 0 0; color: var(--faint); font-size: .74rem; line-height: 1.6; }

.book-card.with-cover { grid-template-columns: 116px minmax(0, 1fr) auto; gap: 22px; }
.cover-wrap { align-self: stretch; display: flex; align-items: center; }
.book-cover { display: block; width: 100%; max-width: 116px; height: auto; border-radius: 15px; border: 1px solid rgba(50, 53, 48, .12); box-shadow: 0 16px 32px rgba(33, 37, 33, .12); }

@media (max-width: 820px) {
  .page-shell { padding-top: 57px; }
  .intro-layout { grid-template-columns: 1fr; gap: 35px; }
  .editorial-panel { padding-top: 2px; }
  .result-grid { grid-template-columns: 1fr; }
  .book-card, .channel-strip { grid-template-columns: 1fr; }
  .book-card.with-cover { grid-template-columns: 1fr; }
  .cover-wrap { justify-content: start; }
  .book-cover { max-width: 128px; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-actions { min-width: 0; }
}

@media (max-width: 560px) {
  .site-header, .site-footer, .page-shell { width: min(100% - 26px, 1120px); }
  .header-note { display: none; }
  h1 { font-size: clamp(3.65rem, 18vw, 5.2rem); }
  .lead { font-size: 1.03rem; }
  .quiz-shell, .result-shell, .privacy-shell { padding: 23px 18px; border-radius: 22px; }
  .question-text { font-size: 2.34rem; }
  .options-list { grid-template-columns: 1fr; }
  .option-btn { min-height: 60px; }
  .result-shell h1 { font-size: 4.8rem; }
  .library-grid { grid-template-columns: 1fr 1fr; }
  .result-topline { align-items: start; flex-direction: column; gap: 6px; }
}


/* Optional analytics consent */
.consent-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  max-width: 1060px;
  margin: 0 auto;
  padding: 18px 19px;
  border: 1px solid rgba(77, 78, 70, .18);
  border-radius: 20px;
  background: rgba(250, 247, 240, .97);
  box-shadow: 0 18px 48px rgba(31, 42, 37, .16);
  backdrop-filter: blur(16px);
}
.consent-copy p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.65; }
.consent-copy .consent-title { margin-bottom: 3px; color: var(--forest); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.consent-copy a { color: var(--forest); font-weight: 700; }
.consent-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.consent-btn { padding: 11px 14px; border: 1px solid var(--forest); border-radius: 999px; cursor: pointer; font-size: .72rem; font-weight: 700; transition: transform .16s ease, background .16s ease, color .16s ease; }
.consent-btn:hover { transform: translateY(-1px); }
.consent-decline { color: var(--forest); background: transparent; }
.consent-accept { color: #fff; background: var(--forest); }
@media (max-width: 720px) {
  .consent-banner { grid-template-columns: 1fr; right: 12px; bottom: 12px; left: 12px; padding: 15px; border-radius: 17px; }
  .consent-actions { justify-content: stretch; }
  .consent-btn { flex: 1 1 190px; }
}
