/* FORM. — Daily vitamin brand */
:root {
  --bg: #fbfaf7;          /* near-white */
  --bg-alt: #f1ede4;      /* soft sand */
  --ink: #1c2418;         /* deep forest near-black */
  --ink-soft: #4a5142;
  --rule: #e6e0d2;
  --sage: #4F7942;        /* brand green */
  --sage-deep: #3d5e33;
  --terracotta: #C96249;  /* brand orange */
  --cream: #ffffff;
  --display: "Instrument Serif", "Times New Roman", serif;
  --brand: "Lora", "Instrument Serif", "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.serif { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ---------- Top bar ---------- */
.announce {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 16px;
}
.announce span { opacity: 0.85; }
.announce strong { font-weight: 500; margin-left: 8px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.nav.scrolled { border-bottom-color: var(--rule); background: rgba(251,250,247,0.92); backdrop-filter: blur(10px); }
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 18px 0;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; }
.nav-links a:hover { color: var(--sage-deep); }
.brand {
  font-family: var(--brand);
  font-size: 28px;
  letter-spacing: -0.01em;
  text-align: center;
}
.brand .dot { color: var(--terracotta); }
.nav-actions { display: flex; gap: 22px; align-items: center; justify-content: flex-end; font-size: 14px; }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--terracotta);
  color: var(--terracotta);
  border-radius: 999px;
}
.cart-btn:hover { background: var(--terracotta); color: var(--cream); }
.cart-count { font-family: var(--mono); font-size: 11px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 80px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-family: var(--brand);
  font-weight: 400;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 24px 0 28px;
}
.hero h1 em { font-style: italic; color: var(--sage-deep); }
.hero-sub {
  font-size: 18px;
  max-width: 460px;
  color: var(--ink-soft);
  margin: 0 0 36px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--sage-deep); }
.btn-secondary { border: 1px solid var(--terracotta); color: var(--terracotta); }
.btn-secondary:hover { background: var(--terracotta); color: var(--cream); }
.btn-ghost { padding: 14px 0; }
.btn-ghost::after {
  content: "→"; margin-left: 8px;
  transition: transform 0.2s;
}
.btn-ghost:hover::after { transform: translateX(4px); }

.hero-meta {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.hero-meta .stat-num { font-family: var(--display); font-size: 38px; line-height: 1; }
.hero-meta .stat-lbl { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* Hero product */
.product-stage {
  position: relative;
  aspect-ratio: 4/5;
  background-image: url('/hero-linen.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
}
.stage-grain::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(28,36,24,0.04) 0 1px, transparent 1px 6px);
  pointer-events: none;
}
.product-card {
  position: absolute; inset: 12% 18%;
  background: var(--cream);
  border-radius: 14px;
  padding: 28px 22px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 30px 60px -20px rgba(28,36,24,0.35);
}
.product-card .lid {
  height: 32px;
  background: var(--ink);
  border-radius: 8px 8px 4px 4px;
  margin: -28px -22px 0;
}
.product-card .label-top { display: flex; justify-content: space-between; align-items: baseline; margin-top: 28px; }
.product-card .label-top .num { font-family: var(--mono); font-size: 11px; }
.product-card .label-top .pill {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  border: 1px solid var(--ink); padding: 3px 8px; border-radius: 999px;
}
.product-card .name {
  font-family: var(--display); font-size: 56px; line-height: 0.92;
  margin: 14px 0;
}
.product-card .desc { font-size: 13px; color: var(--ink-soft); }
.product-card .ings {
  border-top: 1px dashed var(--rule);
  padding-top: 12px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
}
.product-card .ings span::before { content: "+ "; color: var(--terracotta); }

.product-tag {
  position: absolute;
  background: var(--terracotta);
  color: var(--cream);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px;
  top: 24px; right: 24px;
  transform: rotate(8deg);
}
.product-orbit {
  position: absolute; inset: -10%;
  border: 1px dashed rgba(28,36,24,0.2); border-radius: 50%;
  pointer-events: none;
}
.product-orbit.b { inset: 6%; border-color: rgba(28,36,24,0.12); }
.orbit-dot {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--sage-deep);
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  border-top: 1px solid var(--ink);
}
.marquee-track {
  display: flex;
  gap: 64px;
  padding: 18px 0;
  animation: scroll 38s linear infinite;
  font-family: var(--display);
  font-size: 24px;
  white-space: nowrap;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 64px; }
.marquee-track .star { color: var(--terracotta); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section base ---------- */
section { padding: 96px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 56px; }
.section-head h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1; margin: 14px 0 0; letter-spacing: -0.01em; max-width: 720px;
}
.section-head .meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }

/* ---------- Quiz teaser ---------- */
.quiz-teaser {
  background: var(--ink);
  color: var(--cream);
  border-radius: 28px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative; overflow: hidden;
}
.quiz-teaser h2 { font-family: var(--display); font-size: clamp(40px, 4.5vw, 64px); line-height: 1; margin: 16px 0 24px; font-weight: 400; }
.quiz-teaser p { color: rgba(251,248,241,0.75); max-width: 420px; margin: 0 0 28px; }
.quiz-teaser .btn-primary { background: var(--terracotta); color: var(--cream); }
.quiz-teaser .btn-primary:hover { background: var(--cream); color: var(--ink); }
.quiz-stack {
  display: flex; flex-direction: column; gap: 12px;
}
.quiz-q {
  border: 1px solid rgba(251,248,241,0.18);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px;
}
.quiz-q .num { font-family: var(--mono); font-size: 11px; opacity: 0.6; }
.quiz-q.active { background: var(--terracotta); border-color: var(--terracotta); }

/* ---------- Products ---------- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product {
  background: var(--cream);
  border-radius: 20px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.product:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(28,36,24,0.2); }
.product .pic {
  aspect-ratio: 1;
  border-radius: 14px;
  background: var(--bg-alt);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.product .pic .puck {
  width: 60%; height: 60%;
  background: linear-gradient(160deg, var(--sage), var(--sage-deep));
  border-radius: 50%;
  position: relative;
}
.product .pic .puck.a { background: linear-gradient(160deg, #d68f73, var(--terracotta)); }
.product .pic .puck.b { background: linear-gradient(160deg, #e3d68f, #a89635); }
.product .pic .puck.c { background: linear-gradient(160deg, #b9a8db, #6e5fa3); }
.product .pic .puck::after {
  content: ""; position: absolute; inset: 12%;
  border-radius: 50%; border: 1px solid rgba(251,248,241,0.4);
}
.product .pic .tag-num { position: absolute; top: 14px; left: 14px; font-family: var(--mono); font-size: 11px; }
.product .pic .tag-bestseller {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--terracotta); color: var(--cream); padding: 4px 10px; border-radius: 999px;
}
.product h3 { font-family: var(--display); font-size: 32px; line-height: 1; margin: 0; font-weight: 400; }
.product .pdesc { font-size: 14px; color: var(--ink-soft); margin: -8px 0 0; min-height: 42px; }
.product .pfoot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--rule); padding-top: 14px; }
.product .price { font-family: var(--display); font-size: 22px; }
.product .price small { font-family: var(--sans); font-size: 12px; color: var(--ink-soft); }
.product .add {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--cream);
}

/* ---------- Ingredients ---------- */
.ingredients { background: var(--bg-alt); }
.ingredients-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule);
  border: 1px solid var(--rule);
}
.ing-cell {
  background: var(--bg-alt);
  padding: 28px 24px;
  min-height: 200px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.ing-cell:hover { background: var(--cream); }
.ing-cell .top { display: flex; justify-content: space-between; align-items: start; }
.ing-cell .num { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); }
.ing-cell .dose { font-family: var(--mono); font-size: 11px; color: var(--terracotta); }
.ing-cell h4 { font-family: var(--display); font-size: 32px; line-height: 1; margin: 28px 0 8px; font-weight: 400; }
.ing-cell .ing-desc { font-size: 13px; color: var(--ink-soft); }
.ing-cell.expanded { background: var(--ink); color: var(--cream); }
.ing-cell.expanded .num, .ing-cell.expanded .ing-desc { color: rgba(251,248,241,0.7); }
.ing-cell .more {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  margin-top: 14px; opacity: 0.6;
}

/* ---------- Science ---------- */
.science-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.science-card { display: flex; flex-direction: column; gap: 14px; }
.science-num {
  font-family: var(--display); font-size: 88px; line-height: 1;
  color: var(--sage-deep); font-style: italic;
}
.science-card h3 { font-family: var(--display); font-size: 28px; line-height: 1.05; margin: 0; font-weight: 400; }
.science-card p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---------- Reviews ---------- */
.reviews { background: var(--ink); color: var(--cream); }
.reviews .section-head h2 { color: var(--cream); }
.reviews .section-head .meta { color: rgba(251,248,241,0.6); }
.reviews-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  border: 1px solid rgba(251,248,241,0.16);
  border-radius: 18px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.review .stars { color: var(--terracotta); letter-spacing: 4px; font-size: 14px; }
.review blockquote { font-family: var(--display); font-size: 22px; line-height: 1.2; margin: 0; }
.review .who { display: flex; gap: 12px; align-items: center; border-top: 1px solid rgba(251,248,241,0.16); padding-top: 16px; margin-top: auto; }
.review .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--sage); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; }
.review .who-meta .nm { font-size: 14px; }
.review .who-meta .vrf { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(251,248,241,0.5); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--rule);
  padding: 24px 0;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.faq-q h3 { font-family: var(--display); font-size: 28px; font-weight: 400; line-height: 1.1; margin: 0; flex: 1; }
.faq-q .toggle {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--terracotta);
  color: var(--terracotta);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.faq-item.open .faq-q .toggle { background: var(--terracotta); color: var(--cream); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 15px; color: var(--ink-soft); max-width: 720px;
}
.faq-item.open .faq-a { max-height: 240px; padding-top: 16px; }

/* ---------- Footer / CTA ---------- */
.foot-cta {
  position: relative; padding: 180px 0 140px; text-align: center;
  overflow: hidden; isolation: isolate;
}
.foot-cta-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.foot-cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--cream) 78%, transparent) 0%,
    color-mix(in oklab, var(--cream) 55%, transparent) 50%,
    color-mix(in oklab, var(--cream) 78%, transparent) 100%);
}
.foot-cta h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(64px, 9vw, 144px); line-height: 0.92;
  letter-spacing: -0.02em; margin: 0 0 32px;
}
.foot-cta h2 em { font-style: italic; color: var(--terracotta); }
.foot-cta .btn-primary { padding: 20px 40px; font-size: 16px; }

footer {
  border-top: 1px solid var(--rule);
  padding: 48px 0 32px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  font-size: 14px;
}
footer h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; margin: 0 0 16px; color: var(--ink-soft); font-weight: 500; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer ul a:hover { color: var(--terracotta); }
.foot-brand .brand { text-align: left; font-size: 36px; }
.foot-brand p { color: var(--ink-soft); max-width: 320px; margin: 8px 0 20px; }
.foot-bottom {
  border-top: 1px solid var(--rule);
  padding: 18px 0;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Cart drawer ---------- */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(28,36,24,0.4); z-index: 80;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  background: var(--bg);
  z-index: 81;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 24px 28px; border-bottom: 1px solid var(--rule); }
.drawer-head h3 { font-family: var(--display); font-size: 28px; margin: 0; font-weight: 400; }
.drawer-body { flex: 1; overflow: auto; padding: 24px 28px; display: flex; flex-direction: column; gap: 16px; }
.drawer-empty { text-align: center; padding: 48px 0; color: var(--ink-soft); }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.cart-item .pic-mini { width: 64px; height: 64px; border-radius: 12px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; }
.cart-item .pic-mini .puck { width: 60%; height: 60%; border-radius: 50%; background: linear-gradient(160deg, var(--sage), var(--sage-deep)); }
.cart-item .name { font-family: var(--display); font-size: 18px; }
.cart-item .qty { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); margin-top: 4px; }
.cart-item .px { font-family: var(--display); font-size: 18px; }
.drawer-foot { padding: 24px 28px; border-top: 1px solid var(--rule); }
.drawer-foot .total { display: flex; justify-content: space-between; font-family: var(--display); font-size: 22px; margin-bottom: 16px; }
.drawer-foot .btn-primary { width: 100%; justify-content: center; }
.drawer .close {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Quiz modal ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(28,36,24,0.55); z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.modal-mask.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg);
  border-radius: 24px;
  width: min(720px, 100%);
  max-height: 90vh; overflow: auto;
  padding: 40px;
  position: relative;
  transform: scale(0.96);
  transition: transform 0.25s;
}
.modal-mask.open .modal { transform: scale(1); }
.modal .close { position: absolute; top: 20px; right: 20px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.modal .step-bar { display: flex; gap: 6px; margin-bottom: 32px; }
.modal .step-bar .dot { flex: 1; height: 3px; background: var(--rule); border-radius: 999px; }
.modal .step-bar .dot.done { background: var(--ink); }
.modal h2 { font-family: var(--display); font-size: 40px; line-height: 1.05; margin: 0 0 28px; font-weight: 400; }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 28px; }
.opt {
  border: 1px solid var(--rule); border-radius: 14px;
  padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center;
  text-align: left;
  font-size: 15px;
  transition: background 0.15s, border-color 0.15s;
}
.opt:hover { border-color: var(--ink); }
.opt.selected { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.opt .check { width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor; }
.opt.selected .check { background: var(--terracotta); border-color: var(--terracotta); }
.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-foot .step-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-soft); }

.quiz-result { text-align: center; padding: 16px 0; }
.quiz-result .pic { width: 160px; height: 160px; border-radius: 50%; margin: 0 auto 24px; background: linear-gradient(160deg, #d68f73, var(--terracotta)); position: relative; }
.quiz-result .pic::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px solid rgba(251,248,241,0.5); }
.quiz-result h2 { margin-bottom: 12px; }
.quiz-result p { color: var(--ink-soft); max-width: 420px; margin: 0 auto 24px; }
.result-ings { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.result-ings span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px;
}

/* density */
[data-density="airy"] section { padding: 128px 0; }
[data-density="tight"] section { padding: 64px 0; }

/* hero variant */
[data-hero="centered"] .hero-grid { grid-template-columns: 1fr; text-align: center; }
[data-hero="centered"] .hero-sub { margin-left: auto; margin-right: auto; }
[data-hero="centered"] .hero-ctas { justify-content: center; }
[data-hero="centered"] .hero-meta { max-width: 720px; margin-left: auto; margin-right: auto; }
[data-hero="centered"] .product-stage { max-width: 360px; margin: 48px auto 0; }

@media (max-width: 880px) {
  .nav-links, .nav-actions a:not(.cart-btn) { display: none; }
  .hero-grid, .quiz-teaser, .products-grid, .ingredients-grid, .science-grid, .reviews-row, footer { grid-template-columns: 1fr !important; }
  .ingredients-grid { gap: 1px; }
  .quiz-teaser { padding: 32px; }
  .container { padding: 0 20px; }
  .section-head { flex-direction: column; align-items: start; }
}

/* ---------- Simplified footer ---------- */
.site-footer {
  display: block;
  border-top: 1px solid var(--rule);
  padding: 48px 0 40px;
}
.site-footer .foot-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px; flex-wrap: wrap;
}
.site-footer .brand { font-size: 28px; }
.site-footer .foot-links { display: flex; gap: 28px; font-size: 14px; }
.site-footer .foot-links a:hover { color: var(--terracotta); }
.site-footer .foot-base {
  margin-top: 32px; padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
}

/* ---------- About page ---------- */
.about { background: var(--bg); color: var(--ink); min-height: 100vh; }
.about-nav {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
}
.about-nav-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.about-nav .brand { font-size: 26px; font-family: var(--brand); }
.about-nav-links { display: flex; gap: 28px; font-size: 14px; }
.about-nav-links a:hover { color: var(--terracotta); }
.about-nav-links .is-active { color: var(--terracotta); }

.about-article {
  max-width: 760px;
  padding-top: 120px;
  padding-bottom: 160px;
}
.about-title {
  font-family: var(--brand);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 18px 0 56px;
}
.about-lede p {
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 72px;
  max-width: 64ch;
}
.about-section { margin: 0 0 64px; max-width: 64ch; }
.about-section p {
  font-size: 17px; line-height: 1.7; color: var(--ink); margin: 0 0 18px;
}
.about-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 18px !important;
}
.about-list {
  list-style: none; padding: 0; margin: 0;
}
.about-list li {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-size: 17px; line-height: 1.5;
}
.about-list li:last-child { border-bottom: 1px solid var(--rule); }
.about-footer { margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--rule); }
.about-back {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
}
.about-back:hover { color: var(--terracotta); }

/* ---------- De-AI tweaks ---------- */
/* product-stage keeps its linen hero background */
.stage-grain::before { display: none; }
.product-card {
  box-shadow: none !important;
  border: 1px solid var(--rule);
  border-radius: 8px !important;
}

.hero-cta-note { margin-top: 8px; font-size: 12px; color: rgba(0,0,0,0.55); letter-spacing: 0.02em; }


/* Editorial imagery additions */
.image-band { width: 100%; overflow: hidden; }
.image-band img { width: 100%; height: 320px; object-fit: cover; display: block; }
@media (max-width: 720px) { .image-band img { height: 220px; } }

.science-img {
  width: 100%;
  max-width: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin-bottom: 16px;
}

.product .pic .pic-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ---------------- Quiz Page ---------------- */
.quiz-page, .results-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans, "Inter", system-ui, sans-serif);
}
.quiz-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.quiz-topbar-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 12px;
}
.quiz-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  cursor: pointer;
}
.quiz-back:hover { background: var(--bg-alt); }
.quiz-progress-num {
  font-family: var(--mono, monospace);
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  letter-spacing: 0.06em;
}
.quiz-progress-track {
  height: 2px;
  background: var(--rule);
  position: relative;
}
.quiz-progress-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--terracotta, #C57A5A);
  transition: width 280ms ease-out;
}
.quiz-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 20px 140px;
}
.quiz-screen {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: quizFade 360ms cubic-bezier(.2,.7,.2,1);
}
.quiz-welcome {
  align-items: center;
  text-align: center;
  padding-top: 6vh;
  gap: 8px;
}
.quiz-welcome .quiz-h { max-width: 18ch; margin-top: 0; }
.quiz-welcome .quiz-sub { margin-left: auto; margin-right: auto; }
.quiz-welcome .quiz-cta { align-self: center; margin-top: 28px; }
@keyframes quizFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.quiz-h {
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 6px 0 8px;
  font-weight: 600;
  color: var(--ink);
}
.quiz-welcome .quiz-h {
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 600;
  max-width: 22ch;
}
.quiz-sub {
  color: rgba(0,0,0,0.62);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 540px;
}
.quiz-trust {
  font-size: 11px;
  color: rgba(0,0,0,0.45);
  margin-top: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.quiz-priv { margin-top: 12px; }
.quiz-cta { margin-top: 20px; align-self: flex-start; min-height: 56px; padding: 0 32px; font-size: 15px; letter-spacing: 0.02em; border-radius: 999px; }

.quiz-screen > .eyebrow { font-size: 10px; letter-spacing: 0.18em; }

.quiz-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.quiz-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--bg-alt, #fff);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
  font-family: inherit;
}
.quiz-opt:hover { border-color: var(--terracotta, #C57A5A); }
.quiz-opt.selected {
  border-color: var(--terracotta, #C57A5A);
  background: color-mix(in oklab, var(--terracotta, #C57A5A) 8%, transparent);
}
.quiz-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--terracotta, #C57A5A);
  background: var(--bg);
}
.quiz-opt.selected .quiz-check {
  border-color: var(--terracotta, #C57A5A);
  background: var(--terracotta, #C57A5A);
  color: var(--bg);
}

.quiz-form { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.quiz-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: rgba(0,0,0,0.7); letter-spacing: 0.02em; }
.quiz-label em { color: rgba(0,0,0,0.45); font-style: normal; }
.quiz-label input {
  font-size: 16px; /* prevent iOS zoom */
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  min-height: 56px;
}
.quiz-label input:focus { outline: none; border-color: var(--terracotta, #C57A5A); }
.quiz-err { color: #b04a3a; font-size: 13px; }

.quiz-calc {
  align-items: center;
  text-align: center;
  padding-top: 60px;
  gap: 14px;
}
.quiz-calc-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--rule);
  border-top-color: var(--terracotta, #C57A5A);
  animation: quizSpin 900ms linear infinite;
  margin: 0 auto 24px;
}
@keyframes quizSpin { to { transform: rotate(360deg); } }
.quiz-calc-line {
  font-family: var(--serif, Georgia, serif);
  font-size: 20px;
  color: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 400ms ease, color 400ms ease;
}
.quiz-calc-line.on { opacity: 1; color: var(--ink); }

/* ---------------- Results ---------------- */
.results-main { padding: 32px 0 140px; }
.results-echo { max-width: 680px; margin-bottom: 40px; }
.results-pack { margin-bottom: 56px; }
.results-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 18px 0 16px;
}
.result-card {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 20px 22px;
  background: var(--bg-alt, #fff);
}
.result-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  gap: 12px;
}
.result-card h3 {
  font-family: var(--serif, Georgia, serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0;
}
.result-card .mono {
  font-family: var(--mono, monospace);
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.result-why { font-size: 15px; line-height: 1.55; color: rgba(0,0,0,0.75); margin: 0; }
.result-why strong { color: var(--ink); font-weight: 600; }

.results-offer { margin-bottom: 56px; }
.offer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}
@media (min-width: 720px) {
  .offer-grid { grid-template-columns: 1.2fr 1fr; }
}
.offer-card {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 24px;
  background: var(--bg-alt, #fff);
  position: relative;
}
.offer-card.offer-sub {
  border-color: var(--terracotta, #C57A5A);
  background: color-mix(in oklab, var(--terracotta, #C57A5A) 6%, var(--bg-alt, #fff));
}
.offer-badge {
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--terracotta, #C57A5A);
  color: var(--bg);
  padding: 4px 10px;
  font-size: 11px;
  font-family: var(--mono, monospace);
  letter-spacing: 0.08em;
  border-radius: 3px;
  text-transform: uppercase;
}
.offer-name {
  font-size: 13px;
  font-family: var(--mono, monospace);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.6);
  margin-bottom: 8px;
}
.offer-price {
  font-family: var(--serif, Georgia, serif);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 10px;
}
.offer-price small { font-size: 16px; color: rgba(0,0,0,0.55); margin-left: 4px; }
.offer-card p { font-size: 14px; color: rgba(0,0,0,0.65); margin: 0 0 18px; }
.offer-card .btn { width: 100%; min-height: 56px; }

.results-quote {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 36px 0;
  margin-bottom: 48px;
}
.results-quote blockquote {
  font-family: var(--serif, Georgia, serif);
  font-size: 22px;
  line-height: 1.4;
  font-style: italic;
  margin: 0 0 14px;
  max-width: 640px;
}
.quote-attr { font-size: 12px; color: rgba(0,0,0,0.55); letter-spacing: 0.06em; }

.results-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.results-trust > div { display: flex; flex-direction: column; gap: 4px; }
.results-trust strong { font-size: 14px; }
.results-trust span { font-size: 12px; color: rgba(0,0,0,0.55); font-family: var(--mono, monospace); }

.results-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 60;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.results-sticky-price { font-family: var(--mono, monospace); font-size: 11px; color: rgba(0,0,0,0.55); }
.results-sticky .btn { min-height: 48px; padding: 0 18px; font-size: 14px; }
@media (min-width: 720px) {
  .results-sticky { display: none; }
}

/* New pack card */
.pack-card {
  max-width: 380px;
  margin: 0 auto;
  background: #FAF6EE;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(31,36,24,0.14), 0 2px 4px rgba(31,36,24,0.08);
  transform: rotate(-1.4deg);
  transform-origin: center center;
}
.pack-band { background: #1F2418; padding: 13px 24px; text-align: center; }
.pack-wordmark { font-family: var(--display); font-size: 18px; color: #FAF6EE; font-weight: 500; }
.pack-wordmark .dot, .pack-name .dot { color: #D85A30; }
.pack-body { padding: 22px 28px 24px; }
.pack-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.pack-personal { font-family: var(--display); font-size: 13px; color: #5A5849; font-style: italic; }
.pack-pack-num { font-size: 9.5px; color: #8B8470; letter-spacing: 0.2em; font-weight: 500; }
.pack-name { font-family: var(--display); font-size: 38px; line-height: 0.98; color: #1F2418; margin: 0 0 8px; font-weight: 500; letter-spacing: -0.012em; }
.pack-desc { font-size: 12.5px; line-height: 1.55; color: #5A5849; margin: 0 0 22px; }
.pack-section-label { font-size: 9.5px; letter-spacing: 0.22em; color: #8B8470; font-weight: 500; padding-bottom: 10px; border-bottom: 0.5px solid rgba(31,36,24,0.14); margin-bottom: 4px; }
.pack-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 12.5px; border-bottom: 0.5px solid rgba(31,36,24,0.07); }
.pack-row:last-of-type { border-bottom: none; }
.pack-ingredient { color: #1F2418; }
.pack-dose { color: #8B8470; }
.pack-footer { margin-top: 16px; padding-top: 12px; border-top: 0.5px solid rgba(31,36,24,0.14); display: flex; justify-content: space-between; align-items: center; }
.pack-footer-text { font-family: var(--display); font-size: 11.5px; color: #8B8470; font-style: italic; }
.pack-batch { font-size: 9.5px; letter-spacing: 0.18em; font-weight: 500; color: #8B8470; display: flex; align-items: center; gap: 6px; }
.pack-batch .dot { width: 5px; height: 5px; border-radius: 50%; background: #D85A30; display: inline-block; }
.product-stage:has(.pack-card) { aspect-ratio: auto; padding: 56px 24px 64px; display: flex; align-items: center; justify-content: center; }

/* Mobile quiz: sticky continue + tighter rhythm */
@media (max-width: 720px) {
  .quiz-main { padding: 16px 16px 120px; }
  .quiz-opt { font-size: 15px; min-height: 46px; padding: 11px 14px; }
  .quiz-h { font-size: 22px; line-height: 1.22; margin: 4px 0 6px; }
  .quiz-sub { font-size: 14px; margin-bottom: 14px; }
  .quiz-screen > .eyebrow { display: none; }
  .quiz-cta {
    position: sticky;
    bottom: 16px;
    align-self: stretch;
    width: 100%;
    margin-top: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    z-index: 10;
  }
  .quiz-welcome { padding-top: 4vh; }
  .quiz-welcome .quiz-cta { position: static; box-shadow: none; width: auto; align-self: center; }
}

/* ============ Cart / Checkout / Confirmation ============ */
.section-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(0,0,0,0.5); margin-bottom: 12px; font-weight: 600; }
.results-shell { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 24px 20px 160px; }
.results-col-main { min-width: 0; }
.results-col-side { min-width: 0; }
.results-echo .quiz-h { margin-top: 8px; }
.results-pack { margin-top: 28px; }
.results-cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
.result-card { padding: 16px 18px; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg-alt, #fff); }
.result-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.result-card-head h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; margin: 0; }
.result-card-head .mono { font-family: var(--mono, monospace); font-size: 12px; color: rgba(0,0,0,0.55); letter-spacing: 0.04em; }
.result-why { font-size: 14px; color: rgba(0,0,0,0.65); line-height: 1.5; margin: 0; }

.cad-section { margin-top: 36px; }
.cad-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cad-opt {
  position: relative;
  text-align: left;
  padding: 18px 18px 16px;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: var(--bg-alt, #fff);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  font-family: inherit;
  color: var(--ink);
}
.cad-opt:hover { border-color: var(--terracotta, #C57A5A); }
.cad-opt.selected { border-color: var(--terracotta, #C57A5A); box-shadow: 0 0 0 2px color-mix(in oklab, var(--terracotta, #C57A5A) 25%, transparent); }
.cad-opt-rec { background: color-mix(in oklab, var(--sage-deep, #5b6a4f) 6%, var(--bg-alt, #fff)); }
.cad-flag { display: inline-block; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terracotta, #C57A5A); font-weight: 700; margin-bottom: 8px; }
.cad-name { font-family: var(--sans); font-weight: 600; font-size: 15px; }
.cad-price { font-family: var(--display); font-size: 26px; line-height: 1; margin-top: 6px; letter-spacing: -0.01em; }
.cad-price span { font-family: var(--sans); font-size: 12px; color: rgba(0,0,0,0.55); margin-left: 6px; }
.cad-sub { font-size: 12px; color: rgba(0,0,0,0.6); margin-top: 8px; }
.cad-info {
  margin-top: 14px;
  padding: 14px 16px;
  background: color-mix(in oklab, var(--sage-deep, #5b6a4f) 8%, var(--bg-alt, #fff));
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(0,0,0,0.72);
}
.cad-info strong { color: var(--ink); font-weight: 600; }

.addons-section { margin-top: 40px; }
.addons-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .addons-row { grid-template-columns: 1fr 1fr; } }
.addon-card { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg-alt, #fff); transition: border-color 160ms ease, box-shadow 160ms ease; }
.addon-card.selected { border-color: var(--terracotta, #C57A5A); box-shadow: 0 0 0 2px color-mix(in oklab, var(--terracotta, #C57A5A) 18%, transparent); }
.addon-img { width: 64px; height: 64px; flex-shrink: 0; border-radius: 8px; background: linear-gradient(140deg, #e7dec9, #d6c9a8); }
.addon-card.selected .addon-img { background: linear-gradient(140deg, #d8b89c, var(--terracotta, #C57A5A)); }
.addon-body { flex: 1; min-width: 0; }
.addon-head { display: flex; justify-content: space-between; gap: 12px; }
.addon-body h4 { margin: 0 0 2px; font-size: 15px; font-weight: 600; }
.addon-desc { margin: 0; font-size: 12px; color: rgba(0,0,0,0.55); }
.addon-price { font-family: var(--mono, monospace); font-size: 14px; }
.addon-why { margin: 8px 0 12px; font-size: 13px; color: rgba(0,0,0,0.65); line-height: 1.45; }
.addon-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--rule);
  background: var(--bg);
  font-size: 13px; font-weight: 500; color: var(--ink);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.addon-toggle-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,0.2); transition: background 160ms ease, transform 200ms cubic-bezier(.2,.7,.2,1); }
.addon-toggle.on { background: var(--terracotta, #C57A5A); color: var(--bg); border-color: var(--terracotta, #C57A5A); }
.addon-toggle.on .addon-toggle-dot { background: var(--bg); transform: scale(1.3); }
.addon-cadence-note { margin-top: 12px; font-size: 12px; color: rgba(0,0,0,0.5); }

/* Summary card */
.summary-card { padding: 20px; border: 1px solid var(--rule); border-radius: 12px; background: var(--bg-alt, #fff); }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; font-size: 14.5px; }
.sum-row-sm { font-size: 13px; color: rgba(0,0,0,0.7); }
.sum-rule { height: 1px; background: var(--rule); margin: 6px 0; }
.sum-total { font-family: var(--display); font-size: 18px; font-weight: 500; padding-top: 4px; }
.sum-equiv { text-align: right; font-size: 12px; color: rgba(0,0,0,0.5); margin-top: 2px; }
.muted { color: rgba(0,0,0,0.45); font-weight: 400; }
.summary-cta { width: 100%; margin-top: 18px; min-height: 56px; border-radius: 999px; }
.cta-sub { margin: 8px 0 4px; font-size: 12px; color: rgba(0,0,0,0.55); text-align: center; }
.trust-row { font-size: 11px; color: rgba(0,0,0,0.45); text-align: center; letter-spacing: 0.04em; margin: 0; }

/* Sticky bottom bar */
.checkout-sticky {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: none;
  align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.06);
  z-index: 40;
  gap: 12px;
}
.checkout-sticky-info { line-height: 1.1; }
.checkout-sticky-info .mono { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(0,0,0,0.5); }
.checkout-sticky-price { font-family: var(--display); font-size: 17px; margin-top: 2px; }
.checkout-sticky .btn { min-height: 48px; padding: 0 22px; border-radius: 999px; }

@media (max-width: 1023px) {
  .checkout-sticky { display: flex; }
  .results-col-side { display: none; }
}
@media (min-width: 1024px) {
  .results-shell { grid-template-columns: 1fr 360px; gap: 48px; padding: 36px 24px 80px; }
  .results-col-side { position: sticky; top: 92px; align-self: flex-start; }
  .results-cards { grid-template-columns: 1fr 1fr; }
}

/* Checkout page */
.co-shell { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 24px 20px 160px; }
.co-form { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.co-section { padding: 22px; border: 1px solid var(--rule); border-radius: 12px; background: var(--bg-alt, #fff); }
.co-section h2 { font-family: var(--sans); font-size: 16px; font-weight: 600; margin: 0 0 16px; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.co-field-full { grid-column: 1 / -1; }
.co-label { font-size: 12px; color: rgba(0,0,0,0.65); margin-bottom: 4px; }
.co-field input, .co-field select {
  font: inherit; font-size: 16px;
  padding: 12px 14px; min-height: 48px;
  border: 1px solid var(--rule); border-radius: 8px;
  background: var(--bg); color: var(--ink); width: 100%;
}
.co-field input:focus, .co-field select:focus { outline: none; border-color: var(--terracotta, #C57A5A); box-shadow: 0 0 0 3px color-mix(in oklab, var(--terracotta, #C57A5A) 18%, transparent); }
.co-hint { font-size: 11px; color: rgba(0,0,0,0.5); }
.co-err { font-size: 12px; color: #b04a3a; }
.co-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(0,0,0,0.7); cursor: pointer; }
.co-card-note { margin: 12px 0 0; font-size: 12px; color: rgba(0,0,0,0.55); }
.co-confirm { background: color-mix(in oklab, var(--sage-deep, #5b6a4f) 6%, var(--bg-alt, #fff)); }
.co-confirm-line { display: flex; justify-content: space-between; font-family: var(--display); font-size: 22px; align-items: baseline; }
.co-confirm-sub { margin: 6px 0 0; font-size: 13px; color: rgba(0,0,0,0.7); }
.co-confirm-sub.muted { color: rgba(0,0,0,0.5); }
.co-submit { width: 100%; margin-top: 18px; min-height: 60px; font-size: 16px; border-radius: 999px; }
.co-trust { display: flex; gap: 16px; flex-wrap: wrap; padding: 0; margin: 14px 0 0; list-style: none; font-size: 12px; color: rgba(0,0,0,0.6); justify-content: center; }
.co-side { display: none; }
.co-cart-collapse { border: 1px solid var(--rule); border-radius: 10px; background: var(--bg-alt, #fff); padding: 12px 16px; }
.co-cart-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; font: inherit; font-weight: 500; cursor: pointer; padding: 4px 0; color: var(--ink); }
.co-cart-total { font-family: var(--display); font-size: 18px; }
.co-cart-collapse.open { padding: 12px 16px 16px; }

@media (min-width: 1024px) {
  .co-shell { grid-template-columns: 1fr 360px; gap: 48px; padding: 36px 24px 80px; }
  .co-side { display: block; position: sticky; top: 92px; align-self: flex-start; }
  .co-cart-collapse { display: none; }
  .checkout-sticky { display: none !important; }
}

/* Confirmation page */
.conf-page { background: color-mix(in oklab, var(--sage-deep, #5b6a4f) 4%, var(--bg)); }
.conf-main { padding: 64px 20px 120px; }
.conf-container { max-width: 640px; margin: 0 auto; text-align: center; }
.conf-hero h1 { font-family: var(--display); font-size: clamp(36px, 6vw, 56px); line-height: 1.05; margin: 12px 0 18px; font-weight: 400; letter-spacing: -0.02em; }
.conf-hero p { font-size: 16px; color: rgba(0,0,0,0.7); line-height: 1.6; max-width: 540px; margin: 0 auto; }
.conf-eyebrow { display: inline-block; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--terracotta, #C57A5A); padding: 6px 12px; border: 1px solid color-mix(in oklab, var(--terracotta, #C57A5A) 40%, transparent); border-radius: 999px; }
.conf-status { margin: 40px auto; padding: 24px; max-width: 480px; background: color-mix(in oklab, var(--sage-deep, #5b6a4f) 10%, var(--bg-alt, #fff)); border-radius: 14px; text-align: left; }
.conf-status-row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; font-size: 14px; color: rgba(0,0,0,0.7); border-bottom: 1px solid color-mix(in oklab, var(--ink) 8%, transparent); }
.conf-status-row:last-of-type { border-bottom: 0; }
.conf-status-row strong { font-family: var(--display); font-size: 20px; color: var(--ink); font-weight: 500; }
.conf-status-note { margin: 12px 0 0; font-size: 13px; color: rgba(0,0,0,0.6); text-align: center; }
.conf-next { text-align: left; max-width: 480px; margin: 0 auto; }
.conf-next h2 { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(0,0,0,0.55); margin: 0 0 16px; }
.conf-next ol { padding: 0; margin: 0; list-style: none; counter-reset: c; }
.conf-next li { counter-increment: c; position: relative; padding: 14px 0 14px 36px; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.55; color: rgba(0,0,0,0.75); }
.conf-next li:last-of-type { border-bottom: 1px solid var(--rule); }
.conf-next li::before { content: counter(c, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-family: var(--mono, monospace); font-size: 12px; color: var(--terracotta, #C57A5A); letter-spacing: 0.1em; }
.conf-next strong { color: var(--ink); font-weight: 600; }
.conf-secondary { display: inline-block; margin-top: 32px; font-size: 14px; color: var(--terracotta, #C57A5A); text-decoration: none; }
.conf-secondary:hover { text-decoration: underline; }

/* ---------- Stripe-style checkout ---------- */
.stripe-co { background: #f6f5f1; min-height: 100vh; }
.stripe-co-main { padding: 0; }
.stripe-co-shell {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1180px;
  margin: 0 auto;
  min-height: calc(100vh - 64px);
}
.stripe-co-left {
  background: color-mix(in oklab, var(--sage-deep, #5b6a4f) 8%, #f6f5f1);
  padding: 28px 20px 32px;
  border-bottom: 1px solid var(--rule);
}
.stripe-co-left-inner { max-width: 460px; margin: 0 auto; }
.stripe-co-eyebrow {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(0,0,0,0.55); margin-bottom: 18px;
}
.stripe-co-amount-label { font-size: 14px; color: rgba(0,0,0,0.6); }
.stripe-co-amount {
  font-family: var(--display);
  font-size: clamp(40px, 9vw, 56px);
  line-height: 1; letter-spacing: -0.02em;
  margin: 4px 0 6px;
}
.stripe-co-amount-sub { font-size: 13px; color: rgba(0,0,0,0.6); margin-bottom: 22px; }
.stripe-co-lines { padding: 16px 0; border-top: 1px solid color-mix(in oklab, var(--ink) 10%, transparent); }
.stripe-co-trust {
  list-style: none; padding: 18px 0 0; margin: 18px 0 0;
  border-top: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  font-size: 13px; color: rgba(0,0,0,0.65); line-height: 1.7;
}
.stripe-co-trust li::before { content: "✓ "; color: var(--terracotta, #C57A5A); font-weight: 700; }

.stripe-co-right {
  background: #fff;
  padding: 24px 20px 140px;
  display: flex; flex-direction: column; gap: 22px;
}
.stripe-section { display: flex; flex-direction: column; gap: 12px; }
.stripe-section-h {
  font-family: var(--sans);
  font-size: 15px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2px;
}
.stripe-card-brands { display: flex; gap: 6px; }
.stripe-card-brands span {
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
  padding: 3px 6px; border: 1px solid var(--rule); border-radius: 4px;
  color: rgba(0,0,0,0.5); background: #fff;
}

/* Grouped Stripe-like card field */
.stripe-card-group {
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.stripe-card-group:focus-within {
  border-color: var(--terracotta, #C57A5A);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--terracotta, #C57A5A) 18%, transparent);
}
.stripe-card-group.has-error { border-color: #b04a3a; }
.stripe-card-row { display: flex; align-items: center; }
.stripe-card-row-top { border-bottom: 1px solid var(--rule); position: relative; }
.stripe-card-row-bottom > input + input { border-left: 1px solid var(--rule); }
.stripe-card-group input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 16px;
  padding: 14px 14px; min-height: 50px;
  border: 0; outline: none; background: transparent; color: var(--ink);
}
.stripe-card-brand-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  padding: 3px 7px; margin-right: 10px; border-radius: 4px;
  background: var(--ink); color: #fff;
}
.stripe-check { margin-top: 4px; }

.stripe-pay-btn {
  width: 100%; min-height: 52px; border-radius: 8px;
  font-size: 16px; font-weight: 600; margin-top: 6px;
}
.stripe-pay-sub { text-align: center; font-size: 12px; color: rgba(0,0,0,0.55); margin: 8px 0 0; }
.stripe-powered {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 11px; color: rgba(0,0,0,0.5); letter-spacing: 0.02em;
}
.stripe-powered .lock { font-size: 12px; }

@media (min-width: 900px) {
  .stripe-co-shell {
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 64px);
  }
  .stripe-co-left {
    padding: 56px 56px 40px;
    border-bottom: 0;
    border-right: 1px solid var(--rule);
  }
  .stripe-co-left-inner { max-width: 420px; margin-left: auto; margin-right: 32px; }
  .stripe-co-right {
    padding: 56px 56px 80px;
    max-width: 520px;
  }
  .stripe-co .checkout-sticky { display: none !important; }
  .stripe-co .co-cart-collapse { display: none; }
}

/* Tighter mobile spacing */
@media (max-width: 720px) {
  .addons-section { margin-top: 28px; }
  .addons-title { font-family: var(--display); font-size: 22px; margin: 0 0 4px; font-weight: 400; letter-spacing: -0.01em; }
  .addons-subtitle { font-size: 13px; color: rgba(0,0,0,0.6); margin: 0 0 14px; }
}
.addons-title { font-family: var(--display); font-size: 26px; margin: 0 0 4px; font-weight: 400; letter-spacing: -0.01em; }
.addons-subtitle { font-size: 14px; color: rgba(0,0,0,0.6); margin: 0 0 16px; }

/* ---------- Mobile padding & spacing polish ---------- */
@media (max-width: 720px) {
  .results-shell { padding: 16px 14px 140px; gap: 24px; }
  .results-echo { margin-bottom: 4px; }
  .results-echo .quiz-h { font-size: clamp(26px, 7vw, 32px); line-height: 1.15; margin-bottom: 8px; }
  .results-echo .quiz-sub { font-size: 14px; line-height: 1.5; }

  .results-pack { margin-top: 8px; }
  .section-label { font-size: 11px; letter-spacing: 0.16em; margin-bottom: 10px; }
  .results-cards { gap: 8px; }
  .result-card { padding: 14px; }
  .result-card-head h3 { font-size: 15px; }
  .result-why { font-size: 13px; line-height: 1.45; margin-top: 6px; }

  .cad-section { margin-top: 24px; }
  .cad-toggle { gap: 8px; }
  .cad-opt { padding: 14px; }
  .cad-price { font-size: 22px; }
  .cad-info { padding: 12px 14px; font-size: 12.5px; line-height: 1.5; margin-top: 12px; }

  /* Stripe checkout — tighter mobile */
  .stripe-co-left { padding: 22px 18px 24px; }
  .stripe-co-amount { font-size: 40px; }
  .stripe-co-amount-sub { font-size: 12px; margin-bottom: 18px; }
  .stripe-co-eyebrow { margin-bottom: 14px; }
  .stripe-co-trust { font-size: 12.5px; padding-top: 14px; margin-top: 14px; }
  .stripe-co-right { padding: 20px 18px 130px; gap: 18px; }
  .stripe-section { gap: 10px; }
  .stripe-section-h { font-size: 14px; }
  .co-grid { gap: 10px; }
  .co-field input, .co-field select { min-height: 46px; padding: 10px 12px; }
  .stripe-card-group input { min-height: 48px; padding: 12px 12px; }
  .stripe-pay-btn { min-height: 52px; font-size: 15px; }
  .co-cart-collapse { padding: 10px 14px; }

  /* Quiz screens */
  .quiz-shell { padding: 18px 16px 130px; }
  .quiz-h { font-size: clamp(24px, 7vw, 30px); }
  .quiz-sub { font-size: 14px; }
  .quiz-cta { min-height: 52px; font-size: 15px; }

  /* Sticky bar nicer */
  .checkout-sticky { padding: 10px 14px; gap: 10px; }
  .checkout-sticky-price { font-size: 16px; }
}
