:root {
  --cream: #fbf7f0;
  --paper: #fffdf9;
  --ink: #3f3a36;
  --muted: #7c7167;
  --faint: #a29589;
  --terracotta: #c66a4a;
  --terracotta-dark: #a95336;
  --peach: #f6e3d7;
  --peach-soft: #fbf2e7;
  --sage: #7f9a7a;
  --sage-dark: #4f6b52;
  --sage-soft: #eaf0e6;
  --gold: #d9a441;
  --line: #eadccf;
  --line-strong: #ddc9b7;
  --shadow: 0 18px 50px rgba(92, 64, 48, .09);
  --shadow-soft: 0 8px 24px rgba(92, 64, 48, .06);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 8% -10%, #f8e8da 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #eef3e9 0%, transparent 50%),
    var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.25; margin: 0; letter-spacing: .01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid rgba(198, 106, 74, .35); outline-offset: 3px; border-radius: 8px; }
.skip-link { position: absolute; left: -999px; top: 12px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 99; }
.skip-link:focus { left: 12px; }

.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(860px, calc(100% - 40px)); margin: 0 auto; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.serif { font-family: var(--serif); }
.nowrap { white-space: nowrap; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 247, 240, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(234, 220, 207, .7);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #f6c98f, #c66a4a 62%, #9d4a30); box-shadow: 0 0 0 5px rgba(198, 106, 74, .1); }
.nav { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--terracotta-dark); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 10px 26px rgba(198, 106, 74, .24); }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-ghost { background: rgba(255, 253, 249, .65); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--paper); }
.btn-sage { background: var(--sage); color: #fff; box-shadow: 0 10px 26px rgba(127, 154, 122, .22); }
.btn-sage:hover { background: #6c8767; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero { padding: 76px 0 46px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--terracotta-dark); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .55; }
.hero h1 { font-size: clamp(38px, 5vw, 60px); margin: 18px 0 18px; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--terracotta); }
.hero-lead { max-width: 560px; color: var(--muted); font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; color: var(--faint); font-size: 13px; }

.hero-art { position: relative; min-height: 430px; }
.sun-card {
  position: absolute; inset: 24px 18px 24px 36px;
  border-radius: 48% 52% 46% 54% / 52% 44% 56% 48%;
  background: linear-gradient(145deg, #fbe9d9, #f5d8c1 45%, #e9c6ae);
  box-shadow: inset 0 0 70px rgba(255, 255, 255, .45), var(--shadow);
  overflow: hidden;
}
.sun-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -70px; top: -70px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 249, 239, .95), rgba(255, 249, 239, 0) 68%); }
.orbit { position: absolute; border: 1px solid rgba(255, 253, 249, .5); border-radius: 50%; }
.orbit.one { width: 320px; height: 320px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.orbit.two { width: 220px; height: 220px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.sun-core { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f7b26f, #c66a4a); box-shadow: 0 0 60px rgba(198, 106, 74, .35); }
.float-card {
  position: absolute; background: rgba(255, 253, 249, .94); border: 1px solid rgba(234, 220, 207, .8);
  border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-soft); font-size: 13px; color: var(--muted);
}
.float-card strong { display: block; color: var(--ink); font-size: 14px; }
.float-card.a { left: 0; top: 58px; }
.float-card.b { right: 0; bottom: 74px; }
.float-card.c { left: 28px; bottom: 22px; }
.float-card .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); margin-right: 6px; }

.trust-strip { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 16px 0 0; color: var(--muted); font-size: 13px; }
.trust-item { display: inline-flex; align-items: center; gap: 8px; }
.trust-icon { width: 22px; height: 22px; border-radius: 50%; background: var(--sage-soft); color: var(--sage); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }

.section { padding: 74px 0; }
.section-head { max-width: 700px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 10px 0 12px; }
.section-head p { color: var(--muted); font-size: 16px; line-height: 1.85; }

.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.plan-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; }
.plan-card.featured { border-color: rgba(198, 106, 74, .45); box-shadow: 0 24px 60px rgba(198, 106, 74, .12); }
.plan-badge { position: absolute; right: 24px; top: 24px; background: var(--peach); color: var(--terracotta-dark); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; }
.plan-name { font-size: 13px; letter-spacing: .12em; color: var(--terracotta-dark); font-weight: 700; text-transform: uppercase; }
.plan-title { font-size: 30px; margin: 8px 0 6px; }
.plan-price { font-size: 34px; font-weight: 700; color: var(--ink); margin: 10px 0 4px; }
.plan-price span { font-size: 14px; font-weight: 400; color: var(--muted); }
.plan-desc { color: var(--muted); font-size: 14.5px; line-height: 1.8; margin: 8px 0 18px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.plan-list li { display: flex; gap: 10px; color: var(--muted); font-size: 14px; }
.plan-list li::before { content: "✓"; color: var(--sage); font-weight: 700; }
.plan-card .btn { margin-top: auto; }
.plan-foot { margin-top: 12px; font-size: 12px; color: var(--faint); text-align: center; }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how-card { background: rgba(255, 253, 249, .7); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; }
.how-num { width: 38px; height: 38px; border-radius: 50%; background: var(--peach); color: var(--terracotta-dark); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; }
.how-card h3 { font-size: 19px; margin: 14px 0 8px; }
.how-card p { color: var(--muted); font-size: 14px; }

.privacy-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; background: linear-gradient(135deg, #f7f1e9, #eef4ea); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; }
.privacy-panel h2 { font-size: 30px; }
.privacy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.privacy-list li { display: flex; gap: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.privacy-list .tick { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: var(--sage); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; margin-top: 2px; }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--terracotta); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); font-size: 14px; margin-top: 10px; }

.site-footer { border-top: 1px solid var(--line); padding: 34px 0 46px; color: var(--faint); font-size: 12.5px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }

/* Test flow */
.test-page { min-height: 100vh; padding-bottom: 60px; }
.test-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 247, 240, .92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.test-header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.progress-wrap { flex: 1; max-width: 520px; }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.progress-track { height: 7px; background: #efe3d6; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--terracotta), #dfa277); transition: width .3s ease; }
.save-state { color: var(--faint); font-size: 12px; white-space: nowrap; }
.save-state.saving { color: var(--gold); }
.save-state.saved { color: var(--sage); }

.test-main { padding: 42px 0 24px; }
.module-head { max-width: 760px; margin: 0 auto 24px; }
.module-eyebrow { color: var(--terracotta-dark); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.module-head h1 { font-size: clamp(28px, 4vw, 40px); margin: 8px 0 10px; }
.module-lead { color: var(--muted); font-size: 15.5px; line-height: 1.85; }
.module-time { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--faint); font-size: 12.5px; }
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); display: inline-block; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.form-card { padding: 28px; }
.form-grid { display: grid; gap: 20px; }
.form-row { display: grid; gap: 8px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
.form-row.three { grid-template-columns: 1.2fr 1fr 1fr; }
.field-label { font-size: 14px; font-weight: 600; }
.field-hint { color: var(--faint); font-size: 12.5px; }
.input, .select, .textarea {
  width: 100%; background: #fffefa; border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 12px 14px; font-size: 15px; color: var(--ink); transition: border .18s ease, box-shadow .18s ease;
}
.input::placeholder, .textarea::placeholder { color: #b9aca0; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(198, 106, 74, .1); outline: none; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.consent { display: flex; gap: 12px; align-items: flex-start; background: var(--peach-soft); border: 1px solid #f0ddcb; border-radius: 14px; padding: 16px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--terracotta); flex: 0 0 auto; }
.form-error { color: #a14b36; background: #fbebe5; border: 1px solid #efc9bc; border-radius: 10px; padding: 10px 14px; font-size: 13px; display: none; }
.form-error.show { display: block; }

.q-list { display: grid; gap: 14px; }
.q-card { padding: 22px 24px; }
.q-title { font-size: 15.5px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.q-index { color: var(--terracotta); font-family: var(--serif); font-size: 18px; line-height: 1.3; min-width: 22px; }
.q-sub { color: var(--faint); font-size: 12.5px; margin: 4px 0 0 32px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 42px;
  padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fffefa;
  color: var(--muted); font-size: 14px; transition: all .16s ease;
}
.pill span small { font-size: 10.5px; margin-left: 4px; color: var(--faint); }
.pill input:checked + span { background: var(--terracotta); border-color: var(--terracotta); color: #fff; box-shadow: 0 8px 18px rgba(198, 106, 74, .2); }
.pill input:checked + span small { color: rgba(255, 255, 255, .8); }
.pill:hover span { border-color: var(--terracotta); }

.scale-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--faint); font-size: 11.5px; margin-top: 8px; }

.domain-list { display: grid; gap: 10px; }
.domain-row { display: grid; grid-template-columns: 1.5fr .7fr .7fr; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fffefa; }
.domain-name { font-weight: 600; font-size: 14.5px; }
.domain-hint { color: var(--faint); font-size: 12px; }
.domain-control { display: grid; gap: 4px; }
.domain-control label { font-size: 11px; color: var(--faint); }
.mini-select { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; padding: 8px 10px; font-size: 13px; }

.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.value-card { position: relative; display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 13px; padding: 13px 14px; background: #fffefa; cursor: pointer; transition: all .16s ease; }
.value-card:hover { border-color: var(--terracotta); }
.value-card input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--terracotta); flex: 0 0 auto; }
.value-card.selected { border-color: var(--terracotta); background: var(--peach-soft); }
.value-name { display: block; font-weight: 600; font-size: 14px; }
.value-hint { display: block; color: var(--faint); font-size: 12px; line-height: 1.55; margin-top: 2px; }
.rank-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.rank-item { display: grid; gap: 6px; }
.rank-item label { font-size: 12px; color: var(--faint); }
.pill-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; background: var(--peach-soft); border-radius: 999px; padding: 6px 12px; }

.strength-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.strength { display: flex; gap: 7px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font-size: 12.5px; background: #fffefa; cursor: pointer; }
.strength input { accent-color: var(--sage); width: 15px; height: 15px; }
.strength.selected { border-color: var(--sage); background: var(--sage-soft); }

.goal-card { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: #fffefa; display: grid; gap: 14px; }
.goal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.goal-head h3 { font-size: 17px; }
.goal-head span { font-size: 12px; color: var(--faint); }
.goal-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; }
.goal-grid.two { grid-template-columns: 1fr 1fr; }
.add-goal { margin-top: 12px; }

.result-page { padding: 44px 0 70px; }
.result-hero { background: linear-gradient(135deg, #fbf2e7, #f1f5ec); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; margin-bottom: 20px; }
.result-hero h1 { font-size: clamp(30px, 4vw, 44px); margin: 8px 0 8px; }
.result-hero p { color: var(--muted); }
.result-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; color: var(--faint); font-size: 12.5px; }
.countdown { display: inline-flex; align-items: center; gap: 8px; background: #fff8ef; border: 1px solid #efdcc9; border-radius: 999px; padding: 7px 14px; font-size: 12.5px; color: var(--terracotta-dark); font-weight: 600; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.result-card { padding: 24px; }
.result-card h2 { font-size: 20px; margin-bottom: 6px; }
.result-card p { color: var(--muted); font-size: 13.5px; }
.score-big { font-size: 44px; font-weight: 700; color: var(--terracotta); line-height: 1.1; margin: 8px 0 2px; }
.score-big span { font-size: 13px; color: var(--faint); font-weight: 400; margin-left: 4px; }
.band { display: inline-block; background: var(--peach); color: var(--terracotta-dark); border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 600; margin: 6px 0; }
.bar-list { display: grid; gap: 12px; margin-top: 14px; }
.bar-row { display: grid; gap: 4px; }
.bar-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.bar-track { height: 8px; background: #f0e4d8; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--terracotta), #e0a77f); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag { display: inline-flex; background: var(--sage-soft); color: #4f6b52; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; }
.result-list { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.result-list li { margin-bottom: 8px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; align-items: center; }
.result-note { color: var(--faint); font-size: 12px; margin-top: 10px; }

.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.checkout-card { padding: 30px; }
.checkout-card h1 { font-size: 30px; margin-bottom: 8px; }
.checkout-price { font-size: 40px; font-weight: 700; color: var(--terracotta); margin: 14px 0 4px; }
.checkout-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; color: var(--muted); font-size: 13.5px; }
.checkout-list li::before { content: "✓"; color: var(--sage); font-weight: 700; margin-right: 8px; }
.code-row { display: flex; gap: 8px; margin-top: 14px; }
.code-row .input { flex: 1; }
.demo-hint { background: var(--peach-soft); border: 1px solid #f0ddcb; border-radius: 12px; padding: 12px 14px; color: var(--muted); font-size: 12.5px; margin-top: 14px; }
.demo-hint code { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--terracotta-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.empty-state { text-align: center; padding: 70px 24px; }
.empty-state h1 { font-size: 34px; margin-bottom: 10px; }
.empty-state p { color: var(--muted); margin-bottom: 22px; }

.alert { border-radius: 14px; padding: 14px 16px; font-size: 13.5px; margin: 12px 0; }
.alert.error { background: #fbebe5; border: 1px solid #efc9bc; color: #8f412e; }
.alert.info { background: var(--sage-soft); border: 1px solid #d6e2d1; color: #4f6b52; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { min-height: 330px; max-width: 520px; margin: 0 auto; width: 100%; }
  .plan-grid, .how-grid, .privacy-panel, .result-grid, .checkout-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero { padding-top: 48px; }
  .hero-art { display: none; }
  .section { padding: 52px 0; }
}
@media (max-width: 640px) {
  .shell, .narrow { width: min(100% - 28px, 1180px); }
  .header-actions .btn-ghost { display: none; }
  .hero h1 { font-size: 38px; }
  .hero-actions .btn { width: 100%; }
  .form-card { padding: 20px; }
  .form-row.two, .form-row.three, .goal-grid, .goal-grid.two, .rank-row { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .strength-grid { grid-template-columns: 1fr 1fr; }
  .domain-row { grid-template-columns: 1fr 1fr; }
  .domain-row .domain-name { grid-column: 1 / -1; }
  .test-header-inner { min-height: auto; padding: 12px 0; flex-wrap: wrap; }
  .progress-wrap { order: 3; flex-basis: 100%; max-width: none; }
  .save-state { font-size: 11px; }
  .result-hero { padding: 24px; }
  .result-actions .btn { width: 100%; }
  .pills { gap: 6px; }
  .pill span { min-width: 37px; min-height: 40px; padding: 0 8px; font-size: 13.5px; }
}

/* PDF error message */
.pdf-error {
  border: 1px solid #efc9bc;
  background: #fbebe5;
  color: #8f412e;
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 16px 0 0;
}
.pdf-error[hidden] { display: none; }

/* Browser print / Cmd+P: a clean A4 result document */
@media print {
  @page { size: A4; margin: 12mm 13mm; }
  html, body {
    background: #fff !important;
    color: #2f2a26 !important;
    font-size: 10.5pt;
  }
  .site-header, .test-header, .site-footer, .skip-link,
  .result-actions, .countdown, .pdf-error, .nav, .header-actions {
    display: none !important;
  }
  .result-page { padding: 0 !important; }
  .narrow { width: 100% !important; max-width: none !important; margin: 0 !important; }
  .result-hero {
    background: #fff !important;
    border: 1px solid #d9cbbb !important;
    border-radius: 8px !important;
    padding: 7mm !important;
    margin: 0 0 5mm !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .result-hero h1 { font-size: 24pt !important; margin: 2mm 0 !important; }
  .result-hero p { color: #6d6258 !important; font-size: 9pt !important; }
  .result-meta { color: #7c7064 !important; font-size: 8.5pt !important; margin-top: 3mm !important; }
  .result-grid { grid-template-columns: 1fr 1fr !important; gap: 5mm !important; }
  .card, .result-card {
    background: #fff !important;
    border: 1px solid #ded2c4 !important;
    box-shadow: none !important;
    border-radius: 6px !important;
    padding: 5mm !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .result-card h2 { font-size: 13pt !important; break-after: avoid; page-break-after: avoid; }
  .result-card p, .result-list { color: #4b423a !important; font-size: 9.2pt !important; }
  .score-big { font-size: 26pt !important; color: #9a573c !important; }
  .band { background: #f4e8da !important; color: #865039 !important; }
  .tag { background: #edf2ea !important; color: #4a624e !important; }
  .bar-track { background: #f0e6da !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .bar-fill { background: #b46a4b !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .goal-card { break-inside: avoid; page-break-inside: avoid; }
  .result-note { color: #8a7d70 !important; font-size: 8pt !important; margin-top: 4mm !important; }
  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
  a { color: inherit !important; text-decoration: none !important; }
  .card[style*="margin-top"], .result-card[style*="margin-top"] { margin-top: 4mm !important; }
}

/* Resume banner: homepage return path for unfinished sessions */
.resume-banner {
  margin-top: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 253, 249, .96), rgba(251, 242, 231, .9));
  box-shadow: var(--shadow-soft);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.resume-banner.completed { border-color: rgba(127, 154, 122, .42); background: linear-gradient(135deg, #fbfdf9, #eef4ea); }
.resume-banner.expired { border-color: rgba(198, 106, 74, .34); background: linear-gradient(135deg, #fdf6f1, #fbebe5); }
.resume-copy { min-width: 0; }
.resume-banner .eyebrow { font-size: 11px; margin-bottom: 4px; }
.resume-banner h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 5px; }
.resume-banner p { color: var(--muted); font-size: 13.5px; line-height: 1.65; max-width: 660px; margin: 0; }
.resume-saved { display: inline-block; color: var(--faint); font-size: 11.5px; margin-top: 7px; }
.resume-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex: none; }
.resume-actions .btn { white-space: nowrap; }
@media (max-width: 760px) {
  .resume-banner { flex-direction: column; align-items: flex-start; padding: 18px; gap: 14px; }
  .resume-actions { width: 100%; }
  .resume-actions .btn { flex: 1; }
}

/* Multi-assessment additions */
.plan-grid { grid-template-columns: repeat(2, 1fr); }
.plan-card .plan-badge { font-size: 11px; }
.ab-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ab-option { display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 13px; cursor: pointer; color: var(--ink); font-size: 13.5px; line-height: 1.55; transition: border-color .2s ease, background .2s ease; }
.ab-option:hover { border-color: var(--line-strong); background: var(--paper); }
.ab-option:has(input:checked) { border-color: var(--terracotta); background: var(--peach-soft); }
.ab-option input { margin-top: 3px; accent-color: var(--terracotta); }
.plan-card .btn-ghost { margin-top: 8px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }
@media (max-width: 900px) {
  .plan-grid { grid-template-columns: 1fr; }
  .ab-row { grid-template-columns: 1fr; }
}
@media print {
  .plan-badge { display: none; }
}

/* Personality: deep dimension guides and 16-preference profile */
.type-hero-code { font-size: 64px; letter-spacing: .04em; color: var(--terracotta); margin: 8px 0 4px; }
.dimension-intro { background: linear-gradient(135deg, #fbf2e7, #f1f5ec); }
.dimension-intro p { color: var(--muted); max-width: 68ch; }
.dimension-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dimension-chips span { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font-size: 11px; color: var(--muted); }
.dimension-chips b { color: var(--terracotta); font-size: 12px; }
.dimension-stack { display: grid; gap: 18px; margin-top: 18px; }
.dimension-deep { padding: 26px; }
.dimension-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.dimension-index { color: var(--gold-ink); font-family: var(--sans); font-size: 10px; letter-spacing: .18em; }
.dimension-deep h3 { font-size: 27px; margin: 4px 0 0; }
.preference-pill { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 11px; color: var(--terracotta-dark); font-size: 11px; white-space: nowrap; }
.dimension-meter { margin-top: 18px; }
.dimension-meter .bar-track { margin-top: 0; }
.dimension-meter .bar-meta { margin-top: 6px; }
.dimension-description { color: var(--muted); font-size: 13px; line-height: 1.75; margin: 16px 0 0; }
.dimension-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.pair-side { border: 1px solid var(--line); background: var(--paper); padding: 13px 14px; }
.pair-side.chosen { border-color: rgba(198,106,74,.5); background: var(--peach-soft); }
.pair-letter { display: block; color: var(--terracotta-dark); font-size: 11px; letter-spacing: .1em; font-weight: 700; margin-bottom: 6px; }
.pair-side p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; }
.everyday { margin-top: 20px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.everyday h4 { font-family: var(--sans); font-size: 11px; letter-spacing: .08em; color: var(--ink-2); margin: 0 0 8px; }
.everyday-row { display: grid; grid-template-columns: .6fr 1.2fr 1.2fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; line-height: 1.65; color: var(--muted); }
.everyday-row:last-child { border-bottom: 0; }
.everyday-row span:first-child { color: var(--gold-ink); font-weight: 600; }
.everyday-row span.chosen { color: var(--ink); background: rgba(198,106,74,.07); margin: -8px -6px; padding: 8px 6px; }
.everyday-head { font-size: 10px; color: var(--faint); letter-spacing: .04em; padding-bottom: 5px; }
.everyday-head span.chosen { background: transparent; color: var(--terracotta-dark); }
.everyday-head span:first-child { color: var(--faint); font-weight: 400; }
.misread { margin: 16px 0 0; border-left: 2px solid var(--gold); padding: 2px 0 2px 12px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.misread b { color: var(--ink-2); margin-right: 7px; }
.type-profile { margin-top: 24px; }
.type-profile-head { display: flex; align-items: flex-start; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.type-code-badge { flex: 0 0 auto; width: 86px; height: 86px; border: 1px solid var(--terracotta); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 24px; color: var(--terracotta); letter-spacing: .02em; }
.type-nickname { font-family: var(--hand); color: var(--gold-ink); font-size: 17px; margin: 3px 0 2px; }
.type-profile-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 0; }
.type-summary { color: var(--muted); font-size: 13px; line-height: 1.85; margin: 18px 0 14px; }
.profile-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 22px; }
.profile-column { border-top: 1px solid var(--line); padding-top: 13px; }
.profile-column h3, .profile-collab h3, .profile-people h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--ink); margin: 0 0 8px; }
.profile-column ul, .profile-collab ul { margin: 0; padding-left: 17px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.profile-column li::marker { color: var(--gold); }
.profile-collab { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 13px; }
.profile-people { margin-top: 22px; background: var(--paper); border: 1px solid var(--line-soft); padding: 16px; }
.profile-people .eyebrow { display: block; font-size: 9px; color: var(--faint); margin-bottom: 3px; }
.people-names { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 10px; }
.people-names span { border: 1px solid var(--line); background: var(--paper-3); padding: 4px 9px; font-size: 12px; color: var(--ink-2); }
.example-note { color: var(--faint); font-size: 10.5px; line-height: 1.6; margin: 0; }
@media (max-width: 640px) {
  .type-hero-code { font-size: 52px; }
  .dimension-deep { padding: 18px; }
  .dimension-top { display: block; }
  .preference-pill { display: inline-block; margin-top: 8px; }
  .dimension-pair, .profile-columns { grid-template-columns: 1fr; gap: 10px; }
  .everyday-row { grid-template-columns: .5fr 1.25fr 1.25fr; gap: 7px; font-size: 10.5px; }
  .type-profile-head { gap: 13px; }
  .type-code-badge { width: 64px; height: 64px; font-size: 18px; }
  .type-profile-head h2 { font-size: 23px; }
  .people-names span { font-size: 11px; }
}

/* Enterprise AI maturity result */
.ai-result-card { margin-top: 20px; background: linear-gradient(135deg, #f2f6ed, #fbf2e7); }
.ai-level-block { display: flex; align-items: center; gap: 24px; }
.ai-level { font-family: var(--serif); font-size: 82px; line-height: .9; color: var(--terracotta); letter-spacing: -.04em; }
.ai-level-name { font-family: var(--serif); font-size: 28px; color: var(--ink); margin: 0 0 4px; }
.ai-score { color: var(--muted); font-size: 13px; margin: 0; }
.ai-score b { color: var(--sage-dark); font-family: var(--serif); font-size: 24px; }
.ai-score-track { height: 7px; border-radius: 99px; background: rgba(58, 78, 60, .12); overflow: hidden; margin-top: 22px; }
.ai-score-fill { height: 100%; background: linear-gradient(90deg, var(--sage), var(--terracotta)); border-radius: 99px; }
.ai-result-card .meta { color: var(--faint); font-size: 11px; margin: 10px 0 0; }
@media (max-width: 640px) {
  .ai-level-block { gap: 14px; }
  .ai-level { font-size: 62px; }
  .ai-level-name { font-size: 22px; }
}

/* Stress & burnout result */
.stress-summary { margin-top: 20px; background: linear-gradient(135deg, #f6efe4, #eef2e9); }
.stress-summary-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.stress-level { font-family: var(--serif); font-size: clamp(28px, 3.5vw, 42px); line-height: 1.2; color: var(--sage-dark); }
.stress-total { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--terracotta); white-space: nowrap; }
.stress-total small { font-family: var(--sans); font-size: 12px; color: var(--faint); }
.stress-description { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 14px 0 20px; }
.suggestions { display: grid; gap: 12px; margin-top: 16px; }
.suggestion-card { display: flex; align-items: flex-start; gap: 14px; border: 1px solid var(--line-soft); background: var(--paper); padding: 14px 16px; }
.suggestion-num { font-family: var(--serif); color: var(--terracotta); font-size: 20px; line-height: 1.2; flex: 0 0 auto; }
.suggestion-card p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.75; }
@media (max-width: 640px) {
  .stress-summary-head { display: block; }
  .stress-total { display: block; margin-top: 8px; font-size: 42px; }
  .stress-level { font-size: 28px; }
}

/* Communication style result */
.module-subhead { font-family: var(--serif); font-size: 21px; font-weight: 400; color: var(--ink); margin: 20px 0 10px; padding-bottom: 7px; border-bottom: 1px solid var(--line-soft); }
.comm-summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.comm-summary-head h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 2px 0 10px; }
.comm-summary-head p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 62ch; margin: 0; }
.comm-secondary { flex: 0 0 auto; border-left: 1px solid var(--line); padding-left: 18px; color: var(--muted); font-size: 11px; }
.comm-secondary span { display: block; color: var(--faint); font-size: 10px; letter-spacing: .1em; }
.comm-secondary b { display: block; margin-top: 4px; font-family: var(--serif); font-size: 21px; color: var(--terracotta-dark); font-weight: 400; }
.comm-style-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.comm-style-card { padding: 20px; }
.comm-style-head { display: flex; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--line-soft); padding-bottom: 8px; }
.comm-style-head h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; margin: 0; }
.comm-style-head span { color: var(--faint); font-size: 10px; letter-spacing: .1em; }
.comm-style-card > p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 10px 0 8px; }
.comm-style-card h4 { color: var(--ink-2); font-size: 11px; letter-spacing: .04em; margin: 10px 0 5px; }
.comm-style-card ul { margin: 0; padding-left: 15px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.comm-style-card li::marker { color: var(--gold); }

/* Career interests / anchor result */
.career-anchor-card { margin-top: 20px; background: linear-gradient(135deg, #f3f6ed, #fbf1e6); }
.career-anchor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.career-anchor-head h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 2px 0 8px; }
.career-anchor-head p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0; }
.anchor-score { font-family: var(--serif); font-size: 48px; line-height: 1; color: var(--sage-dark); white-space: nowrap; }
.anchor-score small { font-family: var(--sans); font-size: 11px; color: var(--faint); }
.career-interest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.career-interest-card { padding: 20px; }
.career-interest-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; margin: 5px 0 6px; }
.career-interest-card p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0 0 10px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.job-tags span { border: 1px solid var(--line); background: var(--paper); padding: 4px 8px; color: var(--ink-2); font-size: 11px; }
@media (max-width: 700px) {
  .comm-summary-head { display: block; }
  .comm-secondary { border-left: 0; border-top: 1px solid var(--line); padding: 10px 0 0; margin-top: 16px; }
  .comm-style-grid, .career-interest-grid { grid-template-columns: 1fr; }
  .career-anchor-head { display: block; }
  .anchor-score { display: block; margin-top: 12px; }
}

/* Leadership result */
.result-section-title { font-family: var(--serif); font-size: 28px; font-weight: 400; margin: 28px 0 12px; }
.gap-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 12px; }
.gap-table th { text-align: left; background: var(--paper); color: var(--muted); font-size: 10px; padding: 8px; }
.gap-table td { padding: 8px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
.review-prompt { border-top: 1px solid var(--line-soft); margin-top: 18px; padding-top: 14px; }
.review-prompt p { color: var(--muted); font-size: 12px; line-height: 1.75; }
.review-link-row { display: flex; gap: 8px; margin-top: 10px; }
.review-link-row .input { font-size: 11px; }
.leadership-use-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.leadership-use-card { border: 1px solid var(--line); background: var(--paper); padding: 18px; }
.leadership-use-card h3 { font-family: var(--serif); font-size: 23px; font-weight: 400; margin: 0 0 5px; }
.leadership-use-card p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0 0 8px; }
.leadership-use-card ul { margin: 0; padding-left: 15px; color: var(--ink-2); font-size: 11.5px; line-height: 1.75; }
.leadership-use-card li::marker { color: var(--gold); }
@media (max-width: 640px) {
  .leadership-use-grid { grid-template-columns: 1fr; }
  .review-link-row { display: block; }
  .review-link-row .btn { margin-top: 8px; width: 100%; }
  .gap-table { font-size: 10px; }
  .gap-table th, .gap-table td { padding: 5px 3px; }
}

/* B2B team page */
.team-page { padding: 48px 0 80px; }
.team-hero { margin-bottom: 26px; }
.team-hero h1 { font-size: clamp(38px, 5vw, 58px); }
.team-hero p { color: var(--muted); max-width: 62ch; }
.team-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.team-columns .card { padding: 26px; }
.team-columns h2, .team-dashboard h2, .team-report-card h2 { font-size: 26px; margin-top: 0; }
.team-dashboard { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.team-invite-card, .team-members-card, .team-report-card { padding: 24px; }
.team-invite-card > p, .team-members-card > p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.team-code { margin-top: 12px; color: var(--muted); font-size: 12px; }
.team-code b { font-family: var(--serif); font-size: 20px; color: var(--terracotta-dark); letter-spacing: .08em; }
.team-progress { margin-top: 18px; }
.team-progress .bar-track { height: 6px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.team-progress .bar-fill { height: 100%; background: linear-gradient(90deg, var(--sage), var(--terracotta)); }
.team-progress span { display: block; color: var(--faint); font-size: 10px; margin-top: 6px; }
.team-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.team-member-list { list-style: none; padding: 0; margin: 12px 0 0; }
.team-member-list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-soft); padding: 8px 0; font-size: 12px; color: var(--ink-2); }
.team-member-list small { color: var(--terracotta-dark); }
.team-report-card { margin-top: 18px; padding: 24px; }
.team-report-card h3 { font-family: var(--serif); font-size: 22px; margin: 22px 0 8px; }
.team-message { border: 1px solid var(--sage); background: var(--sage-soft); color: var(--sage-dark); padding: 10px 14px; margin-bottom: 18px; font-size: 12px; }
.team-questions { margin-top: 8px; }
.review-q { margin: 0 0 16px; padding: 0 0 12px; border-bottom: 1px solid var(--line-soft); }
.review-q p { margin: 0 0 8px; color: var(--ink-2); font-size: 13px; line-height: 1.65; }
.review-q p span { color: var(--terracotta-dark); font-size: 10px; letter-spacing: .08em; margin-right: 8px; }
.review-pills .pill span { min-width: 36px; }
.review-questions .review-q:last-child { border-bottom: 0; }
@media (max-width: 700px) {
  .team-columns, .team-dashboard { grid-template-columns: 1fr; }
  .team-page { padding-top: 28px; }
}

/* Cognitive ability + EQ */
.cognitive-timer { display: flex; align-items: baseline; gap: 10px; border: 1px solid var(--line); background: var(--peach-soft); padding: 10px 14px; margin: 16px 0 20px; color: var(--muted); font-size: 11px; }
.cognitive-timer b { font-family: var(--serif); font-size: 24px; color: var(--terracotta); letter-spacing: .06em; }
.cognitive-timer .timer-label { color: var(--terracotta-dark); font-weight: 600; }
.matrix-grid { display: grid; grid-template-columns: repeat(3, 1fr); width: min(280px, 100%); border: 1px solid var(--line); margin: 14px 0 16px; }
.matrix-grid span { min-height: 62px; display: grid; place-items: center; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); font-size: 24px; color: var(--ink); background: var(--paper); }
.matrix-grid span:nth-child(3n) { border-right: 0; }
.matrix-grid span:nth-last-child(-n+3) { border-bottom: 0; }
.matrix-grid span.missing { color: var(--terracotta); background: var(--peach-soft); font-family: var(--serif); }
.cognitive-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cognitive-option { border: 1px solid var(--line); background: var(--paper); padding: 10px 12px; cursor: pointer; font-size: 14px; color: var(--ink); }
.cognitive-option:hover { border-color: var(--terracotta); }
.cognitive-option.selected { border-color: var(--terracotta); background: var(--peach-soft); }
.cognitive-option input { margin-right: 8px; accent-color: var(--terracotta); }
@media (max-width: 640px) {
  .cognitive-timer { flex-wrap: wrap; }
  .cognitive-options { grid-template-columns: 1fr; }
  .matrix-grid { width: 100%; }
  .matrix-grid span { min-height: 50px; font-size: 20px; }
}

/* Cognitive / EQ results */
.cognitive-result-hero, .eq-result-hero { margin-top: 20px; background: linear-gradient(135deg, #f2f6ed, #fbf2e7); }
.cognitive-index { display: flex; align-items: baseline; gap: 7px; }
.cognitive-index .eyebrow { align-self: center; margin: 0 10px 0 0; }
.cognitive-index b { font-family: var(--serif); font-size: 74px; line-height: .9; font-weight: 400; color: var(--terracotta); }
.cognitive-index small { color: var(--faint); font-size: 12px; }
.cognitive-band { margin-top: 8px; }
.cognitive-band span { font-family: var(--serif); font-size: 26px; color: var(--sage-dark); }
.cognitive-band p { color: var(--muted); font-size: 13px; line-height: 1.75; margin: 5px 0 16px; }
.cognitive-dims { display: grid; gap: 18px; margin-top: 12px; }
.cognitive-dim-card .meta { margin: 5px 0 0; }
@media (max-width: 640px) {
  .cognitive-index b { font-size: 58px; }
  .cognitive-band span { font-size: 22px; }
}

/* Theory basis + methodology page */
.theory-card { margin-top: 20px; border: 1px solid var(--line); background: rgba(251, 247, 240, .8); padding: 16px 18px; }
.theory-card.compact { margin-top: 18px; }
.theory-card summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.theory-card summary::-webkit-details-marker { display: none; }
.theory-card summary::after { content: "+"; margin-left: auto; color: var(--gold-ink); font-size: 18px; }
.theory-card[open] summary::after { content: "−"; }
.theory-kicker { color: var(--gold-ink); font-size: 10px; letter-spacing: .16em; }
.theory-card summary strong { font-family: var(--serif); font-size: 19px; font-weight: 400; color: var(--ink); }
.theory-card > p { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 12px 0 0; }
.theory-sources { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 11.5px; line-height: 1.7; }
.theory-sources li { margin-bottom: 6px; }
.theory-sources small { display: block; color: var(--faint); font-size: 10.5px; }
.theory-boundary { border-left: 2px solid var(--gold); padding-left: 9px; }
.theory-note { color: var(--faint) !important; font-size: 10.5px !important; }
.method-page { padding: 56px 0 100px; }
.method-hero h1 { font-size: clamp(42px, 6vw, 70px); }
.method-hero p { color: var(--muted); max-width: 72ch; line-height: 1.9; }
.method-warning { border-left: 2px solid var(--terracotta); padding-left: 12px; color: var(--ink-2) !important; font-size: 13px; }
.method-list { display: grid; gap: 16px; margin-top: 34px; }
.method-card { border-top: 1px solid var(--line); padding: 22px 0 20px; }
.method-head h2 { font-size: 25px; margin: 3px 0 8px; }
.method-card > p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.method-sources { padding-left: 18px; color: var(--ink-2); font-size: 12px; line-height: 1.75; }
.method-sources li { margin-bottom: 8px; }
.method-sources small { display: block; color: var(--faint); font-size: 10.5px; }
.method-boundary { border-top: 1px solid var(--line-soft); padding-top: 10px; font-size: 12px !important; }
.method-foot { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; }
.method-foot h2 { font-size: 24px; }
.method-foot p { color: var(--muted); font-size: 12.5px; line-height: 1.8; }
@media (max-width: 640px) {
  .method-page { padding-top: 30px; }
  .method-card { padding: 18px 0; }
  .theory-card { padding: 14px; }
}

/* Product groups + direction bundle */
.product-group { margin-top: 36px; }
.product-group:first-of-type { margin-top: 0; }
.product-group-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 22px 0 14px; margin-bottom: 16px; }
.product-group-head h3 { font-family: var(--serif); font-size: 30px; font-weight: 400; margin: 2px 0 3px; }
.product-group-head p { color: var(--muted); font-size: 12px; margin: 0; }
.bundle-card { border: 1px dashed var(--terracotta); background: linear-gradient(135deg, #fbf2e7, #eef2e9); padding: 26px; display: flex; flex-direction: column; align-items: flex-start; }
.bundle-label { border: 1px solid var(--terracotta); color: var(--terracotta-dark); padding: 4px 9px; font-size: 10px; letter-spacing: .12em; }
.bundle-card h3 { font-family: var(--serif); font-size: 30px; font-weight: 400; margin: 14px 0 6px; }
.bundle-card p { color: var(--muted); font-size: 12px; line-height: 1.75; margin: 0 0 12px; }
.bundle-price { font-family: var(--serif); font-size: 40px; color: var(--terracotta); line-height: 1; margin-bottom: 16px; }
.bundle-price small { font-family: var(--sans); font-size: 11px; color: var(--faint); }
.bundle-card .btn { margin-top: auto; }
.bundle-page { padding: 48px 0 80px; }
.bundle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.bundle-item { padding: 22px; }
.bundle-item h2 { font-size: 25px; }
.bundle-item p { color: var(--muted); font-size: 12px; line-height: 1.75; }
.bundle-item .btn { margin-top: 10px; }
@media (max-width: 800px) {
  .product-group-head { display: block; }
  .product-group-head .meta { display: block; margin-top: 6px; }
  .bundle-grid { grid-template-columns: 1fr; }
}

/* Quick start, catalog, wizard, half-open */
.quick-start { padding-bottom: 20px; }
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.scene-card { text-align: left; border: 1px solid var(--line); background: var(--paper); padding: 24px; min-height: 190px; cursor: pointer; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.scene-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.scene-num { color: var(--faint); font-family: var(--serif); font-size: 14px; }
.scene-card h3 { font-family: var(--serif); font-size: 29px; font-weight: 400; margin: 12px 0 5px; }
.scene-card p { color: var(--muted); font-size: 12px; margin: 0 0 18px; }
.scene-link { color: var(--terracotta); font-size: 12px; margin-top: auto; }
.quick-free-head { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 30px; padding-top: 20px; }
.quick-free-head h3 { font-family: var(--serif); font-size: 26px; font-weight: 400; margin: 0; }
.quick-free-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
.quick-card { border: 1px solid var(--line); padding: 22px; background: linear-gradient(145deg, #fbf7f0, #eef2e9); display: flex; flex-direction: column; align-items: flex-start; }
.quick-card h3 { font-family: var(--serif); font-size: 27px; font-weight: 400; margin: 8px 0 6px; }
.quick-card p { color: var(--muted); font-size: 12px; line-height: 1.75; margin: 0 0 14px; }
.quick-meta { color: var(--faint); font-size: 10.5px; margin-top: 12px; }
.quick-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.catalog-cta { border: 1px solid var(--line); background: var(--ink); color: var(--paper); padding: 26px; display: flex; flex-direction: column; justify-content: center; }
.catalog-cta .eyebrow { color: #cfb78d; }
.catalog-cta strong { font-family: var(--serif); font-size: 30px; font-weight: 400; margin: 8px 0 4px; }
.catalog-cta span:last-child { color: #c9c2b5; font-size: 12px; }
.catalog-page { padding: 54px 0 100px; }
.catalog-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.catalog-hero h1 { font-size: clamp(42px, 6vw, 68px); margin: 4px 0 8px; }
.catalog-hero p { color: var(--muted); font-size: 13px; max-width: 62ch; }
.catalog-filters { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin: 26px 0 12px; }
.filter-row { display: flex; align-items: center; gap: 14px; padding: 5px 0; }
.filter-label { width: 42px; color: var(--faint); font-size: 10px; letter-spacing: .12em; flex: none; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 6px 13px; font-size: 11.5px; cursor: pointer; }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.catalog-count { display: flex; justify-content: space-between; align-items: center; color: var(--faint); font-size: 11px; margin: 12px 0 14px; }
.text-link { border: 0; background: transparent; color: var(--terracotta); font-size: 11px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.catalog-card { border: 1px solid var(--line); padding: 17px; background: var(--paper); display: flex; flex-direction: column; min-height: 228px; }
.catalog-card-top { display: flex; justify-content: space-between; gap: 8px; color: var(--faint); font-size: 9.5px; }
.catalog-cat { color: var(--gold-ink); letter-spacing: .08em; }
.catalog-card h3 { font-family: var(--serif); font-size: 22px; line-height: 1.28; font-weight: 400; margin: 12px 0 6px; }
.catalog-card > p { color: var(--muted); font-size: 11.5px; line-height: 1.65; margin: 0 0 12px; }
.catalog-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: auto; }
.catalog-price { color: var(--terracotta-dark); font-size: 11.5px; }
.catalog-actions { margin-top: 10px; }
.catalog-retention { color: var(--faint); font-size: 9.5px; margin-top: 7px; }
.catalog-empty { grid-column: 1 / -1; padding: 60px 0; text-align: center; }
.wizard-page { padding: 60px 0 90px; }
.wizard-lead { color: var(--muted); font-size: 13px; line-height: 1.8; }
.wizard-progress { display: flex; align-items: center; gap: 6px; margin-bottom: 34px; }
.wizard-progress span { width: 46px; height: 2px; background: var(--line); }
.wizard-progress span.is-on { background: var(--terracotta); }
.wizard-progress small { color: var(--faint); margin-left: 8px; font-size: 10px; }
.wizard-page h1 { font-size: clamp(36px, 5vw, 54px); }
.wizard-options { display: grid; gap: 10px; margin-top: 24px; }
.wizard-option { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); background: var(--paper); padding: 20px 22px; font-family: var(--serif); font-size: 22px; color: var(--ink); cursor: pointer; text-align: left; }
.wizard-option:hover { border-color: var(--terracotta); }
.wizard-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.wizard-results { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.wizard-result { border: 1px solid var(--line); padding: 22px; background: var(--paper); }
.wizard-result h2 { font-size: 26px; margin: 6px 0; }
.wizard-result p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.wizard-result .catalog-actions { margin-top: 12px; }
.half-open-type { margin: 26px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.half-open-name { font-family: var(--serif); font-size: clamp(38px, 6vw, 62px); color: var(--terracotta); line-height: 1.15; margin: 5px 0 8px; }
.half-open-type p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0; }
.half-open-grid { margin-top: 0; }
.half-open-locked { margin-top: 18px; padding: 6px 20px; }
.locked-row { display: flex; gap: 14px; align-items: flex-start; padding: 17px 0; border-bottom: 1px solid var(--line-soft); }
.locked-row:last-child { border-bottom: 0; }
.lock-icon { color: var(--faint); font-size: 18px; }
.locked-row h2 { font-size: 19px; margin: 0 0 3px; }
.locked-row p { color: var(--faint); font-size: 11.5px; margin: 0; }
.lock-pill { margin-left: auto; border: 1px solid var(--line); color: var(--faint); font-size: 9px; padding: 4px 7px; white-space: nowrap; }
.half-open-cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 22px 0 14px; }
@media (max-width: 1000px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .scene-grid, .quick-free-grid, .quick-bottom, .wizard-results { grid-template-columns: 1fr; }
  .catalog-hero { display: block; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-row { display: block; }
  .filter-label { display: block; margin-bottom: 6px; }
}
@media (max-width: 480px) {
  .catalog-grid { grid-template-columns: 1fr; }
}
.next-step-card { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-left: 3px solid var(--gold); }
.next-step-card h2 { font-size: 24px; margin: 4px 0; }
.next-step-card p { color: var(--muted); font-size: 12px; margin: 0; }
.next-step-actions { display: flex; gap: 8px; flex-wrap: wrap; flex: none; }
@media (max-width: 640px) { .next-step-card { display: block; } .next-step-actions { margin-top: 12px; } }

.hero { padding-bottom: 34px; }
.hero-grid { min-height: 540px; }
.pay-panel { margin-top: 20px; border: 1px solid var(--line); background: #fbf7f0; padding: 18px; }
.pay-head h2 { font-size: 24px; margin: 4px 0; }
.pay-head h2 b { color: var(--terracotta); font-family: var(--serif); font-size: 30px; }
.pay-head p { color: var(--muted); font-size: 12px; margin: 0; }
.pay-qrs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.pay-qrs figure { margin: 0; text-align: center; background: #fff; border: 1px solid var(--line); padding: 10px; }
.pay-qrs img { width: 100%; max-width: 230px; aspect-ratio: 1; object-fit: contain; display: block; margin: 0 auto; }
.pay-qrs figcaption { color: var(--muted); font-size: 11px; margin-top: 6px; }
.pay-note { color: var(--muted); font-size: 11px; line-height: 1.7; border-left: 2px solid var(--gold); padding-left: 9px; }
.order-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.order-form .input { margin: 8px 0; }
.order-page { padding: 50px 0 80px; }
.order-page h1 { font-size: clamp(38px, 5vw, 58px); }
.order-number { color: var(--muted); font-size: 12px; }
.order-number b { font-family: ui-monospace, Menlo, monospace; color: var(--ink); }
.order-card { margin-top: 18px; padding: 24px; }
.order-summary { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; border-bottom: 1px solid var(--line-soft); padding-bottom: 18px; }
.order-summary h2 { font-family: var(--serif); font-size: 40px; margin: 4px 0; color: var(--terracotta); }
.order-summary p { color: var(--muted); font-size: 12px; margin: 0; }
.order-status { font-size: 11px; padding: 5px 8px; border: 1px solid var(--line); white-space: nowrap; }
.order-status.pending { color: var(--terracotta); border-color: #d8b29a; }
.order-status.approved { color: var(--green); border-color: #a9bca9; }
.order-wait { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 20px 0; }
.order-code-box { margin-top: 20px; background: #eef2e9; border: 1px solid #d5dfd2; padding: 18px; }
.order-code { font-family: ui-monospace, Menlo, monospace; font-size: clamp(22px, 4vw, 38px); letter-spacing: .08em; color: var(--green); margin: 7px 0; }
.order-code-box .meta { color: var(--muted); font-size: 11px; margin: 3px 0; }
.order-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 560px) { .pay-qrs { gap: 6px; } .pay-qrs figure { padding: 5px; } .order-summary { display: block; } }
.hero-free-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.hero-free-actions > span { color: var(--faint); font-size: 10.5px; letter-spacing: .04em; }
.referral-card { margin-top: 18px; border-color: #d7c7ad; background: linear-gradient(135deg,#fbf6ec,#eef2e9); }
.referral-card h2 { font-size: 25px; margin: 5px 0; }
.referral-card p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.referral-link { display: flex; gap: 8px; align-items: center; margin: 12px 0; }
.referral-link .input { min-width: 0; flex: 1; font-size: 11px; }
.reward-code { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 11px; }
.reward-code code { background: #e8eee6; padding: 4px 7px; font-size: 12px; }
@media (max-width: 580px) { .hero-free-actions { display: grid; grid-template-columns: 1fr 1fr; } .hero-free-actions > span { grid-column: 1 / -1; } .hero-free-actions .btn { width: 100%; } .referral-link { display: block; } .referral-link .btn { margin-top: 7px; width: 100%; } }
.values-mode-card { margin-bottom: 16px; border: 1px solid var(--line); background: linear-gradient(145deg,#fbf7ef,#eef2e9); padding: 18px; }
.values-mode-card h3 { font-family: var(--serif); font-size: 25px; font-weight: 400; margin: 5px 0 10px; }
.values-mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.values-mode-options label { display: flex; gap: 9px; align-items: flex-start; border: 1px solid var(--line); padding: 12px; background: #fff; cursor: pointer; }
.values-mode-options label.selected { border-color: var(--terracotta); background: #fdf4ea; }
.values-mode-options input { margin-top: 4px; }
.values-mode-options b { display: block; font-size: 13px; font-weight: 500; }
.values-mode-options small { display: block; color: var(--muted); font-size: 10.5px; line-height: 1.6; margin-top: 3px; }
@media(max-width:560px){.values-mode-options{grid-template-columns:1fr}}
