/* NeuralClean — public site. The apps' own palette (docs/DESIGN-SYSTEM.md,
   "Aurora"): emerald for the brand, ink for text, the icons' indigo, and a
   signature blue. Light by default; dark follows the phone, or the switch. */
:root {
  --bg: #F6F8FA;
  --bg-band: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --ink: #0F172A;
  --ink-soft: #475569;
  --ink-faint: #64748B;
  --rule: #E2E8F0;
  --rule-strong: #0F172A;
  --brand: #059669;
  --brand-hover: #047857;
  --brand-text: #047857;
  --brand-wash: #ECFDF5;
  --brand-edge: #A7F3D0;
  --indigo: #4F46E5;
  --signature: #1E3A8A;
  --night: #064E3B;
  --night-text: #D1FAE5;
  --header: rgba(246, 248, 250, 0.78);
  --shadow-sheet: 0 1px 1px rgba(15, 23, 42, 0.04), 0 30px 60px -28px rgba(4, 120, 87, 0.38);
  --shadow-phone: 0 40px 70px -34px rgba(15, 23, 42, 0.5);
  --shadow-menu: 0 1px 2px rgba(15, 23, 42, 0.08), 0 16px 40px -10px rgba(15, 23, 42, 0.25);
  --aurora-a: rgba(16, 185, 129, 0.34);
  --aurora-b: rgba(79, 70, 229, 0.22);
  --bezel: #1E293B;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --measure: 36rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}

/* The apps' dark surfaces (DESIGN-SYSTEM.md §1, "Dark mode surfaces"). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0F1C; --bg-band: #0C1322; --surface: #111A2E; --surface-2: #162036;
    --ink: #E8EDF5; --ink-soft: #A3B1C6; --ink-faint: #7C8BA1; --rule: #1E293B; --rule-strong: #334155;
    --brand: #10B981; --brand-hover: #34D399; --brand-text: #6EE7B7; --brand-wash: rgba(16, 185, 129, 0.12); --brand-edge: rgba(52, 211, 153, 0.35);
    --indigo: #818CF8; --signature: #93C5FD; --night: #052E22; --night-text: #A7F3D0;
    --header: rgba(10, 15, 28, 0.72);
    --shadow-sheet: 0 0 0 1px rgba(148, 163, 184, 0.08), 0 30px 70px -30px rgba(16, 185, 129, 0.35);
    --shadow-phone: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
    --shadow-menu: 0 0 0 1px rgba(148, 163, 184, 0.12), 0 18px 40px -12px rgba(0, 0, 0, 0.7);
    --aurora-a: rgba(16, 185, 129, 0.28); --aurora-b: rgba(99, 102, 241, 0.3); --bezel: #020617;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0F1C; --bg-band: #0C1322; --surface: #111A2E; --surface-2: #162036;
  --ink: #E8EDF5; --ink-soft: #A3B1C6; --ink-faint: #7C8BA1; --rule: #1E293B; --rule-strong: #334155;
  --brand: #10B981; --brand-hover: #34D399; --brand-text: #6EE7B7; --brand-wash: rgba(16, 185, 129, 0.12); --brand-edge: rgba(52, 211, 153, 0.35);
  --indigo: #818CF8; --signature: #93C5FD; --night: #052E22; --night-text: #A7F3D0;
  --header: rgba(10, 15, 28, 0.72);
  --shadow-sheet: 0 0 0 1px rgba(148, 163, 184, 0.08), 0 30px 70px -30px rgba(16, 185, 129, 0.35);
  --shadow-phone: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  --shadow-menu: 0 0 0 1px rgba(148, 163, 184, 0.12), 0 18px 40px -12px rgba(0, 0, 0, 0.7);
  --aurora-a: rgba(16, 185, 129, 0.28); --aurora-b: rgba(99, 102, 241, 0.3); --bezel: #020617;
  color-scheme: dark;
}

/* Screenshots in the matching theme. */
.only-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block !important; }
  :root:not([data-theme="light"]) .only-light { display: none !important; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
  :root:not([data-theme="light"]) .i-sun { display: block; }
}
:root[data-theme="dark"] .only-dark { display: block !important; }
:root[data-theme="dark"] .only-light { display: none !important; }
:root[data-theme="dark"] .i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--brand-wash); color: var(--ink); }

.wrap { width: min(72rem, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--ink); color: var(--bg); padding: 0.5rem 1rem; border-radius: 8px; z-index: 10; }
.skip:focus { left: 0.5rem; }

/* ── Type ─────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; }
h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.5rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 96;
  max-width: 15ch;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.95rem, 3.4vw, 2.85rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 72;
  max-width: 22ch;
  text-wrap: balance;
}
h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0; }
.lede { font-size: 1.1875rem; color: var(--ink-soft); max-width: var(--measure); }
.section-lede { color: var(--ink-soft); max-width: var(--measure); margin-top: 1rem; font-size: 1.125rem; }
.kicker { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--brand-text); font-weight: 700; font-size: 0.95rem; margin-bottom: 1.4rem; padding: 0.35rem 0.85rem 0.35rem 0.7rem; border-radius: 999px; background: var(--brand-wash); box-shadow: inset 0 0 0 1px var(--brand-edge); }
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-wash); }

/* ── Controls ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font: 700 1rem/1 var(--body); text-decoration: none;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn-lg { min-height: 54px; padding: 0.8rem 1.65rem; font-size: 1.0625rem; }
.btn-solid { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -10px rgba(5, 150, 105, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-solid:hover { background: var(--brand-hover); }
.btn-quiet { color: var(--brand-text); box-shadow: inset 0 0 0 1.5px var(--brand-edge); background: var(--surface); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn-light { background: #fff; color: #064E3B; }
.btn-light:hover { background: #D1FAE5; }
.btn-quiet-light { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45); }
.btn-quiet-light:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-grid; place-items: center; color: var(--ink);
  background: transparent; transition: background-color 0.15s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .i-sun { display: none; }

/* ── Header ───────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 5;
  background: var(--header);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--rule);
}
.top-row { display: flex; align-items: center; gap: 2rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font: 750 1.2rem/1 var(--display); letter-spacing: -0.015em; text-decoration: none; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; fill: var(--brand); }
.nav { display: flex; gap: 1.5rem; margin-right: auto; }
.nav a { text-decoration: none; color: var(--ink-soft); font-size: 0.975rem; }
.nav a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 0.5rem; }

.signin { position: relative; }
.signin summary {
  list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center;
  padding: 0 0.9rem; border-radius: 999px; font-weight: 700; color: var(--ink);
}
.signin summary::-webkit-details-marker { display: none; }
.signin summary::after { content: ""; width: 7px; height: 7px; margin-left: 0.5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.15s; }
.signin[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.signin summary:hover { background: var(--surface-2); }
.signin-menu {
  position: absolute; right: 0; top: calc(100% + 0.4rem); width: 16rem;
  background: var(--surface); border-radius: 16px; padding: 0.4rem;
  box-shadow: var(--shadow-menu);
}
.signin-menu a { display: grid; gap: 0.1rem; padding: 0.7rem 0.8rem; border-radius: 11px; text-decoration: none; }
.signin-menu a:hover { background: var(--brand-wash); }
.signin-menu span { color: var(--ink-faint); font-size: 0.9rem; }

/* ── Hero: the visit record ───────────────────────────────────────── */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.hero-copy .lede { margin-top: 1.5rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-note { margin-top: 1.5rem; color: var(--ink-faint); font-size: 0.95rem; max-width: 30rem; }

.record-stage { position: relative; }
/* The one gradient on the page: an aurora of the brand's two colours behind the record. */
.aurora {
  position: absolute; inset: -18% -14% -22% -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42% 46% at 30% 36%, var(--aurora-a), transparent 70%),
    radial-gradient(40% 44% at 74% 66%, var(--aurora-b), transparent 70%);
  filter: blur(18px);
}
.record {
  position: relative; z-index: 1;
  margin: 0;
  background: var(--surface);
  border-radius: 20px;
  padding: 1.75rem 1.75rem 1.5rem 2.1rem;
  box-shadow: var(--shadow-sheet);
  transform: rotate(-1.2deg);
}
.record::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 5px; border-radius: 0 4px 4px 0; background: linear-gradient(var(--brand), var(--indigo)); }
.record-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--rule); }
.record-site { font: 700 1.3rem/1.2 var(--display); }
.record-when { color: var(--ink-faint); margin-top: 0.2rem; font-size: 0.95rem; }
.score {
  display: grid; justify-items: center; line-height: 1;
  color: var(--brand-text); background: var(--brand-wash);
  border: 1.5px solid var(--brand-edge); border-radius: 999px; padding: 0.55rem 0.9rem;
}
.score b { font: 750 1.6rem/1 var(--display); }
.score span { font-size: 0.75rem; margin-top: 0.15rem; }
.record-lines { list-style: none; margin: 0; padding: 0.4rem 0 0; }
.record-lines li { display: grid; grid-template-columns: 3.4rem 1fr auto; gap: 0.75rem; align-items: center; min-height: 46px; font-size: 0.975rem; }
.record-lines li + li { border-top: 1px solid var(--rule); }
.record-lines time { font: 650 0.95rem/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ink-faint); }
.tick { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); position: relative; }
.tick::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(45deg); }
.record-sign { margin-top: 0.6rem; padding-top: 0.9rem; border-top: 1px dashed var(--rule-strong); }
.record-sign p { color: var(--ink-faint); font-size: 0.9rem; }
.signature { width: min(15rem, 70%); height: auto; overflow: visible; }
.signature path {
  fill: none; stroke: var(--signature); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: sign 2.2s cubic-bezier(0.55, 0.1, 0.4, 1) 0.6s forwards;
}
@keyframes sign { to { stroke-dashoffset: 0; } }

/* What every visit records. */
.proof {
  list-style: none; padding: 0; margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.proof li { display: flex; align-items: center; gap: 0.7rem; padding: 1.2rem 1rem 0 0; color: var(--ink-soft); font-weight: 700; font-size: 0.975rem; }
.proof svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── Bands ────────────────────────────────────────────────────────── */
.band { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--bg-band); }

/* One night, in order: the times are the sequence. */
.timeline { list-style: none; margin: 3rem 0 0; padding: 0; position: relative; max-width: 50rem; }
.timeline::before { content: ""; position: absolute; left: 5.35rem; top: 0.6rem; bottom: 0.6rem; width: 2px; background: linear-gradient(var(--brand), var(--indigo)); border-radius: 2px; }
.timeline li { display: grid; grid-template-columns: 4.5rem 1fr; column-gap: 2.5rem; padding-bottom: 2.5rem; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: calc(5.35rem - 6px); top: 0.45rem; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-band); border: 3px solid var(--brand); }
.timeline time { grid-row: span 2; font: 700 1.35rem/1.2 var(--display); font-variant-numeric: tabular-nums; color: var(--brand-text); }
.timeline h3 { grid-column: 2; }
.timeline p { grid-column: 2; color: var(--ink-soft); margin-top: 0.4rem; max-width: var(--measure); }

/* ── The apps ─────────────────────────────────────────────────────── */
.apps { padding: clamp(4rem, 9vw, 7rem) 0; }
.app {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 5rem); align-items: start;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--rule);
  position: relative; overflow: clip;
}
/* Each app's panel glows faintly in the colour of its icon. */
.app::after { content: ""; position: absolute; width: 60%; height: 90%; right: -12%; bottom: -30%; border-radius: 50%; filter: blur(60px); opacity: 0.55; pointer-events: none; }
.app-school::after { background: var(--aurora-b); }
.app-cleaner::after { background: var(--aurora-a); left: -12%; right: auto; }
.app-supervisor::after { background: linear-gradient(90deg, var(--aurora-a), var(--aurora-b)); }
.app:nth-of-type(even) .app-copy { order: 2; }
.app-copy, .phones { position: relative; z-index: 1; }
.app-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 8px 20px -8px rgba(79, 70, 229, 0.55); margin-bottom: 1.25rem; }
.app-for { color: var(--ink-faint); margin-top: 0.25rem; }
/* Each app's flow, in the order a person goes through it: what they do, then what it gives them. */
.flow { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: step; max-width: 32rem; }
.flow li { counter-increment: step; position: relative; padding: 0 0 1.6rem 3rem; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 0.95rem/1 var(--display); font-variant-numeric: tabular-nums;
  color: var(--brand-text); background: var(--brand-wash); box-shadow: inset 0 0 0 1.5px var(--brand-edge);
}
.flow li:not(:last-child)::after { content: ""; position: absolute; left: calc(1rem - 1px); top: 2.35rem; bottom: 0.35rem; width: 2px; border-radius: 2px; background: var(--rule); }
.flow h4 { margin: 0.2rem 0 0; font: 650 1.1rem/1.3 var(--display); color: var(--ink); }
.flow p { margin-top: 0.35rem; color: var(--ink-soft); }
.flow .gain { color: var(--brand-text); font-weight: 700; padding-left: 1.55rem; position: relative; }
.flow .gain::before { content: ""; position: absolute; left: 0.2rem; top: 0.3em; width: 0.45rem; height: 0.8rem; border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(45deg); }

.phones { align-self: start; }
.phone {
  border-radius: 34px;
  padding: 7px;
  background: var(--bezel);
  box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone .shot { border-radius: 27px; }

/* Three screens as a fan: the first in front, the other two angled behind it. */
.fan { position: sticky; top: 96px; height: 38rem; }
.fan .phone { position: absolute; top: 50%; left: 50%; width: min(15rem, 44%); transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.fan .p1 { z-index: 3; transform: translate(-50%, -50%); }
.fan .p2 { z-index: 1; transform: translate(-128%, -46%) rotate(-7deg) scale(0.88); }
.fan .p3 { z-index: 2; transform: translate(28%, -46%) rotate(7deg) scale(0.88); }
/* Pointing at a screen behind brings it up a little — the one motion here, and only on request. */
@media (hover: hover) {
  .fan .p2:hover { z-index: 4; transform: translate(-118%, -50%) rotate(-3deg) scale(0.96); }
  .fan .p3:hover { z-index: 4; transform: translate(18%, -50%) rotate(3deg) scale(0.96); }
}

/* ── For schools ──────────────────────────────────────────────────── */
.duties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.75rem; margin: 3rem 0 0; }
.duties div { border-top: 2px solid var(--rule-strong); padding-top: 1.1rem; }
.duties svg { width: 26px; height: 26px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 0.75rem; }
.duties dt { font: 650 1.15rem/1.3 var(--display); }
.duties dd { margin: 0.5rem 0 0; color: var(--ink-soft); }

/* ── For contractors ──────────────────────────────────────────────── */
.contractors { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--bg); }
.contractors-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contractors .btn { margin-top: 2rem; }
.portal-list { list-style: none; margin: 0; padding: 0; }
.portal-list li { display: grid; grid-template-columns: 10rem 1fr; gap: 1.25rem; padding: 1.05rem 0; border-bottom: 1px solid var(--rule); }
.portal-list li:first-child { border-top: 1px solid var(--rule); }
.portal-list strong { font-family: var(--display); font-weight: 650; }
.portal-list span { color: var(--ink-soft); }

/* ── Questions ────────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 60px; padding: 1.05rem 2.5rem 1.05rem 0; position: relative;
  font: 650 1.1rem/1.35 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.4rem; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq details p { color: var(--ink-soft); padding: 0 2.5rem 1.25rem 0; max-width: var(--measure); }

/* ── Closing ──────────────────────────────────────────────────────── */
.closing { background: var(--night); color: var(--night-text); padding: clamp(4rem, 9vw, 6.5rem) 0; position: relative; overflow: hidden; }
.aurora-closing { inset: -40% -10% auto 40%; height: 180%; opacity: 0.8; }
.closing-inner { max-width: 44rem; position: relative; z-index: 1; }
.closing h2 { color: #fff; }
.closing p { margin-top: 1rem; font-size: 1.125rem; max-width: var(--measure); }

/* ── Footer ───────────────────────────────────────────────────────── */
.foot { padding: 2.5rem 0 3rem; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.brand-small { font-size: 1.05rem; }
.brand-small .brand-mark { width: 22px; height: 22px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-right: auto; }
.foot-links a { color: var(--ink-soft); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-small { color: var(--ink-faint); font-size: 0.875rem; width: 100%; }

/* ── Smaller screens ──────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .nav { display: none; }
  .top-row { justify-content: space-between; }
}
@media (max-width: 960px) {
  .hero-grid, .app, .contractors-grid, .faq-grid { grid-template-columns: 1fr; }
  .app:nth-of-type(even) .app-copy { order: 0; }
  .fan {
    position: static; height: auto;
    display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * clamp(1.75rem, 4vw, 3.25rem)); padding: 0.5rem clamp(1.75rem, 4vw, 3.25rem) 1.5rem;
    scrollbar-width: none;
  }
  .fan::-webkit-scrollbar { display: none; }
  .fan .phone, .fan .phone:hover { position: static; flex: none; width: min(15rem, 68vw); transform: none; scroll-snap-align: center; }
  .record { transform: none; max-width: 34rem; }
  .duties { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .btn-top { display: none; }
  .record { padding: 1.25rem 1.1rem 1.1rem 1.5rem; }
  .record-lines li { grid-template-columns: 3rem 1fr auto; font-size: 0.925rem; }
  .proof { grid-template-columns: 1fr; }
  .timeline::before { left: 0.45rem; }
  .timeline li { grid-template-columns: 1fr; padding-left: 2.25rem; }
  .timeline li::before { left: 0; }
  .timeline time, .timeline h3, .timeline p { grid-column: 1; grid-row: auto; }
  .timeline time { font-size: 1.1rem; margin-bottom: 0.2rem; }
  .duties { grid-template-columns: 1fr; }
  .portal-list li { grid-template-columns: 1fr; gap: 0.25rem; }
  .app { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { transition: none; }
  .signature path { animation: none; stroke-dashoffset: 0; }
  .btn, .signin summary::after, .faq summary::after, .icon-btn, .fan .phone { transition: none; }
}
