:root {
  /* Real brand tokens, pulled from Figma Dev Mode (2026-06-10) */
  --bg: #F9F5ED;        /* bg-light / text-secondary */
  --panel: #EBE5D7;     /* echo + card panels */
  --ink: #4A2B1F;       /* text-primary (brown) */
  --brown: #4A2B1F;
  --olive: #525920;     /* GlobalColors/Tea Tree 100 */
  --accent: #A63D11;    /* GlobalColors/Rosehip 100 */
  --rosemary: #A3966A;  /* GlobalColors/Rosemary 100 — muted borders/icons */
  --ink-soft: #8C7B66;
  --line: #DCD3C0;
  --serif: "Quattrocento", Georgia, "Times New Roman", serif;
  --sans: "Source Sans Pro", "Source Sans 3", "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; margin: 0; }
body { background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; }

.topbar { display: flex; align-items: center; gap: 24px; padding: 14px 22px; background: #FBF7EF; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.brand { font-family: var(--serif); letter-spacing: 2px; font-size: 15px; color: var(--brown); }
.brand span { color: var(--olive); padding: 0 2px; }
.stages { display: flex; align-items: center; gap: 10px; margin: 0 auto; font-size: 11px; letter-spacing: 1.5px; color: #A39684; }
.stages i { width: 26px; height: 1px; background: var(--line); }
.stages span.active, .stages span.done { color: var(--olive); font-weight: 700; }
.stages span.active::before { content: "● "; }
.stage-label { display: none; }

/* Mobile: collapse the labeled-dots row into a segmented progress bar + current-stage label */
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .brand { font-size: 13px; letter-spacing: 1.5px; }
  .stage-label { display: block; margin-left: auto; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--olive); font-weight: 700; white-space: nowrap; }
  .stages { width: 100%; margin: 0; gap: 6px; }
  .stages i { display: none; }
  .stages span { flex: 1; height: 5px; border-radius: 3px; background: var(--line); font-size: 0; color: transparent; letter-spacing: 0; }
  .stages span::before { content: "" !important; }
  .stages span.done, .stages span.active { background: var(--olive); }
}

main { max-width: 720px; margin: 0 auto; padding: 36px 20px 80px; }
.harness-note { text-align: center; font-size: 11px; color: #B5A893; padding: 12px; }
#lintbar { color: var(--accent); }

.esti { background: var(--panel); border-radius: 10px; padding: 18px 22px; margin-bottom: 30px; }
.esti .who { font-size: 11px; letter-spacing: 1.5px; color: var(--olive); font-weight: 700; margin-bottom: 6px; }
.esti .who::before { content: "◉ "; }
.esti p { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.45; color: var(--brown); }

.question { font-family: var(--serif); font-size: clamp(28px, 5vw, 40px); line-height: 1.2; text-align: center; color: var(--brown); margin: 10px 0 8px; }
.subtext { text-align: center; color: var(--ink-soft); margin-bottom: 18px; }
.hint { font-size: 11px; letter-spacing: 1.5px; color: #A39684; margin: 22px 0 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips.stack { flex-direction: column; }
.chip { border: 1px solid var(--line); background: #FCF9F2; border-radius: 999px; padding: 14px 22px; font-size: 17px; color: var(--ink); cursor: pointer; text-align: left; min-height: 48px; }
.chip:hover { border-color: var(--olive); }
.chip.selected { background: var(--olive); color: #fff; border-color: var(--olive); }

.scale { display: flex; gap: 10px; margin-top: 26px; }
.scale button { flex: 1; aspect-ratio: 1; max-height: 86px; font-family: var(--serif); font-size: 26px; color: var(--brown); background: #FCF9F2; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.scale button:hover { border-color: var(--olive); }
.scale-labels { display: flex; justify-content: space-between; color: var(--ink-soft); margin-top: 10px; font-size: 15px; }

textarea, input[type="text"], input[type="email"], input[type="number"] {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #FCF9F2;
  padding: 16px; font: 17px/1.5 inherit; color: var(--ink); margin-top: 14px;
}
textarea { min-height: 120px; resize: vertical; }
input[type="number"] { font-size: 20px; text-align: center; max-width: 340px; display: block; margin: 14px auto 0; -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"]::placeholder, textarea::placeholder, input[type="text"]::placeholder, input[type="email"]::placeholder { color: #B5A893; font-size: 16px; }

.btn { display: block; width: 100%; margin-top: 20px; padding: 17px; border: 0; border-radius: 8px; background: #A99C8B; color: #fff; font-size: 14px; letter-spacing: 2px; cursor: pointer; }
.btn.primary { background: var(--olive); }
.btn.dark { background: var(--brown); }
.btn.ghost { background: transparent; color: var(--brown); border: 1px solid var(--brown); }
.skip { display: block; text-align: center; margin: 16px auto 0; color: var(--ink-soft); background: none; border: none; text-decoration: underline; cursor: pointer; font-size: 15px; }

.beat { text-align: center; padding: 60px 0; }
.beat .pulse { width: 54px; height: 54px; margin: 0 auto 22px; border-radius: 50%; border: 2px solid var(--olive); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(.85); opacity:.5 } 50% { transform: scale(1.05); opacity:1 } }
.beat p { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-soft); }

.echo-card { background: var(--panel); border-radius: 15px; padding: 26px 22px; }
.echo-card .kicker { font-size: 13px; letter-spacing: 2.1px; color: var(--olive); font-weight: 700; text-transform: uppercase; text-align: center; margin-bottom: 20px; }
.echo-card .lead { font-family: var(--serif); font-size: 25px; line-height: 1.28; color: var(--ink); margin-bottom: 24px; }
.echo-card ul { margin: 0 0 22px; padding-left: 21px; list-style: disc; }
.echo-card li { margin-bottom: 14px; line-height: 1.6; font-size: 15px; color: var(--ink); }
.echo-card li .obs-key { font-weight: 700; color: var(--olive); text-transform: uppercase; letter-spacing: 1.6px; }
.echo-card .asking { background: var(--bg); border-left: 4px solid var(--accent); padding: 22px 18px; border-radius: 0 10px 10px 0; margin-bottom: 22px; }
.echo-card .asking b { font-size: 12px; letter-spacing: 2.1px; color: var(--accent); display: block; text-align: center; text-transform: uppercase; margin-bottom: 12px; }
.echo-card .asking p { font-size: 15px; line-height: 1.6; color: var(--ink); }
.echo-card .normalize { display: flex; gap: 14px; align-items: center; border: 1px solid var(--rosemary); border-radius: 10px; padding: 18px 20px; }
.echo-card .normalize .ico { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--rosemary); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; color: var(--rosemary); }
.echo-card .normalize p { font-style: italic; font-size: 14px; line-height: 1.6; color: var(--ink); }

.report { width: 100%; border-collapse: collapse; background: #FCF9F2; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 14px 0 24px; box-shadow: 0 1px 4px rgba(74,55,42,.06); }
.report .band td { background: var(--panel); padding: 16px 18px; width: 50%; border-top: 1px solid #E0D8C6; border-right: 1px solid #E0D8C6; vertical-align: top; }
.report tr.band:first-child td { border-top: 0; }
.report .band td:last-child { border-right: 0; }
.report .band .k { font-size: 10px; letter-spacing: 1.5px; color: #8C7B66; display: block; margin-bottom: 3px; }
.report .band .v { font-family: var(--serif); font-size: 18px; line-height: 1.35; color: var(--brown); }
.report th { background: var(--brown); color: #fff; font-size: 11px; letter-spacing: 1.5px; text-align: left; padding: 13px 18px; }
.report td { padding: 16px 18px; border-top: 1px solid var(--line); vertical-align: top; font-size: 15px; line-height: 1.55; }
.report td.see { font-family: var(--serif); font-size: 18px; color: var(--brown); width: 38%; border-right: 1px solid var(--line); }

.block { background: var(--panel); border-radius: 12px; padding: 22px 26px; margin: 18px 0; }
.block .kicker { font-size: 11px; letter-spacing: 2px; color: var(--olive); font-weight: 700; margin-bottom: 8px; }
.block p { font-size: 18px; line-height: 1.6; }

.pcard { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pcard .img { flex: 0 0 92px; height: 120px; background: var(--panel); border-radius: 8px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 10px; letter-spacing: 1px; color: var(--ink-soft); padding: 8px; }
.pcard .step { font-size: 11px; letter-spacing: 2px; color: var(--olive); font-weight: 700; }
.pcard h3 { font-size: 24px; color: var(--brown); }
.pcard .meta { color: var(--ink-soft); font-size: 14px; margin-bottom: 6px; }
.pcard .why b, .gift .why b { color: var(--olive); }
.pcard .heroes { margin: 8px 0 0 0; padding-left: 18px; font-size: 15px; }
.fold { margin-top: 10px; border-top: 1px solid var(--line); }
.fold summary { cursor: pointer; padding: 10px 0; font-size: 14px; letter-spacing: 0.5px; color: var(--olive); font-weight: 600; list-style: none; }
.fold summary::before { content: "+ "; }
.fold[open] summary::before { content: "− "; }
.fold p, .fold ul { padding-bottom: 10px; font-size: 15px; }
.gift { background: var(--panel); border-radius: 10px; padding: 18px 22px; margin: 12px 0; display: flex; justify-content: space-between; gap: 16px; }
.gift .badge { background: var(--olive); color: #fff; font-size: 11px; letter-spacing: 1.5px; padding: 8px 12px; border-radius: 6px; height: fit-content; white-space: nowrap; }
.gift .value { color: var(--ink-soft); text-decoration: line-through; text-align: right; font-size: 14px; }

.buybox { border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin: 26px 0; background: #FCF9F2; }
.option { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; cursor: pointer; }
.option.selected { border: 2px solid var(--olive); }
.option .radio { width: 18px; height: 18px; border: 2px solid var(--olive); border-radius: 50%; }
.option.selected .radio { background: radial-gradient(circle, var(--olive) 45%, transparent 50%); }
.option .name { font-family: var(--serif); font-size: 20px; color: var(--brown); }
.option .supply { color: var(--ink-soft); font-size: 14px; }
.option .price { margin-left: auto; text-align: right; }
.option .price .now { font-weight: 700; font-size: 19px; }
.option .price .was { color: var(--ink-soft); text-decoration: line-through; font-size: 14px; }
.option .price .day { color: var(--ink-soft); font-size: 12px; }
.savings { background: var(--panel); border-radius: 8px; padding: 14px 16px; margin: 14px 0; font-size: 15px; }
.savings .total { display: flex; justify-content: space-between; font-weight: 700; font-size: 17px; }
.reassure { text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 12px; }
.reassure b { color: var(--brown); display: block; letter-spacing: 1px; font-size: 12px; }

.ing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 18px 0; }
.ing-card { background: #FCF9F2; border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-size: 14px; }
.ing-card h4 { font-size: 12px; letter-spacing: 1.5px; color: var(--brown); margin-bottom: 6px; }
.ing-card .cc { margin-top: 8px; font-size: 12px; color: var(--ink-soft); }
.section-title { font-family: var(--serif); text-align: center; font-size: 30px; color: var(--brown); margin: 40px 0 6px; }
.routine-intro { text-align: center; font-size: 17px; line-height: 1.6; color: var(--ink); max-width: 580px; margin: 10px auto 18px; }
.section-kicker { text-align: center; font-size: 11px; letter-spacing: 2px; color: var(--olive); font-weight: 700; margin-top: 34px; }
.fade-in { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
.lint-flags { background: #F7E5DC; border: 1px solid #E0B8A4; border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #8C4A2E; margin: 14px 0; }

/* Countdown offer block */
.countdown { background: #4F5A2E; border-radius: 12px; padding: 26px 22px; text-align: center; margin: 26px 0 18px; color: #F2EEDF; }
.countdown .cd-kicker { letter-spacing: 3px; font-size: 18px; margin-bottom: 14px; }
.countdown .cd-timer { background: var(--bg); color: #4F5A2E; font-family: var(--serif); font-weight: 700; font-size: 44px; border-radius: 10px; padding: 10px; letter-spacing: 2px; }
.countdown .cd-tiles { display: flex; gap: 14px; margin: 14px 0; }
.countdown .cd-tiles div { flex: 1; background: rgba(242,238,223,.18); border-radius: 8px; padding: 16px 8px; font-family: var(--serif); font-size: 19px; line-height: 1.35; }
.countdown .cd-note { font-size: 15px; opacity: .9; }

/* Buy-box carousel (FPO imagery) */
.carousel { margin-bottom: 18px; }
.car-stage { position: relative; }
.kit-shot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: var(--bg); border-radius: 10px; padding: 18px; position: relative; min-height: 220px; }
.kit-shot.single { grid-template-columns: 1fr; place-items: center; }
.kit-tile { background: var(--panel); border-radius: 8px; min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: 11px; letter-spacing: .5px; color: var(--ink-soft); padding: 8px; position: relative; }
.kit-tile.big { min-height: 200px; width: 70%; font-size: 14px; }
.kit-tile .free-dot { position: absolute; top: -6px; right: -6px; background: var(--accent); color: #fff; font-size: 9px; letter-spacing: 1px; border-radius: 999px; padding: 5px 8px; }
.kit-tile .tag { margin-top: 6px; font-size: 10px; letter-spacing: 1.5px; color: var(--olive); font-weight: 700; }
.seal { position: absolute; top: 10px; right: 10px; width: 74px; height: 74px; border-radius: 50%; background: #8A926B; color: #fff; font-size: 8px; letter-spacing: 1px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; line-height: 1.5; }
.dots { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: #CFC6B2; cursor: pointer; padding: 0; }
.dots button.on { background: var(--olive); }

/* FAQ accordion */
.faq { margin: 14px 0 30px; }
.faq-item { margin-bottom: 10px; }
.faq-item summary { list-style: none; cursor: pointer; background: #A99C7E; color: #fff; font-size: 13px; letter-spacing: 1.5px; font-weight: 600; padding: 16px 18px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; }
.faq-item summary::after { content: "+"; font-size: 18px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a { background: #EFEAD9; border: 1px solid var(--line); border-radius: 0 0 8px 8px; padding: 16px 18px; font-size: 16px; }

/* ===== Results redesign (Figma 2026-06-10) ===== */
:root { --panel-warm: #E8DAC8; --gift-dark: #3A2519; --bg-secondary: #E8E3D4; }

.built-for { text-align: center; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); margin: 8px 0 18px; }

/* Your Skin Report — radar + facts */
.skin-report-card { background: var(--panel-warm); border-radius: 15px; padding: 24px 20px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 30px; }
.report-title { font-size: 25px; color: var(--ink); text-align: center; }
.radar { width: 100%; max-width: 300px; height: auto; overflow: visible; }
.radar-label { font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: 1px; fill: var(--olive); }
.report-facts { width: 277px; max-width: 100%; margin: 4px 0 0; padding-left: 21px; list-style: disc; }
.report-facts li { line-height: 1.6; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.report-facts .rf-k { font-weight: 700; color: var(--olive); text-transform: uppercase; letter-spacing: 1.6px; font-size: 13px; }

/* How Your Routine Helps — problem / solution cards */
.ps-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; background: #FCFAF4; }
.ps-row { display: grid; grid-template-columns: max-content 1fr; gap: 12px; align-items: start; }
.ps-row + .ps-row { margin-top: 12px; }
.ps-row p { font-size: 15px; line-height: 1.55; color: var(--ink); }
.ps-tag { font-size: 11px; letter-spacing: 1.5px; font-weight: 700; text-transform: uppercase; white-space: nowrap; padding-top: 2px; }
.ps-tag.problem { color: var(--accent); }
.ps-tag.solution { color: var(--olive); }

/* Routine cards */
.rcard { border: 1px solid var(--line); border-radius: 12px; padding: 0 0 6px; margin-bottom: 18px; overflow: hidden; background: #FCFAF4; }
.rcard-img { height: 150px; background: var(--panel); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11px; letter-spacing: 1px; color: var(--ink-soft); padding: 10px; }
.rcard-step { font-size: 11px; letter-spacing: 2px; color: var(--olive); font-weight: 700; text-transform: uppercase; margin: 18px 20px 0; }
.rcard-name { font-size: 24px; color: var(--ink); margin: 6px 20px 0; line-height: 1.2; }
.rcard-what { font-size: 15px; color: var(--ink-soft); margin: 8px 20px 0; line-height: 1.5; }
.why-callout { background: var(--bg); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; padding: 18px; margin: 16px 20px; }
.why-callout .why-k { font-size: 12px; letter-spacing: 2.1px; color: var(--accent); font-weight: 700; text-transform: uppercase; text-align: center; margin-bottom: 10px; }
.why-callout p { font-size: 15px; line-height: 1.6; color: var(--ink); }
.rfold { border-top: 1px solid var(--line); margin: 0 20px; }
.rfold summary { list-style: none; cursor: pointer; padding: 14px 0; font-size: 13px; letter-spacing: 1px; font-weight: 600; color: var(--olive); text-transform: uppercase; }
.rfold summary::before { content: "+ "; }
.rfold[open] summary::before { content: "− "; }
.rfold-body { padding-bottom: 14px; font-size: 15px; line-height: 1.55; }
.rfold-body .heroes { padding-left: 18px; }
.rfold-body .heroes li { margin-bottom: 6px; }

/* Gifts — dark isolated section */
.gifts-dark { background: var(--gift-dark); border-radius: 16px; padding: 28px 18px; margin: 30px 0; }
.gifts-dark .section-title.light { color: var(--bg); margin-top: 0; }
.gcard + .gcard { margin-top: 26px; }
.gcard-img { height: 200px; border-radius: 12px 12px 0 0; background: #4a3424; display: flex; align-items: center; justify-content: center; text-align: center; color: #C9B79E; font-size: 12px; letter-spacing: 1px; padding: 12px; }
.gcard-badge { background: var(--accent); color: #fff; font-size: 12px; letter-spacing: 1.5px; font-weight: 700; padding: 12px; text-align: center; border-radius: 0 0 4px 4px; }
.gcard-name { color: var(--bg); font-size: 26px; line-height: 1.15; margin: 18px 0 8px; }
.gcard-what { color: #D8C9B5; font-size: 15px; line-height: 1.5; margin-bottom: 8px; }
.gcard .why-callout { background: rgba(255,255,255,.06); border-left-color: var(--accent); margin: 16px 0; }
.gcard .why-callout .why-k { color: #E7A07F; }
.gcard .why-callout p { color: #E8DCCB; }
.gcard .rfold { border-top-color: rgba(255,255,255,.18); margin: 0; }
.gcard .rfold summary { color: #E7C9A0; }
.gcard .rfold-body { color: #D8C9B5; }

/* Ingredients That Match Your Skin's Needs — stacked image-topped cards (Figma 2026-06-10) */
.ing-list { margin: 14px 0 30px; }
.ing-card2 { border-radius: 12px; overflow: hidden; margin-bottom: 16px; border: 1px solid var(--line); }
.ing-img { height: 101px; background: var(--panel); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11px; letter-spacing: 1px; color: var(--ink-soft); padding: 10px; }
.ing-body { background: var(--bg-secondary); padding: 20px; }
.ing-name { font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--olive); margin-bottom: 8px; }
.ing-desc { font-size: 15px; line-height: 1.55; color: var(--ink); margin-bottom: 12px; }
.ing-concerns { font-size: 13px; line-height: 1.5; color: var(--ink); }
.ing-concerns span { font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--olive); }
