:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --green: #29483d;
  --forest: #203d34;
  --sage: #dde6d5;
  --gold: #c6a77a;
  --ink: #30383b;
  --line: #c7c9bc;
  font: 16px/1.5 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
button, summary, input[type="range"] { cursor: pointer; }
:focus-visible { outline: 3px solid #99632e; outline-offset: 4px; }
.demo :focus-visible { outline-color: #ffda9d; }
.skip { position: absolute; transform: translateY(-150%); padding: 8px; background: white; }
.skip:focus { transform: none; z-index: 1; }
.wrap { width: min(1200px, calc(100% - 104px)); margin-inline: auto; }
.top { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; color: var(--green); font-weight: 750; line-height: 1.1; }
.mark { width: 35px; height: 35px; border: 1px solid currentColor; border-radius: 50%; display: grid; align-content: center; justify-items: center; gap: 3px; flex: none; }
.mark i { display: block; width: 15px; height: 1px; background: currentColor; }
.mark i:first-child { width: 7px; }
.mark i:nth-child(2) { width: 11px; }
.top nav { display: flex; gap: clamp(18px, 3vw, 42px); }
.top nav a { text-decoration: none; font-size: .9rem; }
.top nav a:hover, .text-link:hover { text-decoration: underline; }
.button { display: inline-flex; min-height: 46px; gap: 12px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 4px; padding: 10px 17px; font-size: .88rem; font-weight: 680; text-decoration: none; line-height: 1.3; }
.primary { color: #fffaf0; background: var(--green); }
.primary:hover { background: #355a4d; }
.outline { border-color: #9da69a; color: var(--green); background: transparent; }
.outline:hover { background: var(--sage); }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 95px); align-items: center; padding-block: 67px 80px; }
.eyebrow { margin: 0 0 15px; color: var(--green); font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #98774c; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 400; color: var(--forest); margin: 0; }
h1 { font-size: clamp(4rem, 7.3vw, 6rem); letter-spacing: -.04em; line-height: .96; }
h1 em { color: #526954; font-weight: 400; }
h2 { font-size: clamp(2.35rem, 4vw, 3.8rem); line-height: 1.04; letter-spacing: -.035em; }
h3 { font-size: 1.65rem; line-height: 1.15; }
.lede { max-width: 39ch; font-size: 1.05rem; margin-block: 26px; }
.actions, .form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 19px; }
.text-link { padding-block: 10px; text-decoration: none; font-size: .88rem; font-weight: 650; color: var(--green); }
.demo { background: var(--forest); color: #fff9ed; border: 1px solid #355449; padding: clamp(20px, 3.1vw, 40px); border-radius: 7px; box-shadow: 0 22px 40px #223a3024; }
.demo h2 { color: #fff9ed; font-size: clamp(2rem, 4.1vw, 3.9rem); }
.demo .eyebrow { color: #dec39a; margin-bottom: 7px; }
.demo-head, .demo-control { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.demo-icon { color: #dac39e; font-size: 2rem; }
.demo-control { margin-top: 24px; font-size: .85rem; }
.demo-control strong { font-size: 1.2rem; }
input[type="range"] { display: block; width: 100%; margin: 5px 0 14px; height: 30px; accent-color: #e2c89e; }
.shelf-list { display: grid; gap: 8px; }
.shelf { --fill: 0%; --bar: #e2c89e; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 4px 8px; padding: 9px 10px; border-radius: 4px; background: #355449; font-size: .88rem; }
.shelf:nth-child(2) { --bar: #b4c7a6; }
.shelf:nth-child(3) { --bar: #efdbb8; }
.shelf-symbol { color: #edd7af; font-size: 1.15rem; text-align: center; line-height: 1.2; }
.shelf strong, .demo-control strong { font-variant-numeric: tabular-nums; }
.rail { grid-column: 2 / -1; height: 3px; background: #5c7569; border-radius: 3px; }
.rail i { display: block; width: var(--fill); height: 100%; background: var(--bar); border-radius: inherit; transition: width 230ms ease; }
.scenario { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.scenario button { min-height: 38px; padding: 6px 9px; color: #fff9ed; border: 1px solid #829589; background: transparent; border-radius: 4px; font-size: .76rem; }
.scenario button[aria-pressed="true"] { background: #f0dfc0; color: #203d34; border-color: #f0dfc0; }
.demo-note { margin: 12px 0 0; min-height: 2.8em; color: #e0e8db; font-size: .82rem; }
.method { background: var(--sage); padding-block: 64px 72px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 27px; }
.steps article { border-top: 1px solid #a1ae9b; padding-top: 15px; }
.steps article > span { display: block; font-size: 1.5rem; color: var(--green); margin-bottom: 8px; }
.steps p { max-width: 35ch; margin: 10px 0 0; }
.diagnosis, .story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 7vw, 88px); align-items: start; padding-block: 76px; }
.section-copy > p:not(.eyebrow), .story-grid > div:first-child > p:not(.eyebrow) { max-width: 43ch; }
.privacy { font-size: .87rem; color: #405a48; }
.form-card, .navigator { padding: clamp(19px, 4vw, 38px); border: 1px solid #c7c9bc; background: #fffaf1; border-radius: 6px; min-width: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 9px; font: 1.7rem/1.15 Georgia, serif; color: var(--green); }
form label { display: block; margin-top: 12px; font-size: .9rem; font-weight: 620; }
form small { font-weight: 400; }
form input, form select { display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 7px 10px; background: #fffdf8; color: var(--ink); border: 1px solid #8b9b8a; border-radius: 4px; }
form input::placeholder { color: #5f665e; }
.form-actions { margin-top: 20px; }
.result-balance { margin-top: 12px; color: var(--green); font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 740; overflow-wrap: anywhere; }
.result-balance.deficit { color: #873e2f; }
.breakdown { list-style: none; padding: 0; }
.breakdown li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .87rem; }
.breakdown strong { text-align: right; }
.story { background: #eae2d4; }
.faq { padding-block: 68px; max-width: 790px; }
.faq h2 { margin-bottom: 25px; }
.faq details { border-top: 1px solid var(--line); padding-block: 13px; }
.faq summary { font-weight: 640; }
.faq details p { margin-bottom: 0; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-block: 25px; font-size: .85rem; }
@media (max-width: 920px) {
  .wrap { width: calc(100% - 52px); }
  .hero { gap: 25px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .top { min-height: 68px; gap: 8px; }
  .top nav { display: none; }
  .top .button { padding-inline: 8px; font-size: .75rem; min-height: 42px; }
  .hero, .diagnosis, .story-grid { grid-template-columns: 1fr; padding-block: 42px; gap: 28px; }
  h1 { font-size: clamp(3.35rem, 11vw, 5.2rem); }
  .method, .faq { padding-block: 42px; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
