/* BrownSerengeti - all site CSS lives here. The CSP is style-src 'self', so
   there are no inline styles anywhere; keep it that way. */

/* Images are cached for a week (customHttp.yml). Replacing one in place
   leaves returning visitors on the old copy, so a changed image gets a new
   filename. */

/* ============ Fonts (self-hosted: the CSP allows font-src 'self' only) ============ */
/* The brand guide's pair: Cormorant Garamond for headings, Montserrat for text. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
}

/* ============ Design tokens ============ */
/* Palette from the brand guide: deep brown #5B4631, gold #C4933A, olive
   #7C8C5A, warm beige #E7DCC2, light neutral #F7F5F0. */
:root {
  --cream: #F7F5F0;
  --cream-2: #EFE9DC;
  --beige: #E7DCC2;
  --sage: #E4E6D6;
  --ink: #2E2418;
  --brown: #5B4631;
  --brown-btn: #6E4220;
  --brown-btn-hover: #5A3518;
  --gold: #C4933A;
  --olive: #7C8C5A;
  --olive-dark: #333D24;
  --green: #4E7A2C;
  --hero-dark: #241B12;
  --heading: #2B2418;
  --muted: #6E6152;
  --line: rgba(60, 45, 25, 0.15);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 15.5px;
}
/* The footer sits at the bottom of the window on short pages (the
   assessment, the results while loading, the legal pages) instead of
   floating up under the content and jumping as a question changes height. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

img, video { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3.serif { font-family: var(--font-display); font-weight: 700; line-height: 1.1; }
/* Cormorant defaults to old-style figures, whose 3, 5 and 9 drop below the
   line. Scores and headings read better with lining figures. */
h1, h2, h3, .gauge-value, .phone-score { font-variant-numeric: lining-nums; }
.eyebrow {
  font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase;
  font-weight: 700; color: var(--brown); margin-bottom: 8px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brown-btn);
  color: #fff;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, transform .15s ease;
}
.btn:hover { background: var(--brown-btn-hover); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-dark { background: #3A2716; }
.btn-dark:hover { background: #2a1b0e; }
.btn-outline {
  background: rgba(20, 12, 6, .35);
  border: 1px solid rgba(231, 220, 194, .7);
  color: #fff;
}
.btn-outline:hover { background: rgba(20, 12, 6, .6); }

/* ============ Header ============ */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  color: var(--brown);
  line-height: 1;
}
.brand-tag {
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--olive-dark);
  font-weight: 600;
  /* Cormorant's B sits a little in from its box; this lines the tagline up
     with the B rather than with the box. */
  padding-left: 4px;
}
.brand-light .brand-name { color: #fff; }
.brand-light .brand-tag { color: rgba(255,255,255,.8); }
.header-cta { background: #3A2716; }
.header-cta:hover { background: #2a1b0e; }
.header-cta .cta-icon { width: 18px; height: 18px; }

/* ============ Hero ============ */
.hero {
  position: relative;
  color: #fff;
  background-color: var(--hero-dark);
  overflow: hidden;
  /* As tall, for its width, as in Stefan's example, so the photo fills the
     right side without cutting heads or the diffuser. */
  min-height: clamp(560px, 54vw, 1060px);
  display: flex;
  align-items: center;
}
.hero > .container { width: 100%; }
/* As in the example: his whole kitchen scene runs under the hero (his baked-in
   text wiped out), darkening slowly over the left half where the headline
   sits. Anchored right, so a narrower screen loses the dark side first. */
.hero-photo {
  position: absolute;
  inset: 0;
  background: var(--hero-dark) url("/images/hero-family-full-1.jpg") right center / cover no-repeat;
  z-index: 0;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 15, 8, .7) 0%, rgba(24, 15, 8, .55) 25%, rgba(24, 15, 8, .3) 38%, rgba(24, 15, 8, .08) 50%, rgba(24, 15, 8, 0) 58%);
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 84px;
  padding-bottom: 56px;
}
.hero h1 {
  font-size: clamp(42px, 5.4vw, 66px);
  margin-bottom: 22px;
}
.hero p {
  max-width: 380px;
  font-size: 15.5px;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 14px;
}
.hero .btn { margin-top: 14px; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 46px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .95);
}
.hero-badge { display: inline-flex; align-items: center; gap: 8px; }
.hero-badge svg { width: 18px; height: 18px; opacity: .9; }
.badge-sep { color: rgba(255,255,255,.4); }

/* ============ Section base ============ */
.section { padding: 72px 0; }
.section-title {
  text-align: center;
  font-size: clamp(30px, 3.8vw, 40px);
  max-width: 640px;
  margin: 0 auto 12px;
  color: var(--heading);
}
.leaf-divider {
  display: flex;
  justify-content: center;
  color: var(--olive);
  margin: 4px 0 40px;
}

/* ============ Impacts (3 columns) ============ */
.impacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.impact {
  text-align: center;
  padding: 0 34px;
  border-right: 1px solid var(--line);
}
.impact:last-child { border-right: none; }
.impact-icon {
  width: 74px; height: 74px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--cream-2);
  display: grid;
  place-items: center;
  color: var(--brown);
}
.impact-icon svg { width: 32px; height: 32px; }
.impact h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: #7A3E1D;
  margin-bottom: 10px;
}
.impact p { font-size: 14px; color: var(--muted); max-width: 250px; margin: 0 auto; }

/* ============ Smarter approach ============ */
/* As in the concept: text on the left, the living room bleeding off the right
   edge and fading into the text side, a caption centred across the bottom. */
.smarter {
  position: relative;
  background: var(--cream-2);
  padding: 56px 0 0;
  overflow: hidden;
}
.smarter .container { position: relative; z-index: 1; }
.smarter .container > div { max-width: 44%; padding-bottom: 40px; }
.smarter h2 { font-size: clamp(32px, 3.6vw, 42px); margin-bottom: 16px; color: var(--heading); }
.smarter p { max-width: 430px; margin-bottom: 12px; color: #4B4335; }
.smarter-features {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 26px;
  margin-top: 26px;
  justify-content: start;
}
.sfeature { text-align: center; max-width: 100px; }
.sfeature-icon {
  width: 52px; height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 1.5px solid var(--heading);
  display: grid;
  place-items: center;
  color: var(--heading);
}
.sfeature-icon svg { width: 24px; height: 24px; }
.sfeature span { font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.3; display: block; }
.smarter-photo {
  position: absolute;
  top: 0; right: 0; bottom: 46px;
  width: 60%;
  background: #cdc4ad url("/images/bedroom-3.jpg") 70% 54% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
}
.smarter .smarter-caption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 46px;
  max-width: none;
  margin: 0;
  white-space: nowrap;
  background: var(--cream);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--heading);
}
.smarter-caption::before, .smarter-caption::after {
  content: "";
  width: min(18vw, 200px);
  height: 1px;
  background: var(--olive);
}

/* ============ Meet the system ============ */
.system { padding: 28px 0; background: var(--cream); }
.system-grid {
  display: grid;
  grid-template-columns: 47% 1fr;
  min-height: 420px;
}
.system-media {
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.system-video { width: 100%; max-width: 440px; aspect-ratio: 1; object-fit: cover; }
.system-copy {
  padding: 40px 8% 40px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.system-copy .btn { align-self: flex-start; }
.system-copy h2 { font-size: clamp(30px, 3.4vw, 38px); max-width: 440px; margin-bottom: 20px; color: var(--heading); }
.system-list { list-style: none; display: grid; gap: 8px; margin-bottom: 26px; }
.system-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.system-list b { font-weight: 700; }
.check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--olive-dark);
  color: #fff;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.check svg { width: 12px; height: 12px; }

/* ============ Podcast ============ */
.podcast { padding: 28px 0 56px; background: #E9EDE2; }
.podcast .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.podcast h2 { font-size: clamp(32px, 3.6vw, 40px); color: var(--heading); margin-bottom: 14px; max-width: 420px; }
.podcast-copy > p { color: #4B4335; max-width: 470px; }
.experts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 28px 0 30px;
  max-width: 500px;
}
.experts li { text-align: center; font-size: 11px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.expert-icon {
  width: 44px; height: 44px;
  margin: 0 auto 8px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream);
  display: grid;
  place-items: center;
  color: var(--brown);
}
.expert-icon svg { width: 22px; height: 22px; }
.podcast-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.podcast-cta span { font-size: 13px; color: var(--muted); }
.podcast-cta .play { width: 22px; height: 22px; color: #fff; }
.podcast-note {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}
/* One copy beside the text on wide screens; in the one-column layout the
   other copy sits between the experts and the YouTube button. */
.podcast-photo-inline { display: none; }
.podcast-photo {
  width: 100%;
  height: clamp(220px, 26vw, 330px);
  border-radius: var(--radius);
  background: #2a2017 url("/images/podcast.jpg") center / cover no-repeat;
}

/* ============ Assessment ============ */
.assessment {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #EFE8DA, #E9E0CC);
  color: var(--ink);
  padding: 56px 0;
}
.assessment .container { position: relative; z-index: 1; }
.assess-plant {
  position: absolute; bottom: 0; z-index: 0; height: auto;
  /* Fade the photo's own wall and edges into the section, keeping the
     table top, so the plants sit in the scene rather than in boxes. */
  -webkit-mask-image: radial-gradient(ellipse 100% 115% at 50% 100%, #000 74%, transparent 100%);
  mask-image: radial-gradient(ellipse 100% 115% at 50% 100%, #000 74%, transparent 100%);
}
/* One in-focus plant, mirrored, so both sides match and neither is soft. */
.assess-plant-left { left: 0; width: 250px; }
.assess-plant-right { right: 0; width: 250px; }
.assessment .container {
  display: grid;
  grid-template-columns: 300px 1fr;
  max-width: 900px;
  gap: 56px;
  align-items: center;
}
.phone {
  width: 250px;
  border-radius: 34px;
  background: #101010;
  padding: 12px;
  box-shadow: 0 26px 50px rgba(40, 25, 10, .35);
  margin: 0 auto;
}
.phone-screen {
  border-radius: 24px;
  overflow: hidden;
  background: var(--cream);
  color: var(--ink);
  text-align: center;
  padding: 18px 16px 22px;
}
.phone-brand {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--brown);
}
.phone-brand img { width: 16px; height: 16px; border-radius: 50%; }
.phone-label { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 12px; }
.phone-score {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--olive-dark);
}
.phone-score small { font-size: 16px; color: var(--muted); font-weight: 600; }
.phone-note { font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.phone-bar {
  height: 7px;
  border-radius: 4px;
  background: #ddd6c6;
  margin: 10px 6px 0;
  overflow: hidden;
}
.phone-bar i {
  display: block;
  height: 100%;
  width: 82%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--green));
}
.phone-recs {
  margin-top: 16px;
  text-align: left;
  font-size: 10.5px;
  display: grid;
  gap: 5px;
}
.phone-recs strong { font-size: 10.5px; margin-bottom: 2px; }
.phone-recs span { display: flex; align-items: center; gap: 6px; color: #3d3428; }
.phone-recs span::before {
  content: "";
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.assessment h2 { font-size: clamp(32px, 3.8vw, 42px); margin-bottom: 14px; color: var(--heading); }
.assessment .lede {
  color: #3d3428;
  max-width: 500px;
  margin-bottom: 12px;
  font-size: 15px;
}
.assessment .lede b { color: var(--ink); }
.assess-start { max-width: 420px; margin-top: 26px; }
.assess-start .btn { width: 100%; justify-content: center; font-size: 16px; padding: 16px 24px; }
.assess-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 14px;
}
.assess-privacy a { color: var(--brown); }
/* Error and success states are toggled by la.js through the hidden attribute. */
.form-error { margin-top: 14px; font-size: 14px; font-weight: 600; color: #ffb4ad; }
.form-success {
  max-width: 560px;
  padding: 18px 20px;
  border-radius: 8px;
  background: rgba(159, 221, 162, .12);
  border: 1px solid rgba(159, 221, 162, .4);
  color: #fff;
}

/* Honeypot: off-screen, so only a bot fills it in. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.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;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brown-btn); color: #fff; padding: 10px 16px; border-radius: 6px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ============ The meaning behind the name ============ */
.meaning { padding: 64px 0 60px; background: #FCFAF6; }
.meaning-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--brown-btn); margin-bottom: 10px;
}
.meaning-eyebrow span { text-align: center; }
.meaning-eyebrow::before, .meaning-eyebrow::after {
  content: ""; width: min(16vw, 210px); height: 1px; background: var(--olive);
}
/* The two halves of the name in their own colours. */
.meaning .word-brown { color: var(--brown-btn); }
.meaning .word-olive { color: #5F6E3A; }
.meaning h2 { text-align: center; font-size: clamp(32px, 4.2vw, 50px); color: var(--heading); margin-bottom: 30px; }
.meaning-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.meaning-card img {
  width: 100%; height: auto; aspect-ratio: 636 / 228; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 14px;
}
.meaning-card h3 { font-family: var(--font-display); font-size: 38px; font-weight: 700; line-height: 1.05; color: var(--heading); }
.meaning-words {
  font-size: 14px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--olive-dark); margin: 6px 0 8px;
}
.meaning-card p:last-child { color: #3d3428; font-size: 15px; max-width: 560px; }
.meaning-together {
  margin: 34px auto 14px; max-width: 900px; text-align: center;
  font-family: var(--font-display); font-style: italic; font-size: clamp(20px, 2.2vw, 25px); color: var(--heading);
}
.meaning-mission {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  text-align: center; font-weight: 700; font-size: 16px; color: var(--olive-dark);
}
.meaning-mission::before, .meaning-mission::after {
  content: ""; flex: 0 0 min(12vw, 160px); height: 1px; background: var(--olive);
}

/* ============ Footer ============ */
.site-footer {
  background: var(--olive-dark);
  color: rgba(255,255,255,.85);
  padding: 60px 0 0;
  font-size: 13.5px;
}
.stay-connected {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 8px 0 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.15);
  scroll-margin-top: 120px;
}
.stay-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.stay-connected h2 { font-size: clamp(30px, 3.4vw, 40px); color: #fff; margin-bottom: 10px; }
.stay-copy p:last-child { color: rgba(255,255,255,.78); max-width: 460px; font-size: 14.5px; }
.stay-connected.is-product .newsletter-form { box-shadow: 0 0 0 3px var(--gold); border-radius: 10px; }
.stay-signup .form-success {
  padding: 14px 16px;
  font-size: 14.5px;
  color: #fff;
  background: rgba(159, 221, 162, .12);
  border: 1px solid rgba(159, 221, 162, .4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
}
.footer-mark { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-mark .brand-logo { width: 44px; height: 44px; }
.footer-brand .fname {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}
.footer-brand p { max-width: 230px; color: rgba(255,255,255,.7); }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  transition: background .2s;
}
.socials a:hover { background: rgba(255,255,255,.12); }
.socials svg { width: 15px; height: 15px; }
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: rgba(255,255,255,.85); }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.newsletter-form { display: flex; flex-wrap: wrap; width: 100%; max-width: 480px; }
.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid rgba(255,255,255,.3);
  border-right: none;
  border-radius: 10px 0 0 10px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.55); }
.newsletter-form input:focus-visible { outline: 2px solid var(--gold); }
/* Same 1px border as the input, in the button's own colour, so the two
   share one outline and neither looks bigger than the other. */
.newsletter-form button {
  padding: 0 22px;
  border: 1px solid var(--brown-btn);
  border-radius: 0 10px 10px 0;
  background: var(--brown-btn);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--brown-btn-hover); border-color: var(--brown-btn-hover); }
.newsletter-form button[disabled] { opacity: .7; cursor: progress; }
.newsletter-form .form-error { flex-basis: 100%; font-size: 13px; margin-top: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  text-align: center;
  padding: 20px 0;
  font-size: 12.5px;
  color: rgba(255,255,255,.55);
}

/* ============ Thank-you and legal pages ============ */
.page { padding: 72px 0 88px; }
.page .container { max-width: 720px; }
.thanks { text-align: center; }
.thanks-eyebrow {
  font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase;
  font-weight: 700; color: var(--brown); margin-bottom: 12px;
}
.thanks h1 { font-size: clamp(36px, 4.8vw, 50px); margin-bottom: 18px; }
.thanks-lead { color: var(--muted); font-size: 16px; max-width: 540px; margin: 0 auto 30px; }
.thanks-next {
  margin-top: 48px; padding: 36px 28px; border-radius: var(--radius);
  background: var(--sage);
}
.thanks-next h2 { font-size: 30px; margin-bottom: 10px; }
.thanks-next p { color: #4B4335; max-width: 480px; margin: 0 auto 22px; }
.microcopy { font-size: 13px; color: var(--muted); margin-top: 10px; }
.legal h1 { font-size: clamp(34px, 4.4vw, 44px); margin-bottom: 8px; }
.legal .lede { color: var(--muted); margin-bottom: 28px; }
.legal h2 { font-size: 26px; margin: 30px 0 8px; }
.legal p { color: #4B4335; }
.legal a { color: var(--brown); }
.legal .back { display: inline-block; margin-top: 36px; font-weight: 600; text-decoration: none; }
.footer-mini {
  background: var(--olive-dark); color: rgba(255,255,255,.6);
  font-size: 12.5px; padding: 20px 0;
}
.footer-mini .container { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.footer-mini nav { display: flex; gap: 18px; }
.footer-mini a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-mini a:hover { color: #fff; text-decoration: underline; }

/* ============ Quiz page ============ */
/* Compact on purpose: the first question has to be on screen without
   scrolling, on a phone and on a short laptop. */
.quiz-page { padding: 28px 0 56px; }
.quiz-page .container { max-width: 720px; }
.quiz-intro { text-align: center; margin-bottom: 20px; }
.quiz-intro .eyebrow { margin-bottom: 4px; }
.quiz-intro h1 { font-size: clamp(28px, 3.6vw, 38px); color: var(--brown); margin-bottom: 6px; }
.quiz-intro p:last-child { color: var(--muted); max-width: 520px; margin: 0 auto; font-size: 14px; }
/* Set by la-quiz.js after the first answer. */
.la-quiz-started .quiz-intro { display: none; }
.la-quiz-started .quiz-page { padding-top: 20px; }
.quiz-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 14px 36px rgba(60, 40, 15, .08);
}
.quiz-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.quiz-count { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.quiz-bar {
  flex: 1;
  height: 6px;
  border: 0;
  border-radius: 3px;
  background: var(--cream-2);
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
}
.quiz-bar::-webkit-progress-bar { background: var(--cream-2); border-radius: 3px; }
.quiz-bar::-webkit-progress-value { background: var(--olive); border-radius: 3px; transition: width .3s ease; }
.quiz-bar::-moz-progress-bar { background: var(--olive); border-radius: 3px; }
.quiz-question {
  font-size: clamp(26px, 3.4vw, 32px);
  color: var(--ink);
  margin-bottom: 8px;
  outline: none;
}
.quiz-hint { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.quiz-options { display: grid; gap: 10px; margin-top: 20px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px 16px;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.quiz-option:hover { border-color: var(--olive); background: #fff; }
.quiz-option:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.quiz-option:disabled { cursor: progress; opacity: .7; }
.quiz-option-key {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.quiz-option.is-picked { border-color: var(--olive); background: #EEF1E4; }
.quiz-option.is-picked .quiz-option-key { background: var(--olive); border-color: var(--olive); color: #fff; }
.quiz-actions { margin-top: 18px; min-height: 22px; }
.quiz-back {
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--muted);
}
.quiz-back:hover { color: var(--ink); }
.quiz-status { margin-top: 14px; font-weight: 600; color: var(--olive-dark); }
.quiz-status.is-error { color: #a33a2a; }
.quiz-gate-lede { color: var(--muted); margin-bottom: 20px; }
.quiz-gate-fields { display: grid; gap: 6px; margin-bottom: 14px; }
.quiz-gate-fields label { font-size: 13px; font-weight: 700; margin-top: 8px; }
.quiz-gate-fields input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
}
.quiz-gate-fields input:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.quiz-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 2px 0 18px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #4B4335;
  cursor: pointer;
}
.quiz-consent input {
  width: 18px; height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--olive);
  cursor: pointer;
}
.quiz-gate .btn { width: 100%; justify-content: center; font-size: 16px; padding: 16px 24px; }
.quiz-gate .btn[disabled] { opacity: .7; cursor: progress; }
.quiz-gate .form-error { color: #a33a2a; }
.quiz-privacy { margin-top: 12px; font-size: 12.5px; color: var(--muted); text-align: center; }
.quiz-privacy a { color: var(--brown); }
.quiz-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 22px; }

/* ============ Results page ============ */
.results-hero {
  position: relative;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(rgba(36, 26, 14, .78), rgba(36, 26, 14, .86)),
    url("/images/bedroom-3.jpg") center / cover no-repeat;
  background-color: var(--hero-dark);
}
.results-hero-bar { background: rgba(51, 61, 36, .92); text-align: left; }
.results-hero-bar .container { padding-top: 12px; padding-bottom: 12px; }
.results-hero-copy { padding-top: 28px; padding-bottom: 44px; }
.results-check {
  width: 58px; height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid rgba(255,255,255,.85);
  display: grid;
  place-items: center;
}
.results-check svg { width: 28px; height: 28px; }
.results-hero h1 { font-size: clamp(34px, 4.8vw, 50px); max-width: 720px; margin: 0 auto 12px; }
.results-hero p { max-width: 560px; margin: 0 auto; color: rgba(255,255,255,.9); }

.results-loading { padding: 64px 24px; text-align: center; color: var(--muted); }
.results-missing { padding: 56px 24px; text-align: center; }
.results-missing h2 { font-size: 32px; margin-bottom: 10px; }
.results-missing p { color: var(--muted); margin-bottom: 22px; }

.results {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 48px;
  align-items: start;
}
.results-score {
  text-align: center;
  padding-right: 48px;
  border-right: 1px solid var(--line);
}
.gauge { position: relative; max-width: 280px; margin: 0 auto; }
.gauge svg { width: 100%; overflow: visible; }
.gauge path { fill: none; stroke-width: 16; stroke-linecap: round; }
.gauge-track { stroke: #DCE0C8; }
.gauge-fill { stroke: var(--green); transition: stroke-dasharray 1s ease; }
.results[data-band="developing-habits"] .gauge-fill { stroke: var(--gold); }
.results[data-band="more-to-explore"] .gauge-fill { stroke: #B9682E; }
.gauge-value {
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink);
}
.gauge-value span { font-family: var(--font-display); font-size: 72px; font-weight: 700; line-height: .8; }
.gauge-value small { margin-top: 12px; font-size: 18px; font-weight: 600; line-height: 1; }
.results-label {
  display: inline-block;
  margin: 14px 0 12px;
  padding: 6px 22px;
  border-radius: 999px;
  background: #C9D3A2;
  font-weight: 700;
  font-size: 16px;
}
.results[data-band="developing-habits"] .results-label { background: #EBD6A6; }
.results[data-band="more-to-explore"] .results-label { background: #EBC6A6; }
.results-summary { color: #3d3428; font-size: 15px; }
.results-score-note { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.results-recs h2 { font-size: clamp(30px, 3.4vw, 36px); color: var(--brown); margin-bottom: 18px; }
.rec-list { list-style: none; display: grid; gap: 12px; }
.rec {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: var(--radius);
  background: #F1EEE3;
  overflow: hidden;
}
.rec-icon {
  width: 76px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #E1E2C6;
  color: var(--olive-dark);
}
.rec-icon svg { width: 32px; height: 32px; }
.rec-text { padding: 14px 18px; display: grid; gap: 2px; }
.rec-text strong { font-size: 16px; }
.rec-text span { font-size: 14px; color: #3d3428; }

.journey { padding: 24px 0 64px; }
.journey-title {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: clamp(30px, 3.6vw, 40px);
  color: var(--ink);
  margin-bottom: 28px;
}
.journey-title::before, .journey-title::after { content: ""; flex: 1; height: 1px; background: var(--olive); }
.journey-title span { text-align: center; }
.journey-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.journey-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  padding: 32px 32px 34px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.journey-podcast {
  background:
    radial-gradient(ellipse at 85% 40%, rgba(196,147,58,.3), transparent 55%),
    linear-gradient(150deg, #3a2a1a, #17110b);
}
.journey-product { background: linear-gradient(150deg, #3d3020, #1d160e); }
.journey-icon { width: 30px; height: 30px; margin-bottom: 8px; color: var(--beige); }
.journey-card h3 { font-family: var(--font-display); font-size: 32px; line-height: 1.05; max-width: 280px; margin-bottom: 12px; position: relative; z-index: 1; }
.journey-card h3 small { display: block; font-size: 24px; font-weight: 600; }
.journey-card p { max-width: 260px; font-size: 14px; color: rgba(255,255,255,.85); margin-bottom: 22px; position: relative; z-index: 1; }
.journey-card .btn { margin-top: auto; position: relative; z-index: 1; }
/* The product photo is on white, so it sits on a deliberate white plate. */
.journey-product-img {
  position: absolute;
  right: 28px; top: 50%;
  transform: translateY(-50%);
  width: 38%;
  max-width: 220px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(231, 220, 194, .25);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.trust-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 16px;
  margin-top: 28px;
  padding: 20px 28px;
  border-radius: 999px;
  background: var(--cream-2);
}
.trust-strip li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14.5px; }
.trust-strip svg { width: 30px; height: 30px; color: var(--olive-dark); }
.results-disclaimer { margin: 26px auto 0; max-width: 720px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* ============ Scroll reveal ============ */
/* Only hidden once main.js has marked the page, so nothing stays invisible
   if the script never runs. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ============ Responsive ============ */
/* On a smaller laptop or tablet the headline reaches further across the
   photo, so the shade reaches further too. */
@media (min-width: 681px) and (max-width: 1180px) {
  .hero-shade {
    background: linear-gradient(90deg, rgba(24, 15, 8, .82) 0%, rgba(24, 15, 8, .7) 32%, rgba(24, 15, 8, .35) 48%, rgba(24, 15, 8, .08) 60%, rgba(24, 15, 8, 0) 68%);
  }
}
@media (max-width: 960px) {
  .system-grid { grid-template-columns: 1fr; }
  .system-copy { padding: 48px 24px; }
  .podcast .container { grid-template-columns: 1fr; gap: 40px; }
  .podcast-photo-side { display: none; }
  .podcast-photo-inline { display: block; height: clamp(200px, 52vw, 330px); margin-bottom: 26px; }
  .assessment .container { grid-template-columns: 1fr; gap: 40px; }
  .assess-plant { display: none; }
  .smarter { padding-top: 0; }
  .smarter .container > div { max-width: none; padding-top: 32px; }
  /* A crop of the same photo with the diffuser in the middle. */
  .smarter-photo { background-image: url("/images/bedroom-phone-3.jpg"); background-position: center; }
  .smarter-photo { position: relative; width: 100%; height: 290px; -webkit-mask-image: none; mask-image: none; }
  .system { padding: 0; }
  .system-media { border-radius: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .results { grid-template-columns: 1fr; gap: 36px; }
  .results-score { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 32px; }
  .journey-cards { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 15px; }
  .impacts { grid-template-columns: 1fr; gap: 30px; }
  .meaning { padding: 48px 0 44px; }
  .meaning-grid { grid-template-columns: 1fr; gap: 30px; }
  .meaning-eyebrow { font-size: 11px; letter-spacing: 2px; gap: 12px; }
  .meaning-eyebrow::before, .meaning-eyebrow::after { width: 24px; }
  .meaning-card h3 { font-size: 32px; }
  .meaning-mission::before, .meaning-mission::after { display: none; }
  .impact { border-right: none; }
  .smarter-features { grid-template-columns: repeat(2, 1fr); justify-content: center; }
  /* Three to a row, with the last two centred under them. */
  .experts { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 12px; }
  .experts li { flex: 0 0 calc((100% - 24px) / 3); }
  .assess-fields { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stay-connected { grid-template-columns: 1fr; gap: 20px; padding-bottom: 36px; margin-bottom: 36px; }
  /* Full width so the whole placeholder ("Your email address") shows. */
  .newsletter-form { flex-direction: column; gap: 10px; max-width: none; }
  .newsletter-form input { border-right: 1px solid rgba(255,255,255,.3); border-radius: 10px; }
  .newsletter-form button { border-radius: 10px; padding: 14px 22px; }
  /* On a phone the nearly square photo would be cut to a narrow slice, losing
     the dad and a child. Instead the whole photo sits on top at full width,
     nobody cropped, the diffuser at its natural spot by the left edge, and
     the headline follows on the dark background, fading in from the photo. */
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 836 / 828;
    background-image: url("/images/hero-family.jpg");
    background-position: center;
    -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  }
  .hero-shade { display: none; }
  /* Tighter than desktop so the button sits higher on the screen. */
  .hero .container { padding-top: 0; padding-bottom: 32px; }
  .hero h1 { font-size: 36px; margin-bottom: 12px; }
  .hero p { font-size: 15px; line-height: 1.5; margin-bottom: 8px; }
  .hero .btn { margin-top: 8px; }
  .hero-badges { gap: 10px 18px; margin-top: 22px; }
  .badge-sep { display: none; }
  .header-cta { padding: 10px 14px; font-size: 13.5px; gap: 6px; white-space: nowrap; }
  /* The tagline stays, on two even lines under the name, which is what
     leaves room for "Home Check" beside it. */
  .site-header .brand-tag { display: block; font-size: 7.5px; letter-spacing: 1.1px; line-height: 1.35; margin-top: 3px; white-space: normal; padding-left: 2px; }
  .site-header .brand-tag > span { display: block; white-space: nowrap; }
  .site-header .brand > span > br { display: none; }
  .site-header .container { padding-left: 16px; padding-right: 16px; gap: 10px; }
  .site-header .brand { gap: 8px; min-width: 0; }
  .site-header .brand-name { font-size: 21px; white-space: nowrap; }
  .header-cta .cta-icon { display: none; }
  .header-cta { padding: 10px 13px; flex-shrink: 0; }
  .header-cta .cta-icon { width: 16px; height: 16px; }
  .section-impacts { padding: 48px 0; }
  .section-impacts .leaf-divider { margin: 2px 0 26px; }
  .section-impacts .impacts { gap: 24px; }
  .section-impacts .impact-icon { width: 60px; height: 60px; margin-bottom: 12px; }
  .section-impacts .impact-icon svg { width: 27px; height: 27px; }
  .section-impacts .impact h3 { margin-bottom: 6px; }
  .brand-name { font-size: 23px; }
  .brand-logo { width: 44px; height: 44px; }
  .quiz-card { padding: 18px 16px; }
  .quiz-page { padding-top: 16px; }
  .quiz-intro { margin-bottom: 14px; }
  .quiz-intro .eyebrow { display: none; }
  .quiz-progress { margin-bottom: 14px; }
  .quiz-options { margin-top: 14px; gap: 8px; }
  .quiz-option { padding: 12px 14px; }
  .journey-title::before, .journey-title::after { display: none; }
  .journey-title { justify-content: center; }
  .trust-strip { border-radius: var(--radius); flex-direction: column; align-items: flex-start; }
  .journey-product-img { width: 34%; right: 16px; top: 28px; transform: none; }
  .journey-product h3, .journey-product p { max-width: 60%; }
  .smarter-caption { font-size: 17px; }
  .smarter-caption::before, .smarter-caption::after { width: 28px; }
}
@media (max-width: 350px) {
  .site-header .brand-logo { width: 36px; height: 36px; }
  .site-header .brand-name { font-size: 18px; }
  .header-cta { padding: 9px 10px; font-size: 12.5px; }
}
