/* Flara site styles. Shared by every page.
   Every colour comes from the tokens below. Light is the default; dark applies when
   <html data-theme="dark"> is set by the inline script in each page's <head>. */

/* ---------- Fonts (self-hosted) ----------
   Exact copies of what Google Fonts served, so nothing is loaded from Google. Each subset only
   downloads when a page uses its characters (in practice: latin). Licences: assets/fonts/OFL-*.txt */
/* Bricolage Grotesque, vietnamese */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/bricolage-grotesque-v9-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Bricolage Grotesque, latin-ext */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/bricolage-grotesque-v9-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Bricolage Grotesque, latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/bricolage-grotesque-v9-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Plus Jakarta Sans, cyrillic-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-v12-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Plus Jakarta Sans, vietnamese */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-v12-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Plus Jakarta Sans, latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-v12-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Plus Jakarta Sans, latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-v12-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Plus Jakarta Sans, cyrillic-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-v12-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Plus Jakarta Sans, vietnamese */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-v12-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Plus Jakarta Sans, latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-v12-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Plus Jakarta Sans, latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-v12-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Plus Jakarta Sans, cyrillic-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-v12-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Plus Jakarta Sans, vietnamese */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-v12-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Plus Jakarta Sans, latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-v12-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Plus Jakarta Sans, latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-v12-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Plus Jakarta Sans, cyrillic-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-v12-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Plus Jakarta Sans, vietnamese */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-v12-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Plus Jakarta Sans, latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-v12-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Plus Jakarta Sans, latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-v12-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens: light ---------- */
:root {
  color-scheme: light;

  /* Base */
  --bg: #F2F1EC;
  --surface: #FFFFFF;
  --card: #FFFFFF;
  --text: #2A2D32;
  --text2: #4F5358;
  --text3: #5F6369;
  --line: #E4DFD8;
  --input-border: #878B90;  /* form fields: 3:1 against the card and the field fill */

  /* Accents. --sage and --terra are a touch darker than the brief's #4C7A68 and
     #9A5A42 so small text passes WCAG AA (4.5:1) on every light background. */
  --sage: #436B5C;
  --sage-mid: #6B9E8A;      /* decorative only (dots, bars, waveforms), never text */
  --sage-solid: #4C7A68;    /* filled buttons with white text (4.9:1) */
  --plum: #5E4F7A;
  --terra: #8F543D;
  --honey: #9A7A2E;         /* icon strokes only */

  /* Buttons */
  --cta: #F0A584;
  --cta-hover: #E8916C;
  --cta-text: #2A2D32;
  --cta-shadow: rgba(212, 133, 106, 0.32);
  --on-solid: #FFFFFF;      /* icons and text on --sage-solid, same in both modes */
  --battery-fill: #E9A58C;  /* filled battery segments, same in both modes */
  --ember-glow: #FFE6D8;    /* soft light behind the ember */
  --ember-ring: rgba(240, 165, 132, 0.55);  /* listening ripples */
  --ember-halo: rgba(246, 180, 148, 0.75);  /* breathing glow */
  --battery-empty: #F1ECE6; /* unused battery segments */
  --scene-top: #FCEFE6;     /* the energy card's warm sky */
  --scene-bot: #F9E6DA;
  --hill-back: #E6EFE8;
  --hill-front: #D2E5D9;

  /* Glows: pastel radial gradients behind phones and cards, never behind text */
  --g-sage: #C9E0D3;
  --g-peach: #F6D9CB;
  --g-plum: #E2D9EF;
  --g-honey: #FBEBC9;

  /* Tints: icon squares, pills, stat boxes */
  --t-sage: #EEF4F1;
  --t-terra: #FBEEE8;
  --t-plum: #F0EDF6;
  --t-honey: #FBF1DC;
  --t-neutral: #F6F2ED;     /* neutral pills and stat boxes (spec tag pill) */

  /* Fields (hero and join gradients) */
  /* The app's background: sage at the top, warm stone, peach at the bottom */
  --field-top: #E3EEE7;
  --field-mid: #F2F1EC;
  --field-bot: #F8EDE5;
  --edge: rgba(255, 255, 255, 0.9);
  --glass: rgba(255, 255, 255, 0.86);
  --glass2: rgba(255, 255, 255, 0.5);

  /* Flare Mode section: dark in both modes (its contents use the .on-dark palette) */
  --flare-bg: #1C1A26;
  --flare-edge: rgba(255, 255, 255, 0.12);
  --flare-glow-plum: #3E3560;
  --flare-glow-teal: #2D3B3A;
  --flare-phone: #0F0E15;
  --flare-ring: #6E6886;     /* empty tick circles */
  --flare-outline: #4A4363;  /* "Need a hand?" border */

  /* Phone mockups */
  --phone-frame: #1F2025;
  --phone-rim: transparent;     /* night mode only: a fine light edge so the phone stands out */
  --phone-glow: transparent;    /* night mode only: soft sage light behind the phone */
  --screen: #F4F2EF;
  --user-bg: #2A2D32;
  --user-text: #FFFFFF;
  --wave: #B7D6C9;

  /* Depth */
  --shadow: rgba(42, 45, 50, 0.14);
  /* The app's card shadow: no border, a fine top highlight, a soft float */
  --shadow-card: inset 0 1px 0 var(--edge), 0 22px 44px -24px var(--shadow);
  --shadow-card-hover: inset 0 1px 0 var(--edge), 0 28px 50px -22px var(--shadow);

  /* Type */
  --font-head: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Shapes */
  --r-field: 40px;
  --r-card: 24px;          /* app spec: hero card 30, cards and rows 24, tiles 22, icon tiles 15 */
  --r-hero-card: 30px;
  --r-tile: 22px;
  --r-icon: 15px;
  --r-pill: 999px;
}

/* ---------- Design tokens: dark ----------
   Also applied to .on-dark sections (Flare Mode), which stay dark in both modes. */
:root[data-theme="dark"],
.on-dark {
  color-scheme: dark;

  --bg: #1C1A26;
  --surface: #242134;
  --card: #242134;
  --text: #EDEAF5;
  --text2: #C9C4DA;
  --text3: #A9A3BE;
  --line: #353049;
  --input-border: #7E7896;

  --sage: #7EC0AA;
  --sage-mid: #7EC0AA;
  --sage-solid: #4C7A68;
  --plum: #C2B5DC;
  --terra: #E8A58A;
  --honey: #D9B66A;

  --cta: #F0A584;
  --cta-hover: #F5B79C;
  --cta-text: #1C1A26;
  --cta-shadow: rgba(0, 0, 0, 0.35);
  --ember-glow: #5A3A30;
  --ember-ring: rgba(240, 165, 132, 0.4);
  --ember-halo: rgba(233, 150, 115, 0.45);
  --battery-empty: #353049;
  --scene-top: #3A2A2B;
  --scene-bot: #2E2330;
  --hill-back: #263A33;
  --hill-front: #22352F;

  --g-sage: #24433B;
  --g-peach: #4A302B;
  --g-plum: #3A3158;
  --g-honey: #40361F;

  --t-sage: #22352F;
  --t-terra: #3A2925;
  --t-plum: #2E2843;
  --t-honey: #352E20;
  --t-neutral: #2C2838;

  --field-top: #232136;
  --field-mid: #1E1C2A;
  --field-bot: #1C1A26;
  --edge: rgba(255, 255, 255, 0.10);
  --glass: rgba(36, 33, 52, 0.86);
  --glass2: rgba(36, 33, 52, 0.55);

  --phone-frame: #353049;
  --phone-rim: rgba(255, 255, 255, 0.14);
  --phone-glow: rgba(126, 192, 170, 0.22);
  --screen: #1C1A26;
  --user-bg: #EDEAF5;
  --user-text: #1C1A26;
  --wave: #4C7A68;

  --shadow: rgba(0, 0, 0, 0.45);
}

:root[data-theme="dark"] .tile__icon { --ico-bg: var(--t-sage); --ico-line: var(--edge); --ico-shadow: rgba(0, 0, 0, 0.5); }
:root[data-theme="dark"] .tile__icon.ico--terra { --ico-bg: var(--t-terra); }
:root[data-theme="dark"] .tile__icon.ico--plum { --ico-bg: var(--t-plum); }

/* Kept out of the shared block above, so Flare Mode is #1C1A26 by day and #121019 by night */
:root[data-theme="dark"] {
  --flare-bg: #121019;
  --flare-edge: rgba(255, 255, 255, 0.08);
}

/* ---------- Scroll colour shift ----------
   site.js sets data-page-tone on <html> as each section reaches the middle of the screen.
   Without JavaScript there's no data-page-tone, so the page keeps the plain --bg. */
:root {
  --tone-hero: #EDF2EE;
  --tone-seen: #F3F0EA;     /* warm stone (was lavender: lavender now means flare only) */
  --tone-control: #EAF2EE;
  --tone-together: #FAF0EA;
  --tone-safe: #E3DFEC;
  --tone-ready: #FAEFE8;
  --tone-join: #ECF2EE;
}

:root[data-theme="dark"] {
  --tone-hero: #1E1D2A;
  --tone-seen: #1F1D29;
  --tone-control: #1B2423;
  --tone-together: #261E22;
  --tone-safe: #15131D;
  --tone-ready: #261F22;
  --tone-join: #1B2423;
}

[data-page-tone="hero"] { --page-bg: var(--tone-hero); }
[data-page-tone="seen"] { --page-bg: var(--tone-seen); }
[data-page-tone="control"] { --page-bg: var(--tone-control); }
[data-page-tone="together"] { --page-bg: var(--tone-together); }
[data-page-tone="safe"] { --page-bg: var(--tone-safe); }
[data-page-tone="ready"] { --page-bg: var(--tone-ready); }
[data-page-tone="everything"],
[data-page-tone="story"],
[data-page-tone="faq"] { --page-bg: var(--bg); }
[data-page-tone="join"] { --page-bg: var(--tone-join); }

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

html {
  background-color: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* anchor jumps land below the sticky nav */
  scroll-padding-bottom: 24px; /* keyboard focus never parks a field (or its focus ring) on the bottom edge */
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--page-bg, var(--bg));
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 1.4s ease, color 0.4s ease;
}

/* Set briefly by site.js so a mode switch (or the first tone) applies at once, not over 1.4s */
.tone-instant body,
.tone-instant .nav__cta {
  transition: none;
}

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

a {
  color: var(--sage);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 640;
  line-height: 1;
  letter-spacing: -0.045em;
}

:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
}

/* Photos sit a little softer in night mode */
[data-theme="dark"] .photo {
  filter: brightness(0.8) saturate(0.9);
}

/* The hidden attribute always wins, even over components that set display */
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 13px 22px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--cta);
  color: var(--cta-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cta:hover {
  background: var(--cta-hover);
}

.cta--large {
  padding: 19px 34px;
  font-size: 18px;
  box-shadow: 0 12px 28px var(--cta-shadow);
}

/* ---------- Night mode toggle ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--t-sage);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* Show the moon in day mode (tap for night), the sun in night mode (tap for day) */
.theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

/* ---------- Page frame ---------- */
.page {
  padding: 8px;
}

.field {
  max-width: 1400px;
  margin: 0 auto;
  border: 2px solid var(--edge);
  border-radius: var(--r-field);
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 8px 28px var(--shadow);
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Nav ----------
   The header has no height and sits just before the hero, so the nav floats inside
   the hero field at first, then sticks 12px from the top once the page scrolls. */
.site-header {
  position: sticky;
  top: -12px;
  z-index: 50;
  height: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  top: 24px; /* an offset, not a margin: a margin would collapse through the zero-height header */
  width: calc(100% - 16px);
  max-width: 900px;
  margin: 0 auto;
  padding: 6px 6px 6px 12px;
  border-radius: var(--r-pill);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.nav__links {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text2);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__cta {
  padding: 0 16px;
  font-size: 14px;
  white-space: nowrap;
}

/* Phones: while the hero's own button is on screen, the nav button tucks away, then slides
   back in. site.js sets data-hero-cta. Without JavaScript there's no attribute, so it stays. */
@media (max-width: 767px) {
  .nav__cta {
    max-width: 200px;
    overflow: hidden;
    transition: max-width 0.35s ease, padding 0.35s ease, opacity 0.25s ease, visibility 0.35s;
  }

  [data-hero-cta="visible"] .nav__cta {
    max-width: 0;
    padding-right: 0;
    padding-left: 0;
    opacity: 0;
    visibility: hidden;
  }
}

/* ---------- Hero ---------- */
/* Phones: the heading starts 52px below the nav */
.hero {
  padding: 130px 16px 36px;
  /* Mobile: glows sit low, behind the photo, so the text stays on calm colour */
  background:
    radial-gradient(420px 360px at 85% 80%, var(--g-sage) 0%, transparent 70%),
    radial-gradient(360px 300px at 0% 100%, var(--g-peach) 0%, transparent 70%),
    linear-gradient(180deg, var(--field-top) 0%, var(--field-mid) 48%, var(--field-bot) 100%);
}

.hero__inner {
  display: grid;
  gap: 28px;
}

/* 50px on phones from 390 up; just enough smaller below that to keep "You don’t have to" on one line */
.hero__title {
  margin: 0;
  font-size: min(50px, calc((100vw - 52px) / 6.6));
  /* Bricolage draws wider letters at small sizes. Pin its display cut (as used at desktop sizes)
     so the headline keeps the same shape everywhere and "You don’t have to" fits 50px at 390px. */
  font-variation-settings: "opsz" 96;
  line-height: 0.96;
  letter-spacing: -0.048em;
}

/* Never let a long line widen the column: overflow would be hidden by the rounded field */
.hero__text {
  min-width: 0;
}

/* Always exactly two lines */
.hero__line {
  display: block;
  white-space: nowrap;
}

.hero__line--sage {
  color: var(--sage);
}

/* Same colour as the heading's first line: only "remember it all." is coloured */
.hero__sub {
  max-width: 470px;
  margin: 22px 0 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 32px;
}

/* Phones: full width, 54px tall */
.hero__cta {
  width: 100%;
  min-height: 54px;
  padding-top: 0;
  padding-bottom: 0;
}

/* Shown from 768px */
.hero__note {
  display: none;
  color: var(--text3);
  font-size: 15px;
}

/* Photo with floating cards. On phones the cards sit inside the photo edges. */
.hero__media {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 45%; /* keeps the phone in view on narrow screens */
  border: 7px solid var(--surface);
  border-radius: 34px;
  box-shadow: 0 40px 90px var(--shadow);
}

.float-card {
  position: absolute;
  margin: 0;
  border-radius: var(--r-card);
  background: var(--card);
  color: var(--text);
  box-shadow: inset 0 1px 0 var(--edge), 0 24px 50px -18px var(--shadow);
}

.float-card p {
  margin: 0;
}

.float-card--listening {
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: var(--r-pill);
}

/* ---------- The ember: Flara's character (app UI spec, section 6) ----------
   Two dot eyes, no mouth. Peach on normal days, lavender only for flare mode.
   One shared drawing; each use sets its size and its mood class.
   Every animation stops under the reduced motion rule at the end of this file. */
.ember {
  display: block;
  overflow: visible;
  transform-origin: 50% 100%;
}

/* Listening: sways gently while soft rings ripple out (hero chip) */
.ember--listening {
  animation: ember-listen 2.4s ease-in-out infinite;
}

@keyframes ember-listen {
  0%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-1.5px) rotate(-3deg); }
  75% { transform: translateY(-0.5px) rotate(3deg); }
}

/* Awake and breathing: a slow 4.5 second breath, the glow rising with it (energy card) */
.ember--breathing {
  animation: ember-breathe 4.5s ease-in-out infinite;
}

@keyframes ember-breathe {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.04, 1.05) translateY(-2px); }
}

@keyframes ember-halo {
  0%, 100% { opacity: 0.75; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.04); }
}

/* Asleep: lavender, curled up, breathing slowly over 6 seconds (Flare Mode phone) */
.ember--asleep {
  animation: ember-sleep 6s ease-in-out infinite;
}

@keyframes ember-sleep {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.03, 1.05); }
}

/* Hello: one small hop when the thank you page opens, then it rests. Never loops. */
.ember--hop {
  animation: ember-hop 0.75s cubic-bezier(0.3, 1.6, 0.5, 1) 0.4s 1 both;
}

@keyframes ember-hop {
  0% { transform: none; }
  35% { transform: translateY(-16px) scale(0.96, 1.06); }
  70% { transform: translateY(0) scale(1.06, 0.94); }
  100% { transform: none; }
}

@keyframes ember-ripple {
  0% { opacity: 0.8; transform: scale(0.75); }
  100% { opacity: 0; transform: scale(1.45); }
}

/* Hero chip: the ember in a warm glow where the mic used to be */
.ember-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 64%, var(--ember-glow) 0%, var(--t-terra) 72%);
}

.ember-slot .ember {
  width: 32px;
  height: 37px;
  margin-top: -2px;
}

.ember-slot__ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--ember-ring);
  border-radius: 50%;
  opacity: 0;
  animation: ember-ripple 3.6s ease-out infinite;
}

.ember-slot__ring + .ember-slot__ring {
  animation-delay: 1.8s;
}

.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}

.wave i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--sage-mid);
}

.wave i:nth-child(1) { height: 8px; }
.wave i:nth-child(2) { height: 16px; }
.wave i:nth-child(3) { height: 22px; }
.wave i:nth-child(4) { height: 12px; }
.wave i:nth-child(5) { height: 18px; }
.wave i:nth-child(6) { height: 9px; }

.float-card__strong {
  font-size: 14px;
  font-weight: 600;
}

/* Hero cards sit where the photo is calm: "Listening…" top right, over the side table, and
   "Flara noticed" bottom left. Neither covers her face or the phone at any width. */
/* Narrow phones: the ember and "Listening…" are enough; the sound bars would reach her face */
@media (max-width: 399px) {
  .float-card--listening .wave {
    display: none;
  }
}

.float-card--noticed {
  bottom: 16px;
  left: 16px;
  width: min(290px, calc(100% - 32px));
  padding: 16px 18px;
}

.float-card__label {
  color: var(--sage);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.float-card .float-card__line {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- Story sections (shared) ----------
   Text first, visual second on phones. Glows sit only behind the visuals. */
/* Sections with top padding: --pad-top sets the padding, and the negative scroll
   margin makes anchor jumps land the heading just under the sticky nav, not 170px below it */
.section,
.everything,
.story,
.faq {
  --pad-top: 96px;
  scroll-margin-top: calc(16px - var(--pad-top));
}

.section {
  box-sizing: content-box; /* as in the prototype: 1240px of content, padding outside it */
  display: grid;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--pad-top) 16px 0;
}

.section__text,
.section__visual {
  min-width: 0;
}

.section__visual {
  margin: 0;
}

.eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow--plum { color: var(--plum); }
.eyebrow--sage { color: var(--sage); }
.eyebrow--terra { color: var(--terra); }

.h2 {
  margin: 16px 0 0;
  font-size: clamp(36px, 2.8vw + 25px, 64px);
}

.lede {
  max-width: 430px;
  margin: 20px 0 0;
  color: var(--text2);
  font-size: 18px;
  line-height: 1.55;
}

.note {
  max-width: 430px;
  margin: 16px 0 0;
  color: var(--text3);
  font-size: 14px;
}

.card {
  border-radius: var(--r-card);
  background: var(--card);
  color: var(--text);
  box-shadow: inset 0 1px 0 var(--edge), 0 24px 50px -18px var(--shadow);
}

.card p {
  margin: 0;
}

.card__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card__label--terra {
  color: var(--terra);
}

/* Phone mockup: built in HTML, never an image */
.phone {
  flex-shrink: 0;
  width: 290px;
  height: 610px;
  padding: 10px;
  border-radius: 46px;
  background: var(--phone-frame);
  box-shadow: inset 0 0 0 1px var(--phone-rim), 0 0 70px -6px var(--phone-glow), 0 40px 90px var(--shadow);
}

.phone__screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 42px 18px 18px;
  overflow: hidden;
  border-radius: 37px;
  background: var(--screen);
  color: var(--text);
}

.phone__screen p {
  margin: 0;
}

/* ---------- 2. Feel seen ---------- */
.chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 2px solid var(--edge);
  border-radius: 36px;
  background:
    radial-gradient(420px 320px at 70% 30%, var(--g-peach) 0%, transparent 70%),
    radial-gradient(360px 260px at 15% 85%, var(--g-sage) 0%, transparent 70%),
    var(--glass2);
}

.chat p {
  margin: 0;
}

.chat__user,
.chat__flara {
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.45;
}

.chat__user {
  align-self: flex-end;
  max-width: 380px;
  border-radius: 22px 22px 6px 22px;
  background: var(--user-bg);
  color: var(--user-text);
}

.chat__voice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  opacity: 0.85;
}

.chat__voice svg {
  width: 14px;
  height: 14px;
}

.wave--voice {
  height: 18px;
}

.wave--voice i {
  background: var(--wave);
}

.wave--voice i:nth-child(1) { height: 6px; }
.wave--voice i:nth-child(2) { height: 14px; }
.wave--voice i:nth-child(3) { height: 18px; }
.wave--voice i:nth-child(4) { height: 10px; }
.wave--voice i:nth-child(5) { height: 15px; }
.wave--voice i:nth-child(6) { height: 8px; }

.chat__time {
  font-size: 12px;
}

.chat__flara {
  align-self: flex-start;
  max-width: 400px;
  border-radius: 22px 22px 22px 6px;
  background: var(--card);
  box-shadow: 0 14px 34px var(--shadow);
}

.chat__name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.chat__name img {
  width: 22px;
  height: 22px;
  border-radius: 7px;
}

.chat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--text2);
  font-size: 15px;
  font-weight: 600;
}

.chip--sage {
  color: var(--sage);
}

/* ---------- 3. Feel in control ---------- */
.control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-radius: 40px;
  background:
    radial-gradient(300px 300px at 50% 40%, var(--g-sage) 0%, transparent 72%),
    radial-gradient(240px 200px at 88% 92%, var(--g-peach) 0%, transparent 70%);
}

.manual__kicker {
  color: var(--sage);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.manual__title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 640;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.manual__card {
  padding: 14px;
  border-radius: 18px;
  background: var(--card);
  font-size: 13px;
  line-height: 1.5;
}

.phone__screen .manual__meta {
  margin-top: 8px;
  color: var(--text3);
  font-size: 11px;
}

.phone__screen .progress + .manual__meta {
  margin-top: 6px;
  font-size: 12px;
}

.manual__label {
  color: var(--text3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.manual__choices {
  display: flex;
  gap: 8px;
}

.manual__choice {
  flex: 1;
  padding: 10px 0;
  border-radius: 12px;
  background: var(--card);
  color: var(--text2);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.manual__choice--yes {
  background: var(--sage-solid);
  color: var(--on-solid);
}

.progress {
  display: block;
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--t-sage);
}

.progress span {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: 4px;
  background: var(--sage-mid);
}

/* Phones: the two cards stack under the phone so they never cover it */
.control__cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.control__cards .card {
  width: min(290px, 100%);
}

/* Today's energy: a small copy of the app's Home hero card (ember, battery, "Energy today: 6 of 10") */
.control__cards .energy {
  overflow: hidden;
  border-radius: var(--r-hero-card);
}

.energy__scene {
  position: relative;
  height: 104px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--scene-top) 0%, var(--scene-bot) 100%);
}

.energy__land {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.energy__halo {
  position: absolute;
  left: 50%;
  bottom: -40px;
  width: 170px;
  height: 170px;
  margin-left: -85px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ember-halo) 0%, transparent 64%);
  animation: ember-halo 4.5s ease-in-out infinite;
}

.energy__scene .ember {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 58px;
  height: 68px;
  margin-left: -29px;
}

.energy__body {
  padding: 14px 18px 16px;
}

.energy__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.energy__pill {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--t-terra);
  color: var(--terra);
  font-size: 12px;
  font-weight: 700;
}

.energy__bar {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
  margin-top: 10px;
}

.energy__bar i {
  display: block;
  height: 18px;
  border-radius: 6px;
  background: var(--battery-fill);
}

.energy__bar i.off {
  background: var(--battery-empty);
}

.energy__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 10px;
  margin-top: 8px;
}

.energy__meta b {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.energy__meta span {
  color: var(--text3);
  font-size: 12px;
}

.afternoon {
  padding: 16px 18px;
}

.afternoon__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 13px;
}

.afternoon__list div {
  display: flex;
  justify-content: space-between;
}

.afternoon__list dt,
.afternoon__list dd {
  margin: 0;
}

.afternoon__list dd {
  font-weight: 700;
}

.afternoon__gain {
  color: var(--sage);
}

/* ---------- 4. Feel less alone ---------- */
.together {
  display: flex;
  flex-direction: column;
  padding: 24px 8px;
  border-radius: 40px;
  background:
    radial-gradient(300px 260px at 35% 35%, var(--g-peach) 0%, transparent 72%),
    radial-gradient(240px 200px at 85% 85%, var(--g-sage) 0%, transparent 70%);
}

.letter {
  width: min(330px, 92%);
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 24px 60px var(--shadow);
  transform: rotate(-3deg);
}

.letter .letter__headline {
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.letter .letter__body {
  margin-top: 12px;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.6;
}

.battery {
  position: relative;
  align-self: flex-end;
  width: min(300px, 88%);
  margin-top: 0;
  padding: 22px;
  border-radius: 24px;
  box-shadow: 0 30px 70px var(--shadow);
}

.battery__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 16px;
}

.battery__pill {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--t-terra);
  color: var(--terra);
  font-size: 12px;
  font-weight: 700;
}

.battery__bar {
  display: flex;
  gap: 5px;
  margin-top: 14px;
}

.battery__bar i {
  flex: 1;
  height: 12px;
  border-radius: 4px;
  background: var(--t-terra);
}

.battery__bar i.is-on {
  background: var(--battery-fill);
}

.card .battery__help {
  margin-top: 14px;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.55;
}

.battery__help b {
  color: var(--text);
}

.battery__send {
  display: block;
  margin-top: 16px;
  padding: 11px;
  border-radius: var(--r-pill);
  background: var(--sage-solid);
  color: var(--on-solid);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

/* ---------- Shared icon tints (flare rows, feature tiles) ---------- */
.ico--sage { background: var(--t-sage); color: var(--sage); --ico-bg: #DCEBE2; --ico-line: rgba(67, 107, 92, 0.14); --ico-shadow: rgba(76, 122, 104, 0.55); }
.ico--plum { background: var(--t-plum); color: var(--plum); --ico-bg: #E7E0F3; --ico-line: rgba(94, 79, 122, 0.14); --ico-shadow: rgba(94, 79, 122, 0.45); }
.ico--terra { background: var(--t-terra); color: var(--terra); --ico-bg: #FBE0D2; --ico-line: rgba(143, 84, 61, 0.14); --ico-shadow: rgba(212, 133, 106, 0.55); }
.ico--honey { background: var(--t-honey); color: var(--honey); }
.ico--peach { background: var(--t-terra); color: var(--cta); }

/* ---------- 5. Feel safe: Flare Mode ----------
   .on-dark gives this section the night palette in both modes. */
.flare {
  display: grid;
  gap: 40px;
  margin-top: 96px;
  padding: 56px 20px;
  border-color: var(--flare-edge);
  color: var(--text);
  /* Glows sit low, behind the phone, so the text stays on plain dark */
  background:
    radial-gradient(260px 320px at 50% 76%, var(--flare-glow-plum) 0%, transparent 70%),
    radial-gradient(220px 220px at 88% 96%, var(--flare-glow-teal) 0%, transparent 70%),
    var(--flare-bg);
}

.flare__title {
  font-weight: 600;
}

.flare__rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.flare__rows li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  line-height: 1.45;
}

.flare__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 13px;
}

.flare__icon svg {
  width: 18px;
  height: 18px;
}

.flare__urgent {
  margin: 28px 0 0;
  color: var(--text3);
  font-size: 14px;
}

.flare__visual {
  display: flex;
  justify-content: center;
}

.phone--flare {
  --phone-frame: var(--flare-phone);
  height: 600px;
  box-shadow: 0 40px 100px var(--shadow), 0 0 0 1px var(--edge);
}

/* The app's Flare Mode screen: the ember asleep in lavender, three things in one card */
.gently {
  gap: 10px;
  padding: 22px 18px 20px;
}

.gently .gently__mode {
  align-self: center;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--t-plum);
  color: var(--plum);
  font-size: 12px;
  font-weight: 600;
}

.gently__stage {
  position: relative;
  flex-shrink: 0;
  height: 112px;
}

.gently__halo {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 170px;
  height: 170px;
  margin: -85px 0 0 -85px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(150, 132, 200, 0.5) 0%, transparent 66%);
  animation: ember-halo 6s ease-in-out infinite;
}

.gently__cushion {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 128px;
  height: 30px;
  margin-left: -64px;
  border-radius: 50%;
  background: var(--t-plum);
}

.gently__stage .ember {
  position: absolute;
  left: 50%;
  bottom: 17px;
  width: 86px;
  height: 72px;
  margin-left: -43px;
}

.gently__title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-align: center;
}

.gently .gently__sub {
  margin-bottom: 4px;
  color: var(--text2);
  font-size: 13px;
  text-align: center;
}

.gently__list {
  padding: 4px 8px;
  border-radius: var(--r-tile);
  background: var(--card);
}

.gently__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  font-size: 15px;
  font-weight: 600;
}

/* A small plum note under a Flare Mode item, as in the app */
.gently__note {
  display: block;
  margin-top: 2px;
  color: var(--plum);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
}

.tick {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--flare-ring);
  border-radius: 50%;
}

.tick--done {
  width: 24px;
  height: 24px;
  border: none;
  background: var(--sage);
  color: var(--screen);
}

.tick svg {
  width: 12px;
  height: 12px;
}

.gently__hand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding: 12px 8px;
  border: 1.5px solid var(--flare-outline);
  border-radius: var(--r-pill);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.gently__hand svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

/* ---------- 6. Feel heard by your doctor ---------- */
.counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.counts li {
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
}

.counts__n--sage { color: var(--sage); }
.counts__n--plum { color: var(--plum); }
.counts__n--text { color: var(--text); }
.counts__n--terra { color: var(--terra); }

.ready {
  display: flex;
  justify-content: center;
  padding: 32px 16px;
  border-radius: 40px;
  background:
    radial-gradient(320px 260px at 60% 40%, var(--g-peach) 0%, transparent 72%),
    radial-gradient(240px 200px at 10% 10%, var(--g-honey) 0%, transparent 70%);
}

.report {
  width: 100%;
  max-width: 440px;
  padding: 22px;
  border-radius: var(--r-hero-card);
  box-shadow: inset 0 1px 0 var(--edge), 0 34px 70px -24px var(--shadow);
  transform: rotate(-1.5deg);
}

.report__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card .report__title {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.report__tag {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--t-sage);
  color: var(--text3);
  font-size: 12px;
  font-weight: 600;
}

.card .report__sub {
  margin-top: 4px;
  color: var(--text3);
  font-size: 13px;
}

.report__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.card .stat {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 16px;
}

.stat b {
  font-size: 22px;
  line-height: 1.1;
}

.stat span {
  margin-top: 4px;
  color: var(--text3);
  font-size: 12px;
  line-height: 1.3;
}

.stat--sage { background: var(--t-sage); }
.stat--sage b { color: var(--sage); }
.stat--terra { background: var(--t-terra); }
.stat--terra b { color: var(--terra); }
.stat--plum { background: var(--t-plum); }
.stat--plum b { color: var(--plum); }
.stat--neutral { background: var(--t-neutral); }
.stat--neutral b { color: var(--text); }

.report__rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.45;
}

.report__rows li:not(:last-child) {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.report__cta {
  display: block;
  margin-top: 20px;
  padding: 12px;
  border-radius: var(--r-pill);
  background: var(--sage-solid);
  color: var(--on-solid);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

/* ---------- 7. Everything in Flara ---------- */
.everything {
  box-sizing: content-box;
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--pad-top) 16px 0;
}

.everything__head {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

/* align-items: start, so an open tile doesn't stretch the others in its row */
.tiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 12px;               /* app spec: 12px between stacked cards */
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

/* Each tile opens to a short description. The header is a real button; its ::after
   stretches over the whole tile so the tile is the tap target, while the open
   description sits above that layer so its text can be read and selected.
   Phones: compact rows. The icon sits in the left margin, so the title, line and
   description all line up; the plus/minus sits on the right. */
.tile {
  position: relative;
  padding: 14px 52px 14px 70px;
  border: 0;
  border-radius: var(--r-tile);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.tile__head {
  margin: 0;
  font: inherit;
  letter-spacing: normal;
}

.tile__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tile__btn::after {
  content: "";
  position: absolute;
  inset: 0;
}

.tile__icon {
  position: absolute;
  top: 14px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-icon);
  /* App style icon tile: white to tint, a fine inner edge, a soft coloured shadow */
  background: linear-gradient(150deg, var(--card) 0%, var(--ico-bg, var(--t-sage)) 100%);
  box-shadow: inset 0 0 0 1px var(--ico-line, transparent), inset 0 1px 0 var(--edge), 0 8px 16px -10px var(--ico-shadow, var(--shadow));
}

.tile__icon svg {
  width: 20px;
  height: 20px;
}

.tile__title {
  display: block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.tile__line {
  min-height: 2.9em;       /* always room for two lines, so every tile in a row is the same height */
  margin: 2px 0 0;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.45;
  text-wrap: pretty;       /* avoids a lone word on the second line, where the browser supports it */
}

/* The plus/minus only appears when JavaScript can open and close the tiles */
.tile .tile__toggle {
  position: absolute;
  top: 20px;
  right: 14px;
  display: none;
}

.js .tile .tile__toggle {
  display: block;
}

.tile__more {
  position: relative;
  z-index: 1; /* above the button's tap layer */
  display: grid;
  grid-template-rows: 1fr;
  cursor: auto;
  transition: grid-template-rows 0.25s ease, opacity 0.25s ease, visibility 0.25s;
}

.tile__more > div {
  min-height: 0;
  overflow: hidden;
}

.tile__more p {
  margin: 0;
  padding-top: 10px;
  color: var(--text2);
  font-size: 15px;
  line-height: 1.55;
}

/* Closed (set up by the inline head script before first paint, then site.js) */
.js .tile:not(.is-open) .tile__more {
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
}

/* Hover (mouse and trackpad only) and keyboard focus: lift, sage edge, a touch of sage */
.tile:has(.tile__btn:focus-visible) {
  box-shadow: var(--shadow-card-hover);
  outline: 3px solid var(--sage);
  outline-offset: 3px;
  transform: translateY(-2px);
}

/* Where :has works, the ring is drawn round the whole tile instead of the button */
@supports selector(:has(*)) {
  .tile__btn:focus-visible {
    outline: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .tile:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
  }
}

/* ---------- 8. Founder story ---------- */
.story {
  box-sizing: content-box;
  max-width: 860px;
  margin: 0 auto;
  padding: var(--pad-top) 16px 0;
  text-align: center;
}

.story__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.story__photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 5px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 14px 34px var(--shadow);
}

.story__quote {
  margin: 34px 0 0;
}

/* The founder story: one continuous quote at a reading size (20px on phones, 26px on desktop) */
.story__quote p {
  max-width: 680px;
  margin: 0 auto;
  font-family: var(--font-head);
  font-size: clamp(20px, 0.6vw + 17.75px, 26px);
  font-weight: 560;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.story__sage {
  color: var(--sage);
}

.story__sign {
  margin-top: 18px;
  font-size: 16px;
}

.story__sign span {
  color: var(--text3);
  font-weight: 500;
}

/* ---------- 9. Join ---------- */
.join {
  display: grid;
  gap: 40px;
  margin-top: 96px;
  padding: 48px 20px;
  /* Glows sit behind the form card, not the text */
  background:
    radial-gradient(360px 320px at 50% 82%, var(--g-sage) 0%, transparent 70%),
    radial-gradient(300px 260px at 100% 100%, var(--g-peach) 0%, transparent 70%),
    linear-gradient(180deg, var(--field-top) 0%, var(--field-mid) 48%, var(--field-bot) 100%);
}

.h2.join__title {
  margin: 0;
  font-size: clamp(40px, 3vw + 28px, 72px);
}

.ticks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
}

.ticks li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticks svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--sage);
}

.join__form {
  --join-gap: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--join-gap);
  width: 100%;
  max-width: 480px;
  padding: 28px 22px;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 30px 80px var(--shadow);
}

.join__when {
  color: var(--text3);
  font-size: 14px;
}

/* The offer: free trial first, then the Founding Member price, as one tight group */
.join__offer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* One row: the free trial pill on the left, the places on the right (wraps on very narrow screens) */
.join__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card .join__pill {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--t-sage);
  color: var(--sage);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.card .join__offer .join__price {
  margin-top: -4px;
}

.card .join__monthly {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.card .join__places {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--terra);
  font-size: 14px;
  font-weight: 600;
}

.join__places svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.card .join__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  row-gap: 2px;
  margin-top: -8px;
  color: var(--text3);
  font-size: 16px;
}

.join__price > span:first-child {
  color: var(--text);
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 640;
  letter-spacing: -0.04em;
}

/* "· £59.99 after launch": small and muted, after "a year" */
.card .join__later {
  font-size: 14px;
}

/* Narrow phones: the launch price gets its own line, and its dot is hidden on screen (screen readers still hear it) */
@media (max-width: 479px) {
  .card .join__later {
    flex-basis: 100%;
  }

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

.join__label {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
}

.join__input {
  width: 100%;
  height: 54px;
  margin-top: -8px;
  padding: 0 16px;
  border: 1.5px solid var(--input-border);
  border-radius: 16px;
  background: var(--t-sage);
  color: var(--text);
  font-family: inherit;
  font-size: 16px; /* 16px stops iPhones zooming in on focus */
}

/* Honeypot: off-screen for people, still in the form for bots */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cta--block {
  width: 100%;
  min-height: 58px;
  margin-top: 6px;
  font-size: 17px;
}

/* Under the button: reassurance first, then the email line, left aligned like the rest of the card */
.card .join__note {
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.card .join__small {
  margin-top: calc(4px - var(--join-gap)); /* sits 4px under the note */
  color: var(--text3);
  font-size: 13px;
  line-height: 1.5;
}

.join__small a {
  font-weight: 600;
}

/* Shown only if a form can't be sent (signup and answers) */
.form-error,
.card .form-error {
  margin: 0;
  color: var(--terra);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

/* ---------- 10. FAQ ---------- */
.faq {
  box-sizing: content-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
  padding: var(--pad-top) 16px 0;
}

.h2.faq__title {
  margin: 0 0 20px;
  font-size: clamp(34px, 1.5vw + 28px, 44px);
  text-align: center;
}

.faq__item {
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

/* The whole question row is the tap target */
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 20px 22px;
  border-radius: var(--r-card);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

/* Plus that turns into a minus when open (FAQ rows and feature tiles) */
.faq__icon,
.tile__toggle {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--t-sage);
}

.faq__icon::before,
.faq__icon::after,
.tile__toggle::before,
.tile__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 1px;
  background: var(--sage);
  transition: transform 0.2s ease;
}

.faq__icon::after,
.tile__toggle::after {
  transform: rotate(90deg);
}

.faq__item[open] .faq__icon::after,
.tile.is-open .tile__toggle::after {
  transform: rotate(0deg);
}

.faq__item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--text2);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.footer {
  box-sizing: content-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 96px 16px 32px;
}

.footer__brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.footer__note {
  max-width: 560px;
  margin: 0;
  color: var(--text3);
  font-size: 13px;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
}

/* ---------- Tablet and up ---------- */
@media (min-width: 768px) {
  .page {
    padding: 14px;
  }

  .nav {
    width: calc(100% - 48px);
    padding: 8px 8px 8px 16px;
  }

  .brand {
    gap: 10px;
    font-size: 25px;
  }

  .nav__actions {
    gap: 8px;
  }

  .nav__cta {
    padding: 13px 22px;
    font-size: 15px;
  }

  /* The heading stays where it sat under the old label (34px label + 22px gap) */
  .hero {
    padding: 176px 4% 64px;
  }

  /* Tablet keeps the original hero spacing and sizes */
  .hero__inner {
    gap: 40px;
  }

  .hero__title {
    font-size: clamp(42px, 4.8vw + 24px, 92px);
  }

  /* The sub wraps naturally from here; phones break it after the first sentence */
  .hero__sub {
    font-size: 19px;
    line-height: 1.5;
  }

  .hero__break {
    display: none;
  }

  .hero__actions {
    margin-top: 30px;
  }

  .hero__cta {
    width: auto;
    min-height: 44px;
    padding: 19px 34px;
  }

  .hero__note {
    display: inline;
  }

  .hero__media {
    aspect-ratio: 15 / 16;
  }

  .hero__photo {
    object-position: 60% 45%;
  }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  .nav__links {
    display: flex;
    gap: 24px;
  }

  .hero {
    padding: 148px 4% 76px;
    /* Glows sit behind the photo. (The prototype had peach bottom-left and plum mid-way,
       which put them under "Free to join…" and dropped it below 4.5:1 at 1024px.) */
    background:
      radial-gradient(900px 520px at 82% 18%, var(--g-sage) 0%, transparent 62%),
      radial-gradient(620px 420px at 62% 100%, var(--g-peach) 0%, transparent 60%),
      linear-gradient(180deg, var(--field-top) 0%, var(--field-mid) 48%, var(--field-bot) 100%);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
  }

  /* 82px at 1280 and up, scaling down so neither line outgrows its column (about 72px at 1024) */
  .hero__title {
    font-size: min(82px, calc(7.77vw - 7.2px));
  }

  .hero__sub {
    max-width: 500px;
    margin-top: 28px;
    font-size: 21px;
  }

  .hero__actions {
    margin-top: 38px;
  }

  /* Top right, over the side table, so the chip never covers her face */
  .float-card--listening {
    top: 38px;
    right: -34px;
    left: auto;
    gap: 12px;
    padding: 10px 18px 10px 10px;
  }

  .ember-slot {
    width: 52px;
    height: 52px;
  }

  .ember-slot .ember {
    width: 36px;
    height: 42px;
  }

  .float-card--noticed {
    bottom: 44px;
    left: -46px;
    width: 290px;
    padding: 18px 20px;
  }

  .float-card .float-card__line {
    margin-top: 8px;
    font-size: 17px;
  }
}

/* Small laptops: the photo is narrowest here, so "Flara noticed" sits lower to clear the phone */
@media (min-width: 1024px) and (max-width: 1279px) {
  .float-card--noticed {
    bottom: -24px;
  }
}

/* ---------- Story sections: tablet and up ---------- */
@media (min-width: 768px) {
  .section,
  .everything,
  .story,
  .faq {
    --pad-top: 120px;
  }

  .section {
    padding: var(--pad-top) 4% 0;
  }

  /* Cards float over the phone edges, as in the prototype */
  .control {
    justify-content: center;
    height: 660px;
    padding: 0;
    background:
      radial-gradient(380px 380px at 50% 46%, var(--g-sage) 0%, transparent 72%),
      radial-gradient(300px 240px at 88% 86%, var(--g-peach) 0%, transparent 70%);
  }

  .control__cards {
    display: contents;
  }

  .control__cards .card {
    position: absolute;
  }

  /* Anchored to the phone's centre so it overlaps the phone edge by the same amount at every width */
  .control .energy {
    bottom: 0;
    left: calc(50% + 28px);
    width: 264px;
  }

  .control .afternoon {
    bottom: 70px;
    left: 3%;
    width: 230px;
  }

  .section__visual.control,
  .section__visual.together {
    position: relative;
  }

  .together {
    display: block;
    height: 560px;
    padding: 0;
    background:
      radial-gradient(360px 300px at 35% 40%, var(--g-peach) 0%, transparent 72%),
      radial-gradient(300px 240px at 85% 80%, var(--g-sage) 0%, transparent 70%);
  }

  .letter {
    position: absolute;
    top: 60px;
    left: 6%;
    width: 330px;
    padding: 26px;
  }

  .battery {
    position: absolute;
    right: 5%;
    bottom: 56px;
    width: 300px;
    margin: 0;
  }
}

/* ---------- Story sections: desktop ---------- */
@media (min-width: 1024px) {
  .section,
  .everything,
  .story {
    --pad-top: 170px;
  }

  .section--seen,
  .faq {
    --pad-top: 150px;
  }

  .section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.27fr);
    align-items: center;
    gap: 64px;
  }

  /* Visual on the left, text on the right (phones keep text first) */
  .section--flip {
    grid-template-columns: minmax(0, 1.27fr) minmax(0, 1fr);
  }

  .section--flip .section__visual {
    order: -1;
  }

  .lede {
    margin-top: 22px;
    font-size: 19px;
  }

  .chat {
    gap: 16px;
    padding: 48px;
  }

  .chat__user,
  .chat__flara {
    font-size: 17px;
  }
}

/* ---------- Flare, doctor, feature grid: larger screens ---------- */
/* Two columns from 600px: below that, two tiles side by side are too narrow and the lines wrap to three */
@media (min-width: 600px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Tiles: icon on top, plus/minus top right, then title, line and description */
  .tile {
    padding: 18px;
  }

  .tile__icon {
    position: static;
    margin: 0 44px 10px 0;
  }

  .tile .tile__toggle {
    top: 24px;
    right: 18px;
  }

  .tile__line {
    margin-top: 10px;
  }
}

@media (min-width: 768px) {
  .flare {
    margin-top: 120px;
    padding: 80px 6%;
  }

  .ready {
    padding: 56px 40px;
    background:
      radial-gradient(420px 320px at 60% 40%, var(--g-peach) 0%, transparent 72%),
      radial-gradient(300px 220px at 10% 10%, var(--g-honey) 0%, transparent 70%);
  }

  .report {
    padding: 30px;
  }

  .card .report__title {
    font-size: 23px;
  }

  .card .stat {
    padding: 14px;
  }

  .stat b {
    font-size: 26px;
  }

  .everything {
    padding: var(--pad-top) 4% 0;
  }

  .tiles {
    gap: 14px;
  }

  .tile {
    padding: 22px;
    border-radius: 24px;
  }

  .tile .tile__toggle {
    top: 28px;
    right: 22px;
  }
}

@media (min-width: 1024px) {
  .flare {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
    margin-top: 170px;
    padding: 96px 6%;
    /* Glows stay around the phone on the right */
    background:
      radial-gradient(420px 380px at 74% 48%, var(--flare-glow-plum) 0%, transparent 70%),
      radial-gradient(320px 260px at 96% 96%, var(--flare-glow-teal) 0%, transparent 70%),
      var(--flare-bg);
  }

  /* Three columns from 1024px: six tiles make two even rows of three */
  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 48px;
  }

  .tile {
    padding: 24px;
  }

  .tile__icon {
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    border-radius: 15px;
  }

  .tile__icon svg {
    width: 22px;
    height: 22px;
  }

  .tile .tile__toggle {
    top: 33px;
    right: 24px;
  }

  .tile__title {
    font-size: 18px;
  }

  .tile__line {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.5;
  }
}

/* ---------- Driver's seat: phones ----------
   The Body Manual screen's last ~196px is empty, so the energy card rises over it,
   the way it overlaps the phone on bigger screens. Slightly narrower than the phone so its frame still shows. */
@media (max-width: 767px) {
  .control__cards .energy {
    position: relative;
    z-index: 1;
    width: min(264px, 100%);
    margin-top: -186px;
  }
}

/* ---------- Join: phones (tighter, so the button sits higher) ---------- */
@media (max-width: 767px) {
  .join {
    gap: 28px;
    padding: 40px 20px;
  }

  .ticks {
    gap: 10px;
    margin-top: 20px;
  }

  .join__form {
    --join-gap: 12px;
    padding: 24px 20px;
  }

  .join__offer {
    gap: 6px;
  }

  .join__label {
    margin-top: 0;
  }

  .join__input {
    margin-top: -6px;
  }
}

/* ---------- Story, join, FAQ, footer: larger screens ---------- */
@media (min-width: 768px) {
  .join {
    margin-top: 120px;
    padding: 64px 6%;
  }

  .join__form {
    padding: 36px;
  }

  .join__price > span:first-child {
    font-size: 52px;
  }

  .faq__item summary {
    padding: 22px 26px;
    font-size: 18px;
  }

  .faq__item p {
    padding: 0 26px 22px;
  }

  .footer {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 110px 4% 40px;
  }
}

@media (min-width: 1024px) {
  .join {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
    margin-top: 170px;
    padding: 88px 6%;
    background:
      radial-gradient(520px 440px at 78% 45%, var(--g-sage) 0%, transparent 68%),
      radial-gradient(480px 380px at 98% 98%, var(--g-peach) 0%, transparent 62%),
      linear-gradient(180deg, var(--field-top) 0%, var(--field-mid) 48%, var(--field-bot) 100%);
  }

  .join__form {
    justify-self: end;
  }
}

/* ---------- Thank you page ---------- */
/* The soft background runs behind the footer too, so the glow never stops in a hard line */
.ty-page {
  min-height: 100vh;
  background:
    radial-gradient(500px 360px at 85% 0%, var(--g-sage) 0%, transparent 65%),
    radial-gradient(420px 320px at 0% 100%, var(--g-peach) 0%, transparent 60%),
    linear-gradient(180deg, var(--field-top) 0%, var(--field-mid) 48%, var(--field-bot) 100%);
}

.ty {
  padding: 40px 16px 56px;
}

.ty-page .footer {
  padding-top: 24px;
}

.ty__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 640px;
  margin: 0 auto;
}

.ty__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* The ember says hello, with a small sage tick so "you're in" still reads at a glance */
.ty__ember {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 96px;
  height: 96px;
}

.ty__ember::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 62%, var(--ember-halo) 0%, transparent 64%);
}

.ty__ember .ember {
  position: relative;
  width: 64px;
  height: 75px;
  margin-bottom: 6px;
}

.ty__badge {
  position: absolute;
  right: -4px;
  bottom: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sage-solid);
  color: var(--on-solid);
  box-shadow: 0 0 0 3px var(--surface), 0 6px 14px -6px var(--shadow);
}

.ty__badge svg {
  width: 14px;
  height: 14px;
}

.ty__title {
  margin: 22px 0 0;
  font-size: clamp(38px, 2vw + 30px, 50px);
}

.ty__title span {
  color: var(--sage);
}

.ty__text {
  max-width: 460px;
  margin: 14px 0 0;
  color: var(--text2);
  font-size: 17px;
  line-height: 1.55;
  text-wrap: balance;
}

.ty__small {
  margin: 6px 0 0;
  color: var(--text3);
  font-size: 14px;
}

/* "Confirm your email" step: calm and part of the moment, not a warning */
.confirm {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--sage) 25%, transparent);
  border-radius: 20px;
  background: var(--t-sage);
}

.confirm__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  color: var(--sage);
}

.confirm__icon svg {
  width: 20px;
  height: 20px;
}

.confirm__text {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

.confirm__text strong {
  font-weight: 700;
}

.ty__intro {
  text-align: center;
}

.ty__intro .ty__text {
  max-width: none;
  margin: 0;
}

.answers {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Question card: a fieldset, so screen readers hear the question with each chip */
.q {
  min-width: 0;
  margin: 0;
  padding: 22px 20px;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 10px 30px var(--shadow);
}

.q__title {
  float: left; /* keeps the legend inside the card's padding */
  width: 100%;
  padding: 0;
  font-size: 17px;
  font-weight: 700;
}

.card .q__hint {
  clear: both;
  margin-top: 2px;
  color: var(--text3);
  font-size: 13px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip-btn {
  min-height: 44px;
  padding: 11px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.chip-btn[aria-pressed="true"] {
  border-color: var(--sage-solid);
  background: var(--sage-solid);
  color: var(--on-solid);
}

/* Question 3 once three are picked: the rest step back */
.chip-btn[aria-disabled="true"] {
  opacity: 0.6; /* 0.5 was 2.8:1 in day mode, hard to read */
  cursor: not-allowed;
}

.card .q__limit:not(:empty) {
  margin-top: 12px;
  color: var(--text3);
  font-size: 14px;
}

.ty__back {
  margin: 0;
  text-align: center;
}

.ty__back a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
}

/* Focused by script after the questions so screen readers read it; not interactive, so no ring */
[data-answers-status]:focus {
  outline: none;
}

@media (min-width: 768px) {
  .ty {
    padding: 56px 24px 72px;
  }

  .q {
    padding: 22px 24px;
  }
}

/* ---------- Privacy notice (privacy.html): a calm article ---------- */
.doc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
  padding: 16px 16px 0;
}

.doc-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
}

.doc {
  padding: 32px 16px 0;
}

.doc__body {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text2);
  font-size: 17px;
  line-height: 1.65;
}

.doc__title {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 4vw + 20px, 48px);
  line-height: 1.05;
}

.doc__updated {
  margin: 12px 0 0;
  color: var(--text3);
  font-size: 15px;
}

.doc__body h2 {
  margin: 48px 0 12px;
  color: var(--text);
  font-size: clamp(24px, 1vw + 20px, 28px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.doc__body p {
  margin: 0 0 16px;
}

.doc__body ul {
  margin: 0 0 16px;
  padding-left: 1.3em;
}

.doc__body li {
  margin-bottom: 6px;
}

.doc__body li::marker {
  color: var(--sage);
}

/* break-word only splits a word too long for its line, and never squeezes a table column below a whole word */
.doc__body a {
  overflow-wrap: break-word;
}

/* Tables: phones get one small card per row, each cell labelled with its column name.
   The explicit table roles in the HTML keep them read as tables after display changes. */
.doc__table {
  margin: 20px 0 24px;
  font-size: 15px;
  line-height: 1.55;
}

.doc__table table {
  display: block;
  border-collapse: collapse;
}

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

.doc__table tbody,
.doc__table td {
  display: block;
}

.doc__table tr {
  display: block;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.doc__table td {
  padding: 0;
  overflow-wrap: break-word;
}

.doc__table td + td {
  margin-top: 10px;
}

.doc__table td::before {
  content: attr(data-label);
  display: block;
  color: var(--text3);
  font-size: 13px;
  font-weight: 700;
}

.doc__table td:first-child {
  color: var(--text);
  font-weight: 600;
}

@media (min-width: 600px) {
  .doc__table {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
  }

  .doc__table table {
    display: table;
    width: 100%;
  }

  .doc__table thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
    display: table-header-group;
  }

  .doc__table tbody {
    display: table-row-group;
  }

  .doc__table tr {
    display: table-row;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
  }

  .doc__table th,
  .doc__table td {
    display: table-cell;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
  }

  .doc__table tbody tr:last-child td {
    border-bottom: 0;
  }

  .doc__table th {
    background: var(--t-sage);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
  }

  .doc__table td + td {
    margin-top: 0;
  }

  .doc__table td::before {
    content: none;
  }
}

@media (min-width: 768px) {
  .doc-nav {
    padding: 24px 24px 0;
  }

  .doc {
    padding: 48px 24px 0;
  }
}

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

/* ---------- Trust changes (November 2026) ---------- */

/* Hero: the launch note shows on phones too, under the full width button */
.hero__note {
  display: block;
  font-size: 14px;
  line-height: 1.45;
}

/* One honest caption under the first example screen */
.mock-note {
  margin-top: 4px;
  color: var(--text3);
  font-size: 13px;
  text-align: center;
}

/* Energy card: a good day reads sage, not terra */
.energy__pill--good {
  background: var(--t-sage);
  color: var(--sage);
}

/* Join: what happens when you join, before the form */
.join__subhead {
  margin: 28px 0 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1.5;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.steps__n {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--t-sage);
  color: var(--sage);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 767px) {
  .join__subhead {
    margin-top: 20px;
  }

  .steps {
    gap: 10px;
    font-size: 15px;
  }
}

/* Everything section: "See all features" opens the six features the story sections show */
.more {
  max-width: 1240px;
  margin: 28px auto 0;
  text-align: center;
}

.more summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 22px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: 0 10px 30px var(--shadow);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.more summary::-webkit-details-marker {
  display: none;
}

.more[open] .faq__icon::after {
  transform: rotate(0deg);
}

.more__list {
  display: grid;
  gap: 18px;
  margin: 24px 0 0;
  padding: 24px 22px;
  border-radius: 28px;
  background: var(--surface);
  list-style: none;
  text-align: left;
}

.more__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.more__list .tile__icon {
  position: static;
  flex-shrink: 0;
  margin: 0;
}

.more__list b {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 16px;
}

.more__list li > span:last-child {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .more__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 36px;
    padding: 32px 36px;
  }
}

/* Founder story: two short paragraphs read more gently than one long block */
.story__quote p + p {
  margin-top: 18px;
}
