/* MavTools: "Warm and friendly" (plan 2.18).
   Layout: cream paper pages, soft rounded objects, one deep-green panel per page for domain watch.
   Colour: forest green does the work (links, buttons), terracotta is the friendly highlight (logo,
   stickers, numbers), status colours are separate and never used alone (always a mark and a word).
   Type: Fraunces (soft serif) for headings and big numbers, Figtree for reading, system mono for records. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fraunces.9fc3a8586b.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2192, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/figtree.4ba7d3d096.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2192, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FAF5EA;
  --surface: #FFFDF8;
  --surface-2: #F3EBDC;
  --ink: #1E2A23;
  --muted: #5A6157;
  --line: #E5DAC6;
  --line-strong: #D3C4A8;
  --accent: #1F5A43;
  --accent-hover: #164633;
  --accent-ink: #FFFBF2;
  --accent-soft: #E2ECE2;
  --clay: #B04F2A;
  --clay-ink: #FFF8F0;
  --clay-soft: #FBECE3;
  --pass: #2B7A3D;
  --pass-soft: #E3F0E1;
  --warn: #875800;
  --warn-soft: #FAEFD3;
  --fail: #B3261E;
  --fail-soft: #FBE4E0;
  --info: #2F5A7E;
  --info-soft: #E4ECF2;
  --code-bg: #F3EBDC;
  --deep: #1F4A38;
  --deep-2: #285A45;
  --deep-ink: #FBF3E4;
  --deep-muted: #C9D8CB;
  --shadow: 0 1px 0 rgba(70, 50, 20, .04), 0 14px 32px -18px rgba(70, 50, 20, .28);
  --radius: 20px;
  --radius-small: 12px;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --measure: 780px;
  --gutter: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161A16;
    --surface: #1E231E;
    --surface-2: #252B25;
    --ink: #F2EBDD;
    --muted: #B2AD9E;
    --line: #343B33;
    --line-strong: #4A5347;
    --accent: #8CCBA5;
    --accent-hover: #A6DABA;
    --accent-ink: #0F1F17;
    --accent-soft: #1D3327;
    --clay: #EB9A73;
    --clay-ink: #2A140A;
    --clay-soft: #3B261C;
    --pass: #74C98A;
    --pass-soft: #1A2E1F;
    --warn: #E2B34E;
    --warn-soft: #33290F;
    --fail: #FF8A80;
    --fail-soft: #3A1D1A;
    --info: #93BCE3;
    --info-soft: #1B2733;
    --code-bg: #252B25;
    --deep: #1D3A2D;
    --deep-2: #24483A;
    --deep-ink: #F2EBDD;
    --deep-muted: #B9CBBE;
    --shadow: 0 14px 32px -20px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #161A16;
  --surface: #1E231E;
  --surface-2: #252B25;
  --ink: #F2EBDD;
  --muted: #B2AD9E;
  --line: #343B33;
  --line-strong: #4A5347;
  --accent: #8CCBA5;
  --accent-hover: #A6DABA;
  --accent-ink: #0F1F17;
  --accent-soft: #1D3327;
  --clay: #EB9A73;
  --clay-ink: #2A140A;
  --clay-soft: #3B261C;
  --pass: #74C98A;
  --pass-soft: #1A2E1F;
  --warn: #E2B34E;
  --warn-soft: #33290F;
  --fail: #FF8A80;
  --fail-soft: #3A1D1A;
  --info: #93BCE3;
  --info-soft: #1B2733;
  --code-bg: #252B25;
  --deep: #1D3A2D;
  --deep-2: #24483A;
  --deep-ink: #F2EBDD;
  --deep-muted: #B9CBBE;
  --shadow: 0 14px 32px -20px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--text);
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "SOFT" 100;
  font-synthesis: none;
  line-height: 1.12;
  letter-spacing: -.012em;
  margin: 0 0 .45em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 1.5rem + 2.9vw, 3.5rem); line-height: 1.06; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.15rem); }
h3 { font-size: 1.3rem; }
h1 em, h2 em, .motto em { font-style: normal; color: var(--clay); }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
code, pre, .value { font-family: var(--mono); font-size: .88em; }
pre { white-space: pre-wrap; margin: 0; }
b, strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 34em; }
.eyebrow { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--clay); margin: 0 0 .6em; }
/* :where() keeps this reset at the weight of one class, so a list's own class
   (.tally, .chip-list, .passed-list…) sets its spacing, as it's written later. */
:where(ul).plain { list-style: none; margin: 0; padding: 0; }
.wrap { max-width: 1140px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: var(--measure); }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Sample banner (only on pages made for review) */
.sample-bar { background: var(--ink); color: var(--bg); font-size: .85rem; }
.sample-row { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; padding-block: 8px; }
.sample-bar a { color: var(--bg); font-weight: 700; margin-left: 14px; }
.sample-bar a:hover { color: var(--bg); }

/* Header */
.site-header { background: var(--bg); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; min-height: 76px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 650; font-variation-settings: "SOFT" 100; font-size: 1.4rem; letter-spacing: -.015em; }
.brand:hover { color: var(--ink); }
.logo-seal { fill: var(--clay); }
.logo-tick { fill: none; stroke: var(--clay-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 550; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.site-nav .nav-signin { border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 6px 16px; }
.site-nav .nav-signin:hover { border-color: var(--accent); text-decoration: none; }

/* Buttons and forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-light { background: var(--deep-ink); border-color: var(--deep-ink); color: var(--deep); }
.btn-light:hover { background: var(--surface); border-color: var(--surface); color: var(--deep); }
.btn-ghost { background: transparent; border-color: var(--deep-muted); color: var(--deep-ink); }
.btn-ghost:hover { border-color: var(--deep-ink); color: var(--deep-ink); }

.check-form {
  display: flex; align-items: center; gap: 6px; max-width: 560px; margin: 28px 0 10px; padding: 6px;
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 999px; box-shadow: var(--shadow);
}
.check-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.check-form input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 8px 0 20px;
  font: inherit; font-size: 1.08rem; color: var(--ink); background: transparent; border: 0; border-radius: 999px;
}
.check-form input::placeholder { color: var(--muted); opacity: .8; }
.check-form input:focus { outline: none; }
.check-form .btn { min-height: 52px; padding: 0 26px; flex: none; }
.check-form-small { margin: 10px 0 0; box-shadow: none; }
.check-form-small input, .check-form-small .btn { min-height: 44px; }

/* Stickers: a small tilted label on example content */
.sticker {
  position: absolute; top: -13px; left: 24px; margin: 0; padding: 4px 12px;
  background: var(--clay); color: var(--clay-ink); border-radius: 999px;
  font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  transform: rotate(-3deg);
}

/* Home: hero */
.hero { padding-block: 40px 72px; }
.hero-plain { padding-block: 64px 48px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: center; }
.hero h1 { max-width: 13em; }
.scribble { position: relative; white-space: nowrap; }
.scribble svg { position: absolute; left: -1%; bottom: -.16em; width: 102%; height: .34em; overflow: visible; }
.scribble path { fill: none; stroke: var(--clay); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero-note { font-size: .92rem; color: var(--muted); margin: 0 0 0 22px; }

.hero-card {
  position: relative; margin: 0; padding: 30px 26px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow);
  transform: rotate(1.5deg); transition: transform .3s ease;
}
.hero-card:hover { transform: rotate(0deg); }
.hero-card-domain { font-family: var(--display); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: 1.5rem; line-height: 1.2; margin: 0; }
.hero-card-meta { color: var(--muted); font-size: .88rem; margin: 2px 0 14px; }
.hero-card-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px dashed var(--line-strong); }
.hero-card-name { font-weight: 650; }
.hero-card-sum { color: var(--muted); font-size: .92rem; text-align: right; }
.hero-card-fix { margin-top: 12px; padding: 14px 16px; background: var(--surface-2); border-radius: 16px; }
.hero-card-fix p { margin: 0; }
.hero-card-fix-label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--clay); }
.hero-card-fix .hero-card-fix-title { font-weight: 650; line-height: 1.35; margin: 4px 0 6px; }
.hero-card-fix-how { font-size: .88rem; color: var(--accent); font-weight: 600; }

/* Sections */
.band { padding-block: 72px; }
.band-steps { padding-block: 0 24px; }
.band-alt { background: var(--surface-2); }
.band-watch { padding-block: 24px 0; }
.section-intro { max-width: 40em; margin-bottom: 36px; }
.section-intro p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.two-col { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }

.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; }
.how li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: start; }
.how-num {
  grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--clay-soft); color: var(--clay); font-family: var(--display); font-weight: 700; font-variation-settings: "SOFT" 100; font-size: 1.5rem; line-height: 1;
}
.how h3 { margin: 4px 0 6px; }
.how p { margin: 0; color: var(--muted); }

.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.area-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.area-icon .icon { width: 28px; height: 28px; }
.area h3 { margin-bottom: 4px; }
.area-q { color: var(--muted); margin-bottom: 14px; }
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { padding-left: 30px; position: relative; margin-bottom: 8px; }
ul.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: .2em; display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%; background: var(--pass-soft); color: var(--pass); font-size: .72rem; font-weight: 800;
}

.provider-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 12px; }
.provider-chips li { padding: 6px 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; font-size: .92rem; }
.example-fix { position: relative; padding: 32px 26px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }

.tool-groups { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 36px 48px; }
.tool-group:first-child { grid-row: span 2; }
.tool-group:first-child .tool-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.group-title { font-family: var(--text); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--clay); margin: 0 0 6px; }
.tool-list a { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.tool-list strong { font-weight: 650; }
.tool-list span { color: var(--muted); font-size: .93rem; line-height: 1.45; }
.tool-list a:hover strong { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }

/* Deep green panel: domain watch */
.deep-panel { background: var(--deep); color: var(--deep-ink); border-radius: 30px; padding: 48px; }
.deep-panel h2 { color: var(--deep-ink); }
.deep-panel p { color: var(--deep-muted); }
.deep-panel .eyebrow { color: var(--deep-muted); }
.deep-panel a:not(.btn) { color: var(--deep-ink); }
.plans { display: grid; gap: 10px; }
.plans li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "what price"; align-items: center; column-gap: 16px; padding: 16px 20px; background: var(--deep-2); border-radius: 18px; }
.plan-name { grid-area: name; font-weight: 700; color: var(--deep-ink); }
.plan-what { grid-area: what; color: var(--deep-muted); font-size: .93rem; }
.plan-price { grid-area: price; font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 1.9rem; line-height: 1; color: var(--deep-ink); font-variant-numeric: lining-nums; }
.plan-price small { font-family: var(--text); font-size: .85rem; font-weight: 500; color: var(--deep-muted); margin-left: 2px; }

/* Status marks and chips: never colour alone (symbol + word) */
.mark {
  display: inline-grid; place-items: center; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  font-family: var(--text); font-size: .74rem; font-weight: 800; line-height: 1; font-style: normal;
}
.mark-pass { background: var(--pass-soft); color: var(--pass); }
.mark-warn { background: var(--warn-soft); color: var(--warn); }
.mark-fail { background: var(--fail-soft); color: var(--fail); }
.mark-info { background: var(--info-soft); color: var(--info); font-family: Georgia, serif; font-style: italic; }
.mark-error { background: var(--surface-2); color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px 3px 3px; border-radius: 999px; font-size: .82rem; font-weight: 750; letter-spacing: .02em; width: fit-content; }
.chip .mark { width: 22px; height: 22px; color: var(--surface); }
.chip-pass { background: var(--pass-soft); color: var(--pass); }
.chip-pass .mark { background: var(--pass); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-warn .mark { background: var(--warn); }
.chip-fail { background: var(--fail-soft); color: var(--fail); }
.chip-fail .mark { background: var(--fail); }
.chip-info { background: var(--info-soft); color: var(--info); }
.chip-info .mark { background: var(--info); }
.chip-error { background: var(--surface-2); color: var(--muted); }
.chip-error .mark { background: var(--muted); }

/* Fix steps (report, tools, home example) */
.fix-title { font-weight: 750; margin: 0 0 14px; }
ol.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
ol.steps > li { counter-increment: step; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; align-items: start; }
ol.steps > li::before {
  content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: .95rem; line-height: 1;
}
ol.steps > li > * { grid-column: 2; }
ol.steps > li > span:first-child { padding-top: 1px; }
.field { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; min-width: 0; }
.field-name { font-size: .8rem; font-weight: 700; color: var(--muted); }
.copy-row { display: inline-flex; align-items: stretch; max-width: 100%; border: 1.5px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: var(--surface); }
.copy-row .value { padding: 7px 12px; background: var(--code-bg); overflow-wrap: anywhere; word-break: break-all; }
.copy-btn { flex: none; border: 0; border-left: 1.5px solid var(--line-strong); background: var(--surface); color: var(--accent); font: inherit; font-size: .85rem; font-weight: 750; padding: 0 14px; cursor: pointer; min-height: 40px; }
.copy-btn:hover { background: var(--accent-soft); }
.copy-btn.copied { color: var(--pass); }

/* Report */
.report-head { padding-block: 32px 8px; }
.report-domain { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem); margin-bottom: .2em; overflow-wrap: anywhere; }
.report-meta { color: var(--muted); margin: 0 0 4px; }
.tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 760px; margin: 24px 0 16px; }
.tally li { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--radius); }
.tally-num { font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 2.8rem; line-height: .95; font-variant-numeric: lining-nums tabular-nums; }
.tally-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; }
.tally-fail { background: var(--fail-soft); color: var(--fail); }
.tally-info { background: var(--info-soft); color: var(--info); }
.tally-pass { background: var(--pass-soft); color: var(--pass); }
.tally .mark { background: var(--surface); }
.who { max-width: 760px; padding: 14px 20px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.who-title { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--clay); margin: 0 0 8px; }
.providers { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px 20px; margin: 0; }
.providers dt { font-size: .8rem; color: var(--muted); }
.providers dd { margin: 0; font-weight: 650; }
.unsure { font-weight: 500; color: var(--muted); }

/* The report arrives in parts (see report.html): the page and its sections are
   flex columns, so "order" puts each part in place whatever order it arrives in. */
.report-page { display: flex; flex-direction: column; }
.report-page > .report-head { order: -1; }
.report-page:has(.report-final) > .report-pending, .report-page:has(.report-final) .section-pending { display: none; }
.report-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; margin-top: 40px; align-items: start; }
.report-index { position: sticky; top: 20px; grid-column: 1; grid-row: 1; }
.report-main { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; }
.section-email { order: 1; } .section-website { order: 2; } .section-domain { order: 3; }
.report-main > .next-steps { order: 10; } .report-main > .again { order: 11; }
.report-main:has(#email) #pending-email, .report-main:has(#website) #pending-website, .report-main:has(#domain) #pending-domain { display: none; }
.section-pending .section-sum { animation: pulse 1.6s ease-in-out infinite; }
.pending-bar { height: 120px; border-radius: 22px; border: 1.5px dashed var(--line-strong); background: var(--surface); opacity: .6; }
@keyframes pulse { 50% { opacity: .35; } }
.report-note-wrap { order: 0; }
.report-note { background: var(--info-soft); border-radius: var(--radius-small); padding: 10px 14px; margin: 16px 0 0; max-width: 760px; }
.index-title { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 8px 12px; }
.report-index a { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.report-index a .mark { grid-row: span 2; }
.report-index a:hover { background: var(--surface); }
.index-name { font-weight: 700; }
.index-sum { font-size: .85rem; color: var(--muted); line-height: 1.3; }
.report-main { min-width: 0; max-width: 780px; }
.report-section { margin-bottom: 44px; scroll-margin-top: 16px; }
.section-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 2rem; margin-bottom: 18px; }
.section-sum { font-family: var(--text); font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.finding { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--shadow); }
.finding-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.finding-title { font-family: var(--text); font-variation-settings: normal; font-size: 1.18rem; font-weight: 700; line-height: 1.35; letter-spacing: 0; margin: 0; }
.finding-why { color: var(--muted); }
.fix { background: var(--surface-2); border-radius: 18px; padding: 18px 20px; margin: 4px 0 0; }
.fix-foot { font-size: .85rem; color: var(--muted); margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.fix-foot p { margin: 0; }
.did-it-work { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.btn-mini { font: inherit; font-weight: 700; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 14px; cursor: pointer; }
.btn-mini:hover { border-color: var(--ink); }
.did-it-work.thanks { color: var(--pass); font-weight: 650; }
.steps li.step-warn { color: var(--fail); }
.steps li.step-warn::marker { content: "! "; font-weight: 800; }
.host-picker { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px 16px; margin: 0 0 16px; max-width: 760px; }
.host-picker p { margin: 0 0 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices a { display: inline-block; padding: 4px 14px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 650; }
.choices a[aria-current] { background: var(--ink); color: var(--paper, var(--surface)); border-color: var(--ink); }
.contact-note { background: var(--info-soft); border-radius: var(--radius-small); padding: 10px 14px; font-size: .95rem; margin: 12px 0 0; }
details.tech { margin-top: 12px; }
details summary { cursor: pointer; }
details.tech summary { color: var(--muted); font-size: .9rem; }
details.tech pre { background: var(--code-bg); border-radius: var(--radius-small); padding: 12px 14px; margin-top: 8px; font-size: .82rem; }
details.passed { padding: 12px 18px; border: 1.5px dashed var(--line-strong); border-radius: 18px; }
details.passed summary { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--pass); }
details.passed summary::-webkit-details-marker { display: none; }
details.passed summary { list-style: none; }
details.passed summary::after { content: "Show"; margin-left: auto; font-size: .85rem; font-weight: 600; color: var(--muted); }
details.passed[open] summary::after { content: "Hide"; }
.passed-list { margin-top: 10px; }
.passed-list li { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: .95rem; border-top: 1px dashed var(--line); }

.next-steps { margin-top: 8px; padding: 36px; }
.next-steps h2 { margin-bottom: .3em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.again { margin-top: 32px; padding: 0 4px; }
.again-title { font-weight: 700; margin: 0; }

/* Tool pages */
.tool-head { padding-block: 32px 8px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.tool-result { margin: 20px 0 48px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.result-top { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.result-summary { font-size: 1.18rem; font-weight: 650; line-height: 1.4; margin: 0; }
.h-small { font-family: var(--text); font-variation-settings: normal; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 24px 0 10px; }
.tree li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.tree li:last-child { border-bottom: 0; }
.tree code { font-size: .88rem; }
.tree .depth-1 { padding-left: 26px; }
.tree .depth-2 { padding-left: 52px; }
.tree .depth-3 { padding-left: 78px; }
.tree .depth-4 { padding-left: 104px; }
.tree-note { font-size: .88rem; color: var(--muted); }
.pill { font-size: .78rem; font-weight: 650; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.result-foot { font-size: .92rem; color: var(--muted); margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.result-foot p { margin: 0 0 6px; }
.inline-form { margin: 0; }
.btn-link { font: inherit; font-weight: 650; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.btn-link:hover { color: var(--accent-hover); }
.tool-result .finding { box-shadow: none; margin-top: 16px; }
.prose { max-width: 40em; }
.prose h2 { margin-top: 1.7em; font-size: 1.65rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--clay); }
pre.code { background: var(--code-bg); border-radius: var(--radius-small); padding: 14px 16px; font-size: .85rem; margin-bottom: 1em; }
.faq { margin-top: 56px; max-width: 40em; }
.faq dl { margin: 0; }
.qa { padding: 18px 0; border-top: 1px solid var(--line); }
.qa dt { font-weight: 700; font-size: 1.06rem; }
.qa dd { margin: 6px 0 0; }
.related { margin-top: 56px; }
.related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.related-list a { position: relative; display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 16px 44px 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; color: var(--ink); text-decoration: none; }
.related-list span { color: var(--muted); font-size: .9rem; }
.related-list .icon-arrow { position: absolute; right: 16px; top: 18px; width: 18px; height: 18px; color: var(--accent); transition: transform .15s; }
.related-list a:hover { border-color: var(--accent); }
.related-list a:hover .icon-arrow { transform: translateX(3px); }

/* Footer */
.site-footer { margin-top: 88px; padding-block: 56px 64px; background: var(--surface-2); }
.motto { font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 36px; }
.footer-grid { display: grid; gap: 28px 40px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); padding-top: 28px; border-top: 1px solid var(--line-strong); }
.footer-about p { color: var(--muted); max-width: 26em; }
.brand-small { font-size: 1.15rem; margin-bottom: 10px; }
.brand-small .logo { width: 24px; height: 24px; }
.footer-head { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 10px; }
.site-footer li { margin-bottom: 6px; }
.site-footer nav a { color: var(--ink); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); text-decoration: underline; }

/* Tool forms, notices and tables (milestone M1) */
.tool-form { margin: 0; }
.form-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 12px 0 0; font-size: .95rem; }
.form-extra input { flex: 1 1 220px; min-width: 0; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; }
.form-row label { font-weight: 600; font-size: .95rem; }
.form-extra input, .form-row input, .form-row textarea, .form-row select {
  font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-small); padding: 10px 12px; min-height: 44px; width: 100%; max-width: 100%;
}
.form-row textarea { min-height: 64px; resize: vertical; font-family: var(--mono, ui-monospace, monospace); font-size: .9rem; }
.form-extra input:focus, .form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.gen-form { margin: 8px 0 32px; }
.gen-form fieldset { margin: 0 0 18px; padding: 18px 20px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.gen-form legend { padding: 0 6px; font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 1.15rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 18px; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; cursor: pointer; line-height: 1.4; }
.choice input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.gen-more { margin: 0 0 18px; padding: 14px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.gen-more summary { cursor: pointer; font-weight: 650; }
.gen-count, .gen-stage { display: flex; gap: 10px; align-items: baseline; margin: 14px 0 0; }
.gen-stage { display: block; }
.notice { margin: 16px 0; padding: 12px 16px; background: var(--info-soft); border-radius: var(--radius-small); }
.notice p { margin: 0; }
.notice-error { background: var(--fail-soft); }
.result-notice { margin: 4px 0 0; font-size: .95rem; color: var(--muted); }
.providers-inline { margin: 16px 0 4px; padding: 12px 16px; background: var(--surface-2); border-radius: var(--radius-small); }
.table-wrap { overflow-x: auto; margin: 0 0 8px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px dashed var(--line); }
.data-table thead th { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.data-table tbody th { font-weight: 600; }
.data-table code { font-size: .86rem; overflow-wrap: anywhere; }
.cell-problem { display: block; margin-top: 4px; font-size: .85rem; font-weight: 600; color: var(--fail); }
.addr { display: block; overflow-wrap: anywhere; }
.key-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.chip-list li { padding: 5px 12px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; font-size: .9rem; }
.chip-list a { color: var(--ink); text-decoration: none; }
.chip-list a:hover { color: var(--accent); text-decoration: underline; }
.nospf { margin: 0 0 40px; }
.soon { display: inline-block; margin: 0 0 6px; padding: 2px 10px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--clay); background: var(--clay-soft); border-radius: 999px; }
.soon-tools { margin: 40px 0 64px; }
a.ext::after { content: " ↗"; font-size: .85em; }
details.tech-inline { margin-left: auto; font-size: .85rem; }
details.tech-inline summary { cursor: pointer; color: var(--muted); }
.passed-list li { flex-wrap: wrap; }

/* Tablets */
@media (max-width: 920px) {
  .hero-grid, .two-col { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-card { max-width: 460px; transform: rotate(1deg); }
  .how, .areas { grid-template-columns: minmax(0, 1fr); }
  .how { gap: 24px; padding: 26px; }
  .tool-groups { grid-template-columns: minmax(0, 1fr); }
  .tool-group:first-child { grid-row: auto; }
  .report-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 28px; }
  .report-index { position: static; grid-column: 1; grid-row: 1; }
  .report-main { grid-column: 1; grid-row: 2; }
  .report-index ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
  .report-index a { background: var(--surface); border: 1px solid var(--line); }
  .index-title { margin-left: 0; }
  .deep-panel { padding: 32px 26px; border-radius: 26px; }
}

/* Phones */
@media (max-width: 600px) {
  body { font-size: 16px; }
  :root { --gutter: 16px; }
  .header-row { min-height: 64px; }
  .site-nav { gap: 2px 16px; }
  .hero { padding-block: 24px 48px; }
  .check-form { flex-direction: column; align-items: stretch; border-radius: 24px; padding: 8px; }
  .check-form input { padding: 0 14px; }
  .check-form .btn { width: 100%; }
  .hero-note { margin-left: 4px; }
  .band { padding-block: 52px; }
  .tool-group:first-child .tool-list { grid-template-columns: minmax(0, 1fr); }
  .tally { gap: 8px; }
  .tally li { padding: 14px 12px; }
  .tally-num { font-size: 2.1rem; }
  .tally-label { font-size: .82rem; gap: 6px; }
  .tally-label .mark { display: none; }
  .finding { padding: 18px; }
  .fix { padding: 16px; }
  .next-steps { padding: 28px 22px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-about { grid-column: 1 / -1; }
  .tool-result { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Share links */
.inline-form { display: inline; margin: 0; }
.link-button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.shared-box { max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px 16px; margin: 8px 0 16px; }
.shared-new { border: 2px solid var(--pass); background: var(--pass-soft); }
.shared-title { font-weight: 700; margin: 0 0 8px; }
.shared-row { margin: 0 0 10px; }
.shared-actions { margin: 0 0 6px; }
.shared-note { font-size: .85rem; color: var(--muted); margin: 0; }
.btn-small { padding: 6px 16px; font-size: .95rem; }

/* Guides */
.guide-check { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 8px 0 28px; }
.guide-check-title { font-weight: 650; margin: 0 0 10px; }
.prose.guide .fix { margin: 12px 0 16px; }
