@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("assets/fonts/atkinson-400.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("assets/fonts/atkinson-500.ttf") format("truetype"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("assets/fonts/atkinson-600.ttf") format("truetype"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("assets/fonts/atkinson-700.ttf") format("truetype"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("assets/fonts/atkinson-800.ttf") format("truetype"); font-style: normal; font-weight: 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/ibm-plex-mono-500.ttf") format("truetype"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/ibm-plex-mono-600.ttf") format("truetype"); font-style: normal; font-weight: 600; font-display: swap; }

:root {
  --canvas: oklch(0.98 0.006 285);
  --ink: oklch(0.20 0.025 295);
  --authority: oklch(0.39 0.13 300);
  --highlight: oklch(0.93 0.22 118);
  --overdue: oklch(0.48 0.17 20);
  --rule: oklch(0.84 0.018 285);
  --surface: oklch(1 0 0);
  --muted: oklch(0.46 0.025 285);
  --success: oklch(0.39 0.10 155);
  --space-xs: .5rem;
  --space-sm: .75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --font-body: "Atkinson Hyperlegible Next", Arial, system-ui, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font-body);
  font-kerning: normal;
}
a { color: var(--authority); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, label, select, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--highlight); outline-offset: 3px; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 50; padding: .75rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }

.site-header, .opening, .workspace, .result-sheet, .source-strip, footer {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}
.site-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-weight: 750; font-size: 1.05rem; text-decoration: none; }
.brand mark { background: linear-gradient(transparent 52%, var(--highlight) 52%); color: inherit; padding-inline: .1em; }
.ticket-mark { width: 23px; height: 30px; border: 2px solid var(--authority); clip-path: polygon(0 0, 100% 0, 100% 35%, 82% 50%, 100% 65%, 100% 100%, 0 100%, 0 65%, 18% 50%, 0 35%); }
.privacy-note { color: var(--muted); font-size: .875rem; }

.opening { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2xl); align-items: end; padding-block: clamp(2.25rem, 4.5vw, 4.25rem) clamp(2rem, 3.5vw, 3.25rem); }
.opening-copy { max-width: 790px; }
.eyebrow { margin: 0 0 .75rem; color: var(--authority); font: 600 .78rem/1.2 var(--font-data); letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 18ch; margin-bottom: var(--space-lg); font-size: clamp(2.5rem, 5.2vw, 4.75rem); line-height: 1; letter-spacing: -.05em; font-weight: 750; }
.lede { max-width: 62ch; margin: 0; font-size: 1.2rem; line-height: 1.55; color: var(--muted); }
.date-stamp { padding: 1rem 1.1rem; border: 2px solid var(--authority); color: var(--authority); transform: rotate(-2deg); text-align: center; font-family: var(--font-data); }
.date-stamp span { display: block; font-size: .66rem; letter-spacing: .1em; }
.date-stamp strong { display: block; font-size: 1rem; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .75fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-bottom: var(--space-3xl); }
.docket { position: relative; background: var(--surface); border: 1px solid var(--rule); box-shadow: 10px 12px 0 color-mix(in oklch, var(--rule) 42%, transparent); }
.docket::before, .result-sheet::before { content: ""; position: absolute; inset: 0 auto 0 -6px; width: 11px; background: radial-gradient(circle, var(--canvas) 4px, transparent 4.5px) center top / 11px 22px repeat-y; }
.docket-topline { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1.5rem; background: var(--ink); color: white; font: 500 .7rem/1.2 var(--font-data); letter-spacing: .08em; }
fieldset { min-width: 0; margin: 0; padding: var(--space-xl); border: 0; }
legend { padding: 0; font-size: 1.75rem; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.step-no { display: inline-block; margin-right: .65rem; color: var(--authority); font: 600 .82rem/1 var(--font-data); vertical-align: middle; }
.field-help { margin: .75rem 0 1.25rem 2.2rem; color: var(--muted); }
.choice-list { border-top: 1px solid var(--rule); }
.choice-row { min-height: 72px; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 1rem; padding: .9rem .4rem; border-bottom: 1px solid var(--rule); cursor: pointer; transition: color 180ms ease, padding 180ms ease, background 180ms ease; }
.choice-row:hover { background: color-mix(in oklch, var(--highlight) 16%, white); padding-inline: .75rem; }
.choice-row:has(input:checked) { background: var(--authority); color: white; padding-inline: .75rem; }
.choice-row input { position: absolute; opacity: 0; pointer-events: none; }
.choice-row:has(input:focus-visible) { outline: 3px solid var(--highlight); outline-offset: 3px; }
.choice-dot { width: 20px; height: 20px; border: 2px solid currentColor; border-radius: 50%; box-shadow: inset 0 0 0 4px transparent; }
.choice-row:has(input:checked) .choice-dot { background: var(--highlight); box-shadow: inset 0 0 0 4px var(--authority); border-color: var(--highlight); }
.choice-row strong, .choice-row small { display: block; }
.choice-row strong { font-size: 1.08rem; line-height: 1.25; }
.choice-row small { margin-top: .2rem; color: var(--muted); font-size: .9rem; }
.choice-row:has(input:checked) small { color: color-mix(in oklch, white 78%, var(--authority)); }

.follow-up { border-top: 1px dashed var(--rule); }
.fact-section { padding: var(--space-xl); animation: reveal 180ms ease-out both; }
.fact-section h2 { margin-bottom: .4rem; font-size: 1.35rem; }
.fact-section > p { color: var(--muted); max-width: 62ch; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.field { display: grid; align-content: start; gap: .45rem; }
.fact-section fieldset.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.fact-section fieldset.field legend { margin: 0; padding: 0; font-size: 1rem; line-height: 1.55; font-weight: 650; letter-spacing: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-weight: 650; }
.field small { color: var(--muted); line-height: 1.35; }
input[type="date"], select { min-height: 52px; width: 100%; padding: .7rem .8rem; border: 1.5px solid var(--rule); border-radius: 0; background: white; color: var(--ink); }
input[type="date"]:hover, select:hover { border-color: var(--authority); }
.inline-choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.inline-choices label { position: relative; min-height: 48px; display: inline-flex; align-items: center; padding: .65rem 1rem; border: 1.5px solid var(--rule); cursor: pointer; font-weight: 550; }
.inline-choices input { position: absolute; opacity: 0; }
.inline-choices label:has(input:checked) { border-color: var(--authority); background: var(--authority); color: white; }
.inline-choices label:has(input:focus-visible) { outline: 3px solid var(--highlight); outline-offset: 3px; }
.error { min-height: 1.25rem; margin: .7rem 0 0 2.2rem; color: var(--overdue); font-weight: 650; }
.field-error { color: var(--overdue); font-weight: 650; font-size: .9rem; }
.invalid { border-color: var(--overdue) !important; }
.form-actions { display: flex; align-items: center; gap: 1.25rem; padding: 0 var(--space-xl) var(--space-xl); }
.primary-button { min-height: 54px; display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; padding: .75rem 1.1rem; border: 2px solid var(--ink); background: var(--highlight); color: var(--ink); font-weight: 750; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: transform 100ms ease, box-shadow 100ms ease; }
.primary-button:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.primary-button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.text-button { min-height: 48px; border: 0; background: transparent; color: var(--authority); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

.guide { position: sticky; top: 1.5rem; padding-top: .75rem; }
.guide h2 { max-width: 12ch; font-size: 1.75rem; line-height: 1.1; letter-spacing: -.03em; }
.mini-timeline { list-style: none; margin: 2rem 0; padding: 0; }
.mini-timeline li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 1rem; padding-bottom: 1.7rem; }
.mini-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; border-left: 1px dashed var(--rule); }
.mini-timeline li > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--authority); color: var(--authority); font: 600 .78rem/1 var(--font-data); border-radius: 50%; }
.mini-timeline p { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
.plain-note { padding: 1.25rem 0; border-block: 1px solid var(--rule); }
.plain-note p { margin: .4rem 0 0; color: var(--muted); }

.result-sheet { position: relative; margin-bottom: var(--space-3xl); padding: clamp(1.5rem, 4vw, 3.5rem); background: var(--ink); color: white; box-shadow: 10px 12px 0 var(--highlight); }
.result-sheet[hidden] { display: none; }
.result-kicker { color: var(--highlight); font: 600 .78rem/1.2 var(--font-data); letter-spacing: .1em; }
.result-sheet h2 { max-width: 18ch; margin: .6rem 0 1.5rem; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.045em; }
.result-lede { max-width: 62ch; font-size: 1.15rem; color: color-mix(in oklch, white 78%, var(--ink)); }
.amount-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem; margin: 2rem 0; padding-block: 1.2rem; border-block: 1px solid color-mix(in oklch, white 24%, var(--ink)); }
.amount-line strong { font: 600 clamp(2.4rem, 7vw, 5.5rem)/.9 var(--font-data); color: var(--highlight); letter-spacing: -.06em; }
.amount-line span { max-width: 24ch; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: clamp(2rem, 5vw, 5rem); margin-top: 2.5rem; }
.deadline-list { list-style: none; margin: 0; padding: 0; }
.deadline-list li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.2rem; padding: 1rem 0; border-top: 1px solid color-mix(in oklch, white 20%, var(--ink)); }
.deadline-list time, .deadline-list .data { color: var(--highlight); font: 600 .88rem/1.4 var(--font-data); font-variant-numeric: tabular-nums; }
.deadline-list p { margin: .15rem 0 0; color: color-mix(in oklch, white 72%, var(--ink)); }
.reason-box { border-top: 4px solid var(--highlight); padding-top: 1.25rem; }
.reason-box h3 { font-size: 1.25rem; }
.reason-box ul { padding-left: 1.25rem; color: color-mix(in oklch, white 76%, var(--ink)); }
.evidence-panel { display: grid; grid-template-columns: minmax(210px, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 5rem); margin-top: 3rem; padding: 2rem; border: 1px solid color-mix(in oklch, white 28%, var(--ink)); background: color-mix(in oklch, white 5%, var(--ink)); }
.evidence-panel h3 { margin-bottom: .5rem; font-size: 1.65rem; }
.evidence-panel > div > p:not(.result-kicker) { color: color-mix(in oklch, white 68%, var(--ink)); }
.evidence-list { list-style: none; margin: 0; padding: 0; }
.evidence-list li { border-top: 1px solid color-mix(in oklch, white 18%, var(--ink)); }
.evidence-list li:last-child { border-bottom: 1px solid color-mix(in oklch, white 18%, var(--ink)); }
.evidence-list label { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: .8rem; align-items: start; padding: .85rem 0; cursor: pointer; }
.evidence-list input { position: absolute; opacity: 0; pointer-events: none; }
.evidence-box { width: 22px; height: 22px; margin-top: .08rem; border: 2px solid var(--highlight); }
.evidence-list input:checked + .evidence-box { background: var(--highlight); box-shadow: inset 0 0 0 4px var(--ink); }
.evidence-list label:has(input:focus-visible) { outline: 3px solid var(--highlight); outline-offset: 4px; }
.evidence-list b { margin-right: .65rem; color: var(--highlight); font: 600 .75rem/1 var(--font-data); }
.complaint-panel { margin-top: 3rem; padding-top: 2rem; border-top: 1px dashed color-mix(in oklch, white 32%, var(--ink)); }
.complaint-panel h3 { font-size: 1.5rem; }
.complaint-copy { width: 100%; min-height: 210px; padding: 1rem; border: 1px solid color-mix(in oklch, white 32%, var(--ink)); background: color-mix(in oklch, white 7%, var(--ink)); color: white; line-height: 1.55; resize: vertical; }
.copy-row { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }
.copy-status { color: var(--highlight); }
.result-feedback { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 2.5rem; padding: 1.35rem 1.5rem; background: var(--highlight); color: var(--ink); }
.result-feedback p { margin: 0; }
.feedback-cta { min-height: 48px; flex: 0 0 auto; padding: .65rem 1rem; border: 2px solid var(--ink); background: var(--ink); color: white; font-weight: 750; cursor: pointer; }
.result-disclaimer { margin-top: 2rem; color: color-mix(in oklch, white 65%, var(--ink)); font-size: .9rem; }

.source-strip { display: grid; grid-template-columns: .7fr 1fr; column-gap: 4rem; padding-block: var(--space-3xl); border-top: 1px solid var(--rule); }
.source-strip h2 { font-size: 1.75rem; line-height: 1.1; }
.source-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; }
.footer-button { padding: 0; border: 0; background: transparent; color: var(--authority); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

.feedback-dialog { width: min(620px, calc(100% - 1.5rem)); max-height: calc(100vh - 2rem); padding: 0; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); box-shadow: 10px 12px 0 var(--highlight); }
.feedback-dialog::backdrop { background: color-mix(in oklch, var(--ink) 78%, transparent); }
.dialog-topline { display: flex; justify-content: space-between; align-items: center; padding: .65rem 1rem; background: var(--ink); color: white; font: 500 .72rem/1.2 var(--font-data); letter-spacing: .08em; }
.dialog-close { width: 48px; height: 48px; margin: -.4rem -.6rem -.4rem 0; border: 0; background: transparent; color: white; font-size: 1.6rem; cursor: pointer; }
.dialog-body { padding: clamp(1.25rem, 4vw, 2.25rem); }
.dialog-body h2 { margin-bottom: .5rem; font-size: clamp(1.8rem, 6vw, 2.6rem); line-height: 1.05; letter-spacing: -.035em; }
.dialog-body > p { color: var(--muted); }
.feedback-question { padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.feedback-question legend { margin-bottom: .65rem; font-size: 1rem; line-height: 1.35; letter-spacing: 0; }
.feedback-status { min-height: 1.5rem; margin: 1rem 0 0; color: var(--authority) !important; font-weight: 650; }

.information-page { width: min(820px, calc(100% - 2rem)); margin-inline: auto; padding-block: clamp(3rem, 7vw, 6rem); }
.information-page h1 { max-width: 13ch; }
.information-page section { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.information-page h2 { font-size: 1.55rem; }
.source-ledger { list-style: none; margin: 0; padding: 0; }
.source-ledger li { display: grid; gap: .3rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
.source-ledger li span { color: var(--muted); }
.rules-date { margin-top: 4rem; color: var(--authority); font: 600 .78rem/1.3 var(--font-data); letter-spacing: .08em; }
.legal-note { padding: 1rem 1.1rem; border-left: 4px solid var(--highlight); background: var(--surface); }
.contact-pending { color: var(--overdue); font-weight: 650; }

@keyframes reveal { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 800px) {
  .privacy-note { display: none; }
  .opening { grid-template-columns: 1fr; padding-block: 2.6rem 2rem; }
  .date-stamp { justify-self: start; }
  .workspace { grid-template-columns: 1fr; }
  .guide { position: static; }
  .guide h2 { max-width: none; }
  .mini-timeline { display: none; }
  .plain-note { margin-bottom: .5rem; }
  .result-grid, .source-strip, .evidence-panel { grid-template-columns: 1fr; }
  .source-links { grid-column: 1; }
}
@media (max-width: 560px) {
  .site-header, .opening, .workspace, .result-sheet, .source-strip, footer { width: min(100% - 1.25rem, 1180px); }
  .site-header { min-height: 66px; }
  h1 { font-size: clamp(2.4rem, 13vw, 3.7rem); }
  .lede { font-size: 1.08rem; }
  .date-stamp { display: none; }
  .docket-topline { padding-inline: 1rem; }
  fieldset, .fact-section { padding: 1.25rem; }
  legend { font-size: 1.5rem; }
  .field-help, .error { margin-left: 0; }
  .choice-row { min-height: 82px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .form-actions { flex-direction: column; align-items: stretch; padding: 0 1.25rem 1.5rem; }
  .primary-button { width: 100%; }
  .text-button { align-self: center; }
  .result-sheet { box-shadow: 6px 8px 0 var(--highlight); }
  .deadline-list li { grid-template-columns: 1fr; gap: .25rem; }
  .amount-line { align-items: flex-start; flex-direction: column; }
  .evidence-panel { padding: 1.25rem; }
  .result-feedback { align-items: stretch; flex-direction: column; gap: 1rem; }
  footer { flex-direction: column; align-items: flex-start; justify-content: center; }
  .footer-links { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
