:root {
  color-scheme: light;
  --paper: #f8f6ee;
  --white: #fffdf8;
  --sage: #e9ede1;
  --green: #284639;
  --deep: #23382e;
  --muted: #525c52;
  --line: #d8dcd0;
  --ochre: #795925;
  --serif: Georgia, "Times New Roman", serif;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--deep);
  background: var(--paper);
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--green); text-underline-offset: 0.19em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #9c6d2f;
  outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.06; letter-spacing: -0.045em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
img { display: block; max-width: 100%; }
::selection { background: #d9e4cc; color: var(--deep); }
.wrap { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.eyebrow { font-size: .79rem; font-weight: 750; letter-spacing: .155em; text-transform: uppercase; color: var(--ochre); }
.skip-link { position: absolute; z-index: 10; top: 12px; left: 12px; transform: translateY(-150%); padding: .6rem 1rem; background: var(--white); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid #e3e2d7; }
.header-inner { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: .62rem; font: 700 1.39rem/1 var(--serif); letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: var(--green); }
.brand-mark i { width: 13px; height: 16px; display: block; border: 1.5px solid #f4efdb; border-radius: 10px 2px 10px 2px; transform: rotate(13deg); position: relative; }
.brand-mark i::after { content: ""; position: absolute; width: 1px; height: 13px; background: #f4efdb; left: 5px; top: 2px; transform: rotate(29deg); }
nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2rem); }
nav a { font-size: .92rem; font-weight: 650; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.button { display: inline-flex; justify-content: center; align-items: center; padding: .78rem 1.2rem; border: 1px solid transparent; border-radius: 8px; font-weight: 700; text-decoration: none; line-height: 1.35; min-height: 47px; text-align: center; transition: background .16s ease; }
.button-small { padding: .55rem .9rem; min-height: 40px; }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: #1e352b; }
.button-primary:disabled { background: #dce4d8; color: #49594d; cursor: default; }
.button-outline { border-color: #a9b5a8; color: var(--green); background: transparent; }
.button-outline:hover { background: #e8ede2; }

.hero { display: grid; grid-template-columns: .94fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3.25rem, 6vw, 5.2rem); }
.hero-copy { padding-block: 1rem; }
.hero h1 { font-size: clamp(3.5rem, 5.65vw, 5.05rem); margin-top: 1rem; }
.hero h1 em { color: #52745f; font-weight: 400; }
.hero-description { max-width: 36ch; font-size: clamp(1.06rem, 1.6vw, 1.23rem); color: var(--muted); margin-block: 1.45rem 1.6rem; }
.inline-note { color: var(--muted); font-size: .89rem; margin-top: .85rem; display: flex; align-items: center; gap: .5rem; }
.lock-icon { width: 12px; height: 9px; border: 1.4px solid currentColor; border-radius: 2px; position: relative; display: inline-block; flex: 0 0 auto; margin-top: 4px; }
.lock-icon::before { content: ""; position: absolute; left: 2px; top: -6px; width: 6px; height: 6px; border: 1.4px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; }
.hero-visual { position: relative; border-radius: 22px; background: #b8aa7d; overflow: hidden; isolation: isolate; }
.hero-visual img { width: 100%; height: auto; aspect-ratio: 1.21; object-fit: cover; object-position: center top; }
.visual-note { position: absolute; left: clamp(.8rem, 3vw, 1.4rem); bottom: clamp(.8rem, 3vw, 1.4rem); right: clamp(.8rem, 3vw, 1.4rem); width: max-content; max-width: calc(100% - 1.6rem); display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; background: var(--white); border-radius: 10px; box-shadow: 0 8px 24px #19261b22; }
.visual-note strong, .visual-note div span { display: block; }
.visual-note strong { font-size: .95rem; }
.visual-note div span { font-size: .88rem; color: var(--muted); }
.note-mark { background: var(--sage); color: var(--green); border-radius: 50%; width: 34px; height: 34px; display: grid; flex: 0 0 34px; place-items: center; }

.process { background: #ecefe5; border-block: 1px solid #e0e5d9; }
.process-inner { padding-block: clamp(2.5rem, 5vw, 4rem); }
.process-heading h2, .resolution h2, .guidance h2 { margin: .45rem 0 1.35rem; }
.process-grid, .roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.process-grid article { background: var(--white); border: 1px solid #dde2d6; border-radius: 12px; padding: clamp(1rem, 2vw, 1.5rem); }
.tile-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 9px; background: var(--sage); color: var(--green); font-weight: 700; font-size: 1.24rem; margin-bottom: .85rem; }
.process-grid h3 { font-size: 1.05rem; margin-bottom: .34rem; }
.process-grid p, .roadmap span { color: var(--muted); }
.resolution { padding-block: clamp(2.75rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.roadmap { list-style: none; padding: 0; margin: 0 0 1.4rem; counter-reset: phase; }
.roadmap li { padding: .95rem 1rem; border-left: 2px solid #9eaf9b; background: #f0f0e7; position: relative; }
.roadmap strong, .roadmap span { display: block; }
.roadmap strong { margin-bottom: .35rem; }
summary { font-weight: 700; color: var(--green); }
.tier-ranges { max-width: 920px; padding-block: clamp(1.8rem, 4vw, 3.4rem); }
.range-back { display: inline-block; margin-bottom: .85rem; font-weight: 650; }
.tier-ranges h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 1.15rem; }
.tier-ranges > p { max-width: 74ch; margin-block: .75rem; color: var(--muted); }
.range-context { position: sticky; top: .5rem; z-index: 1; box-shadow: 0 3px 10px #35250914; }
.tier-table { width: 100%; border-collapse: collapse; margin-block: 1.35rem; font-size: .94rem; background: var(--white); }
.tier-table caption { text-align: left; font-weight: 700; padding-bottom: .4rem; }
.tier-table th, .tier-table td { border-bottom: 1px solid var(--line); text-align: left; padding: .55rem .7rem; }
.tier-table thead { background: var(--sage); }
.tier-table tbody th span { display: block; font-weight: 400; }
.tier-table :is(td, th):nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.tier-table [aria-current="true"] { background: #f9e3a7; }
.tier-table [aria-current="true"] th { box-shadow: inset 3px 0 #98631a; }
.guidance { padding-block: clamp(2.75rem, 6vw, 4.5rem); display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(1rem, 5vw, 5rem); }
.faq details { border-bottom: 1px solid var(--line); padding: .85rem 0; }
.faq p { padding-top: .65rem; color: var(--muted); }

.questionnaire { padding-block: clamp(1.6rem, 4vw, 3.2rem) 4rem; }
.questionnaire-intro h1 { font-size: clamp(2.45rem, 5.4vw, 4.4rem); margin: .42rem 0 1.45rem; }
.resolution-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 1.25rem; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); }
.resolution-progress li { padding: .58rem .8rem; border-inline-start: 1px solid var(--line); }
.resolution-progress li:first-child { border-inline-start: 0; background: var(--sage); }
.resolution-progress span { display: block; font-size: .87rem; color: var(--muted); }
.workspace { display: grid; grid-template-columns: minmax(230px, .7fr) minmax(0, 1.7fr); gap: clamp(1rem, 3vw, 2.4rem); align-items: start; }
.report-sidebar { min-width: 0; position: sticky; top: 1rem; }
.tier-preview { padding: .95rem 1.2rem; margin-bottom: .75rem; background: #f8d67e; border: 1px solid #b07b20; border-radius: 12px; color: #352509; }
.tier-preview h2 { font: 750 .87rem/1.3 "Segoe UI", system-ui, sans-serif; letter-spacing: .015em; }
.tier-preview .tier-preview-result { font: 400 clamp(1.55rem, 3vw, 2rem)/1.1 var(--serif); margin: .28rem 0 .38rem; }
.tier-preview p { font-size: .88rem; }
#report-tier-explanation { margin-bottom: .45rem; }
.tier-preview .button { margin-top: .65rem; border-color: #87601e; background: #fff5d7; color: #352509; }
.tier-preview .button:hover { background: #fff9eb; }
.tier-preview-line { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem .55rem; margin-bottom: .4rem; }
.tier-preview .tier-meaning { margin: 0; min-height: 40px; padding: .3rem .48rem; font-size: .81rem; }
.tier-scenario-result { margin-block: 1rem; }
.tier-source { margin-top: .55rem; font-size: .88rem; }
#tier-dialog { width: min(560px, calc(100% - 2rem)); }
#tier-dialog .field { margin-block: .75rem; }
#tier-dialog .field select + p { margin-top: .35rem; }
.status-card { padding: 1.1rem 1.25rem; background: var(--sage); border: 1px solid #d6dfd0; border-radius: 12px; }
.status-card h2 { font-size: 1.75rem; margin-top: .35rem; }
.status-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-block: .9rem; }
.status-bars span { height: 5px; border-radius: 100px; background: #c8d2c3; }
.status-bars span.filled { background: #497257; }
#status-tip { font-size: .95rem; }
.status-limit { margin-top: .65rem; font-size: .86rem; color: var(--muted); }
.status-link { display: inline-block; margin-top: .6rem; font-size: .86rem; font-weight: 650; }
.steps { margin: .9rem 0 0; padding: 0; list-style: none; }
.steps li > :is(span, button) { width: 100%; display: flex; align-items: center; gap: .65rem; color: var(--muted); font-size: .93rem; font-weight: 600; padding: .46rem .65rem; text-align: left; border: 0; border-radius: 7px; background: transparent; }
.steps li > button:hover, .steps .current > span { background: #e7ece0; color: var(--green); }
.step-number { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border: 1px solid #b5c2b3; border-radius: 50%; font-size: .77rem; }
.steps .current .step-number { background: var(--green); color: white; border-color: var(--green); }
.form-card { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 15px; padding: clamp(1.05rem, 4vw, 2.45rem); box-shadow: 0 10px 35px #2b443707; }
.form-card h2 { font-size: clamp(1.95rem, 4vw, 3rem); margin: .5rem 0 .75rem; }
.question-intro { color: var(--muted); }
.callout { background: #eff1e7; padding: .8rem 1rem; border-radius: 8px; border-left: 3px solid #74917a; margin-block: 1.15rem; }
.callout p { margin-top: .2rem; color: var(--muted); }
.callout a { display: inline-block; margin-top: .4rem; }
.work-estimate output { display: block; margin-top: .25rem; }
.consent-check { display: flex; align-items: start; gap: .7rem; border: 1px solid var(--line); padding: .85rem; border-radius: 8px; }
.consent-check input { accent-color: var(--green); flex: 0 0 18px; width: 18px; height: 18px; margin-top: .22rem; }
.field { margin-block: 1rem; }
.field label { display: block; font-weight: 650; margin-bottom: .32rem; }
.field-hint, .save-note { font-size: .9rem; color: var(--muted); }
.field .field-hint { margin-bottom: .35rem; }
.field :is(input, select, textarea) { display: block; width: 100%; min-height: 44px; padding: .59rem .75rem; border: 1px solid #aebbad; border-radius: 7px; background-color: #fffefa; color: var(--deep); }
.field select {
  appearance: none;
  padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field textarea { resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: space-between; margin-top: 1.35rem; }
.save-note { margin-top: .65rem; }
.review-section { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.review-section > div { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.review-section dl { margin: .55rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1rem; }
.review-section dt { font-weight: 650; }
.review-section dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; white-space: pre-wrap; }
.link-button { color: var(--green); background: none; border: 0; padding: .25rem 0; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.link-button:disabled { color: var(--muted); opacity: .76; cursor: default; }

.site-footer { background: #e6ebe0; border-top: 1px solid #dbe0d6; padding-block: 2rem; }
.assistance { background: #eff0e6; border-top: 1px solid var(--line); }
.assistance-inner { padding-block: 1.8rem; display: flex; justify-content: space-between; align-items: center; gap: 1.1rem 2rem; flex-wrap: wrap; }
.assistance h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .5rem; }
.assistance p { max-width: 65ch; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: .75fr 1.15fr 1fr; gap: clamp(1rem, 4vw, 3rem); }
.site-footer h2 { font: 700 1rem/1.4 "Segoe UI", system-ui, sans-serif; letter-spacing: 0; margin-bottom: .4rem; }
.site-footer p { font-size: .91rem; color: var(--muted); }
.footer-tag { margin-top: .7rem; }
dialog { width: min(440px, calc(100% - 2rem)); padding: 1.4rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--deep); }
dialog h2 { font-size: 2rem; margin-bottom: .7rem; }
dialog::backdrop { background: #17292080; }

@media (max-width: 980px) {
  .nav-info { display: none; }
}
@media (max-width: 850px) {
  .wrap { width: min(100% - 42px, 1120px); }
  .hero { gap: 1.15rem; }
}
@media (max-width: 660px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 66px; }
  .brand { font-size: 1.23rem; }
  .header-inner nav [data-start] { display: none; }
  nav .button-small { padding-inline: .53rem; font-size: .85rem; }
  .hero, .guidance, .workspace, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 2.2rem; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(3.25rem, 10.5vw, 4.7rem); }
  .hero-visual img { aspect-ratio: 1.43; }
  .process-grid, .roadmap { grid-template-columns: 1fr; gap: .65rem; }
  .process-heading h2, .resolution h2, .guidance h2 { margin-bottom: .85rem; }
  .report-sidebar { position: static; }
  .tier-table { font-size: .83rem; }
  .tier-table th, .tier-table td { padding: .4rem .32rem; }
  .resolution-progress li { padding: .45rem .4rem; font-size: .82rem; }
  .resolution-progress span { font-size: .78rem; line-height: 1.3; }
  .steps { display: flex; gap: .38rem; margin: .55rem 0 0; overflow-x: auto; padding: 2px 2px 6px; }
  .steps li { flex: 0 0 auto; }
  .steps li > :is(span, button) { padding: .28rem .45rem; font-size: .84rem; gap: .35rem; }
  .step-number { flex-basis: 20px; height: 20px; }
  .review-section dl { grid-template-columns: 1fr; gap: .2rem; }
  .review-section dd { margin-bottom: .3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
