:root {
  --paper: #f4ecd8;
  --card: #fbf7ec;
  --ink: #1e1a17;
  --muted: #5f564c;
  --line: #d9cdb2;
  --gold: #d9a036;
  --gold-deep: #b57f1c;
  --wine: #8c2f39;
  --forest: #2e6b52;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.55 var(--body);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.eyebrow { font: 700 0.8rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--wine); margin: 0 0 0.8rem; }
.center { text-align: center; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top { padding: 18px 0; border-bottom: 2px solid var(--ink); }
.top .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.top a { color: var(--ink); text-decoration: none; }
.brand { font: 700 1.1rem var(--display); }
.top .by { font-size: 0.85rem; color: var(--muted); }
footer { margin-top: 64px; padding: 28px 0 48px; border-top: 2px solid var(--ink); font-size: 0.9rem; color: var(--muted); }

.btn {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
  font: 700 1.05rem/1.2 var(--body); color: var(--ink);
  background: var(--gold); border: 2px solid var(--ink); border-radius: 999px;
  padding: 16px 28px; min-height: 56px; box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { transform: translateY(1px); box-shadow: 0 3px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.btn:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: 0 4px 0 var(--ink); transform: none; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--card); transform: none; }
.btn.dark { background: var(--ink); color: var(--paper); box-shadow: 0 4px 0 var(--gold-deep); }
.btn.sm { padding: 10px 18px; min-height: 44px; font-size: 0.95rem; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 24px; }
section.block { padding: 44px 0 0; }

/* ---------- landing ---------- */
.hero { padding: 48px 0 8px; }
.hero p.lead { font-size: 1.2rem; max-width: 34em; }
.facts { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 8px; }
.facts li { padding-left: 30px; position: relative; }
.facts li::before { content: ''; position: absolute; left: 0; top: 0.42em; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink); }
.legends { margin: 16px 0 6px; font-weight: 600; line-height: 2.1; }
.legends span { display: inline-block; margin: 0 4px 0 0; padding: 2px 10px; border: 2px solid var(--ink); border-radius: 999px; background: #fbf7ec; font-size: 0.9rem; white-space: nowrap; }
.start-row { align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 0 4px; }
.cred { margin: 22px 0 0; padding-left: 14px; border-left: 4px solid var(--gold); }
.cred .q { display: block; font: italic 600 1.15rem/1.35 var(--display, Georgia, serif); }
.hero-img { display: block; width: 100%; height: auto; margin: 32px 0 0; border-radius: 14px; border: 3px solid var(--ink); }
.faces { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 36px 0 0; }
@media (max-width: 560px) { .faces { grid-template-columns: repeat(3, 1fr); } }
.banner { background: var(--forest); color: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0 0; }
.banner a { color: var(--paper); }
.three { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
@media (max-width: 560px) { .three { grid-template-columns: 1fr; } }
.three .card { padding: 18px; }
.three h3 { margin-bottom: 0.3em; }

/* ---------- quiz ---------- */
.progress { position: sticky; top: 0; z-index: 5; background: var(--paper); padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.progress .meta { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.bar { height: 12px; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--gold); width: 0; transition: width 0.25s; }
fieldset.q { border: 0; margin: 0; padding: 30px 0; border-bottom: 1px solid var(--line); min-width: 0; }
fieldset.q legend { font: 600 1.3rem/1.35 var(--display); padding: 0; margin-bottom: 18px; }
fieldset.q .note { margin: -10px 0 16px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; justify-items: center; max-width: 460px; }
.scale label { cursor: pointer; display: grid; place-items: center; width: 100%; min-height: 64px; }
.scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale .dot { display: block; border-radius: 50%; border: 3px solid var(--ink); background: var(--card); transition: background 0.1s, transform 0.1s; }
.scale label:nth-child(1) .dot, .scale label:nth-child(5) .dot { width: 54px; height: 54px; }
.scale label:nth-child(2) .dot, .scale label:nth-child(4) .dot { width: 44px; height: 44px; }
.scale label:nth-child(3) .dot { width: 34px; height: 34px; }
.scale label:hover .dot { transform: scale(1.06); }
.scale label:nth-child(-n + 2) input:checked + .dot { background: var(--wine); }
.scale label:nth-child(3) input:checked + .dot { background: var(--muted); }
.scale label:nth-child(n + 4) input:checked + .dot { background: var(--forest); }
.scale input:focus-visible + .dot { outline: 3px solid var(--wine); outline-offset: 3px; }
.ends { display: flex; justify-content: space-between; max-width: 460px; font: 700 0.85rem var(--body); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 4px; }
.ends span:first-child { color: var(--wine); }
.ends span:last-child { color: var(--forest); }
.opts { display: grid; gap: 10px; }
.opts.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 480px) { .opts.two { grid-template-columns: 1fr; } }
.opts label { cursor: pointer; display: block; }
.opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opts span { display: block; padding: 14px 18px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); min-height: 54px; }
.opts label:hover span { background: #fff; }
.opts input:checked + span { background: var(--ink); color: var(--paper); }
.opts input:focus-visible + span { outline: 3px solid var(--wine); outline-offset: 3px; }
.nav { display: flex; justify-content: space-between; gap: 12px; padding: 28px 0 0; }
.select { font: inherit; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); min-height: 52px; min-width: 14em; }
fieldset.q.optional legend { font-size: 1.1rem; }
.hint { color: var(--wine); font-size: 0.95rem; margin-top: 10px; min-height: 1.5em; text-align: right; }

/* ---------- result ---------- */
.result-hero { padding: 36px 0 0; text-align: center; }
.result-hero .avatar { width: min(440px, 90vw); margin: 0 auto 22px; }
.av { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; border: 4px solid var(--ink); background: #fff; }
.pair { display: flex; gap: 5%; justify-content: center; }
.pair .av { width: 47.5%; }
.grid18 .pair .av, .faces .av { border-width: 3px; }
.result-hero h1 { margin-bottom: 0.25em; }
.result-hero .tag { font: 500 1.25rem/1.4 var(--display); font-style: italic; color: var(--muted); }
.chip { display: inline-block; font: 700 0.78rem var(--body); letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); }
.chip.gold { background: var(--gold); }
.chip.wine { background: var(--wine); color: var(--paper); }
.meters { display: grid; gap: 14px; margin: 18px 0 22px; }
.meter .lab { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; margin-bottom: 5px; align-items: center; }
.meter .lab .n { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }
.meter .bar > i { background: var(--ink); }
.meter.is-top .bar > i { background: var(--forest); }
.meter.is-low .bar > i { background: var(--wine); }
.meter.is-b .bar > i { background: var(--gold-deep); }
.duo .bar { margin-top: 4px; }
dl.kv { margin: 0; display: grid; gap: 14px; }
dl.kv dt { font: 700 0.8rem var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--wine); }
dl.kv dd { margin: 2px 0 0; }
.artist { display: grid; gap: 4px; border-left: 6px solid var(--gold); padding: 4px 0 4px 16px; margin-top: 18px; }
.artist b { font: 700 1.3rem var(--display); }
ol.work { margin: 0 0 14px; padding-left: 1.3em; font-weight: 600; }
.blocks { display: grid; gap: 12px; margin: 16px 0; }
.blk { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: start; padding: 16px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); }
.blk .min { font: 700 1.5rem/1 var(--display); }
.blk .min small { display: block; font: 600 0.72rem var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.blk.focus { background: var(--ink); color: var(--paper); }
.blk.focus .min small { color: var(--gold); }
.blk b { display: block; }
.habit { font: 500 1.15rem/1.6 var(--display); }
.habit input { font: inherit; border: 0; border-bottom: 2px solid var(--ink); background: transparent; width: min(100%, 10.5em); padding: 2px 4px; color: var(--wine); }
form.email { display: grid; gap: 12px; margin-top: 14px; }
form.email .fields { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
@media (max-width: 560px) { form.email .fields { grid-template-columns: 1fr; } }
form.email input[type='text'], form.email input[type='email'] { font: inherit; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; width: 100%; min-height: 54px; }
.hp { position: absolute; left: -5000px; }
.gate { margin: 26px 0 40px; }
.gate h2 { margin: 6px 0 10px; }
.gate .gets { margin: 0 0 20px; padding-left: 1.2em; }
.gate .gets li { margin-bottom: 6px; }
.gate .msg.err { color: var(--wine); }
.msg { font-weight: 600; }
.msg.err { color: var(--wine); }
#signup .msg.err, #signup .msg.err a { color: var(--ink); }
.course { border-width: 3px; }
.course h3 { font-size: 1.6rem; margin-bottom: 0.15em; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; padding-left: 44px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); background: var(--gold); font: 700 0.95rem/26px var(--body); text-align: center; }
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 16px 0; }
@media (max-width: 560px) { .videos { grid-template-columns: 1fr; } }
.videos a { display: block; color: var(--ink); text-decoration: none; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--card); }
.videos img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 2px solid var(--ink); }
.videos span { display: block; padding: 10px 12px; font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.share { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 26px 24px; }
.share h2 { color: var(--paper); }
.share .btn.ghost { color: var(--paper); border-color: var(--paper); }
.share .btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }
.linkbox { display: flex; gap: 8px; margin-top: 14px; }
.linkbox input { flex: 1; min-width: 0; font: inherit; font-size: 0.9rem; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--paper); background: transparent; color: var(--paper); }

/* ---------- compare ---------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: center; margin-top: 28px; }
.versus .avatar { width: min(240px, 42vw); margin: 0 auto 10px; }
.versus h2 { font-size: clamp(1.05rem, 3.6vw, 1.5rem); }
.notes { display: grid; gap: 12px; margin-top: 16px; }

/* ---------- types ---------- */
.grid18 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
@media (max-width: 560px) { .grid18 { grid-template-columns: repeat(2, 1fr); } }
.grid18 a { color: var(--ink); text-decoration: none; text-align: center; font-weight: 600; font-size: 0.95rem; line-height: 1.25; }
.grid18 a span { display: block; margin-top: 8px; }
.grid18 a .pair { display: flex; margin-top: 0; }
.grid18 a small { display: block; color: var(--muted); font-weight: 500; }

/* ---------- deep dive ---------- */
.deep .interplay { font: 500 1.2rem/1.5 var(--display); font-style: italic; border-left: 6px solid var(--gold); padding-left: 16px; }
.deep h3 { margin-top: 26px; }
ol.struggles { padding-left: 1.3em; display: grid; gap: 10px; margin: 0; }
.fixes { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.fix { display: grid; grid-template-columns: 40px 1fr; gap: 12px; background: var(--card); border: 2px solid var(--ink); border-radius: 12px; padding: 14px 16px; }
.fix .n { width: 32px; height: 32px; border-radius: 50%; background: var(--forest); color: var(--paper); font: 700 1rem/32px var(--body); text-align: center; }
.fix p { margin: 4px 0 0; }
.fix .where { font-size: 0.92rem; color: var(--wine); font-weight: 600; }

/* ---------- testimonials ---------- */
.proof { display: grid; gap: 14px; margin: 18px 0; }
.proof h3 { margin: 10px 0 0; }
figure.quote { margin: 0; background: var(--card); border-left: 6px solid var(--forest); border-radius: 0 12px 12px 0; padding: 14px 18px; }
figure.quote blockquote { margin: 0; font: 500 1.08rem/1.5 var(--display); font-style: italic; }
figure.quote figcaption { margin-top: 8px; font-size: 0.92rem; color: var(--muted); }

/* ---------- pack ---------- */
.phrases { display: grid; gap: 14px; }
figure.phrase { margin: 0; padding: 14px; }
figure.phrase img { background: #fff; border-radius: 6px; margin-top: 8px; width: 100%; }
.offer { display: grid; grid-template-columns: 1fr; gap: 14px; }
.offer img { background: #fff; border: 2px solid var(--ink); border-radius: 8px; }
.offer ul { margin: 0; padding-left: 1.2em; }
.offer li { margin-bottom: 4px; }

/* ---------- plan (prints on one page) ---------- */
table.week { width: 100%; border-collapse: collapse; margin: 18px 0; }
table.week th, table.week td { border: 2px solid var(--ink); padding: 12px 14px; text-align: left; vertical-align: top; }
table.week th { background: var(--ink); color: var(--paper); font: 700 0.8rem var(--body); letter-spacing: 0.1em; text-transform: uppercase; }
table.week td:first-child { font: 700 1.1rem var(--display); white-space: nowrap; width: 5.2em; background: var(--card); }
table.week td.done { width: 3em; text-align: center; }
table.week td.done i { display: inline-block; width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 4px; }
@media print {
  body { background: #fff; font-size: 12.5px; }
  .no-print, .top, footer { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  section.block { padding-top: 14px; }
  h1 { font-size: 24px; } h2 { font-size: 17px; }
  .blk, .card, figure.phrase { break-inside: avoid; padding: 10px; }
  table.week th, table.week td { padding: 6px 8px; border-width: 1px; }
  .blk.focus, table.week th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
