/* ==========================================================================
   AzRated — Energy Performance Certificates & floor plans, London
   Implemented from "AzRated Website v2.dc.html" (Claude Design export).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   Colours carried over from the design. Several greys were darkened/lightened
   from the source values to clear WCAG AA (4.5:1) at the sizes they are used —
   the original picks sat between 2.7:1 and 4.2:1. Brand purple and the two
   surface colours are unchanged.
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --purple:        #762FA3;
  --purple-dark:   #5B2280;
  --purple-wash:   #F4EEF8;
  --purple-soft:   #C7A6DC;
  --purple-onDark: #D3B8E4;  /* was #C7A6DC — 4.15:1 on --dark */

  /* Ink */
  --ink:      #2C2C2B;
  --body:     #494948;
  --muted:    #5A5A58;
  --muted-2:  #71716F;
  --muted-3:  #6F6F6D;       /* was #8C8C8A / #9A9A98 — both under 3.5:1 */
  --plan-ink: #6B5B78;       /* was #A08BB2 — 2.8:1 */
  --counter:  #7E5C99;       /* was #B79ACB — 2.2:1 */

  /* Surfaces */
  --bg:        #FEFEFE;
  --bg-tint:   #FAF7FC;
  --bg-tint-2: #FBF9FC;
  --dark:      #494948;
  --dark-2:    #5D5D5B;

  /* On dark */
  --on-dark:       #FEFEFE;
  --on-dark-body:  #C3C3C1;
  --on-dark-link:  #D6D6D4;
  --on-dark-muted: #BDBDBB;  /* was #9A9A98 / #A6A6A4 — both under 3.6:1 */

  /* Lines */
  --line:     #E9E3EE;
  --line-2:   #EEE9F1;
  --line-3:   #EDE7F0;
  --line-4:   #E6DFEB;
  --field:    #E3DCE9;
  --outline:  #DCD4E3;

  --star: #A66200;           /* was #E8A317 — 2.1:1 on white; stars are glyphs, so they need text contrast */

  /* Type */
  --display: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans:    'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Metrics */
  --wrap:    1280px;
  --gutter:  30px;
  --header-h: 65px;
  --radius:  16px;
  --shadow:  0 14px 40px rgba(44, 44, 43, .05);
  --shadow-cta: 0 8px 22px rgba(118, 47, 163, .18);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Sticky header would otherwise cover the top of every anchor target. */
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* The browser's own `[hidden] { display: none }` is a user-agent rule, so ANY
   author rule that sets `display` beats it and the element stays on screen.
   That silently un-hid the quote form's "Request received" panel, which sets
   `display: flex`. Enforce it once, globally, so it cannot happen again. */
[hidden] { display: none !important; }

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-dark); }

img, svg { max-width: 100%; }
img { height: auto; }

input, textarea, select, button { font: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -.035em; color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  background: var(--purple);
  color: var(--on-dark);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  transition: top .15s;
}
.skip:focus { top: 12px; color: var(--on-dark); }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  width: 100%;
}

.section { padding: clamp(64px, 7vw, 104px) var(--gutter); }
.section--flush-top { padding-top: 0; }

.section--tint {
  background: var(--bg-tint);
  border-block: 1px solid var(--line-2);
}

.section--dark {
  background: var(--dark);
  color: var(--on-dark);
}
.section--dark h2,
.section--dark h3 { color: var(--on-dark); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}
.section--dark .eyebrow { color: var(--purple-onDark); }

.h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 16px;
  text-wrap: balance;
}

.lede {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}
.section--dark .lede { color: var(--on-dark-body); }

.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head > .h2:last-child { margin-bottom: 0; }

.split-head {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.link-arrow {
  font-weight: 700;
  font-size: 16px;
}
/* Non-breaking space keeps the arrow glued to the final word, so the label can
   wrap on narrow screens without the arrow orphaning onto its own line. The
   previous `white-space: nowrap` forced overflow below ~340px. */
.link-arrow::after { content: '\00A0\2192'; }

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.grid--wide  { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.grid--split { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(36px, 5vw, 72px); align-items: start; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  border: 1.5px solid transparent;
  border-radius: 9px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}

.btn--primary {
  background: var(--purple);
  color: var(--on-dark);
  padding: 14px 26px;
}
.btn--primary:hover { background: var(--purple-dark); color: var(--on-dark); }

.btn--ghost {
  border-color: var(--outline);
  color: var(--body);
  background: var(--bg);
  padding: 13px 24px;
}
.btn--ghost:hover { border-color: var(--purple); color: var(--purple); }

.btn--lg { font-size: 17px; padding: 17px 32px; letter-spacing: -.01em; }
.btn--lg.btn--primary { box-shadow: var(--shadow-cta); }
.btn--lg.btn--ghost { padding: 16px 28px; background: rgba(254, 254, 254, .7); border-color: #D3C9DB; }

.btn--block { display: block; width: 100%; }
.btn--sm { font-size: 15.5px; padding: 13px; }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(254, 254, 254, .9);
  border-bottom: 1px solid var(--line-2);
}
@supports (backdrop-filter: blur(14px)) {
  .header { backdrop-filter: blur(14px); }
}

.header--scrolled {
  border-bottom-color: #E2D9E9;
  box-shadow: 0 6px 24px rgba(44, 44, 43, .06);
}

.header__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
/* The monogram only, cropped out of the full lockup — the original tile also
   contained a miniature "AzRated" wordmark, which was both illegible at this
   size (reading as blurry) and redundant next to the live text beside it.
   Height drives the size; the mark is 641x523 so a square would distort it. */
.brand__mark {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
/* The lockup is two-tone: "Az" in brand purple, "Rated" in charcoal — matching
   the letter fills in the source logo (#7630A0/#7530A0 and #4A4A48/#494947,
   snapped to the exact brand hexes). Rendering the whole word in one colour
   was what made "Az" read as charcoal. */
.brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.03em;
  color: var(--body);      /* #494948 — "Rated" */
}
.brand__az { color: var(--purple); }   /* #762FA3 — "Az" */

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

/* Links sit in their own optically-even group; the phone number and CTA are
   pushed off to the right behind a hairline so the bar reads in three parts. */
.nav__link {
  position: relative;
  color: #4F4F4E;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.005em;
  padding: 9px 13px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 13px; right: 13px; bottom: 5px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav__link:hover { color: var(--purple); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__sep {
  width: 1px;
  height: 22px;
  background: var(--line-2);
  margin: 0 14px 0 10px;
  flex-shrink: 0;
}

.nav__tel {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: #4F4F4E;
  padding: 9px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color .15s;
}
.nav__tel:hover { color: var(--purple); }

.nav__cta {
  background: var(--purple);
  color: var(--on-dark);
  padding: 11px 20px;
  margin-left: 10px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(118, 47, 163, .22);
  transition: background-color .15s, box-shadow .15s, transform .15s;
}
.nav__cta:hover {
  background: var(--purple-dark);
  color: var(--on-dark);
  box-shadow: 0 6px 18px rgba(118, 47, 163, .3);
  transform: translateY(-1px);
}

/* Hamburger — only rendered/active below the desktop breakpoint. */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1.5px solid var(--outline);
  border-radius: 9px;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after  { position: absolute; top: 6px; }

.nav-toggle[aria-expanded='true'] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   The design referenced hero-bg.png (a white→purple wash with a fine
   blueprint grid). Rebuilt here in CSS: same gradient ramp and 48px grid
   sampled from the original, but resolution-independent and ~0 bytes.
   To go back to a bitmap, set --hero-image below to url('...').
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(84vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(96px, 12vw, 180px) var(--gutter) clamp(30px, 3vw, 44px);
  border-bottom: 1px solid var(--line-2);
  background-color: #FCFAFD;
  background-image:
    url('hero-bg.svg'),
    repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,.5) 0 1px, transparent 1px 48px),
    linear-gradient(100deg,
      #FEFEFE 0%,  #FDFDFE 14%, #F8F4F9 28%, #EFE8F2 38%,
      #E3D3EB 50%, #D4C1E2 58%, #C7ABD8 67%, #B994D0 75%,
      #B189CB 85%, #BF9FD5 100%);
  background-repeat: no-repeat, repeat, repeat, no-repeat;
  background-position: right -60px center, 0 0, 0 0, 0 0;
  background-size: auto 116%, auto, auto, cover;
}

/* Legibility scrim over the text column, as in the source design. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(96deg,
    rgba(254,254,254,.90) 0%,
    rgba(254,254,254,.62) 34%,
    rgba(254,254,254,.10) 62%,
    rgba(254,254,254,0)  100%);
}

.hero__inner { position: relative; z-index: 1; }

.hero__cols {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(28px, 4vw, 64px);
}
.hero__main { flex: 1 1 min(100%, 360px); min-width: 0; }
.hero__aside { flex: 0 1 262px; min-width: 0; }

.hero__eyebrow { margin-bottom: 22px; }

.hero h1 {
  font-size: clamp(38px, 4.8vw, 58px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.04em;
  margin: 0 0 22px;
  text-wrap: balance;
}

.hero__lede {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 520px;
  text-wrap: pretty;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.stat {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: rgba(254, 254, 254, .82);
  border: 1px solid #E4DBEA;
  border-radius: 100px;
  padding: 8px 16px;
}
.stat b {
  font-family: var(--display);
  font-size: 15px;
  color: var(--purple);
}
.stat span { font-size: 13.5px; color: var(--muted); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

/* Rating badges — one per review platform, styled identically so neither
   looks more "official" than the other. */
.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
/* The <li> is the flex item, not the badge — size that, or the badges get
   squeezed to half the gutter width on small screens. */
.proof > li { display: flex; flex: 0 1 auto; min-width: 0; }
.proof > li > .proof-badge { flex: 1 1 auto; }

.proof-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(254, 254, 254, .92);
  border: 1px solid #E4DBEA;
  border-radius: 12px;
  padding: 10px 16px 10px 12px;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
a.proof-badge:hover {
  color: var(--ink);
  border-color: var(--purple);
  box-shadow: 0 4px 14px rgba(118, 47, 163, .1);
}

.proof-badge__mark {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid #E1D8E8;
  background: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: var(--purple);
}
.proof-badge__mark svg { display: block; }

.proof-badge__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.proof-badge__row { display: flex; align-items: center; gap: 7px; }
.proof-badge__score {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  color: var(--ink);
}
.proof-badge__stars { color: var(--star); font-size: 12px; letter-spacing: 1.5px; }
.proof-badge__meta { font-size: 12px; color: var(--muted-2); line-height: 1.3; }

/* Placeholder state — visibly provisional until real figures are added. */
.proof-badge--pending { border-style: dashed; }
.proof-badge--pending .proof-badge__score { color: var(--muted-2); }
/* Muted rather than washed out — still reads as "not yet live" but stays
   legible; the near-white grey this replaced sat at 1.67:1. */
.proof-badge--pending .proof-badge__stars { color: var(--muted-3); opacity: .75; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--body);
}
.trust li { display: flex; align-items: center; gap: 18px; }
.trust li:not(:last-child)::after { content: '\00B7'; color: #A99BB4; }

/* Hero contact card */
.hero__aside-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--body);
  margin-bottom: 6px;
}
.hero__aside h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -.03em;
  margin: 0 0 18px;
}

.contact-cards { display: flex; flex-direction: column; gap: 10px; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--ink);
  transition: border-color .15s;
}
.contact-card:hover { border-color: var(--purple); color: var(--ink); }

.contact-card__icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--purple-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
}
.contact-card__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: break-word;
}
.contact-card__label { font-size: 12.5px; color: var(--muted-3); font-weight: 600; }
.contact-card__value { font-size: 18px; font-weight: 700; }
.contact-card__value--sm { font-size: 14.5px; letter-spacing: -.01em; }

.hero__aside-note {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--body);
  margin: 12px 0 0;
}

/* --------------------------------------------------------------------------
   7. Sample work
   -------------------------------------------------------------------------- */
/* The card IS the mat. With the captions removed there is nothing left to wrap,
   so the border, radius and image surface live on a single element instead of
   a wrapper plus an inner media box.

   Square, not 4:3 — the real documents run 0.80 to 1.42 aspect ratio and three
   of the four are portrait, so a square mat shows them appreciably larger than
   a landscape one would, and keeps every card in the row the same height. */
.sample {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-tint);
  background-image:
    repeating-linear-gradient(90deg, rgba(118,47,163,.07) 0 1px, rgba(118,47,163,0) 1px 34px),
    repeating-linear-gradient(0deg,  rgba(118,47,163,.07) 0 1px, rgba(118,47,163,0) 1px 34px);
  /* It's a <button> so the thumbnails are keyboard-operable for free. */
  font: inherit;
  color: inherit;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  cursor: zoom-in;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.sample:hover {
  border-color: var(--purple);
  box-shadow: 0 10px 26px rgba(118, 47, 163, .14);
  transform: translateY(-2px);
}
.sample:hover img { transform: scale(1.02); }
.sample:hover .sample__zoom,
.sample:focus-visible .sample__zoom { opacity: 1; transform: none; }

/* Magnifier badge — a visible affordance that the card opens larger. */
.sample__zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(254, 254, 254, .94);
  border: 1px solid var(--line);
  color: var(--purple);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .16s, transform .16s;
}
.sample--dark .sample__zoom { background: rgba(44, 44, 43, .9); border-color: #6C6C6A; color: var(--purple-onDark); }
@media (hover: none) { .sample__zoom { opacity: 1; transform: none; } }
.sample--dark {
  background: var(--dark);
  background-image: none;
}
.sample--dark .sample__ph { color: var(--purple-onDark); }
.sample--dark .sample__ph b { color: var(--on-dark-muted); }

/* The placeholder sits UNDER the artwork rather than the image being hidden
   until JS reveals it. Gating `display` on a JS-added class meant the <img>
   had no layout box, which (a) can stop a loading="lazy" fetch from ever
   firing — no box, no intersection, no load event, so the class that would
   un-hide it never arrives — and (b) meant no sample image rendered at all
   with JS disabled. Now the image is visible by default and the placeholder
   is simply revealed if main.js removes a broken <img>. */
.sample__ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--plan-ink);
  text-align: center;
  line-height: 1.7;
}
.sample__ph b {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted-2);
}

/* CONTAIN, never cover. `cover` would crop the sheet to fill the square and
   take room names, dimensions and the north arrow off the edges — exactly the
   information these cards exist to show. */
.sample img {
  position: relative;   /* paints over the placeholder beneath it */
  z-index: 1;
  transition: transform .16s;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 3px;
  background: #FFF;
  box-shadow: 0 3px 14px rgba(44, 44, 43, .16);
}

/* Hide the placeholder whenever an <img> is present — no JavaScript required,
   so the images still render with scripting disabled. main.js removes a broken
   <img> instead of leaving a broken-image icon, which makes :has(img) stop
   matching and brings the placeholder back. `.has-image` is the fallback for
   browsers without :has(). */
.sample:has(img) .sample__ph,
.sample.has-image .sample__ph { display: none; }

/* With no image there is nothing to enlarge, so the card stops behaving
   like a button (main.js disables it). */
.sample:not(:has(img)) { cursor: default; }
.sample:not(:has(img)):hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}
.sample:not(:has(img)) .sample__zoom { display: none; }

/* --------------------------------------------------------------------------
   7b. Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  width: min(96vw, 1500px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(30, 26, 34, .86);
  backdrop-filter: blur(4px);
}

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  background: #FFF;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}
.lightbox__caption {
  margin: 0;
  max-width: 68ch;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(254, 254, 254, .88);
  text-wrap: pretty;
}

.lightbox__btn {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(254, 254, 254, .28);
  background: rgba(28, 24, 32, .72);
  color: #FEFEFE;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.lightbox__btn:hover { background: var(--purple); border-color: var(--purple); }
.lightbox__btn:focus-visible { outline: 3px solid #FEFEFE; outline-offset: 2px; }

.lightbox__close { top: -6px; right: -6px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: -8px; }
.lightbox__nav--next { right: -8px; }

@media (max-width: 720px) {
  .lightbox { width: 100vw; max-height: 100vh; }
  .lightbox__img { max-height: 72vh; }
  .lightbox__close { top: 6px; right: 10px; }
  .lightbox__nav { top: auto; bottom: 10px; transform: none; }
  .lightbox__nav--prev { left: 20px; }
  .lightbox__nav--next { right: 20px; }
  .lightbox__caption { padding: 0 16px 62px; }
}

/* --------------------------------------------------------------------------
   8. Assessor / verification panel
   -------------------------------------------------------------------------- */
.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  padding: clamp(28px, 3.4vw, 44px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  box-shadow: var(--shadow);
}

.panel__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.panel__icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--purple-wash);
  display: flex;
  align-items: center;
  justify-content: center;
}
.panel__head h2 {
  font-size: clamp(26px, 2.8vw, 32px);
  letter-spacing: -.03em;
  font-weight: 700;
  margin: 0;
}
.panel__lede {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 420px;
  text-wrap: pretty;
}

.spec { margin: 0; display: flex; flex-direction: column; }
.spec__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--line-3);
}
.spec__row:last-child { border-bottom: 1px solid var(--line-3); }
.spec__key {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-3);
}
.spec__val { font-size: 16.5px; font-weight: 700; color: var(--ink); margin: 0; }
.spec__val--mono {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--purple);
}

/* --------------------------------------------------------------------------
   9. Pricing
   -------------------------------------------------------------------------- */
.plans { align-items: stretch; }

.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
}
.plan--featured { border: 2px solid var(--purple); }

.plan__flag {
  position: absolute;
  top: -12px; left: 32px;
  background: var(--purple);
  color: var(--on-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 6px;
}
.plan h3 {
  font-size: 20px;
  letter-spacing: -.025em;
  font-weight: 700;
  margin: 0 0 6px;
}
.plan__for { font-size: 14.5px; color: var(--muted-2); margin: 0 0 24px; }
.plan__price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 42px;
  letter-spacing: -.04em;
  color: var(--ink);
  margin-bottom: 24px;
}
.plan--featured .plan__price { color: var(--purple); }
.plan__price small {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted-2);
  letter-spacing: 0;
}

.ticks {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 15.5px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.ticks li { display: flex; gap: 11px; }
.ticks li::before { content: '\2713'; color: var(--purple); flex-shrink: 0; }

.plan .btn { margin-top: auto; }

.note {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  border: 1px solid var(--line-3);
  background: var(--bg-tint-2);
  border-radius: 14px;
  padding: 22px 26px;
}
.note p { font-size: 16px; color: var(--muted); margin: 0; max-width: 720px; text-wrap: pretty; }
.note strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   10. Audience cards
   -------------------------------------------------------------------------- */
.who {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.who__n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--counter);
  margin-bottom: 18px;
}
.who h3 {
  font-size: 21px;
  letter-spacing: -.025em;
  font-weight: 700;
  margin: 0 0 12px;
}
.who p { font-size: 16px; color: var(--muted); margin: 0 0 20px; }
.who__tag { margin-top: auto; font-size: 14.5px; color: var(--muted-2); font-weight: 600; }

/* --------------------------------------------------------------------------
   11. Services (dark)
   -------------------------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(28px, 3vw, 48px);
}
.service { border-top: 2px solid #6C6C6A; padding-top: 28px; }
.service--lead { border-top-color: var(--purple); }
.service h3 {
  font-size: 26px;
  letter-spacing: -.03em;
  font-weight: 700;
  margin: 0 0 14px;
}
.service p { font-size: 17px; color: var(--on-dark-body); margin: 0 0 26px; text-wrap: pretty; }

.arrows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.arrows li { display: flex; gap: 12px; }
.arrows li::before { content: '\2192'; color: var(--purple-onDark); flex-shrink: 0; }

.service__price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: var(--on-dark);
}

/* --------------------------------------------------------------------------
   12. Process
   -------------------------------------------------------------------------- */
.steps { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: clamp(24px, 3vw, 44px); }

.step__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.step__n {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--purple);
  color: var(--on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
}
.step__rule { flex: 1; height: 1px; background: var(--line-3); }
.step h3 { font-size: 21px; letter-spacing: -.025em; font-weight: 700; margin: 0 0 10px; }
.step p { font-size: 16.5px; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   13. Reviews
   -------------------------------------------------------------------------- */
.reviews__head {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}

.score {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  width: fit-content;
}
.score__badge {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid #E1D8E8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: var(--purple);
}
.score__row { display: flex; align-items: center; gap: 10px; }
.score__n {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
  line-height: 1;
}
.score__stars { color: var(--star); font-size: 16px; letter-spacing: 2px; }
.score__meta { font-size: 13.5px; color: var(--muted-2); margin-top: 5px; }

/* --- Horizontally scrollable review rail ------------------------------- */
/* The track scrolls internally, but with 15 cards its overflowing content was
   still widening the document (3800px of horizontal page scroll). Clip it at
   the rail. `clip` rather than `hidden` so this does not become a nested
   scroll container; `hidden` is the fallback for older browsers. */
.reviews__rail {
  position: relative;
  overflow-x: hidden;
  overflow-x: clip;
}

.reviews__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  padding: 2px 2px 20px;
  scrollbar-width: thin;
  scrollbar-color: #CFC3D8 transparent;
}
.reviews__track::-webkit-scrollbar { height: 8px; }
.reviews__track::-webkit-scrollbar-track { background: transparent; }
.reviews__track::-webkit-scrollbar-thumb { background: #CFC3D8; border-radius: 100px; }

.review {
  flex: 0 0 min(348px, 84vw);
  scroll-snap-align: start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  margin: 0;
}
.review__stars { color: var(--star); font-size: 13px; letter-spacing: 2px; margin: 0 0 14px; }
.review blockquote {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
  /* Several reviewers used line breaks; preserve their formatting without
     letting long lines wrap oddly. */
  white-space: pre-line;
}
.review figcaption {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 11px;
}
.review__avatar {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--purple-wash);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
}
.review__who { display: flex; flex-direction: column; min-width: 0; }
.review__name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.review__when { font-size: 12.5px; color: var(--muted-3); }

.reviews__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.reviews__btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--outline);
  background: var(--bg);
  color: var(--body);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .15s, color .15s, opacity .15s;
}
.reviews__btn:hover:not([disabled]) { border-color: var(--purple); color: var(--purple); }
.reviews__btn[disabled] { opacity: .35; cursor: default; }
.reviews__hint { font-size: 13.5px; color: var(--muted-3); }

/* Shown until reviews are actually connected (see main.js + reviews.json). */
.reviews__empty {
  border: 1px dashed #D9CFE2;
  border-radius: var(--radius);
  background: var(--bg);
  padding: clamp(32px, 4vw, 48px);
  text-align: center;
}
.reviews__empty .eyebrow { color: var(--plan-ink); margin-bottom: 12px; }
.reviews__empty p { font-size: 17px; color: var(--muted); margin: 0 auto; max-width: 520px; text-wrap: pretty; }
.reviews__empty .btn { margin-top: 22px; }

/* --- What to have ready ------------------------------------------------ */
/* Six items, so the column count is pinned rather than left to auto-fit —
   otherwise wide screens give 5 across and leave a single orphan on row two.
   3×2 → 2×3 → 1×6. */
.ready-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 900px) { .ready-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ready-grid { grid-template-columns: minmax(0, 1fr); } }
.ready-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.ready-item__icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--purple-wash);
  color: var(--purple);
  display: grid;
  place-items: center;
}
.ready-item__icon svg { display: block; }
.ready-item h3 {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 4px;
}
.ready-item p { font-size: 14.5px; color: var(--muted-2); margin: 0; }

.ready-note {
  margin-top: 22px;
  font-size: 15.5px;
  color: var(--muted);
  background: var(--bg-tint-2);
  border: 1px solid var(--line-3);
  border-radius: 14px;
  padding: 18px 22px;
  text-wrap: pretty;
}
.ready-note strong { color: var(--ink); }

/* --- Agents & partners -------------------------------------------------- */
.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.partner-points {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.partner-point {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: rgba(254, 254, 254, .06);
  border: 1px solid rgba(254, 254, 254, .16);
  border-radius: 13px;
  padding: 17px 19px;
}
.partner-point__n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--purple-onDark);
  flex-shrink: 0;
  padding-top: 2px;
}
.partner-point b { display: block; font-size: 16px; color: var(--on-dark); margin-bottom: 3px; }
.partner-point span { font-size: 14.5px; color: var(--on-dark-body); }

/* --------------------------------------------------------------------------
   14. EPC basics
   -------------------------------------------------------------------------- */
.faq { display: flex; flex-direction: column; }
.faq__item { padding: 24px 0; border-top: 1px solid var(--line-4); }
.faq__item:last-child { border-bottom: 1px solid var(--line-4); }
.faq__item h3 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; }
.faq__item p { font-size: 16px; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   15. Quote form
   -------------------------------------------------------------------------- */
/* The quote row previously paired a short left column with a tall form, which
   left a large void underneath it. The aside now carries its own weight —
   contact details plus what happens next — and sticks alongside the form on
   desktop so the two columns stay optically balanced. */
.quote-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 3.5vw, 56px);
  align-items: start;
}

.quote-aside { position: sticky; top: calc(var(--header-h) + 28px); }
.quote-aside .lede { margin-bottom: 26px; max-width: 42ch; }

.quote-contact {
  display: grid;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px 20px;
  margin-bottom: 22px;
}
.quote-contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 18px;
  padding: 14px 0;
}
.quote-contact__row + .quote-contact__row { border-top: 1px solid var(--line-3); }
.quote-contact__k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-3);
  margin: 0;
}
.quote-contact__v { font-size: 16.5px; font-weight: 700; color: var(--ink); margin: 0; text-align: right; }
.quote-contact__v--plain { font-weight: 500; color: var(--body); }

.next-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.next-steps li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: 15.5px;
  color: var(--muted);
}
.next-steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--purple-wash);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12.5px;
  margin-top: 1px;
}
.next-steps b { color: var(--ink); font-weight: 700; }

.form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 3vw, 38px);
}

.form { display: flex; flex-direction: column; gap: 18px; }
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 13.5px; font-weight: 700; color: var(--body); }
.field > span .opt { font-weight: 500; color: var(--muted-3); }

.field input,
.field select,
.field textarea {
  border: 1.5px solid var(--field);
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 15.5px;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input::placeholder,
.field textarea::placeholder { color: #97919C; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(118, 47, 163, .15);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: none; }

/* Only flag invalid fields after a submit attempt, never while typing. */
.form.was-submitted .field input:invalid,
.form.was-submitted .field select:invalid,
.form.was-submitted .field textarea:invalid {
  border-color: #B3261E;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, .12);
}

/* Honeypot — hidden from people, visible to naive bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__submit { padding: 15px; font-size: 16.5px; }
.form__submit[disabled] { opacity: .6; cursor: progress; }

.form__small { font-size: 13px; color: var(--muted-3); margin: 0; text-align: center; }
.form__small a { color: var(--muted-3); text-decoration: underline; }
.form__small a:hover { color: var(--purple); }

.form__error {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: #B3261E;
  background: #FCEFEE;
  border: 1px solid #F3CFCC;
  border-radius: 9px;
  padding: 12px 14px;
}
.form__error[hidden] { display: none; }

.form-done {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 34px 0;
}
.form-done__tick {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #F2E8F8;
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
}
.form-done h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.form-done p { font-size: 16.5px; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--dark);
  color: var(--on-dark-body);
  padding: clamp(48px, 5vw, 72px) var(--gutter) 30px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--dark-2);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  color: var(--on-dark);
}
.footer__brand:hover { color: var(--on-dark); }
/* Light variant — the charcoal footer is #494948, the same colour as the
   monogram's grey, so the dark version would vanish into the background. */
.footer__brand img { height: 34px; width: auto; display: block; flex-shrink: 0; }
.footer__brand span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.03em;
}
.footer__blurb { font-size: 15px; color: var(--on-dark-muted); margin: 0; max-width: 270px; }

.footer h2 {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin: 0 0 14px;
}
.footer__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--on-dark-link);
}
.footer__list a { color: var(--on-dark-link); }
.footer__list a:hover { color: var(--on-dark); }
.footer__text { font-size: 15px; color: var(--on-dark-link); }

.footer__creds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--dark-2);
  list-style: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.footer__creds li { display: flex; align-items: center; gap: 20px; }
.footer__creds li:not(:last-child)::after { content: '\00B7'; color: #6C6C6A; }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 13.5px;
  color: var(--on-dark-muted);
}
.footer__base a { color: var(--on-dark-muted); text-decoration: underline; }
.footer__base a:hover { color: var(--on-dark); }

/* --------------------------------------------------------------------------
   17. Prose (privacy page)
   -------------------------------------------------------------------------- */
.prose { max-width: 720px; }
.prose h2 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin: 40px 0 12px;
}
.prose h2:first-of-type { margin-top: 32px; }
.prose p, .prose li { font-size: 17px; color: var(--muted); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose__updated {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-3);
}

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line-2);
    box-shadow: 0 18px 30px rgba(44, 44, 43, .07);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }

  .nav__sep { display: none; }

  .nav__link,
  .nav__tel {
    padding: 14px 2px;
    font-size: 16px;
    border-radius: 0;
    border-bottom: 1px solid var(--line-2);
  }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 16px; text-align: center; padding: 14px 20px; font-size: 16px; }
  .nav-toggle { display: flex; }
  .header__inner { position: relative; gap: 16px; }

  /* Sub-pages carry a single CTA instead of a menu, so they opt out of the
     drop-down panel entirely and stay inline in the bar at every width. */
  .nav--simple {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    margin-left: auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }
  .nav--simple .nav__cta { margin-top: 0; padding: 11px 18px; font-size: 14.5px; }
}

/* --- Tablet ------------------------------------------------------------- */
@media (max-width: 980px) {
  .quote-row { grid-template-columns: 1fr; gap: 32px; }
  .quote-aside { position: static; }
  .quote-aside .lede { max-width: none; }

  /* The 262px contact rail gets cramped long before the text column does. */
  .hero__aside { flex: 1 1 100%; }
  .hero__cols { align-items: flex-start; }
  .hero { min-height: 0; padding-top: clamp(64px, 9vw, 110px); }
  .hero__aside .contact-cards { flex-direction: row; flex-wrap: wrap; }
  .hero__aside .contact-card { flex: 1 1 260px; }

  .panel { gap: 28px; }
  .reviews__head { gap: 20px; }
}

/* --- Mobile ------------------------------------------------------------- */
@media (max-width: 720px) {
  :root { --gutter: 20px; }

  body { font-size: 16px; }

  .section { padding: clamp(48px, 11vw, 68px) var(--gutter); }
  .h2 { font-size: clamp(26px, 7.2vw, 32px); }
  .lede { font-size: 16.5px; }
  .section-head { margin-bottom: 30px; }

  /* The horizontal wash would leave stacked text sitting on deep purple, so
     the ramp turns vertical and the floor plan drops to a corner motif. */
  .hero {
    padding-top: 44px;
    padding-bottom: 40px;
    background-image:
      url('hero-bg.svg'),
      repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 1px, transparent 1px 40px),
      repeating-linear-gradient(0deg,  rgba(255,255,255,.5) 0 1px, transparent 1px 40px),
      linear-gradient(168deg, #FEFEFE 0%, #FBF8FC 38%, #EFE6F4 68%, #DFCCEC 100%);
    background-position: right -70px bottom -40px, 0 0, 0 0, 0 0;
    background-size: auto 46%, auto, auto, cover;
  }
  .hero::before {
    background: linear-gradient(180deg, rgba(254,254,254,.94) 0%, rgba(254,254,254,.62) 55%, rgba(254,254,254,.3) 100%);
  }
  .hero h1 { font-size: clamp(31px, 8.4vw, 40px); margin-bottom: 16px; }
  .hero__lede { font-size: 17px; margin-bottom: 22px; }
  .hero__eyebrow { margin-bottom: 16px; }

  .stats { gap: 8px; margin-bottom: 22px; }
  .stat { padding: 7px 13px; }
  .stat b { font-size: 14px; }
  .stat span { font-size: 12.5px; }

  .hero__actions { gap: 10px; margin-bottom: 20px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .btn--lg { padding: 15px 26px; font-size: 16px; }

  .proof { gap: 8px; margin-bottom: 22px; }
  .proof > li { flex: 1 1 100%; }

  .trust { font-size: 10.5px; gap: 6px 12px; }
  .trust li { gap: 12px; }

  .hero__aside .contact-card { flex: 1 1 100%; }

  .plan, .who, .form-card, .panel, .ready-item { padding: 22px; }
  .plan__flag { left: 22px; }
  .note { padding: 20px; }
  .note .link-arrow { font-size: 15.5px; }
  .split-head, .reviews__head { gap: 16px; }

  .spec__row { padding: 13px 0; }
  .spec__val { font-size: 15.5px; }

  .quote-contact { padding: 4px 16px; }
  .quote-contact__row { padding: 12px 0; }
  .quote-contact__v { font-size: 15.5px; text-align: left; }

  .form__row { grid-template-columns: 1fr; gap: 14px; }
  .form { gap: 14px; }

  .review { padding: 22px; }
  .reviews__track { gap: 14px; }

  .footer__cols { gap: 30px; }
  .footer__base { font-size: 12.5px; gap: 8px; }
}

@media (max-width: 420px) {
  .brand__name { font-size: 17px; }
  .plan__price { font-size: 34px; }
  .hero h1 { letter-spacing: -.03em; }
  .proof-badge__meta { font-size: 11.5px; }
}

/* --------------------------------------------------------------------------
   19. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .header, .nav-toggle, .hero__actions, .form-card, .skip { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .section, .hero { padding: 12pt 0; }
  .hero::before { display: none; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 9pt; word-break: break-all; }
}
