@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/PublicSans-400.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/PublicSans-600.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url(/fonts/PublicSans-800.woff2) format("woff2"); }

:root {
  --paper: #f3f6f4;
  --white: #ffffff;
  --ink: #172028;
  --ink-soft: #46515b;
  --rule: #c5ccc8;
  --es: #1e4f99;
  --es-tint: #edf2fa;
  --ho: #196458;
  --ho-tint: #ecf5f2;
  --eh: #8a5300;
  --eh-tint: #f8f0e0;
  --fh: #7b3a6b;
  --fh-tint: #f6eef4;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gut: clamp(1.25rem, 4vw, 3.5rem);
  --max: 80rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans); font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
p, dd, li { text-wrap: pretty; }
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4, h5, p, ol, ul, dl, dd { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gut); top: 0.5rem; z-index: 20; background: var(--ink); color: var(--paper); padding: 0.5rem 0.75rem; }
.skip:focus-visible { outline-color: var(--paper); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Product colours: each element with a product class sets --c (text and rule) and --t (tint) */
.es { --c: var(--es); --t: var(--es-tint); }
.ho { --c: var(--ho); --t: var(--ho-tint); }
.eh { --c: var(--eh); --t: var(--eh-tint); }
.fh { --c: var(--fh); --t: var(--fh-tint); }

/* Bar: static below 40rem, sticky from 40rem (see the media queries below) */
.bar { background: var(--paper); border-bottom: 1px solid var(--ink); }
.bar .wrap { display: flex; flex-direction: column; padding: 0; }
.word { display: flex; align-items: center; min-height: 2.75rem; padding: 0 var(--gut); font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.01em; text-decoration: none; }
.switch ul { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; }
.switch a { display: flex; align-items: center; justify-content: center; gap: 0.375rem; min-height: 2.75rem; padding: 0 0.5rem; font-size: 0.8125rem; font-weight: 600; text-decoration: none; border-top: 1px solid var(--rule); }
.switch li:not(:nth-child(3n+1)) a { border-left: 1px solid var(--rule); }
.switch li[class] a::before { content: ""; width: 0.5rem; height: 0.5rem; background: var(--c); }
.switch a:hover { background: var(--t, transparent); color: var(--c, inherit); text-decoration: underline; }

/* Hero */
.hero { padding: clamp(3.5rem, 9vw, 8rem) 0 clamp(3.5rem, 8vw, 7rem); }
.hero h1 { font-weight: 800; font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.02; letter-spacing: -0.035em; }
.hero h1 a { display: block; width: fit-content; color: var(--c); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.hero h1 a:hover { text-decoration-thickness: 4px; }
.lede { margin-top: clamp(1.75rem, 4vw, 3rem); max-width: 34ch; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.45; color: var(--ink-soft); }
.key { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--ink); list-style: none; padding: 0; }
.key li { padding: 0.875rem 1rem 0 0; font-size: 0.9375rem; color: var(--ink-soft); }
.key b { display: block; color: var(--c); font-weight: 800; font-size: 1rem; }

/* Bands */
.band { background: var(--t); border-top: 8px solid var(--c); }
.band .wrap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 7rem); }
.id { grid-column: 1 / 4; }
.id h3 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; color: var(--c); line-height: 1.1; }
.id p { margin-top: 0.375rem; font-size: 0.9375rem; color: var(--ink-soft); }
.problem { grid-column: 4 / 13; max-width: 22ch; font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.75rem); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
.detail { grid-column: 4 / 13; display: grid; grid-template-columns: 5fr 3fr 3fr; column-gap: 1.5rem; margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.25rem; border-top: 1px solid var(--c); }
.what { max-width: 40ch; font-size: 1.125rem; line-height: 1.5; }
.detail dt { font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); }
.detail dd { margin-top: 0.125rem; }
.go { display: inline-flex; align-items: center; gap: 0.625rem; min-height: 3rem; padding: 0 1.25rem; background: var(--c); color: #fff; font-weight: 600; text-decoration: none; border-radius: 2px; justify-self: start; align-self: start; }
.go svg { width: 1.125rem; height: 1.125rem; }
.go:hover { background: var(--ink); }
.go:focus-visible { outline-color: var(--c); }

/* Family Hub, the largest band */
.band.fh .problem { font-size: clamp(2.25rem, 5.2vw, 4.5rem); max-width: 18ch; }
.fh-body { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; margin-top: clamp(4rem, 8vw, 7rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--c); }
.fh-text { grid-column: 1 / 8; }
.fh-head { max-width: 24ch; font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.3; letter-spacing: -0.02em; }
.steps { list-style: none; padding: 0; margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 1.5rem; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 1rem; border-top: 3px solid var(--c); }
.steps li::before { content: counter(s); display: block; margin-bottom: 1rem; font-weight: 800; font-size: 2.5rem; line-height: 1; color: var(--c); }
.steps h5 { font-size: 1.0625rem; font-weight: 800; line-height: 1.3; }
.steps p { margin-top: 0.375rem; font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.55; }
.phone-col { grid-column: 9 / 13; display: flex; justify-content: center; align-items: flex-start; }
.phone { display: flex; flex-direction: column; width: 100%; max-width: 300px; aspect-ratio: 9 / 18.5; padding: 1.75rem 1.25rem 1.375rem; border: 10px solid var(--ink); border-radius: 36px; background: var(--white); }
.phone .app { font-size: 0.8125rem; font-weight: 600; color: var(--fh); }
.phone .say { margin-top: auto; font-weight: 800; font-size: 1.625rem; line-height: 1.2; letter-spacing: -0.01em; }
.phone .btns { margin-top: auto; display: grid; gap: 0.625rem; }
.phone .btn { display: flex; align-items: center; justify-content: center; min-height: 4rem; border-radius: 4px; font-weight: 800; font-size: 1.375rem; }
.phone .taken { background: var(--fh); color: #fff; }
.phone .later { border: 2px solid var(--ink); font-size: 1.125rem; min-height: 3.25rem; }
.fh-foot { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; margin-top: clamp(3rem, 6vw, 5rem); }
.decides { grid-column: 1 / 8; background: var(--white); border: 2px solid var(--fh); padding: clamp(1.5rem, 3vw, 2.5rem); }
.decides h4 { font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--fh); }
.decides p { margin-top: 0.875rem; max-width: 60ch; }
.note { grid-column: 9 / 13; align-self: end; padding-top: 1rem; border-top: 1px solid var(--ink); font-size: 0.9375rem; color: var(--ink-soft); }
.note strong { display: block; margin-top: 0.625rem; color: var(--ink); font-size: 1.25rem; font-weight: 800; }

/* About and contact */
.close .wrap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.close + .close { border-top: 1px solid var(--ink); }
.close h2 { grid-column: 1 / 4; font-size: 1.0625rem; font-weight: 800; }
.about { grid-column: 4 / 12; max-width: 36ch; font-size: clamp(1.375rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
.mail { grid-column: 4 / 13; font-weight: 800; font-size: clamp(1.75rem, 4.6vw, 4rem); letter-spacing: -0.03em; line-height: 1.1; overflow-wrap: anywhere; }
.mail a { text-decoration-thickness: 3px; text-underline-offset: 0.14em; }

.foot { border-top: 1px solid var(--ink); }
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; padding-bottom: 2rem; font-size: 0.875rem; color: var(--ink-soft); }

/* Prose pages (privacy, 404) */
.doc { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.doc > * { max-width: 50ch; }
.doc h1 { font-weight: 800; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.doc h2 { margin-top: 2.5rem; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.doc p { margin-top: 0.75rem; }
.doc h1 + p { margin-top: 1.5rem; }

@media (min-width: 40rem) {
  html { scroll-padding-top: 6rem; }
  .bar { position: sticky; top: 0; z-index: 10; }
  .switch ul { display: flex; }
  .switch li { flex: 1; }
  .switch li:not(:nth-child(3n+1)) a { border-left: 0; }
  .switch li + li a { border-left: 1px solid var(--rule); }
}

@media (min-width: 60rem) {
  html { scroll-padding-top: 4rem; }
  .bar .wrap { flex-direction: row; justify-content: space-between; gap: 1.5rem; min-height: 3.5rem; padding: 0 var(--gut); }
  .word { padding: 0; }
  .switch li { flex: none; }
  .switch a { min-height: 3.5rem; padding: 0 1.125rem; font-size: 0.9375rem; gap: 0.625rem; border-top: 0; }
  .switch li:first-child a { border-left: 1px solid var(--rule); }
  .switch li:last-child a { border-right: 1px solid var(--rule); }
}

@media (max-width: 60rem) {
  .band .wrap, .close .wrap, .fh-body, .fh-foot { grid-template-columns: 1fr; }
  .id, .problem, .detail, .fh-body, .fh-foot, .fh-text, .phone-col, .decides, .note, .close h2, .about, .mail { grid-column: 1 / -1; }
  .id { margin-bottom: 1.25rem; }
  .detail { grid-template-columns: 1fr 1fr; row-gap: 1.25rem; }
  .detail .what { grid-column: 1 / -1; }
  .phone-col { margin-top: 3rem; }
  .note { margin-top: 2rem; }
  .close h2 { margin-bottom: 0.75rem; }
  .key { grid-template-columns: repeat(2, 1fr); row-gap: 1rem; }
}

@media (max-width: 40rem) {
  .steps { grid-template-columns: 1fr; row-gap: 1.75rem; }
  .detail { grid-template-columns: 1fr; }
}

@media (max-width: 30rem) {
  .key { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none; animation: none; }
}
