/*
 * AddyAlly look (Step 7). Colors from the logo's navy (#002268), every text color checked at 4.5:1
 * or more against its background (tests/report.test.ts). Fonts are hosted here, never fetched
 * from Google, so no visitor details leave our site.
 */
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/lexend-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/lexend-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --navy: #002268;
  --ink: #17203a;
  --slate: #4a5570;
  --paper: #ffffff;
  --mist: #eef2f8;
  --line: #c8d1e1;
  --control: #5c6a88;
  --good: #11683a; --good-tint: #e3f2e8;
  --needs: #865400; --needs-tint: #fcf0d9;
  --risk: #a94400; --risk-tint: #fce6d9;
  --high: #b3261e; --high-tint: #fadedb;
  --head: "Lexend", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --measure: 44rem;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.6 var(--body); }
img { max-width: 100%; height: auto; }

.skip { position: absolute; left: 8px; top: -100px; z-index: 10; background: var(--paper); color: var(--navy); padding: 10px 14px; border: 2px solid var(--navy); border-radius: 6px; font-weight: 700; }
.skip:focus { top: 8px; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
main a:not(.button) { overflow-wrap: anywhere; }
.shot-full { font-size: 1rem; margin: 6px 0 0; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--head); color: var(--navy); font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(1.65rem, 1.2rem + 2.2vw, 2.5rem); line-height: 1.18; margin: 0 0 0.6em; }
h2 { font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.7rem); line-height: 1.25; margin: 0 0 0.5em; }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 0.35em; }
p { margin: 0 0 1em; }
.quiet { color: var(--slate); }
.small { font-size: 1rem; }

/* Page frame */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-block; line-height: 0; }
.logo img { width: 156px; height: auto; }
.wrap { max-width: 68rem; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: var(--measure); }
main { display: block; }
.section { padding: 40px 0; border-top: 1px solid var(--line); }
.narrow > .section:first-child, .tech > .section:first-child, .wrap > .narrow.section { border-top: 0; }
.foot { border-top: 1px solid var(--line); padding: 28px 0 48px; font-size: 1rem; color: var(--slate); }
.foot p { max-width: var(--measure); }

/* The top of the report: the headline sentence, and where the score sits */
.hero { background: var(--mist); padding: 32px 0 36px; }
.hero .wrap { display: grid; gap: 28px; }
.for { font-size: 1.05rem; color: var(--slate); margin-bottom: 0.75em; }
.for strong { color: var(--ink); }
.headline { max-width: 30ch; }
.summary { font-size: 1.15rem; max-width: 40ch; margin: 0; }
.scorecard { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 18px; align-self: start; }
.scorecard h2 { font-size: 1.05rem; margin: 0 0 6px; color: var(--slate); font-weight: 500; letter-spacing: 0; }
.score { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 4px; }
.score-number { font-family: var(--head); font-weight: 700; font-size: 3.4rem; line-height: 1; color: var(--navy); }
.score-of { color: var(--slate); }
.grade-word { font-family: var(--head); font-weight: 600; font-size: 1.35rem; margin: 0 0 6px; }
.grade-Good { color: var(--good); }
.grade-Needs-work { color: var(--needs); }
.grade-At-risk { color: var(--risk); }
.grade-High-risk { color: var(--high); }
.scale { margin: 18px 0 4px; }
.scale svg { display: block; width: 100%; height: 30px; overflow: visible; }
.scale .z { stroke: var(--control); stroke-width: 1; }
.scale .z-high { fill: var(--high-tint); }
.scale .z-risk { fill: var(--risk-tint); }
.scale .z-needs { fill: var(--needs-tint); }
.scale .z-good { fill: var(--good-tint); }
.scale .pin { fill: var(--navy); stroke: var(--paper); stroke-width: 2; }
.scale-labels { display: flex; font-size: 0.85rem; line-height: 1.25; color: var(--slate); margin-top: 6px; }
.scale-labels span { padding-right: 4px; }
.scale-labels span:nth-child(1) { width: 50%; }
.scale-labels span:nth-child(2) { width: 20%; }
.scale-labels span:nth-child(3) { width: 20%; }
.scale-labels span:nth-child(4) { width: 10%; padding-right: 0; text-align: right; white-space: nowrap; }
.grade-text { margin: 10px 0 0; font-size: 1rem; }
.pending { display: flex; gap: 12px; align-items: flex-start; }
.pending p { margin: 0; }
.spinner { flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--navy); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Problems: a calm list, each one a short story about patients */
.problems { list-style: none; margin: 8px 0 0; padding: 0; }
.problem { padding: 22px 0; border-top: 1px solid var(--line); }
.problem:first-child { border-top: 0; padding-top: 6px; }
.problem-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.problem-head h3 { margin: 0; }
.effort { display: inline-block; font-size: 0.95rem; font-weight: 700; color: var(--navy); border: 1.5px solid var(--navy); border-radius: 999px; padding: 1px 12px; white-space: nowrap; }
.effort-rebuild { border-style: dashed; }
.who { margin: 8px 0 6px; color: var(--slate); }
.where { margin: 0 0 8px; font-size: 1rem; color: var(--slate); }

details { margin: 6px 0 0; }
summary { cursor: pointer; color: var(--navy); font-weight: 700; width: fit-content; padding: 6px 0; min-height: 44px; display: flex; align-items: center; gap: 8px; }
summary::-webkit-details-marker { display: none; }
summary { list-style: none; }
summary::before { content: ""; flex: none; width: 0.55em; height: 0.55em; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s; }
details[open] > summary::before { transform: rotate(45deg); }
.shot { margin: 10px 0 0; }
.shot img { display: block; border: 1px solid var(--line); border-radius: 8px; width: 100%; max-width: 640px; }
.shot figcaption { font-size: 1rem; color: var(--slate); margin-top: 8px; max-width: 640px; }
.spots { margin: 4px 0 0; padding-left: 1.6em; }
.spots li.this { color: var(--ink); font-weight: 700; }

/* Forms and notices */
.items { list-style: none; margin: 0; padding: 0; }
.item { padding: 18px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; padding-top: 4px; }
.item h3 { display: flex; gap: 10px; align-items: baseline; }
.mark { flex: none; display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; font-size: 0.8em; position: relative; top: 0.1em; }
.mark svg { width: 0.9em; height: 0.9em; }
.mark-yes { background: var(--good-tint); color: var(--good); }
.mark-no { background: var(--high-tint); color: var(--high); }
.mark-maybe { background: var(--needs-tint); color: var(--needs); }
.result { font-family: var(--body); font-weight: 700; font-size: 1rem; }
.result-yes { color: var(--good); }
.result-no { color: var(--high); }
.result-maybe { color: var(--needs); }
.docs { margin: 6px 0 8px; padding-left: 1.2em; }
.docs li { margin: 2px 0; overflow-wrap: anywhere; }

/* The deadline box */
.deadline { background: var(--mist); border-radius: 14px; padding: 24px 20px; }
.deadline-date { font-family: var(--head); font-size: 1.3rem; font-weight: 600; color: var(--navy); margin: 0 0 12px; }
.taps { margin: 18px 0 18px; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.taps fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.taps legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--control); border-radius: 999px; background: var(--paper); cursor: pointer; }
.choice input:checked + label { background: var(--navy); border-color: var(--navy); color: var(--paper); font-weight: 700; }
.choice input:focus-visible + label { outline: 3px solid var(--navy); outline-offset: 3px; }
.taps-note { font-size: 1rem; color: var(--slate); margin: 0; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border-radius: 10px; font: 700 1.05rem/1.2 var(--body); text-decoration: none; cursor: pointer; border: 2px solid var(--navy); }
.button-main { background: var(--navy); color: var(--paper); }
.button-main:hover { background: #001a50; }
.button-plain { background: var(--paper); color: var(--navy); }
.button-plain:hover { background: var(--mist); }

/* The offers after the free check-up */
.offers { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.offer { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 20px; }
.offer-report { border: 2px solid var(--navy); background: var(--mist); }
.offer-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; }
.offer-head h3 { margin: 0; }
.offer .price, .buy .price { font-family: var(--head); font-weight: 600; color: var(--navy); margin: 0; }
.offer > p { margin: 8px 0 12px; }
.quote { font-weight: 700; }
/* The options near the top of the results page */
.help { padding: 30px 0 6px; }
.help h2 { margin: 0 0 14px; }
.help-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.help-item { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 18px; background: var(--paper); display: flex; flex-direction: column; }
.help-item h3 { margin: 0; }
.help-item .price { font-family: var(--head); font-weight: 600; color: var(--navy); margin: 2px 0 6px; }
.help-item p { margin: 0; }
.help-item .help-act { margin-top: auto; padding-top: 14px; }
.help-main { border: 2px solid var(--navy); background: var(--mist); }
.help-more { margin: 14px 0 0; }
@media (min-width: 40rem) { .help-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .help-list { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }
.unlock { border: 2px solid var(--navy); background: var(--mist); border-radius: 14px; padding: 16px 20px 18px; margin: 6px 0 0; }
.unlock p { margin: 0 0 12px; }
.checklist .item { padding: 8px 0; border-top: 0; }
.check { display: flex; gap: 10px; align-items: baseline; margin: 0; font-weight: 700; }
.buy { border: 2px solid var(--navy); background: var(--mist); border-radius: 14px; padding: 18px 20px; margin: 20px 0 26px; }
.buy .price { font-size: 1.8rem; }
.includes, .covers { padding-left: 1.3em; }
.includes li, .covers li { margin: 4px 0; }

.steps { margin: 0; padding-left: 1.4em; }
.steps > li { padding-left: 6px; margin: 0 0 22px; }
.steps > li::marker { font-family: var(--head); font-weight: 600; color: var(--navy); }
.steps .button { margin-top: 6px; }
.link-text { font-size: 1rem; overflow-wrap: anywhere; color: var(--slate); }

.fine { font-size: 1rem; color: var(--slate); }

/* The technical page */
.tech h2 { margin-top: 0; }
code, pre { font-family: var(--mono); font-size: 0.92rem; }
code { background: var(--mist); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
pre { background: #f5f7fb; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin: 6px 0 14px; }
pre code { background: none; padding: 0; }
.table-box { overflow-x: auto; margin: 10px 0 18px; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
thead th { background: var(--mist); font-weight: 700; }
tbody tr:last-child > * { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 8px 0 14px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.sample-where { font-size: 1rem; margin: 0; }

/* "What we found": the counts, in large type */
.glance-wrap:empty { display: none; }
.glance h2 { font-size: 1.05rem; margin: 0 0 10px; color: var(--slate); font-weight: 500; letter-spacing: 0; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 16px; }
.tile .big { display: block; font-family: var(--head); font-weight: 700; font-size: 2.3rem; line-height: 1.05; color: var(--navy); }
.tile .what { display: block; font-size: 1rem; margin-top: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The check-up screens (Step 9): the address box, scanning, and the email screen */
.hero-home { padding: 36px 0 40px; }
.home-grid { display: grid; gap: 24px; }
.lead { font-size: 1.2rem; max-width: 36ch; margin: 0; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px 20px 18px; }
.card .fine { margin: 12px 0 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.field label, .field-head { font-weight: 700; color: var(--ink); }
.field-head { margin: 0 0 12px; font-size: 1.15rem; }
.hint { color: var(--slate); font-size: 1rem; }
.field input { font: inherit; width: 100%; min-height: 52px; padding: 10px 14px; border: 2px solid var(--control); border-radius: 10px; background: var(--paper); color: var(--ink); }
.field input:focus { outline: 3px solid var(--navy); outline-offset: 2px; border-color: var(--navy); }
.field input[aria-invalid="true"] { border-color: var(--high); }
.error { display: flex; gap: 8px; align-items: flex-start; color: var(--high); font-weight: 700; font-size: 1rem; }
.error svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.robot { margin: 0 0 16px; min-height: 65px; }
.robot p { margin: 8px 0 0; }
.button-wide { width: 100%; }
.trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.get { padding-left: 1.3em; margin: 0; }
.get li { margin: 6px 0; }
.visit h1:focus { outline: none; }
.small-head { font-size: 1.05rem; color: var(--slate); font-weight: 500; letter-spacing: 0; margin: 28px 0 10px; }
.progress { list-style: none; margin: 0; padding: 0; }
.progress li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.progress li:first-child { border-top: 0; }
.progress svg { width: 20px; height: 20px; flex: none; margin-top: 4px; color: var(--good); }
.progress .now { font-weight: 700; }
.spinner { width: 20px; height: 20px; flex: none; margin-top: 4px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--navy); }
@media (prefers-reduced-motion: no-preference) {
  .spinner { animation: spin 1s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
}
.bigcount { margin: 18px 0 6px; }
.bigcount .big { display: block; font-family: var(--head); font-weight: 700; font-size: 3.2rem; line-height: 1; color: var(--navy); }
.bigcount .what { display: block; font-size: 1.15rem; margin-top: 6px; }
.gate { margin: 24px 0; }
.choices-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.sent { font-size: 1.05rem; color: var(--slate); max-width: 44ch; margin: 12px 0 0; }
.sent:empty { display: none; }

/* Sung's dashboard (Step 10) */
.admin h1 { margin-bottom: 0.4em; }
.admin section { margin: 32px 0 0; }
.admin table td, .admin table th { vertical-align: top; }
.row-failed td { background: var(--high-tint); }
.bad { color: var(--high); font-weight: 700; }
.use { margin: 4px 0; }
.use-warn { color: var(--risk); font-weight: 700; }
.search { max-width: 36rem; }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 16px 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.actions { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.actions form { margin: 0; }
.actions p { margin: 4px 0 0; font-size: 1rem; }
.log { padding-left: 1.3em; font-size: 1rem; }
.log li { margin: 4px 0; overflow-wrap: anywhere; }
.notice { background: var(--good-tint); border-left: 4px solid var(--good); padding: 10px 14px; }

@media (min-width: 52rem) {
  :root { --gutter: 32px; }
  .hero { padding: 48px 0 52px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 21rem; align-items: start; gap: 36px 48px; }
  .hero-home { padding: 56px 0 60px; }
  .hero .wrap.home-grid { grid-template-columns: minmax(0, 1fr) 26rem; align-items: center; }
  .glance-wrap { grid-column: 1 / -1; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .section { padding: 52px 0; }
  .deadline { padding: 30px 32px; }
}

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

@media print {
  .top, .skip, .taps, .steps .button, summary::before, .help { display: none; }
  details > *:not(summary) { display: block; }
  .hero, .deadline { background: none; }
}
