/* ============================================================
   Know My Pets — warm, rounded, a little playful; typography does the work.
   Tokens → base → components. Type colours are set inline as --c.
   The token names (--gold, --serif) are kept from the original engine so
   components need no renaming: --gold is the accent, --serif the display face.
   ============================================================ */
:root {
  --bg: #F6EFE4;
  --bg-2: #EFE4D3;
  --surface: rgba(255, 255, 255, .55);
  --surface-2: rgba(255, 255, 255, .8);
  --surface-3: rgba(255, 255, 255, .96);
  --ink: #2A1E19;
  --ink-2: #5C4A40;
  --ink-3: #8C7A6E;
  --line: rgba(200, 118, 59, .24);
  --line-2: rgba(200, 118, 59, .46);
  --hair: rgba(74, 48, 36, .11);
  --gold: #C8763B;
  --gold-2: #A85A26;
  --gold-dim: rgba(200, 118, 59, .12);
  --c: #C8763B;
  --r-lg: 22px;
  --r-md: 16px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 18px 40px -28px rgba(74, 48, 36, .35);
  --serif: "Nunito", "Noto Sans SC", "Noto Sans TC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --sans: "Nunito", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cellipse cx='32' cy='40' rx='12' ry='9.5' fill='%23fff'/%3E%3Cellipse cx='18.5' cy='28' rx='4.6' ry='5.6' fill='%23fff'/%3E%3Cellipse cx='45.5' cy='28' rx='4.6' ry='5.6' fill='%23fff'/%3E%3Cellipse cx='25.5' cy='19' rx='4.6' ry='5.8' fill='%23fff'/%3E%3Cellipse cx='38.5' cy='19' rx='4.6' ry='5.8' fill='%23fff'/%3E%3C/svg%3E");
}
/* the cat quiz runs in sage green; everything else in terracotta */
body[data-quiz="cat-personality"] { --gold: #3F8F8A; --gold-2: #2E6F6B; --gold-dim: rgba(63, 143, 138, .12); --line: rgba(63, 143, 138, .24); --line-2: rgba(63, 143, 138, .46); --c: #3F8F8A; }
:lang(zh) { --serif: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Nunito", system-ui, sans-serif; --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Nunito", system-ui, sans-serif; }
:lang(zh-Hant) { --serif: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Nunito", system-ui, sans-serif; --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Nunito", system-ui, sans-serif; }
:lang(zh) .display { letter-spacing: 0; font-weight: 900; }
:lang(zh) .eyebrow { letter-spacing: .2em; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  min-height: 100dvh; display: flex; flex-direction: column; position: relative;
}
/* warm daylight: a soft glow at the top and a faint scatter of paw prints */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(70% 45% at 50% -10%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%),
    radial-gradient(40% 30% at 90% 30%, rgba(63, 143, 138, .07), transparent 70%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='%232A1E19'%3E%3Cg transform='translate(40 50) rotate(-18)'%3E%3Cellipse rx='8' ry='6.5'/%3E%3Cellipse cx='-9' cy='-9' rx='3' ry='3.8'/%3E%3Cellipse cx='9' cy='-9' rx='3' ry='3.8'/%3E%3Cellipse cx='-4' cy='-15' rx='3' ry='3.9'/%3E%3Cellipse cx='4' cy='-15' rx='3' ry='3.9'/%3E%3C/g%3E%3Cg transform='translate(160 150) rotate(22)'%3E%3Cellipse rx='8' ry='6.5'/%3E%3Cellipse cx='-9' cy='-9' rx='3' ry='3.8'/%3E%3Cellipse cx='9' cy='-9' rx='3' ry='3.8'/%3E%3Cellipse cx='-4' cy='-15' rx='3' ry='3.9'/%3E%3Cellipse cx='4' cy='-15' rx='3' ry='3.9'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.wrap { width: 100%; max-width: 700px; margin: 0 auto; padding: 0 20px; }
main { flex: 1; padding-bottom: 56px; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
::selection { background: rgba(200, 118, 59, .3); }

/* ===== header / footer ===== */
.top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 22px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 800; font-size: 22px; letter-spacing: -.01em; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; border-radius: 50%; background: var(--gold) var(--paw) center / 72% no-repeat; position: relative; box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--gold) 70%, transparent); }
.top-right { display: flex; align-items: center; gap: 14px; }
.top-link { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); text-decoration: none; }
.top-link:hover { color: var(--gold-2); }
.top-chip { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--gold); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 11px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang a { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-decoration: none; color: var(--ink-3); padding: 4px 9px; border-radius: 999px; }
.lang a.on { background: var(--gold-dim); color: var(--gold-2); }
.lang a:hover { color: var(--ink); }
.foot { padding: 30px 20px 40px; color: var(--ink-3); font-size: 12.5px; text-align: center; border-top: 1px solid var(--hair); }
.foot a { color: var(--ink-3); }
.foot .footer-about { display: inline-block; margin-bottom: 4px; color: var(--gold-2); font-size: 12.5px; text-underline-offset: 4px; }
.loading { color: var(--ink-3); text-align: center; padding: 90px 0; letter-spacing: .1em; }

/* ===== type ===== */
.display { font-family: var(--serif); font-weight: 800; letter-spacing: -.025em; line-height: 1.04; margin: 0; color: var(--ink); }
h1.display { font-size: clamp(40px, 8vw, 66px); }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.eyebrow.center { text-align: center; }
.eyebrow.gold { color: var(--gold); }
.lede { font-size: 19px; color: var(--ink-2); margin: 20px 0 28px; max-width: 36ch; line-height: 1.55; }
.sub { font-size: 13px; color: var(--ink-3); margin: 16px 0 0; letter-spacing: .02em; }
.hl { color: var(--gold); font-style: italic; font-weight: 800; }
.card-title { font-family: var(--serif); font-weight: 800; font-size: 24px; letter-spacing: -.01em; margin: 0 0 18px; color: var(--ink); }
.mini-title { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.caption { font-size: 13px; color: var(--ink-3); margin: 14px 0 0; text-align: center; }

/* ===== buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 14.5px; letter-spacing: .02em; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-primary { background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 82%, white), var(--gold) 60%, color-mix(in srgb, var(--gold) 82%, black)); color: #fff; box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--gold) 75%, transparent); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--gold) 85%, transparent); }
.btn-primary .arrow { transition: transform .15s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--ink); background: var(--gold-dim); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

/* ===== cards ===== */
.card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; margin-top: 14px; box-shadow: var(--shadow); position: relative; }
.card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 55%, transparent), transparent); border-radius: var(--r-lg) var(--r-lg) 0 0; }

/* ===== landing ===== */
.hero { padding: 44px 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.quiz-instructions { max-width: 64ch; margin: 0 0 24px; padding-left: 14px; border-left: 1px solid var(--line-2); color: var(--ink-2); font-size: 13px; line-height: 1.8; }
.quiz-instructions a { color: var(--gold-2); text-underline-offset: 3px; }
.meter-ends { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-3); font-size: 11px; margin-top: 6px; }
.meter-ends > span:last-child { text-align: right; }
.score-note { color: var(--ink-2); font-size: 12px; line-height: 1.8; border-top: 1px solid var(--hair); margin: 22px 0 0; padding-top: 16px; }
.research-notes { padding-top: 16px; border-top: 1px solid var(--hair); margin-top: 18px; }
.research-notes > h4 { color: var(--gold-2); font: 600 18px/1.4 var(--serif); margin: 0 0 10px; }
.research-notes p, .research-notes li { font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.research-notes a { color: var(--gold-2); text-underline-offset: 3px; }
.research-items summary { padding: 14px 0; color: var(--gold-2); cursor: pointer; font-size: 13px; }
.research-table-wrap { overflow-x: auto; }
.research-table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 12px; }
.research-table th, .research-table td { padding: 12px 10px; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; color: var(--ink-2); }
.research-table th { color: var(--gold-2); }
.research-table td:first-child { min-width: 180px; }
.banner { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 14px 18px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-2); font-size: 14.5px; color: var(--ink-2); }
.banner strong { color: var(--ink); display: block; }
.banner-mark { flex: 0 0 auto; display: grid; place-items: center; }
.types { padding: 26px 0 8px; }
.type-grid { display: grid; gap: 10px; }
.type-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.type-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.type-card { background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; padding: 18px 12px 14px; text-align: center; transition: border-color .2s ease, transform .2s ease, background .2s ease; display: grid; justify-items: center; gap: 8px; }
.type-card:hover { border-color: var(--c); transform: translateY(-2px); background: var(--surface-2); }
.type-card .sigil { filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--c) 30%, transparent)); }
.type-name { font-family: var(--serif); font-weight: 800; font-size: 16px; color: var(--ink); line-height: 1.15; }
.type-tag { font-size: 11.5px; color: var(--ink-3); line-height: 1.35; letter-spacing: .02em; }
.how { padding: 26px 0 10px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; color: var(--ink-2); font-size: 15px; }
.steps li strong { color: var(--ink); }
.steps li::before { content: counter(step, upper-roman); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); font-family: var(--serif); font-weight: 600; font-size: 14px; display: grid; place-items: center; color: var(--gold); }

/* ===== hub ===== */
.hub-hero { padding: 50px 0 30px; text-align: center; }
.hub-hero .lede { margin-left: auto; margin-right: auto; max-width: 48ch; }
.quiz-grid { display: grid; gap: 14px; margin-top: 8px; }
.quiz-card { display: grid; grid-template-columns: 84px 1fr; gap: 20px; align-items: start; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; position: relative; overflow: hidden; }
.quiz-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 22%, transparent), transparent); pointer-events: none; }
.quiz-card:hover { transform: translateY(-2px); border-color: var(--c); }
.quiz-sigil { width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--c); background: var(--surface); filter: drop-shadow(0 0 14px color-mix(in srgb, var(--c) 40%, transparent)); }
.quiz-card .kicker { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--c); margin: 0 0 8px; }
.quiz-card h2 { font-family: var(--serif); font-weight: 600; font-size: 27px; letter-spacing: 0; margin: 0 0 8px; line-height: 1.12; color: var(--ink); }
.quiz-card p { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }
.quiz-card .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.quiz-card .go { margin-left: auto; font-weight: 700; font-size: 13.5px; letter-spacing: .04em; color: var(--gold-2); }
.chip { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); border: 1px solid var(--hair); border-radius: 999px; padding: 4px 10px; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 34px 0 10px; }
.trust div { padding: 20px; border-radius: 16px; border: 1px solid var(--hair); background: var(--surface); }
.trust h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.trust p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* ===== quiz ===== */
.progress { height: 2px; background: var(--hair); margin-top: 22px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .45s cubic-bezier(.2, .7, .2, 1); box-shadow: 0 0 10px rgba(200, 118, 59, .6); }
.q-card { padding: 30px 0 10px; }
.q-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.q-top .eyebrow { margin: 0; }
.q-top .num { color: var(--gold); font-family: var(--serif); font-size: 15px; letter-spacing: .05em; }
.q-top .of { color: var(--ink-3); }
.btn-back { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); display: grid; place-items: center; font-size: 15px; transition: all .15s ease; }
.btn-back:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-2); }
.btn-back:disabled { opacity: .25; cursor: default; }
.part-chip { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; margin: 0 0 16px; }
.q-text { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 4.8vw, 34px); line-height: 1.22; letter-spacing: 0; margin: 0 0 28px; color: var(--ink); }
.q-text strong { font-weight: 700; color: var(--gold-2); }
.q-text.statement { font-style: italic; }
.q-text.statement::before { content: "“"; color: var(--gold); margin-right: .05em; }
.q-text.statement::after { content: "”"; color: var(--gold); margin-left: .05em; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: flex-start; gap: 16px; text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 16px 18px; font-size: 15.5px; line-height: 1.5; color: var(--ink); transition: border-color .15s ease, transform .15s ease, background .15s ease, box-shadow .15s ease; }
.opt:hover:not(:disabled) { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-1px); box-shadow: 0 10px 30px -18px rgba(200, 118, 59, .5); }
.opt.selected { border-color: var(--gold); background: var(--gold-dim); }
.opt.selected .key { background: var(--gold); color: #fff; border-color: var(--gold); }
.opt:disabled:not(.selected) { opacity: .45; }
.key { flex: 0 0 auto; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; border: 1px solid var(--line-2); font-family: var(--serif); font-size: 14px; font-weight: 600; display: grid; place-items: center; color: var(--gold); transition: all .15s ease; }
.hint { font-size: 12.5px; color: var(--ink-3); margin: 22px 0 0; }
.scale-hint { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: -8px 0 12px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale-btn { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 16px 6px 12px; display: grid; gap: 8px; justify-items: center; transition: all .15s ease; animation: rise .38s cubic-bezier(.2, .7, .2, 1) both; }
.scale-btn:hover:not(:disabled) { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-1px); }
.scale-btn.selected { border-color: var(--gold); background: var(--gold-dim); }
.scale-btn:disabled:not(.selected) { opacity: .45; }
.scale-num { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--gold-2); line-height: 1; }
.scale-label { font-size: 10.5px; color: var(--ink-3); text-align: center; line-height: 1.25; letter-spacing: .02em; }

/* ===== result ===== */
.result-hero { text-align: center; padding: 40px 0 26px; }
.hero-sigil { display: flex; justify-content: center; margin: 4px 0 10px; }
.hero-sigil .sigil { filter: drop-shadow(0 0 22px color-mix(in srgb, var(--c) 55%, transparent)); animation: breathe 6s ease-in-out infinite; }
.type-title { color: var(--c); }
.type-sub { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin: 12px 0 0; }
.type-tagline { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 23px; color: var(--ink-2); margin: 12px 0 0; }
.summary { font-size: 16.5px; line-height: 1.65; color: var(--ink); margin: 0 0 22px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.check, .arrow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.check li, .arrow-list li { position: relative; padding-left: 22px; }
.check li::before { content: "◆"; position: absolute; left: 0; top: 1px; font-size: 9px; color: var(--gold); }
.arrow-list li::before { content: "◇"; position: absolute; left: 0; top: 1px; font-size: 9px; color: var(--c); }
.pill { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.pill.tiny { font-size: 9.5px; padding: 2px 7px; vertical-align: middle; margin-left: 8px; color: var(--gold-2); background: var(--gold-dim); }
.pill.aligned { background: rgba(25, 158, 112, .15); color: #1E8A5F; }
.pill.close { background: rgba(57, 135, 229, .15); color: #2F6FB5; }
.pill.split { background: rgba(217, 89, 38, .15); color: #B8432A; }

/* meters */
.meter + .meter { margin-top: 22px; }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.meter-label { font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 9px; }
.meter.dominant .meter-label { color: var(--ink); }
.meter-label .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; box-shadow: 0 0 8px currentColor; }
.meter-val { font-size: 13px; color: var(--ink-3); }
.meter-val strong { font-family: var(--serif); font-size: 24px; color: var(--ink); font-weight: 500; }
.meter-val small { font-size: 12px; color: var(--ink-3); margin-left: 1px; }
.meter-val .lvl { margin-left: 6px; letter-spacing: .06em; text-transform: uppercase; font-size: 10.5px; font-weight: 700; }
.meter-track { height: 6px; border-radius: 3px; background: var(--hair); overflow: hidden; }
.meter-fill { height: 100%; width: 0; border-radius: 3px; transition: width 1.1s cubic-bezier(.2, .7, .2, 1); box-shadow: 0 0 12px currentColor; }
.meter-blurb { font-size: 12.5px; color: var(--ink-3); margin: 8px 0 0; }

/* star map */
.map-wrap { display: flex; justify-content: center; }
.starmap { width: 100%; max-width: 380px; height: auto; display: block; }
.starmap .map-bg { fill: #FBF5EC; }
.starmap .map-frame { fill: none; stroke: var(--line-2); }
.starmap .grid { stroke: rgba(200, 118, 59, .22); stroke-dasharray: 2 5; }
.starmap .axis { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; fill: var(--ink-3); }
.starmap .cell-name { font-family: var(--serif); font-size: 12.5px; font-weight: 600; fill: var(--ink); letter-spacing: .02em; }
.starmap .you-label { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; fill: var(--ink); }
.starmap .you-ring { opacity: .35; animation: pulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }

/* insights / moves */
.insights { border-left: 2px solid var(--gold); }
.insights .eyebrow { margin-bottom: 12px; color: var(--gold); }
.insight-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.insight-list li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.insight-list li::before { content: "“"; position: absolute; left: 0; top: -8px; font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--gold); }
.moves { margin: 0; padding: 0; list-style: none; counter-reset: mv; display: grid; gap: 16px; }
.moves li { counter-increment: mv; position: relative; padding-left: 44px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.moves li strong { color: var(--ink); }
.moves li::before { content: counter(mv, upper-roman); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--c); color: var(--c); font-family: var(--serif); font-weight: 600; font-size: 13px; display: grid; place-items: center; }
.watch { margin-top: 22px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--line-2); }
.watch-head { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; letter-spacing: .02em; }
.watch-head strong { color: var(--ink); }
.watch-mark { color: var(--gold); font-size: 11px; }
.watch p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

/* share / invite / report frames all speak one language:
   dark surface, hairline top edge, accent border + wash, sigil watermark */
.frame { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 28px; margin-top: 14px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 42%, var(--line)); box-shadow: var(--shadow); }
.frame::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 70%, transparent), transparent); }
.frame::after { content: ""; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 16%, transparent), transparent); pointer-events: none; }
.frame > *:not(.sr-only) { position: relative; }
.frame > .frame-sigil { position: absolute; right: -34px; top: -30px; opacity: .10; pointer-events: none; color: var(--c); line-height: 0; }
.frame-brand { margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--c); }

/* share */
.share { margin-top: 14px; }
.share-card { min-height: 220px; display: flex; flex-direction: column; justify-content: center; }
.share-card .frame-brand, .share-card .share-line, .share-card .share-cta { max-width: calc(100% - 44px); }
.share-btns .btn { min-width: 132px; }
.share-line { font-family: var(--serif); font-size: clamp(23px, 4.4vw, 30px); font-weight: 500; line-height: 1.25; margin: 0 0 16px; color: var(--ink); }
.share-cta { margin: 0; font-size: 12.5px; color: var(--ink-3); letter-spacing: .02em; }
.share-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.share-btns.center { justify-content: center; }
.owned-report { --c: var(--gold); margin: 24px 0; }
.owned-report > p:not(.eyebrow) { max-width: 64ch; color: var(--ink-2); line-height: 1.7; }
.owned-report .share-btns { margin-top: 22px; }
.owned-report > .owned-storage-note, .owned-retake-note { font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.owned-report > .owned-storage-note { margin: 18px 0 0; }
.owned-retake-note { max-width: 64ch; margin: 16px 0 0; text-align: start; text-wrap: pretty; }
.owned-retake-note + .sub { max-width: 64ch; margin-top: 10px; text-align: start; text-wrap: pretty; }
.owned-history { margin: 26px 0; border: 1px solid var(--line); border-radius: 18px; padding: 8px 22px; background: var(--surface); }
.owned-history summary { cursor: pointer; padding: 14px 0; color: var(--gold-2); }
.owned-history > div { border-top: 1px solid var(--line); padding: 16px 0 20px; }
.owned-history > div > p { margin: 0; font-size: 13px; color: var(--ink-2); }
.purchase-check { margin: 24px 0; }
@media (max-width: 600px) {
  .owned-report .share-btns, .owned-history .share-btns { display: grid; grid-template-columns: 1fr; }
  .owned-report .btn, .owned-history .btn { white-space: normal; text-align: center; }
}

/* report card (paywall) */
.report-card { color: var(--ink); }
.partner-guidance p { font-size: 14px; line-height: 1.75; margin: 0; color: var(--ink-2); }
.partner-guidance .partner-guidance-note { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 12px; color: var(--ink-3); }
.report-title { font-family: var(--serif); font-weight: 600; font-size: 28px; margin: 0 0 10px; line-height: 1.12; }
.report-lede { color: var(--ink-2); font-size: 15px; margin: 0 0 22px; }
.report-sections { list-style: none; margin: 0 0 20px; padding: 0; display: grid; counter-reset: rs; }
.report-sections li { counter-increment: rs; padding: 11px 0 11px 40px; font-size: 14.5px; display: flex; align-items: center; border-top: 1px solid var(--hair); position: relative; color: var(--ink); }
.report-sections li:last-child { border-bottom: 1px solid var(--hair); }
.report-sections li::before { content: counter(rs, upper-roman); position: absolute; left: 0; top: 11px; width: 28px; font-family: var(--serif); font-size: 13px; color: var(--gold); letter-spacing: .05em; }
.report-bullets { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.report-bullets li::before { content: "◆"; margin-right: 10px; color: var(--gold); font-size: 8px; vertical-align: middle; }
.report-cta { display: grid; gap: 12px; justify-items: stretch; }
.paywall-contents { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin-bottom: 22px; }
.paywall-contents summary { cursor: pointer; padding: 14px 0; color: var(--gold-2); font-size: 14px; font-weight: 600; }
.paywall-contents .report-sections { margin-bottom: 0; }
.paywall-contents .report-sections li:last-child { border-bottom: 0; }
.purchase-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0 0 26px; }
.purchase-answer { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.trust-icon { display: block; width: 20px; height: 20px; flex-shrink: 0; }
.purchase-answer > .trust-icon { color: var(--gold); margin-top: 2px; }
.purchase-answer h4 { margin: 0 0 7px; font: 700 14px/1.5 var(--sans); color: var(--ink); }
.purchase-answer p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.7; }
.purchase-answer a { color: var(--gold-2); text-underline-offset: 3px; overflow-wrap: anywhere; }
.purchase-answer:nth-child(3) { grid-column: 1 / -1; padding-block: 22px; border-block: 1px solid var(--hair); }
.purchase-support { display: block; padding-top: 8px; }
.answer-example { margin-top: 16px; padding: 16px 18px; border-left: 2px solid var(--c); border-radius: 0 10px 10px 0; background: var(--surface-3); }
.answer-example .mini-title { font-size: 10px; color: var(--gold); margin-bottom: 8px; }
.answer-example .answer-example-question { font-size: 12px; }
.answer-example blockquote { margin: 9px 0 12px; font-family: var(--serif); font-size: 20px; color: var(--ink); line-height: 1.45; }
.answer-example .answer-example-note { color: var(--ink-3); font-size: 12px; }
.report-cta .unlock-button { display: flex; flex-direction: column; gap: 6px; width: 100%; min-height: 84px; padding: 17px 24px; white-space: normal; text-align: center; line-height: 1.45; }
.unlock-button small { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .025em; }
.payment-trust { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding-top: 3px; color: var(--ink-2); font-size: 12px; }
.payment-trust-secure, .payment-trust-provider { display: inline-flex; align-items: center; gap: 7px; }
.payment-trust-secure > svg { color: var(--gold); width: 16px; height: 16px; }
.payment-trust-provider { padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--bg-2); font-size: 13px; font-weight: 700; }
.payment-trust-provider > svg { width: 18px; height: 18px; }
.payment-trust-note { width: 100%; max-width: 76ch; justify-self: center; margin: 0; text-align: center; text-wrap: pretty; color: var(--ink-3); font-size: 11px; line-height: 1.65; }
.report-cta .sample-link { justify-self: center; }
.sample-before-pay { width: 100%; margin: 16px 0 4px; padding: 15px 18px; text-align: center; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(200, 118, 59, .045); }
.sample-before-pay .sample-link { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; line-height: 1.5; color: var(--gold-2); }
.sample-before-pay .trust-icon { width: 18px; height: 18px; }
.sample-before-pay p { font-size: 12px; line-height: 1.65; margin: 9px 0 0; color: var(--ink-3); }
.report-cta > .sample-before-pay { margin-top: 0; margin-bottom: 4px; }
.report-cta .payment-choices { width: 100%; }
.report-cta .payment-choices small { white-space: normal; }
@media (max-width: 620px) {
  .purchase-answers { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .purchase-answer:nth-child(3) { padding-block: 18px; }
  .answer-example { padding: 14px; }
  .report-cta .unlock-button { padding: 15px 18px; font-size: 15px; }
}
.payment-label { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; }
.payment-hint { margin: 6px 0 0; color: var(--ink-3); font-size: 12px; text-align: center; width: min(100%, 520px); }
.payment-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(100%, 520px); }
.payment-choices .btn { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 0; text-align: left; transition: transform .18s ease, filter .18s ease; }
.payment-choices .btn:hover { transform: translateY(-1px); filter: brightness(.96); }
.payment-choices .btn span { display: grid; gap: 3px; min-width: 0; }
.payment-choices .btn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.payment-choices .btn small { font: 12px/1.3 inherit; opacity: .82; white-space: nowrap; }
.payment-choices .btn strong { font: inherit; white-space: nowrap; }
.payment-choices .payment-stripe { background: #635bff; border-color: #635bff; color: #fff; }
.payment-choices .payment-paypal { background: #ffc439; border-color: #ffc439; color: #142c4c; }
.fineprint { font-size: 12px; color: var(--ink-3); margin: 6px 0 0; }
.lead-form { display: grid; gap: 10px; }
.lead-note { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.lead-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.lead-form input { min-width: 0; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 12px 16px; font: inherit; font-size: 15px; outline: none; }
.lead-form input::placeholder { color: var(--ink-3); }
.lead-form input:focus { border-color: var(--gold); }
.lead-ok { margin: 0; font-size: 15px; font-weight: 600; color: var(--gold-2); }
.result-foot { text-align: center; padding: 30px 0 0; }
.disclaimer { font-size: 12.5px; color: var(--ink-3); margin: 16px auto 0; max-width: 50ch; }

/* invite */
.invite-text { color: var(--ink-2); font-size: 15px; margin: -6px 0 16px; }
.name-input { width: 100%; border-radius: 12px; border: 1px solid var(--line-2); padding: 12px 14px; font: inherit; font-size: 15px; background: var(--surface); color: var(--ink); outline: none; margin-bottom: 10px; }
.name-input:focus { border-color: var(--gold); }
.link-box { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.link-input { min-width: 0; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 12px 16px; font: inherit; font-size: 13px; color: var(--ink-2); outline: none; text-overflow: ellipsis; }

/* match */
.match-hero .names { font-size: clamp(32px, 6.5vw, 50px); }
.match-hero .amp { color: var(--c); font-style: italic; font-weight: 400; }
.ring-wrap { display: flex; justify-content: center; margin: 22px 0 10px; }
.ring { width: 156px; height: 156px; }
.ring-track { stroke: var(--hair); }
.ring-fill { transition: stroke-dashoffset 1.3s cubic-bezier(.2, .7, .2, 1); filter: drop-shadow(0 0 8px currentColor); }
.ring-num { font-family: var(--serif); font-size: 42px; font-weight: 500; fill: var(--ink); }
.ring-sub { font-family: var(--sans); font-size: 10px; font-weight: 700; fill: var(--ink-3); letter-spacing: .15em; }
.band-title { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 6px 0 8px; }
.band-text { color: var(--ink-2); font-size: 16px; max-width: 54ch; margin: 0 auto; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; text-align: center; }
.vs-side { display: grid; justify-items: center; gap: 4px; }
.vs-side .sigil { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--c) 50%, transparent)); margin-bottom: 6px; }
.vs-who { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.vs-type { font-family: var(--serif); font-weight: 600; font-size: 23px; color: var(--c); margin: 0; }
.vs-tag { margin: 0; font-size: 13.5px; color: var(--ink-2); font-style: italic; font-family: var(--serif); }
.vs-mid { font-family: var(--serif); font-size: 30px; color: var(--ink-3); }
.pair-legend { display: flex; gap: 20px; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: -6px 0 20px; }
.pair-legend span { display: inline-flex; align-items: center; gap: 8px; }
.pair-dim + .pair-dim { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--hair); }
.pair-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.pair-label { font-weight: 600; font-size: 15px; }
.pair-track { position: relative; height: 6px; border-radius: 3px; background: var(--hair); margin: 12px 8px; }
.pair-span { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--surface-3); }
.pair-span.aligned { background: rgba(25, 158, 112, .5); }
.pair-span.close { background: rgba(57, 135, 229, .5); }
.pair-span.split { background: rgba(217, 89, 38, .6); }
.pm { position: absolute; top: 50%; width: 16px; height: 16px; transform: translate(-50%, -50%); border: 2px solid var(--bg); box-shadow: 0 0 10px rgba(0, 0, 0, .6); box-sizing: border-box; }
.pm-a { background: var(--ink); border-radius: 50%; }
.pm-b { background: var(--gold); border-radius: 3px; transform: translate(-50%, -50%) rotate(45deg); }
.pm.static { position: static; transform: none; width: 12px; height: 12px; display: inline-block; }
.pm-b.static { transform: rotate(45deg); }
.pair-ends { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.pair-text { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

/* report page */
.report-download-page { max-width: 900px; padding-top: 32px; padding-bottom: 42px; }
.report-page-label { margin-bottom: 18px; }
.report-delivery { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 38px; padding: 32px; align-items: center; }
.report-cover { min-height: 360px; padding: 24px 16px; min-width: 0; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 1px solid var(--line-2); border-radius: 3px 12px 12px 3px; background: linear-gradient(115deg, #252325 0, #10131c 6%, #191e2b 100%); box-shadow: inset 5px 0 0 rgba(200, 118, 59, .15), 10px 15px 30px rgba(0,0,0,.2); }
.report-cover-brand { margin: 0 0 10px; color: var(--gold); font-family: var(--serif); font-size: 16px; }
.report-cover .hero-plate svg { width: 145px; max-width: 100%; animation: none; }
.report-cover h1.display { font-size: 28px; line-height: 1.2; margin: 10px 0; overflow-wrap: anywhere; }
.report-cover .hero-tag { font-size: 13px; line-height: 1.55; margin: 12px 0; }
.report-cover-format { font-size: 10px; line-height: 1.6; margin: 18px 0 0; color: var(--ink-3); }
.report-delivery-main { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.report-delivery .report-status { align-items: flex-start; min-height: 100px; margin-bottom: 12px; }
.report-delivery .report-status > .spinner, .report-delivery .report-status > .done-mark { margin-top: 4px; }
.report-delivery .report-status strong { font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.4; }
.report-delivery .report-status p { font-size: 13px; line-height: 1.65; margin: 9px 0 0; }
/* Delivery promise while the report is being written: quiet, but it has to be believed. */
.report-mail-note { margin: 14px 0 0; padding: 10px 12px; border-left: 2px solid var(--gold); background: var(--gold-dim); border-radius: 0 3px 3px 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
.report-steps { list-style: none; padding: 0; display: flex; justify-content: space-between; gap: 10px; margin: 20px 0; }
.report-steps li { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 11px; line-height: 1.4; }
.report-steps li > span { display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; border: 1px solid var(--line-2); border-radius: 50%; }
.report-steps .is-current, .report-steps .is-done { color: var(--gold-2); }
.report-steps .is-current > span, .report-steps .is-done > span { background: var(--gold-dim); border-color: var(--gold); }
.report-delivery-includes { min-height: 44px; font-size: 13px; line-height: 1.65; color: var(--ink-2); margin: 0 0 16px; }
.report-download { width: 100%; white-space: normal; }
.report-save-hint { min-height: 38px; font-size: 11.5px; line-height: 1.65; color: var(--ink-3); margin: 12px 0 0; }
.report-secondary { margin-top: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; }
.report-secondary a { color: var(--ink-3); }
.report-secondary[hidden], .report-excerpt[hidden] { display: none; }
.report-excerpt { padding: 24px 30px; margin-top: 20px; }
.report-excerpt > h2 { margin: 0 0 16px; font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--gold-2); }
.report-excerpt .prose { font-size: 15px; line-height: 1.8; }
.report-preview-note { padding-top: 14px; border-top: 1px solid var(--hair); font-size: 12px; color: var(--ink-3); margin: 16px 0 0; }
@media (max-width: 620px) {
  .report-download-page { padding-top: 20px; }
  .report-delivery { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 22px; }
  .report-cover { display: none; }
  .report-delivery .report-status { min-height: 0; }
  .report-steps { gap: 6px; }
  .report-steps li { font-size: 10px; }
  .report-excerpt { padding: 22px; }
}
.report-body { padding: 28px 30px; }
.report-status { display: flex; align-items: center; gap: 14px; color: var(--ink-2); font-size: 14.5px; margin-bottom: 18px; }
.report-status strong { color: var(--ink); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--gold); animation: spin .9s linear infinite; flex: 0 0 auto; }
.done-mark { color: var(--gold-2); font-size: 16px; }
.fail-mark { color: #F19A6A; font-size: 12px; }
.err { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.prose { font-size: 16.5px; line-height: 1.75; color: var(--ink); }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: 28px; margin: 36px 0 12px; color: var(--gold-2); letter-spacing: .01em; }
.prose h2:first-child { margin-top: 6px; }
.prose h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; margin: 26px 0 8px; }
.prose h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 22px 0 6px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 18px 0; padding: 12px 18px; border-left: 2px solid var(--gold); background: var(--surface); font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--hair); margin: 26px 0; }
.prose strong { color: var(--gold-2); font-weight: 600; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(10px); background: var(--gold); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; opacity: 0; transition: all .25s ease; z-index: 10; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== motion ===== */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { transform: scale(.5); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes spin { to { transform: rotate(360deg); } }
.enter { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.enter.d1 { animation-delay: .08s; } .enter.d2 { animation-delay: .16s; } .enter.d3 { animation-delay: .24s; }
.enter.d4 { animation-delay: .32s; } .enter.d5 { animation-delay: .40s; } .enter.d6 { animation-delay: .48s; }
.opts .opt { animation: rise .38s cubic-bezier(.2, .7, .2, 1) both; }
.q-card.leave { animation: none; opacity: 0; transform: translateY(-10px); transition: all .14s ease-in; }
@media (prefers-reduced-motion: reduce) {
  .enter, .opts .opt, .scale-btn, .starmap .you-ring, .hero-sigil .sigil { animation: none !important; }
  .meter-fill, .progress-fill, .ring-fill { transition: none; }
}

/* ===== print: turn the report page into an actual document =====
   Browser "Save as PDF" is the delivery mechanism, so this sheet has to produce
   something that reads like a bought report: a cover page, one section per page,
   no orphaned headings, and nothing from the app chrome. */
.print-only { display: none; }
@media print {
  /* Fallback only: the designed PDF is built by app.js (buildPrintDoc) with print.css + paged.js.
     This just keeps the on-screen report legible if someone prints the page directly. */
  @page { size: A4; margin: 20mm 18mm; }
  html, body { background: #fff !important; color: #14161a !important; }
  body::before, body::after, .top, .foot, #sky, .result-foot, .report-status, .btn, .share-btns, .sample-link, .lang, .pdf-view { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .card, .report-body { border: 0 !important; box-shadow: none !important; background: none !important; padding: 0 !important; }
  .enter { opacity: 1 !important; transform: none !important; animation: none !important; }
  .type-title, .prose, .prose h2, .prose h3, .prose strong, .prose blockquote { color: #14161a !important; }
  .prose h2 { break-before: page; }
  .prose > h2:first-child { break-before: avoid; }
  .score-chart .sc-label { fill: #14161a; } .score-chart .sc-track { fill: #e6e8ec; } .score-chart .sc-val { fill: #4a4f57; }
}

/* ===== responsive ===== */
@media (max-width: 600px) {
  .frame { padding: 22px 18px; }
  .type-grid.cols-4, .type-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .card { padding: 20px 18px; }
  .lead-row, .link-box { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .lede { font-size: 17.5px; }
  .opt { padding: 14px 14px; font-size: 15px; }
  .quiz-card { grid-template-columns: 60px 1fr; gap: 14px; padding: 18px; }
  .quiz-sigil { width: 60px; height: 60px; }
  .quiz-sigil .sigil { width: 40px; height: 40px; }
  .quiz-card h2 { font-size: 22px; }
  .trust { grid-template-columns: 1fr; }
  .vs { grid-template-columns: 1fr; }
  .vs-mid { display: none; }
  .vs-side + .vs-side { border-top: 1px solid var(--hair); padding-top: 16px; }
  /* Five columns cannot hold "Strongly disagree" on a phone, but hiding the labels
     left the scale unanchored: nothing on screen said which end was agreement, and
     twelve scored items per quiz were being answered by guesswork. Stack instead. */
  .scale { grid-template-columns: 1fr; gap: 6px; }
  .scale-btn { grid-template-columns: 26px 1fr; gap: 12px; justify-items: start; align-items: center; padding: 12px 14px; }
  .scale-num { font-size: 19px; }
  .scale-label { font-size: 14.5px; text-align: left; color: var(--ink-2); line-height: 1.35; }
  .scale-btn.selected .scale-label { color: var(--ink); }
  .report-body { padding: 22px 18px; }
  .top { flex-wrap: wrap; }
}

/* ===== v3.1: interactive sky, shared result card, share sheet ===== */
#sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.shared-card { margin-top: 22px; }
.shared-head { display: flex; align-items: center; gap: 18px; margin: 4px 0 14px; }
.shared-head .sigil { flex: 0 0 auto; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--c) 55%, transparent)); }
.shared-name { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.05; margin: 0; color: var(--c); }
.shared-sub { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin: 6px 0 0; }
.shared-tag { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-2); margin: 6px 0 0; }
.shared-summary { font-size: 15.5px; line-height: 1.6; color: var(--ink); margin: 0 0 16px; }
.shared-meters { margin: 0 0 20px; padding-top: 6px; border-top: 1px solid var(--hair); }
.shared-meters .meter-blurb { display: none; }
.shared-meters .meter { margin-top: 14px; }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(42, 30, 25, .45); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; z-index: 50; opacity: 0; transition: opacity .2s ease; padding: 16px; }
.sheet-backdrop.show { opacity: 1; }
.sheet { position: relative; width: 100%; max-width: 480px; background: linear-gradient(180deg, #FFFFFF, #F6EFE4); border: 1px solid var(--line-2); border-radius: 22px; padding: 24px 22px 22px; box-shadow: var(--shadow); transform: translateY(16px); transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.sheet-backdrop.show .sheet { transform: none; }
.sheet-text { font-family: var(--serif); font-size: 18px; line-height: 1.35; color: var(--ink); margin: 0 0 16px; padding-right: 30px; }
.sheet-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.sheet-link-ready { min-width: 0; color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-link input { min-width: 0; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 12px 16px; font: inherit; font-size: 13px; color: var(--ink-2); outline: none; text-overflow: ellipsis; }
.sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sheet-grid .btn { padding: 11px 10px; font-size: 13.5px; }
.sheet-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 20px; line-height: 1; }
.sheet-close:hover { color: var(--ink); border-color: var(--gold); }
@media (min-width: 600px) { .sheet-backdrop { align-items: center; } }
@media (max-width: 600px) { .shared-head { flex-direction: column; align-items: flex-start; gap: 12px; } .shared-name { font-size: 28px; } .sheet-grid { grid-template-columns: repeat(2, 1fr); } }

/* locked report (couples quiz, before the partner has answered) */
.report-card.locked { border-style: dashed; }
.report-card.locked .report-sections li { color: var(--ink-2); }
.report-locked { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); position: relative; }
.report-locked .lock-mark { color: var(--gold); font-size: 11px; margin-top: 4px; }
.report-locked strong { color: var(--gold-2); font-size: 15px; }
.report-locked p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); }
.report-status.sample { color: var(--gold-2); }
.sample-link { font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.sample-link:hover { color: var(--gold-2); border-color: var(--gold); }

.sheet .name-input { margin: 0 0 10px; }
.sheet-native { width: 100%; margin: 0 0 12px; }

/* ===== methodology page ===== */
.hero-narrow { max-width: 720px; margin: 0 auto; text-align: center; padding-bottom: 10px; }
/* .lede is a left-anchored 36ch block by default; inside a centred hero it must be centred as a block too, or the centred text sits off-axis. */
.hero-narrow .lede { margin-left: auto; margin-right: auto; max-width: 50ch; }
.method-title { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 5vw, 46px); line-height: 1.08; margin: 6px 0 14px; }
.method-card { margin-top: 18px; }
.method-card p { font-size: 15.5px; line-height: 1.72; color: var(--ink-2); margin: 0 0 14px; }
.method-card p:last-child { margin-bottom: 0; }
.method-card strong { color: var(--ink); font-weight: 600; }
.method-item { padding: 20px 0; border-top: 1px solid var(--hair); }
.method-item:first-of-type { padding-top: 0; border-top: 0; }
.method-item h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; margin: 0 0 8px; }
.method-item h3 a { color: var(--c); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.method-item h3 a:hover { border-bottom-color: var(--c); }
.method-basis { margin: 0 0 16px !important; }
.method-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--r-md); overflow: hidden; }
.method-stats > div { background: var(--surface); padding: 10px 14px; }
.method-stats dt { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 3px; }
.method-stats dd { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.method-stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 600px) { .method-stats { grid-template-columns: 1fr; } }

/* ===== report score chart (screen) ===== */
.score-chart { margin: 0 0 22px; padding: 0 0 18px; border-bottom: 1px solid var(--hair); }
.score-chart svg { width: 100%; height: auto; display: block; }
.score-chart .sc-label { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: var(--ink); }
.score-chart .sc-track { fill: rgba(74, 48, 36, .1); }
.score-chart .sc-val { font-family: var(--sans); font-size: 15px; font-weight: 700; fill: var(--ink-2); dominant-baseline: middle; }

/* ===== type plate (the fixed illustration) in heroes ===== */
.hero-plate { display: flex; justify-content: center; margin: 2px 0 8px; }
.hero-plate svg { width: min(320px, 78vw); height: auto; filter: drop-shadow(0 0 34px color-mix(in srgb, var(--c) 30%, transparent)); animation: breathe 7s ease-in-out infinite; }
.hero-tag { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-2); text-align: center; margin: 10px 0 0; }
.result-hero .hero-plate + .type-title { margin-top: 0; }

/* ===== PDF view: the paged document rendered in an iframe, print dialog on top ===== */
.pdf-view { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: #2A2D33; }
.pdf-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--hair); color: var(--ink-2); font-size: 14px; }
.pdf-msg { display: inline-flex; align-items: center; gap: 10px; }
.pdf-msg .spinner { width: 14px; height: 14px; }
.pdf-btns { display: flex; gap: 8px; }
.pdf-frame { flex: 1; width: 100%; border: 0; background: #2A2D33; }
.pdf-staging { position: fixed; left: -12000px; top: 0; width: 1000px; height: 1400px; border: 0; visibility: hidden; pointer-events: none; }
.pdf-prepared-view { position: fixed; inset: 60px 0 0; width: 100%; height: calc(100% - 60px); border: 0; z-index: 81; background: #2A2D33; }
.pdf-view .pdf-bar { position: relative; z-index: 82; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
body.no-scroll { overflow: hidden; }
.analytics-consent { position: fixed; z-index: 65; left: 20px; right: 20px; bottom: 20px; width: min(620px, calc(100% - 40px)); margin-inline: auto; padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 16px; background: #FFFFFF; box-shadow: 0 12px 50px rgba(74, 48, 36, .25); }
.analytics-consent h2 { margin: 0 0 8px; font: 600 22px/1.2 var(--serif); color: var(--ink); }
.analytics-consent p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.analytics-consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 15px; }
.analytics-consent-actions button { min-width: 125px; border-color: var(--line-2); color: var(--gold-2); }
.analytics-consent-actions a { font-size: 12px; color: var(--ink-2); text-underline-offset: 3px; }
.analytics-settings-link { appearance: none; border: 0; background: transparent; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 480px) { .analytics-consent { left: 12px; right: 12px; bottom: 12px; width: calc(100% - 24px); padding: 18px; } .analytics-consent-actions button { flex: 1; } }
@media print { .analytics-consent, .analytics-settings-link { display: none !important; } }
@media (max-width: 600px) { .pdf-bar { flex-wrap: wrap; } }

/* Mobile file reader: a complete PDF download, with one canvas page at a time. */
.mobile-pdf { position: fixed; inset: 0; z-index: 100; height: 100vh; height: 100dvh; display: flex; flex-direction: column; min-width: 0; background: var(--bg); color: var(--ink); }
.mobile-pdf-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: max(14px, env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.mobile-pdf-header .eyebrow { font-size: 9px; margin: 0 0 4px; }
.mobile-pdf-header h2 { margin: 0; font: 500 22px/1.3 var(--serif); }
.mobile-pdf-close { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink-2); background: transparent; font: 400 28px/1 var(--sans); }
.mobile-pdf-status { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 16px; flex: 0 0 auto; }
.mobile-pdf-status p { margin: 0; color: var(--ink-2); font-size: 12px; line-height: 1.5; text-align: center; }
.mobile-pdf-pages { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 12px 10px; flex: 0 0 auto; }
.mobile-pdf-pages button { min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); color: var(--ink); font: 600 12px/1.4 var(--sans); }
.mobile-pdf-pages button:disabled { opacity: .35; }
.mobile-pdf-page-picker { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.mobile-pdf-page-picker select { min-height: 44px; max-width: 108px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); color: var(--ink); padding: 7px; font: 500 16px/1.2 var(--sans); }
.mobile-pdf-scroll { min-height: 0; min-width: 0; flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 12px 16px; background: #252831; }
.mobile-pdf-page { margin: 0 auto; background: #fff; box-shadow: 0 8px 28px #0005; }
.mobile-pdf-page canvas { display: block; max-width: none; }
.mobile-pdf-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 240px; height: 100%; gap: 20px; text-align: center; padding: 24px; }
.mobile-pdf-placeholder p, .mobile-pdf-preview-warning { max-width: 34ch; margin: 0 auto; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.mobile-pdf-preview-warning { padding: 40px 16px; text-align: center; }
.mobile-pdf-document { display: grid; place-items: center; width: 64px; height: 86px; border: 1px solid var(--gold); border-radius: 4px 12px 4px 4px; color: var(--gold-2); font: 600 17px/1 var(--serif); letter-spacing: .06em; }
.mobile-pdf-footer { padding: 12px 16px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); background: var(--bg-2); flex: 0 0 auto; }
.mobile-pdf-footer > p { margin: 0 0 10px; color: var(--ink-2); font-size: 11.5px; line-height: 1.6; text-align: center; }
.mobile-pdf-save-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.mobile-pdf-save-actions > .btn { min-height: 46px; min-width: 0; padding: 10px 12px; font-size: 13px; line-height: 1.45; text-align: center; white-space: normal; }
.mobile-pdf-save-actions > .btn:first-child { grid-column: 1 / -1; }
.mobile-pdf-save-actions:not(.has-share) .mobile-pdf-open { grid-column: 1 / -1; }
.mobile-pdf-open { align-self: center; text-align: center; font-size: 12px; line-height: 1.5; color: var(--gold-2); text-underline-offset: 4px; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.mobile-pdf [hidden] { display: none !important; }
.mobile-pdf :is(button,a,select):focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.mobile-pdf-header, .mobile-pdf-footer { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.mobile-pdf-scroll, .mobile-pdf-pages { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
@media (max-width: 375px) {
  .mobile-pdf-pages { gap: 6px; padding-inline: 8px; }
  .mobile-pdf-pages button { padding-inline: 8px; }
  .mobile-pdf-pages button:last-child { min-width: 0; max-width: 72px; font-size: 11px; }
  .mobile-pdf-page-picker { gap: 4px; font-size: 12px; }
  .mobile-pdf-page-picker select { max-width: 86px; padding-inline: 4px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .mobile-pdf-header { padding-block: 8px; }
  .mobile-pdf-header h2 { font-size: 18px; }
  .mobile-pdf-header .eyebrow { display: none; }
  .mobile-pdf-status { padding-block: 5px; }
  .mobile-pdf-footer { padding: 8px 16px max(8px, env(safe-area-inset-bottom)); }
  .mobile-pdf-save-actions { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .mobile-pdf-save-actions > .btn:first-child { grid-column: auto; }
  .mobile-pdf-save-actions:not(.has-share) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mobile-pdf-save-actions:not(.has-share) .mobile-pdf-open { grid-column: auto; }
  .mobile-pdf-footer > p { margin-bottom: 5px; }
}

/* ===== a letter from the founder ===== */
.founder-section { position: relative; scroll-margin-top: 28px; margin-top: 0; padding: 32px 28px 24px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: radial-gradient(ellipse at 0 0, rgba(200, 118, 59, .07), transparent 60%), linear-gradient(180deg, var(--surface), transparent); box-shadow: var(--shadow); }
.founder-section + .quiz-grid { margin-top: 32px; }
.founder-layout { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; align-items: start; }
.founder-person { text-align: center; padding-top: 3px; }
.founder-avatar { display: grid; place-items: center; width: 82px; height: 82px; margin: 0 auto 16px; border-radius: 50%; color: var(--gold); background: var(--bg-2); }
.founder-avatar > svg { display: block; width: 100%; height: 100%; }
.founder-person p { margin: 0; }
.founder-person .founder-name { color: var(--ink); font: 600 26px/1.25 var(--serif); margin-bottom: 8px; }
.founder-role { color: var(--ink-2); font-size: 12px; line-height: 1.6; }
.founder-background { color: var(--ink-3); font-size: 11px; line-height: 1.6; padding-top: 4px; }
.founder-letter { min-width: 0; }
.founder-letter .eyebrow { font-size: 10px; margin-bottom: 12px; }
.founder-letter > h2 { margin: 0 0 18px; font: 500 clamp(27px, 3.5vw, 34px)/1.15 var(--serif); color: var(--ink); text-wrap: balance; }
.founder-intro { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.8; text-wrap: pretty; }
.founder-authorship { margin: 14px 0 22px; color: var(--ink-2); font-size: 12px; line-height: 1.8; }
.founder-story { border-block: 1px solid var(--hair); }
.founder-story > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; color: var(--gold-2); cursor: pointer; font-size: 13px; font-weight: 600; line-height: 1.6; }
.founder-story > summary::-webkit-details-marker { display: none; }
.founder-story > summary svg { flex: 0 0 16px; width: 16px; height: 16px; }
.founder-story[open] > summary svg { transform: rotate(45deg); }
.founder-story-body { padding: 4px 0 20px; }
.founder-story-body section + section { margin-top: 20px; }
.founder-story-body h3 { margin: 0 0 8px; font: 600 17px/1.5 var(--serif); color: var(--ink); }
.founder-story-body p { margin: 0 0 12px; color: var(--ink-2); font-size: 13px; line-height: 1.85; }
.founder-signature { margin: 18px 0 0; font: italic 400 25px/1.4 var(--serif); color: var(--gold-2); }
.founder-promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 28px 0 22px; padding: 20px 0; border-block: 1px solid var(--hair); }
.founder-promises li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 11.5px; line-height: 1.7; }
.founder-promises svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; color: var(--gold); }
.founder-proofs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.founder-sample, .founder-guarantee { min-width: 0; padding: 18px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.founder-sample { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 13px; align-items: start; text-decoration: none; }
.founder-sample:hover { border-color: var(--gold); background: var(--gold-dim); }
.founder-sample > .founder-book { grid-row: 1 / span 2; }
.founder-sample-cta { grid-column: 2; }
.founder-book { display: flex; flex-direction: column; align-items: center; justify-content: space-between; min-height: 86px; padding: 8px 3px; border: 1px solid var(--line-2); border-left: 3px solid #7A4A2A; border-radius: 2px 7px 7px 2px; color: #E7B15C; background: linear-gradient(120deg, #2A1E19, #3B2A23); box-shadow: 5px 7px 12px rgba(74, 48, 36, .25); }
.founder-book > span { font: 500 8px/1.2 var(--serif); white-space: nowrap; }
.founder-book svg { width: 40px; height: 40px; }
.founder-book > small { font: 600 7px/1.2 var(--sans); letter-spacing: .12em; }
.founder-proofs h3 { margin: 0 0 9px; font: 600 14px/1.5 var(--sans); color: var(--ink); }
.founder-proofs p { margin: 0 0 12px; color: var(--ink-2); font-size: 12px; line-height: 1.75; }
.founder-proofs .founder-sample-language { color: var(--gold); font-size: 11px; }
.founder-guarantee { display: flex; flex-direction: column; align-items: center; text-align: center; }
.founder-guarantee h3 { display: flex; align-items: flex-start; justify-content: center; gap: 8px; }
.founder-guarantee h3 > svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; color: var(--gold); }
.founder-guarantee p { max-width: 34ch; text-wrap: pretty; }
.founder-guarantee > .founder-text-link { margin-top: auto; }
.founder-text-link { color: var(--gold-2); font-size: 12px; line-height: 1.7; text-decoration: underline; text-underline-offset: 4px; }
.founder-text-link > span { white-space: nowrap; }
.founder-contact { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--hair); text-align: center; }
.founder-contact p { max-width: 56ch; margin: 0 auto 10px; color: var(--ink-2); font-size: 12px; line-height: 1.8; text-wrap: pretty; }
.founder-contact > a { color: var(--gold-2); font-size: 13px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.founder-section :is(a, summary):focus-visible { outline: 2px solid var(--gold-2); outline-offset: 5px; border-radius: 4px; }
@media (max-width: 620px) {
  .founder-section { padding: 24px 18px 22px; }
  .founder-section + .quiz-grid { margin-top: 24px; }
  .founder-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .founder-person { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 14px; text-align: left; padding: 0 0 20px; border-bottom: 1px solid var(--hair); }
  .founder-avatar { grid-row: 1 / 4; width: 58px; height: 58px; margin: 0; }
  .founder-person .founder-name { margin-bottom: 3px; font-size: 24px; }
  .founder-background { padding-top: 2px; }
  .founder-letter > h2 { font-size: 28px; }
  .founder-promises { grid-template-columns: minmax(0, 1fr); gap: 13px; margin-top: 24px; padding-block: 18px; }
  .founder-promises li { font-size: 12px; }
  .founder-proofs { grid-template-columns: minmax(0, 1fr); }
  .founder-sample { grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; row-gap: 12px; }
  .founder-sample > .founder-book { grid-row: 1; }
  .founder-sample-copy > p:last-child { margin-bottom: 0; }
  .founder-sample-cta { grid-column: 1 / -1; text-align: center; }
}

/* ===== pricing (hub) ===== */
.pricing { padding: 44px 0 10px; text-align: center; }
.pricing .eyebrow { margin-bottom: 12px; }
.pricing-title { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3.6vw, 32px); letter-spacing: -.01em; line-height: 1.2; margin: 0 auto 24px; max-width: 30ch; color: var(--ink); }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; text-align: left; }
.price-card { position: relative; padding: 22px; border-radius: 16px; border: 1px solid var(--hair); background: var(--surface); }
.price-card:nth-child(2) { border-color: var(--line-2); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.price-card:nth-child(2)::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(200, 118, 59, .55), transparent); border-radius: 16px 16px 0 0; }
.price-card .price { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--gold-2); margin: 0 0 8px; line-height: 1; letter-spacing: -.01em; }
.price-card h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.price-card p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.pricing-note { font-size: 12.5px; color: var(--ink-3); margin: 16px auto 0; max-width: 66ch; line-height: 1.65; }
.pricing-note a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; display: inline-block; }
@media (max-width: 720px) { .pricing-grid { grid-template-columns: 1fr; } .pricing { padding-top: 30px; } }

/* ===== legal pages: privacy / terms / refunds (headed sections rendered by build.mjs) ===== */
.legal-card { margin-top: 24px; }
.legal-card h1.card-title { font-size: 30px; margin-bottom: 6px; }
.legal-intro { font-size: 17px; line-height: 1.6; color: var(--ink); margin: 18px 0 4px; }
.legal-sec { padding-top: 22px; }
.legal-sec h2 { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: .01em; margin: 0 0 8px; color: var(--ink); }
.legal-card p, .legal-card li { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.legal-card p { margin: 0 0 12px; }
.legal-sec p:last-child { margin-bottom: 0; }
.legal-card ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.legal-card strong { color: var(--ink); font-weight: 600; }
.legal-card a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.legal-card a[href^="mailto"] { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.report-cta .consent { width: 100%; max-width: 76ch; justify-self: center; margin: 4px auto 0; padding-top: 14px; border-top: 1px solid var(--hair); line-height: 1.75; text-align: center; text-wrap: pretty; overflow-wrap: anywhere; }
.report-cta .consent a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.report-cta .consent a:hover { color: var(--gold-2); }
@media (max-width: 560px) { .payment-choices { grid-template-columns: 1fr; } }


/* ===== Know My Pets additions ===== */
.pet-name-field { display: grid; gap: 6px; margin: 0 0 18px; max-width: 360px; }
.pet-name-label { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.pet-name-input, .name-input { width: 100%; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-3); padding: 13px 18px; font: inherit; font-size: 16px; color: var(--ink); outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.pet-name-input:focus, .name-input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-dim); }
.pet-name-input::placeholder { color: var(--ink-3); }
.meter-group { margin: 6px 0 12px; }
.meter + .meter-group { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--hair); }
.report-cover-pet, .hero-pet { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); text-align: center; margin: 6px 0 2px; }
.quiz-sigil { background: var(--gold-dim); border-radius: 50%; display: grid; place-items: center; }
