/* Hind, Taviraj and Maitree, hosted on the site (SIL Open Font License). No request goes to Google. */
@font-face { font-family: "Hind"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/hind-300-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; }
@font-face { font-family: "Hind"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/hind-300-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; }
@font-face { font-family: "Hind"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/hind-400-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; }
@font-face { font-family: "Hind"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/hind-400-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; }
@font-face { font-family: "Hind"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/hind-500-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; }
@font-face { font-family: "Hind"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/hind-500-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; }
@font-face { font-family: "Hind"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/hind-600-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; }
@font-face { font-family: "Hind"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/hind-600-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; }
@font-face { font-family: "Maitree"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/maitree-400-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; }
@font-face { font-family: "Maitree"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/maitree-400-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; }
@font-face { font-family: "Taviraj"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/taviraj-400-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; }
@font-face { font-family: "Taviraj"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/taviraj-400-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; }

/* EMMA website. Tokens and rules follow DESIGN.md. */

:root {
  --cream: #fffaf0;
  --white: #ffffff;
  --sage-50: #f1f3ee;
  --sage-100: #e3e8dc;
  --sage-200: #cdd6c1;
  --sage-500: #9eaf8d;
  --sage-700: #6c7d5c;
  --sage-900: #4e5340;
  --ink-900: #2e3530;
  --ink-700: #4e5340;
  --ink-600: #4a5045;
  --mist-50: #eef2f7;
  --mist-100: #dde6f0;
  --mist-500: #5d89ba;
  --mist-600: #4d74a1;
  --mist-700: #3f5f83;
  --mist-800: #375373;
  --pistachio-100: #e8edd5;
  --pistachio-200: #d9e1be;
  --sand: #edc9af;
  --coral-100: #fbe0d4;
  --coral-300: #f4a982;
  --coral-500: #ff7f50;
  --line: #e7e3d8;
  --attack-canvas: #e6e2d4;

  --font-sans: "Hind", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Taviraj", Georgia, "Times New Roman", serif;
  --font-quote: "Maitree", Georgia, serif;

  --text-display: clamp(2.75rem, 1.6rem + 5.2vw, 5.25rem);
  --text-heading-lg: clamp(2.25rem, 1.5rem + 3.2vw, 3.75rem);
  --text-heading: clamp(1.875rem, 1.45rem + 1.9vw, 2.75rem);
  --text-heading-sm: clamp(1.375rem, 1.28rem + 0.4vw, 1.625rem);
  --text-heading-serif: clamp(1.625rem, 1.5rem + 0.5vw, 1.875rem);
  --text-body-lg: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);
  --text-body: clamp(1.0625rem, 1.04rem + 0.1vw, 1.125rem);
  --text-caption: 0.9375rem;
  --text-overline: 0.75rem;
  --text-quote: clamp(1.375rem, 1.28rem + 0.4vw, 1.625rem);
  --text-stat: clamp(3rem, 2.2rem + 3.4vw, 4.5rem);

  --page-max: 1200px;
  --text-max: 680px;
  --gutter: clamp(24px, 4vw, 40px);
  --section-pad: clamp(64px, 10vw, 128px);

  --radius-inner: 12px;
  --radius-frag: 20px;
  --radius-card: 24px;
  --radius-media: 32px;
  --radius-pill: 999px;

  --shadow-lifted: 0 0 0 1px rgba(46, 53, 48, 0.05), 0 20px 40px -12px rgba(46, 53, 48, 0.14);
  --focus-ring: 0 0 0 3px rgba(93, 137, 186, 0.45);

  --dur-state: 200ms;
  --dur-reveal: 600ms;
  --ease-reveal: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
p, h1, h2, h3, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--mist-600); }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

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

.skip { position: absolute; left: 16px; top: -80px; background: var(--mist-700); color: var(--cream); padding: 12px 20px; border-radius: var(--radius-pill); z-index: 100; text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(820px + 2 * var(--gutter)); }

/* ---------- Type ---------- */
.display, .heading-lg, .heading {
  font-weight: 300;
  color: var(--ink-900);
  text-wrap: balance;
  hyphens: auto;
  overflow-wrap: break-word;
}
.display { font-size: var(--text-display); line-height: 1.08; letter-spacing: -0.02em; }
.display--sm { font-size: var(--text-heading-lg); line-height: 1.1; }
.heading-lg { font-size: var(--text-heading-lg); line-height: 1.12; letter-spacing: -0.015em; }
.heading { font-size: var(--text-heading); line-height: 1.18; letter-spacing: -0.01em; }
.heading-sm { font-size: var(--text-heading-sm); line-height: 1.25; font-weight: 500; letter-spacing: -0.005em; }
.heading-serif { font-family: var(--font-serif); font-weight: 400; font-size: var(--text-heading-serif); line-height: 1.25; }
.body-lg { font-size: var(--text-body-lg); line-height: 1.5; color: var(--ink-600); }
.overline { font-size: var(--text-overline); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-700); line-height: 1.3; }
.fineprint { font-size: var(--text-caption); color: var(--ink-700); line-height: 1.5; }
.hl { color: var(--sage-700); }
.stat { font-weight: 300; font-size: var(--text-stat); line-height: 1; letter-spacing: -0.02em; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 4px 28px 2px;
  border-radius: var(--radius-pill);
  font: 500 1.0625rem/1.2 var(--font-sans);
  text-decoration: none; text-align: center;
  border: 1.5px solid var(--mist-700);
  transition: transform var(--dur-state) ease, background-color var(--dur-state) ease, color var(--dur-state) ease;
  cursor: pointer;
}
.btn:focus-visible { border-radius: var(--radius-pill); box-shadow: 0 0 0 2px var(--cream), 0 0 0 5px rgba(93, 137, 186, 0.6); }
.btn--filled { background: var(--mist-700); color: var(--cream); }
.btn--filled:hover { background: var(--mist-800); border-color: var(--mist-800); transform: scale(1.02); }
.btn--outline { background: transparent; color: var(--mist-700); }
.btn--outline:hover { background: rgba(63, 95, 131, 0.07); transform: scale(1.02); }
.btn:active { transform: scale(0.97); }
.btn--compact { min-height: 40px; padding-inline: 20px; font-size: 1rem; }
.btn--block { width: 100%; }

.textlink { display: inline-flex; align-items: center; gap: 6px; color: var(--mist-700); font-weight: 500; text-decoration: none; padding-block: 8px; }
.textlink svg { transition: transform var(--dur-state) ease; }
.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.textlink:hover svg { transform: translateX(4px); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.status { display: inline-flex; align-items: center; gap: 10px; background: var(--sage-100); color: var(--ink-900); border-radius: var(--radius-pill); padding: 7px 16px 5px; font-size: 0.875rem; font-weight: 500; line-height: 1.4; }
.status__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral-500); flex: none; margin-top: -2px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 240, 0.88); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid transparent; transition: border-color var(--dur-state) ease; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__logo img { width: 72px; height: auto; }
.nav__links { display: none; gap: 32px; }
.nav__links a { color: var(--ink-900); text-decoration: none; font-size: 1rem; padding: 6px 0; }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav__right { display: flex; align-items: center; gap: 12px; }

.lang { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px; font-size: 0.875rem; line-height: 1; }
.lang a { color: var(--ink-700); text-decoration: none; padding: 8px 9px 6px; border-radius: var(--radius-pill); }
.lang a[aria-current="true"] { color: var(--ink-900); font-weight: 600; background: var(--sage-100); }
.lang a:hover { color: var(--ink-900); }

@media (min-width: 900px) { .nav__links { display: flex; } }
@media (max-width: 479px) {
  .nav__logo img { width: 60px; }
  .nav .btn--compact { padding-inline: 14px; font-size: 0.9375rem; }
  .nav .lang a { padding-inline: 6px; }
  .nav__right { gap: 8px; }
}

/* ---------- Sections ---------- */
section { padding-block: var(--section-pad); }
.band { background: var(--sage-50); }
.sectionhead { max-width: 760px; display: grid; gap: 16px; margin-bottom: clamp(40px, 6vw, 72px); }
.sectionhead--center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 8vw, 112px) clamp(64px, 10vw, 144px); background: linear-gradient(180deg, var(--sage-50) 0%, var(--cream) 46%); }
.hero__grid { max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); display: grid; gap: 40px; align-items: center; }
.hero__text { display: grid; gap: 24px; justify-items: center; text-align: center; max-width: 720px; margin-inline: auto; }
.hero__text .lede { font-size: var(--text-body-lg); color: var(--ink-600); max-width: 34em; line-height: 1.5; }
.hero__side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; max-width: 560px; margin-inline: auto; width: 100%; }
.hero__side--left { order: 2; }
.hero__side--right { order: 3; }

@media (min-width: 1120px) {
  .hero__grid { grid-template-columns: minmax(200px, 1fr) minmax(0, 680px) minmax(200px, 1fr); gap: 24px; }
  .hero__side { grid-template-columns: 1fr; gap: 56px; max-width: 260px; align-items: start; }
  .hero__side--left { order: 0; justify-self: start; }
  .hero__side--right { order: 0; justify-self: end; }
  .hero__side--left > :first-child { margin-left: 24px; }
  .hero__side--left > :last-child { margin-right: 24px; }
  .hero__side--right > :first-child { margin-right: 24px; }
  .hero__side--right > :last-child { margin-left: 24px; }
  .tilt-l { rotate: -2.5deg; }
  .tilt-r { rotate: 2deg; }
}

/* ---------- App fragments (coded pieces of the app UI, English like the app) ---------- */
.frag { align-content: start; background: var(--white); border-radius: var(--radius-frag); padding: 18px 18px 16px; box-shadow: var(--shadow-lifted); display: grid; gap: 8px; font-size: 0.9375rem; line-height: 1.35; text-align: left; color: var(--ink-900); }
.frag--flat { box-shadow: 0 0 0 1px rgba(46, 53, 48, 0.06); }
.frag__eyebrow { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-700); }
.frag__q { font-size: 1.25rem; font-weight: 500; }
.frag__title { font-size: 1.125rem; font-weight: 600; }
.frag__meta { font-size: 0.875rem; color: var(--ink-700); }
.frag__hint { font-size: 0.8125rem; color: var(--ink-700); }
.frag__badge { justify-self: start; background: var(--sage-100); border-radius: var(--radius-pill); padding: 4px 12px 2px; font-size: 0.75rem; font-weight: 500; }
.frag--attack { background: var(--attack-canvas); color: var(--sage-900); }
.frag--paper { background: var(--white); }

.pain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-block: 4px; }
.pain span { display: grid; place-items: center; aspect-ratio: 1.25; padding-top: 2px; border-radius: var(--radius-pill); background: rgba(255, 250, 240, 0.7); font-weight: 500; font-size: 0.9375rem; }
.pain .is-on { background: var(--coral-300); color: var(--ink-900); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips span { background: rgba(255, 250, 240, 0.7); border-radius: var(--radius-pill); padding: 10px 16px 8px; font-weight: 500; font-size: 0.9375rem; }
.chips .is-on { background: var(--sage-900); color: var(--cream); }

.progress { height: 8px; border-radius: var(--radius-pill); background: rgba(46, 53, 48, 0.12); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--mist-700); border-radius: var(--radius-pill); }

.bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; height: 84px; align-items: end; margin-top: 4px; }
.bars div { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 4px; align-items: end; text-align: center; }
.bars i { display: block; background: var(--sage-500); border-radius: 8px 8px 4px 4px; }
.bars b { font-weight: 400; font-size: 0.75rem; color: var(--ink-700); }

.readout__nums { display: flex; align-items: center; gap: 12px; font-weight: 300; font-size: 2.5rem; line-height: 1; }
.readout__nums svg { width: 22px; height: 22px; color: var(--ink-700); }

.jrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 9px 7px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.jrow b { font-weight: 500; }
.jrow span { color: var(--ink-700); text-align: right; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--sage-100); }
.dots i.on { background: var(--sage-500); }

/* ---------- Statement ---------- */
.statement { padding-block: clamp(72px, 12vw, 160px); }
.statement .wrap { display: grid; gap: 24px; }
.statement .body-lg { max-width: var(--text-max); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (min-width: 640px) and (max-width: 1159px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }

.mediacard { background: var(--white); border-radius: var(--radius-card); padding: 32px 28px 0; display: grid; grid-template-rows: auto auto 1fr; gap: 12px; overflow: hidden; }
.mediacard > p { color: var(--ink-600); }
.mediacard__media { margin-top: 16px; align-self: end; padding: 20px 4px 0; }
.mediacard__media .frag { border-radius: var(--radius-frag) var(--radius-frag) 0 0; padding-bottom: 24px; min-height: 196px; align-content: start; }

.tile { border-radius: var(--radius-card); padding: 32px; display: grid; gap: 16px; align-content: start; }
.tile--pistachio { background: var(--pistachio-100); }
.tile--mist { background: var(--mist-100); }
.tile--coral { background: var(--coral-100); }
.tile ul { display: grid; gap: 10px; }
.tile li { padding-left: 22px; position: relative; }
.tile li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 1.75px; background: var(--ink-700); border-radius: 2px; }
.tile .textlink { margin-top: 4px; justify-self: start; }

/* ---------- Phone stage ---------- */
.stage__grid { display: grid; gap: 48px; align-items: center; }
.stage__text { display: grid; gap: 20px; max-width: 520px; }
.stage__phone { justify-self: center; width: min(320px, 78vw); border-radius: 44px; overflow: hidden; box-shadow: var(--shadow-lifted), 0 0 0 8px var(--white); }
@media (min-width: 900px) { .stage__grid { grid-template-columns: 1fr 1fr; } .stage__phone { width: 340px; } }

/* ---------- See what changed ---------- */
.changed__grid { display: grid; gap: 40px; align-items: center; }
.changed__left { display: grid; gap: 16px; }
.changed__right { display: grid; gap: 28px; }
.readout { background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow-lifted); padding: 28px; display: grid; gap: 16px; max-width: 400px; margin-inline: auto; width: 100%; }
.readout__tag { justify-self: start; background: var(--sage-100); border-radius: var(--radius-pill); padding: 5px 12px 3px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-700); }
.readout__plan { font-weight: 600; font-size: 1.125rem; }
.readout__compare { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 16px; background: var(--sage-50); border-radius: 16px; }
.readout__compare div { display: grid; justify-items: center; gap: 4px; }
.readout__compare small { font-size: 0.875rem; color: var(--ink-700); }
.readout__compare svg { width: 28px; height: 28px; color: var(--ink-700); }
.readout__line { font-size: 1.0625rem; line-height: 1.45; }
.readout__facts { display: grid; }
.readout__facts div { display: flex; justify-content: space-between; gap: 12px; padding-block: 9px 7px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.readout__facts dt { color: var(--ink-700); }
.readout__facts dd { font-weight: 500; text-align: right; }

.steps { counter-reset: step; display: grid; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; padding-block: 16px; border-top: 1px dashed var(--sage-200); }
.steps li::before { content: counter(step); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font-weight: 500; font-size: 0.9375rem; padding-top: 2px; }
.steps b { font-weight: 600; }
.steps span { color: var(--ink-600); grid-column: 2; }

@media (min-width: 1040px) {
  .changed { min-height: 92vh; display: grid; align-items: center; }
  .changed__grid { grid-template-columns: 1fr minmax(340px, 400px) 1fr; gap: 56px; }
}

/* ---------- Editorial ---------- */
.editorial__grid { display: grid; gap: 40px; align-items: center; }
.editorial__text { display: grid; gap: 20px; max-width: 560px; }
.editorial__text > p:not(.overline):not(.body-lg) { color: var(--ink-600); }
@media (min-width: 900px) {
  .editorial__grid { grid-template-columns: 1.1fr 0.9fr; gap: 80px; }
  .editorial--flip .editorial__grid { grid-template-columns: 0.8fr 1.2fr; }
}

.photo { border-radius: var(--radius-media); overflow: hidden; background: var(--sage-100); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--small { aspect-ratio: 4 / 3; max-width: 560px; width: 100%; justify-self: center; }
.photo--wide { aspect-ratio: 16 / 9; }
.photo--portrait { aspect-ratio: 2 / 3; max-width: 420px; width: 100%; justify-self: center; }
.breath { padding-block: 0 var(--section-pad); }
.band + .breath { padding-top: var(--section-pad); }

.nots { display: grid; margin-top: 8px; }
.nots li { display: grid; gap: 2px; padding-block: 14px; border-top: 1px dashed var(--sage-200); }
.nots b { font-weight: 600; }
.nots span { color: var(--ink-600); }

/* ---------- Founder (the one sand card) ---------- */
.founder { padding-top: 0; }
.accent { background: var(--sand); border-radius: var(--radius-card); padding: clamp(24px, 4vw, 48px); display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.accent__portrait { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4 / 5; }
.accent__portrait img { width: 100%; height: 100%; object-fit: cover; }
.accent__text { display: grid; gap: 20px; }
.quote { font-family: var(--font-quote); font-size: var(--text-quote); line-height: 1.6; }
.accent__name { font-size: 1rem; }
.statblock { display: grid; gap: 6px; padding-block: 20px; border-block: 1px dashed rgba(46, 53, 48, 0.3); }
.statblock__nums { display: flex; align-items: center; gap: 16px; }
.statblock__nums svg { width: 32px; height: 32px; }
.statblock__label { font-weight: 500; font-size: var(--text-body-lg); }
.accent .fineprint, .accent .overline { color: var(--ink-900); }
.accent__method { display: grid; gap: 12px; }
.placeholder { border: 1.5px dashed var(--ink-700); border-radius: var(--radius-inner); padding: 14px 16px 12px; font-size: 0.9375rem; background: rgba(255, 250, 240, 0.5); }
@media (min-width: 860px) { .accent { grid-template-columns: minmax(280px, 400px) 1fr; } }

/* ---------- Coming later ---------- */
.later__grid { display: grid; gap: 40px; align-items: center; }
.later__grid > div:last-child { display: grid; gap: 20px; max-width: 640px; }
.later__avatar { width: 160px; height: 160px; border-radius: 50%; overflow: hidden; background: var(--pistachio-200); justify-self: start; }
.later__avatar img { width: 100%; height: 100%; object-fit: cover; }
.laterlist li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding-block: 18px; border-top: 1px dashed var(--sage-200); }
.laterlist li:last-child { border-bottom: 1px dashed var(--sage-200); }
.laterlist svg { width: 24px; height: 24px; color: var(--mist-700); margin-top: 2px; }
.laterlist b { display: block; font-size: var(--text-heading-sm); font-weight: 500; line-height: 1.25; }
.laterlist span { color: var(--ink-600); }
@media (min-width: 860px) { .later__grid { grid-template-columns: 240px 1fr; } .later__avatar { justify-self: center; } }

/* ---------- Pricing (the one deep-sage section) ---------- */
.deep { background: var(--sage-900); color: var(--cream); }
.deep .heading-lg, .deep .overline, .deep .body-lg { color: var(--cream); }
.plans { display: grid; gap: 24px; max-width: 880px; margin-inline: auto; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--white); color: var(--ink-900); border-radius: var(--radius-card); padding: clamp(28px, 4vw, 40px); display: grid; gap: 16px; align-content: start; }
.plan__price { display: flex; align-items: baseline; gap: 8px; color: var(--ink-700); }
.plan__price .stat { color: var(--ink-900); }
.stat--price { font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); }
.plan--tba { background: rgba(255, 250, 240, 0.08); color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(255, 250, 240, 0.35); }
.plan--tba .plan__price, .plan--tba .plan__price .stat { color: var(--cream); }
.plan .btn { margin-top: 8px; }
.checks { display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f5f83' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.deep__note { text-align: center; max-width: 640px; margin: 32px auto 0; color: var(--cream); font-size: var(--text-caption); }
.deep .placeholder { border-color: var(--cream); background: transparent; color: var(--cream); max-width: 640px; margin: 16px auto 0; }
.plan .placeholder { border-color: var(--ink-700); color: var(--ink-900); margin: 8px 0 0; }

/* ---------- FAQ ---------- */
.faq__list { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 22px 20px; font-size: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem); font-weight: 500; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 24px; height: 24px; background: no-repeat center / 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f5f83' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E"); transition: transform var(--dur-state) ease; }
.faq details[open] summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f5f83' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
.faq__a { padding-bottom: 24px; max-width: var(--text-max); color: var(--ink-600); }
.promise { margin-top: 56px; background: var(--sage-50); border-radius: var(--radius-card); padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.promise .textlink { justify-self: start; }

/* ---------- Footer ---------- */
.footer { padding-block: 56px 40px; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; padding-top: 40px; border-top: 1px dashed var(--sage-200); }
.footer__grid img { width: 84px; }
.footer__tag { color: var(--ink-700); font-size: var(--text-caption); margin-top: 8px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__links a { color: var(--ink-900); display: inline-flex; align-items: center; gap: 8px; text-underline-offset: 4px; padding-block: 6px; }
.footer__links .placeholder { padding: 6px 10px 4px; }
.footer__use { margin-top: 28px; font-size: var(--text-caption); color: var(--ink-700); max-width: 760px; }
.footer__use + .footer__use { margin-top: 10px; }
.footer__copy { margin-top: 20px; font-size: var(--text-caption); color: var(--ink-700); }

/* ---------- Plain pages (privacy) ---------- */
.page { padding-block: clamp(48px, 8vw, 96px); }
.page .wrap { display: grid; gap: 18px; max-width: calc(760px + 2 * var(--gutter)); }
.page h1 { font-weight: 300; font-size: var(--text-heading-lg); line-height: 1.12; letter-spacing: -0.015em; }
.page h2 { font-size: var(--text-heading-sm); font-weight: 500; margin-top: 24px; line-height: 1.25; }
.page ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; }
.page .placeholder { display: inline-block; padding: 2px 8px 0; }

/* ---------- Sideways section (What EMMA does) ---------- */
.hscroll__viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.hscroll__viewport::-webkit-scrollbar { display: none; }
.hscroll__track { display: flex; gap: 24px; width: max-content; }
.hscroll .mediacard { flex: none; width: min(82vw, 400px); scroll-snap-align: start; }
.hscroll__hint { display: flex; align-items: center; gap: 14px; margin-top: 28px; font-size: var(--text-caption); color: var(--ink-700); }
.hscroll__bar { width: 120px; height: 4px; border-radius: var(--radius-pill); background: rgba(46, 53, 48, 0.12); overflow: hidden; flex: none; }
.hscroll__bar i { display: block; height: 100%; width: 100%; background: var(--mist-700); border-radius: var(--radius-pill); transform-origin: left; transform: scaleX(var(--hp, 0.25)); }

/* Pinned on large screens: scrolling down moves the cards sideways. Switched on by script.js. */
.hscroll.is-pinned { padding-block: 0; }
.hscroll.is-pinned .hscroll__sticky { position: sticky; top: 0; height: 100vh; display: grid; align-content: center; padding-top: 64px; overflow: clip; }
.hscroll.is-pinned .sectionhead { margin-bottom: 40px; }
.hscroll.is-pinned .hscroll__viewport { overflow: visible; scroll-snap-type: none; margin-inline: 0; padding-inline: 0; }
.hscroll.is-pinned .hscroll__track { will-change: transform; }
.hscroll.is-pinned .mediacard { width: 420px; }

/* ---------- Quiz: guilty or not me ---------- */
.gq { max-width: 560px; margin-inline: auto; display: grid; gap: 24px; justify-items: center; }
.gq-wrap .sectionhead { margin-inline: auto; text-align: center; justify-items: center; }
.gq__stage { position: relative; width: 100%; }
.gq__ghost { position: absolute; inset: 14px -10px -14px 10px; border-radius: var(--radius-media); background: var(--white); opacity: 0.55; rotate: 2.5deg; }
.gq__card { position: relative; background: var(--white); border-radius: var(--radius-media); box-shadow: var(--shadow-lifted); padding: clamp(28px, 6vw, 48px); min-height: clamp(260px, 44vw, 320px); display: grid; align-content: space-between; gap: 24px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; transition: transform 380ms var(--ease-reveal), opacity 380ms var(--ease-reveal), background-color 300ms ease; }
.gq__card.is-dragging { transition: none; cursor: grabbing; }
.gq__card.is-yes { background: var(--pistachio-100); }
.gq__card.is-no { background: var(--sage-50); }
.gq__card.is-out-right { transform: translateX(120%) rotate(12deg); opacity: 0; }
.gq__card.is-out-left { transform: translateX(-120%) rotate(-12deg); opacity: 0; }
.gq__card.is-entering { transform: translateY(18px) scale(0.96); opacity: 0; transition: none; }
.gq__text { font-family: var(--font-quote); font-size: clamp(1.375rem, 1.1rem + 1.4vw, 1.875rem); line-height: 1.4; }
.gq__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.gq__actions .btn { min-width: 148px; }
.gq__bar { width: 160px; height: 4px; border-radius: var(--radius-pill); background: rgba(46, 53, 48, 0.12); overflow: hidden; }
.gq__bar i { display: block; height: 100%; background: var(--mist-700); border-radius: var(--radius-pill); width: 0; transition: width 400ms var(--ease-reveal); }
.gq__hint { text-align: center; }
.no-js .gq, .js .gq-fallback { display: none; }
.gq-fallback { max-width: 760px; margin-inline: auto; background: var(--white); border-radius: var(--radius-card); padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; }

.receipt[hidden], .gq[hidden] { display: none; }
.receipt { border-radius: var(--radius-card); padding: clamp(24px, 4vw, 48px); display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; background: var(--sage-100); transition: background-color 400ms ease; }
.receipt:focus { outline: none; }
.receipt--pistachio { background: var(--pistachio-100); }
.receipt--mist { background: var(--mist-100); }
.receipt--coral { background: var(--coral-100); }
.receipt__main { display: grid; gap: 16px; }
.receipt__main .fineprint, .receipt__main .overline { color: var(--ink-900); }
.receipt__roast { font-family: var(--font-quote); font-size: var(--text-quote); line-height: 1.5; padding-top: 20px; margin-top: 4px; border-top: 1px dashed rgba(46, 53, 48, 0.35); display: grid; gap: 8px; }
.receipt__roast .overline { font-family: var(--font-sans); }
.receipt__slip { background: var(--white); border-radius: var(--radius-frag); padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.receipt__rows { display: grid; }
.receipt__rows li { display: grid; gap: 2px; padding-block: 13px 11px; border-top: 1px dashed var(--sage-200); }
.receipt__rows b { font-weight: 500; color: var(--ink-700); font-size: var(--text-caption); }
.receipt__rows span { color: var(--ink-900); }
.receipt__cta { display: grid; gap: 10px; justify-items: start; padding-top: 8px; border-top: 1px dashed var(--sage-200); }
.receipt__cta .btn { margin-top: 12px; }
.receipt__again { background: none; border: 0; font: 500 var(--text-caption)/1.2 var(--font-sans); cursor: pointer; justify-self: start; padding-block: 4px; }
@media (min-width: 900px) { .receipt { grid-template-columns: 1.05fr 0.95fr; } }
.js .receipt.is-shown { animation: step-in 650ms var(--ease-reveal) both; }
.js .receipt.is-shown .receipt__slip { animation: step-in 650ms 200ms var(--ease-reveal) both; }
.js .receipt.is-shown .receipt__rows li { animation: row-in 500ms var(--ease-reveal) both; }
.js .receipt.is-shown .receipt__rows li:nth-child(1) { animation-delay: 450ms; }
.js .receipt.is-shown .receipt__rows li:nth-child(2) { animation-delay: 600ms; }
.js .receipt.is-shown .receipt__rows li:nth-child(3) { animation-delay: 750ms; }
.js .receipt.is-shown .receipt__rows li:nth-child(4) { animation-delay: 900ms; }

@keyframes row-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes step-in { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }

/* ---------- Motion ---------- */
/* Things flow in as they enter the screen and out again as they leave. All of it switches off under reduced motion. */
.js .reveal { opacity: 0; translate: 0 20px; transition: opacity var(--dur-reveal) var(--ease-reveal), translate 800ms var(--ease-reveal), scale 800ms var(--ease-reveal), clip-path 1100ms var(--ease-reveal); }
.js .reveal.is-out-up { translate: 0 -20px; }
.js .reveal[data-reveal="left"], .js .reveal[data-reveal="left"].is-out-up { translate: -56px 0; }
.js .reveal[data-reveal="right"], .js .reveal[data-reveal="right"].is-out-up { translate: 56px 0; }
.js .reveal[data-reveal="rise"] { translate: 0 56px; }
.js .reveal[data-reveal="scale"] { translate: 0 0; scale: 0.92; }
.js .reveal[data-reveal="unveil"] { translate: 0 0; opacity: 1; clip-path: inset(10% 12% round var(--radius-media)); }
.js .reveal[data-reveal="unveil"] img { scale: 1.12; transition: scale 1600ms var(--ease-reveal); }
.js .reveal.is-in { opacity: 1; translate: 0 0; scale: 1; }
.js .reveal[data-reveal="unveil"].is-in { clip-path: inset(0 round var(--radius-media)); }
.js .reveal[data-reveal="unveil"].is-in img { scale: 1; }

/* Headline that arrives word by word */
.js .reveal[data-words] { opacity: 1; translate: 0 0; }
.js [data-words] .word { display: inline-block; opacity: 0; translate: 0 0.35em; transition: opacity 700ms var(--ease-reveal), translate 700ms var(--ease-reveal); }
.js [data-words].is-in .word { opacity: 1; translate: 0 0; }

/* Charts inside the app fragments fill once they are seen */
.bars i { transform-origin: bottom; transition: scale 1000ms var(--ease-reveal); }
.progress i { transition: width 1400ms var(--ease-reveal); }
.js .frag:not(.is-seen) .bars i { scale: 1 0; }
.js .frag:not(.is-seen) .progress i { width: 0 !important; }
.bars div:nth-child(2) i { transition-delay: 120ms; }
.bars div:nth-child(3) i { transition-delay: 240ms; }

/* Scroll-linked pieces are moved by script.js through these */
.hero .frag, [data-flow] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal[data-reveal], .js [data-words] .word { opacity: 1; translate: none; scale: none; clip-path: none; transition: none; }
  .js .reveal[data-reveal="unveil"] img { scale: none; transition: none; }
  .js .frag:not(.is-seen) .bars i { scale: none; }
  .js .frag:not(.is-seen) .progress i { width: revert !important; }
  .bars i, .progress i { transition: none; }
  .js .receipt.is-shown, .js .receipt.is-shown .receipt__slip, .js .receipt.is-shown .receipt__rows li { animation: none; }
  .gq__card, .gq__bar i { transition: none; }
  .btn, .textlink svg { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}
