/* The platform's home page (www). Colours from the brand sheet: cream paper, navy and blue
   lettering, a pale-blue wash, the beak's orange for small accents. The magpies are drawn on the
   same cream, so they sit on the page without edges; panels behind them stay cream and are drawn
   with a border, never a fill. */
:root {
  --paper: #fcfbf2;
  --navy: #0b2a50;
  --blue: #0078e0;
  /* Buttons: a shade deeper than the wordmark's blue, so white text on them passes contrast. */
  --button: #006fd6;
  --button-hover: #005cb3;
  --wash: #cdefff;
  --wash-soft: #e9f6ff;
  --beak: #fab21d;
  --ink-2: #3b4f6b;
  --line: #e6e3d3;
  --font: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--navy); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--button); }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--beak); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0 0 14px; color: var(--ink-2); }
ul, ol { margin: 0; padding: 0; list-style: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }

/* ── Header ── */
.top { max-width: var(--max); margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 28px; }
.logo img { width: 176px; }
.top nav { display: flex; gap: 4px; margin-left: auto; }
.top nav a { color: var(--navy); font-weight: 600; text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.top nav a:hover { background: var(--wash-soft); }

/* ── Buttons ── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 26px; border-radius: 999px; background: var(--button); color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.btn:hover { background: var(--button-hover); }
.btn--quiet { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn--quiet:hover { background: var(--wash-soft); }
.btn--small { min-height: 42px; padding: 8px 18px; font-size: 0.95rem; }

main { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.sub { font-size: 1.15rem; margin-top: 10px; }

/* ── Hero: the magpie, large, beside the tagline ── */
.hero { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 24px; padding-top: 28px; }
.kicker { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: var(--wash-soft); color: var(--navy); font-weight: 700; font-size: 0.9rem; }
.hero h1 { font-size: clamp(2.9rem, 7vw, 5.4rem); letter-spacing: -0.035em; line-height: 0.98; }
/* The brand sheet's hand-drawn blue underline. */
.swoosh { color: var(--blue); padding-bottom: 0.12em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M4 13 C 70 5, 160 4, 296 9' fill='none' stroke='%230078e0' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left bottom / 100% 0.22em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { margin-top: 22px; font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--navy); max-width: 32rem; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pills li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); background: #fff; font-weight: 600; font-size: 0.95rem; }
.pills li::before { content: ''; width: 20px; height: 20px; border-radius: 50%; background: var(--button) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.hero-art img { width: 100%; max-width: 640px; margin-left: auto; }

/* ── How it works ── */
.how { text-align: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; text-align: left; }
.step { position: relative; padding: 0 26px 28px; border-radius: 28px; box-shadow: inset 0 0 0 2px var(--wash); }
.step-art { width: 100%; max-width: 260px; aspect-ratio: 1 / 0.82; object-fit: contain; margin: 10px auto 6px; }
.num { position: absolute; top: 18px; left: 18px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; }
.step h3 { margin-bottom: 8px; }

/* ── Looked after ── */
.looked-after h2, .looked-after .sub { max-width: 40rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.grid li { padding: 26px 24px 18px; border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgb(11 42 80 / 0.05), inset 0 0 0 1px var(--line); }
.grid h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 1.15rem; }
.grid h3::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--beak); flex: none; }

/* ── Moving in ── */
.moving { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; margin: 24px 0; padding: 48px; border-radius: 36px; box-shadow: inset 0 0 0 3px var(--wash); }
.moving h2 { margin-bottom: 18px; }
.moving-art { width: 100%; max-width: 360px; justify-self: center; }

/* ── Questions ── */
.questions { max-width: 46rem; }
.questions h2 { margin-bottom: 24px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-weight: 700; font-size: 1.15rem; color: var(--navy); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--wash-soft); color: var(--button); font-size: 1.3rem; font-weight: 700; }
details[open] summary::after { content: '−'; }
details p { margin: -6px 0 20px; max-width: 40rem; }

/* ── Final call ── */
.final { text-align: center; margin: 24px 0 72px; padding: 64px 24px; border-radius: 36px; background: var(--navy); }
.final h2 { color: #fff; }
.final p { color: #c9d8ea; font-size: 1.15rem; margin: 14px auto 0; max-width: 34rem; }
.final .actions { justify-content: center; }
.final .btn { background: #fff; color: var(--navy); }
.final .btn:hover { background: var(--wash); }

/* ── Footer ── */
footer { max-width: var(--max); margin: 0 auto; padding: 32px 24px 40px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 28px; border-top: 1px solid var(--line); }
footer .logo img { width: 140px; }
footer p { margin: 0; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer nav a { color: var(--ink-2); }
footer .small { grid-column: 1 / -1; font-size: 0.9rem; }

/* ── Privacy, and any page of reading ── */
.policy { max-width: 44rem; margin: 0 auto; padding: 24px 0 72px; }
.policy h1 { font-size: clamp(2.6rem, 6vw, 3.6rem); margin-bottom: 18px; }
.policy .lead { font-size: 1.25rem; margin: 0 0 8px; }
.policy h2 { font-size: 1.6rem; margin: 44px 0 14px; scroll-margin-top: 16px; }
.policy ul { margin: 0 0 14px; }
.policy li { position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--ink-2); }
.policy li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--beak); }
.policy b { color: var(--navy); }

/* ── Contact ── */
.contact { max-width: 36rem; margin: 0 auto; padding: 24px 0 72px; }
.contact h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); margin-bottom: 14px; }
.contact .lead { margin: 0 0 24px; }
.contact form { display: grid; gap: 6px; }
.contact label { font-weight: 700; margin-top: 12px; }
.contact label span { font-weight: 400; color: var(--ink-2); }
.contact input, .contact textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); font: inherit; }
.contact input:focus-visible, .contact textarea:focus-visible, .btn:focus-visible { outline: 3px solid var(--beak); outline-offset: 2px; }
.contact button { border: 0; cursor: pointer; font-family: inherit; }
.contact .small { margin-top: 18px; font-size: 0.95rem; }
.problem { padding: 12px 16px; border-radius: 12px; background: #fff4dc; box-shadow: inset 0 0 0 1.5px var(--beak); color: var(--navy); font-weight: 600; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Site health report ── */
.report { max-width: 46rem; margin: 0 auto; padding: 24px 0 72px; }
.report h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); margin-bottom: 14px; }
.report .lead { margin: 0 0 8px; }
.report .for { font-weight: 700; color: var(--navy); }
.report section { padding: 0; margin: 40px 0 0; }
.report h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: 12px; scroll-margin-top: 16px; }
.report h3 { font-size: 1.1rem; margin-bottom: 4px; }
.report h3 span { font-weight: 500; font-size: 0.95rem; color: var(--ink-2); }
.report h3 span::before { content: '· '; }
.report code { font-size: 0.9em; word-break: break-all; }
.report .muted, .report .note { color: var(--ink-2); font-size: 0.95rem; }
.report .glance { padding: 22px 24px; border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgb(11 42 80 / 0.05), inset 0 0 0 1px var(--line); }
.glance h2 { font-size: 1.3rem; }
.glance ul { display: grid; gap: 10px; }
.glance li { position: relative; padding-left: 26px; color: var(--navy); font-weight: 600; }
.glance li::before { content: ''; position: absolute; left: 2px; top: 0.4em; width: 12px; height: 12px; border-radius: 50%; background: var(--wash); }
.glance li.tone-bad::before { background: #d64545; }
.glance li.tone-warn::before { background: var(--beak); }
.glance li.tone-ok::before { background: #3d9a6a; }
.glance li.tone-info::before { background: var(--button); }
.glance a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
.dead { display: grid; gap: 16px; margin-top: 16px; }
.dead-host { padding: 16px 20px; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--line); background: #fff; }
.dead-host p { margin: 6px 0; }
.paths { margin: 6px 0 0; display: grid; gap: 4px; }
.paths li, .report ul.plain li { color: var(--ink-2); overflow-wrap: anywhere; }
.paths li.more { font-style: italic; }
.report section:not(.glance) > ul:not(.paths):not(.plain) li { position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--ink-2); }
.report section:not(.glance) > ul:not(.paths):not(.plain) li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--beak); }
.report b { color: var(--navy); }
.sample { display: grid; gap: 2px; padding: 14px 18px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.sample span { font-size: 0.85rem; color: var(--ink-2); }
.sample b { color: #1a0dab; font-weight: 500; font-size: 1.1rem; }
.sample i { color: var(--ink-2); }
.report details summary { font-size: 1rem; padding: 12px 44px 12px 0; }
.report ul.plain { columns: 2; column-gap: 24px; margin: 0 0 12px; }
.report .report-cta { margin: 48px 0 24px; padding: 48px 24px; }
.report .small { margin-top: 18px; font-size: 0.9rem; }

@media (max-width: 960px) {
  .top nav { display: none; }
  .signin { margin-left: auto; }
  .steps, .grid { grid-template-columns: 1fr 1fr; }
  .steps .step:last-child { grid-column: 1 / -1; max-width: 50%; justify-self: center; }
}
@media (max-width: 720px) {
  section { padding: 48px 0; }
  .hero { grid-template-columns: 1fr; padding-top: 8px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 420px; margin: 0 auto; }
  .steps, .grid { grid-template-columns: 1fr; }
  .steps .step:last-child { max-width: none; }
  .moving { grid-template-columns: 1fr; padding: 28px 22px; }
  .moving-art { order: -1; max-width: 260px; }
  .final { padding: 44px 20px; border-radius: 28px; }
  footer { grid-template-columns: 1fr; }
  .logo img { width: 150px; }
}
