/*
  AKILI design system: "Wellspring" (chosen by Papa, 3 November 2026).
  Deep slate water, mist and pearl. Cormorant Garamond for headings, Manrope
  for reading and for the interface. AKILI red is used sparingly: the dot of
  the "i", the dot at the centre of the ripples, small marks and accents.
  One hand-written stylesheet. Colours come only from the tokens below; do
  not invent new colours (CLAUDE.md hard rule 7). The rules for pictures,
  portraits and layout are in docs/DESIGN.md.

  Contrast (WCAG AA): white on --pool 14.0:1; --muted on white 5.6:1;
  --silver is for lines and quiet text on --pool only (6.0:1 there);
  --akili-red is never used for body text.
*/

/* ---------- Fonts (self-hosted: @fontsource/cormorant-garamond, @fontsource/manrope) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.efeea72c7a42.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.9b8a16c9964e.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.bf1e09fb81d7.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.1589a53d0b0e.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-500-normal.f95b8f975304.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.58d382c3e448.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.ed9e261b92db.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --pool: #1E2B30;        /* deep water: hero, header, footer, dark bands, primary buttons */
  --pool-2: #24353B;      /* the second dark surface */
  --mist: #EAEFEF;        /* quiet light sections */
  --paper: #F3F6F6;       /* subtle surfaces: table heads, chips, the desk background */
  --white: #FFFFFF;       /* pearl: pages and cards */
  --ink: #1D292D;         /* text */
  --muted: #5D6C70;       /* secondary text on light */
  --silver: #A7B4B6;      /* lines and quiet text on dark */
  --on-dark: #C9D4D6;     /* reading text on dark */
  --line: #D8E0E1;        /* lines on light */
  --akili-red: #E31E24;   /* the dot */
  --red-deep: #B3261E;    /* errors and danger */
  --calm: #2E7D6B;        /* confirmed, done */
  --amber: #B7791F;       /* waiting (borders and dots only) */

  --font-heading: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 6px;
  --radius-small: 6px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgb(29 41 45 / 5%), 0 10px 30px rgb(29 41 45 / 6%);
  --shadow-lift: 0 2px 4px rgb(29 41 45 / 7%), 0 18px 44px rgb(29 41 45 / 10%);
  --focus: 0 0 0 3px var(--white), 0 0 0 5px var(--pool);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3.5rem;
  --space-8: 6rem;

  --page-width: 74rem;
  --text-width: 40rem;
  --tap: 48px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.7; color: var(--ink); background: var(--white); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; line-height: 1.06; margin: 0 0 var(--space-4); letter-spacing: -0.005em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 5.4vw + 0.6rem, 6.2rem); line-height: 0.96; }
h2 { font-size: clamp(2.2rem, 2.6vw + 1rem, 3.3rem); }
h3 { font-size: clamp(1.55rem, 1vw + 1.15rem, 1.9rem); line-height: 1.12; }
h4 { font-family: var(--font-ui); font-weight: 600; font-size: 1.05rem; line-height: 1.4; letter-spacing: 0; }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
a { color: inherit; text-decoration-line: underline; text-decoration-color: rgb(29 41 45 / 35%); text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-6) 0; }
strong { font-weight: 600; }
small, .small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.1rem; line-height: 1.7; color: var(--muted); max-width: var(--text-width); }
.prose { max-width: var(--text-width); }
.prose p { white-space: pre-line; overflow-wrap: anywhere; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 100; background: var(--white); padding: var(--space-3) var(--space-4); border-radius: var(--radius); box-shadow: var(--shadow); }
.skip-link:focus { top: var(--space-4); }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--page-width); margin: 0 auto; padding-inline: 1.25rem; }
@media (min-width: 700px) { .container { padding-inline: 2.5rem; } }
@media (min-width: 1100px) { .container { padding-inline: 3rem; } }
.section { padding-block: var(--space-7); }
@media (min-width: 900px) { .section { padding-block: 7rem; } }
.section--white { background: var(--white); }
.section--white + .section--white { padding-top: 0; }
.section--mist { background: var(--mist); }
.section--ink, .section--deep { background: var(--pool); color: var(--white); }
.section--deep { background: var(--pool-2); }
.section--ink a, .section--deep a { color: var(--white); text-decoration-color: rgb(255 255 255 / 45%); }
.section--ink .lead, .section--ink .muted, .section--deep .lead, .section--deep .muted { color: var(--on-dark); }
.section-head { max-width: 46rem; margin-bottom: var(--space-6); }
.section-head > :last-child { margin-bottom: 0; }
.eyebrow { font-family: var(--font-ui); font-weight: 500; font-size: 0.9rem; color: var(--muted); margin-bottom: var(--space-3); }
.section--ink .eyebrow, .section--deep .eyebrow { color: var(--silver); }
.grid { display: grid; gap: var(--space-6); }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) and (max-width: 999px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
.stack > * + * { margin-top: var(--space-4); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.row--between { justify-content: space-between; }

/* Inner pages open on a band of deep water that carries the page title. */
main > .section:first-child:not(.hero) { background: var(--pool); color: var(--white); padding-block: var(--space-6) var(--space-7); }
@media (min-width: 900px) { main > .section:first-child:not(.hero) { padding-block: 3.5rem 5.5rem; } }
main > .section:first-child:not(.hero) .lead,
main > .section:first-child:not(.hero) .muted { color: var(--on-dark); }
main > .section:first-child:not(.hero) .eyebrow { color: var(--silver); }
main > .section:first-child:not(.hero) a:not(.button) { color: var(--white); text-decoration-color: rgb(255 255 255 / 45%); }
main > .section:first-child:not(.hero) .notice,
main > .section:first-child:not(.hero) .card,
main > .section:first-child:not(.hero) .crisis { color: var(--ink); }
main > .section:first-child:not(.hero) .notice a:not(.button),
main > .section:first-child:not(.hero) .card a:not(.button),
main > .section:first-child:not(.hero) .crisis a:not(.button) { color: var(--ink); text-decoration-color: rgb(29 41 45 / 35%); }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-6); }
.card > :last-child { margin-bottom: 0; }
.card--flat { box-shadow: none; }
.card--quiet { background: var(--paper); border-color: transparent; }
.card h3 { margin-bottom: var(--space-2); }
.card__meta { color: var(--muted); font-size: 0.9rem; margin-bottom: var(--space-3); }
.card__footer { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.card--link { display: block; text-decoration: none; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.card--link:hover { box-shadow: var(--shadow-lift); border-color: transparent; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 52px; padding: 0 1.6rem;
  font-family: var(--font-ui); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.02em; line-height: 1;
  border-radius: var(--radius-pill); border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink); text-decoration: none; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.button:hover { background: var(--paper); }
.button svg { width: 1.1em; height: 1.1em; flex: none; }
.button--primary, .button--dark { background: var(--pool); border-color: var(--pool); color: var(--white); }
.button--primary:hover, .button--dark:hover { background: var(--ink); border-color: var(--ink); }
.button--quiet { border-color: var(--line); }
.button--danger { border-color: var(--red-deep); color: var(--red-deep); }
.button--danger:hover { background: var(--red-deep); color: var(--white); }
.button--small { min-height: 40px; padding: 0 var(--space-4); font-size: 0.8rem; }
.button--block { width: 100%; }
.button--pearl,
.section--ink .button--primary, .section--deep .button--primary,
main > .section:first-child:not(.hero) .button--primary { background: var(--white); border-color: var(--white); color: var(--ink); }
.button--pearl:hover,
.section--ink .button--primary:hover, .section--deep .button--primary:hover,
main > .section:first-child:not(.hero) .button--primary:hover { background: var(--mist); border-color: var(--mist); color: var(--ink); }
.section--ink .button:not(.button--primary), .section--deep .button:not(.button--primary),
main > .section:first-child:not(.hero) .button:not(.button--primary) { background: transparent; color: var(--white); border-color: rgb(255 255 255 / 55%); }
.section--ink .button:not(.button--primary):hover, .section--deep .button:not(.button--primary):hover,
main > .section:first-child:not(.hero) .button:not(.button--primary):hover { border-color: var(--white); }
main > .section:first-child:not(.hero) .card .button:not(.button--primary),
main > .section:first-child:not(.hero) .crisis .button:not(.button--primary) { color: var(--ink); border-color: var(--ink); }
main > .section:first-child:not(.hero) .card .button--primary,
main > .section:first-child:not(.hero) .crisis .button--primary { background: var(--pool); border-color: var(--pool); color: var(--white); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; cursor: pointer; }
.text-link { font-family: var(--font-ui); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.02em; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- The AKILI mark: the letters, with the red "i" ---------- */
.mark { display: inline-flex; align-items: flex-end; font-family: var(--font-ui); font-weight: 600; font-size: 1.45rem; letter-spacing: 0.16em; line-height: 1; text-decoration: none; color: inherit; }
.mark__i { position: relative; display: inline-block; width: 0.3em; height: 0.74em; margin-left: 0.04em; margin-bottom: 0.02em; background: var(--akili-red); }
.mark__i::before { content: ""; position: absolute; left: 50%; top: -0.44em; width: 0.32em; height: 0.32em; border-radius: 50%; background: var(--akili-red); transform: translateX(-50%); }

/* ---------- Public header ---------- */
.site-header { background: var(--pool); color: var(--white); position: sticky; top: 0; z-index: 30; }
.site-header--overlay { position: absolute; left: 0; right: 0; background: transparent; }
.site-header__inner { display: flex; align-items: center; gap: var(--space-5); min-height: 76px; }
@media (min-width: 900px) { .site-header__inner { min-height: 96px; } }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; color: var(--white); }
.site-nav { display: none; }
.site-nav a { color: #D5DEDF; text-decoration: none; font-family: var(--font-ui); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.02em; padding: var(--space-2) 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--akili-red); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-4); }
.help-link { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-ui); font-weight: 500; font-size: 0.85rem; color: var(--white); text-decoration: none; white-space: nowrap; }
.help-link::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--akili-red); flex: none; }
.help-link svg { display: none; }
.help-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.header-book { display: none; }
.site-header .button--primary { background: var(--white); border-color: var(--white); color: var(--ink); }
.site-header .button--primary:hover { background: var(--mist); border-color: var(--mist); }
@media (min-width: 900px) {
  .site-nav { display: flex; gap: var(--space-5); margin-left: var(--space-5); }
  .header-book { display: inline-flex; }
  .menu-toggle { display: none; }
}
/* Mobile menu: a <details> element, so it works without JavaScript */
.menu-toggle { position: relative; }
.menu-toggle > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border-radius: 50%; border: 1px solid rgb(255 255 255 / 30%); color: var(--white); cursor: pointer; }
.menu-toggle > summary::-webkit-details-marker { display: none; }
.menu-toggle > summary svg { width: 22px; height: 22px; }
.menu-panel { position: absolute; right: 0; top: calc(100% + var(--space-2)); width: min(20rem, calc(100vw - 2rem)); background: var(--white); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: var(--space-3); display: grid; gap: var(--space-1); }
.menu-panel a { display: block; padding: var(--space-3) var(--space-4); border-radius: var(--radius); text-decoration: none; font-weight: 500; }
.menu-panel a:hover { background: var(--paper); }
.menu-panel .button { margin-top: var(--space-2); }
.site-header .menu-panel .button--primary { background: var(--pool); border-color: var(--pool); color: var(--white); }

/* Call / WhatsApp / Book, always within reach on phones */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgb(29 41 45 / 8%); padding: var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom)); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--space-2); }
.action-bar .button { padding: 0 var(--space-3); min-width: 0; min-height: 46px; }
.has-action-bar { padding-bottom: 78px; }
@media (min-width: 900px) { .action-bar { display: none; } .has-action-bar { padding-bottom: 0; } }

/* ---------- Home: the wellspring ---------- */
/* The ripples, with AKILI's red dot painted at their centre (static/img/ripples-*.jpg). */
.hero { position: relative; overflow: hidden; background: var(--pool); color: var(--white); }
.hero__bg { position: absolute; inset: 0; background: url("../img/ripples-1200.b4231ded6dc8.jpg") 65% 0 / auto 640px no-repeat; animation: settle 2.4s ease-out both; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(18 28 32 / 10%) 0%, rgb(18 28 32 / 10%) 36%, rgb(18 28 32 / 90%) 54%, rgb(18 28 32 / 96%) 100%); }
@media (min-width: 900px) {
  .hero__bg { background-image: url("../img/ripples-2400.086d21c31fca.jpg"); background-position: 65% 50%; background-size: cover; }
  .hero::after { background: linear-gradient(90deg, rgb(18 28 32 / 94%) 0%, rgb(18 28 32 / 82%) 34%, rgb(18 28 32 / 30%) 56%, rgb(18 28 32 / 0%) 64%); }
}
@keyframes settle { from { transform: scale(1.05); } to { transform: none; } }
.hero__inner { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; min-height: 860px; padding-block: 21rem 4.5rem; }
@media (min-width: 900px) { .hero__inner { justify-content: center; min-height: 880px; padding-block: 8rem 7rem; } }
.hero h1 { color: var(--white); max-width: 11ch; }
.hero .lead { color: #D0DADC; max-width: 34ch; margin: var(--space-6) 0; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5) var(--space-6); }
.hero__actions .text-link { color: var(--white); text-decoration-color: rgb(255 255 255 / 45%); }
.hero__note { margin: var(--space-7) 0 0; font-size: 0.85rem; color: var(--silver); max-width: 46ch; }
.hero__note a { color: #E6ECED; }

/* A sentence that sets the tone */
.statement { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) { .statement { grid-template-columns: 1.1fr 1fr; gap: 5rem; } }
.statement h2 { max-width: 15ch; margin: 0; }
.statement p { color: var(--muted); margin: 0; max-width: 44ch; }

/* Therapy and coaching, each with the real person who leads it */
.feature-split { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 900px) { .feature-split { grid-template-columns: 1fr 1fr; gap: 5rem; } .feature-split--flip > .portrait { order: 2; } }
.feature-split + .feature-split { margin-top: 7rem; }
.feature-split .who { color: var(--muted); font-size: 0.9rem; margin: -0.25rem 0 var(--space-5); max-width: 40ch; }
.feature-split p { max-width: 40ch; }
.feature-split__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5) var(--space-6); margin-top: var(--space-6); }

/* A real portrait in a round frame, with two faint rings like the ripples */
.portrait { --d: 260px; position: relative; width: var(--d); height: var(--d); margin: 2.4rem auto; }
.portrait img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; border-radius: 50%; background: var(--paper); }
.portrait::before, .portrait::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgb(30 43 48 / 16%); }
.portrait::before { inset: -18px; }
.portrait::after { inset: -38px; border-color: rgb(30 43 48 / 8%); }
@media (min-width: 900px) { .portrait { --d: 420px; margin-block: 3.5rem; } .portrait::before { inset: -26px; } .portrait::after { inset: -58px; } }

/* Who we walk with: pictures that set the mood, never presented as our rooms */
.tiles { display: grid; gap: var(--space-6); }
@media (min-width: 800px) { .tiles--three { grid-template-columns: repeat(3, 1fr); } .tiles--two { grid-template-columns: repeat(2, 1fr); } }
.tiles + .tiles { margin-top: var(--space-7); }
.tile { margin: 0; }
.tile img { display: block; width: 100%; object-fit: cover; border-radius: 2px; background: var(--paper); }
.tiles--three .tile img { aspect-ratio: 4 / 5; }
.tiles--two .tile img { aspect-ratio: 16 / 10; }
.tile h3 { margin: var(--space-4) 0 var(--space-1); }
.tile p { color: var(--muted); font-size: 0.9rem; margin: 0; max-width: 38ch; }

/* Fees, set like a quiet price list; the ripples return faintly under the water */
.section--fees { position: relative; overflow: hidden; }
.section--fees::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: url("../img/ripples-quiet-1200.2437b58d6e34.jpg") 70% 55% / cover no-repeat; opacity: 0.22;
  -webkit-mask-image: radial-gradient(90% 40% at 80% 18%, #000 0%, transparent 80%); mask-image: radial-gradient(90% 40% at 80% 18%, #000 0%, transparent 80%); }
@media (min-width: 900px) { .section--fees::before { -webkit-mask-image: radial-gradient(55% 95% at 88% 50%, #000 0%, transparent 78%); mask-image: radial-gradient(55% 95% at 88% 50%, #000 0%, transparent 78%); } }
.section--fees > .container { position: relative; }
.fees { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .fees { grid-template-columns: 0.9fr 1.4fr; gap: 5rem; } }
.fee-list { width: 100%; border-collapse: collapse; font-size: 1rem; }
.fee-list tr { border-bottom: 1px solid rgb(214 226 228 / 20%); }
.fee-list tr:first-child { border-top: 1px solid rgb(214 226 228 / 20%); }
.fee-list td { padding: 1.35rem 0; border: 0; vertical-align: baseline; background: none; }
.fee-list .fee-amount { text-align: right; font-family: var(--font-heading); font-size: clamp(1.7rem, 1.6vw + 1rem, 2.3rem); line-height: 1; white-space: nowrap; padding-left: var(--space-4); }
.fee-list .fee-amount small { font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--silver); margin-right: 0.5rem; }
.fee-list .fee-usd { text-align: right; width: 8rem; font-size: 0.85rem; color: var(--silver); }
/* On phones each fee becomes two short lines, so the dollar price stays visible */
@media (max-width: 599px) {
  .fee-list tr { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding-block: 1.1rem; }
  .fee-list td { padding: 0; }
  .fee-list .fee-usd { grid-column: 2; width: auto; padding-top: 0.4rem; }
}
.fee-note { margin: var(--space-5) 0 var(--space-4); color: var(--on-dark); font-size: 0.9rem; }

/* Need help now: the band on the home page */
.help-band { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .help-band { grid-template-columns: 1fr 1.4fr; gap: 5rem; } }
.help-band h2 { margin: 0; }
.help-band p { color: var(--on-dark); max-width: 52ch; }
.help-band__numbers { display: flex; flex-wrap: wrap; gap: var(--space-5) 3.5rem; margin: var(--space-5) 0; }
.help-band__numbers > div { flex: 1 1 13rem; max-width: 19rem; }
.help-band__numbers b { display: block; font-family: var(--font-heading); font-weight: 500; font-size: 2.3rem; line-height: 1.1; margin-bottom: var(--space-1); }
.help-band__numbers a { text-decoration: none; }
.help-band__numbers span { display: block; font-size: 0.85rem; line-height: 1.5; color: var(--silver); }

/* Features (inner pages) */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-6); }
.feature h3 { margin-bottom: var(--space-2); }
.feature p { color: var(--muted); margin: 0; }
.quote { font-family: var(--font-heading); font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); line-height: 1.3; font-weight: 500; max-width: 40rem; margin: 0; }

/* ---------- Services ---------- */
.service-card { display: flex; flex-direction: column; }
.service-card .price { font-family: var(--font-heading); font-size: 2rem; line-height: 1; margin: var(--space-4) 0 var(--space-1); }
.service-card .price-usd { color: var(--muted); font-size: 0.85rem; margin: 0 0 var(--space-3); }
.service-card__body { flex: 1; }
.service-card__facts { list-style: none; padding: 0; margin: var(--space-2) 0 var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { display: inline-flex; align-items: center; gap: var(--space-1); padding: 0.2rem 0.75rem; border-radius: var(--radius-pill); background: var(--paper); font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.service-card .contact-note { font-size: 0.85rem; color: var(--muted); margin: 0 0 var(--space-2); }
.notice { border-left: 3px solid var(--akili-red); background: var(--white); padding: var(--space-4) var(--space-5); border-radius: 0 var(--radius) var(--radius) 0; max-width: var(--text-width); color: var(--ink); }
.notice > :last-child { margin-bottom: 0; }
.notice--calm { border-left-color: var(--calm); }
.notice--amber { border-left-color: var(--amber); }

/* ---------- Team ---------- */
.person { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 700px) { .person { grid-template-columns: 16rem 1fr; gap: var(--space-7); } }
.person__photo { display: block; width: 100%; max-width: 16rem; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 2px; background: var(--paper); }
.person__title { color: var(--muted); font-size: 0.9rem; margin-bottom: var(--space-3); }

/* ---------- Crisis ---------- */
.crisis { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--akili-red); border-radius: var(--radius); padding: var(--space-6); color: var(--ink); }
.crisis h2, .crisis h3 { color: var(--ink); }
.crisis-contact { padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.crisis-contact:first-of-type { border-top: 0; }
.crisis-contact__name { font-weight: 600; margin: 0; }
.crisis-contact__hours { color: var(--muted); font-size: 0.9rem; margin: 0 0 var(--space-2); }

/* ---------- Install ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: var(--space-4); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; gap: var(--space-3); align-items: start; }
.steps li::before { content: counter(step); width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--pool); color: var(--white); display: grid; place-items: center; font-family: var(--font-ui); font-weight: 600; font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pool); color: var(--on-dark); padding: var(--space-8) 0 var(--space-6); font-size: 0.9rem; border-top: 1px solid rgb(214 226 228 / 10%); }
.site-footer a { color: var(--white); text-decoration-color: rgb(255 255 255 / 35%); }
.site-footer__grid { display: grid; gap: var(--space-6); }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--silver); margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.site-footer__legal { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid rgb(214 226 228 / 16%); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); color: var(--silver); font-size: 0.8rem; }
.footer-mark { color: var(--white); margin-bottom: var(--space-4); }
.footer-mark .mark { font-size: 1.35rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-5); max-width: 40rem; }
.field { display: grid; gap: var(--space-2); }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; }
.field .help { color: var(--muted); font-size: 0.875rem; margin: 0; }
.field .errorlist, .errorlist { list-style: none; padding: 0; margin: 0; color: var(--red-deep); font-weight: 500; font-size: 0.9rem; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--red-deep); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="time"], input[type="search"], select, textarea {
  width: 100%; min-height: 52px; padding: var(--space-3) var(--space-4);
  font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #C3CED0; border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--pool); box-shadow: 0 0 0 3px rgb(30 43 48 / 14%); border-radius: var(--radius); }
input[type="checkbox"], input[type="radio"] { width: 1.25rem; height: 1.25rem; accent-color: var(--pool); margin: 0; flex: none; }
.check { display: flex; gap: var(--space-3); align-items: flex-start; font-weight: 400; }
.check input { margin-top: 0.25rem; }
fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: grid; gap: var(--space-2); }
.checks ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.checks li label { display: flex; gap: var(--space-3); align-items: flex-start; font-weight: 400; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.code-input { font-family: var(--font-ui); font-weight: 600; font-size: 1.6rem !important; letter-spacing: 0.4em; text-align: center; max-width: 14rem; }
.formset-row { display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
@media (min-width: 800px) { .formset-row { grid-template-columns: 2fr 1.3fr 1.5fr auto; align-items: end; } }

/* ---------- Tabs, switches and time slots ---------- */
/* Tabs inside a page (Payments, the client file): one line, the current one underlined in red */
.tabs { display: flex; gap: var(--space-5); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: var(--space-6); }
.tabs::-webkit-scrollbar { display: none; }
.tabs > a { flex: none; padding: var(--space-3) 0; margin-bottom: -1px; border-bottom: 2px solid transparent; font-family: var(--font-ui); font-weight: 600; font-size: 0.85rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.tabs > a:hover { color: var(--ink); }
.tabs > a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--akili-red); }
/* A two- or three-way switch (Day | Week) */
.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-pill); background: var(--white); border: 1px solid var(--line); }
.segmented > a { padding: 0.5rem 1.1rem; border-radius: var(--radius-pill); font-family: var(--font-ui); font-weight: 600; font-size: 0.8rem; line-height: 1.2; color: var(--muted); text-decoration: none; }
.segmented > a:hover { color: var(--ink); }
.segmented > a[aria-current="page"] { background: var(--pool); color: var(--white); }
/* Free times on the booking page */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: var(--space-2); }
.slot-grid .button { min-height: 46px; padding: 0 var(--space-3); }
/* The step-by-step form's progress bar */
progress { -webkit-appearance: none; appearance: none; width: 100%; max-width: 20rem; height: 6px; border: 0; border-radius: var(--radius-pill); background: var(--line); color: var(--pool); accent-color: var(--pool); vertical-align: middle; }
progress::-webkit-progress-bar { background: var(--line); border-radius: var(--radius-pill); }
progress::-webkit-progress-value { background: var(--pool); border-radius: var(--radius-pill); }
progress::-moz-progress-bar { background: var(--pool); border-radius: var(--radius-pill); }

/* ---------- Messages and badges ---------- */
.messages { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: var(--space-2); }
.message { padding: var(--space-3) var(--space-4); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--pool); color: var(--ink); }
.message--success { border-left-color: var(--calm); }
.message--warning { border-left-color: var(--amber); }
.message--error { border-left-color: var(--red-deep); }
.badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.15rem 0.65rem; border-radius: var(--radius-pill); font-family: var(--font-ui); font-size: 0.78rem; font-weight: 600; background: var(--paper); color: var(--ink); white-space: nowrap; }
.badge::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--muted); }
.badge--calm::before { background: var(--calm); }
.badge--amber::before { background: var(--amber); }
.badge--danger { background: #FBECEB; color: var(--red-deep); }
.badge--danger::before { background: var(--red-deep); }

/* ---------- Sign-in pages ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: var(--space-6) var(--space-4); background: var(--pool) radial-gradient(900px 600px at 70% 30%, var(--pool-2) 0%, var(--pool) 70%); }
.auth__card { width: 100%; max-width: 28rem; }
.auth__card > .card { border: 0; box-shadow: var(--shadow-lift); padding: var(--space-7) var(--space-6); }
.auth__card > p, .auth__card > p a { color: var(--on-dark); }
.auth__brand { display: flex; justify-content: center; margin-bottom: var(--space-6); color: var(--white); }
.auth__brand .mark { font-size: 1.8rem; }
.qr { display: flex; justify-content: center; padding: var(--space-4); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.qr img { width: 220px; height: 220px; image-rendering: pixelated; }
.secret { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: 0.08em; background: var(--paper); padding: var(--space-3); border-radius: var(--radius); text-align: center; word-break: break-all; }

/* ---------- Staff desk: calm and light for long days, deep water at the edges ---------- */
.desk { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
@media (min-width: 960px) { .desk { flex-direction: row; } }
.desk-sidebar { display: none; }
@media (min-width: 960px) {
  .desk-sidebar { display: flex; flex-direction: column; width: 16.5rem; flex: none; background: var(--pool); color: var(--white); padding: var(--space-6) var(--space-4); position: sticky; top: 0; height: 100vh; }
}
.desk-brand { display: flex; align-items: flex-end; gap: var(--space-3); color: var(--white); text-decoration: none; padding: 0 var(--space-3) var(--space-6); }
.desk-brand .mark { font-size: 1.3rem; }
.desk-brand__label { font-family: var(--font-heading); font-size: 1.35rem; line-height: 1; color: var(--silver); }
.desk-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.desk-nav a { display: flex; align-items: center; gap: var(--space-3); padding: 0.7rem var(--space-3); border-radius: var(--radius); color: #D5DEDF; text-decoration: none; font-family: var(--font-ui); font-weight: 500; font-size: 0.9rem; }
.desk-nav a:hover { background: rgb(255 255 255 / 6%); color: var(--white); }
.desk-nav a[aria-current="page"] { background: rgb(255 255 255 / 9%); color: var(--white); box-shadow: inset 2px 0 0 var(--akili-red); }
.desk-nav svg { width: 19px; height: 19px; flex: none; opacity: 0.9; }
.desk-sidebar__foot { margin-top: auto; padding-top: var(--space-5); border-top: 1px solid rgb(214 226 228 / 16%); font-size: 0.85rem; color: var(--silver); }
.desk-sidebar__foot p { margin-bottom: var(--space-2); }
.desk-sidebar__foot .link-button, .desk-sidebar__foot a { color: var(--white); }
.desk-topbar { background: var(--pool); color: var(--white); position: sticky; top: 0; z-index: 20; }
.desk-topbar__inner { display: flex; align-items: center; gap: var(--space-3); min-height: 60px; padding: 0 var(--space-4); }
.desk-topbar img { width: 32px; height: 32px; border-radius: 8px; }
.desk-topbar a { color: var(--white); }
.desk-topbar__title { font-family: var(--font-ui); font-weight: 600; margin: 0; font-size: 0.95rem; }
@media (min-width: 960px) { .desk-topbar { display: none; } }
.desk-main { flex: 1; min-width: 0; padding: var(--space-6) var(--space-4) calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .desk-main { padding: var(--space-7) 4rem var(--space-7); } }
.desk-content { max-width: 66rem; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 2vw + 1.5rem, 3rem); margin: 0; line-height: 1; }
.page-head p { margin: var(--space-2) 0 0; color: var(--muted); }
.breadcrumb { font-size: 0.85rem; margin-bottom: var(--space-2); color: var(--muted); }
.desk .card { padding: var(--space-5); }
.desk-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--white); border-top: 1px solid var(--line); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding-bottom: env(safe-area-inset-bottom); }
.desk-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px; font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.desk-tabbar a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 2px 0 var(--akili-red); }
.desk-tabbar svg { width: 23px; height: 23px; }
@media (min-width: 960px) { .desk-tabbar { display: none; } }
.empty { text-align: center; padding: var(--space-7) var(--space-5); }
.empty svg { width: 44px; height: 44px; color: var(--silver); margin-bottom: var(--space-3); }
.empty h2 { font-size: 1.9rem; }
.empty p { color: var(--muted); max-width: 32rem; margin-left: auto; margin-right: auto; }
.list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.list > li { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.list a.list__link { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); text-decoration: none; }
.list a.list__link:hover .list__title { text-decoration: underline; text-underline-offset: 5px; }
.list__title { display: block; font-weight: 600; margin: 0; }
.list__meta { display: block; color: var(--muted); font-size: 0.875rem; margin: 0; }
.list svg { width: 1.2em; height: 1.2em; flex: none; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.checklist li { display: flex; gap: var(--space-3); align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 1.05rem; height: 1.05rem; margin-top: 0.3rem; border-radius: 50%; border: 2px solid var(--amber); }
.checklist li.done::before { background: var(--calm); border-color: var(--calm); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.85rem var(--space-4); border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-ui); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); background: var(--paper); }
tr:last-child td { border-bottom: 0; }
.htmx-indicator { opacity: 0; transition: opacity 0.2s ease; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }

/* ---------- Print ---------- */
@media print {
  .site-header, .action-bar, .site-footer, .desk-sidebar, .desk-tabbar, .desk-topbar { display: none !important; }
  body, .desk { background: var(--white); }
  main > .section:first-child:not(.hero) { background: none; color: var(--ink); }
}

/* Heading sizes for headings whose level differs from their look */
.h2 { font-size: clamp(2.2rem, 2.6vw + 1rem, 3.3rem); }
.h3 { font-size: clamp(1.55rem, 1vw + 1.15rem, 1.9rem); }
.after-grid { margin-top: var(--space-6); }
