/* Plain Appeal: v2 "case file" (2026-11-11).
   Hand-written CSS. Accessibility patterns (skip link, focus ring, 44px+ tap
   targets, numbered steps, type scale) follow the public-domain USWDS guidance;
   no USWDS code, fonts, icons or branding are used. System fonts only. */
:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --text: #14211d;
  --muted: #4d5a55;
  --accent: #1f6f5c;
  --accent-strong: #175646;
  --accent-ink: #ffffff;
  --accent-tint: #e4f1ec;
  --border: #dfe4e1;
  --border-strong: #c3ccc8;
  --note: #eef1ef;
  --band: #ecf2ef;
  --warn: #8a4b12;
  --focus: #b4560f;
  --hi: #f8e27a;
  --hi-from: 55%;
  --initials-bg: var(--pine);
  --initials-ink: #ffffff;
  --pine: #0f3d33;
  --on-pine: #d5e6df;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --wide: 1120px;
  --read: 760px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111715;
    --surface: #18201d;
    --text: #e8eeeb;
    --muted: #a9b7b1;
    --accent: #5cc0a3;
    --accent-strong: #7ed3ba;
    --accent-ink: #0c1412;
    --accent-tint: #1b2e28;
    --border: #27322e;
    --border-strong: #3d4a45;
    --note: #1c2522;
    --band: #151d1a;
    --warn: #e0a56b;
    --focus: #f0a35e;
    --hi: rgba(248, 226, 122, 0.2);
    --hi-from: 6%;
    --initials-bg: var(--accent);
    --initials-ink: #0c1412;
    --pine: #0b2620;
    --on-pine: #cfe0d9;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.65 var(--sans);
  overflow-wrap: break-word; /* long URLs must not cause sideways scrolling on phones */
}
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }
strong { font-weight: 650; }

/* Containers: wide for chrome and landing pages, narrow for reading */
.wrap { max-width: var(--read); margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: var(--wide); }
.wrap.wide > :where(p, ul:not(.cards, .strip, .promises), ol:not(.strip), h2, h3, table, .answer, .note, .faq) { max-width: var(--read); }

/* Keyboard focus: a thick ring in a colour distinct from the brand green */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* Skip link: hidden until focused */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--surface); color: var(--text); padding: 12px 16px; border: 2px solid var(--focus); border-radius: 8px; font-weight: 600; }
.skip:focus { left: 16px; }

/* Header */
header.site { background: var(--surface); border-bottom: 1px solid var(--border); }
header.site .wrap { max-width: var(--wide); display: flex; align-items: center; justify-content: space-between; gap: 4px 24px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; font: 750 21px/1 var(--display); color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.logo:hover { color: var(--text); }
.logo span { color: var(--accent); }
.logo .mark { width: 30px; height: 30px; margin-right: 10px; flex: none; }
nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 16px; font-weight: 600; text-decoration: none; color: var(--text); border-bottom: 3px solid transparent; }
nav a:hover { color: var(--accent); border-bottom-color: var(--border-strong); }
nav a[aria-current="page"] { color: var(--accent-strong); border-bottom-color: var(--accent); }

/* Type */
main { padding: 44px 0 64px; }
h1, h2, h3 { font-family: var(--display); color: var(--text); }
h1 { font-size: clamp(32px, 5.6vw, 46px); font-weight: 750; line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 20px; }
h2 { font-size: 26px; font-weight: 700; line-height: 1.25; margin: 48px 0 12px; letter-spacing: -0.015em; }
h3 { font-size: 19px; font-weight: 700; margin: 26px 0 8px; }
.eyebrow { font: 600 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin: 0 0 12px; }
li { margin: 6px 0; }

/* Boxes */
.answer { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--accent); padding: 18px 20px; border-radius: 10px; margin: 0 0 24px; }
.note { background: var(--note); padding: 14px 16px; border-radius: 10px; font-size: 16px; color: var(--muted); }
.warn { color: var(--warn); font-weight: 700; }

/* Situation cards */
ul.cards { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
ul.cards li { margin: 0; }
ul.cards a { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 100%; min-height: 64px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; color: var(--text); text-decoration: none; font-size: 17px; line-height: 1.4; }
ul.cards a::after { content: "\2192"; flex: none; font-size: 20px; line-height: 1; color: var(--accent); }
ul.cards a:hover { border-color: var(--accent); background: var(--accent-tint); }

/* Tick list */
ul.check { list-style: none; padding-left: 0; }
ul.check li { padding-left: 32px; position: relative; margin: 10px 0; }
ul.check li::before { content: "\2713"; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border: 2px solid var(--accent); border-radius: 50%; font: 700 13px/18px var(--sans); text-align: center; color: var(--accent); }

/* Numbered steps */
ol.steps { list-style: none; counter-reset: step; padding-left: 0; }
ol.steps li { counter-increment: step; position: relative; padding-left: 46px; margin: 16px 0; min-height: 32px; }
ol.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 16px/32px var(--sans); text-align: center; }

/* FAQ */
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 4px; min-height: 48px; line-height: 1.4; }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: 0 4px 16px; }

/* Calls to action */
.cta { margin: 56px 0 0; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.cta h2 { margin-top: 0; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 10px 22px; border-radius: 10px; text-decoration: none; font-weight: 650; font-size: 16px; line-height: 1.3; text-align: center; border: 2px solid var(--border-strong); color: var(--text); background: var(--surface); }
.btn:hover { border-color: var(--accent); color: var(--accent-strong); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin: 28px 0; }
.tier { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; }
.tier.featured { border: 2px solid var(--accent); box-shadow: 0 10px 30px -18px rgba(15, 61, 51, 0.55); }
.tier h3 { margin: 0; }
.price { font: 750 36px/1.1 var(--display); letter-spacing: -0.02em; margin: 8px 0 12px; }
.tier ul { padding-left: 20px; margin: 0 0 18px; font-size: 16px; flex: 1; }

/* Tables */
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--note); font-family: var(--display); }

/* Full-width tinted bands (no horizontal overflow) */
.band { background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); padding: 44px 0 38px; margin: 56px 0; }
.band > h2:first-child { margin-top: 0; }

/* Home hero: headline on the left, a sample "case file" on the right */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; padding: 12px 0 8px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 58px); line-height: 1.05; letter-spacing: -0.035em; }
.hero .answer { background: none; border: 0; padding: 0; font-size: 19px; color: var(--muted); }
.hero .answer strong { color: var(--text); }
.hero .btns { margin-top: 8px; }
mark, .hero .answer p:first-child strong { background: linear-gradient(transparent var(--hi-from), var(--hi) var(--hi-from), var(--hi) 94%, transparent 94%); border-radius: 2px; color: inherit; padding: 0 2px; }

/* The case file (signature element) */
.casefile { display: block; position: relative; text-decoration: none; color: var(--text); padding: 26px 18px 18px 0; }
.casefile:hover { color: var(--text); text-decoration: none; }
.cf-tab { position: absolute; top: 0; left: 22px; z-index: 2; font: 600 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; background: var(--pine); color: var(--on-pine); padding: 9px 12px 8px; border-radius: 8px 8px 0 0; }
.cf-sheet { position: relative; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 4px 12px 12px 12px; padding: 22px 22px 18px; box-shadow: 10px 10px 0 -1px var(--surface), 10px 10px 0 0 var(--border-strong), 0 24px 40px -28px rgba(15, 61, 51, 0.6); transform: rotate(-1.2deg); transition: transform 0.25s ease; }
.casefile:hover .cf-sheet, .casefile:focus-visible .cf-sheet { transform: rotate(0deg); }
.cf-title { font: 700 18px/1.3 var(--display); margin: 0 0 4px; }
.cf-sub { font: 500 13px/1.4 var(--mono); color: var(--muted); margin: 0 0 14px; }
.cf-list { list-style: none; padding: 0; margin: 0 0 14px; font-size: 15px; }
.cf-list li { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 9px 0; border-bottom: 1px dashed var(--border-strong); }
.cf-list b { font: 600 13px/1.5 var(--mono); color: var(--accent-strong); white-space: nowrap; }
.cf-list b.cf-flag { color: var(--warn); }
.cf-quote { font-size: 15px; line-height: 1.55; margin: 0; color: var(--muted); }
.cf-more { display: inline-block; margin-top: 12px; font-weight: 650; font-size: 15px; color: var(--accent); }

/* Icon steps strip (a real sequence, so numbered) */
ol.strip { list-style: none; padding: 0; margin: 20px 0 6px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; counter-reset: s; }
ol.strip li { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; font-size: 16px; line-height: 1.5; counter-increment: s; }
ol.strip svg { width: 34px; height: 34px; display: block; margin-bottom: 12px; color: var(--accent); }
ol.strip strong { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 4px; }
ol.strip strong::before { content: counter(s) " · "; font-family: var(--mono); font-size: 14px; color: var(--accent); }

/* Privacy promises */
ul.promises { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px 26px; }
ul.promises li { margin: 0; padding-left: 34px; position: relative; font-size: 17px; }
ul.promises li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 6px; background: var(--accent-tint); border: 2px solid var(--accent); }
ul.promises li::after { content: ""; position: absolute; left: 8px; top: 7px; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* About card */
.about { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; max-width: var(--read); }
.about .initials { width: 56px; height: 56px; border-radius: 50%; background: var(--initials-bg); color: var(--initials-ink); font: 700 20px/56px var(--display); text-align: center; }
.about h2 { margin-top: 0; }
.about p:last-child { margin-bottom: 0; }

/* Last reviewed line on guides */
.updated { font: 500 13px/1.4 var(--mono); color: var(--muted); margin: -8px 0 20px; }

/* Sample packet */
.sample-flag { background: var(--note); border: 2px dashed var(--border-strong); border-radius: 10px; padding: 12px 16px; font-size: 16px; margin: 0 0 24px; }
.doc { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; padding: 24px; margin: 18px 0; }
.doc h2 { margin-top: 0; font-size: 21px; }
.doc .tag { display: inline-block; font: 600 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-strong); background: var(--accent-tint); border-radius: 6px; padding: 3px 8px; margin-bottom: 8px; }
.doc blockquote { margin: 12px 0 0; padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--bg); border-radius: 0; }
.flag { color: var(--warn); font-weight: 700; }

/* Footer: deep pine, wide */
footer { background: var(--pine); color: var(--on-pine); padding: 40px 0 44px; font-size: 15px; }
footer .wrap { max-width: var(--wide); }
footer a { display: inline-flex; align-items: center; min-height: 44px; color: #ffffff; margin-right: 18px; text-decoration-color: rgba(255, 255, 255, 0.4); }
footer a:hover { color: #ffffff; text-decoration-color: #ffffff; }
footer p { margin: 6px 0; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 8px 32px; margin-bottom: 22px; }
.foot-grid .logo, .foot-grid .logo:hover { color: #ffffff; margin: 0; font-size: 19px; text-decoration: none; }
.foot-grid .logo span { color: #9fdcc7; }
.foot-h { font: 600 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; margin: 12px 0 2px; color: #9fdcc7; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin: 0; }
.foot-grid li a { margin: 0; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 16px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .casefile { max-width: 480px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  main { padding-top: 28px; }
  header.site .wrap { padding-top: 8px; padding-bottom: 6px; }
  nav { margin: 0 -10px; width: calc(100% + 20px); }
  nav a { padding: 0 10px; font-size: 15px; white-space: nowrap; }
  .btns .btn { flex: 1 1 100%; }
  .cta { padding: 22px 16px; }
  .about { grid-template-columns: 1fr; }
  .band { padding: 32px 0 26px; }
  .foot-grid { grid-template-columns: 1fr; }
  .cf-sheet { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-sheet { transition: none; transform: none; }
}
