/* =========================================================================
   ForeverMe SensPod — site stylesheet
   Direction: gallery calm (generous space, product-led) + ForeverMe colour
   used as deliberate accent, never as wallpaper.

   Contents
     1. Tokens
     2. Reset & base
     3. Layout primitives
     4. Typography
     5. Buttons & links
     6. Header / nav
     7. Footer
     8. Product plate & grids
     9. Footprint diagram (signature element)
    10. Page sections
    11. Find-your-pod picker
    12. All-options filter grid
    13. Tables
    14. Motion
    15. Responsive
   ========================================================================= */

/* ---------- 1. Tokens --------------------------------------------------- */

:root {
  /* Brand palette — sampled from the registered logo. Do not recolour.
     Use these for the logo, swatches, borders, graphics and large display
     numerals: anywhere colour is decorative rather than load-bearing. */
  --cream: #f8f5e3;
  --white: #ffffff;
  --blue: #3b4478;
  --peach: #fccbad;
  --coral: #f1647a;
  --gold: #dec524;
  --lime: #85be41;
  --green: #00ab69;
  --teal: #008385;

  /* Text-bearing variants. The brand hexes are too light to carry white text:
     #00ab69 with white is 2.99:1 against a 4.5:1 requirement, and coral is
     3.07:1. These darkened tones clear AA and stay recognisably the same
     colour. Each value clears 4.5:1 BOTH ways — as coloured text on cream
     (the darker of the two light surfaces) and as a surface carrying white
     text — so one token is safe wherever it is used. */
  --green-deep: #00804f;   /* 4.57 on cream · 5.01 with white */
  --green-deeper: #006f44; /* hover/pressed */
  --teal-deep: #007c7e;    /* 4.57 on cream · 5.01 with white */
  --gold-deep: #7e7005;    /* 4.56 on cream · 5.00 with white */
  --coral-deep: #b74c5d;   /* 4.55 on cream · 4.99 with white */
  --lime-deep: #4e7717;    /* 4.82 on cream · 5.28 with white */

  /* On the blue surface the correction runs the other way: colours must be
     LIGHTER, not darker, to clear contrast against a dark background. */
  --green-on-dark: #33bc87;
  --coral-on-dark: #f48697;
  --gold-on-dark: #e1ca36;

  /* Semantic roles */
  --bg: var(--cream);
  --bg-raised: var(--white);
  --bg-inverse: var(--blue);
  --ink: var(--blue);
  --ink-muted: #5d6592;
  --ink-inverse: #ffffff;
  --accent: var(--green);
  --rule: rgba(59, 68, 120, 0.14);
  --rule-strong: rgba(59, 68, 120, 0.26);

  /* Plinth the product renders sit on. Their own backdrops run #dfdedf–#fefefe,
     so a plain white plate hides that variance best. */
  --plinth: #ffffff;

  /* Type */
  --display: "Barlow", system-ui, sans-serif;
  --body: "Poppins", system-ui, sans-serif;
  --quote: "Lora", Georgia, serif;

  /* Spacious scale (24–96) */
  --s1: 8px;
  --s2: 12px;
  --s3: 16px;
  --s4: 24px;
  --s5: 32px;
  --s6: 48px;
  --s7: 64px;
  --s8: 96px;
  --s9: 128px;

  --section: clamp(64px, 8vw, 128px);
  --gutter: clamp(20px, 5vw, 72px);
  --measure: 62ch;

  --radius: 20px;
  --radius-sm: 12px;
  /* "pill" is a legacy name — the site now uses a unified 12px rounded-rect
     language for chips, tags, nav pills, tabs and badges. Set to 100px to
     return any of them to true pills. */
  --radius-pill: 12px;

  --shadow-sm: 0 2px 10px rgba(59, 68, 120, 0.06);
  --shadow: 0 14px 40px rgba(59, 68, 120, 0.1);
  --shadow-lg: 0 28px 70px rgba(59, 68, 120, 0.14);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;

  /* z-index scale */
  --z-nav: 100;
  --z-drawer: 200;
  --z-skip: 300;
}

/* ---------- 2. Reset & base --------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p,
ul,
ol,
figure,
table {
  margin: 0;
}

/* Skip link — keyboard users land here first. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: var(--z-skip);
  background: var(--blue);
  color: #fff;
  padding: 14px 22px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  left: 0;
}

:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--peach);
  color: var(--blue);
}

/* ---------- 3. Layout primitives ---------------------------------------- */

.wrap {
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: 860px;
}

.section {
  padding-block: var(--section);
}

/* Surfaces. Kept as single-class selectors so nothing cancels out. */
.surface-white {
  background: var(--white);
}

.surface-cream {
  background: var(--cream);
}

.surface-blue {
  background: var(--blue);
  color: var(--ink-inverse);
}

.surface-blue h1,
.surface-blue h2,
.surface-blue h3 {
  color: #fff;
}

/* Teal surface — same treatment as the blue surface, used to distinguish the
   stand-alone fire-suppression option from the blue sprinkler option. Uses the
   text-bearing teal so white copy clears AA (5.01:1). */
.surface-teal {
  background: var(--teal-deep);
  color: var(--ink-inverse);
}

.surface-teal h1,
.surface-teal h2,
.surface-teal h3 {
  color: #fff;
}

.surface-teal .lede,
.surface-teal .opthero__sub {
  color: rgba(255, 255, 255, 0.86);
}

.stack > * + * {
  margin-top: var(--s4);
}

.stack-sm > * + * {
  margin-top: var(--s2);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.split--text-right .split__media {
  order: -1;
}

/* ---------- 4. Typography ----------------------------------------------- */

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 var(--s3);
}

.surface-blue .eyebrow {
  color: var(--peach);
}

.h-hero {
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.h-section {
  font-size: clamp(30px, 3.9vw, 52px);
}

.h-sub {
  font-size: clamp(22px, 2.4vw, 30px);
}

.lede {
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: var(--measure);
}

.surface-blue .lede {
  color: rgba(255, 255, 255, 0.82);
}

.prose {
  max-width: var(--measure);
}

.prose p + p {
  margin-top: var(--s3);
}

.quote {
  font-family: var(--quote);
  font-style: italic;
  font-size: clamp(19px, 2.1vw, 26px);
  line-height: 1.45;
  color: var(--teal-deep);
}

.surface-blue .quote {
  color: var(--peach);
}

.pull {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.4;
  border-left: 4px solid var(--gold);
  padding-left: var(--s4);
}

.muted {
  color: var(--ink-muted);
}

.center {
  text-align: center;
}

.center .lede,
.center .prose,
.lede.center,
.prose.center {
  margin-inline: auto;
}

/* Section heading block */
.sechead {
  max-width: 66ch;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}

.sechead .quote {
  margin-top: var(--s2);
}

/* ---------- 5. Buttons & links ------------------------------------------ */

/* Buttons are fully tokenised. To restyle every button on the site — shape,
   weight, size, lift — change the six values below and nothing else. */
:root {
  --btn-radius: 12px;       /* rounded rectangle, per the supplied reference · 100px = pill · 4px = square */
  --btn-pad-y: 16px;
  --btn-pad-x: 34px;
  --btn-font: 700 16px/1 var(--body);  /* bold label, per the reference */
  --btn-min-h: 54px;
  --btn-lift: -2px;         /* set to 0 for a flat, non-lifting button */
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: var(--btn-min-h);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1.5px solid transparent;
  border-radius: var(--btn-radius);
  background: var(--green-deep);
  color: #fff;
  font: var(--btn-font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.btn .i {
  flex-shrink: 0;
  opacity: 0.75;
}

.btn--primary {
  background: var(--green-deep);
  color: #fff;
}

.btn--primary:hover {
  background: var(--green-deeper);
  transform: translateY(var(--btn-lift));
  box-shadow: 0 10px 24px rgba(0, 171, 105, 0.26);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}

.btn--ghost:hover {
  background: rgba(59, 68, 120, 0.06);
  border-color: var(--blue);
  transform: translateY(var(--btn-lift));
}

/* Pressed state never changes the layout box — only the transform. */
.btn:active {
  transform: translateY(0) scale(0.985);
  transition-duration: 90ms;
}

.surface-blue .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.surface-blue .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* App-store buttons — dark chip with the platform glyph. */
.btn--store {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  padding: 12px 22px;
  min-height: 48px;
  font-size: 14.5px;
  gap: 11px;
}

.btn--store:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  transform: translateY(var(--btn-lift));
}

.btn--store svg {
  flex-shrink: 0;
}

.storebtns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Learning Hub — green outline on a light chip, per the reference. */
.btn--hub {
  background: var(--white);
  border-color: var(--green-deep);
  color: var(--green-deep);
}

.btn--hub:hover {
  background: rgba(0, 171, 105, 0.08);
  border-color: var(--green-deep);
  transform: translateY(var(--btn-lift));
}

.btn--hub .i {
  opacity: 1;
}

.btn--hub .i:first-child {
  margin-right: 2px;
}

/* Button that opens a menu */
.btn--menu {
  padding-inline: 22px;
  min-height: 46px;
  font-size: 15px;
}

.btn--menu .i {
  transition: transform var(--dur) var(--ease);
}

.btn--menu[aria-expanded="true"] .i {
  transform: rotate(180deg);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

/* Button rows centre inside any centred context — the hero, the closing CTA,
   and explicit .center blocks. (A flex row does not inherit text-align.) */
.center .btn-row,
.hero__inner .btn-row,
.endcta .btn-row {
  justify-content: center;
}

/* Text link with a coloured rule under it */
.tlink {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--coral);
  padding-bottom: 2px;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.tlink:hover {
  border-bottom-color: var(--green-deep);
  color: var(--green-deep);
}

.surface-blue .tlink:hover {
  color: var(--peach);
  border-bottom-color: var(--peach);
}

/* ---------- 6. Header / nav --------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(248, 245, 227, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: var(--s4);
  min-height: 78px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
  text-decoration: none;
}

.brand img {
  height: 46px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 13px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font: 500 15px/1.2 var(--body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav__link:hover {
  background: rgba(59, 68, 120, 0.07);
}

.nav__link[aria-current="page"],
.nav__link[data-section-active="true"] {
  font-weight: 600;
  color: var(--green-deeper);
}

.nav__link[aria-current="page"] {
  background: rgba(0, 171, 105, 0.1);
}

/* External nav link (ForeverMe Academy) — teal to read as an off-site
   destination, with a small external-link glyph. */
.nav__link--ext {
  color: var(--teal-deep);
  font-weight: 600;
}

.nav__link--ext .i {
  opacity: 0.7;
}

.nav__link--ext:hover {
  background: rgba(0, 131, 133, 0.09);
  color: var(--teal-deep);
}

.nav__toggle .i {
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform var(--dur) var(--ease);
}

.nav__toggle[aria-expanded="true"] .i {
  transform: rotate(180deg);
}

.nav__tail {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-left: var(--s3);
}

/* ---- dropdown menus ---- */

.hasmenu {
  position: relative;
}

.menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: var(--z-drawer);
  min-width: 236px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.menu--wide {
  min-width: 306px;
  right: 0;
  left: auto;
  padding: 16px;
}

.menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.menu a:hover {
  background: rgba(59, 68, 120, 0.07);
}

.menu a[aria-current="page"] {
  color: var(--green-deep);
  font-weight: 600;
  background: rgba(0, 171, 105, 0.09);
}

.menu__lede {
  padding: 4px 12px 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.menu__item {
  display: flex !important;
  align-items: center;
  gap: 13px;
  padding: 12px 12px !important;
}

.menu__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(59, 68, 120, 0.08);
  color: var(--blue);
}

.menu__text {
  flex: 1;
  min-width: 0;
}

.menu__text b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 14.5px;
  line-height: 1.3;
}

.menu__text span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 1px;
}

.menu__item .i {
  flex-shrink: 0;
  color: var(--ink-muted);
  opacity: 0.6;
}

/* ---- language toggle switch ---- */
/* Green active state with a leading globe, matching the reference. The active
   language gets a solid green rounded background directly (no sliding thumb),
   which is robust with the globe and mirrors the supplied design. */

.langtoggle {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
  padding: 3px 3px 3px 9px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 12px;
  background: rgba(0, 171, 105, 0.05);
}

.langtoggle__globe {
  display: grid;
  place-items: center;
  color: var(--green-deep);
  margin-right: 4px;
}

.langtoggle a {
  display: grid;
  place-items: center;
  min-width: 46px;
  min-height: 44px; /* touch minimum — the same control is used in the mobile drawer */
  padding: 0 12px;
  border-radius: 9px;
  font: 700 12.5px/1 var(--body);
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.langtoggle a[aria-current="true"] {
  background: var(--green-deep);
  color: #fff;
}

.langtoggle a:not([aria-current]):hover {
  color: var(--green-deep);
}

.langtoggle a:not([aria-current]):hover {
  color: var(--blue);
}

/* Mobile drawer toggle */
.navtoggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1.5px solid var(--rule-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.navtoggle svg {
  margin: auto;
}

.navscrim {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  background: rgba(59, 68, 120, 0.45);
}

/* ---------- 7. Footer --------------------------------------------------- */

.sitefoot {
  background: var(--blue);
  color: rgba(255, 255, 255, 0.75);
  padding-block: var(--s8) var(--s6);
  font-size: 15px;
}

.sitefoot a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.sitefoot a:hover {
  color: #fff;
  text-decoration: underline;
}

.sitefoot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s6) var(--s5);
}

/* The wordmark is dark blue, so on the blue footer it sits on a light plate
   rather than being recoloured — official asset, unmodified. */
.footmark {
  display: inline-block;
  background: var(--cream);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
}

.footmark img {
  height: 54px;
  width: auto;
}

.sitefoot h3 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: var(--s3);
}

.sitefoot ul {
  list-style: none;
  padding: 0;
}

/* Footer links carry a full 44px touch target rather than sitting at their
   21px text height — they are the most-tapped links on a phone. */
.sitefoot li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.sitefoot__base {
  margin-top: var(--s7);
  padding-top: var(--s4);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  justify-content: space-between;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- 8. Product plate & grids ------------------------------------ */

/* Every render sits on a white plinth — gallery treatment. */
.plate {
  background: var(--plinth);
  border-radius: var(--radius);
  padding: clamp(12px, 1.6vw, 24px);
  box-shadow: var(--shadow);
}

.plate img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.plate__cap {
  margin-top: var(--s2);
  font-size: 13px;
  text-align: center;
  color: var(--ink-muted);
}

/* Bare plate — no white card, for the transparent-background hero render
   so the pod sits directly on the page (used on the landing hero). */
.plate--bare {
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.plate--bare img {
  border-radius: 0;
}

.grid {
  display: grid;
  gap: var(--s4);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--5 {
  grid-template-columns: repeat(5, 1fr);
}

/* Generic card */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 34px);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  font-size: 22px;
  margin-bottom: var(--s1);
}

.card p {
  color: var(--ink-muted);
  font-size: 15.5px;
}

.card__tag {
  font-family: var(--display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--s2);
}

/* Accent rotation — colour as punctuation, one per card. */
.accent-teal { color: var(--teal-deep); }
.accent-coral { color: var(--coral-deep); }
.accent-green { color: var(--green-deep); }
.accent-gold { color: var(--gold-deep); }
.accent-lime { color: var(--lime-deep); }
.accent-blue { color: var(--blue); }

.card-outline {
  background: transparent;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 32px);
  box-shadow: none;
}

.surface-blue .card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.17);
  box-shadow: none;
}

.surface-blue .card p {
  color: rgba(255, 255, 255, 0.85);
}

/* Model card used in listing grids */
.modelcard {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.modelcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green);
}

.modelcard img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.modelcard__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  margin-top: var(--s2);
}

.modelcard__meta {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* Numbered / lettered step dots */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.4vw, 52px);
}

.step {
  text-align: center;
}

.step__dot {
  width: 66px;
  height: 66px;
  margin: 0 auto var(--s3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 25px;
  color: #fff;
}

.step:nth-child(1) .step__dot { background: var(--teal); }
.step:nth-child(2) .step__dot { background: #a8930f; }
.step:nth-child(3) .step__dot { background: var(--green-deep); }

.step h3 {
  font-size: 21px;
  margin-bottom: var(--s1);
}

.step p {
  color: var(--ink-muted);
  font-size: 15.5px;
  max-width: 34ch;
  margin-inline: auto;
}

/* Stat row */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 44px);
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
}

.stat p {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* Beliefs list */
.beliefs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

.belief {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--radius-sm);
  padding: var(--s4);
}

.belief b {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: var(--s1);
  font-variant-numeric: tabular-nums;
}

.belief:nth-child(7n + 1) b { color: var(--peach); }
.belief:nth-child(7n + 2) b { color: var(--coral-on-dark); }
.belief:nth-child(7n + 3) b { color: var(--gold); }
.belief:nth-child(7n + 4) b { color: var(--lime); }
.belief:nth-child(7n + 5) b { color: var(--green-on-dark); }
.belief:nth-child(7n + 6) b { color: #7fd4d6; }
.belief:nth-child(7n + 7) b { color: #fff; }

.belief p {
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

/* Spec list */
.specs {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.specs li {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}

.specs dt,
.specs .k {
  color: var(--ink-muted);
}

.specs .v {
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Note / callout */
.note {
  background: var(--white);
  border-left: 5px solid var(--coral);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--s4) var(--s5);
  max-width: 78ch;
  box-shadow: var(--shadow-sm);
}

.note b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 4px;
}

.note--gold {
  border-left-color: var(--gold);
}

.note--teal {
  border-left-color: var(--teal);
}

/* Sensory-world swatch strip */
.worlds {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s3);
}

.world {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.world img {
  width: 100%;
  border-radius: 8px;
}

.world figcaption {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  margin-top: 10px;
  padding-bottom: 4px;
}

/* ---------- 9. Footprint diagram (signature element) --------------------- */

/* A true-to-scale plan view. Depth is what actually separates the models,
   so a floor plan tells the buyer more than another photograph does. */
.footprint {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 40px);
  box-shadow: var(--shadow);
}

.footprint__stage {
  position: relative;
  width: 100%;
}

.footprint__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.fp-room {
  fill: rgba(59, 68, 120, 0.04);
  stroke: var(--rule-strong);
  stroke-width: 1.5;
  stroke-dasharray: 7 6;
}

.fp-pod {
  fill: rgba(0, 171, 105, 0.14);
  stroke: var(--green);
  stroke-width: 2.5;
  transition: fill var(--dur) var(--ease), stroke var(--dur) var(--ease);
}

.fp-label {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  fill: var(--blue);
}

.fp-dim {
  font-family: var(--body);
  font-size: 12.5px;
  fill: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.fp-tick {
  stroke: var(--rule-strong);
  stroke-width: 1;
}

.footprint__controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-bottom: var(--s4);
}

.chip {
  min-height: 44px;
  padding: 9px 18px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: 600 14px/1.4 var(--body);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.chip:hover {
  background: rgba(59, 68, 120, 0.07);
}

.chip[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.chip--design[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
}

.footprint__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-muted);
}

.footprint__legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  width: 18px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.swatch--pod {
  background: rgba(0, 171, 105, 0.16);
  border: 2px solid var(--green);
}

.swatch--room {
  background: rgba(59, 68, 120, 0.05);
  border: 1.5px dashed var(--rule-strong);
}

/* ---------- 10. Page sections ------------------------------------------- */

.hero {
  padding-block: clamp(48px, 6.5vw, 92px) 0;
}

/* Text-only heroes (no media band flowing beneath) need bottom padding so the
   heading + paragraph don't sit flush against the next segment. Heroes that
   carry a .hero__band keep 0 and flow into their image. */
.hero:not(:has(.hero__band)) {
  padding-bottom: clamp(44px, 5.5vw, 76px);
}

.hero__inner {
  text-align: center;
}

.hero .lede {
  margin: var(--s4) auto 0;
  max-width: 56ch;
}

.hero .btn-row {
  margin-top: var(--s5);
}

.hero__band {
  margin-top: clamp(40px, 5.5vw, 76px);
}

/* Model row on the Pods page */
.modelrow {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5.5vw, 76px);
  align-items: center;
  padding-block: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--rule);
}

.modelrow--flip .modelrow__media {
  order: -1;
}

.modelrow h2 {
  font-size: clamp(28px, 3.6vw, 46px);
}

.modelrow__for {
  font-family: var(--quote);
  font-style: italic;
  font-size: 20px;
  color: var(--teal-deep);
  margin: 6px 0 var(--s3);
}

.modelrow p {
  color: var(--ink-muted);
  margin-bottom: var(--s3);
}

/* Sector page bits */
.pill {
  display: inline-block;
  background: rgba(0, 171, 105, 0.10);
  color: var(--green-deeper);
  font-family: var(--display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--s4);
}

.agelist {
  list-style: none;
  padding: 0;
  margin-top: var(--s4);
}

.agelist li {
  position: relative;
  padding: 16px 0 16px 40px;
  border-bottom: 1px solid var(--rule);
}

.agelist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--green);
}

.agelist b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 3px;
}

.agelist span {
  font-size: 15px;
  color: var(--ink-muted);
}

/* Sector index cards */
.sectorcard {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--s5) var(--s4);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  border: 2px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.sectorcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green);
}

.sectorcard[aria-current="page"] {
  border-color: var(--green);
}

.sectorcard__age {
  font-family: var(--display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: var(--s2);
}

.sectorcard h3 {
  font-size: 20px;
  margin-bottom: var(--s1);
}

.sectorcard p {
  font-size: 14.5px;
  color: var(--ink-muted);
}

.sectorcard__here {
  display: inline-block;
  margin-top: var(--s2);
  font-size: 13px;
  font-weight: 600;
  color: var(--green-deep);
}

/* Closing CTA */
.endcta {
  text-align: center;
}

.endcta h2 {
  font-size: clamp(27px, 3.4vw, 44px);
  max-width: 24ch;
  margin: 0 auto var(--s5);
}

/* ---------- 11. Find-your-pod picker ------------------------------------ */

.stepbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  justify-content: center;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}

.stepbar span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--rule-strong);
  color: var(--ink-muted);
}

.stepbar span[aria-current="step"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.opts {
  display: grid;
  gap: var(--s3);
}

.opts--3 {
  grid-template-columns: repeat(3, 1fr);
}

.opts--4 {
  grid-template-columns: repeat(4, 1fr);
}

.opt {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: var(--s4);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.opt:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.opt[aria-pressed="true"] {
  border-color: var(--green);
  box-shadow: 0 14px 32px rgba(0, 171, 105, 0.2);
}

.opt b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 6px;
}

.opt span {
  display: block;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.result {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 44px);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.result img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.result__tag {
  font-family: var(--display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: var(--s2);
}

.result h3 {
  font-size: clamp(30px, 3.6vw, 44px);
  margin-bottom: 6px;
}

.result__why {
  font-family: var(--quote);
  font-style: italic;
  font-size: 19px;
  color: var(--teal-deep);
  margin-bottom: var(--s3);
}

.navrow {
  display: flex;
  justify-content: center;
  gap: var(--s2);
  margin-top: var(--s5);
}

[hidden] {
  display: none !important;
}

/* ---------- 12. All-options filter grid --------------------------------- */

.filters {
  position: sticky;
  top: 78px;
  z-index: 40;
  background: rgba(248, 245, 227, 0.94);
  backdrop-filter: saturate(160%) blur(12px);
  border-block: 1px solid var(--rule);
  padding-block: var(--s3);
  margin-top: clamp(32px, 4vw, 48px);
}

.filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  align-items: center;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.filters__row + .filters__row {
  margin-top: var(--s2);
}

.filters__label {
  font-family: var(--display);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  width: 84px;
  flex-shrink: 0;
}

.filters__count {
  width: 100%;
  margin-top: var(--s2);
  font-size: 13.5px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.filters__count b {
  font-family: var(--display);
  font-weight: 800;
  color: var(--green-deep);
}

.emptystate {
  text-align: center;
  padding-block: var(--s8);
  color: var(--ink-muted);
}

.countline {
  font-family: var(--display);
  font-weight: 800;
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
}

/* ---------- 13. Tables --------------------------------------------------- */

.tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 15px 14px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

th {
  font-family: var(--display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

td {
  font-variant-numeric: tabular-nums;
}

td.model {
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  font-variant-numeric: normal;
}

tbody tr:hover {
  background: rgba(59, 68, 120, 0.03);
}

.tnote {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-top: var(--s3);
}

/* ---------- 14. Motion --------------------------------------------------- */

/* One quiet idea, used consistently: content settles upward on first view.

   Content is VISIBLE by default. The hidden start state is opted into by JS
   adding .js-reveals to <html>, and only when IntersectionObserver is usable.
   That way a JS error, a blocked script or an observer that never fires can
   never leave the page blank — the worst case is simply no animation. */
.js-reveals .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

.js-reveals .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js-reveals .reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}

.js-reveals .reveal-stagger.is-in > * {
  opacity: 1;
  transform: none;
}

.js-reveals .reveal-stagger.is-in > *:nth-child(1) { transition-delay: 0ms; }
.js-reveals .reveal-stagger.is-in > *:nth-child(2) { transition-delay: 60ms; }
.js-reveals .reveal-stagger.is-in > *:nth-child(3) { transition-delay: 120ms; }
.js-reveals .reveal-stagger.is-in > *:nth-child(4) { transition-delay: 180ms; }
.js-reveals .reveal-stagger.is-in > *:nth-child(5) { transition-delay: 240ms; }
.js-reveals .reveal-stagger.is-in > *:nth-child(6) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js-reveals .reveal,
  .js-reveals .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 15. Responsive ----------------------------------------------- */

@media (max-width: 1080px) {
  .grid--5,
  .worlds {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .sitefoot__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1180px) {
  .nav__link {
    padding-inline: 10px;
    font-size: 14.5px;
  }

  .nav__tail {
    margin-left: var(--s2);
  }
}

@media (max-width: 1040px) {
  .nav {
    display: none;
  }

  .navtoggle {
    display: flex;
  }

  .masthead__inner {
    min-height: 68px;
  }

  .brand img {
    height: 38px;
  }

  .filters {
    top: 68px;
  }

  /* ---- Mobile drawer: dropdowns become inline accordions ---- */
  .nav.is-open {
    display: flex;
    position: fixed;
    inset: 68px 0 0;
    z-index: var(--z-drawer);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: var(--s4) var(--gutter) var(--s9);
    background: var(--cream);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav.is-open .nav__link {
    justify-content: space-between;
    width: 100%;
    padding: 15px 16px;
    font-size: 17px;
    border-radius: var(--radius-sm);
  }

  .nav.is-open .hasmenu {
    position: static;
  }

  /* In the drawer the menu is a normal block, not a popover. */
  .nav.is-open .menu {
    position: static;
    min-width: 0;
    margin: 2px 0 10px;
    padding: 4px;
    border: 0;
    border-left: 3px solid var(--rule);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav.is-open .menu a {
    padding: 13px 16px;
    font-size: 15.5px;
  }

  .nav.is-open .nav__tail {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s3);
    margin: var(--s5) 0 0;
    padding-top: var(--s4);
    border-top: 1px solid var(--rule);
  }

  .nav.is-open .hasmenu--hub .btn--menu {
    width: 100%;
    justify-content: center;
  }

  .nav.is-open .menu--wide {
    padding: 6px 0 0;
  }

  .nav.is-open .menu__lede {
    display: none;
  }

  .nav.is-open .langtoggle {
    align-self: flex-start;
  }
}

@media (max-width: 900px) {
  .split,
  .modelrow,
  .result,
  .contactgrid,
  .hubband {
    grid-template-columns: 1fr;
  }

  .split--text-right .split__media,
  .modelrow--flip .modelrow__media {
    order: 0;
  }

  .grid--3,
  .beliefs,
  .steps,
  .opts--3,
  .opts--4 {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .postcard {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .grid--2,
  .grid--5,
  .worlds,
  .grid--4,
  .stats,
  .sitefoot__grid {
    grid-template-columns: 1fr;
  }

  .worlds {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters__label {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .btn-row {
    flex-direction: column;
  }
}

/* ---------- 16. Later components ----------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Editor note — deliberately loud. Unverified facts must not slip out live. */
.todo {
  margin-top: var(--s3);
  padding: 13px 16px;
  border-left: 4px solid var(--coral);
  border-radius: 0 10px 10px 0;
  background: rgba(241, 100, 122, 0.09);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}

.todo b {
  font-family: var(--display);
  font-weight: 800;
  color: #b0304a;
}

.todo--onDark {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: var(--peach);
  color: rgba(255, 255, 255, 0.9);
}

.todo--onDark b {
  /* Brand peach lands at 3.97:1 on this dark panel; the box already carries a
     peach left border for identity, so the label itself goes white. */
  color: #fff;
}

.todo-inline {
  font-style: normal;
  color: #b0304a;
  font-weight: 600;
}

/* Learning Hub band */
.hubband {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.btn-row--stack {
  flex-direction: column;
  align-items: stretch;
}

.storerow {
  display: flex;
  gap: 10px;
  margin-top: var(--s3);
}

.storerow a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.8);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.storerow a:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
}

/* Specs list on the blue surface */
.specs--onDark {
  border-top-color: rgba(255, 255, 255, 0.22);
}

.specs--onDark li {
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

.specs--onDark .k {
  color: rgba(255, 255, 255, 0.68);
}

.specs--onDark .v {
  color: #fff;
}

/* Tick list */
.ticklist {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.ticklist li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--ink-muted);
}

.ticklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}

/* Scent cards */
.scentcard {
  position: relative;
  padding-top: 38px;
}

.scentcard__dot {
  position: absolute;
  top: 26px;
  left: clamp(24px, 2.6vw, 34px);
  width: 30px;
  height: 6px;
  border-radius: 3px;
}

.scentcard__for {
  font-family: var(--quote);
  font-style: italic;
  font-size: 17px;
  color: var(--teal-deep);
  margin: 4px 0 12px;
}

/* ---- Contact page ---- */

.contactgrid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contactcard {
  position: sticky;
  top: 100px;
}

.contactlist {
  list-style: none;
  padding: 0;
  margin-top: var(--s3);
}

.contactlist li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.contactlist li:last-child {
  border-bottom: 0;
}

.contactlist span {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.contactlist a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--coral);
}

.contactlist a:hover {
  color: var(--green-deep);
  border-bottom-color: var(--green);
}

/* ---- Forms ---- */

.form {
  max-width: 620px;
}

.field {
  margin-bottom: var(--s4);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.req {
  color: var(--coral-deep);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.5 var(--body);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 132px;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%233b4478' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--blue);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 171, 105, 0.18);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.help {
  margin-top: 7px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.field--check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.field--check input {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--green);
}

.field--check label {
  margin: 0;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
}

/* Honeypot — hidden from people, visible to bots. */
.hp {
  position: absolute;
  left: -9999px;
}

/* ---- Blog ---- */

.postlist {
  display: grid;
  gap: var(--s4);
}

.postcard {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(16px, 2vw, 24px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.postcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.postcard__media img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.postcard h2 {
  font-size: clamp(21px, 2.3vw, 28px);
  margin-bottom: 10px;
}

.postcard h2 a {
  color: inherit;
  text-decoration: none;
}

.postcard h2 a:hover {
  color: var(--green-deep);
}

.postcard__meta {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.postmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s4);
  font-size: 14.5px;
  color: var(--ink-muted);
}

.articlebody {
  font-size: clamp(17px, 1.2vw, 19px);
  line-height: 1.75;
}

.articlebody > * + * {
  margin-top: var(--s4);
}

.articlebody h2 {
  font-size: clamp(23px, 2.6vw, 32px);
  margin-top: clamp(36px, 4vw, 52px);
}

.articlebody h2:first-child {
  margin-top: 0;
}

.articlebody strong {
  color: var(--ink);
  font-weight: 600;
}

.articlebody em {
  color: var(--teal-deep);
}

.articlebody ul {
  list-style: none;
  padding: 0;
}

.articlebody ul li {
  position: relative;
  padding: 6px 0 6px 28px;
}

.articlebody ul li + li {
  margin-top: 4px;
}

.articlebody ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-deep);
}

/* References block */
.articlebody .refs {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: var(--s5);
  border-top: 1px solid var(--rule);
}

.articlebody .refs h2 {
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 var(--s3);
}

.articlebody .refs ol {
  margin: 0;
  padding-left: 22px;
}

.articlebody .refs li {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: var(--s3);
  overflow-wrap: anywhere;
}

.articlebody .refs a {
  color: var(--green-deep);
  overflow-wrap: anywhere;
}

/* Vertical postcard (related articles grid) */
.postcard--v {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  gap: 0;
  padding: 14px;
  align-items: stretch;
}

.postcard--v .postcard__media img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.postcard--v .postcard__body {
  padding: var(--s3) 6px 6px;
}

.postcard--v h3 {
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.3;
  margin-bottom: var(--s2);
}

.postcard--v h3 a {
  color: inherit;
  text-decoration: none;
}

.postcard--v h3 a:hover {
  color: var(--green-deep);
}

.postcard--v .muted {
  font-size: 14.5px;
}

/* Article hero + newsletter band */
.hero--article {
  padding-block: clamp(40px, 5vw, 72px) clamp(20px, 3vw, 36px);
}

/* Standalone back-to-blog link acts as navigation, so it carries a full
   touch target rather than inline text height. */
.hero--article .tlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.newsletter__form {
  display: flex;
  gap: var(--s2);
  max-width: 480px;
  margin: var(--s5) auto 0;
}

.newsletter__form input[type="email"] {
  flex: 1;
  min-height: 52px;
  padding: 14px 18px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font: 400 16px/1.4 var(--body);
}

.newsletter__form input[type="email"]::placeholder {
  color: var(--ink-muted);
}

.newsletter__form input[type="email"]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.newsletter__form .btn {
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .newsletter__form {
    flex-direction: column;
  }

  .newsletter__form .btn {
    width: 100%;
  }
}

/* ---------- 17. Sensory Features page ------------------------------------ */

/* Tinted hero — a soft wash of the brand green, not a full colour block. */
.hero--tinted {
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(0, 171, 105, 0.13) 0%, rgba(0, 171, 105, 0) 62%),
    var(--cream);
}

.hero--tinted .pill {
  background: rgba(0, 171, 105, 0.10);
}

/* Stat band */
.statband {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
  max-width: 900px;
  margin: clamp(36px, 4.5vw, 56px) auto clamp(40px, 5vw, 60px);
}

.statile {
  padding: var(--s4) var(--s3);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.statile b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1;
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
}

.statile p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--ink-muted);
}

/* In-page jump nav — this page is long, so give it a spine. */
.jumpnav {
  position: sticky;
  top: 78px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(12px);
  border-block: 1px solid var(--rule);
}

.jumpnav__row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding-block: 10px;
}

.jumpnav__label {
  flex-shrink: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.jumpnav__links {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.jumpnav__links::-webkit-scrollbar {
  display: none;
}

.jumpnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.jumpnav a:hover,
.jumpnav a.is-current {
  background: rgba(0, 171, 105, 0.11);
  color: var(--green-deeper);
}

/* Anchor targets must clear both sticky bars. */
[id="systems"],
[id="worlds"],
[id="benefits"],
[id="touchpad"],
[id="safety"],
[id="aroma"],
[id="shop"] {
  scroll-margin-top: 148px;
}

/* ---- Tabbed sensory systems ---- */

.systems {
  background: var(--cream);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 32px);
}

.systabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-bottom: var(--s5);
}

.systab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font: 600 15px/1.2 var(--body);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.systab:hover {
  background: rgba(59, 68, 120, 0.06);
}

.systab[aria-selected="true"] {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}

.systab__icon svg {
  width: 19px;
  height: 19px;
}

.syspanel {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 40px);
  box-shadow: var(--shadow-sm);
}

.syspanel:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.syspanel__head {
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
  margin-bottom: var(--s5);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--rule);
}

.syspanel__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 15px;
  background: rgba(59, 68, 120, 0.07);
}

.syspanel__head h3 {
  font-size: clamp(22px, 2.4vw, 30px);
}

.syspanel__head p {
  margin-top: 10px;
  color: var(--ink-muted);
  max-width: 68ch;
}

.syspanel h4 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
}

/* ---- Benefits accordion ---- */

.acclist {
  display: grid;
  gap: var(--s2);
}

.acc {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.acc h3 {
  margin: 0;
  font-size: inherit;
  letter-spacing: normal;
}

.acc__btn {
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  min-height: 64px;
  padding: 16px 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}

.acc__btn:hover {
  background: rgba(59, 68, 120, 0.04);
}

.acc__num {
  flex-shrink: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.acc__title {
  flex: 1;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(16.5px, 1.7vw, 20px);
  line-height: 1.3;
}

.acc__chev {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(59, 68, 120, 0.08);
  color: var(--ink);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

.acc__btn[aria-expanded="true"] .acc__chev {
  transform: rotate(180deg);
  background: var(--green-deep);
  color: #fff;
}

.acc__panel {
  padding: 0 20px 22px 20px;
}

.acc__panel p {
  max-width: 72ch;
  color: var(--ink-muted);
  font-size: 15.5px;
}

/* ---- TouchPad screenshot + control list ---- */

.padshot {
  max-width: 1100px;
  margin: 0 auto;
}

.padshot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 9px solid #24262e;
  box-shadow: var(--shadow-lg);
  background: var(--cream);
}

.padshot figcaption {
  margin-top: 14px;
}

/* The screenshot's own labels are English-only, so the translated control
   list beside it doubles as the text equivalent of the image. */
.ctrlwrap {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  max-width: 1100px;
  margin: clamp(34px, 4vw, 52px) auto 0;
  padding: clamp(22px, 3vw, 36px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.ctrls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  list-style: none;
  padding: 0;
}

.ctrls li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14.5px;
  line-height: 1.35;
}

.ctrl__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(0, 171, 105, 0.1);
  color: var(--green-deeper);
}

.ctrl__icon svg {
  width: 18px;
  height: 18px;
}

/* ---- Emergency callout ---- */

.emergency {
  display: flex;
  gap: clamp(20px, 3vw, 34px);
  align-items: flex-start;
  padding: clamp(24px, 3.4vw, 44px);
  background: var(--cream);
  border-radius: var(--radius);
  border-left: 6px solid var(--coral);
}

.emergency__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 16px;
  background: rgba(241, 100, 122, 0.16);
  color: #b0304a;
}

.emergency__icon svg {
  width: 28px;
  height: 28px;
}

/* ---- Aromatherapy discs ---- */

.discs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(18px, 2.6vw, 32px);
}

.disc {
  text-align: center;
}

.disc img {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin: 0 auto 16px;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.disc figcaption b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  margin-bottom: 6px;
}

.disc figcaption span {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

/* ---- Shop ---- */

.shophead {
  font-size: clamp(21px, 2.2vw, 27px);
  margin: clamp(44px, 5vw, 68px) 0 var(--s4);
}

.shophead:first-of-type {
  margin-top: var(--s5);
}

.shopsub {
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: var(--s5) 0 var(--s3);
}

.product {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

/* Real product photography on a soft tint of the product's own colour.
   Text never sits on this panel, so the light tint is safe here. */
.product__art {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--hue) 12%, #fff);
  overflow: hidden;
}

/* Absolutely positioned so the image no longer drives the box height —
   this gives object-fit:contain a definite frame and shows the whole
   product (portrait patches/sanitisers) with a 14px inset all round. */
.product__art img {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(59, 68, 120, 0.18));
}

.product h4 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  margin-top: 16px;
}

.product__sub {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-top: 3px;
}

.product__price {
  margin: 12px 0 16px;
  font-size: 13px;
  color: var(--ink-muted);
}

.product__price em {
  font-style: normal;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.btn--sm {
  min-height: 44px;
  padding: 11px 20px;
  font-size: 14.5px;
  margin-top: auto;
}

.toyicon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: rgba(59, 68, 120, 0.07);
}

/* Real product photo for each toy — a compact square thumbnail. Images are
   pre-flattened onto a 600×600 white canvas, so they fill the frame cleanly. */
.toyshot {
  width: 100%;
  max-width: 172px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--rule);
}

.toyshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Sensory page responsive ---- */

@media (max-width: 1040px) {
  .jumpnav {
    top: 68px;
  }

  [id="systems"], [id="worlds"], [id="benefits"],
  [id="touchpad"], [id="safety"], [id="aroma"], [id="shop"] {
    scroll-margin-top: 132px;
  }

  .discs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .statband {
    grid-template-columns: repeat(2, 1fr);
  }

  .syspanel__head {
    flex-direction: column;
    gap: var(--s3);
  }

  .emergency {
    flex-direction: column;
  }

  .ctrlwrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .discs {
    grid-template-columns: repeat(2, 1fr);
  }

  .ctrls {
    grid-template-columns: 1fr;
  }

  .padshot img {
    border-width: 6px;
  }

  .systab {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    padding-inline: 12px;
  }

  .jumpnav__label {
    display: none;
  }
}

/* ---------- 18. Research repository page ---------------------------------- */

/* Case-study callout */
.casestudy {
  display: flex;
  gap: clamp(20px, 3vw, 34px);
  align-items: flex-start;
  padding: clamp(24px, 3.4vw, 44px);
  background: var(--cream);
  border-radius: var(--radius);
  border-left: 6px solid var(--teal-deep);
}

.casestudy__mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 16px;
  background: rgba(0, 131, 133, 0.14);
  color: var(--teal-deep);
}

.casestudy__mark svg {
  width: 27px;
  height: 27px;
}

.casestudy h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 10px;
}

.casestudy p {
  color: var(--ink-muted);
  max-width: 72ch;
}

/* Key-finding cards carry a small tick badge */
.findmark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--s3);
  border-radius: 12px;
  background: rgba(59, 68, 120, 0.07);
}

.findmark svg {
  width: 22px;
  height: 22px;
}

/* Report cards */
.report {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.report__banner {
  display: grid;
  place-items: center;
  min-height: 128px;
  background: var(--rc);
}

.report__doc {
  color: rgba(255, 255, 255, 0.9);
}

.report__doc svg {
  width: 42px;
  height: 42px;
}

.report__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(22px, 2.6vw, 32px);
}

.report__n {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--s2);
}

.report__badge {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--rc) 14%, #fff);
  color: var(--rc);
}

.report__badge svg {
  width: 15px;
  height: 15px;
}

.report__body h3 {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.25;
  margin-bottom: var(--s2);
}

.report__by {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin-bottom: var(--s4);
}

.report .btn {
  margin-top: auto;
  align-self: flex-start;
}

.report__meta {
  font-weight: 400;
  opacity: 0.75;
}

/* Quick links */
.qlinks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

.qlink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 60px;
  padding: 16px 22px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.qlink:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--green-deep);
}

.qlink svg {
  flex-shrink: 0;
  color: var(--green-deep);
}

.qlink--todo {
  opacity: 0.6;
  cursor: default;
  border-style: dashed;
}

/* Credentials */
.cred {
  display: block;
  padding: clamp(24px, 2.6vw, 34px);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

a.cred:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--green-deep);
}

.cred__icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--s3);
  border-radius: 14px;
  background: rgba(59, 68, 120, 0.07);
}

.cred h3 {
  font-size: 20px;
  margin-bottom: var(--s2);
}

.cred p {
  color: var(--ink-muted);
  font-size: 15px;
}

.cred__ext {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: var(--s3);
  font-size: 14px;
  font-weight: 600;
  color: var(--green-deep);
}

.cred__ext svg {
  width: 14px;
  height: 14px;
}

/* Trusted sources — portal rows */
.portals {
  display: grid;
  gap: var(--s2);
}

.portal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

a.portal:hover {
  border-color: var(--green-deep);
  box-shadow: var(--shadow-sm);
}

.portal svg {
  flex-shrink: 0;
  color: var(--green-deep);
}

.portal h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.portal p {
  font-size: 14.5px;
  color: var(--ink-muted);
  max-width: 80ch;
}

.portal__host {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--green-deep);
}

/* Academic references */
.reflist {
  display: grid;
  gap: var(--s3);
}

.refitem {
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.refitem h3 {
  font-size: 19px;
  line-height: 1.3;
  margin-bottom: var(--s3);
}

.refmeta {
  display: grid;
  gap: 8px;
  margin: 0 0 var(--s3);
}

.refmeta > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: var(--s3);
  font-size: 14.5px;
}

.refmeta dt {
  font-family: var(--display);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 2px;
}

.refmeta dd {
  margin: 0;
  color: var(--ink);
}

/* The "view full text" link stands alone on its own line and acts as a
   button, so it carries a full touch target rather than inline height. */
.refitem .tlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 900px) {
  .casestudy {
    flex-direction: column;
  }

  .qlinks {
    grid-template-columns: 1fr;
  }

  .portal {
    flex-direction: row;
  }

  .refmeta > div {
    grid-template-columns: 84px 1fr;
  }
}

/* ---------- 19. Safety pages --------------------------------------------- */

/* Blue hero band (overview) */
.safetyhero {
  padding-block: clamp(56px, 8vw, 104px);
  text-align: center;
}

.pill--onblue {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.herotags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  justify-content: center;
  margin-top: var(--s5);
}

.herotag {
  padding: 9px 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

/* Left-aligned section heads (used on safety + option pages) */
.sechead--left {
  max-width: 74ch;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

/* Fire-protection option cards */
.firecard {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 40px);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.firecard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green-deep);
}

.firecard__badge {
  align-self: flex-start;
  font-family: var(--display);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--s4);
}

.firecard__badge--blue {
  background: rgba(59, 68, 120, 0.12);
  color: var(--blue);
}

.firecard__badge--teal {
  background: rgba(0, 131, 133, 0.13);
  color: #007678; /* darker than --teal-deep so 12px text clears AA on the tint */
}

.firecard__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  margin-bottom: var(--s3);
}

.firecard__icon svg {
  width: 28px;
  height: 28px;
}

.firecard__icon--blue {
  background: rgba(59, 68, 120, 0.1);
  color: var(--blue);
}

.firecard__icon--teal {
  background: rgba(0, 131, 133, 0.11);
  color: var(--teal-deep);
}

.firecard h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 4px;
}

.firecard__sub {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: var(--teal-deep);
  margin-bottom: var(--s3);
}

.firecard > p:not(.firecard__sub) {
  color: var(--ink-muted);
  font-size: 15.5px;
}

.firecard__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--s4);
  font-weight: 600;
  color: var(--green-deep);
}

.firecard__more svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur) var(--ease);
}

.firecard:hover .firecard__more svg {
  transform: translateX(4px);
}

/* Caster-leveller images */
.levellers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  margin-top: clamp(32px, 4vw, 48px);
}

.levellers .plate img {
  width: 100%;
}

/* Warning callout */
.warn {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  margin-top: clamp(28px, 3vw, 40px);
  padding: clamp(20px, 2.4vw, 30px);
  background: rgba(241, 100, 122, 0.09);
  border-left: 5px solid var(--coral-deep);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.warn__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(241, 100, 122, 0.16);
  color: #b0304a;
}

.warn__icon svg {
  width: 24px;
  height: 24px;
}

.warn b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  color: #a52a41;
}

.warn p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink);
}

/* Numbered move steps */
.movestep {
  margin-top: clamp(34px, 4vw, 52px);
}

.movestep__head {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.movestep__n {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
}

.movestep__head h3 {
  font-size: clamp(20px, 2.2vw, 26px);
}

.movestep h4 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: var(--s2);
}

/* Trust cards */
.trustcard__icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: var(--s3);
  background: rgba(59, 68, 120, 0.07);
}

/* ---- Option pages ---- */

.opthero {
  padding-block: clamp(48px, 6vw, 84px);
}

.hero__inner--left {
  text-align: left;
  margin-inline: 0;
}

.opthero .lede,
.opthero__sub {
  margin-left: 0;
}

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
}

.backlink svg {
  width: 16px;
  height: 16px;
}

.backlink:hover {
  color: #fff;
}

/* On a light section the back link needs ink colour */
.surface-white .backlink,
.surface-cream .backlink {
  color: var(--green-deep);
}

.optbadge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  /* Black tint, not white — a white tint lightens the teal hero and drops
     the badge label to 3.9:1. Black darkens both heroes (7:1+ either way). */
  background: rgba(0, 0, 0, 0.24);
  border-radius: var(--radius-pill);
  font-family: var(--display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--s4);
}

.optbadge__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
}

.optbadge__icon svg {
  width: 19px;
  height: 19px;
}

.opthero__sub {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 21px);
  color: rgba(255, 255, 255, 0.82);
  margin-top: var(--s2);
}

.optgallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

.optgallery .plate img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Benefit tick list */
.benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2) var(--s4);
  list-style: none;
  padding: 0;
}

.benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: 15.5px;
}

.benefit__tick {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(0, 128, 79, 0.12);
  color: var(--green-deep);
}

.benefit__tick svg {
  width: 15px;
  height: 15px;
}

/* Application chips */
.appchips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.appchip {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
}

.appchip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-deep);
  margin-right: 10px;
  flex-shrink: 0;
}

/* Installation requirement */
.installreq {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.installreq__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(59, 68, 120, 0.07);
  color: var(--blue);
}

.installreq p {
  font-size: 16px;
  color: var(--ink);
}

.optnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
}

.optnav .btn svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 900px) {
  .levellers,
  .optgallery,
  .benefits {
    grid-template-columns: 1fr;
  }

  .optnav {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .optnav .btn {
    width: 100%;
  }

  .optnav .backlink {
    justify-content: center;
  }
}

/* ---------- 20. Certifications & testimonials ---------------------------- */

.certs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s3);
}

.cert {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(20px, 2.4vw, 30px) 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.cert__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: var(--s3);
  border-radius: 50%;
  background: var(--teal-deep);
  color: #fff;
}

.cert__icon svg {
  width: 28px;
  height: 28px;
}

.cert__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.25;
  color: var(--ink);
}

.cert__sub {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-muted);
}

/* Testimonials */
.tcards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

.tcard {
  margin: 0;
  padding: clamp(24px, 3vw, 36px);
  background: var(--peach);
  border-radius: var(--radius);
}

.tcard__head {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.tcard__avatar {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(59, 68, 120, 0.18);
}

.tcard__head figcaption b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  color: var(--blue);
}

.tcard__head figcaption span {
  display: block;
  font-size: 13.5px;
  color: #6a5342; /* warm muted — clears AA on the peach panel */
  margin-top: 2px;
}

.tcard__mark {
  display: block;
  margin: var(--s4) 0 var(--s2);
  color: var(--teal-deep);
}

.tcard blockquote {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--blue);
}

@media (max-width: 1000px) {
  .certs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .tcards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .certs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Print -------------------------------------------------------- */

@media print {
  .masthead,
  .filters,
  .navtoggle,
  .btn-row {
    display: none !important;
  }

  body {
    background: #fff;
  }
}
