/* ==========================================================================
   ima: waitlist site
   Colours, glass, type and shapes come from the app prototype's Dawn appearance
   (src/styles/tokens.css): matte milky glass for cards, clearer glass for a few
   heroes, brighter inner surfaces for rows, Dawn's dark-blue text, and the Dawn
   atmosphere (assets/background-dawn.svg) behind everything. Light only.
   ========================================================================== */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/poppins-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/poppins-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/poppins-600-latin.woff2") format("woff2");
}
/* Comfortaa: the app's wordmark ("ima" in running text), as in the app */
@font-face {
  font-family: "Comfortaa";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/comfortaa-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;

  /* Dawn text (prototype revision 12): dark blue, not black */
  --ink: #24313D;
  --ink-2: #3F4C59;
  --ink-3: #56636F;
  --link: #1F5E73;

  /* The fresh palette */
  --pink: #F2667E;
  --pink-ink: #B02F49;
  --blush: #FDE8EC;
  --green: #5E9440;
  --green-ink: #3B6628;
  --lime: #DDF3C3;
  --blue: #4F95AE;
  --blue-ink: #245E72;
  --sky: #CFE6EC;
  --ice: #EAF4F7;
  --fibre: #8CC063;
  --fluid: #93CBDD;
  --energy: #F2667E;

  /* Status, always with a word */
  --check: #8C480E;
  --check-bg: #FBE8D2;
  --avoid: #A83220;
  --avoid-bg: #FBE2DA;
  --safe: #2E6A45;
  --safe-bg: #E3F1E6;
  --danger: #B3261E;
  --danger-bg: #FFF1EE;
  --danger-line: #EDB3A5;

  /* Materials: background → milky widget → clearer hero glass → bright inner rows */
  --milk: rgba(255, 255, 255, 0.6);
  --milk-blur: blur(28px) saturate(145%);
  --milk-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.92), inset 0 0 0 0.5px rgba(255, 255, 255, 0.7), 0 0 0 0.5px rgba(36, 49, 61, 0.085), 0 1px 2px rgba(36, 49, 61, 0.045), 0 12px 26px -16px rgba(36, 49, 61, 0.24), 0 26px 50px -36px rgba(36, 49, 61, 0.2);
  --clear: rgba(255, 255, 255, 0.3);
  --clear-blur: blur(18px) saturate(160%);
  --clear-shadow: inset 1.2px 1.2px 0 rgba(255, 255, 255, 0.95), inset -1px -1px 0 rgba(255, 255, 255, 0.4), inset 0 0 0 0.5px rgba(255, 255, 255, 0.6), 0 0 0 0.5px rgba(36, 49, 61, 0.1), 0 2px 5px rgba(36, 49, 61, 0.05), 0 24px 50px -28px rgba(36, 49, 61, 0.38);
  --inner: rgba(255, 255, 255, 0.72);
  --inner-edge: inset 0 0 0 0.5px rgba(255, 255, 255, 0.95), 0 0 0 0.5px rgba(36, 49, 61, 0.07), 0 1px 1px rgba(36, 49, 61, 0.03), 0 3px 9px -5px rgba(36, 49, 61, 0.14);
  --float-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 0.5px rgba(255, 255, 255, 0.6), 0 0 0 0.5px rgba(36, 49, 61, 0.1), 0 2px 6px -2px rgba(36, 49, 61, 0.08), 0 24px 44px -20px rgba(36, 49, 61, 0.34);
  --line: rgba(36, 49, 61, 0.09);

  --font: "Poppins", -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-soft: "Comfortaa", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --r-card: 34px;
  --r-inner: 18px;
  --focus: 0 0 0 3px rgba(79, 149, 174, 0.55);

  --gutter: 20px;
  --nav-h: 60px;
}

/* ------------------------------------------------------------------ Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 92px;
  background: #F7F9F7;
}
@media (prefers-reduced-motion: no-preference) {
  html.is-smooth { scroll-behavior: smooth; }
}

body {
  margin: 0;
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); }
main { display: block; }

::selection { background: rgba(147, 203, 221, 0.45); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  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 {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip:focus { transform: none; }

svg.icon { width: 1.15em; height: 1.15em; flex: none; }

/* "ima" in running text: the app's wordmark face, a touch larger so it sits with Poppins */
.wordmark { font-family: var(--font-soft); font-weight: 600; letter-spacing: 0; }

.wrap {
  width: min(100% - var(--gutter) * 2, 1180px);
  margin-inline: auto;
}

/* The Dawn atmosphere, fixed behind the page like the app's own background.
   (A fixed element rather than background-attachment, which iOS ignores.) */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #F7F9F7 url("../assets/background-dawn.svg") center / cover no-repeat;
  pointer-events: none;
}

/* The app's people: glowing spheres, never letters or faces */
.sphere {
  position: relative;
  display: inline-block;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.42) 26%, rgba(255, 255, 255, 0) 50%), var(--sp-body);
  box-shadow: inset 0 -4px 8px -4px var(--sp-shade), 0 0 8px 1px var(--sp-glow), 0 0 16px 3px var(--sp-halo);
}
.sphere--mum { --sp-body: radial-gradient(circle at 58% 68%, #A6D679 0%, #CBEAA6 48%, #EDF8E0 100%); --sp-shade: rgba(62, 102, 40, 0.3); --sp-glow: rgba(178, 222, 130, 0.6); --sp-halo: rgba(214, 242, 180, 0.5); }
.sphere--girl { --sp-body: radial-gradient(circle at 58% 68%, #F29CB0 0%, #F8C6D2 48%, #FFEFF3 100%); --sp-shade: rgba(176, 47, 73, 0.24); --sp-glow: rgba(246, 164, 182, 0.58); --sp-halo: rgba(255, 214, 224, 0.5); }
.sphere--boy { --sp-body: radial-gradient(circle at 58% 68%, #80BCD3 0%, #BADCE9 48%, #EBF6FA 100%); --sp-shade: rgba(36, 94, 114, 0.24); --sp-glow: rgba(147, 203, 221, 0.62); --sp-halo: rgba(206, 232, 242, 0.5); }
.sphere--baby { --sp-body: radial-gradient(circle at 24% 74%, rgba(242, 146, 170, 0.95) 0%, rgba(242, 146, 170, 0) 60%), radial-gradient(circle at 78% 66%, rgba(128, 188, 211, 0.95) 0%, rgba(128, 188, 211, 0) 60%), linear-gradient(160deg, #FFF0F4 0%, #E4F2F8 100%); --sp-shade: rgba(21, 32, 27, 0.16); --sp-glow: rgba(246, 164, 182, 0.5); --sp-halo: rgba(170, 214, 230, 0.5); }
.sphere--xs { width: 14px; height: 14px; box-shadow: inset 0 -3px 6px -3px var(--sp-shade), 0 0 6px 0 var(--sp-glow); }
.sphere--sm { width: 30px; height: 30px; }

/* Glass, in the app's three levels */
.glass,
.stage,
.tile,
.pillar,
.qa,
.join-card,
.step__shot {
  background: var(--milk);
  -webkit-backdrop-filter: var(--milk-blur);
  backdrop-filter: var(--milk-blur);
  box-shadow: var(--milk-shadow);
}

/* ------------------------------------------------------------ Type */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--ink-2);
  font: 600 13px/1 var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.h2 {
  font: 600 clamp(2rem, 1.4rem + 2.6vw, 3.25rem)/1.1 var(--font);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede {
  margin-top: 20px;
  max-width: 38em;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font: 500 16px/1 var(--font);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.25s, box-shadow 0.35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
/* The app's primary button: dark slate, as on "Log meal" and "Confirm and save" */
.btn--ink {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 24px -12px rgba(36, 49, 61, 0.7);
}
.btn--ink:hover { background: #2F3E4C; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 30px -12px rgba(36, 49, 61, 0.7); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn:focus-visible { border-radius: 999px; box-shadow: var(--focus); }

/* ================================================================ Nav */

.nav {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav__pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100% - 24px, 1120px);
  height: var(--nav-h);
  padding: 0 9px 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow: var(--float-shadow);
  pointer-events: auto;
  transition: background-color 0.4s;
}
.nav.is-scrolled .nav__pill { background: rgba(255, 255, 255, 0.88); }
.nav::before {
  content: "";
  position: absolute;
  top: calc(-12px - env(safe-area-inset-top));
  left: 0;
  right: 0;
  height: calc(env(safe-area-inset-top) + 12px + var(--nav-h) + 26px);
  background: linear-gradient(180deg, rgba(247, 249, 247, 0.97) 0%, rgba(247, 249, 247, 0.9) 62%, rgba(247, 249, 247, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.nav.is-scrolled::before { opacity: 1; }

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  border-radius: 10px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
/* The live glass logo, sized by width (850:440). On the nav's own glass it reads a little firmer. */
/* The logo in the nav: the flat ima shape, in the same dark slate as the Join the waitlist button */
.brand__shape { width: 64px; height: 30px; color: var(--ink); }
/* Without JavaScript the glass logo can't draw, so only its plain fallback shows */
html:not(.js) ima-glass { display: none; }

.nav__links { display: none; margin: 0 auto; gap: 2px; }
.nav__links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s;
}
.nav__links a:hover { background: rgba(255, 255, 255, 0.6); color: var(--ink); }
.nav__links a[aria-current="true"] { background: rgba(255, 255, 255, 0.92); color: var(--ink); box-shadow: inset 0 0 0 0.5px rgba(36, 49, 61, 0.08), 0 4px 12px -6px rgba(36, 49, 61, 0.28); }

.nav__cta { order: 2; margin-left: auto; }

/* The menu button: two lines that turn into a cross. Shown below 960px. */
.nav__toggle {
  position: relative;
  order: 3;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 0.5px rgba(36, 49, 61, 0.08);
  -webkit-tap-highlight-color: transparent;
}
.nav__toggle::before,
.nav__toggle::after {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease);
}
.nav__toggle::before { transform: translateY(-3.5px); }
.nav__toggle::after { transform: translateY(3.5px); }
.nav.is-open .nav__toggle::before { transform: rotate(45deg); }
.nav.is-open .nav__toggle::after { transform: rotate(-45deg); }
/* Below 960px the links drop down from the pill as a glass panel */
@media (max-width: 959.98px) {
  .nav__links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 2px;
    padding: 10px;
    left: auto;
    width: min(100%, 280px);
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--float-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0s 0.35s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.35s var(--ease); }
  .nav__links a { padding: 13px 16px; border-radius: 18px; font-size: 16px; }
  html:not(.js) .nav__toggle { display: none; }
  .js .nav__cta { display: none; }
  .js .nav__toggle { margin-left: auto; }
}
/* Very narrow phones: the CTA would crowd the logo, so the menu holds it instead */


/* ============================================================= Hero */

.hero {
  position: relative;
  padding: calc(116px + env(safe-area-inset-top)) 0 0;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.hero__copy { position: relative; z-index: 5; }

.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--inner-edge);
  color: var(--ink-2);
  font: 500 13.5px/1 var(--font);
  letter-spacing: 0.01em;
}

.hero__title {
  margin-top: 22px;
  font: 600 clamp(2.5rem, 1.5rem + 4.4vw, 4.75rem)/1.04 var(--font);
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero__title span { display: inline-block; }

.hero__sub {
  margin: 22px 0 0;
  max-width: 34em;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.21875rem);
  line-height: 1.6;
  text-wrap: pretty;
}

/* --------------------------------------------------------- Join forms */

.join--final {
  display: grid;
  gap: 14px;
  max-width: 440px;
  margin: 34px auto 0;
  text-align: left;
}
.join__field { display: grid; gap: 8px; }
.join__label { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.join__input {
  width: 100%;
  height: 56px;
  padding: 0 20px;
  border: 1px solid rgba(36, 49, 61, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 17px;   /* over 16px, so iOS doesn't zoom in on focus */
  box-shadow: 0 10px 30px -18px rgba(36, 49, 61, 0.3);
  transition: border-color 0.2s, box-shadow 0.3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.join__input::placeholder { color: var(--ink-3); opacity: 1; }
.join__input:focus { outline: none; border-color: var(--blue); box-shadow: var(--focus); }
.join__input[aria-invalid="true"] { border-color: var(--pink-ink); color: var(--pink-ink); }
.join__btn { width: 100%; height: 56px; margin-top: 6px; }
.join__note {
  justify-self: center;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.join__note.is-error { color: var(--pink-ink); }

/* After joining: the field and button fade, then the thank-you takes their place */
.join.is-leaving .join__field,
.join.is-leaving .join__btn { opacity: 0; transform: scale(0.98); transition: opacity 0.28s var(--ease), transform 0.28s var(--ease); }
.join.is-done .join__field,
.join.is-done .join__btn { display: none; }
.join.is-done { align-content: center; }
.join.is-done .join__note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  padding: 14px 22px 14px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--milk-shadow);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  animation: done-in 0.5s var(--ease) both;
}
.join.is-done .join__note::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5 10 17l8.5-9.5'/%3E%3C/svg%3E") center / 14px no-repeat;
  flex: none;
}
@keyframes done-in { from { opacity: 0; transform: translateY(6px) scale(0.98); } }

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 10px;
  margin-top: 26px;
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.9), 0 0 0 0.5px rgba(36, 49, 61, 0.06);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}
.trust .icon { color: var(--blue-ink); }

/* ------------------------------------------------------- Hero visual */

.hero__visual {
  position: relative;
  height: 560px;
  margin-inline: calc(var(--gutter) * -1);
  overflow: hidden;
  /* The phones fade into the page below, so nothing ends on a hard edge */
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 74%, transparent 100%);
}
.hero__glow {
  position: absolute;
  left: 50%;
  top: 40px;
  width: 520px;
  height: 520px;
  margin-left: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 64%);
}

/* The phone. --pw is the screen width in px; the app's screens are 402 points wide. */
.phone {
  --pw: 260;
  --k: calc(var(--pw) / 402);
  --bz: calc(9px + var(--pw) * 0.006px);
  position: relative;
  width: calc(var(--pw) * 1px + var(--bz) * 2);
  padding: var(--bz);
  margin: 0;
  border-radius: calc(62px * var(--k) + var(--bz));
  background: linear-gradient(145deg, #3A434C, #11161B 40%, #1C232A);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(36, 49, 61, 0.28),
    0 50px 90px -34px rgba(36, 49, 61, 0.5),
    0 24px 44px -26px rgba(36, 49, 61, 0.38);
}
.phone__screen {
  position: relative;
  width: calc(var(--pw) * 1px);
  height: calc(var(--pw) * 874px / 402);
  border-radius: calc(62px * var(--k));
  overflow: hidden;
  background: #F7F9F7;
  isolation: isolate;
}
.phone__screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mum's Home is the front phone, the baby's Home sits behind it on the right. Phones show only Mum's. */
.phone--front,
.phone--back { position: absolute; top: 20px; left: 50%; }
.phone--front { --pw: 250; z-index: 2; transform: translateX(-50%); }
.phone--back { --pw: 220; z-index: 1; display: none; top: 70px; transform: rotate(6deg); }

.js .phone--front,
.js .phone--back {
  opacity: 0;
  translate: 0 60px;
  transition: opacity 1s var(--ease) 0.15s, translate 1.4s var(--ease) 0.15s;
}
.js .phone--back { transition-delay: 0.3s; }
.js .hero.is-ready .phone--front,
.js .hero.is-ready .phone--back { opacity: 1; translate: none; }

/* From one stage to the next: a pill under each phone, joined by a dotted line with a light travelling along it */
.journey { display: none; }
.journey__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  background: linear-gradient(90deg, #F29CB0, #C9B9C8 50%, #8FC3D6);
  -webkit-mask: radial-gradient(circle, #000 1.5px, transparent 2px) 0 50% / 10px 4px repeat-x;
  mask: radial-gradient(circle, #000 1.5px, transparent 2px) 0 50% / 10px 4px repeat-x;
}
.journey__orb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #FBE0E7 45%, #D9EEF5 100%);
  box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.9), 0 0 0 0.5px rgba(36, 49, 61, 0.12);
  animation: journey 5.5s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}
/* The orb sits above the line's mask, so it's drawn on the journey itself */
.journey__line { -webkit-mask: none; mask: none; background: none; }
.journey__line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #F29CB0, #C9B9C8 50%, #8FC3D6);
  -webkit-mask: radial-gradient(circle, #000 1.5px, transparent 2px) 0 50% / 10px 4px repeat-x;
  mask: radial-gradient(circle, #000 1.5px, transparent 2px) 0 50% / 10px 4px repeat-x;
}
@keyframes journey {
  0% { left: 6%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 94%; opacity: 0; }
}
.journey__pill {
  position: absolute;
  top: 0;
  padding: 10px 20px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.journey__pill--a {
  left: 0;
  transform: translateX(-50%);
  background: rgba(253, 232, 236, 0.92);
  color: var(--pink-ink);
  box-shadow: inset 0 0 0 1px rgba(242, 102, 126, 0.28), 0 10px 22px -12px rgba(176, 47, 73, 0.4);
}
.journey__pill--b {
  right: 0;
  transform: translateX(50%);
  background: rgba(230, 242, 246, 0.94);
  color: var(--blue-ink);
  box-shadow: inset 0 0 0 1px rgba(79, 149, 174, 0.3), 0 10px 22px -12px rgba(36, 94, 114, 0.4);
}
.js .journey { opacity: 0; transition: opacity 0.8s var(--ease) 0.9s; }
.js .hero.is-ready .journey { opacity: 1; }

.status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.status--limit { background: #E1EFF4; color: #245E72; }

/* =========================================================== Sections */

.section { position: relative; padding: 96px 0; }
.section__head { margin-bottom: 44px; }
.section__head--center { text-align: center; }
.section__head--center .lede { margin-inline: auto; }

/* ======================================================== Every stage */

.stages { padding-top: 72px; }
.stage-row { display: grid; gap: 14px; counter-reset: stage; }
.stage {
  position: relative;
  padding: 26px 24px 26px;
  border-radius: 30px;
  counter-increment: stage;
}
.stage__when {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--inner);
  box-shadow: var(--inner-edge);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
}
.stage h3 {
  margin-top: 18px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stage p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
/* Each stage carries its own colour, like the app's people spheres */
.stage::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 24px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.42) 26%, rgba(255, 255, 255, 0) 50%), var(--sp-body);
  box-shadow: inset 0 -4px 8px -4px var(--sp-shade), 0 0 8px 1px var(--sp-glow), 0 0 16px 3px var(--sp-halo);
}
.stage:nth-child(1)::after { --sp-body: radial-gradient(circle at 24% 74%, rgba(242, 146, 170, 0.95) 0%, rgba(242, 146, 170, 0) 60%), radial-gradient(circle at 78% 66%, rgba(128, 188, 211, 0.95) 0%, rgba(128, 188, 211, 0) 60%), linear-gradient(160deg, #FFF0F4 0%, #E4F2F8 100%); --sp-shade: rgba(21, 32, 27, 0.16); --sp-glow: rgba(246, 164, 182, 0.5); --sp-halo: rgba(170, 214, 230, 0.5); }
.stage:nth-child(2)::after { --sp-body: radial-gradient(circle at 58% 68%, #A6D679 0%, #CBEAA6 48%, #EDF8E0 100%); --sp-shade: rgba(62, 102, 40, 0.3); --sp-glow: rgba(178, 222, 130, 0.6); --sp-halo: rgba(214, 242, 180, 0.5); }
.stage:nth-child(3)::after { --sp-body: radial-gradient(circle at 58% 68%, #F29CB0 0%, #F8C6D2 48%, #FFEFF3 100%); --sp-shade: rgba(176, 47, 73, 0.24); --sp-glow: rgba(246, 164, 182, 0.58); --sp-halo: rgba(255, 214, 224, 0.5); }
.stage:nth-child(4)::after { --sp-body: radial-gradient(circle at 58% 68%, #80BCD3 0%, #BADCE9 48%, #EBF6FA 100%); --sp-shade: rgba(36, 94, 114, 0.24); --sp-glow: rgba(147, 203, 221, 0.62); --sp-halo: rgba(206, 232, 242, 0.5); }

/* ======================================================== How it works */

.how .section__head { margin-bottom: 40px; }
.steps { display: grid; gap: 44px; }

/* On phones and tablets each step shows the top of its screen in a glass panel. The screen is cut just below a whole
   section (tools/capture-screens.mjs), so no text is ever cut through. */
.step__shot {
  padding: 22px 22px 0;
  overflow: hidden;
  border-radius: var(--r-card);
  container-type: inline-size;
}
.step__shot img {
  width: 100%;
  height: auto;
  border-radius: 15.4cqw 15.4cqw 0 0;
  box-shadow: 0 0 0 1px rgba(36, 49, 61, 0.06), 0 14px 34px -14px rgba(36, 49, 61, 0.3);
}
.step__text { position: relative; padding: 22px 4px 0; }
.step__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font: 600 15px/1 var(--font);
}
.step__title { font: 600 23px/1.2 var(--font); letter-spacing: -0.025em; }
.step__text p { margin-top: 10px; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }

.how__stage { display: none; }

.accent__card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--float-shadow);
  font-size: 13.5px;
}
.accent__k { color: var(--ink-3); font-size: 12.5px; font-weight: 500; }
.ways { display: flex; flex-wrap: wrap; gap: 6px; }
.ways span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--inner);
  box-shadow: var(--inner-edge);
  font-weight: 500;
}
.ways .icon { width: 15px; height: 15px; }
/* The app's own widgets, cut out of the prototype with their rounded corners */
/* The shadow is a box-shadow on the card's own rounded corners (--r, set per image from the capture): Safari draws a
   filter drop-shadow on these as a rectangle behind the card */
.accent__img { display: block; width: 100%; height: auto; border-radius: var(--r, 24px); box-shadow: 0 18px 30px -14px rgba(36, 49, 61, 0.24), 0 2px 5px rgba(36, 49, 61, 0.06); }

/* The flyer's suggestion card: what you logged, then a food idea that suits it */
.ctx { display: flex; gap: 8px; margin-bottom: 10px; }
.ctx span {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.9), 0 0 0 0.5px rgba(36, 49, 61, 0.1);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}
.ctx span:first-child { background: rgba(230, 242, 246, 0.94); color: var(--blue-ink); box-shadow: inset 0 0 0 1px rgba(79, 149, 174, 0.28); }
.ctx span:last-child { background: rgba(253, 232, 236, 0.92); color: var(--pink-ink); box-shadow: inset 0 0 0 1px rgba(242, 102, 126, 0.26); }
.cereal {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--float-shadow);
}
.cereal img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cereal__body { display: grid; gap: 8px; padding: 14px 16px 16px; }
.cereal__body b { font-size: 15px; font-weight: 600; }
.cereal__tags { display: flex; gap: 6px; }
.cereal__tags span { padding: 3px 10px; border-radius: 999px; background: var(--inner); box-shadow: var(--inner-edge); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.cereal__line { color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }

/* =========================================================== Features */

.bento { display: grid; gap: 14px; }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--r-card);
  break-inside: avoid;
}
.tile__text { padding: 28px 26px 0; }
.tile__k {
  color: var(--blue-ink);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tile h3 { margin-top: 8px; font-size: 22px; font-weight: 600; line-height: 1.22; letter-spacing: -0.022em; text-wrap: balance; }
.tile__text > p:not(.tile__k) { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; line-height: 1.58; text-wrap: pretty; }

/* The app's own widgets, shown whole beneath the words */
.tile__cards { display: grid; gap: 10px; margin-top: auto; padding: 22px 20px 22px; }
.tile__cards img { display: block; width: 100%; height: auto; border-radius: var(--r, 24px); box-shadow: 0 14px 26px -14px rgba(36, 49, 61, 0.22), 0 1px 3px rgba(36, 49, 61, 0.06); }

.ticks { display: grid; gap: 10px; margin-top: 20px; }
.ticks li { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; font-weight: 500; }
.ticks .icon { width: 22px; height: 22px; padding: 5px; border-radius: 50%; background: var(--safe-bg); color: var(--safe); }

/* ========================================================= Our approach */

.pillars { display: grid; gap: 14px; }
.pillar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 28px;
  border-radius: var(--r-card);
}
.pillar h3 { margin-top: 12px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.pillar p { color: var(--ink-2); font-size: 15.5px; line-height: 1.58; }

/* Each pillar shows one of the app's own cards, or a small panel drawn like one */
.pillar__card { display: grid; place-items: center; }
.pillar__card img { display: block; width: 100%; height: auto; border-radius: var(--r, 24px); box-shadow: 0 14px 26px -14px rgba(36, 49, 61, 0.22), 0 1px 3px rgba(36, 49, 61, 0.06); }
.privacy__box {
  justify-items: start;
  gap: 18px;
  padding: 22px 22px 24px;
  border-radius: 28px;
  background: var(--inner);
  box-shadow: var(--inner-edge), 0 14px 22px -12px rgba(36, 49, 61, 0.16);
}
.privacy__lock {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
}
.privacy__lock .icon { width: 22px; height: 22px; }
.privacy__list { display: grid; gap: 12px; }
.privacy__list li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.privacy__list .icon { width: 22px; height: 22px; padding: 5px; border-radius: 50%; background: var(--safe-bg); color: var(--safe); }

/* ================================================================== FAQ */

.faq__grid { display: grid; gap: 36px; }
.faq__mail { margin-top: 18px; color: var(--ink-2); font-size: 16px; }
.accordion { display: grid; gap: 10px; }
.qa { border-radius: 26px; }
.qa h3 { font-size: inherit; font-weight: inherit; }
.qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 20px 20px 24px;
  border: 0;
  border-radius: 26px;
  background: transparent;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.qa__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--inner);
  box-shadow: var(--inner-edge);
}
.qa__icon::before,
.qa__icon::after {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease);
}
.qa__icon::after { transform: rotate(90deg); }
.qa__q[aria-expanded="true"] .qa__icon::after { transform: rotate(0deg); }
.qa__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.qa__a > div { overflow: hidden; }
.qa__a.is-open { grid-template-rows: 1fr; }
.qa__a p { padding: 0 24px 22px; color: var(--ink-2); font-size: 16px; line-height: 1.62; }
/* Without JavaScript every answer is open */
html:not(.js) .qa__a { grid-template-rows: 1fr; }

/* ==================================================== Join the waitlist */

.join-section { padding-bottom: 72px; }
.join-card {
  position: relative;
  overflow: hidden;
  padding: 64px 22px;
  border-radius: 44px;
  background: var(--clear);
  -webkit-backdrop-filter: var(--clear-blur);
  backdrop-filter: var(--clear-blur);
  box-shadow: var(--clear-shadow);
  text-align: center;
}
/* A colour wash inside, like the app's special top cards */
.join-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 64% at 6% 4%, rgba(255, 206, 218, 0.62) 0%, rgba(255, 206, 218, 0) 72%),
    radial-gradient(56% 66% at 100% 18%, rgba(184, 222, 238, 0.62) 0%, rgba(184, 222, 238, 0) 72%),
    radial-gradient(62% 58% at 28% 104%, rgba(214, 238, 182, 0.58) 0%, rgba(214, 238, 182, 0) 72%),
    radial-gradient(44% 50% at 62% 50%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 72%);
  opacity: 0.85;
  pointer-events: none;
}
.join-card__center { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; }
.join-card .lede { margin-inline: auto; }
.join-card .join__note a { color: var(--link); text-underline-offset: 3px; }

.plates { display: none; }
.plate {
  position: absolute;
  width: var(--s, 120px);
  height: var(--s, 120px);
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.7), 0 24px 40px -22px rgba(36, 49, 61, 0.5);
}
.plate img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================================== Footer */

/* As on Soulplates: no line above the footer, one between its links and the small print */
.footer { padding: 56px 0 calc(48px + env(safe-area-inset-bottom)); }
.footer__top {
  display: grid;
  gap: 22px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.footer__tag { color: var(--ink); font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.footer__brand .brand__shape { width: 60px; height: 28px; }
.footer__tag { margin-top: 10px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__nav a { color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--inner); color: var(--ink); }
.footer__social svg { width: 20px; height: 20px; }
.footer__legal { display: grid; gap: 10px; padding-top: 26px; color: var(--ink-3); font-size: 13.5px; line-height: 1.6; }
.footer__legal a { color: var(--ink-2); text-underline-offset: 3px; }
.footer__legal a[href^="mailto"] { white-space: nowrap; }

/* ============================================ Phones: the glass join bar */

.joinbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: var(--float-shadow);
  font-size: 14.5px;
  font-weight: 500;
  visibility: hidden;
  transform: translateY(calc(100% + 40px + env(safe-area-inset-bottom)));
  transition: transform 0.6s cubic-bezier(0.32, 0.72, 0.3, 1), visibility 0s 0.6s;
}
.joinbar::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -12px;
  right: -12px;
  top: -26px;
  bottom: calc(-12px - env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(247, 249, 247, 0.97) 0%, rgba(247, 249, 247, 0.9) 50%, rgba(247, 249, 247, 0) 100%);
  pointer-events: none;
}
.joinbar.is-on { visibility: visible; transform: none; transition: transform 0.6s cubic-bezier(0.32, 0.72, 0.3, 1); }
.joinbar__text { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }

/* =============================================================== Reveal */

.js [data-reveal] {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.8s var(--ease), translate 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; translate: none; }

/* ======================================================== Breakpoints */

/* Phones: the trust chips go under the phone instead of above it, as on Soulplates. The copy's children join the
   hero grid so they can be ordered after the visual. */
@media (max-width: 599.98px) {
  .hero__grid { gap: 0; }
  .hero__copy { display: contents; }
  .hero__copy > * { position: relative; z-index: 5; }
  .hero__copy > .pill-label { justify-self: start; }
  .hero__visual { margin-top: 36px; }
  .hero .trust { order: 1; margin-top: 4px; }
}

/* Small phones */
@media (max-width: 379.98px) {
  :root { --gutter: 16px; }
  .hero__visual { height: 500px; }
  .phone--front { --pw: 228; }
}

/* Large phones and up: the floating cards join the phones */
@media (min-width: 480px) {
  .hero__visual { height: 600px; }
  .phone--front { --pw: 262; }
}

/* Tablets */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .section { padding: 120px 0; }
  /* Tablets: both phones, Mum's on the left, then the journey line under them */
  .hero__visual { height: 740px; -webkit-mask-image: none; mask-image: none; }
  .phone--front { --pw: 280; top: 0; left: calc(50% - 292px); transform: none; }
  .phone--back { --pw: 250; display: block; top: 56px; left: calc(50% + 4px); }
  .journey { display: block; position: absolute; bottom: 14px; height: 42px; left: calc(50% - 141px); right: calc(50% - 140px); }
  
  .stage-row { grid-template-columns: repeat(2, 1fr); }

  .steps { grid-template-columns: repeat(2, 1fr); gap: 48px 20px; }

  /* Two to a row, paired so each row's widgets are about the same height; the last tile spans the row */
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* The last tile spans the row, its card beside its words */
  .tile--carers { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .tile--carers .tile__text { flex: 1 1 0; padding-bottom: 28px; }
  .tile--carers .tile__cards { flex: 1 1 0; margin-top: 0; }

  /* Tablets: each pillar puts its example beside its words */
  .pillar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 26px; row-gap: 8px; align-items: start; padding: 24px; }
  .pillar > :first-child { grid-row: 1 / span 2; }
  .pillar h3 { margin-top: 4px; }

  .join-card { padding: 84px 40px; }
  .plates { display: block; }
  .plate--1 { --s: 130px; top: -24px; left: -30px; }
  .plate--2 { --s: 96px; bottom: 30px; left: 34px; }
  .plate--3 { --s: 118px; top: 30px; right: -26px; }
  .plate--4 { --s: 84px; bottom: -14px; right: 120px; }
  .plate--5 { display: none; }
  .plate--6 { display: none; }
  .join-card__center { max-width: 520px; }

  .footer__top { grid-template-columns: 1fr auto; align-items: center; }
}

/* The nav's links fit from here */
@media (min-width: 960px) {
  .joinbar { display: none; }
  .nav__toggle { display: none; }
  .nav__links { display: flex; }
  .nav__cta { margin-left: 0; }
}

/* Laptops: copy and phones side by side; the how-it-works phone stays put while the steps scroll */
@media (min-width: 1040px) {
  .hero { padding-top: calc(140px + env(safe-area-inset-top)); }
  .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; gap: 24px; }
  .hero__copy { padding-bottom: 60px; }
  .hero__sub { margin-left: 0; }
  .trust { justify-content: flex-start; }
  .hero__title { font-size: clamp(3.25rem, 1.2rem + 3.6vw, 4.125rem); }
  .hero__title span { display: inline; }
  .hero__visual { height: 700px; margin: 0; overflow: visible; }
  .nl { display: block; }
  .hero__glow { top: 80px; left: auto; right: 0; margin: 0; }
  .phone--front { --pw: 262; top: 0; left: 0; }
  .phone--back { --pw: 228; top: 56px; left: auto; right: 0; }
  .journey { bottom: 0; left: 142px; right: 125px; }

  .stage-row { grid-template-columns: repeat(4, 1fr); }

  .how__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; }
  .steps { position: relative; grid-template-columns: 1fr; gap: 0; padding-left: 76px; }
  .steps::before,
  .steps::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 19px;
    z-index: 0;
    width: 3px;
    border-radius: 2px;
    background: rgba(36, 49, 61, 0.1);
  }
  .steps::after {
    background: linear-gradient(180deg, #F29CB0, #93CBDD 50%, #A6D679);
    transform: scaleY(var(--rail, 0));
    transform-origin: top;
  }
  .step {
    display: flex;
    align-items: center;
    min-height: 66vh;
  }
  /* Only the words fade: the number stays solid, so the rail never shows through it */
  .step__title,
  .step__text p { opacity: 0.32; transition: opacity 0.6s var(--ease); }
  .step.is-on .step__title,
  .step.is-on .step__text p { opacity: 1; }
  /* Room above the first step, so the phone is already pinned when it's read */
  .step:first-child { min-height: 60vh; align-items: flex-start; padding-top: calc(50vh - 120px); }
  /* The last step sits in the middle with room below it, so the phone stays put while it's read */
  .step:last-child { min-height: 66vh; padding-bottom: 14vh; }
  .step__shot { display: none; }
  .step__text { padding: 0; }
  .step__num {
    position: absolute;
    top: 0;
    left: -76px;
    z-index: 1;
    width: 41px;
    height: 41px;
    background: #F6F8F7;
    color: var(--ink-3);
    box-shadow: inset 0 0 0 1.5px rgba(36, 49, 61, 0.14), 0 0 0 6px rgba(246, 248, 247, 0);
    transition: background-color 0.4s, color 0.4s, box-shadow 0.4s;
  }
  .step.is-on .step__num { background: var(--ink); color: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.7); }
  .step__title { font-size: 32px; }
  .step__text p { max-width: 26em; font-size: 18px; }

  .how__stage { display: block; position: relative; }
  /* The phone on the right, its cards beside it on the left: never over the screen */
  .how__sticky {
    position: sticky;
    top: max(84px, calc(50vh - 340px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    height: 680px;
  }
  .accents { position: relative; height: 100%; }
  .phone--how { --pw: 240; }
  .how__screen {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
  }
  .how__screen.is-on { opacity: 1; transform: none; }

  .accent {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
    pointer-events: none;
  }
  .accent > * { width: min(100%, 270px); }
  .accent > .ctx { width: auto; }
  .accent.is-on { opacity: 1; transform: none; transition-delay: 0.15s; }

  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .tile--carers { grid-column: auto; flex-direction: column; align-items: stretch; }
  .tile--carers .tile__text { flex: none; padding-bottom: 0; }
  .tile--carers .tile__cards { flex: none; margin-top: auto; }

  .pillars { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .pillar { display: flex; padding: 24px 24px 28px; }
  .pillar h3 { margin-top: 14px; }
  .pillar__card { min-height: 0; }

  .faq__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  .faq__head { position: sticky; top: 120px; }

  .join-card { padding: 110px 60px; }
  .plate--1 { --s: 168px; top: -30px; left: -34px; }
  .plate--2 { --s: 112px; bottom: 54px; left: 84px; }
  .plate--3 { --s: 150px; top: 46px; right: -30px; }
  .plate--4 { --s: 96px; bottom: -18px; right: 210px; }
  .plate--5 { display: block; --s: 120px; bottom: 18px; right: 22px; }
  .plate--6 { display: block; --s: 84px; top: 58px; left: 180px; }
  .join-card__center { max-width: 560px; }

}

@media (min-width: 1240px) {
  .hero__visual { height: 740px; }
  .phone--front { --pw: 280; }
  .phone--back { --pw: 244; }
  .journey { left: 151px; right: 133px; }
}

@media (min-width: 1240px) {
  .phone--how { --pw: 290; }
}

/* Short laptop windows: keep the sticky phone inside the window */
@media (min-width: 1040px) and (max-height: 820px) {
  .how__sticky { top: max(84px, calc(50vh - 290px)); height: 580px; }
  .phone--how { --pw: 252; }
}

/* ======================================================= Reduced motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; translate: none; }
  .how__screen, .accent { transform: none !important; }
  .journey__orb { animation: none; left: 50%; }
}

/* ======================================================= Reduced transparency: firmer glass */

@media (prefers-reduced-transparency: reduce) {
  .glass, .stage, .tile, .pillar, .qa, .join-card, .step__shot, .nav__pill, .joinbar, .accent__card { background: rgba(255, 255, 255, 0.94); }
}

/* ======================================================= Forced colours */

@media (forced-colors: active) {
  .stage, .tile, .pillar, .qa, .join-card, .join__input, .nav__pill, .accent__card { border: 1px solid CanvasText; }
  .backdrop { display: none; }
}

/* ======================================================== Legal pages */

.doc-page .nav__pill { justify-content: space-between; }
.doc {
  width: min(100% - var(--gutter) * 2, 760px);
  margin: calc(110px + env(safe-area-inset-top)) auto 48px;
  padding: 40px 26px 44px;
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: var(--milk-blur);
  backdrop-filter: var(--milk-blur);
  box-shadow: var(--milk-shadow);
}
.doc h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.doc__meta { margin-top: 10px; color: var(--ink-3); font-size: 15px; }
.doc h2 { margin-top: 34px; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--ink-2); font-size: 16.5px; line-height: 1.65; }
.doc p { margin-top: 12px; }
.doc ul { margin-top: 10px; padding-left: 22px; list-style: disc; }
.doc li + li { margin-top: 6px; }
.doc a[href^="mailto"] { white-space: nowrap; }
.doc__back {
  display: inline-block;
  margin-top: 36px;
  color: var(--link);
  font-weight: 500;
  text-decoration: none;
}
.doc__back:hover { text-decoration: underline; }
@media (min-width: 720px) {
  .doc { padding: 56px 60px 60px; }
}
