:root {
  --ink: #171429;
  --ink-soft: #312d49;
  --blueberry: #31316f;
  --blueberry-light: #5d62a8;
  --cream: #f5efdf;
  --paper: #fffdf7;
  --leaf: #50664d;
  --gold: #c5a45d;
  --rose: #a75a62;
  --mist: #dfe1eb;
  --line: rgba(23, 20, 41, .18);
  --shadow: 0 25px 70px rgba(22, 18, 43, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 100; transform: translateY(-200%); background: white; color: var(--ink); padding: .75rem 1rem; border-radius: .4rem; }
.skip-link:focus { transform: none; }

.hero {
  min-height: 94vh;
  padding: 1.25rem clamp(1.25rem, 5vw, 5rem) 4rem;
  color: var(--paper);
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 42%, rgba(112, 115, 194, .34), transparent 26%),
    linear-gradient(135deg, #111020 0%, #1d1835 52%, #292858 100%);
}
.nav { max-width: 1340px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: .8rem; font-family: Georgia, serif; letter-spacing: .03em; }
.brand-mark { width: 2.1rem; height: 1.6rem; position: relative; display: inline-block; }
.brand-mark i { position: absolute; border-radius: 50%; background: var(--blueberry-light); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.brand-mark i:nth-child(1) { width: 1.2rem; height: 1.2rem; left: 0; bottom: 0; }
.brand-mark i:nth-child(2) { width: 1rem; height: 1rem; right: .12rem; bottom: .08rem; }
.brand-mark i:nth-child(3) { width: .75rem; height: .75rem; left: .75rem; top: 0; }
.quiet-button { color: var(--paper); border: 1px solid rgba(255,255,255,.3); background: transparent; border-radius: 999px; padding: .7rem 1.05rem; }
.quiet-button:hover, .quiet-button:focus-visible { background: rgba(255,255,255,.1); }

.hero-grid { max-width: 1340px; margin: clamp(4rem, 10vh, 8rem) auto 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); align-items: center; gap: 4rem; }
.eyebrow { margin: 0 0 1rem; text-transform: uppercase; letter-spacing: .17em; font-size: .74rem; font-weight: 800; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(4rem, 9vw, 8.5rem); line-height: .82; letter-spacing: -.065em; margin: 0; }
.hero-intro { max-width: 33rem; font-family: Georgia, serif; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.2; margin: 2rem 0; color: #e9e4f5; }
.hero blockquote { max-width: 38rem; border-left: 2px solid var(--gold); padding-left: 1.2rem; margin: 2rem 0; color: #cbc9dc; font-size: 1rem; }
.hero-actions, .result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: 2.25rem; }
.primary-button, .secondary-button, .text-button { border: 0; padding: .9rem 1.25rem; border-radius: 999px; font-weight: 750; }
.primary-button { background: var(--gold); color: #1a1625; box-shadow: 0 12px 30px rgba(0,0,0,.15); }
.primary-button:hover, .primary-button:focus-visible { background: #d4b976; transform: translateY(-1px); }
.secondary-button { background: transparent; border: 1px solid currentColor; color: var(--blueberry); }
.text-button { background: transparent; color: inherit; text-decoration: underline; text-underline-offset: .25em; }
.hero-object { min-height: 520px; position: relative; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.19); border-radius: 50%; }
.orbit-one { width: 26rem; height: 26rem; }
.orbit-two { width: 34rem; height: 34rem; border-style: dashed; animation: rotate 36s linear infinite; }
.hero-object .blueberry { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #7f83c6, #3c3d82 38%, #1d1d4b 76%); box-shadow: inset -18px -24px 40px rgba(6,5,28,.5), 0 35px 70px rgba(0,0,0,.3); }
.blueberry-main { width: 18rem; height: 18rem; }
.blueberry-small { width: 6.5rem; height: 6.5rem; transform: translate(10rem, -8rem); }
.hero-object .blueberry span { position: absolute; top: 7%; left: 50%; transform: translateX(-50%); width: 26%; height: 20%; background: #242450; clip-path: polygon(50% 46%, 100% 0, 73% 53%, 100% 100%, 50% 65%, 0 100%, 27% 53%, 0 0); }
.evidence-tag { position: absolute; bottom: 7rem; left: 1rem; font-family: Georgia, serif; font-style: italic; font-size: 1.25rem; color: #d9d5eb; transform: rotate(-7deg); }
@keyframes rotate { to { transform: rotate(360deg); } }

.principle-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-bottom: 1px solid var(--line); }
.principle-strip p { margin: 0; padding: 1.2rem clamp(1rem, 3vw, 2.5rem); border-right: 1px solid var(--line); font-family: Georgia, serif; }
.principle-strip p:last-child { border-right: 0; }
.principle-strip span { font-family: ui-monospace, monospace; color: var(--blueberry-light); font-size: .75rem; margin-right: .55rem; }

.guide-shell { max-width: 1280px; margin: 7rem auto; padding: 0 1.25rem; display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 3rem; align-items: start; }
.guide-sidebar { position: sticky; top: 1.5rem; }
.guide-sidebar h2, .how-section h2, .result-heading h2 { font-family: Georgia, serif; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1; font-weight: 500; letter-spacing: -.04em; margin: 0 0 2rem; }
.step-list { list-style: none; padding: 0; margin: 2rem 0; border-top: 1px solid var(--line); }
.step-list li { border-bottom: 1px solid var(--line); }
.step-list button { width: 100%; display: grid; grid-template-columns: 2rem 1fr; grid-template-rows: auto auto; text-align: left; gap: 0 .65rem; padding: .85rem .25rem; background: transparent; border: 0; color: var(--ink-soft); }
.step-list button span { grid-row: 1 / 3; width: 1.75rem; height: 1.75rem; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: .72rem; }
.step-list button b { font-size: .9rem; }
.step-list button small { opacity: .62; }
.step-list button.active span, .step-list button.complete span { background: var(--blueberry); color: white; border-color: var(--blueberry); }
.step-list button.active b { color: var(--blueberry); }
.privacy-note { display: flex; gap: .6rem; align-items: center; font-size: .78rem; color: #5e596d; }
.privacy-note span { color: var(--leaf); }

.guide-panel { background: var(--paper); border: 1px solid rgba(23,20,41,.08); box-shadow: var(--shadow); min-height: 780px; padding: clamp(1.4rem, 5vw, 4rem); position: relative; }
.progress-wrap { height: 4px; background: var(--mist); margin-bottom: 1rem; }
.progress-wrap div { height: 100%; width: 20%; background: var(--blueberry); transition: width .3s ease; }
.step-count { color: #706b7e; font-size: .78rem; margin: 0 0 3rem; }
.step h2 { font-family: Georgia, serif; font-weight: 500; font-size: clamp(2.2rem, 5vw, 4.5rem); letter-spacing: -.045em; line-height: 1; margin: 0 0 1.1rem; max-width: 12ch; }
.step-lede { font-size: 1.04rem; color: #5b5668; max-width: 42rem; margin-bottom: 2.5rem; }
.field { display: block; margin: 1.25rem 0; }
.field > span, .chip-field legend, .material-question legend { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; margin-bottom: .55rem; }
.field input, .field textarea { width: 100%; color: var(--ink); background: #fbf8f0; border: 1px solid var(--line); padding: .9rem 1rem; border-radius: .35rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(93,98,168,.2); border-color: var(--blueberry-light); }
.chip-field, .material-question { border: 0; padding: 0; margin: 2rem 0; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chips input, .segmented input, .quality-checks input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: block; border: 1px solid var(--line); border-radius: 999px; padding: .55rem .85rem; background: #fbf8f0; }
.chips input:checked + span { background: var(--blueberry); border-color: var(--blueberry); color: white; }
.doom-note { margin: 2.5rem 0 0; border: 1px solid var(--ink); padding: 1rem 1.15rem; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; background: #eeeadf; }
.doom-note span { background: var(--ink); color: white; padding: .2rem .4rem; font: 700 .67rem ui-monospace, monospace; letter-spacing: .12em; }
.doom-note p { margin: 0; font-family: Georgia, serif; font-size: 1.08rem; }
.choice-card { margin: 2rem 0; padding: 1.25rem; border-left: 4px solid var(--gold); background: #f3eddd; }
.choice-card > p { margin-top: 0; font-weight: 700; }
.segmented { display: flex; flex-wrap: wrap; gap: .45rem; }
.segmented span { display: block; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.segmented input:checked + span { color: white; background: var(--blueberry); border-color: var(--blueberry); }
.form-nav { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; }

.source-key { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin: 1.5rem 0 2rem; }
.source-key p { margin: 0; padding: .8rem; border: 1px solid var(--line); background: #f6f2e8; display: flex; flex-direction: column; }
.source-key span { font-size: .76rem; color: #696475; }
.evidence-card { border: 1px solid var(--line); padding: 1.2rem; margin: 1rem 0; background: #fbf8f0; }
.evidence-head { display: flex; justify-content: space-between; align-items: center; }
.evidence-number { font-weight: 800; color: var(--blueberry); }
.remove-evidence { border: 0; background: transparent; font-size: 1.5rem; color: #777180; }
.evidence-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.quality-checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.quality-checks span { display: block; font-size: .75rem; border: 1px solid var(--line); padding: .45rem .65rem; border-radius: .25rem; }
.quality-checks input:checked + span { background: var(--leaf); color: white; border-color: var(--leaf); }
.compact-field { margin-top: 2rem; }

.cost-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.money-field div { display: flex; align-items: center; border: 1px solid var(--line); background: #fbf8f0; }
.money-field div:focus-within { outline: 3px solid rgba(93,98,168,.2); border-color: var(--blueberry-light); }
.money-field div b { padding-left: 1rem; }
.money-field div input { border: 0; outline: 0; background: transparent; }
.cost-summary { margin: 1.5rem 0; padding: 1.2rem; color: white; background: var(--blueberry); display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .5rem 1rem; }
.cost-summary p, .cost-summary small { margin: 0; }
.cost-summary strong { font-family: Georgia, serif; font-size: 2.4rem; }
.cost-summary small { grid-column: 1 / -1; color: #d8d8ed; }

.readiness-list { display: grid; gap: .7rem; margin: 2rem 0; }
.readiness-list label { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; padding: 1rem; border: 1px solid var(--line); background: #fbf8f0; }
.readiness-list input { width: 1.15rem; height: 1.15rem; accent-color: var(--blueberry); }
.readiness-list span { display: flex; flex-direction: column; }
.readiness-list small { color: #6d6875; }
.wide-button { width: 100%; margin-top: 1.5rem; border-radius: .35rem; }

.result-section { background: var(--ink); color: var(--paper); padding: 7rem clamp(1.25rem, 5vw, 5rem); }
.result-heading { max-width: 900px; margin: 0 auto 3rem; }
.result-heading h2 { max-width: 18ch; }
.result-heading > p:last-child { color: #ccc8d8; max-width: 45rem; }
.result-grid { max-width: 1200px; margin: auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 1rem; }
.result-card { border: 1px solid rgba(255,255,255,.2); padding: 1.6rem; background: rgba(255,255,255,.055); }
.result-card > p:first-child { text-transform: uppercase; font-size: .7rem; letter-spacing: .14em; color: #aaa5bc; }
.result-card h3 { font-family: Georgia, serif; font-size: 2rem; font-weight: 500; margin: .6rem 0; }
.status-orb { width: 7rem; height: 7rem; border-radius: 50%; margin: 1.5rem 0; background: #777; box-shadow: inset -10px -16px 24px rgba(0,0,0,.25); }
.status-orb.blueberry { background: radial-gradient(circle at 35% 30%, #7f83c6, #383977 45%, #1f1f4d 82%); }
.status-orb.pause { background: radial-gradient(circle at 35% 30%, #e5b183, #aa6658 55%, #704339); }
.status-orb.unverified { background: radial-gradient(circle at 35% 30%, #e2ddce, #8d8994 55%, #4d4958); }
.record-card dl { margin: 1rem 0 0; }
.record-card dl div { padding: .8rem 0; border-top: 1px solid rgba(255,255,255,.15); }
.record-card dt { color: #aaa5bc; font-size: .73rem; text-transform: uppercase; letter-spacing: .1em; }
.record-card dd { margin: .25rem 0 0; }
.final-question { grid-column: 1 / -1; }
.final-question blockquote { font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 4rem); line-height: 1; margin: 2rem 0; max-width: 16ch; }
.final-question .field textarea { background: rgba(255,255,255,.08); color: white; border-color: rgba(255,255,255,.3); }
.result-actions { max-width: 1200px; margin: 2rem auto 0; }
.result-actions .secondary-button, .result-actions .text-button { color: white; }
.danger { color: #efb5b5 !important; }

.how-section { max-width: 1180px; margin: 0 auto; padding: 8rem 1.25rem; display: grid; grid-template-columns: .85fr 1.15fr; gap: 5rem; }
.how-copy { font-family: Georgia, serif; font-size: 1.18rem; }
.how-copy .rule { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--blueberry); font-size: 1.6rem; }
footer { padding: 2rem clamp(1.25rem, 5vw, 5rem); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .78rem; color: #5e596d; }
footer p { margin: 0; }
.lvd { font-family: "Times New Roman", serif; color: var(--ink); font-size: 1rem; }

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; margin-top: 4rem; }
  .hero-object { min-height: 380px; }
  .orbit-one { width: 20rem; height: 20rem; }
  .orbit-two { width: 26rem; height: 26rem; }
  .blueberry-main { width: 14rem; height: 14rem; }
  .blueberry-small { transform: translate(7.5rem, -6rem); }
  .guide-shell { grid-template-columns: 1fr; margin-top: 4rem; }
  .guide-sidebar { position: static; }
  .step-list { display: grid; grid-template-columns: repeat(5, 1fr); overflow-x: auto; }
  .step-list li { border-right: 1px solid var(--line); }
  .step-list button { grid-template-columns: 1.8rem 1fr; min-width: 120px; }
  .result-grid, .how-section { grid-template-columns: 1fr; }
  .how-section { gap: 1rem; }
}

@media (max-width: 620px) {
  .nav { align-items: flex-start; }
  .brand span:last-child { max-width: 8rem; }
  .hero h1 { font-size: 4rem; }
  .hero-object { min-height: 300px; }
  .orbit-one { width: 16rem; height: 16rem; }
  .orbit-two { width: 20rem; height: 20rem; }
  .blueberry-main { width: 11rem; height: 11rem; }
  .blueberry-small { width: 4.5rem; height: 4.5rem; transform: translate(6rem, -5rem); }
  .evidence-tag { bottom: 3rem; }
  .principle-strip { grid-template-columns: 1fr 1fr; }
  .principle-strip p:nth-child(2) { border-right: 0; }
  .principle-strip p:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .guide-panel { padding: 1.2rem; min-height: 0; }
  .source-key, .evidence-fields, .cost-grid { grid-template-columns: 1fr; }
  .form-nav { gap: .5rem; }
  .step h2 { font-size: 2.6rem; }
  .result-section { padding-top: 5rem; }
  .final-question blockquote { font-size: 2.5rem; }
}

@media print {
  body { background: white; }
  .hero, .principle-strip, .guide-shell, .how-section, footer, .result-actions { display: none !important; }
  .result-section { display: block !important; color: black; background: white; padding: 0; }
  .result-card { background: white; border: 1px solid #aaa; color: black; break-inside: avoid; }
  .result-heading > p:last-child, .result-card > p:first-child, .record-card dt { color: #555; }
  .final-question .field textarea { color: black; background: white; border-color: #aaa; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .orbit-two { animation: none; }
}
