/* MyPlants — landing page.
   The palette, the type ramp and the accent treatment are the app's own
   (design/MyPlants.dc.html + lib/theme/*.dart, by way of the P4 recreation
   engine): warm paper, pine, terracotta, Bricolage for the display, Hanken for
   the UI, and an Instrument Serif italic accent word underlined by the app's
   own vine flourish — the same headline treatment the store screenshots use,
   so the site and the deck read as one thing. */

/* ── the app's faces, subset to Latin + Latin-Ext (store-release/landing/make-assets.sh) */
@font-face { font-family: 'Bricolage Grotesque Display'; font-weight: 800; font-display: swap; src: url('assets/fonts/BricolageGrotesqueDisplay-ExtraBold.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque Display'; font-weight: 700; font-display: swap; src: url('assets/fonts/BricolageGrotesqueDisplay-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-display: swap; src: url('assets/fonts/BricolageGrotesque-ExtraBold.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 700; font-display: swap; src: url('assets/fonts/BricolageGrotesque-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 600; font-display: swap; src: url('assets/fonts/BricolageGrotesque-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 400; font-display: swap; src: url('assets/fonts/BricolageGrotesque-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 800; font-display: swap; src: url('assets/fonts/HankenGrotesk-ExtraBold.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 700; font-display: swap; src: url('assets/fonts/HankenGrotesk-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 600; font-display: swap; src: url('assets/fonts/HankenGrotesk-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-display: swap; src: url('assets/fonts/HankenGrotesk-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-weight: 400; font-style: italic; font-display: swap; src: url('assets/fonts/InstrumentSerif-Italic.woff2') format('woff2'); }

:root {
  /* Master token sheet, light / Peace Lily. ink3 and clay are the app's own
     shipped a11y overrides of the board values. */
  --ink: #18251C;
  --ink2: #3D4C41;
  --ink3: #626E64;
  --line: rgba(24, 37, 28, 0.10);
  --paper: #F4F0E6;
  --card: #FFFFFF;
  --card2: #FBF7EE;
  --pine: #2E6B4A;
  --pine-deep: #1D4632;
  --leaf: #4BA35D;
  --leaf-tint: #E4F0E2;
  --terracotta: #C56A45;
  --clay: #A9552F;
  /* small text on a tinted ground needs the darker step (clay at 12px reads
     4.4:1 on leaf-tint, under AA) */
  --clay-deep: #8E4526;
  --accent-fill: #B35C38;   /* the filled-button accent the app ships (4.66:1 on white) */
  --sun: #DFA632;
  --sun-tint: #F6EAC7;
  --sky: #5B9DB2;
  --sky-tint: #DCEAEE;
  --cream: #F4EFE0;

  --font-ui: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Bricolage Grotesque', var(--font-ui);
  --font-display: 'Bricolage Grotesque Display', 'Bricolage Grotesque', var(--font-ui);
  --font-serif: 'Instrument Serif', Georgia, serif;

  --gutter: clamp(20px, 5vw, 48px);
  --max: 1180px;
  --radius: 26px;
  --mp-live-accent: var(--terracotta);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: inherit; }

/* Script rules ported from lib/l10n/script_rules.dart: cursive and complex
   scripts take no letter-spacing at all; CJK keeps negatives but never
   positive tracking, and its display lines open up. */
html[data-track='none'] h1, html[data-track='none'] h2, html[data-track='none'] h3,
html[data-track='none'] .eyebrow, html[data-track='none'] .nav__brand { letter-spacing: 0 !important; }
html[data-track='none'] h1, html[data-track='none'] h2 { line-height: 1.28; }
html[data-track='cjk'] .eyebrow, html[data-track='cjk'] .nav__brand { letter-spacing: 0 !important; }
html[data-track='cjk'] h1, html[data-track='cjk'] h2 { line-height: 1.2; }
/* The scripts with no italic drop the slant, exactly as MpFonts.accentSlant does. */
html:is([lang|='ar'], [lang|='fa'], [lang|='ur'], [lang|='he'], [lang|='ja'], [lang|='zh'], [lang|='ko'], [lang|='th'], [lang|='hi'], [lang|='bn'], [lang|='gu'], [lang|='kn'], [lang|='ml'], [lang|='mr'], [lang|='or'], [lang|='pa'], [lang|='ta'], [lang|='te']) .sw { font-style: normal; }
[dir='rtl'] .dir-flip { transform: scaleX(-1); }

.skip {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 999;
  background: var(--pine); color: #fff; padding: 12px 18px; border-radius: 0 0 12px 0;
  font-weight: 700; text-decoration: none;
}
.skip:focus { inset-inline-start: 0; }

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── nav ──────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.nav.scrolled {
  background: rgba(244, 240, 230, 0.93);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(24, 37, 28, 0.5);
}
.nav__in {
  max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 800; font-size: 19px;
  letter-spacing: -0.015em; text-decoration: none; color: var(--ink);
}
.nav__brand img { border-radius: 9px; box-shadow: 0 2px 8px rgba(24, 37, 28, 0.16); }
.nav__cta {
  font-weight: 800; font-size: 14.5px; text-decoration: none; color: #fff;
  background: linear-gradient(158deg, var(--pine), var(--pine-deep));
  padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 8px 18px -6px rgba(46, 107, 74, 0.55);
}
.nav__cta:hover { filter: brightness(1.06); }

/* ── bands ────────────────────────────────────────────────────────────────── */
.band { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 116px) 0; }
.band--paper { background: var(--paper); }
.band--white { background: var(--card); }
.band--leaf { background: var(--leaf-tint); }
.band--dark { background: #12251A; color: var(--cream); }
.band--clay { background: linear-gradient(168deg, #F7EDE4, #F1DFD2); }
.band__in { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.band__in--narrow { max-width: 760px; text-align: center; }

/* The botanical wash: big leaf silhouettes at 4-7%, the app's own ambient
   decor. Clipped by .band's overflow, so it never adds page width. */
.wash { position: absolute; inset: 0; z-index: 1; pointer-events: none; color: var(--pine); }
.wash svg { position: absolute; opacity: .055; }
.band--dark .wash { color: #7FD3A0; }
.band--dark .wash svg { opacity: .10; }

/* ── type ─────────────────────────────────────────────────────────────────── */
/* 1.10, not the deck's 1.06: the vine flourish hangs below its line, and a
   first-line accent would otherwise graze the line under it. */
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.032em; line-height: 1.1; }
h1 { font-size: clamp(2.7rem, 6.4vw, 4.25rem); }
h2 { font-size: clamp(2.15rem, 4.7vw, 3.35rem); }
h3 { font-family: var(--font-head); font-size: 1.12rem; letter-spacing: -0.015em; line-height: 1.25; }

.hl { display: block; }
/* The accent word wears the app's own accent face — Instrument Serif italic,
   set a touch larger because a didone runs optically small next to Bricolage
   at 800 — and the vine flourish underneath it. */
.sw {
  position: relative; display: inline-block;
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.14em; letter-spacing: -0.01em; color: var(--clay);
}
.band--dark .sw { color: #F0C97A; }
.sw i {
  position: absolute; inset-inline: -0.03em -0.14em; bottom: -0.15em; height: 0.20em;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' fill='none'%3E%3Cpath d='M3 12.5c26 5 58 6.5 96 4.5s70-5 100-10.5' stroke='%23A9552F' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") left center / calc(100% - 0.20em) 100% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 92C24 80 10 58 10 34c0-13 3-24 8-30 28 6 56 32 56 62 0 11-2 20-6 26Z' fill='%23A9552F'/%3E%3C/svg%3E") right bottom / 0.40em 0.40em no-repeat;
}
.band--dark .sw i {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' fill='none'%3E%3Cpath d='M3 12.5c26 5 58 6.5 96 4.5s70-5 100-10.5' stroke='%23F0C97A' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") left center / calc(100% - 0.20em) 100% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 92C24 80 10 58 10 34c0-13 3-24 8-30 28 6 56 32 56 62 0 11-2 20-6 26Z' fill='%23F0C97A'/%3E%3C/svg%3E") right bottom / 0.40em 0.40em no-repeat;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  font-weight: 800; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pine);
}
.band--dark .eyebrow { color: #8FD9AE; }
.eyebrow svg { width: 15px; height: 15px; flex: none; }

.lede { margin: 22px 0 0; font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--ink2); max-width: 31rem; }
.band__in--narrow .lede { margin-inline: auto; }
.band--dark .lede { color: rgba(244, 239, 224, 0.86); }

.tryhint {
  display: inline-flex; align-items: center; gap: 8px; margin: 20px 0 0;
  font-size: 13.5px; font-weight: 700; color: var(--ink3);
}
.tryhint::before {
  content: ''; width: 22px; height: 22px; flex: none; border-radius: 999px;
  background: var(--sky-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11.5V5.6a1.7 1.7 0 0 1 3.4 0v5.2m0-1.1a1.6 1.6 0 0 1 3.2 0v1.3m0-.7a1.6 1.6 0 0 1 3.2 0v4.3c0 3.4-2.4 6.4-6 6.4-2.4 0-4-1-5.2-2.6l-2.7-4a1.6 1.6 0 0 1 2.4-2l1.7 1.8' fill='none' stroke='%234E93A8' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.band--dark .tryhint { color: rgba(244, 239, 224, 0.7); }

/* ── hero ─────────────────────────────────────────────────────────────────── */
.hero { padding: clamp(120px, 15vw, 168px) 0 clamp(52px, 6vw, 84px); }
.hero__grid {
  display: grid; gap: clamp(32px, 5vw, 64px); align-items: center;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
}
/* Widths in rem, never ch: `ch` here would resolve against the WRAPPER's 17px
   body font and squeeze the 68px display line to a third of its column. */
.hero__copy { max-width: 33rem; }
.hero .lede { max-width: 30rem; }
.hero__free { margin: 16px 0 0; font-size: 14px; font-weight: 700; color: var(--ink3); }
.hero__stage { position: relative; }
/* Reserve the phone's box before the engine builds it.
   The stage is empty until myplants-live.js runs, so the hero band used to grow
   by ~800px on mount — which moved the ambient leaf laid out in percentages
   inside it, and cost 0.83 of Cumulative Layout Shift on its own. Measured, the
   phone's height is min(809, hostWidth * 2.097) and locale-invariant (the frame
   is fixed; only the copy inside it changes), and below 1000px the host is
   min(420, 100vw - 40). One declaration covers every width, so nothing moves. */
.hero__stage { min-height: min(809px, calc((100vw - 40px) * 2.0972)); }

.badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.badges--lg { justify-content: center; margin-top: 34px; }
.store-badge { display: inline-flex; line-height: 0; border-radius: 11px; transition: transform .18s ease; }
.store-badge img { height: 52px; width: auto; display: block; }
.badges--lg .store-badge img { height: 58px; }
.store-badge:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .store-badge:hover { transform: none; } }

/* ── the live phone ───────────────────────────────────────────────────────── */
/* The shell is a fixed 470px that a transform scales down, so its min-content
   is 470 whatever the scale — and a grid item defaults to min-width:auto, which
   makes the item refuse to go below that and overflow its track on a phone.
   min-width:0 on both the item and the wrapper is what lets the scale do its job. */
.hero__stage, .split__live, .lab__stage { min-width: 0; }
.mp-phone { width: 100%; min-width: 0; }
.mp-phone__shell { will-change: transform; }
/* A near-black shell on a near-black band loses its edge; a hairline of the
   band's own light gives it back without turning it into a sticker. */
.band--dark .mp-phone__shell {
  box-shadow: 0 60px 110px -40px rgba(0, 0, 0, .7),
              0 0 0 1px rgba(190, 232, 205, .13),
              0 0 0 1px rgba(255, 255, 255, .07) inset !important;
}
.mp-phone__screen > * { position: absolute; inset: 0; }

/* A tap on any live control answers the way the app does. */
.mp-tap { -webkit-tap-highlight-color: transparent; transition: transform .12s ease, filter .12s ease; }
.mp-tap:active { transform: scale(.94); }
@media (prefers-reduced-motion: reduce) { .mp-tap { transition: none; } .mp-tap:active { transform: none; } }

.mp-splash {
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--mp-splash) 34%, transparent) 0%, transparent 62%);
  animation: mp-splash .72s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes mp-splash { from { opacity: .95; transform: scale(.9); } to { opacity: 0; transform: scale(1.06); } }

.mp-notif { animation: mp-notif .52s cubic-bezier(.16, .84, .34, 1) both; }
@keyframes mp-notif { from { opacity: 0; transform: translateY(-16px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mp-notif { animation: none; } }

/* ── split sections: words beside a live surface ──────────────────────────── */
.split { display: grid; gap: clamp(32px, 5vw, 68px); align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split--flip .split__live { order: -1; }
.split__copy { max-width: 33rem; }
.split__live { position: relative; }

/* The app's own sheet, floating on the page ground. */
.mp-sheet {
  background: var(--card2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 24px); max-width: 440px;
  box-shadow: 0 30px 60px -34px rgba(24, 37, 28, 0.42);
}
.band--white .mp-sheet { background: var(--paper); }
.split--flip .mp-sheet { margin-inline-start: auto; }

.mp-cell:hover { filter: brightness(.985); }

/* ── the Garden tab ───────────────────────────────────────────────────────── */
/* auto-fill at ~190px keeps a card near the width the app draws it at, so the
   16px name and 11.5px species read the way they do on the phone. */
.mp-garden { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: clamp(12px, 1.4vw, 16px); }
.mp-plantcard { transition: transform .2s ease, box-shadow .2s ease; }
.mp-plantcard:hover { transform: translateY(-3px); box-shadow: 0 20px 34px rgba(24, 37, 28, 0.12) !important; }
@media (prefers-reduced-motion: reduce) { .mp-plantcard { transition: none; } .mp-plantcard:hover { transform: none; } }
.mp-garden__head { margin-bottom: 16px; }
.garden__head { margin-bottom: clamp(28px, 4vw, 48px); }
.garden__head .split__copy { max-width: 36rem; }

/* ── the nudge band ───────────────────────────────────────────────────────── */
.nudge__grid { display: grid; gap: clamp(32px, 5vw, 68px); align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr); }
.replay {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 26px;
  background: rgba(244, 239, 224, 0.1); color: var(--cream);
  border: 1px solid rgba(244, 239, 224, 0.28); border-radius: 999px;
  font-family: var(--font-ui); font-weight: 800; font-size: 14px;
  padding: 11px 20px; cursor: pointer;
}
.replay:hover { background: rgba(244, 239, 224, 0.18); }
.replay svg { width: 16px; height: 16px; }

/* ── the theme lab ────────────────────────────────────────────────────────── */
.lab { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; }
.lab__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 16px); }
.mini {
  display: flex; flex-direction: column; gap: 9px; padding: 0; border: 0; background: none;
  cursor: pointer; font-family: inherit; text-align: center;
}
.mini__face {
  position: relative; display: block; aspect-ratio: 1; border-radius: 20px; overflow: hidden;
  border: 2px solid transparent; box-shadow: 0 10px 22px -12px rgba(24, 37, 28, .5);
  transition: transform .18s ease, box-shadow .18s ease;
}
/* A palette chip, not a pastel square: the theme's own paper behind its plant,
   its PRIMARY as the band along the foot and its accent as the seed beside it.
   Eight themes that differ only by a tint read as eight of the same tile. */
.mini__bar { position: absolute; inset-inline: 0; bottom: 0; height: 26%; }
.mini__seed {
  position: absolute; inset-inline-end: 9%; bottom: 7%; width: 12%; aspect-ratio: 1;
  border-radius: 999px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .8);
}
.mini__face img { position: absolute; inset: 0 0 26% 0; margin: auto; width: 50%; height: 50%; object-fit: contain; }
.mini:hover .mini__face { transform: translateY(-3px); }
.mini.is-on .mini__face { border-color: var(--clay); box-shadow: 0 0 0 4px rgba(169, 85, 47, .16), 0 14px 26px -14px rgba(24, 37, 28, .55); }
.mini__name { font-size: 12.5px; font-weight: 700; color: var(--ink2); line-height: 1.25; }
.mini.is-on .mini__name { color: var(--clay-deep); }
@media (prefers-reduced-motion: reduce) { .mini__face { transition: none; } .mini:hover .mini__face { transform: none; } }

.lab__stage { position: relative; }

/* ── the glow-up (the app's photo timeline) ───────────────────────────────── */
.mp-glow { display: grid; gap: clamp(24px, 3vw, 46px); grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: start; }
.mp-glow__cover { grid-column: 1; grid-row: 1; }
.mp-glow__side { grid-column: 2; grid-row: 1; }
.mp-glow__cover > div:first-child { width: 100%; height: auto; aspect-ratio: 6 / 5; }
.mp-glow__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; max-width: 620px; }
.mp-glow__rail { position: relative; max-width: 620px; }
.mp-glow__head { max-width: 620px; }
.mp-story {
  display: flex; gap: 12px; align-items: center; width: 100%;
  background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit;
  transition: transform .18s ease;
}
.mp-story:hover { transform: translateX(3px); }
[dir='rtl'] .mp-story:hover { transform: translateX(-3px); }
.mp-story.is-on { transform: none; }
@media (prefers-reduced-motion: reduce) { .mp-story { transition: none; } .mp-story:hover { transform: none; } }

/* ── privacy ──────────────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.band__in--narrow .chips { justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; font-weight: 800; font-size: 14px; color: var(--pine);
  box-shadow: 0 8px 18px -14px rgba(24, 37, 28, .7);
}
.chip svg { width: 15px; height: 15px; }

.journal { margin-top: clamp(34px, 5vw, 54px); display: grid; gap: 10px; max-width: 620px; margin-inline: auto; text-align: start; }
.journal__label { font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.journal__row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 11px 14px;
  font-size: 14.5px; color: var(--ink2);
}
.journal__row img { width: 26px; height: 26px; flex: none; }
.journal__seal {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 9px; align-self: center;
  font-weight: 800; font-size: 13px; color: var(--pine);
  background: var(--leaf-tint); border-radius: 999px; padding: 9px 16px;
}
.journal__seal svg { width: 15px; height: 15px; }
.journal__seal { max-width: max-content; }

/* ── CTA + contact ────────────────────────────────────────────────────────── */
.cta { background: linear-gradient(168deg, #245139 0%, #12251A 62%, #1B3A28 100%); color: var(--cream); }
.cta h2 { color: var(--cream); }
.cta .lede { color: rgba(244, 239, 224, 0.82); }
.contact { margin-top: 34px; }
.contact__btn {
  font-family: var(--font-ui); font-weight: 800; font-size: 15px; cursor: pointer;
  background: var(--cream); color: #16301F; border: 0; border-radius: 999px; padding: 14px 26px;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .8);
}
.contact__btn:hover { filter: brightness(1.04); }
.contact__note { margin: 12px 0 0; font-size: 13.5px; color: rgba(244, 239, 224, 0.78); }
.supportpage .contact__btn { background: var(--pine); color: #fff; }
.supportpage .contact__note { color: var(--ink3); }
.contact--start { text-align: start; }

/* ── footer ───────────────────────────────────────────────────────────────── */
.footer { background: var(--paper); border-top: 1px solid var(--line); padding: 44px 0 52px; }
.footer__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.footer__brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 800; font-size: 16px; }
.footer__brand img { border-radius: 8px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14.5px; font-weight: 600; }
.footer__links a { color: var(--ink2); text-decoration: none; }
.footer__links a:hover { color: var(--pine); text-decoration: underline; }
.footer__copy { margin: 0; margin-inline-start: auto; font-size: 13.5px; color: var(--ink3); }
.footer__fine { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--ink3); }

.langs { position: relative; font-size: 14.5px; }
.langs summary { cursor: pointer; font-weight: 600; color: var(--ink2); list-style: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs__menu {
  position: absolute; bottom: 130%; inset-inline-start: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 2px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 18px; box-shadow: 0 26px 54px -26px rgba(24, 37, 28, .5); max-height: 60vh; overflow: auto;
}
.langs__menu a { text-decoration: none; color: var(--ink2); padding: 3px 0; font-size: 14px; }
.langs__menu a[aria-current] { color: var(--pine); font-weight: 800; }

/* ── snackbar + the in-page toast the live app raises ─────────────────────── */
.snackbar, .mp-toast {
  position: fixed; inset-inline: 0; bottom: 26px; margin-inline: auto; z-index: 200;
  width: max-content; max-width: calc(100vw - 40px);
  background: #16301F; color: var(--cream); font-weight: 700; font-size: 14.5px;
  padding: 13px 22px; border-radius: 999px;
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.snackbar--show, .mp-toast.is-on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .snackbar, .mp-toast { transition: none; } }

/* ── support page ─────────────────────────────────────────────────────────── */
.supportpage { padding-top: clamp(112px, 14vw, 150px); }
.supportpage h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); }
.supportpage .band__in--narrow { text-align: start; }
.supportpage .lede { margin-inline: 0; max-width: 44rem; }
.supportpage__h2 { margin: clamp(38px, 5vw, 58px) 0 20px; font-size: clamp(1.5rem, 3vw, 2rem); }
.faq { margin: 0; display: grid; gap: 12px; }
.faq__item { background: var(--card2); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; }
.faq dt { font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; color: var(--ink); }
.faq dd { margin: 7px 0 0; color: var(--ink2); font-size: 15.5px; }
.supportpage__links { margin-top: 34px; font-size: 14.5px; color: var(--ink3); }
.supportpage__links a { color: var(--ink2); }

/* ── responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero__grid, .split, .nudge__grid, .lab { grid-template-columns: minmax(0, 1fr); }
  .split--flip .split__live { order: 0; }
  .hero__copy, .split__copy { max-width: 34rem; }
  /* width:100% and not auto margins alone: an auto-margined grid item stops
     stretching and sizes to fit-content, which for a 470px phone shell means
     it takes 420 inside a 360 track and gets clipped by the band. */
  .hero__stage, .split__live, .lab__stage { width: 100%; max-width: 420px; margin-inline: auto; }
  .split--flip .mp-sheet, .mp-sheet { width: 100%; margin-inline: auto; }
  .mp-garden { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lab__stage { margin-top: 8px; }
  .mp-glow { grid-template-columns: minmax(0, 1fr); }
  .mp-glow__cover { grid-column: 1; grid-row: 1; max-width: 420px; margin-inline: auto; }
  .mp-glow__side { grid-column: 1; grid-row: 2; }
  /* The tiles' payoff must stand where the thumb is: with the lab in one
     column, the live preview goes ABOVE the grid, not a scroll below it. */
  .lab__stage { order: -1; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .nav__cta { padding: 9px 15px; font-size: 13.5px; }
  .mp-garden { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .lab__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .badges { gap: 11px; }
  /* the app draws its cards on a 404pt body; keep the sheet close to that so
     the care card wraps the way the phone does, not one word earlier */
  .mp-sheet { padding: 14px; }
  .store-badge img, .badges--lg .store-badge img { height: 46px; }
  .footer__copy { margin-inline-start: 0; flex-basis: 100%; }
  .langs__menu { grid-template-columns: repeat(2, minmax(110px, 1fr)); }
}

@media (max-width: 420px) {
  .mp-garden { grid-template-columns: minmax(0, 1fr); }
}
