@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --paper: #f6f7f4;
  --sheet: #ffffff;
  --ink: #17212b;
  --ink-2: #4a5866;
  --ink-3: #6b7783;
  --rule: #d5dad3;
  --rule-2: #e6e9e3;
  --mark: #f5e15a;
  --go: #1f5f4a;
  --go-hover: #174a39;
  --go-tint: #e3eee8;
  --stop: #9a3b2e;
  --stop-tint: #f6e7e3;
  --focus: #2b6cb0;

  --measure: 40rem;
  --wide: 62rem;
  --radius: 6px;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 2.125rem;
  --step-4: 2.875rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "tnum" 0;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--go); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--go-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); margin-top: 2.2em; }
h3 { font-size: var(--step-1); margin-top: 1.8em; }
p, ul, ol { margin: 0 0 1em; }
li + li { margin-top: 0.35em; }
small, .small { font-size: var(--step--1); }
.muted { color: var(--ink-2); }

/* The highlighter: the one bold device. Used for the line that matters most. */
.mark {
  background: linear-gradient(104deg, transparent 0.4em, var(--mark) 0.5em, var(--mark) calc(100% - 0.3em), transparent calc(100% - 0.2em));
  background-size: 100% 0.62em;
  background-repeat: no-repeat;
  background-position: 0 88%;
  padding: 0 0.15em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header and footer */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-head .in { max-width: var(--wide); margin: 0 auto; padding: 0.9rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.brand:hover { color: var(--ink); }
.brand svg { flex: none; }
.nav { display: flex; gap: 1.25rem; font-size: var(--step--1); }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

.site-foot { border-top: 1px solid var(--rule); margin-top: 5rem; font-size: var(--step--1); color: var(--ink-2); }
.site-foot .in { max-width: var(--wide); margin: 0 auto; padding: 2rem 1.25rem 3rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-foot a { color: var(--ink-2); }
@media (min-width: 48rem) { .site-foot .in { grid-template-columns: 2fr 3fr; } }

/* Page frames */
main { display: block; }
.frame { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }
.read { max-width: var(--measure); }
.page-head { padding: 3rem 0 1rem; }
.page-head p.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 36rem; }

/* Home hero: the headline, then the first question of the check itself */
.hero { padding: 3.5rem 0 2rem; display: grid; gap: 2.5rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, var(--step-4)); max-width: 15ch; line-height: 1.08; }
.hero .lede { font-size: var(--step-1); color: var(--ink-2); max-width: 32rem; }
@media (min-width: 56rem) { .hero { grid-template-columns: 1fr 1.05fr; align-items: start; } }

/* Form sheet: the checker looks and behaves like a well-made paper form */
.sheet {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 0 var(--rule-2), 0 12px 24px -18px rgba(23, 33, 43, 0.35);
}
.sheet + .sheet { margin-top: 1.5rem; }
.sheet h2:first-child, .sheet h3:first-child { margin-top: 0; }

.q { border: 0; margin: 0; padding: 0; min-width: 0; }
.q legend { font-weight: 700; font-size: var(--step-1); line-height: 1.3; padding: 0; margin-bottom: 0.35rem; }
.q .qhelp { color: var(--ink-2); font-size: var(--step--1); margin: 0 0 0.9rem; }
.q .qnum { display: block; font-size: var(--step--1); color: var(--ink-3); font-weight: 400; margin-bottom: 0.25rem; }
.opts { display: grid; gap: 0.5rem; margin-top: 0.9rem; }
.opt { position: relative; display: block; }
.opt-a { display: block; text-decoration: none; color: inherit; }
.opt-a:hover { color: inherit; text-decoration: none; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span.box, .opt-a span.box {
  display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; align-items: start;
  padding: 0.8rem 0.9rem; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--sheet); cursor: pointer; transition: border-color 120ms, background-color 120ms;
}
.opt span.box::before, .opt-a span.box::before {
  content: ""; width: 1.05rem; height: 1.05rem; margin-top: 0.22rem; border: 1.5px solid var(--ink-3); background: #fff;
  border-radius: 50%;
}
.opt.multi span.box::before { border-radius: 3px; }
.opt:hover span.box, .opt-a:hover span.box { border-color: var(--ink-3); }
.opt input:checked + span.box { border-color: var(--go); background: var(--go-tint); }
.opt input:checked + span.box::before { border-color: var(--go); background: var(--go); box-shadow: inset 0 0 0 3px #fff; }
.opt.multi input:checked + span.box::before { box-shadow: none; background: var(--go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.opt input:focus-visible + span.box { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt .hint, .opt-a .hint { display: block; color: var(--ink-2); font-size: var(--step--1); margin-top: 0.1rem; }

.progress { display: flex; align-items: center; gap: 0.75rem; font-size: var(--step--1); color: var(--ink-2); margin-bottom: 1.25rem; }
.progress .bar { flex: 1; height: 4px; background: var(--rule-2); border-radius: 2px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--go); width: 0; transition: width 200ms ease; }

.actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  padding: 0.85rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--go);
  background: var(--go); color: #fff;
}
.btn:hover { background: var(--go-hover); border-color: var(--go-hover); color: #fff; text-decoration: none; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.secondary:hover { border-color: var(--ink-3); color: var(--ink); }
.btn.small { padding: 0.5rem 0.8rem; font-size: var(--step--1); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--go); text-decoration: underline; cursor: pointer; }

/* Results */
.verdict { border-left: 4px solid var(--go); padding: 0.2rem 0 0.2rem 1rem; margin: 0 0 1.5rem; }
.verdict.stop { border-color: var(--stop); }
.verdict.order, .verdict.verify { border-color: var(--ink); }
.verdict h2 { margin: 0 0 0.35rem; font-size: var(--step-2); }
.verdict p { margin: 0; color: var(--ink-2); }

.cause { padding: 1.1rem 0; border-top: 1px solid var(--rule-2); }
.cause:first-of-type { border-top: 0; padding-top: 0; }
.cause h3 { margin: 0 0 0.3rem; font-size: var(--step-1); }
.cause .lvl { font-size: var(--step--1); font-weight: 600; color: var(--ink-2); display: block; margin-bottom: 0.2rem; }
.cause .lvl.likely { color: var(--go); }
.cause p { margin: 0 0 0.5rem; }

.stoplist { list-style: none; padding: 0; margin: 0; }
.stoplist li { padding-left: 1.6rem; position: relative; }
.stoplist li::before { content: ""; position: absolute; left: 0.15rem; top: 0.55em; width: 0.85rem; height: 2px; background: var(--stop); }

.note { background: var(--stop-tint); border-radius: var(--radius); padding: 0.9rem 1rem; color: #4d1f18; }
.note.go { background: var(--go-tint); color: #123829; }
.note.plain { background: #eef1ec; color: var(--ink); }
.note p:last-child { margin-bottom: 0; }

/* Offer block */
.offer { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .offer { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.price { font-size: var(--step-3); font-weight: 700; line-height: 1; }
.price small { font-size: var(--step--1); font-weight: 400; color: var(--ink-2); margin-left: 0.4rem; }
.includes { padding-left: 1.2rem; }

/* Comparison of options on the home page */
.compare { width: 100%; border-collapse: collapse; font-size: var(--step--1); margin: 1rem 0; }
.compare th, .compare td { text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare th { font-weight: 600; color: var(--ink-2); }
.compare tr.us td { background: var(--go-tint); }

/* Numbered steps: the appeal really is a sequence */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 1rem 0; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 1.1rem 2.6rem; margin: 0; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 0.05rem; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  border: 1.5px solid var(--ink); font-weight: 700; font-size: 0.9rem; display: grid; place-items: center; line-height: 1;
}
.steps > li > strong { display: block; }

/* Checklists in the kit */
.checklist { list-style: none; padding: 0; margin: 0.5rem 0 1rem; }
.checklist li { margin: 0; }
.checklist label { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.7rem; padding: 0.55rem 0; border-bottom: 1px solid var(--rule-2); cursor: pointer; }
.checklist input { width: 1.05rem; height: 1.05rem; margin-top: 0.25rem; accent-color: var(--go); }
.checklist input:checked + span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-3); }
.picklist input:checked + span { color: var(--ink); text-decoration: none; }

/* Fields */
.field { display: grid; gap: 0.3rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: var(--step--1); }
.field .fhelp { font-size: var(--step--1); color: var(--ink-2); }
.field input[type="text"], .field input[type="email"], .field textarea, .field select {
  font: inherit; font-size: 1rem; padding: 0.65rem 0.75rem; border: 1px solid var(--ink-3); border-radius: var(--radius);
  background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.55; }
.grid2 { display: grid; gap: 0 1rem; }
@media (min-width: 40rem) { .grid2 { grid-template-columns: 1fr 1fr; } }

.output {
  white-space: pre-wrap; background: #fbfbf9; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1rem 1.1rem; font-size: 1rem; line-height: 1.6;
}
.wordcount { font-size: var(--step--1); color: var(--ink-2); }

/* Document match checker */
.match { display: grid; gap: 0.25rem; padding: 0.75rem 0.9rem; border-radius: var(--radius); margin-top: 0.5rem; font-size: var(--step--1); }
.match.ok { background: var(--go-tint); }
.match.warn { background: #fbf4d4; }
.match.bad { background: var(--stop-tint); }
.match strong { font-size: 1rem; }
.diff del { background: #f2c9c1; text-decoration: none; padding: 0 0.15em; border-radius: 2px; }
.diff ins { background: #cfe5d8; text-decoration: none; padding: 0 0.15em; border-radius: 2px; }

/* Kit layout with a table of contents */
.kit { display: grid; gap: 2rem; padding-top: 2rem; }
@media (min-width: 60rem) { .kit { grid-template-columns: 13rem 1fr; } .toc { position: sticky; top: 1rem; align-self: start; } }
.toc { font-size: var(--step--1); }
.toc ol { padding-left: 1.2rem; margin: 0; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.kit section { scroll-margin-top: 1rem; }
.kit section + section { margin-top: 2.5rem; }
.kit h2 { margin-top: 0; }

.state { padding: 3rem 0; }
.spinner { width: 1.4rem; height: 1.4rem; border: 2px solid var(--rule); border-top-color: var(--go); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; vertical-align: middle; margin-right: 0.6rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Guides */
.guide-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0; }
.guide-list li { border-top: 1px solid var(--rule); margin: 0; }
.guide-list a { display: block; padding: 1rem 0; text-decoration: none; color: var(--ink); }
.guide-list a strong { display: block; font-size: var(--step-1); }
.guide-list a span { color: var(--ink-2); font-size: var(--step--1); }
.guide-list a:hover strong { text-decoration: underline; }
article.guide { padding-top: 2.5rem; }
article.guide .byline { color: var(--ink-2); font-size: var(--step--1); margin-bottom: 2rem; }
article.guide h2 { font-size: var(--step-1); margin-top: 2em; }
article.guide blockquote { margin: 1.5rem 0; padding: 0.2rem 0 0.2rem 1rem; border-left: 3px solid var(--mark); color: var(--ink-2); }
.cta-box { margin-top: 3rem; }

.faq dt { font-weight: 700; margin-top: 1.3rem; }
.faq dd { margin: 0.3rem 0 0; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .site-head, .site-foot, .toc, .noprint, .actions { display: none !important; }
  .sheet { box-shadow: none; border: 0; padding: 0; }
  .kit { display: block; padding: 0; }
  .kit section { break-inside: auto; }
  h2 { break-after: avoid; }
  a { color: var(--ink); text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: var(--ink-2); word-break: break-all; }
  .checklist label { border: 0; padding: 0.2rem 0; }
  .output { border: 1px solid #999; }
}
