/*
  myBaby public site.
  Colours and type follow the app (my_baby/lib/app/theme.dart): warm off-white
  paper, calm sage, soft apricot and powder blue; Nunito for headings and
  Nunito Sans for text (both self-hosted, SIL Open Font Licence).
  Text colours are darkened/lightened from the app palette where needed so
  every text pair meets WCAG AA.
*/

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/nunito-sans.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --bg: #FBF7F3;
  --surface: #FFFFFF;
  --surface-alt: #F3EDE7;
  --sand: #EAE0D5;
  --line: #E4D9CE;
  --ink: #2E2A26;
  --ink-2: #625A52;
  --sage: #4A6858;          /* app sage #6C8C7B, darkened for AA text */
  --sage-brand: #6C8C7B;
  --sage-wash: #E3ECE6;
  --apricot: #E8A87C;
  --apricot-wash: #F8E6D8;
  --sky: #A8B8D8;
  --sky-wash: #E4EAF4;
  --alert: #9E4A40;          /* app terracotta #C8736A, darkened for AA */
  --alert-wash: #F6E3DF;
  --band: #34493F;           /* the "private by design" field */
  --band-ink: #F3EEE7;
  --band-ink-2: #C9D6CD;
  --on-sage: #FFFFFF;
  --focus: #2F5D8A;
  --shadow: 0 1px 2px rgba(46, 42, 38, 0.05), 0 8px 24px -12px rgba(46, 42, 38, 0.18);

  --font-head: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-dz: "Noto Sans Tibetan", "Kailasa", "Kokonor", "Microsoft Himalaya", "Jomolhari", serif;

  --radius: 20px;
  --radius-lg: 28px;
  --wrap: 72rem;
  --measure: 40rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1714;
    --surface: #241F1B;
    --surface-alt: #2A2420;
    --sand: #332C26;
    --line: #3A332D;
    --ink: #EFE9E2;
    --ink-2: #B3AAA1;
    --sage: #9DBBA9;
    --sage-brand: #86A593;
    --sage-wash: #24302A;
    --apricot: #E8A87C;
    --apricot-wash: #3A2B21;
    --sky: #A8B8D8;
    --sky-wash: #242A35;
    --alert: #E3998F;
    --alert-wash: #3A2421;
    --band: #222C27;
    --band-ink: #EFE9E2;
    --band-ink-2: #B9C7BE;
    --on-sage: #142019;
    --focus: #A8C4F0;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px -14px rgba(0, 0, 0, 0.6);
  }
}

/* ── Base ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
  scrollbar-color: var(--sand) var(--bg);
  accent-color: var(--sage);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  caret-color: var(--sage);
  overflow-wrap: break-word;
}

main { flex: 1; }

::selection { background: var(--apricot-wash); color: var(--ink); }

img { max-width: 100%; height: auto; }

a {
  color: var(--sage);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.35rem; }

p { margin: 0 0 1rem; }

[lang="dz"] { font-family: var(--font-dz); font-size: 1.15em; letter-spacing: 0; }

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--surface);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.skip:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--sage);
  color: var(--on-sage);
  font: 700 1rem/1.2 var(--font-head);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: color-mix(in srgb, var(--sage) 88%, var(--ink)); }
.btn:active { transform: translateY(1px); }
.btn--quiet {
  background: transparent;
  color: var(--sage);
  box-shadow: inset 0 0 0 2px currentColor;
}
.btn--quiet:hover { background: var(--sage-wash); }
.btn--danger { background: var(--alert); color: #FFFFFF; }
.btn--danger:hover { background: color-mix(in srgb, var(--alert) 85%, #000); }
@media (prefers-color-scheme: dark) {
  .btn--danger { color: #1A1714; }
  .btn--danger:hover { background: color-mix(in srgb, var(--alert) 85%, #FFF); }
}

/* Store buttons: drawn here, not the official badge artwork. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.55rem 1.25rem 0.55rem 1rem;
  border-radius: 16px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow);
}
.store:hover { transform: translateY(-1px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store__text { display: flex; flex-direction: column; line-height: 1.15; }
.store__small { font-size: 0.78rem; opacity: 0.85; }
.store__big { font: 800 1.12rem/1.15 var(--font-head); }

.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.7rem 1.1rem;
  border-radius: 16px;
  background: var(--sage-wash);
  color: var(--ink);
  font-weight: 600;
}
.soon svg { width: 20px; height: 20px; color: var(--sage); flex: none; }

/* ── Masthead ─────────────────────────────────────────────────────────── */

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font: 800 1.3rem/1 var(--font-head);
  letter-spacing: -0.01em;
}
.brand img { width: 40px; height: auto; }
.mast__nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mast__nav a:not(.btn) {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  padding-block: 0.5rem;
}
.mast__nav a:not(.btn):hover,
.mast__nav a[aria-current="page"] { color: var(--sage); }
.mast__nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.mast__nav .btn { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.95rem; }

@media (max-width: 44rem) {
  .mast__nav .hide-sm { display: none; }
  .mast__nav ul { gap: 1rem; }
}
@media (max-width: 24rem) {
  .mast__nav .hide-xs { display: none; }
}
.mast__nav .btn { white-space: nowrap; }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(1.5rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 5rem);
}
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--sage);
}
.hero__lede {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--ink-2);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 600;
}
.hero__facts li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__facts svg { width: 18px; height: 18px; color: var(--sage); flex: none; }

/* Illustrations sit on a soft disc. The app's 3D art is made for light
   backgrounds, so in dark mode the disc stays light: a moon behind them. */
.art {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
}
.art::before {
  content: "";
  position: absolute;
  inset: 4% 0 0 4%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, #E4EAF4, transparent 60%),
    radial-gradient(circle at 75% 78%, #F8E6D8, transparent 55%),
    #F3EDE7;
}
@media (prefers-color-scheme: dark) {
  .art::before {
    background:
      radial-gradient(circle at 30% 28%, #DCE3EE, transparent 60%),
      radial-gradient(circle at 75% 78%, #EBD9CB, transparent 55%),
      #E6DED5;
    box-shadow: 0 0 0 14px rgba(230, 222, 213, 0.06), 0 0 80px rgba(230, 222, 213, 0.12);
  }
}
.art img { position: relative; display: block; width: 100%; }
.hero__art { width: 100%; max-width: 440px; justify-self: center; }
.hero__art img {
  animation: arrive 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes arrive {
  from { opacity: 0; transform: translateY(14px) scale(0.98); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__art img { animation: none; }
}

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero__art { order: -1; max-width: 280px; margin-inline: auto; }
}

/* ── Sections ─────────────────────────────────────────────────────────── */

.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--alt { background: var(--surface-alt); }
.section__head { max-width: 44rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section__head p { color: var(--ink-2); font-size: 1.125rem; margin: 0; }

/* The age line: what surfaces when. */
.ages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ages::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 11px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--apricot) 0%, var(--apricot) 46%, var(--sage-brand) 54%, var(--sky) 100%);
  opacity: 0.75;
}
.ages li { position: relative; padding: 2.4rem 1.25rem 0 0; }
.ages li::before {
  content: "";
  position: absolute;
  top: 3px; left: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 4px solid var(--sage-brand);
}
.section--alt .ages li::before { background: var(--surface-alt); }
.ages li.is-birth::before { background: var(--apricot); border-color: var(--apricot); }
.ages__when {
  display: block;
  font: 800 0.95rem/1.3 var(--font-head);
  color: var(--sage);
  margin-bottom: 0.35rem;
}
.ages h3 { font-size: 1.2rem; }
.ages p { color: var(--ink-2); margin: 0; font-size: 1rem; }

@media (max-width: 52rem) {
  .ages { grid-template-columns: 1fr; gap: 1.75rem; padding-left: 2.25rem; }
  .ages::before {
    left: 9px; right: auto; top: 0; bottom: 0;
    width: 4px; height: auto;
    background: linear-gradient(180deg, var(--apricot) 0%, var(--apricot) 40%, var(--sage-brand) 55%, var(--sky) 100%);
  }
  .ages li { padding: 0; }
  .ages li::before { left: -2.25rem; top: 0; }
}

/* Feature groups: an editorial run of tools, not a card grid. */
.group {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line);
}
.group:first-of-type { border-top: 0; padding-top: 0; }
.group__head img { width: 72px; height: 72px; margin-bottom: 0.75rem; }
.group__head h3 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-bottom: 0.5rem; }
.group__head p { color: var(--ink-2); margin: 0; }
.tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tools li { padding-left: 1.1rem; position: relative; }
.tools li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--apricot);
}
.tools strong { display: block; font: 800 1.05rem/1.35 var(--font-head); color: var(--ink); }
.tools span { color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 52rem) {
  .group { grid-template-columns: 1fr; }
  .group__head { display: grid; grid-template-columns: auto 1fr; gap: 0 1rem; align-items: center; }
  .group__head img { grid-row: span 2; width: 60px; height: 60px; margin: 0; }
  .group__head p { grid-column: 1 / -1; margin-top: 0.75rem; }
  .group__head h3 { margin: 0; }
}
@media (max-width: 34rem) {
  .tools { grid-template-columns: 1fr; }
}

/* Private by design: the one dark field on the page. */
.private {
  background: var(--band);
  color: var(--band-ink);
  padding-block: clamp(3rem, 8vw, 6rem);
}
.private h2, .private h3 { color: var(--band-ink); }
.private .section__head p { color: var(--band-ink-2); }
.private a { color: var(--band-ink); }
.promises {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}
.promises li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0 1rem; }
.promises svg { width: 2.5rem; height: 2.5rem; color: var(--apricot); grid-row: span 2; }
.promises h3 { margin: 0.25rem 0 0.35rem; }
.promises p { color: var(--band-ink-2); margin: 0; }
.private__never {
  margin: 0;
  padding-top: 1.75rem;
  border-top: 1px solid color-mix(in srgb, var(--band-ink) 18%, transparent);
  color: var(--band-ink-2);
}
.private__never strong { color: var(--band-ink); }
@media (max-width: 44rem) {
  .promises { grid-template-columns: 1fr; }
}

/* Languages and regions */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
}
.lang-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1.25rem;
  margin: 0 0 1rem;
  font: 800 clamp(1.8rem, 4vw, 2.6rem)/1.2 var(--font-head);
}
.lang-pair [lang="dz"] { font-weight: 400; font-size: 1.1em; color: var(--sage); }
.regions { margin: 0 0 1rem; padding: 0; list-style: none; }
.regions li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.regions li:first-child { border-top: 1px solid var(--line); }
.regions span:last-child { color: var(--ink-2); text-align: right; }
.fine { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 44rem) {
  .split { grid-template-columns: 1fr; }
}

/* FAQ */
.faq { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  font: 800 1.1rem/1.35 var(--font-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  border-right: 2.5px solid var(--sage);
  border-bottom: 2.5px solid var(--sage);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details > div { padding: 0 0 1.25rem; color: var(--ink-2); max-width: var(--measure); }
.faq details > div p:last-child { margin: 0; }

/* Closing call to action */
.get {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
  align-items: center;
  gap: 2rem;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 20%, var(--sky-wash), transparent 45%),
    var(--apricot-wash);
}
.get h2 { margin-bottom: 0.5rem; }
.get p { color: var(--ink-2); max-width: 32rem; margin-bottom: 1.5rem; }
.get__art { width: 100%; max-width: 18rem; justify-self: center; }
@media (max-width: 44rem) {
  .get { grid-template-columns: 1fr; }
  .get__art { max-width: 12rem; order: -1; }
}

/* ── Documents: privacy, terms, support, deletion ─────────────────────── */

.doc { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem); }
.doc__head { max-width: 46rem; margin-bottom: 2rem; }
.doc__head .lede { font-size: 1.2rem; color: var(--ink-2); margin: 0; }
.doc__meta { color: var(--ink-2); font-size: 0.95rem; margin: 0 0 0.5rem; }
.doc__jump { margin: 1.25rem 0 0; }

.doc__grid {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.toc {
  position: sticky;
  top: 1.5rem;
  font-size: 0.95rem;
}
.toc h2 { font-size: 0.95rem; margin: 0 0 0.75rem; color: var(--ink-2); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 0.3rem 0;
  color: var(--ink-2);
  text-decoration: none;
}
.toc a:hover { color: var(--sage); text-decoration: underline; }
@media (max-width: 56rem) {
  .doc__grid { grid-template-columns: 1fr; }
  .toc {
    position: static;
    padding: 1.25rem 1.25rem 1rem;
    border-radius: var(--radius);
    background: var(--surface-alt);
  }
  .toc ol { columns: 2 12rem; column-gap: 1.5rem; }
}

.prose { max-width: var(--measure); }
.prose h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  margin: 2.75rem 0 0.75rem;
  scroll-margin-top: 1.5rem;
}
.prose > h2:first-child, .prose > section:first-child > h2 { margin-top: 0; }
.prose h3 { margin: 1.75rem 0 0.4rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.prose li { margin: 0.4rem 0; }
.prose li::marker { color: var(--sage-brand); }
.prose strong { font-weight: 700; }

.note {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  background: var(--sage-wash);
}
.note > :last-child { margin-bottom: 0; }
.note h2, .note h3 { margin-top: 0; font-size: 1.15rem; }
.note--medical { background: var(--alert-wash); }
.note--medical h2, .note--medical h3 { color: var(--alert); }

.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}
.data-table th, .data-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.75rem 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.data-table th { font: 800 0.95rem/1.3 var(--font-head); color: var(--ink); }
.data-table thead th { border-bottom-width: 2px; }
.data-table td:first-child { font-weight: 700; color: var(--ink); min-width: 9rem; }
.data-table td { color: var(--ink-2); }

.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  margin: 0 0 0.85rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -0.05rem;
  width: 1.8rem; height: 1.8rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sage-wash);
  color: var(--sage);
  font: 800 0.95rem/1 var(--font-head);
}
.path { font-weight: 700; color: var(--ink); white-space: normal; }

/* Deletion page */
.del {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 56rem) {
  .del { grid-template-columns: 1fr; }
}
.panel {
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.panel h2 { font-size: 1.4rem; margin: 0 0 0.5rem; }
.panel > p { color: var(--ink-2); }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field__label { font-weight: 700; }
.field__input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid color-mix(in srgb, var(--ink-2) 80%, var(--bg));
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.field__input:hover { border-color: var(--ink-2); }
.field__input:focus-visible { outline-offset: 1px; border-color: var(--focus); }
.field__input[aria-invalid="true"] { border-color: var(--alert); }
.field__error { color: var(--alert); font-size: 0.95rem; font-weight: 600; margin: 0; }
.check {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.6rem;
  align-items: start;
  font-size: 0.98rem;
}
.check input { width: 1.25rem; height: 1.25rem; margin: 0.2rem 0 0; }
.alert {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--alert-wash);
  color: var(--ink);
}
.alert strong { color: var(--alert); }
.success {
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--sage-wash);
}
.success h2 { color: var(--sage); }
.success p:last-child { margin: 0; }
.form__help { font-size: 0.95rem; color: var(--ink-2); margin: 0; }

/* 404 */
.lost { text-align: center; padding-block: clamp(3rem, 10vw, 7rem); }
.lost img { width: 160px; margin-bottom: 1rem; }
.lost p { color: var(--ink-2); font-size: 1.15rem; }

/* ── Footer ───────────────────────────────────────────────────────────── */

.foot {
  margin-top: auto;
  background: var(--surface-alt);
  color: var(--ink-2);
  font-size: 0.97rem;
}
.section--alt + .foot { border-top: 1px solid var(--line); }
.foot__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding-block: 3rem 2rem;
}
.foot__brand .brand { margin-bottom: 0.75rem; }
.foot__brand p { margin: 0 0 0.5rem; max-width: 26rem; }
.foot h2 {
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
  color: var(--ink);
}
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot li { margin: 0 0 0.45rem; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--sage); }
.foot__medical {
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}
.foot__medical p { margin: 0; max-width: 60rem; }
.foot__medical strong { color: var(--ink); }
.foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.foot__base p { margin: 0; }
@media (max-width: 44rem) {
  .foot__inner { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
