/*
Theme Name: My Custom HTML Theme
Author: Your Name
Description: A custom theme built directly from HTML templates.
Version: 1.0
*/

/* --- CSS Custom Properties --- */
:root {
  /* Brand palette */
  --navy: #0b3a66;
  --navy-dark: #082d50;
  --teal: #06758c;
  --green: #00bab8;
  --green-light: #e8f6f5;
  --light-grey: #f3f2ee;
  --raspberry: #d84c6e;
  --raspberry-dark: #b0344f;
  --white: #ffffff;
  --off-white: #fafaf7;
  --border-light: #e0ddd6;
  --text-primary: #1a2a3a;
  --text-secondary: #3d4f5f;
  --text-muted: #5e6f7f;

  /* Warm surface palette (Zoe-inspired) */
  --bg-warm: #f0eeea;
  --bg-warm-subtle: #f7f6f3;
  --bg-cream: #f5f3ed;

  /* Product accent colours */
  --tempus-accent: #1a6baa;
  --personalis-accent: #2e8b7a;
  --hereditary-accent: #6b5fa5;
  --avantect-accent: #c75b2a;

  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --font-accent: 'Titillium Web', sans-serif;
  --font-label: var(--font-accent);  /* Alias for label-style elements (uppercase, tracked) */

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 3.75rem;
  --space-2xl: 5.5rem;
  --space-3xl: 7.5rem;
  --space-4xl: 9.5rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 900px;
  --border-radius: 8px;
  --border-radius-lg: 10px;
  --border-radius-xl: 24px;

  /* Shadows (navy-tinted for premium depth) */
  --shadow-navy-sm: rgba(11, 58, 102, 0.06);
  --shadow-navy: rgba(11, 58, 102, 0.12);
  --shadow-navy-lg: rgba(11, 58, 102, 0.16);

  /* Elevation scale */
  --elevation-sm: 0 1px 3px var(--shadow-navy-sm), 0 1px 2px var(--shadow-navy-sm);
  --elevation-md: 0 4px 16px var(--shadow-navy-sm), 0 2px 6px var(--shadow-navy-sm);
  --elevation-lg: 0 8px 32px var(--shadow-navy), 0 4px 12px var(--shadow-navy-sm);
  --elevation-xl: 0 16px 48px var(--shadow-navy), 0 8px 24px var(--shadow-navy-sm);

  /* Transitions — ease-out-quart for natural deceleration */
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.18s var(--ease-out);
  --transition-med: 0.3s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}

/* Reduced motion: respect vestibular preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--off-white);
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
  word-break: break-word;
}

h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 500;
  line-height: 1.08;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.12;
}

h4 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
  max-width: 65ch;
  line-height: 1.45;
}

/* Heading-to-body vertical rhythm */
h2 + .subtitle {
  margin-top: 0.6rem;
}

.ds-section-title + h2 {
  margin-top: 0.35rem;
}

.label {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--space-2xl) 0;
}

.section--grey {
  background: var(--bg-warm-subtle);
}

.section--products {
  background: var(--off-white);
  border-top: 1px solid rgba(224, 221, 214, 0.4);
  border-bottom: 1px solid rgba(224, 221, 214, 0.4);
}

.section--navy {
  background: var(--navy);
}

.section--navy h2,
.section--navy h3,
.section--navy p,
.section--navy .label {
  color: var(--white);
}

.section--navy .label {
  color: var(--green);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .grid-3, .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-align: center;
}

.btn--primary {
  background: var(--raspberry);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--raspberry-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(216, 76, 110, 0.35);
}

.btn--secondary {
  background: var(--navy);
  color: var(--white);
}

.btn--secondary:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(11, 58, 102, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border-light);
}

.btn--outline:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.btn--added {
  background: color-mix(in srgb, var(--brand-accent, var(--teal)) 10%, white) !important;
  color: var(--brand-accent, var(--teal)) !important;
  border-color: color-mix(in srgb, var(--brand-accent, var(--teal)) 30%, transparent) !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: none !important;
  transform: none !important;
}

.btn--added svg {
  flex-shrink: 0;
}

/* Hide remove state by default, show added state */
.btn--added .btn__icon-cross,
.btn--added .btn__label-remove {
  display: none;
}

/* On hover: swap to remove state */
.btn--added:hover {
  background: #fef2f2 !important;
  color: var(--raspberry) !important;
  border-color: var(--raspberry) !important;
}

.btn--added:hover .btn__icon-tick,
.btn--added:hover .btn__label-added {
  display: none;
}

.btn--added:hover .btn__icon-cross,
.btn--added:hover .btn__label-remove {
  display: inline;
}

.btn--ghost {
  background: transparent;
  color: var(--teal);
  padding: 0.5rem 0;
}

.btn--ghost:hover {
  color: var(--navy);
}

.btn--ghost::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.btn--ghost:hover::after {
  transform: translateX(4px);
}

.btn--sm {
  padding: 0.6rem 1.3rem;
  font-size: 0.88rem;
}

.btn--white {
  background: var(--white);
  color: var(--navy);
}

.btn--white:hover {
  background: var(--light-grey);
}

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(224, 221, 214, 0.6);
  box-shadow: 0 1px 0 rgba(11, 58, 102, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  color: var(--navy);
}

.nav__logo .logo-svg {
  height: 52px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--navy);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* Active underline for wrapped links (mega trigger) */
.nav__link-wrap .nav__link--active::after {
  bottom: -4px;
}

/* Hide active-page underline when mega menu is open */
.site-header.mega-open .nav__link--active:not([data-mega-trigger])::after {
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.nav__basket {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__basket:hover {
  color: var(--navy);
}

.nav__basket-icon {
  width: 22px;
  height: 22px;
}

.nav__basket-count {
  position: absolute;
  top: -6px;
  right: -10px;
  width: 18px;
  height: 18px;
  background: var(--raspberry);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__basket-count:empty,
.nav__basket-count[data-count="0"] {
  display: none;
}

/* --- Nav link wrapper (for mega trigger) --- */
.nav__link-wrap {
  position: relative;
}

.nav__chevron {
  margin-left: 3px;
  vertical-align: -1px;
  transition: transform var(--transition-fast);
  opacity: 0.45;
}

.nav__link.is-open .nav__chevron {
  transform: rotate(180deg);
}

/* --- Mega Menu (Huel-inspired cards) --- */
/* Products trigger underline on hover/open */
.nav__link[data-mega-trigger]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-fast);
}

.nav__link[data-mega-trigger]:hover::after,
.nav__link[data-mega-trigger].is-open::after {
  transform: scaleX(1);
}

.nav__chevron {
  transition: transform var(--transition-fast);
  margin-left: 2px;
}

.nav__link[data-mega-trigger].is-open .nav__chevron {
  transform: rotate(180deg);
}

/* Mega menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 12px 40px var(--shadow-navy-sm), 0 4px 12px var(--shadow-navy-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  padding: 1.75rem 0 2rem;
}

.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header.mega-open {
  background: var(--white);
  backdrop-filter: none;
}

.mega__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  align-items: stretch;
}

/* Each column is a hover-surface "card" — subtle background tint on hover, no
   dividers between columns. Rounded, generous padding for a premium feel. */
.mega__column {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  position: relative;
  min-width: 0;
}

.mega__column:hover {
  background: color-mix(in srgb, var(--col-accent, var(--navy)) 4%, var(--white));
  border-color: color-mix(in srgb, var(--col-accent, var(--navy)) 12%, transparent);
}

/* Category title — small uppercase label with a 24px accent underline.
   No full-width divider; the underline is the column's identity mark. */
.mega__product-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--col-accent, var(--navy));
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 0 0.95rem;
  margin: 0 0 0.85rem;
  border-bottom: none;
  align-self: flex-start;
  position: relative;
  transition: opacity var(--transition-fast);
}

.mega__product-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--col-accent, var(--navy));
  border-radius: 2px;
}

.mega__column:hover .mega__product-title::after {
  width: 32px;
  transition: width var(--transition-med);
}

.mega__product-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--col-accent, var(--navy));
}

.mega__test-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

/* Test row — each row is its own hover-card surface (like product cards on home) */
.mega__test-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0.55rem 0.7rem;
  margin: 0 -0.7rem;
  border-radius: 8px;
  transition: background var(--transition-fast);
}

.mega__test-row:hover {
  background: color-mix(in srgb, var(--col-accent, var(--navy)) 8%, var(--white));
}

.mega__test-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--navy);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.mega__test-row:hover .mega__test-name {
  color: var(--col-accent, var(--navy));
}

.mega__test-pills,
.mega__test-pill {
  display: none;
}

/* "View all →" footer link — tertiary, anchored to bottom of card */
.mega__view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: none;
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--col-accent, var(--navy));
  align-self: flex-start;
  opacity: 0.82;
  transition: opacity var(--transition-fast), gap var(--transition-fast);
}

.mega__view-all svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.mega__column:hover .mega__view-all {
  opacity: 1;
}

.mega__view-all:hover {
  gap: 0.55rem;
}

.mega__column:hover .mega__view-all svg,
.mega__view-all:hover svg {
  transform: translateX(2px);
}

/* Genomic profiling — Tempus + Razor stacked vertically inside the column.
   No nested boxes, no internal dividers; sub-headers are small uppercase labels. */
.mega__column--wide {
  grid-column: auto;
}

.mega__sub-products {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.mega__sub-product {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: none;
}

.mega__sub-product:last-child {
  padding: 0;
  border: none;
}

.mega__sub-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-accent);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  padding-bottom: 0;
  border-bottom: none;
  align-self: flex-start;
  transition: color var(--transition-fast);
}

.mega__column:hover .mega__sub-title {
  color: color-mix(in srgb, var(--col-accent, var(--navy)) 75%, var(--text-muted));
}

.mega__sub-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mega__sub-title:hover {
  color: var(--navy);
}

@media (max-width: 1100px) and (min-width: 769px) {
  .mega__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
}

/* Mobile nav */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile products accordion — hidden on desktop */
.nav__mobile-sub {
  display: none;
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    gap: 0;
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-med);
  }

  .nav__link-wrap,
  .nav__links > .nav__link {
    width: 100%;
  }

  .nav__links > .nav__link,
  .nav__link-wrap > .nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    text-align: left;
  }

  .nav__link-wrap > .nav__link {
    border-bottom: 1px solid var(--border-light);
  }

  .nav__basket {
    margin-top: 1rem;
    align-self: flex-start;
  }

  .nav__links--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  /* Show chevron for Products accordion trigger on mobile */
  .nav__chevron {
    display: inline-block;
    opacity: 0.5;
  }

  /* Remove hover underline pseudo-element on mobile */
  .nav__link[data-mega-trigger]::after,
  .nav__link[data-mega-trigger]:hover::after,
  .nav__link[data-mega-trigger].is-open::after {
    display: none;
  }

  /* Mega menu — hidden on mobile; sub-links appear inline instead */
  .mega-menu {
    display: none;
  }

  /* Mobile products sub-links accordion */
  .nav__mobile-sub {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows var(--transition-med);
  }

  .nav__mobile-sub.is-open {
    grid-template-rows: 1fr;
  }

  .nav__mobile-sub-inner {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .nav__mobile-sub-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0 0.75rem 0.25rem;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--text-secondary);
    border-bottom: 1px solid color-mix(in srgb, var(--border-light) 60%, transparent);
    transition: color var(--transition-fast);
  }

  .nav__mobile-sub-link:last-child {
    border-bottom: none;
    padding-bottom: 1rem;
  }

  .nav__mobile-sub-link:hover {
    color: var(--navy);
  }

  .nav__mobile-sub-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.85;
  }
}

/* --- Category sitting page --- */
.category-hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}

.category-hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.category-hero__content .label {
  margin-bottom: var(--space-xs);
}

.category-hero__content h1 {
  margin-bottom: var(--space-sm);
  line-height: 1.1;
}

.category-hero__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
}

.category-hero__meta {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.category-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.category-hero__meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
}

.category-hero__image {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--light-grey);
}

.category-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .category-hero__layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .category-hero__image {
    aspect-ratio: 16 / 9;
    order: -1;
  }
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.category-card {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border-light);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
  position: relative;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  box-shadow: 0 12px 40px rgba(11, 58, 102, 0.1);
  transform: translateY(-3px);
  border-color: transparent;
}

.category-card__badge {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 10%, transparent);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 1.25rem;
}

.category-card__content {
  flex: 1;
}

.category-card__partner {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.category-card__title {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.category-card__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  max-width: none;
}

.category-card__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
  list-style: none;
  margin-bottom: 1.5rem;
}

.category-card__features li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 1.1rem;
  position: relative;
}

.category-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.category-card__footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.category-card__cta {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

.category-card__footer svg {
  color: var(--navy);
  transition: transform var(--transition-fast);
}

.category-card:hover .category-card__footer svg {
  transform: translateX(4px);
}

@media (max-width: 700px) {
  .category-cards {
    grid-template-columns: 1fr;
  }
  .category-card__features {
    grid-template-columns: 1fr;
  }
}

/* --- About Page --- */
.hero--about {
  min-height: 50vh;
  padding: var(--space-3xl) 0 var(--space-2xl);
}

/* Mission */
.about-mission__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.about-mission__content p.label {
  margin-bottom: var(--space-xs);
}

.about-mission__content h2 {
  margin-bottom: var(--space-sm);
}

.about-mission__content p {
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-sm);
}

.about-mission__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.about-stat {
  background: var(--light-grey);
  border-radius: 12px;
  padding: var(--space-md);
  text-align: center;
}

.about-stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.25rem;
}

.about-stat__label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Founders */
.about-founders {
  background: var(--bg-warm);
}

.about-founders__intro {
  max-width: 580px;
  margin: 0.75rem auto 0;
  color: var(--text-muted);
}

.about-founders__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  max-width: 880px;
  margin: var(--space-xl) auto 0;
}

.about-founder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(224, 221, 214, 0.5);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg) var(--space-md);
}

.about-founder__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--space-md);
  flex-shrink: 0;
}

.about-founder__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-founder__info {
  padding: 0;
}

.about-founder__name {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.15rem;
}

.about-founder__role {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.about-founder__bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
  flex: 1;  /* push bottom-of-card alignment if bios differ in length */
}

/* Values */
.about-values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.about-value {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(224, 221, 214, 0.5);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 1px 4px var(--shadow-navy-sm);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  height: 100%;
}

.about-value p {
  flex: 1;  /* keep heading/icon aligned across the row regardless of copy length */
}

.about-value__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--teal) 10%, transparent);
  color: var(--teal);
}

.about-value__icon svg {
  width: 24px;
  height: 24px;
}

.about-value h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.about-value p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Advantage */
.about-advantage__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-advantage__content h2 {
  margin-bottom: var(--space-lg);
}

.about-advantage__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-advantage__item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.about-advantage__item .about-advantage__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--green);
}

.about-advantage__item .about-advantage__icon svg {
  width: 18px;
  height: 18px;
}

.about-advantage__item h4 {
  font-size: 1.05rem;
  color: var(--green);
  margin-bottom: 0.2rem;
}

.about-advantage__item p {
  font-size: 0.92rem;
  opacity: 0.78;
  line-height: 1.5;
}

.about-advantage__image {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.about-advantage__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact */
.about-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

.about-contact__card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: var(--space-lg);
  transition: box-shadow var(--transition-fast);
}

.about-contact__card:hover {
  box-shadow: var(--elevation-md);
}

.about-contact__card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
}

.about-contact__card-header svg {
  width: 22px;
  height: 22px;
  color: var(--teal);
  flex-shrink: 0;
}

.about-contact__card-header h3 {
  font-size: 1.1rem;
}

.about-contact__address {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: var(--space-sm);
}

.about-contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 500;
  padding: 0.3rem 0;
  transition: color var(--transition-fast);
  /* Long emails wrap at sensible breakpoints rather than truncating */
  word-break: break-word;
  overflow-wrap: anywhere;
}

.about-contact__link:hover {
  color: var(--teal);
}

.about-contact__link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--teal);
  margin-top: 2px;
}

.about-contact__details {
  display: flex;
  flex-direction: column;
}

.about-contact__general {
  margin-top: var(--space-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Stack the three enquiry types vertically — emails fit on one line each */
.about-contact__enquiries-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.about-contact__enquiries-row > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border-light);
}

.about-contact__enquiries-row > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.about-contact__enquiries-label {
  margin-bottom: 0;
}

/* About page responsive */
@media (max-width: 768px) {
  .about-mission__layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .about-founders__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .about-values__grid {
    grid-template-columns: 1fr;
  }
  .about-advantage__layout {
    grid-template-columns: 1fr;
  }
  .about-advantage__image {
    aspect-ratio: 16 / 9;
    order: -1;
  }
  .about-contact__grid {
    grid-template-columns: 1fr;
  }
  .about-contact__enquiries-row {
    grid-template-columns: 1fr;
  }
}

/* --- Hero --- */
.hero {
  padding: var(--space-4xl) 0 var(--space-3xl);
  position: relative;
  overflow: hidden;
  background: var(--off-white);
}

.hero__content {
  max-width: 640px;
}

.hero__label {
  margin-bottom: var(--space-sm);
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero__graphic {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(0, 186, 184, 0.12) 0%, rgba(0, 48, 73, 0.04) 70%);
  opacity: 1;
}

.hero__graphic::before {
  content: '';
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 186, 184, 0.15);
}

.hero__graphic::after {
  content: '';
  position: absolute;
  inset: 70px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 186, 184, 0.10);
}

/* Decorative dots around hero graphic */
.hero__dots {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  pointer-events: none;
}

.hero__dot {
  position: absolute;
  border-radius: 50%;
  background: var(--teal);
}

.hero__dot:nth-child(1) { width: 8px; height: 8px; top: 15%; right: 8%; opacity: 0.35; }
.hero__dot:nth-child(2) { width: 6px; height: 6px; top: 25%; right: 30%; opacity: 0.2; }
.hero__dot:nth-child(3) { width: 10px; height: 10px; top: 55%; right: 3%; opacity: 0.25; }
.hero__dot:nth-child(4) { width: 5px; height: 5px; top: 70%; right: 25%; opacity: 0.3; }
.hero__dot:nth-child(5) { width: 7px; height: 7px; top: 40%; right: 42%; opacity: 0.15; }
.hero__dot:nth-child(6) { width: 12px; height: 12px; top: 80%; right: 40%; opacity: 0.12; }

/* Floating cross shapes */
.hero__cross {
  position: absolute;
  width: 16px;
  height: 16px;
  opacity: 0.15;
}

.hero__cross::before,
.hero__cross::after {
  content: '';
  position: absolute;
  background: var(--navy);
}

.hero__cross::before {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.hero__cross::after {
  height: 2px;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
}

.hero__cross:nth-of-type(1) { top: 20%; right: 15%; }
.hero__cross:nth-of-type(2) { top: 65%; right: 8%; opacity: 0.10; }
.hero__cross:nth-of-type(3) { top: 35%; right: 38%; opacity: 0.08; }

@media (max-width: 900px) {
  .hero__graphic,
  .hero__dots {
    display: none;
  }
  .hero__cross {
    display: none;
  }
}

/* --- Hero Option A: Immersive video background --- */
.hero--video {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #122632;
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.hero--video__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero--video__bg video,
.hero--video__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero--video__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(18, 38, 50, 0.88) 0%,
    rgba(22, 44, 56, 0.75) 45%,
    rgba(30, 50, 60, 0.55) 100%
  );
  z-index: 1;
}

/* Partners hero — shorter than homepage */
.hero--partners {
  min-height: 50vh;
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.hero--partners .hero--video__bg img {
  object-position: top center;
}

.hero--video .hero__content {
  max-width: 620px;
}

.hero--video .hero__label {
  color: rgba(255, 255, 255, 0.85);
}

.hero--video h1 {
  color: var(--white);
}

.hero--video p {
  color: rgba(255, 255, 255, 0.78);
}

.hero--video .btn--outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero--video .btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.65);
}

/* Trust chips row */
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: var(--space-xl);
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero__chip svg {
  width: 14px;
  height: 14px;
  color: var(--teal);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero--video {
    min-height: 75vh;
    padding: var(--space-3xl) 0 var(--space-xl);
  }
  .hero__chips {
    margin-top: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .hero--video {
    min-height: auto;
    padding: var(--space-2xl) 0 var(--space-xl);
  }
}

/* --- Hero Option C: Editorial with photography --- */
.hero--editorial {
  padding: var(--space-3xl) 0 var(--space-2xl);
  overflow: visible;
}

.hero--editorial .hero__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero--editorial .hero__content {
  max-width: none;
}

.hero--editorial .hero__media {
  position: relative;
  z-index: 1;
}

.hero--editorial .hero__image-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 25px 60px rgba(0, 48, 73, 0.14),
    0 4px 16px rgba(0, 48, 73, 0.06);
}

.hero--editorial .hero__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Offset accent frame behind the image */
.hero--editorial .hero__image-accent {
  position: absolute;
  top: -14px;
  right: -14px;
  bottom: 20px;
  left: 20px;
  border: 2px solid var(--teal);
  border-radius: 20px;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

/* Floating trust badge */
.hero--editorial .hero__image-badge {
  position: absolute;
  bottom: -18px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 48, 73, 0.10);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.03em;
  white-space: nowrap;
  z-index: 2;
}

.hero--editorial .hero__image-badge svg {
  color: var(--teal);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero--editorial {
    padding: var(--space-2xl) 0 var(--space-xl);
  }
  .hero--editorial .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .hero--editorial .hero__image {
    aspect-ratio: 16 / 9;
  }
  .hero--editorial .hero__image-accent {
    display: none;
  }
  .hero--editorial .hero__image-badge {
    bottom: -14px;
    left: 16px;
    font-size: 0.78rem;
    padding: 0.6rem 1rem;
  }
}

/* --- Trust Signals --- */
.trust {
  padding: var(--space-md) 0;
  background: var(--white);
  border-bottom: 1px solid rgba(224, 221, 214, 0.5);
}

.trust__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
}

.trust__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust__icon svg {
  width: 22px;
  height: 22px;
  color: var(--teal);
}

@media (max-width: 1100px) {
  .trust__row {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: center;
    gap: var(--space-md) var(--space-lg);
  }
  .trust__icon {
    width: 36px;
    height: 36px;
  }
  .trust__icon svg {
    width: 16px;
    height: 16px;
  }
  .trust__item {
    font-size: 0.85rem;
    gap: 0.4rem;
  }
}

@media (max-width: 768px) {
  .trust {
    padding: var(--space-sm) 0;
    overflow: hidden;
  }
  .trust__row {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.5rem var(--space-md);
    justify-content: flex-start;
  }
  .trust__row::-webkit-scrollbar {
    display: none;
  }
  .trust__item {
    flex-shrink: 0;
    font-size: 0.85rem;
    gap: 0.4rem;
  }
  .trust__icon {
    width: 32px;
    height: 32px;
  }
  .trust__icon svg {
    width: 15px;
    height: 15px;
  }
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(224, 221, 214, 0.7);
  overflow: hidden;
  transition: all var(--transition-med);
  box-shadow: 0 1px 3px var(--shadow-navy-sm), 0 1px 2px rgba(11, 58, 102, 0.04);
}

.card:hover {
  border-color: transparent;
  box-shadow: 0 12px 48px var(--shadow-navy), 0 4px 16px var(--shadow-navy-sm);
  transform: translateY(-4px);
}

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--light-grey);
}

.card__body {
  padding: var(--space-md);
}

.card__body h3 {
  margin-bottom: 0.5rem;
}

.card__body p {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

/* Product line card — homepage */
.product-card {
  position: relative;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  background: var(--white);
  border: 1px solid rgba(224, 221, 214, 0.4);
  border-top: 2px solid var(--card-accent, var(--teal));
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-med);
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  border-color: var(--card-accent, var(--teal));
  box-shadow: 0 12px 36px rgba(11, 58, 102, 0.1);
  transform: translateY(-4px);
}

.product-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.product-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--card-accent, var(--teal)) 10%, transparent);
  color: var(--card-accent, var(--teal));
}

.product-card__icon svg {
  width: 22px;
  height: 22px;
}

.product-card__arrow {
  font-size: 1.25rem;
  color: var(--card-accent, var(--teal));
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--transition-fast);
}

.product-card:hover .product-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

.product-card .label {
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
}

.product-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: var(--navy);
}

.product-card p {
  flex: 1;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.product-card__cta {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--card-accent, var(--teal));
  margin-top: var(--space-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.product-card__cta::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.product-card:hover .product-card__cta::after {
  transform: translateX(4px);
}

/* Subgrid alignment at desktop */
@media (min-width: 901px) {
  .products-grid {
    grid-template-rows: auto auto auto 1fr auto;
    row-gap: 0;
  }
  .products-grid .product-card {
    grid-row: span 5;
    display: grid;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
}

/* --- Visual Product Cards (Healf-inspired) --- */
.products-visual {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.product-vcard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  cursor: pointer;
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.product-vcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--elevation-xl);
}

.product-vcard__img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.product-vcard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-vcard:hover .product-vcard__img img {
  transform: scale(1.04);
}

.product-vcard__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.15) 100%);
  -webkit-backdrop-filter: blur(4px) saturate(1.2);
  backdrop-filter: blur(4px) saturate(1.2);
}

.product-vcard__content {
  position: relative;
  z-index: 2;
  padding: var(--space-md);
}

.product-vcard__label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 0.3rem;
}

.product-vcard__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.product-vcard__desc {
  font-size: 0.88rem;
  line-height: 1.4;
  opacity: 0.75;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-vcard__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: all var(--transition-med);
}

.product-vcard__arrow svg {
  width: 16px;
  height: 16px;
  color: var(--white);
}

.product-vcard:hover .product-vcard__arrow {
  background: var(--white);
  border-color: var(--white);
}

.product-vcard:hover .product-vcard__arrow svg {
  color: var(--navy);
}

.products-visual__section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: var(--space-3xl) 0;
}

.products-visual__section .section-header {
  color: var(--white);
}

.products-visual__section .section-header .label {
  color: rgba(255, 255, 255, 0.6);
}

.products-visual__section .section-header h2 {
  color: var(--white);
}

.products-visual__section .section-header p {
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 900px) {
  .products-visual {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .products-visual {
    grid-template-columns: 1fr;
  }
  .product-vcard {
    aspect-ratio: 4 / 3;
  }
}

/* --- Test Cards --- */
.test-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(224, 221, 214, 0.4);
  border-top: 2px solid var(--card-accent, var(--teal));
  padding: var(--space-lg) var(--space-md);
  transition: all var(--transition-med);
  position: relative;
  height: 100%;  /* fill the grid cell so footers align across the row */
}

.test-card:hover {
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  box-shadow: 0 8px 32px var(--shadow-navy), 0 2px 8px var(--shadow-navy-sm);
  transform: translateY(-4px);
}

.test-section__accent {
  height: 1px;
  margin-bottom: var(--space-lg);
}

.test-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.test-card h4 {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 700;
}

.test-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  background: color-mix(in srgb, var(--card-accent, var(--teal)) 10%, var(--bg-warm-subtle));
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--card-accent, var(--teal)) 85%, black);
  white-space: nowrap;
}

.test-card__badge svg {
  width: 12px;
  height: 12px;
}

.test-card p {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  line-height: 1.5;
  color: var(--text-secondary);
  flex: 1;  /* push footer to the bottom — keeps "View test details" aligned */
}

.test-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: auto;
}

.test-card .btn--ghost {
  color: color-mix(in srgb, var(--card-accent, var(--teal)) 80%, black);
  font-weight: 600;
}

.test-card .btn--ghost:hover {
  color: var(--navy);
}

.test-card__badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* --- Product Hero --- */
.product-hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  position: relative;
  background: var(--bg-warm-subtle);
}

.product-hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.product-hero__content {
  max-width: 600px;
}

.product-hero__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-hero__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--elevation-md);
}

.product-hero__image svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .product-hero__split {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .product-hero__image {
    display: none;
  }
}

.product-hero .label {
  margin-bottom: 0.65rem;
}

.product-hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.product-hero p {
  font-size: 1.1rem;
  line-height: 1.5;
}

.product-hero__actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
  align-items: center;
}

.product-hero .btn--primary,
.test-hero .btn--primary {
  background: var(--brand-accent, var(--raspberry));
}

.product-hero .btn--primary:hover,
.test-hero .btn--primary:hover {
  background: color-mix(in srgb, var(--brand-accent, var(--raspberry)) 85%, black);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--brand-accent) 35%, transparent);
}

.product-hero__link {
  color: var(--teal);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.product-hero__link:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.product-hero__accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}

/* --- Quick links (product hero) --- */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  margin-top: var(--space-md);
}

.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  transition: color var(--transition-fast);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.quick-link:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
  background: none;
}

.quick-link__icon {
  width: 14px;
  height: 14px;
  display: flex;
  flex-shrink: 0;
  opacity: 0.6;
}

.quick-link__icon svg {
  width: 100%;
  height: 100%;
}

/* --- Section headers --- */
.section-header {
  margin-bottom: var(--space-xl);
}

.section-header .label {
  margin-bottom: 0.4rem;
}

.section-header p {
  margin-top: 0.6rem;
}

/* Small / secondary section header */
.section-header--sm {
  margin-bottom: var(--space-md);
}
.section-header--sm .label {
  font-size: 0.68rem;
}
.h3--section {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--text-primary);
}

/* Compact section spacing */
.section--compact {
  padding: var(--space-xl) 0;
}

/* --- Audience blocks --- */
.audience-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid rgba(224, 221, 214, 0.6);
  box-shadow: 0 2px 8px var(--shadow-navy-sm);
  transition: box-shadow var(--transition-med), transform var(--transition-med);
}

.audience-card:hover {
  box-shadow: 0 8px 32px var(--shadow-navy);
  transform: translateY(-2px);
}

.audience-card h3 {
  margin-bottom: var(--space-sm);
}

.audience-card p {
  margin-bottom: var(--space-md);
}

.audience-card ul {
  margin-bottom: var(--space-md);
}

.audience-card li {
  font-size: 1rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.audience-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

/* Compact audience card (homepage secondary) */
.audience-card--compact {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
}
.audience-card--compact h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.audience-card--compact p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  flex: 1;
}
.audience-card--compact:hover {
  transform: translateY(-1px);
}
.btn--sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

/* ============================================
   Testimonials — minimal quote cards
   Same design on home (patient stories) and partners (clinicians).
   ============================================ */

.testimonials-section {
  background: var(--bg-cream);
  overflow: hidden;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}
.testimonials-section .label {
  color: var(--teal);
  font-family: var(--font-accent);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.testimonials-section h2 {
  color: var(--navy);
  font-family: var(--font-heading);
}

/* Carousel container */
.testimonial-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 40px;
}
.testimonial-carousel::-webkit-scrollbar { display: none; }

.testimonial-carousel__track {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 0 1.5rem;
}

/* Card — solid white, very soft border, generous breathing room */
.testimonial-card-v2 {
  flex: 0 0 340px;
  background: var(--white);
  border: 1px solid rgba(224, 221, 214, 0.6);
  border-radius: var(--border-radius-lg);
  padding: 2.25rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  box-shadow: 0 1px 2px rgba(11, 58, 102, 0.04);
  transition: box-shadow var(--transition-med);
  margin: 0;
}

.testimonial-card-v2:hover {
  box-shadow: var(--elevation-sm);
}

/* Small, refined quote mark — sits flush top-left as decoration */
.testimonial-card-v2__quote-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 0.6;
  color: rgba(11, 58, 102, 0.12);
  margin-bottom: 0.5rem;
  user-select: none;
}

.testimonial-card-v2__quote {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  flex: 1;
  /* blockquote browser-default reset */
  border: 0;
  padding: 0;
  font-style: normal;
}

/* Editorial byline style — sleek, sits quietly under the quote */
.testimonial-card-v2__name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 1.5rem 0 0;
}

.testimonial-card-v2__name::before {
  content: '— ';
  color: var(--teal);
}

/* Doctor variant: same byline, plus a quiet role line */
.testimonial-card-v2__role {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.85;
  margin-top: 0.15rem;
  margin-left: 1rem;  /* align under name (after the em-dash) */
  line-height: 1.4;
}

/* Carousel controls */
.testimonial-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-md);
  padding-bottom: var(--space-sm);
}

.testimonial-carousel__dots {
  display: flex;
  gap: 0.5rem;
}

.testimonial-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(11, 58, 102, 0.22);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.testimonial-carousel__dot.active {
  background: var(--navy);
  width: 24px;
  border-radius: 5px;
}

.testimonial-carousel__arrows {
  display: flex;
  gap: 0.5rem;
}

.testimonial-carousel__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(11, 58, 102, 0.25);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy);
  transition: all var(--transition-fast);
}

.testimonial-carousel__arrow:hover:not(:disabled) {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.testimonial-carousel__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 768px) {
  .testimonial-card-v2 {
    flex: 0 0 260px;
    min-height: 240px;
    padding: 1.5rem 1.25rem;
  }
  .testimonial-carousel {
    padding: 0 20px;
  }
  .testimonial-card-v2__quote-mark {
    font-size: 3rem;
  }
}

/* ===== TESTIMONIAL OPTION B — White card with quote marks (hidden) =====
   To switch: in script.js renderHomeSections(), swap the testimonials
   rendering block to use the old template with .testimonial-card class.

.testimonial-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  border: 1px solid rgba(224, 221, 214, 0.6);
  box-shadow: 0 2px 8px rgba(11, 58, 102, 0.04);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.testimonial-card__mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--navy);
  opacity: 0.15;
  user-select: none;
  margin-bottom: auto;
}
.testimonial-card__quote {
  font-size: 1.05rem;
  font-style: normal;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  max-width: none;
}
.testimonial-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}
.testimonial-card__role {
  font-size: 0.85rem;
  color: var(--text-muted);
}
===== END OPTION B ===== */

/* --- Process Steps --- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  counter-reset: step;
  --step-color: var(--teal);
}

.process__step {
  text-align: center;
  padding: var(--space-md);
  padding-top: calc(var(--space-md) + 48px + var(--space-sm));
  position: relative;
}

.process__step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--step-color);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  position: absolute;
  top: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
}

.process__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: calc(var(--space-md) + 24px);
  left: calc(50% + 30px);
  right: calc(-50% + 30px);
  height: 2px;
  background: var(--step-color);
  opacity: 0.25;
  z-index: 0;
}

.process__step h4 {
  margin-bottom: 0.4rem;
}

.process__step p {
  font-size: 1rem;
  margin: 0 auto;
}

/* Product-accent step colours via body class */
.accent--tempus .process { --step-color: var(--tempus-accent); }
.accent--personalis .process { --step-color: var(--personalis-accent); }
.accent--hereditary .process { --step-color: var(--hereditary-accent); }
.accent--avantect .process { --step-color: var(--avantect-accent); }

@media (max-width: 768px) {
  .process {
    grid-template-columns: 1fr 1fr;
  }
  .process__step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .process {
    grid-template-columns: 1fr;
  }
}

/* --- Basket Page --- */
.basket-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.basket-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid rgba(224, 221, 214, 0.6);
  box-shadow: 0 1px 3px var(--shadow-navy-sm);
  transition: box-shadow var(--transition-fast);
}

.basket-item:hover {
  box-shadow: 0 4px 16px var(--shadow-navy-sm);
}

.basket-item__info h4 {
  margin-bottom: 0.2rem;
}

.basket-item__info p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.basket-item__remove {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--raspberry);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.basket-item__remove:hover {
  opacity: 0.7;
}

.basket-empty {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.basket-empty p {
  margin: var(--space-sm) auto var(--space-lg);
}

.basket-summary {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: var(--white);
  border-radius: var(--border-radius-xl);
  border: 1px solid rgba(224, 221, 214, 0.6);
  box-shadow: 0 2px 8px var(--shadow-navy-sm);
}

.basket-summary h3 {
  margin-bottom: var(--space-sm);
}

.basket-summary p {
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

/* --- Footer --- */
.site-footer {
  color: rgba(255, 255, 255, 0.7);
}

/* Background image hero wrapper */
.footer__hero {
  position: relative;
  background: url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=1600&q=80&auto=format') center center / cover no-repeat;
}

.footer__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 12, 10, 0.94) 0%,
    rgba(12, 14, 12, 0.90) 45%,
    rgba(15, 18, 14, 0.85) 100%
  );
}

.footer__hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) 0 var(--space-md);
}

/* CTA section (homepage/partners) */
.footer-cta {
  padding: var(--space-2xl) 0 0;
}

.footer-cta__layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.footer-cta__content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.footer-cta__content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  max-width: 440px;
}

.footer-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.btn--green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border-radius: 50px;
  border: 1.5px solid var(--green);
  background: var(--green);
  color: var(--navy-dark);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn--green:hover {
  background: #00d4d2;
  border-color: #00d4d2;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 186, 184, 0.3);
}

.footer-cta__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
  .footer-cta__layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .footer-cta__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .footer-cta {
    padding: var(--space-xl) 0 0;
  }
}

/* Grid: logo/brand + columns */
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer__brand {
  max-width: 260px;
}

.footer__logo {
  color: var(--white);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.footer__logo .logo-svg {
  height: 28px;
  width: auto;
}

.footer__brand p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.55;
}

.footer__col h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--teal);
  display: inline-block;
}

.footer__col a {
  display: block;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.3rem 0;
  transition: color var(--transition-fast);
}

.footer__col a:hover {
  color: var(--green);
}

/* Bottom bar */
.footer__bottom-bar {
  background: #0a0c0a;
  padding: var(--space-sm) 0;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer__bottom-inner a {
  color: rgba(255, 255, 255, 0.3);
  transition: color var(--transition-fast);
}

.footer__bottom-inner a:hover {
  color: var(--green);
}

.footer__legal {
  display: flex;
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
  .footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }
  .footer__bottom-inner {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* --- Utility --- */
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.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;
}

/* --- Product-page accent variations --- */

/* Sticky accent bar under breadcrumb on product pages */
[class*="accent--"] .breadcrumb-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.accent--tempus .breadcrumb-bar::after { background: var(--tempus-accent); }
.accent--personalis .breadcrumb-bar::after { background: var(--personalis-accent); }
.accent--hereditary .breadcrumb-bar::after { background: var(--hereditary-accent); }
.accent--avantect .breadcrumb-bar::after { background: var(--avantect-accent); }

/* Page hero — used for FAQ, support, etc. */
.page-hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  background: var(--off-white);
  border-bottom: 1px solid var(--border-light);
}
.page-hero h1 {
  margin-bottom: var(--space-sm);
}
.page-hero p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 600px;
}

/* Hide the old hero accent bar — branding now lives in the sticky header */
.product-hero__accent-bar { display: none; }

.accent--tempus .product-card__accent { background: var(--tempus-accent); }
.accent--tempus .test-card__badge { color: #145a8f; }

.accent--personalis .product-card__accent { background: var(--personalis-accent); }
.accent--personalis .test-card__badge { color: #257567; }

.accent--hereditary .product-card__accent { background: var(--hereditary-accent); }
.accent--hereditary .test-card__badge { color: #554b8a; }

.accent--avantect .product-card__accent { background: var(--avantect-accent); }
.accent--avantect .test-card__badge { color: #a84c22; }

/* --- CTA Banner --- */
.section--cta {
  background: var(--light-grey);
  border-top: 1px solid rgba(224, 221, 214, 0.4);
}

.cta-banner {
  text-align: center;
  padding: var(--space-3xl) var(--space-2xl);
  border-radius: var(--border-radius-xl);
  background: var(--white);
  color: var(--navy);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(224, 221, 214, 0.5);
  box-shadow: 0 4px 20px rgba(11, 58, 102, 0.05);
}

.cta-banner h2 {
  color: var(--navy);
  margin-bottom: var(--space-sm);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  position: relative;
}

.cta-banner p {
  color: var(--text-secondary);
  margin: 0 auto var(--space-lg);
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

.cta-banner .btn--white {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.cta-banner .btn--white:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
}

/* --- Branded CTA banner (product / test pages) --- */
.cta-banner--branded {
  background: color-mix(in srgb, var(--brand-accent) 6%, var(--white) 94%) !important;
  border-color: color-mix(in srgb, var(--brand-accent) 20%, transparent) !important;
  box-shadow: none;
}

.cta-banner--branded h2 {
  color: var(--navy);
}

.cta-banner--branded p {
  color: var(--text-secondary);
}

.cta-banner--branded .btn--brand {
  background: var(--brand-accent);
  color: var(--white);
  border-color: var(--brand-accent);
}

.cta-banner--branded .btn--brand:hover {
  filter: brightness(0.9);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--brand-accent) 35%, transparent);
}

.btn--brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border-radius: 50px;
  border: 1.5px solid var(--brand-accent);
  background: var(--brand-accent);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn--brand:hover {
  filter: brightness(0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--brand-accent) 35%, transparent);
}

/* --- Visual CTA banner (product + test pages) --- */
.cta-visual {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 180px;
  display: flex;
  align-items: center;
}

.cta-visual__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--brand-accent) 92%, black) 0%,
    color-mix(in srgb, var(--brand-accent) 70%, black 30%) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
}

.cta-visual__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  width: 100%;
  padding: var(--space-xl) var(--space-2xl);
}

.cta-visual__content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--white);
  margin: 0;
  line-height: 1.3;
  max-width: 500px;
}

.cta-visual__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn--white-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 50px;
  border: none;
  background: var(--white);
  color: var(--brand-accent, var(--navy));
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn--white-solid:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: var(--elevation-lg);
}

.btn--glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 700px) {
  .cta-visual__content {
    flex-direction: column;
    text-align: center;
    padding: var(--space-lg);
    gap: var(--space-md);
  }
  .cta-visual__actions {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* --- Compact CTA banner (legacy, kept for reference) --- */
.cta-banner--compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xl);
  text-align: left;
}

.cta-banner--compact h2 {
  margin-bottom: 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  white-space: nowrap;
}

.cta-banner--compact p {
  display: none;
}

.cta-banner--compact .test-cta-block__actions {
  flex-wrap: nowrap;
}

@media (max-width: 600px) {
  .cta-banner--compact {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: var(--space-md);
  }
  .cta-banner--compact h2 {
    white-space: normal;
  }
}

/* Branded test-cta-block */
.test-cta-block.cta-banner--branded {
  background: color-mix(in srgb, var(--brand-accent) 6%, var(--white) 94%);
  border: 1px solid color-mix(in srgb, var(--brand-accent) 18%, transparent);
  border-radius: var(--border-radius-xl);
  box-shadow: none;
}

.test-cta-block.cta-banner--branded h2 {
  color: var(--navy);
}

.test-cta-block.cta-banner--branded p {
  color: var(--text-secondary);
}

.test-cta-block.cta-banner--branded .btn--primary {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: var(--white);
}

.test-cta-block.cta-banner--branded .btn--primary:hover {
  filter: brightness(0.9);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--brand-accent) 35%, transparent);
}

.test-cta-block.cta-banner--branded .btn--outline {
  border-color: color-mix(in srgb, var(--brand-accent) 30%, transparent);
  color: var(--navy);
}

.test-cta-block.cta-banner--branded .btn--outline:hover {
  border-color: var(--brand-accent);
  background: color-mix(in srgb, var(--brand-accent) 8%, transparent);
  color: var(--navy);
}

.test-cta-block.cta-banner--branded .btn--ghost {
  color: var(--brand-accent);
}

.test-cta-block.cta-banner--branded .btn--ghost:hover {
  color: var(--navy);
}

/* --- Support page --- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

.support-card {
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(224, 221, 214, 0.5);
  text-align: center;
  background: var(--white);
  box-shadow: 0 1px 4px var(--shadow-navy-sm);
}

.support-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-accent, var(--teal)) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.support-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--brand-accent, var(--teal));
}

.support-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.support-card p {
  font-size: 1rem;
  margin: 0 auto;
}

/* --- Partners page --- */
.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .partner-logo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Partner logo cards — inline trust-signal style */
.partner-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: transparent;
  border: none;
  text-decoration: none;
}

.partner-logo-card__svg {
  width: 100%;
  max-width: 150px;
  height: 36px;
  opacity: 0.55;
  transition: opacity var(--transition-fast);
}

.partner-logo-card__svg svg {
  width: 100%;
  height: 100%;
}

.partner-logo-card:hover .partner-logo-card__svg {
  opacity: 0.9;
}

/* --- Home partner logo strip --- */
.home-partner-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
  padding: var(--space-md) 0 var(--space-lg);
}

.home-partner-logo {
  display: block;
  color: var(--text-muted);
  opacity: 0.45;
  transition: opacity var(--transition-fast);
  text-decoration: none;
  height: 32px;
}

.home-partner-logo svg {
  height: 100%;
  width: auto;
}

.home-partner-logo:hover {
  opacity: 0.85;
}

@media (max-width: 600px) {
  .home-partner-strip {
    gap: var(--space-xl);
  }
  .home-partner-logo {
    height: 24px;
  }
}

/* --- Added-to-form toast --- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 12px 40px rgba(11, 58, 102, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-med);
  z-index: 200;
  pointer-events: none;
}

.toast--visible {
  transform: translateY(0);
  opacity: 1;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.7s var(--ease-out) both;
}

.animate-in:nth-child(2) { animation-delay: 0.08s; }
.animate-in:nth-child(3) { animation-delay: 0.16s; }
.animate-in:nth-child(4) { animation-delay: 0.24s; }

/* --- Breadcrumbs --- */
.breadcrumb-bar {
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(224, 221, 214, 0.5);
  background: rgba(250, 250, 247, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 72px;
  z-index: 90;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--teal);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--navy);
}

.breadcrumb__sep {
  color: var(--green);
  font-size: 0.78rem;
}

.breadcrumb__current {
  color: var(--text-secondary);
}

/* --- Test Hero (detail page) --- */
.test-hero {
  padding: var(--space-xl) 0 var(--space-2xl);
  background: var(--bg-warm-subtle);
}

.test-hero__layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-xl);
  align-items: center;
}

.test-hero__content .label {
  margin-bottom: var(--space-xs);
}

.test-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
}

.test-hero__content .subtitle {
  margin-top: var(--space-sm);
}

.test-hero__image {
  border-radius: var(--border-radius-xl);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  opacity: 0.15;
}

.test-hero__image-inner {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.test-hero__image-inner svg {
  width: 80px;
  height: 80px;
  color: var(--white);
  opacity: 0.6;
}

@media (max-width: 900px) {
  .test-hero__layout {
    grid-template-columns: 1fr;
  }
  .test-hero__image {
    display: none;
  }
}

/* --- Test Detail Grid --- */
.test-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-xl);
  align-items: start;
}

.test-detail-main h2 {
  margin-bottom: var(--space-md);
}

.test-detail-main p {
  font-size: 1rem;
  line-height: 1.55;
}

.test-detail-who h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
}

.test-detail-sidebar {
  position: sticky;
  top: 96px;
}

.test-detail-keyinfo {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(224, 221, 214, 0.6);
  padding: var(--space-lg);
  box-shadow: 0 4px 16px var(--shadow-navy-sm);
}

.test-detail-keyinfo h3 {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
}

.test-detail-keyinfo ul {
  list-style: none;
}

.test-detail-keyinfo li {
  font-size: 1rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.5;
  border-bottom: 1px solid var(--light-grey);
}

.test-detail-keyinfo li:last-child {
  border-bottom: none;
}

.test-detail-keyinfo li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

@media (max-width: 900px) {
  .test-detail-grid {
    grid-template-columns: 1fr;
  }
  .test-detail-sidebar {
    position: static;
  }
}

/* --- Process grid variants for 3 and 5 steps --- */
.process--3 {
  grid-template-columns: repeat(3, 1fr);
}

.process--5 {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 900px) {
  .process--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .process--3,
  .process--5 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .process--3,
  .process--5 {
    grid-template-columns: 1fr;
  }
}

/* --- Test CTA Block --- */
.test-cta-block {
  text-align: center;
  padding: var(--space-3xl) var(--space-2xl);
  border-radius: var(--border-radius-xl);
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 64px rgba(11, 58, 102, 0.25);
}

.test-cta-block h2 {
  color: var(--white);
  margin-bottom: var(--space-sm);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  position: relative;
}

.test-cta-block p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 auto var(--space-lg);
  position: relative;
}

.test-cta-block__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  position: relative;
}

.test-cta-block__actions .btn--outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.test-cta-block__actions .btn--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.test-cta-block__actions .btn--ghost {
  color: rgba(255, 255, 255, 0.7);
}

.test-cta-block__actions .btn--ghost:hover {
  color: var(--white);
}

/* --- Test sticky bottom bar (mobile) --- */
.test-sticky-bar {
  display: none;
}

@media (max-width: 768px) {
  .test-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: var(--white);
    border-top: 1px solid var(--border-light);
    padding: 0.65rem var(--space-md);
    gap: 0.5rem;
    align-items: center;
    box-shadow: 0 -2px 16px var(--shadow-navy-sm);
  }
  .test-sticky-bar .btn {
    flex: 1;
    text-align: center;
    font-size: 0.92rem;
    padding: 0.65rem 0.75rem;
  }
  .test-sticky-bar .btn--outline {
    flex: 0.7;
  }
  /* Show remove state on tap for mobile sticky bar */
  .test-sticky-bar .btn--added .btn__icon-cross,
  .test-sticky-bar .btn--added .btn__label-remove {
    display: inline;
  }
  .test-sticky-bar .btn--added .btn__icon-tick,
  .test-sticky-bar .btn--added .btn__label-added {
    display: none;
  }
  .test-sticky-bar .btn--added {
    background: #fef2f2 !important;
    color: var(--raspberry) !important;
    border-color: var(--raspberry) !important;
  }
}

/* --- Test card as link (product line pages) --- */
a.test-card {
  /* Inherits display: flex from .test-card — do NOT override to block,
     that silently breaks the flex-column footer alignment. */
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.test-card:hover {
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  box-shadow: 0 10px 40px var(--shadow-navy), 0 4px 12px var(--shadow-navy-sm);
  transform: translateY(-4px);
}


/* =============================================
   REQUEST WIZARD
   ============================================= */

/* --- Wizard header --- */
.wizard__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.wizard__header h1 {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}
.wizard__header p {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* --- Selected tests bar --- */
.wizard__tests {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  box-shadow: 0 2px 8px var(--shadow-navy-sm);
}
.wizard__tests-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.wizard__tests-label svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
}
.wizard__tests-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.wizard__test-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 0.4rem 0.75rem;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}
.wizard__test-chip-line {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
}
.wizard__test-chip-name {
  color: var(--text-primary);
  font-weight: 500;
}
.wizard__test-chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.15rem;
  border-radius: 50%;
  transition: all 0.2s;
}
.wizard__test-chip-remove:hover {
  color: var(--raspberry);
  background: rgba(216, 76, 110, 0.08);
}

/* --- Progress stepper --- */
.wizard__progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: var(--space-md) 0;
  margin-bottom: var(--space-lg);
  position: sticky;
  top: 120px;
  z-index: 80;
  background: var(--off-white);
}
.wizard__step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.wizard__step-indicator span {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color 0.3s;
}
.wizard__step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--white);
  color: var(--text-muted);
  border: 2px solid var(--border-light);
  transition: all var(--transition-med);
}
.wizard__step-connector {
  width: 40px;
  height: 2px;
  background: var(--border-light);
  margin: 0 0.25rem;
  margin-bottom: 1.4rem;
  transition: background 0.3s;
}

/* Active step */
.wizard__step-indicator.is-active .wizard__step-dot {
  background: var(--navy);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(6, 117, 140, 0.3);
}
.wizard__step-indicator.is-active span {
  color: var(--navy);
}

/* Completed step */
.wizard__step-indicator.is-completed {
  cursor: pointer;
}
.wizard__step-indicator.is-completed:hover .wizard__step-dot {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 150, 143, 0.3);
}
.wizard__step-indicator.is-completed .wizard__step-dot {
  background: var(--green);
  color: var(--white);
  border-color: transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wizard__step-indicator.is-completed .wizard__step-dot::after {
  content: '\2713';
  font-size: 1rem;
}
.wizard__step-indicator.is-completed .wizard__step-dot {
  font-size: 0;
}
.wizard__step-indicator.is-completed span {
  color: var(--teal);
}
.wizard__step-indicator.is-completed + .wizard__step-connector {
  background: var(--green);
}

/* Skipped step */
.wizard__step-indicator.is-skipped .wizard__step-dot {
  opacity: 0.35;
  background: var(--light-grey);
}
.wizard__step-indicator.is-skipped span {
  opacity: 0.35;
  text-decoration: line-through;
}

/* --- Wizard panels --- */
.wizard__panel {
  display: none;
  animation: wizardFadeIn 0.35s var(--ease-out);
}
.wizard__panel.is-active {
  display: block;
}
@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard__panel-header {
  margin-bottom: var(--space-lg);
}
.wizard__panel-header h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.wizard__panel-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* --- Wizard navigation --- */
.wizard__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  margin-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}
.wizard__nav-spacer {
  flex: 1;
}
.wizard__nav .btn--primary {
  min-width: 160px;
}
.wizard__nav [id="wizard-back"] {
  margin-right: auto;
}

/* Shared slide-in for draft-related notices (used by the email-link welcome-back banner) */
@keyframes draftSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Family history entries --- */
.family-member-entry {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.family-member-entry__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.family-member-entry__num {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.family-member-entry__remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.family-member-entry__remove:hover {
  background: #fef2f2;
  color: var(--raspberry);
  border-color: var(--raspberry);
}

/* =============================================
   FORM ELEMENTS
   ============================================= */

/* --- Form sections & groups --- */
.form-section {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-md) var(--space-md) var(--space-md);
  margin-bottom: var(--space-md);
  box-shadow: 0 2px 8px var(--shadow-navy-sm);
}

/* Per-test sample sections */
.per-test-section {
  position: relative;
}
.per-test-section__header {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}
.per-test-section__header .form-section__title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  flex: 1;
}
.per-test-section__count {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 10%, transparent);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}
.per-test-section__line {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.per-test-section__note {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: var(--space-md);
  font-style: italic;
}
.per-test-tissue {
  margin-top: var(--space-sm);
}
.form-section__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-md);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}
.form-section__desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.form-group {
  margin-bottom: var(--space-lg);
}

/* --- Form rows (side-by-side fields) --- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* --- Form fields --- */
.form-field {
  margin-bottom: var(--space-sm);
}
.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.form-label--sm {
  font-size: 0.88rem;
}
.form-required {
  color: var(--raspberry);
  font-weight: 700;
}
.form-optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.88rem;
}

/* --- Inputs, selects, textareas --- */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-primary);
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  border-color: var(--teal);
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}
.form-textarea {
  resize: vertical;
  min-height: 70px;
}
.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234a5c6d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

/* --- Radio buttons --- */
.form-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.form-radio-group--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.form-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}
.form-radio:hover {
  border-color: var(--teal);
  background: rgba(6, 117, 140, 0.02);
}
.form-radio input[type="radio"] {
  display: none;
}
.form-radio__mark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all 0.2s;
}
.form-radio__mark::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s;
}
.form-radio input[type="radio"]:checked ~ .form-radio__mark {
  border-color: var(--teal);
}
.form-radio input[type="radio"]:checked ~ .form-radio__mark::after {
  background: var(--teal);
}
.form-radio input[type="radio"]:checked ~ .form-radio__text strong {
  color: var(--navy);
}
.form-radio__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.form-radio__text strong {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}
.form-radio__text small {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Selected radio card */
.form-radio:has(input:checked) {
  border-color: var(--teal);
  background: rgba(6, 117, 140, 0.03);
  box-shadow: 0 0 0 1px var(--teal);
}

/* --- Checkboxes --- */
.form-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.7rem 0.9rem;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--border-radius);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  transition: all 0.2s;
}
.form-checkbox:hover {
  border-color: var(--teal);
}
.form-checkbox input[type="checkbox"] {
  display: none;
}
.form-checkbox__mark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 4px;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all 0.2s;
}
.form-checkbox__mark::after {
  content: '\2713';
  font-size: 0.78rem;
  color: transparent;
  transition: color 0.2s;
}
.form-checkbox input[type="checkbox"]:checked ~ .form-checkbox__mark {
  border-color: var(--teal);
  background: var(--teal);
}
.form-checkbox input[type="checkbox"]:checked ~ .form-checkbox__mark::after {
  color: var(--white);
}
.form-checkbox:has(input:checked) {
  border-color: var(--teal);
  background: rgba(6, 117, 140, 0.03);
}

/* --- Conditional fields --- */
.form-conditional {
  display: none;
  margin-top: 0.75rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--green);
  animation: wizardFadeIn 0.3s var(--ease-out);
}
.form-conditional.is-visible {
  display: block;
}

/* --- Form notices --- */
.form-notice {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: rgba(0, 186, 184, 0.06);
  border: 1px solid rgba(6, 117, 140, 0.15);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-sm);
}
.form-notice svg {
  width: 22px;
  height: 22px;
  min-width: 22px;
  color: var(--teal);
  margin-top: 1px;
}
.form-notice strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.form-notice p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.form-notice--info {
  background: rgba(11, 58, 102, 0.04);
  border-color: rgba(11, 58, 102, 0.12);
}

/* --- File upload --- */
.form-upload {
  border: 2px dashed var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-md);
  text-align: center;
  transition: all 0.2s;
  position: relative;
}
.form-upload:hover,
.form-upload.is-dragover {
  border-color: var(--teal);
  background: rgba(6, 117, 140, 0.02);
}
.form-upload__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.form-upload__inner svg {
  width: 36px;
  height: 36px;
  color: var(--teal);
  opacity: 0.6;
}
.form-upload__inner p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-secondary);
}
.form-upload__inner small {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.form-upload__browse {
  background: none;
  border: none;
  color: var(--teal);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
  font-family: inherit;
}
.form-upload__input {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}
.form-upload__files {
  margin-top: 0.75rem;
  text-align: left;
}
.form-upload__file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  background: var(--off-white);
  border-radius: var(--border-radius);
  margin-top: 0.4rem;
  font-size: 0.92rem;
}
.form-upload__file svg {
  color: var(--teal);
  flex-shrink: 0;
}
.form-upload__file-name {
  flex: 1;
  color: var(--text-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.form-upload__file-size {
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.form-upload__file-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 0 0.2rem;
  flex-shrink: 0;
  transition: color 0.2s;
}
.form-upload__file-remove:hover {
  color: var(--raspberry);
}

/* --- Validation --- */
.has-error .form-input,
.has-error .form-select,
.has-error .form-textarea {
  border-color: var(--raspberry);
  box-shadow: 0 0 0 3px rgba(216, 76, 110, 0.1);
}
.has-error .form-radio,
.has-error .form-checkbox {
  border-color: var(--raspberry);
}
.form-error-msg {
  font-size: 0.88rem;
  color: var(--raspberry);
  font-weight: 500;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.form-error-msg::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--raspberry);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}


/* =============================================
   REVIEW SUMMARY
   ============================================= */
.review-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow-navy-sm);
}
.review-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem var(--space-md);
  background: var(--off-white);
  border-bottom: 1px solid var(--border-light);
}
.review-card__header h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}
.review-card__edit {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.6rem;
  border-radius: var(--border-radius);
  transition: all 0.2s;
}
.review-card__edit:hover {
  background: rgba(6, 117, 140, 0.08);
}
.review-card__body {
  padding: 0.75rem var(--space-md);
}
.review-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.4rem 0;
}
.review-item:not(:last-child) {
  border-bottom: 1px solid rgba(224, 221, 214, 0.5);
}
.review-item__label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  min-width: 130px;
  flex-shrink: 0;
}
.review-item__value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}


/* =============================================
   CONFIRMATION
   ============================================= */
.confirmation {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-lg) 0;
}
.confirmation__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}
.confirmation__icon svg {
  width: 40px;
  height: 40px;
  color: var(--white);
}
.confirmation h2 {
  margin-bottom: 0.5rem;
}
.confirmation > p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.confirmation__ref {
  font-size: 1rem;
  color: var(--teal);
  margin-bottom: var(--space-sm);
  padding: 0.6rem 1.2rem;
  background: rgba(6, 117, 140, 0.06);
  border: 1px solid rgba(6, 117, 140, 0.15);
  border-radius: var(--border-radius);
  display: inline-block;
}
.confirmation__ref strong {
  font-family: var(--font-accent);
  letter-spacing: 0.08em;
}
.confirmation__summary {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-md);
  margin-top: var(--space-lg);
  box-shadow: 0 2px 8px var(--shadow-navy-sm);
}
.confirmation__summary h4,
.confirmation__next h4,
.confirmation__faq h4 {
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}
.confirmation__summary p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}
.confirmation__next {
  text-align: left;
  margin-top: var(--space-md);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-md);
  box-shadow: 0 2px 8px var(--shadow-navy-sm);
}
.confirmation__steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.confirmation__step {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1rem;
  color: var(--text-secondary);
}
.confirmation__step-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.confirmation__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: var(--space-lg);
}

/* Confirmation FAQ */
.confirmation__faq {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-md);
  margin-top: var(--space-md);
  text-align: left;
  box-shadow: 0 2px 8px var(--shadow-navy-sm);
}
.confirmation__faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 0;
}
.confirmation__faq-item:last-of-type {
  border-bottom: none;
}
.confirmation__faq-item summary {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}
.confirmation__faq-item summary::-webkit-details-marker {
  display: none;
}
.confirmation__faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--teal);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--teal) 25%, transparent);
  transition: all 0.2s;
}
.confirmation__faq-item[open] summary::after {
  content: '\2212';
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.confirmation__faq-item p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 0.6rem;
  padding-right: var(--space-lg);
}
.confirmation__faq-more {
  margin-top: var(--space-md);
  text-align: center;
}
.confirmation__faq-more a {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}
.confirmation__faq-more a:hover {
  text-decoration: underline;
}

/* --- Responsive wizard --- */
@media (max-width: 768px) {
  .wizard__progress {
    gap: 0;
    overflow-x: auto;
    justify-content: flex-start;
    padding: var(--space-sm) 0;
    top: 72px;
  }
  .wizard__step-indicator span {
    font-size: 0.6rem;
  }
  .wizard__step-dot {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
  }
  .wizard__step-connector {
    width: 20px;
  }
  .review-item {
    flex-direction: column;
    gap: 0.15rem;
  }
  .review-item__label {
    min-width: auto;
  }
  .confirmation__actions {
    flex-direction: column;
  }

  /* Wizard nav — stack on mobile */
  .wizard__nav {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 0;
    position: sticky;
    bottom: 0;
    background: var(--white);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -2px 12px var(--shadow-navy-sm);
    z-index: 100;
    margin-left: calc(-1 * var(--space-md));
    margin-right: calc(-1 * var(--space-md));
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    margin-top: var(--space-md);
  }
  .wizard__nav .btn {
    min-width: auto;
  }
  .wizard__nav .btn--primary,
  .wizard__nav .btn--outline {
    flex: 1;
  }
  .wizard__nav .btn--ghost {
    order: 3;
    width: 100%;
    text-align: center;
    font-size: 0.88rem;
    padding: 0.5rem;
  }
  .wizard__nav-spacer {
    display: none;
  }

  /* Form inputs — larger touch targets */
  .form-input,
  .form-textarea,
  .form-select {
    font-size: 16px !important; /* prevents iOS zoom */
    padding: 0.75rem;
  }

  /* Radio/checkbox — larger tap area */
  .form-radio,
  .form-checkbox {
    padding: 0.85rem 0.75rem;
  }

  /* Family member cards tighter on mobile */
  .family-member-entry {
    padding: 0.75rem;
  }
  .family-member-entry .form-row {
    grid-template-columns: 1fr;
  }

  /* Panel header tighter */
  .wizard__panel-header h2 {
    font-size: 1.3rem;
  }
}

/* =============================================
   DESIGN SYSTEM PAGE UTILITIES (.ds-* scoped)
   ============================================= */

/* Anchor nav pill links */
.ds-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ds-nav a {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}
.ds-nav a:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Section dividers */
.ds-section {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border-light);
}
.ds-section:last-child { border-bottom: none; }

.ds-section-title {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

/* Colour swatch grid */
.ds-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-sm);
}
.ds-swatch {
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--white);
}
.ds-swatch__color { height: 80px; }
.ds-swatch__info {
  padding: 0.6rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
}
.ds-swatch__hex { font-weight: 600; color: var(--text-primary); }
.ds-swatch__var {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: 'Courier New', monospace;
  margin-top: 0.15rem;
}

/* Typography specimens */
.ds-type-specimen {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(224, 221, 214, 0.4);
}
.ds-type-specimen:last-child { border-bottom: none; }
.ds-type-meta {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Spacing scale bars */
.ds-spacing-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 0.75rem;
}
.ds-spacing-block {
  height: 32px;
  background: var(--teal);
  border-radius: 4px;
  flex-shrink: 0;
}
.ds-spacing-label {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
  min-width: 180px;
  flex-shrink: 0;
}

/* Shadow demo boxes */
.ds-shadow-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: start;
}
.ds-shadow-box {
  width: 180px;
  height: 120px;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.ds-shadow-box span {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Button showcase rows */
.ds-button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

/* Dark background helper */
.ds-dark-bg {
  background: var(--navy);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--border-radius-lg);
}

/* Component demo container */
.ds-demo {
  padding: var(--space-md);
  background: var(--light-grey);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--space-md);
}

/* Sub-section heading */
.ds-subsection {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}
.ds-subsection h3 {
  font-size: 1.1rem;
  line-height: 1.15;
  margin-bottom: 0;
}

/* Card demo grid */
.ds-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
@media (max-width: 768px) {
  .ds-card-grid { grid-template-columns: 1fr; }
}

/* Accent demo panels */
.ds-accent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
.ds-accent-panel {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-md);
  overflow: hidden;
}
.ds-accent-bar {
  height: 4px;
  border-radius: 2px;
  margin-bottom: var(--space-sm);
}
@media (max-width: 768px) {
  .ds-accent-grid { grid-template-columns: 1fr; }
}

/* Radius demos */
.ds-radius-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: end;
}
.ds-radius-box {
  width: 80px;
  height: 80px;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Form demo narrow container */
.ds-form-demo { max-width: 640px; }

/* Design principles grid */
.ds-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg) var(--space-xl);
}
.ds-principles-grid h4 { margin: 0 0 var(--space-xs); }
.ds-principles-grid p { margin: 0; font-size: 1rem; color: var(--text-secondary); line-height: 1.5; }
@media (max-width: 768px) { .ds-principles-grid { grid-template-columns: 1fr; } }

/* Colour swatch extended value line */
.ds-swatch__val {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: 'Courier New', monospace;
  margin-top: 0.1rem;
}

/* Colour distribution bar */
.ds-distribution { margin-top: var(--space-lg); }
.ds-distribution__bar {
  display: flex;
  height: 20px;
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.ds-distribution__segment { height: 100%; }
.ds-distribution__legend {
  margin-top: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Anti-pattern do/don't pairs */
.ds-ap-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
@media (max-width: 768px) {
  .ds-ap-pair { grid-template-columns: 1fr; }
}
.ds-ap {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--white);
}
.ds-ap__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem var(--space-md);
}
.ds-ap--dont .ds-ap__label {
  background: rgba(216, 76, 110, 0.08);
  color: var(--raspberry);
}
.ds-ap--do .ds-ap__label {
  background: rgba(0, 186, 184, 0.08);
  color: var(--teal);
}
.ds-ap__demo {
  padding: var(--space-md);
}

/* Surface distribution table */
.ds-surface-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ds-surface-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-heading);
  font-size: 0.88rem;
}
.ds-surface-table th,
.ds-surface-table td {
  padding: 0.6rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}
.ds-surface-table th {
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(243, 242, 238, 0.5);
  position: sticky;
  top: 0;
}
.ds-surface-table td:first-child,
.ds-surface-table th:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text-primary);
  min-width: 140px;
}
.ds-surface-table tbody tr:hover {
  background: rgba(6, 117, 140, 0.03);
}
.ds-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* Typography weight contrast demo */
.ds-type-contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl) var(--space-lg);
}
@media (max-width: 768px) {
  .ds-type-contrast { grid-template-columns: 1fr; gap: var(--space-lg); }
}

/* Frosted glass demo */
.ds-frosted-demo {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.ds-frosted-demo__bg {
  background: var(--off-white);
  min-height: 120px;
}
.ds-frosted-demo__panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(224, 221, 214, 0.6);
}

/* Imagery guidance grid */
.ds-imagery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
@media (max-width: 768px) {
  .ds-imagery-grid { grid-template-columns: 1fr; }
}
.ds-imagery-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}
.ds-imagery-placeholder {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ds-imagery-card h4 {
  margin: 0 0 var(--space-xs);
  padding: var(--space-md) var(--space-md) 0;
}
.ds-imagery-card p {
  margin: 0;
  padding: 0 var(--space-md) var(--space-md);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Tag & pill demo utilities */
.ds-tag-demo {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.ds-pill-demo-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-group {
  margin-bottom: var(--space-xl);
}

.faq-group__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--teal);
  display: inline-block;
}

.faq-item {
  border-bottom: 1px solid rgba(224, 221, 214, 0.7);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  transition: color var(--transition-fast);
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: '';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: block;
  border: 1.5px solid rgba(0, 186, 184, 0.3);
  border-radius: 50%;
  margin-left: var(--space-md);
  transition: all 0.3s var(--ease-out);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2306758c' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.faq-item[open] > .faq-item__question::after {
  background-color: var(--teal);
  border-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}

.faq-item__question:hover {
  color: var(--teal-dark, #007a78);
}

.faq-item__answer {
  padding: 0 0 var(--space-md) 0;
}

.faq-item__answer p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 680px;
}

/* =============================================
   EMAIL RESUME LINK MODAL
   ============================================= */
.resume-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.resume-modal[hidden] {
  display: none;
}

.resume-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 58, 102, 0.55);
  backdrop-filter: blur(2px);
  animation: resumeFadeIn 0.2s var(--ease-out);
}

.resume-modal__box {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 24px 80px rgba(11, 58, 102, 0.25);
  padding: 2rem 1.75rem 1.5rem;
  animation: resumeSlideIn 0.25s var(--ease-out);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

@keyframes resumeFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes resumeSlideIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.resume-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.resume-modal__close:hover {
  background: var(--light-grey);
  color: var(--navy);
}

.resume-modal__state[hidden] {
  display: none;
}

.resume-modal__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--teal) 12%, var(--white));
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.resume-modal__icon--success {
  background: color-mix(in srgb, var(--green) 15%, var(--white));
  color: var(--green);
}

.resume-modal__icon--error {
  background: color-mix(in srgb, var(--raspberry) 12%, var(--white));
  color: var(--raspberry);
}

.resume-modal__state h3 {
  /* Inherit font-family / weight / color from global h3; constrain size for a modal */
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.resume-modal__desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

.resume-modal__form {
  display: flex;
  flex-direction: column;
}

/* Nudge the globally-styled .form-input down half a notch so it fits the modal
   without feeling oversized; font-family/weight stay global. */
.resume-modal__form .form-input {
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
}

.resume-modal__error {
  font-family: var(--font-body);
  color: var(--raspberry);
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0.45rem 0 0;
}

.resume-modal__suggest {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0.45rem 0 0;
}

.resume-modal__suggest button {
  font: inherit;
  color: var(--teal);
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.resume-modal__suggest button:hover {
  color: var(--navy);
}

.resume-modal__consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 1rem 0 0.25rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.resume-modal__consent input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 0.15rem;
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
  cursor: pointer;
}

.resume-modal__note {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0.75rem 0 0;
}

.resume-modal__note--muted {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.resume-modal__linkbtn {
  background: none;
  border: none;
  color: var(--teal);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.resume-modal__linkbtn:hover {
  color: var(--navy);
}

.resume-modal__actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

.resume-modal__actions--single {
  justify-content: flex-end;
}

.resume-modal__actions .btn {
  min-width: 110px;
}

.resume-modal__box .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .resume-modal__box {
    padding: 1.75rem 1.25rem 1.25rem;
  }
  .resume-modal__actions {
    flex-direction: column-reverse;
  }
  .resume-modal__actions .btn {
    width: 100%;
  }
}

/* --- Save button block (button + saved-receipt line below) --- */
.wizard__save-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
}

.wizard__save-receipt {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
  max-width: 260px;
  text-align: right;
}

.wizard__save-receipt[hidden] {
  display: none;
}

.wizard__save-receipt__check {
  color: var(--green);
  font-weight: 700;
  margin-right: 0.25rem;
}

.wizard__save-receipt__email {
  color: var(--text-primary);
}

@media (max-width: 600px) {
  .wizard__save-block {
    align-items: flex-start;
    width: 100%;
  }
  .wizard__save-receipt {
    text-align: left;
    max-width: none;
  }
}

/* --- Paused screen (shown when user chooses "I'll come back later") --- */
.wizard__paused[hidden] {
  display: none;
}

.paused {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-sm);
}

.paused__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 16%, var(--white));
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.paused h2 {
  margin: 0 0 0.6rem;
}

.paused__lede {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-primary);
  margin: 0 auto 0.4rem;
  max-width: 480px;
}

.paused__step {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 auto var(--space-md);
  max-width: 480px;
}

.paused__step strong {
  color: var(--navy);
}

.paused__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto;
}

.paused__actions .btn {
  min-width: 180px;
}

.paused__footnote {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: var(--space-md) auto 0;
  max-width: 420px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .paused__actions .btn {
    min-width: 0;
    width: 100%;
  }
}

/* URL-restore notice (when ?draft=uuid lands) */
.draft-restore-notice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: color-mix(in srgb, var(--green) 10%, var(--white));
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
  color: var(--navy);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  animation: draftSlideIn 0.4s var(--ease-out);
}

.draft-restore-notice__icon {
  color: var(--green);
  flex-shrink: 0;
}

/* ============================================
   Demo mode (DEMO_MODE = true in script.js)
   ============================================ */
.demo-pill {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 9999;
  background: rgba(11, 58, 102, 0.92);
  color: #fff;
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  user-select: none;
}

@media print {
  .demo-pill { display: none; }
}

/* In-content demo notices: shown only when body.is-demo-mode */
body:not(.is-demo-mode) [data-demo-only] {
  display: none !important;
}

.demo-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: color-mix(in srgb, var(--raspberry) 8%, var(--white));
  border-left: 3px solid var(--raspberry);
  color: var(--text-primary);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: var(--space-sm) 0;
}

.demo-notice strong {
  color: var(--raspberry);
}

/* ============================================
   Accessibility: focus-visible baseline
   ============================================ */
/* Site-wide focus indicator for keyboard users. Mouse clicks don't
   trigger :focus-visible in modern browsers, so this never appears
   on click; it appears only when focus arrives via keyboard. */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Wizard step-indicator: pointer + role=button promoted by JS. The
   :focus-visible above already handles focus; this ensures the role
   change doesn't lose the existing pointer cursor on completed steps. */
.wizard__step-indicator.is-completed {
  cursor: pointer;
}
.wizard__step-indicator:not(.is-completed):not(.is-active) {
  cursor: default;
}
/* ============================================
   LINK Medical — Warm Hero Only
   ============================================ */

/* --- Warm Hero: Split layout --- */
.warm-hero {
  background: #f0eeea;
  padding: var(--space-2xl) 0 var(--space-xl);
  overflow: hidden;
}

.warm-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.warm-hero__label {
  color: var(--teal);
  margin-bottom: var(--space-xs);
}

.warm-hero__content h1 {
  color: var(--navy);
  font-size: clamp(2.4rem, 4.5vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
}

.warm-hero__content > p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: var(--space-lg);
  max-width: 440px;
}

.warm-hero__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Visual */
.warm-hero__visual {
  position: relative;
}

.warm-hero__img-main {
  overflow: hidden;
}

.warm-hero__img-main img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .warm-hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .warm-hero__visual {
    max-width: 420px;
    margin: 0 auto;
  }
  .warm-hero {
    padding: var(--space-xl) 0 var(--space-lg);
  }
  .warm-hero__content h1 {
    font-size: clamp(2.2rem, 7vw, 3rem);
  }
}

@media (max-width: 600px) {
  .warm-hero__visual {
    display: none;
  }
}

/* --- Warm trust: fluid, no box --- */
.warm-hero + .trust {
  background: transparent;
  border-bottom: none;
  padding: var(--space-lg) 0 var(--space-md);
}

.warm-hero + .trust .trust__row {
  justify-content: space-between;
  gap: var(--space-md);
}

.warm-hero + .trust .trust__icon {
  background: rgba(0, 150, 143, 0.08);
}

@media (max-width: 768px) {
  .warm-hero + .trust {
    padding: var(--space-md) 0;
  }
}
