:root {
  --bg: #FBF7F0;
  --card: #FFFFFF;
  --ink: #1F2430;
  --muted: #6B7080;
  --line: #E9E2D6;
  --me: #E8664A;
  --me-soft: rgba(232, 102, 74, .18);
  --them: #2F7F7A;
  --them-soft: rgba(47, 127, 122, .18);
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; margin: 0 auto; padding: 0 20px; }

/* header / footer */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-family: var(--serif); font-size: 22px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.logo span { color: var(--me); }
.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { text-decoration: none; margin-right: 16px; }

/* type */
h1, h2, h3 { font-family: var(--serif); letter-spacing: -.015em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 6vw, 58px); }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--me); margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: 600 16px/1 var(--sans); padding: 16px 24px; border-radius: 999px; text-decoration: none; transition: transform .08s ease, box-shadow .2s ease, background .2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 20px rgba(31,36,48,.18); }
.btn-primary:hover { background: #000; }
.btn-accent { background: var(--me); color: #fff; box-shadow: 0 6px 20px rgba(232,102,74,.3); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

/* hero */
.hero { padding-top: 48px; padding-bottom: 40px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-art { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 18px; }
.legend { display: flex; gap: 16px; justify-content: center; font-size: 14px; color: var(--muted); margin-top: 6px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; padding-top: 24px; } }
.section.wrap, .section.narrow { padding-left: 20px; padding-right: 20px; }

.section { padding: 48px 0; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* forms */
label { font-weight: 600; display: block; margin-bottom: 6px; }
input[type=text], input[type=number], input[type=email], textarea, select {
  width: 100%; font: 16px var(--sans); padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); }
.field { margin-bottom: 18px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* rating */
.area { padding: 18px 0; border-bottom: 1px solid var(--line); }
.area:last-child { border-bottom: 0; }
.area-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.area-name { font-weight: 700; font-size: 17px; }
.area-q { font-size: 14px; color: var(--muted); margin: 2px 0 10px; }
.area-val { font: 700 22px var(--serif); min-width: 2ch; text-align: right; color: var(--me); }
.area-val.them { color: var(--them); }
input[type=range] { width: 100%; accent-color: var(--me); height: 28px; }
input[type=range].them { accent-color: var(--them); }
.scale-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0 22px; }
.progress > div { height: 100%; background: var(--me); width: 0; transition: width .3s; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 14px; font: 500 14px var(--sans); cursor: pointer; color: var(--ink); }
.chip.on { background: var(--them); border-color: var(--them); color: #fff; }
.chip.static { cursor: default; }
.chip .n { opacity: .7; margin-left: 4px; }

/* share link box */
.linkbox { display: flex; gap: 8px; }
.linkbox input { font-size: 14px; }
.linkbox .btn { padding: 12px 18px; white-space: nowrap; }

/* results */
.scores { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 6px 0 18px; }
.score { text-align: center; padding: 14px 22px; border-radius: 16px; background: var(--bg); min-width: 130px; }
.score b { display: block; font: 700 40px var(--serif); line-height: 1.1; }
.score.me b { color: var(--me); }
.score.them b { color: var(--them); }
.score span { font-size: 13px; color: var(--muted); }
.insight { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.insight:last-child { border-bottom: 0; }
.insight .ico { font-size: 22px; line-height: 1.2; }
.insight p { margin: 0; }
.bars .row { display: grid; grid-template-columns: 130px 1fr 70px; gap: 12px; align-items: center; padding: 7px 0; font-size: 14px; }
.bars .track { position: relative; height: 22px; }
.bars .bar { position: absolute; left: 0; height: 9px; border-radius: 9px; }
.bars .bar.me { top: 0; background: var(--me); }
.bars .bar.them { top: 12px; background: var(--them); }
.bars .nums { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
@media (max-width: 520px) { .bars .row { grid-template-columns: 92px 1fr 58px; } }

.waiting { text-align: center; padding: 30px 10px; }
.waiting .big { font: 700 54px var(--serif); color: var(--them); }

.notice { background: #FFF4D6; border: 1px solid #F1DB9C; color: #6B5310; padding: 10px 14px; border-radius: 12px; font-size: 14px; margin: 10px 0 0; }

/* ads */
.ad-slot { margin: 32px auto; min-height: 100px; max-width: 728px; border: 1px dashed #D9D1C3; border-radius: 12px; display: grid; place-items: center; color: #B3AA9A; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.ad-slot.live { border: 0; display: block; }

/* receipt */
.receipt-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 760px) { .receipt-wrap { grid-template-columns: 1fr; } }
.receipt-img { width: 100%; max-width: 420px; margin: 0 auto; filter: drop-shadow(0 12px 30px rgba(0,0,0,.12)); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; transition: transform .25s; z-index: 50; }
.toast.show { transform: translateX(-50%) translateY(0); }
.hidden { display: none !important; }
.prose h2 { margin-top: 1.4em; font-size: 26px; }
.prose li { margin-bottom: .4em; }

/* action plan */
.plan h2 { font-size: clamp(24px, 3.4vw, 32px); }
.plan-area { border-top: 1px solid var(--line); padding: 22px 0 18px; }
.plan-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan-head h3 { margin: 0; }
.plan-num { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.plan-sub { color: var(--muted); font-size: 14px; margin: 8px 0 0 42px; }
.tips { margin: 10px 0 12px; padding-left: 42px; }
.tips li { margin-bottom: 8px; }
.plan-area .small { margin-left: 42px; color: var(--them); font-weight: 600; text-decoration: none; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge.low { background: #FDE7E2; color: #A8402A; }
.badge.mid { background: #FFF2D2; color: #7A5A0B; }
.badge.high { background: #DDF0EC; color: #1F6560; }
.plan-best { background: var(--bg); border-radius: 14px; padding: 16px 18px; margin-top: 6px; }
.plan-all { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.plan-all summary { cursor: pointer; font-weight: 600; }
.plan-mini { padding: 14px 0; border-bottom: 1px solid var(--line); }
.plan-mini h4 { margin: 0; font-size: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.plan-mini .tips { padding-left: 20px; }
.plan-mini .small { color: var(--them); font-weight: 600; text-decoration: none; }
@media (max-width: 520px) { .plan-sub, .plan-area .small { margin-left: 0; } .tips { padding-left: 20px; } }

@media (max-width: 430px) { .nav { gap: 12px; font-size: 14px; } .logo { font-size: 20px; } }
