/* AlloOK website.
   The colours come from the official logo, and the shapes follow its thick, round lines.
   To change a colour, change it here at the top. */

/* Headings: Nunito, whose rounded ends echo the logo's letters. Reading text: Atkinson Hyperlegible Next, drawn for low-vision readers. */
@font-face {
  font-family: 'Nunito';
  src: url('assets/fonts/nunito-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('assets/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
/* Atkinson's zero has a slash through it, which looks odd in times and phone numbers. Digits come from Nunito instead. */
@font-face {
  font-family: 'AlloOK Digits';
  src: url('assets/fonts/nunito-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+30-39;
}

:root {
  color-scheme: light;

  --font-head: 'Nunito', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --font-body: 'AlloOK Digits', 'Atkinson Hyperlegible Next', 'Segoe UI', system-ui, sans-serif;

  --canvas: #FFFFFF;
  --cream: #F2F1EE;
  --surface: #FFFFFF;
  --sunken: #ECEBE7;
  --border: #E2E0DB;

  /* The logo's three colours. */
  --text: #012B66;
  --primary: #FD5959;
  --warning: #FE9C02;

  --text-soft: #123A70;
  --text-secondary: #3E5272;

  /* The logo's coral is too light to carry white text, so buttons and red words use a deeper shade of it. */
  --action: #D93636;
  --action-strong: #C42B2B;
  --coral-text: #BE2A2A;
  --success: #22A355;

  /* A soft background with its matching strong colour, one pair per meaning. */
  --ok: #15803D;
  --ok-soft: #E9F8EC;
  --wait: #8F4E00;
  --wait-soft: #FFF1D6;
  --alert: #D92B2B;
  --alert-text: #BE2A2A;
  --alert-soft: #FFEFEC;
  --info: #012B66;
  --info-soft: #F1F3F7;

  /* The soft colour behind the top of every app screen. */
  --tint-peach: #FFF1DD;
  --tint-sky: #FFF6E9;
  --tint-rose: #FFDFDA;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 4px rgba(1, 43, 102, 0.1);
  
  --header-height: 72px;
  --gutter: 20px;
  --section-space: clamp(56px, 3rem + 4vw, 108px);
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 16px);
}
html.motion { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select { font: inherit; color: inherit; }
a, button, summary, label { touch-action: manipulation; -webkit-tap-highlight-color: rgba(1, 43, 102, 0.12); }
button { cursor: pointer; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 800; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.45rem + 4.1vw, 4.25rem); line-height: 1.05; font-weight: 900; letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem); line-height: 1.1; font-weight: 900; letter-spacing: -0.02em; }
h3 { font-size: 1.375rem; line-height: 1.25; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  padding: 12px 20px; border-radius: var(--radius-pill);
  background: var(--text); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

.container { width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--section-space); }

/* Bands of a quiet bone colour, nothing fading. */
.tint-sky { background: var(--cream); }

.section-head { max-width: 740px; margin-bottom: clamp(24px, 3vw, 44px); }
.section-head .lead { max-width: 58ch; margin-top: 14px; }
.lead { font-size: 1.125rem; line-height: 1.55; color: var(--text-soft); }
.muted { color: var(--text-secondary); }

/* Tones */
.tone-ok { background: var(--ok-soft); color: var(--ok); }
.tone-wait { background: var(--wait-soft); color: var(--wait); }
.tone-alert { background: var(--alert-soft); color: var(--alert-text); }
.tone-info { background: var(--info-soft); color: var(--info); }

/* Pill buttons, as round as the logo's letters: solid coral for the main action, a navy outline for the second one. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 28px;
  border: 0; border-radius: var(--radius-pill);
  font-family: var(--font-head); font-size: 1.125rem; font-weight: 800; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: background-color 0.14s ease, box-shadow 0.14s ease, color 0.14s ease;
}
.btn-primary { color: #fff; background: var(--action); }
.btn-primary:hover { background: var(--action-strong); }
.btn-secondary { color: var(--text); background: transparent; border: 2px solid var(--text); }
.btn-secondary:hover { background: var(--text); color: #fff; }
.btn-small { min-height: 44px; padding: 8px 20px; font-size: 1rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--font-head); font-weight: 800; color: var(--text);
  text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2.5px; text-underline-offset: 5px;
}
/* When a link wraps, its arrow stays beside the last word instead of drifting to the far edge. */
.text-link { display: inline-block; padding-block: 8px; }
.text-link .icon { display: inline-block; margin-left: 8px; vertical-align: -0.15em; }
.text-link:hover { color: var(--coral-text); }
.text-link .icon { transition: transform 0.15s ease; }
.text-link:hover .icon { transform: translateX(3px); }

/* The official logo. Its rays make it taller than it looks, so it gets more height than the word alone would. */
.logo { display: inline-flex; align-items: center; min-height: 44px; flex: none; text-decoration: none; line-height: 0; }
.logo-img { width: 129px; height: 52px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--canvas); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-height); }
.main-nav { display: none; margin-inline: auto; gap: 4px; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  font-family: var(--font-head); font-size: 1.125rem; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current='true'] { text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2.5px; text-underline-offset: 6px; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-cta { display: none; white-space: nowrap; }
.header-cta.support-link { border-width: 1px; }

/* The app's segmented control: navy for the selected choice. */
.segmented {
  display: inline-flex; gap: 4px; padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--sunken);
}
.segmented button {
  min-height: 44px; padding: 0 20px;
  border: 0; border-radius: var(--radius-pill); background: transparent;
  font-family: var(--font-head); font-weight: 800; color: var(--text-secondary);
  transition: background-color 0.14s ease, color 0.14s ease;
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed='true'],
.segmented button[aria-selected='true'] { background: var(--text); color: #fff; }
.lang-switch button { min-width: 44px; min-height: 40px; padding: 0 10px; font-size: 1rem; }

.menu-toggle {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: var(--radius-pill); background: var(--sunken); color: var(--text);
}
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded='true'] .icon-open { display: none; }
.menu-toggle[aria-expanded='true'] .icon-close { display: block; }

.mobile-nav { padding: 4px var(--gutter) max(20px, env(safe-area-inset-bottom)); display: grid; background: var(--canvas); max-height: calc(100dvh - var(--header-height) - 1px); overflow-y: auto; overscroll-behavior: contain; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px;
  border-top: 1px solid var(--border); font-family: var(--font-head); font-weight: 800; color: var(--text); text-decoration: none;
}
.mobile-nav .icon { color: var(--text-secondary); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(30px, 4vw, 64px) clamp(42px, 5vw, 76px); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(26px, 4vw, 56px); align-items: center; }
.hero-lead { margin-top: 18px; max-width: 49ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-status {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px;
  color: var(--text-secondary); font-size: 1rem; font-weight: 700; text-underline-offset: 4px;
}
.hero-status:hover { color: var(--coral-text); }
.proof { display: grid; gap: 8px; margin-top: 18px; color: var(--text-soft); }
.proof li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }

/* Status marks: a solid circle with a white icon, the way the app shows them. */
.mark { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; flex: none; border-radius: 50%; color: #fff; }
.mark .icon { width: 62%; height: 62%; stroke-width: 3; }
.mark-ok { background: var(--success); }

/* In lists, just the logo's amber check, with no circle. */
.proof .mark { width: 1.4em; height: 1.4em; background: none; color: var(--warning); }
.proof .mark .icon { width: 100%; height: 100%; stroke-width: 3.4; }

.hero-art {
  position: relative; overflow: hidden;
  width: min(100%, 530px); margin-inline: auto; aspect-ratio: 5 / 6;
  border-radius: 24px; background: #F9D7B5;
}
.hero-art > img { width: 100%; height: 100%; object-fit: cover; object-position: bottom; }
.hero-story { position: absolute; inset: 16px 16px auto; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 86%; padding: 12px 16px; border-radius: 18px; font-size: 1rem; line-height: 1.4; }
.bubble small { display: block; margin-bottom: 2px; font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); }
.bubble-in { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 6px; }
.bubble-out { display: inline-flex; align-items: center; gap: 6px; align-self: flex-end; padding: 8px 16px; background: var(--text); color: #fff; font-family: var(--font-head); font-weight: 800; border-bottom-right-radius: 6px; }
.bubble-out .icon { width: 1.05em; height: 1.05em; stroke-width: 3; }
.status-card {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border-radius: var(--radius-md); background: var(--surface);
}
.status-card img { width: 56px; height: 56px; flex: none; border-radius: 50%; }
.status-card strong { display: block; font-family: var(--font-head); font-size: 1.125rem; font-weight: 800; line-height: 1.2; }
.status-line { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 1rem; line-height: 1.3; }
.status-line b { display: block; color: var(--ok); font-weight: 600; }

@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 14px 28px; }
.step-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding-top: 18px; border-top: 1px solid var(--border); }
.step-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); }
.step-icon .icon { width: 30px; height: 30px; }
.step-card h3 { font-size: 1.375rem; }
.step-card p { margin-top: 6px; color: var(--text-soft); line-height: 1.5; }

.example-disclosure {
  margin-top: clamp(26px, 4vw, 48px); border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--surface);
}
.example-disclosure > summary { padding-inline: clamp(16px, 3vw, 24px); }
.example { display: grid; gap: 24px; padding: clamp(16px, 3vw, 24px); border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-md) var(--radius-md); background: var(--cream); }
.example-intro > p { margin-top: 10px; color: var(--text-soft); }
.example-intro h3 { font-size: 1.625rem; }
.example .segmented { display: flex; margin-top: 20px; background: var(--surface); }
.example .segmented button { flex: 1; min-height: 48px; padding: 4px 10px; line-height: 1.25; }

.notice { margin-top: 16px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--surface) !important; color: var(--text-soft) !important; }
.notice strong { display: block; font-family: var(--font-head); font-size: 1.125rem; font-weight: 800; color: var(--text); line-height: 1.3; }
.notice p { margin: 4px 0 0; font-size: 1rem; line-height: 1.5; color: var(--text-soft); }
.example-note { color: var(--text-soft) !important; font-size: 1rem; line-height: 1.5; }
.example-intro .notice + .example-note { margin-top: 12px; }

/* The morning as a plain schedule: the time, what happens, and the message itself as a text bubble. */
.moment { display: grid; gap: 2px 16px; padding-block: 14px; }
.moment:first-child { padding-top: 0; }
.moment-time { font-family: var(--font-head); font-size: 1.125rem; font-weight: 900; line-height: 1.3; white-space: nowrap; color: var(--coral-text); font-variant-numeric: tabular-nums; }
.moment-body { min-width: 0; }
.moment strong { display: block; font-family: var(--font-head); font-size: 1.125rem; font-weight: 800; line-height: 1.3; }
.words {
  margin-top: 8px; padding: 10px 14px;
  border-radius: 16px; border-bottom-left-radius: 4px;
  background: var(--surface); font-size: 1rem; line-height: 1.45; color: var(--text-soft);
}

/* ---------- Phones: the app's screens, drawn in HTML so they stay sharp and translate. --u is one point on a 300-wide phone. ---------- */
.phone {
  --pw: 300px;
  --u: calc(var(--pw) / 300);
  position: relative; flex: none;
  width: var(--pw); height: calc(640 * var(--u));
  padding: calc(9 * var(--u));
  border-radius: calc(46 * var(--u));
  background: #0E1F3D;
  box-shadow: inset 0 0 0 calc(2 * var(--u)) #2C3E60;
}
.phone-island {
  position: absolute; z-index: 3; top: calc(19 * var(--u)); left: 50%;
  width: calc(82 * var(--u)); height: calc(22 * var(--u)); margin-left: calc(-41 * var(--u));
  border-radius: calc(12 * var(--u)); background: #0E1F3D;
}
.screen {
  --screen-tint: var(--tint-sky);
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: calc(37 * var(--u));
  background: var(--canvas); color: var(--text);
  font-size: calc(13.5 * var(--u)); line-height: 1.38;
}
.screen::before { content: ''; position: absolute; z-index: -1; inset: 0 0 auto; height: calc(250 * var(--u)); background: linear-gradient(var(--screen-tint), var(--canvas)); }
.screen[data-tint='rose'] { --screen-tint: var(--tint-rose); }
.screen[data-tint='peach'] { --screen-tint: var(--tint-peach); }

.screen-top {
  display: flex; justify-content: space-between; align-items: center; flex: none;
  height: calc(40 * var(--u)); padding: calc(8 * var(--u)) calc(22 * var(--u)) 0;
  font-size: calc(11.5 * var(--u)); font-weight: 600;
}
.screen-top i { display: block; width: calc(22 * var(--u)); height: calc(10 * var(--u)); border-radius: calc(3 * var(--u)); background: var(--text); opacity: 0.8; }
.screen-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: calc(10 * var(--u)); padding: calc(4 * var(--u)) calc(14 * var(--u)) calc(12 * var(--u)); }
.screen-center { text-align: center; }

.s-brand { display: flex; align-items: center; min-height: calc(36 * var(--u)); }
.s-logo { width: calc(82 * var(--u)); height: auto; }
.s-bell { position: relative; margin-left: auto; line-height: 0; }
.s-bell .icon { width: calc(21 * var(--u)); height: calc(21 * var(--u)); }
.s-bell.on::after { content: ''; position: absolute; top: 0; right: 0; width: calc(9 * var(--u)); height: calc(9 * var(--u)); border-radius: 50%; background: var(--alert); box-shadow: 0 0 0 calc(2 * var(--u)) var(--surface); }
.s-display { font-family: var(--font-head); font-size: calc(22 * var(--u)); line-height: 1.18; font-weight: 800; }
.s-title { font-family: var(--font-head); font-size: calc(19 * var(--u)); line-height: 1.2; font-weight: 800; }
.s-label { font-size: calc(12.5 * var(--u)); font-weight: 600; }
.s-head { font-family: var(--font-head); font-size: calc(15 * var(--u)); font-weight: 800; }
.s-muted { color: var(--text-secondary); }
.s-small { font-size: calc(11.5 * var(--u)); line-height: 1.35; }

.s-card { border-radius: calc(16 * var(--u)); background: var(--surface); box-shadow: var(--shadow-sm); padding: calc(12 * var(--u)); }
.s-hero { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(12 * var(--u)); border-radius: calc(16 * var(--u)); }
.s-hero img { width: calc(58 * var(--u)); height: calc(58 * var(--u)); flex: none; border-radius: 50%; box-shadow: 0 0 0 calc(2.5 * var(--u)) #fff; }
.s-name { font-family: var(--font-head); font-size: calc(19 * var(--u)); line-height: 1.2; font-weight: 800; color: var(--text); }
.s-status { display: flex; align-items: center; gap: calc(6 * var(--u)); margin-top: calc(3 * var(--u)); font-size: calc(12 * var(--u)); line-height: 1.3; color: var(--text); }
.s-status b { display: block; font-weight: 600; }
.s-mark { display: grid; place-items: center; width: calc(22 * var(--u)); height: calc(22 * var(--u)); flex: none; border-radius: 50%; color: #fff; }
.s-mark .icon { width: 60%; height: 60%; stroke-width: 3; }
.s-mark.ok { background: var(--success); }
.s-mark.bad { background: var(--alert); }
.s-mark.wait { background: var(--wait-soft); box-shadow: inset 0 0 0 calc(3 * var(--u)) var(--warning); }
.s-mark.wait::after { content: ''; width: 40%; height: 40%; border-radius: 50%; background: #fff; }
.s-allgood { display: flex; align-items: center; gap: calc(9 * var(--u)); }
.s-allgood b { display: block; font-size: calc(14 * var(--u)); line-height: 1.25; }

.s-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: calc(8 * var(--u)); }
.s-tile {
  display: grid; justify-items: center; align-content: center; gap: calc(5 * var(--u)); min-height: calc(68 * var(--u));
  border-radius: calc(16 * var(--u)); background: var(--info-soft); 
  font-size: calc(12 * var(--u)); font-weight: 600; text-align: center;
}
.s-tile .icon { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.c-info { color: var(--info); }
.c-ok { color: var(--text); }
.c-extra { color: var(--text); }
.c-wait { color: var(--text); }
.c-alert { color: var(--alert); }

.s-btn {
  display: flex; align-items: center; justify-content: center; gap: calc(7 * var(--u));
  width: 100%; min-height: max(44px, calc(44 * var(--u))); padding: calc(6 * var(--u)) calc(12 * var(--u));
  border: 0; border-radius: var(--radius-pill);
  font-family: var(--font-head); font-size: calc(14.5 * var(--u)); font-weight: 800; line-height: 1.2;
}
.s-btn .icon { width: calc(17 * var(--u)); height: calc(17 * var(--u)); stroke-width: 2.4; }
.s-btn-primary { color: #fff; background: var(--action); }
.s-btn-primary:hover { background: var(--action-strong); }
.s-btn-soft { color: var(--alert-text); background: var(--alert-soft); }
.s-btn-soft:hover { background: #FFE0DB; }
.s-btn-line { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border); }

.s-notice { display: flex; gap: calc(8 * var(--u)); padding: calc(10 * var(--u)) calc(11 * var(--u)); border-radius: calc(14 * var(--u)); font-size: calc(11.5 * var(--u)); line-height: 1.35; color: var(--text-soft); }
.s-notice > .icon { width: calc(17 * var(--u)); height: calc(17 * var(--u)); margin-top: calc(1 * var(--u)); }
.s-notice b { display: block; color: var(--text); font-size: calc(12.5 * var(--u)); }

.s-steps { display: grid; gap: calc(6 * var(--u)); }
.s-step { display: flex; align-items: center; gap: calc(9 * var(--u)); padding: calc(8 * var(--u)) calc(10 * var(--u)); border-radius: calc(13 * var(--u)); background: var(--surface); box-shadow: var(--shadow-sm); font-size: calc(12 * var(--u)); line-height: 1.25; }
.s-step b { display: block; font-weight: 600; }
.s-step-n { display: grid; place-items: center; width: calc(24 * var(--u)); height: calc(24 * var(--u)); flex: none; border-radius: 50%; font-size: calc(11.5 * var(--u)); font-weight: 700; }

.s-bigbell { display: grid; place-items: center; flex: none; width: calc(52 * var(--u)); height: calc(52 * var(--u)); margin: calc(2 * var(--u)) auto 0; border-radius: 50%; background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.s-bigbell .icon { width: calc(28 * var(--u)); height: calc(28 * var(--u)); }
.s-bigbell.red { color: var(--alert-text); }
.s-alert-title { font-family: var(--font-head); color: var(--alert-text); font-size: calc(21 * var(--u)); line-height: 1.18; font-weight: 900; text-align: center; }
.s-alert-sub { margin-top: calc(-6 * var(--u)); font-size: calc(12.5 * var(--u)); text-align: center; color: var(--text-soft); }
.s-track { display: grid; gap: calc(9 * var(--u)); }
.s-track > div { display: flex; align-items: center; gap: calc(9 * var(--u)); font-size: calc(12 * var(--u)); line-height: 1.25; }
.s-track b { display: block; font-weight: 600; }
.s-track span.s-muted { font-size: calc(11.5 * var(--u)); }

.s-thanks { display: grid; justify-items: center; gap: calc(5 * var(--u)); padding: calc(16 * var(--u)) calc(12 * var(--u)); border-radius: calc(16 * var(--u)); background: var(--ok-soft); text-align: center; }
.s-thanks .s-mark { width: calc(54 * var(--u)); height: calc(54 * var(--u)); }

.s-push { margin-top: auto; }
/* An alert fills the whole screen in the app, with no tab bar. */
.screen[data-tint='rose'] .tabbar { display: none; }

/* The app's bottom tabs. */
.tabbar { display: grid; grid-template-columns: repeat(4, 1fr); flex: none; padding: calc(7 * var(--u)) calc(4 * var(--u)) calc(12 * var(--u)); background: var(--surface); box-shadow: 0 -1px 0 var(--border); color: var(--text-secondary); }
.tabbar span { display: grid; justify-items: center; gap: calc(2 * var(--u)); font-size: calc(9.5 * var(--u)); font-weight: 500; line-height: 1.2; }
.tabbar .icon { width: calc(19 * var(--u)); height: calc(19 * var(--u)); }
.tabbar .on { color: var(--text); font-weight: 800; }
.tabbar span:not(.on) .icon { opacity: 0.75; }

/* History screen */
.s-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(2 * var(--u)); padding: calc(3 * var(--u)); border-radius: var(--radius-pill); background: var(--surface); box-shadow: var(--shadow-sm); font-size: calc(11 * var(--u)); text-align: center; color: var(--text-secondary); font-weight: 500; }
.s-seg span { padding: calc(5 * var(--u)) 0; border-radius: var(--radius-pill); }
.s-seg .on { background: var(--text); color: #fff; font-weight: 600; }
.s-month { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: calc(14 * var(--u)); }
.s-month .icon { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.s-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(6 * var(--u)); }
.s-stat { padding: calc(7 * var(--u)) calc(3 * var(--u)); border-radius: calc(13 * var(--u)); text-align: center; color: var(--text); font-size: calc(10 * var(--u)); line-height: 1.2; font-weight: 500; }
.s-stat b { display: flex; align-items: center; justify-content: center; gap: calc(3 * var(--u)); font-size: calc(17 * var(--u)); line-height: 1.2; font-weight: 700; }
.s-stat .s-mark { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
.s-stat .icon.flame { width: calc(15 * var(--u)); height: calc(15 * var(--u)); color: var(--warning); fill: var(--warning); }
.s-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: calc(2 * var(--u)) 0; padding: calc(9 * var(--u)) calc(7 * var(--u)); justify-items: center; }
.s-cal .wd { font-size: calc(9 * var(--u)); font-weight: 500; color: var(--text-secondary); padding-bottom: calc(2 * var(--u)); }
.s-day { display: grid; justify-items: center; gap: calc(1 * var(--u)); min-height: calc(31 * var(--u)); font-size: calc(9.5 * var(--u)); line-height: calc(13 * var(--u)); color: var(--text-soft); }
.s-day i { display: grid; place-items: center; width: calc(15 * var(--u)); height: calc(15 * var(--u)); border-radius: 50%; color: #fff; }
.s-day i .icon { width: 66%; height: 66%; stroke-width: 3.2; }
.s-day.ok i { background: var(--success); }
.s-day.late i { background: var(--warning); }
.s-day.no i { background: var(--alert); }
.s-day.today span { display: grid; place-items: center; width: calc(15 * var(--u)); height: calc(15 * var(--u)); border-radius: 50%; box-shadow: inset 0 0 0 calc(1.2 * var(--u)) var(--info); color: var(--info); font-weight: 700; }
.s-row { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(11 * var(--u)) calc(12 * var(--u)); border-radius: calc(14 * var(--u)); background: var(--surface); box-shadow: var(--shadow-sm); font-size: calc(12.5 * var(--u)); font-weight: 600; line-height: 1.25; }
.s-row > .icon:first-child { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.s-row small { margin-left: auto; font-size: calc(11 * var(--u)); font-weight: 500; color: var(--text-secondary); }
.s-row .go { margin-left: auto; width: calc(14 * var(--u)); height: calc(14 * var(--u)); color: var(--text-secondary); }
.s-row small + .go { margin-left: 0; }
.s-person { display: flex; align-items: center; gap: calc(9 * var(--u)); padding: calc(8 * var(--u)) calc(10 * var(--u)); border-radius: calc(14 * var(--u)); background: var(--surface); box-shadow: var(--shadow-sm); font-size: calc(11.5 * var(--u)); line-height: 1.25; }
.s-person b { display: block; font-size: calc(13 * var(--u)); }
.s-person img, .s-initial { width: calc(34 * var(--u)); height: calc(34 * var(--u)); flex: none; border-radius: 50%; }
.s-initial { display: grid; place-items: center; font-family: var(--font-head); font-size: calc(15 * var(--u)); font-weight: 900; color: #fff; }
.s-initial.a { background: var(--warning); color: var(--text); }
.s-initial.b { background: var(--text); }
.s-initial.c { background: var(--action); }
.s-person > .icon { margin-left: auto; width: calc(16 * var(--u)); height: calc(16 * var(--u)); color: var(--info); }
.s-person > .go { color: var(--text-secondary); }
.s-scene { flex: 1; min-height: 0; margin: 0 calc(-14 * var(--u)) calc(-12 * var(--u)); position: relative; overflow: hidden; }
.s-scene img { position: absolute; inset: auto 0 0; width: 100%; }
.s-scene::before { content: ''; position: absolute; inset: 0 0 auto; height: 60%; z-index: 1; background: linear-gradient(var(--canvas), rgba(255, 255, 255, 0)); }

/* ---------- Try it ---------- */
.try-grid { display: grid; gap: clamp(28px, 4vw, 48px); }
.try-copy .lead { max-width: 46ch; margin-top: 14px; }
.try-copy .actions { margin-top: 24px; }
.try-copy .btn { min-height: 52px; font-size: 1.0625rem; padding-inline: 22px; }
.btn-quiet { background: transparent; color: var(--text-secondary); padding-inline: 14px !important; }
.btn-quiet:hover { color: var(--text); }
.try-note { margin-top: 24px; padding: 0; }
.try-note p { margin: 0; }
.try-disclaimer { margin-top: 14px; font-size: 1rem; color: var(--text-secondary); }
.try-phones { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 28px 24px; }
.try-phone { display: grid; justify-items: center; gap: 12px; }
.try-phone .phone { --pw: min(300px, calc(100vw - 72px)); }
.phone-label { font-family: var(--font-head); font-weight: 800; font-size: 1.0625rem; }
.try-phone .demo-reset { display: flex; margin: 8px auto 0; }
#demo-family:focus { outline: 3px solid var(--text); outline-offset: 3px; }
.view { display: flex; flex-direction: column; gap: calc(10 * var(--u)); flex: 1; min-height: 0; }
.motion .view { animation: rise 0.28s ease both; }

/* ---------- The app ---------- */
/* On a phone the tabs show one screen at a time; from tablets up, they are all on the page. */
.gallery-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 24px; padding: 4px; border-radius: 24px; background: var(--surface); }
.gallery-tabs button { padding-inline: 8px; }
.gallery { display: grid; gap: 48px; }
.gallery.tabbed .shot:not(.on) { display: none; }
.shot { min-width: 0; }
/* Shorter than a real phone, so a screen with little on it is not half blank. */
.shot .phone { --pw: min(300px, calc(100vw - 72px)); height: calc(540 * var(--u)); margin-inline: auto; }
.shot h3 { margin-top: 24px; font-size: 1.375rem; }
.shot > p { margin-top: 4px; line-height: 1.5; color: var(--text-soft); }

/* ---------- Features ---------- */
.features { display: grid; gap: 26px 36px; }
.feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-content: start; }
.feature-icon { grid-row: span 2; }
.feature-icon .icon { width: 34px; height: 34px; }
.feature p { margin-top: 6px; color: var(--text-soft); line-height: 1.5; }

/* ---------- AlloOK Home ---------- */
/* A pale field for the device, with a sticky view beside the features on wide screens. */
.home-band { padding-block: var(--section-space); background: var(--cream); }
.home-band .lead { max-width: 52ch; margin-top: 14px; }
.home-grid { position: relative; }
.home-view {
  margin: 24px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 12px;
}
.home-figure { position: relative; aspect-ratio: 6 / 5; max-height: 52svh; width: 100%; margin-inline: auto; }
.home-figure img, .home-figure canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.home-figure canvas { opacity: 0; cursor: grab; touch-action: pan-y; }
.home-figure canvas:active { cursor: grabbing; }
.home-figure.is-live canvas { opacity: 1; transition: opacity 0.4s ease; }
.home-figure.is-live img { opacity: 0; transition: opacity 0.4s ease; }
.home-under { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 16px; margin-top: 4px; }
.home-note { font-size: 1rem; font-weight: 700; }
.home-motion { min-height: 44px; padding: 0; border: 0; background: none; font-weight: 500; font-size: 1rem; text-decoration: underline; text-underline-offset: 4px; }
.home-motion:hover { color: var(--coral-text); }
.home-live { min-height: 1.5em; font-size: 1rem; line-height: 1.5; font-weight: 500; color: var(--coral-text); }
.home-live:empty { min-height: 0; }
.home-list { margin-top: 24px; }
.home-list-label { margin-bottom: 8px; font-family: var(--font-head); font-size: 1.125rem; font-weight: 800; }
.home-list ul { display: grid; gap: 4px; margin-inline: -14px; }
.home-feature {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start;
  width: 100%; min-height: 68px; padding: 12px 14px;
  border: 0; border-radius: var(--radius-md); background: transparent; color: var(--text); text-align: left;
  transition: background-color 0.14s ease;
}
.home-feature:disabled { cursor: default; }
.home-feature:not(:disabled):hover { background: #fff; }
.home-feature[aria-pressed='true'] { background: var(--text); color: #fff; }
.home-feature > .icon { width: 32px; height: 32px; }
.home-feature b { display: block; font-family: var(--font-head); font-size: 1.125rem; font-weight: 800; line-height: 1.25; }
.home-feature b + span { display: block; margin-top: 2px; font-size: 1rem; line-height: 1.45; color: var(--text-soft); }
.home-feature[aria-pressed='true'] b + span { color: #E4EBF6; }
.home-hint { margin-top: 18px; font-size: 1rem; color: var(--text-soft); }
.home-list .text-link { margin-top: 14px; }
.home-foot { margin-top: 10px; font-size: 1rem; color: var(--text-soft); }

/* ---------- Availability ---------- */
.availability-grid { display: grid; gap: 16px 24px; }
.availability-card {
  display: grid; align-content: start; justify-items: start; gap: 12px;
  padding: clamp(20px, 3vw, 36px); border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--canvas);
}
.availability-card#early-access { background: var(--cream); }
.availability-card h3 { font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem); }
.availability-card p { color: var(--text-soft); }
.availability-card .availability-status {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--wait-soft); color: var(--wait); font-size: 1rem; font-weight: 700;
}
.availability-card .price-note { color: var(--text-secondary); font-size: 1rem; }

/* ---------- FAQ ---------- */
#faq > .container { display: grid; gap: 24px 48px; }
.faq-head { max-width: 48ch; }
.faq-head .lead { margin-top: 14px; }
.faq-head .text-link { margin-top: 14px; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item p { max-width: 68ch; padding: 0 24px 18px 0; line-height: 1.55; color: var(--text-soft); }

/* Shared disclosure controls for the example and the FAQ. */
:is(.example-disclosure, .faq-item) > summary {
  display: flex; align-items: center; gap: 16px; min-height: 56px; padding-block: 14px;
  list-style: none; cursor: pointer; font-family: var(--font-head); font-size: 1.125rem; font-weight: 800; line-height: 1.35;
}
:is(.example-disclosure, .faq-item) > summary::-webkit-details-marker { display: none; }
:is(.example-disclosure, .faq-item) > summary::after {
  content: ''; width: 9px; height: 9px; flex: none; margin-inline: auto 4px;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg);
}
:is(.example-disclosure, .faq-item) > summary:hover { color: var(--coral-text); }
:is(.example-disclosure, .faq-item)[open] > summary::after { transform: translateY(2px) rotate(225deg); }

/* ---------- Support ---------- */
.support { padding-top: 0; }
.support-grid {
  display: grid; gap: 20px 40px; align-items: center;
  padding: clamp(22px, 4vw, 48px); border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--cream);
}
.support .lead { max-width: 52ch; margin-top: 12px; }
.support-actions { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.support-actions .btn { min-height: 52px; padding-inline: 20px; }
.support-actions > * { max-width: 100%; overflow-wrap: anywhere; }
.support-actions p { color: var(--text-secondary); font-size: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--text); color: #D6E0F0; padding-block: clamp(44px, 5vw, 72px) 24px; }
.footer-top { display: grid; gap: 32px; }
.footer-brand p { margin-top: 12px; max-width: 26em; line-height: 1.5; }
.footer-logo { width: min(100%, 196px); height: auto; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-links h2 { margin-bottom: 8px; font-size: 1rem; font-weight: 800; letter-spacing: 0; color: #B6C6DE; }
.footer-links a { display: flex; align-items: center; min-height: 44px; padding-block: 8px; color: #fff; text-decoration: none; font-weight: 500; line-height: 1.35; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  margin-top: 28px; padding-top: 18px; border-top: 1px solid #ffffff40; font-size: 1rem; line-height: 1.5;
}
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 500; }
.site-footer :focus-visible { outline-color: #fff; }

/* Reveal sections as they enter the viewport, and show them immediately on keyboard focus. */
@media (prefers-reduced-motion: no-preference) {
  .motion.ready [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.25, 1); }
  .motion.ready [data-reveal].in, .motion.ready [data-reveal]:focus-within { opacity: 1; transform: none; }
  .motion.ready [data-reveal]:focus-within { transition: none; }
}

@media (max-width: 479px) {
  .hero .actions { display: grid; gap: 10px; margin-top: 22px; }
  .hero .actions .btn { min-height: 52px; padding-inline: 18px; }
}

/* ---------- Bigger screens ---------- */
@media (min-width: 560px) {
  .hero-story { inset: 22px 22px auto; gap: 12px; }
  .bubble { max-width: 80%; }
  .status-card { padding: 14px; max-width: 420px; }
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  body { font-size: 1.125rem; }
  .lead { font-size: 1.25rem; }
  .proof { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 20px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-tabs { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 56px 32px; }
  .gallery.tabbed .shot:not(.on) { display: block; }
  .shot .phone { --pw: 288px; }
  .availability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .moment { grid-template-columns: 5.4em minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .try-phones { gap: 24px; }
  .try-phone .phone { --pw: 288px; }
}

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.25rem, 5.4vw - 0.2rem, 4.25rem); }
  .hero .proof { grid-template-columns: 1fr; }
  .home-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
  .home-head { grid-column: 2; }
  .home-view { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: calc(var(--header-height) + 32px); margin: 0; padding: 0; }
  .home-figure { aspect-ratio: 1 / 1; max-height: min(74svh, 660px); }
  .home-list { grid-column: 2; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .example { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
  .example-intro { position: sticky; top: calc(var(--header-height) + 24px); }
  #faq > .container { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}

@media (min-width: 1120px) {
  .main-nav { display: flex; }
  .header-actions { margin-left: 0; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
  .try-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
  .try-phones { flex-wrap: nowrap; }
}

@media (min-width: 1200px) {
  .try-phone .phone { --pw: 300px; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .shot .phone { --pw: 272px; }
}

/* The narrowest phones. */
@media (max-width: 374px) {
  .site-header .logo-img { width: 104px; height: 42px; }
  .header-actions { gap: 6px; }
  .hero h1 { font-size: clamp(2rem, 9.6vw, 2.25rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .try-phones, .home-view, .gallery-tabs { display: none; }
}
