/* ==========================================================================
   Rainforest Mobility — design system
   Matched to the live rainforestmobility.com: Inter, Material green #4CAF50,
   gray-900 navy, white page with gray-50 alternating bands.

   The old "Cedar & Bone" variable names are kept as aliases below. Every rule
   in this file already reads through them, so remapping the values retheme's
   the whole stylesheet instead of rewriting six hundred lines — and a rule
   added later still lands in the right palette.
   ========================================================================== */

:root {
  /* The live palette */
  --green: #4CAF50;
  --green-dk: #16A34A;
  --green-dker: #15803D;
  --green-tint: rgba(76, 175, 80, .10);
  --navy: #111827;
  --navy-dk: #030712;
  --star: #FACC15;

  /* Aliases — old name on the left, live colour on the right */
  --evergreen: #111827;      /* dark surfaces & footer */
  --evergreen-dk: #030712;
  --tidewater: #16A34A;      /* accent text, links, icons */
  --clay: #4CAF50;           /* primary action */
  --clay-dk: #16A34A;
  --bone: #FFFFFF;           /* page */
  --bone-2: #F9FAFB;         /* alternating band */
  --card: #FFFFFF;
  --ink: #111827;
  --muted: #4B5563;
  --line: #E5E7EB;
  --ok: #15803D;
  --ok-bg: #F0FDF4;
  --no: #B91C1C;
  --no-bg: #FEF2F2;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* The live site sets everything in Inter. Pointing --serif at the same
     stack retires the display face without touching each rule that used it. */
  --serif: var(--sans);

  --wrap: 1280px;
  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --tap: 44px;
}

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

/* Author-level `display` on components (.btn, .nav, .callbar…) outranks the
   UA rule for [hidden], so state it here once rather than per component. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: #374151;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.025em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.25rem); }
p  { margin: 0 0 1.1em; }
a  { color: var(--tidewater); text-underline-offset: 3px; }
a:hover { color: var(--evergreen); }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 800px; margin: 0 auto; padding: 0 22px; }

.section { padding: 72px 0; }
.section--tight { padding: 52px 0; }
.section--bone2 { background: var(--bone-2); }
/* The live site's closing band is solid green, not dark green. */
.section--dark { background: var(--green); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.92); }
.section--dark .btn--onDark { color: var(--green-dker); }

.section--bone2 { background: var(--bone-2); }
.eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--tidewater);
  margin: 0 0 .7rem;
}
.section--dark .eyebrow { color: rgba(255,255,255,.85); }

.lede { font-size: 1.16rem; color: var(--muted); max-width: 64ch; }
.section--dark .lede { color: #CFDCD6; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--evergreen); color: #fff; padding: 14px 20px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--tap); padding: 12px 24px;
  font-family: var(--sans); font-size: .97rem; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--r-sm);
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dk); color: #fff; }
.btn--green { background: var(--evergreen); color: #fff; }
.btn--green:hover { background: var(--evergreen-dk); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.btn--ghost:hover { background: var(--bone-2); color: var(--ink); }
.btn--onDark { background: #fff; color: var(--ink); }
.btn--onDark:hover { background: #F3F4F6; color: var(--ink); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .95rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

.textlink { font-weight: 600; color: var(--tidewater); display: inline-flex; align-items: center; gap: .4em; min-height: 44px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  border-bottom: 1px solid var(--line);
}
.header-inner { position: relative; display: flex; align-items: center; gap: 14px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--evergreen); margin-right: auto; }
.brand svg { flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.18rem; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; display: block; }
/* The real logo from the live site, used in place of the lettering. */
.brand-logo { height: 42px; width: auto; display: block; }
.brand-sub { display: block; font-family: var(--sans); font-size: .64rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--tidewater); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px;
  font-size: .96rem; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: var(--r-sm);
}
.nav a:hover { background: var(--bone-2); color: var(--evergreen); }
.nav a[aria-current="page"] { color: var(--green-dk); font-weight: 700; }

/* The live site's phone number is a green button, not a plain link — it is
   the primary conversion on every page. */
.header-phone {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--green); color: #fff; font-weight: 600; font-size: .95rem;
  text-decoration: none; min-height: 42px; padding: 0 18px; margin-left: 6px;
  border-radius: var(--r-sm); white-space: nowrap;
  transition: background-color .18s ease;
}
.header-phone:hover { background: var(--green-dk); color: #fff; }

.nav-toggle {
  display: none; align-items: center; justify-content: center; gap: .5em;
  min-height: var(--tap); padding: 0 14px; border: 1px solid var(--line);
  background: var(--card); border-radius: var(--r-sm); cursor: pointer;
  color: var(--evergreen); font-family: var(--sans); font-weight: 600; font-size: .95rem;
}

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: -22px; right: -22px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--card); border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px; box-shadow: var(--shadow);
  }
  .nav[hidden] { display: none; }
  .nav a { min-height: 54px; padding: 0 12px; font-size: 1.05rem; border-bottom: 1px solid var(--bone-2); border-radius: 0; }
  .header-phone .phone-label { display: none; }
}

/* ---------- Hero ---------- */
/* Full-bleed photograph with a dark scrim, matching the live home page.
   The image is an <img> rather than a CSS background so it can be given
   fetchpriority and stays in the document for print and no-CSS fallbacks. */
.hero { position: relative; padding: 96px 0 88px; overflow: hidden; background: var(--navy); }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,12,10,.62) 0%, rgba(6,12,10,.5) 45%, rgba(6,12,10,.72) 100%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 900px; }
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero h1 span { color: #6EE07A; display: block; }

/* Sits between the headline and the supporting copy: bigger and lighter than
   the paragraph, so the service area reads as part of the headline block
   rather than as the first line of the pitch. */
.hero-sub {
  font-size: clamp(1.1rem, 2.4vw, 1.45rem); font-weight: 600;
  color: #fff; margin: 0 0 .7em;
}
.hero .lede { color: #E5E7EB; font-size: 1.1rem; margin-left: auto; margin-right: auto; max-width: 58ch; }
.hero .eyebrow { color: #9FE8AC; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

@media (max-width: 940px) {
  .hero { padding: 66px 0 60px; }
}
@media (max-width: 700px) {
  .hero { padding: 48px 0 44px; }
  .hero h1 { font-size: clamp(1.85rem, 7.6vw, 2.4rem); }
  .hero .lede { font-size: 1rem; }
  .section--tight { padding: 26px 0 40px; }
}

.trust-strip { gap: 7px; margin-top: 18px; }
  .hero .trust-strip { justify-content: center; }
.hero .trust-strip li { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: #fff; }
.hero .trust-strip svg { color: #6EE07A; }
.trust-strip li { padding: 7px 13px 7px 10px; font-size: .86rem; }
  .section--tight { padding: 26px 0 40px; }
}

.trust-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.trust-strip li {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px 9px 12px; font-size: .92rem; font-weight: 600; color: var(--evergreen);
  box-shadow: 0 1px 2px rgba(18,58,46,.05);
}
.trust-strip svg { flex: none; color: var(--ok); }

/* ---------- Fork cards ---------- */
.fork { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .fork { grid-template-columns: 1fr; } }

.fork-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 26px 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  border-top: 4px solid var(--green);
}
.fork-card--sell { border-top-color: var(--navy); }
.fork-card h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-bottom: .3em; }
.fork-card > p { color: var(--muted); }
.fork-card .btn { margin-top: 6px; }
.fork-card .textlink { margin-top: 10px; }
.fork-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-tint); color: var(--green-dker); margin-bottom: 16px;
}
.fork-card--sell .fork-icon { background: #F3F4F6; color: var(--navy); }
.fork-spacer { flex: 1; }

/* accepted / not accepted lists */
.tag-list { list-style: none; margin: 4px 0 14px; padding: 0; font-size: .95rem; }
.tag-list li { display: flex; gap: .6em; align-items: flex-start; padding: 4px 0; }
.tag-list svg { flex: none; margin-top: 4px; }
.tag-list--yes svg { color: var(--ok); }
.tag-list--no svg { color: var(--no); }
.list-head { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 4px; }
.list-head--yes { color: var(--ok); }
.list-head--no { color: var(--no); }

.gate { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0; }
@media (max-width: 780px) { .gate { grid-template-columns: 1fr; } }
.gate-panel { border-radius: var(--r); padding: 22px 24px; border: 2px solid; }
.gate-panel--yes { background: var(--ok-bg); border-color: #B7DCC6; }
.gate-panel--no { background: var(--no-bg); border-color: #F0BFB8; }
.gate-panel h2 { font-size: 1.35rem; margin-bottom: .35em; }
.gate-panel--yes h2 { color: #14512F; }
.gate-panel--no h2 { color: #7E1A11; }
.gate-panel .tag-list { margin-bottom: 0; }
.gate-panel strong { font-weight: 800; }

.policy-block {
  border-left: 5px solid var(--clay); background: var(--card);
  padding: 22px 26px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  box-shadow: var(--shadow); margin: 0 0 30px;
}
.policy-block p:last-child { margin-bottom: 0; }

/* ---------- Category tiles ---------- */
/* Category cards: a photograph with the label sitting on a dark scrim,
   matching the live site. The image is a real <img> rather than a CSS
   background so it can be lazy-loaded and carry its own dimensions, which
   keeps the grid from reflowing as the photos arrive. */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.tile {
  position: relative; display: block; overflow: hidden;
  min-height: 260px; border-radius: var(--r);
  background: var(--navy); color: #fff; text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: #fff; }

.tile-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.tile:hover .tile-img { transform: scale(1.04); }

/* Bottom-weighted so the label stays legible whatever the photograph does at
   the top of the frame. */
.tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,14,12,.12) 0%, rgba(8,14,12,.52) 46%, rgba(8,14,12,.90) 100%);
}

.tile-body {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  height: 100%; justify-content: flex-end; padding: 20px 22px 20px;
}
.tile-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; line-height: 1.2; color: #fff; }
.tile-note { font-size: .88rem; color: rgba(255,255,255,.86); }

.tile-cta {
  display: inline-flex; align-items: center; gap: .45em;
  margin-top: 10px; padding: 8px 15px; min-height: 36px;
  background: #fff; color: var(--green-dker);
  font-size: .85rem; font-weight: 700; border-radius: var(--r-sm);
  transition: background-color .18s ease, color .18s ease;
}
.tile:hover .tile-cta { background: var(--green); color: #fff; }

/* The "ask us" card carries no photograph, so it supplies its own surface. */
.tile--ask { background: var(--navy); }
.tile--ask::after { background: none; }
.tile--ask .tile-body { justify-content: flex-end; }
.tile--ask .tile-icon { color: #6EE07A; margin-bottom: auto; }
.tile--ask .tile-note { color: #9CA3AF; }

@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .tiles { grid-template-columns: 1fr; gap: 16px; } .tile { min-height: 210px; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 20px; } }
.steps li { position: relative; padding-left: 62px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--clay); color: #fff;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
}
.steps h3 { margin-bottom: .25em; }
.steps p { color: var(--muted); margin: 0; }
.section--dark .steps p { color: #CFDCD6; }

/* ---------- Splits / callouts ---------- */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.92fr); gap: 46px; align-items: start; }
@media (max-width: 940px) { .split { grid-template-columns: 1fr; gap: 30px; } }

.callout {
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--tidewater);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 20px 24px; margin: 0 0 22px;
}
.callout p:last-child { margin-bottom: 0; }
.callout--warn { border-left-color: var(--clay); background: #FDF3EE; }

.checklist { list-style: none; padding: 0; margin: 0 0 22px; }
.checklist li { display: flex; gap: .7em; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist svg { flex: none; margin-top: 5px; color: var(--tidewater); }

/* ---------- Cards / products ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
/* Square, fixed-height media well. `aspect-ratio` alone does not hold here:
   the image is a grid item with height:100%, so the auto-sized row collapses
   back to the photo's own ratio and cards end up three different heights.
   position:relative + an absolutely filled image pins it.
   `contain`, not `cover` — cropping the footrests off a wheelchair hides the
   thing the customer is trying to assess. */
.product-media {
  position: relative; aspect-ratio: 1 / 1;
  background: var(--bone-2); display: grid; place-items: center;
  color: var(--tidewater); overflow: hidden;
}
.product-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; padding: 14px;
}
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { font-size: 1.12rem; margin: 0; }
.product-cat { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tidewater); }
.product-specs { font-size: .92rem; color: var(--muted); margin: 0; }
.product-price { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.product-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.badge {
  /* align-self, because .product-body is a flex column and the default
     `stretch` turns this pill into a full-width bar. */
  display: inline-block; align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: #14512F;
}
.badge--out { background: var(--bone-2); color: var(--muted); }

.spec-table { width: 100%; border-collapse: collapse; margin: 0 0 22px; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .98rem; vertical-align: top; }
.spec-table th { width: 46%; font-weight: 700; color: var(--muted); font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; }

/* ---------- Shop search ---------- */
.searchbar { margin-bottom: 0; }
.searchbar-row { display: flex; gap: 10px; }
.searchbar-input { position: relative; flex: 1 1 auto; max-width: 560px; }
.searchbar-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
.searchbar input[type="search"] {
  padding-left: 46px; padding-right: 48px;
  min-height: 54px; font-size: 1.05rem;
  background: var(--card); border-color: var(--line);
  -webkit-appearance: none; appearance: none;
}
.searchbar input[type="search"]::-webkit-search-cancel-button { display: none; }
.searchbar input[type="search"]:focus { border-color: var(--tidewater); }
.searchbar-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; background: transparent; border-radius: 50%;
  color: var(--muted); cursor: pointer;
}
.searchbar-clear:hover { background: var(--bone-2); color: var(--ink); }

.result-count {
  margin: 0 0 20px; font-size: .95rem; font-weight: 600; color: var(--muted);
}
.result-count:empty { display: none; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.filter-pill {
  min-height: 44px; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--line); background: var(--card); color: var(--ink);
  font-family: var(--sans); font-size: .95rem; font-weight: 600;
}
.filter-pill:hover { border-color: var(--tidewater); }
.filter-pill[aria-pressed="true"] { background: var(--evergreen); border-color: var(--evergreen); color: #fff; }

/* ---------- Forms ---------- */
.form-shell { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 30px 30px 34px; }
@media (max-width: 640px) { .form-shell { padding: 22px 18px 26px; border-radius: var(--r-sm); } }

fieldset { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
legend { font-family: var(--serif); font-size: clamp(1.35rem,3vw,1.7rem); font-weight: 500; padding: 0; margin: 0 0 6px; line-height: 1.2; }
.field-help { font-size: .95rem; color: var(--muted); margin: 0 0 16px; }

.field { margin: 0 0 18px; }
.field > label, .field-label { display: block; font-weight: 600; font-size: .98rem; margin: 0 0 6px; }
.req { color: var(--no); font-weight: 700; }
.optional { font-weight: 400; color: var(--muted); font-size: .9rem; }

/* `input:not([type])` matters: an <input> with no type attribute defaults to
   text but matches none of the attribute selectors, so it would silently
   render unstyled at the browser default width. */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input:not([type]), select, textarea {
  width: 100%; min-height: var(--tap); padding: 12px 14px;
  font-family: var(--sans); font-size: 1.02rem; color: var(--ink);
  background: var(--bone); border: 2px solid var(--line); border-radius: var(--r-sm);
}
textarea { min-height: 118px; resize: vertical; line-height: 1.6; }
select {
  appearance: none; padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 20px center, right 14px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
input:focus, select:focus, textarea:focus { border-color: var(--tidewater); background: var(--card); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--no); background: var(--no-bg); }

.error-text { display: block; color: #7E1A11; font-size: .93rem; font-weight: 600; margin-top: 6px; }
.error-text:empty { display: none; }

.form-error-summary {
  background: var(--no-bg); border: 2px solid #F0BFB8; border-radius: var(--r-sm);
  padding: 14px 18px; margin: 0 0 20px; color: #7E1A11; font-weight: 600;
}
.form-error-summary:empty { display: none; }

.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(244px, 1fr)); gap: 10px; }
.option-grid--2 { grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }
.option {
  position: relative; display: flex; gap: .8em; align-items: flex-start;
  background: var(--bone); border: 2px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 16px; cursor: pointer; min-height: var(--tap);
  transition: border-color .16s ease, background-color .16s ease;
}
.option:hover { border-color: var(--tidewater); }
.option input { position: absolute; opacity: 0; width: 0; height: 0; }
.option-mark {
  flex: none; width: 22px; height: 22px; margin-top: 2px;
  border: 2px solid var(--muted); border-radius: 50%; background: var(--card);
  display: grid; place-items: center;
}
.option--check .option-mark { border-radius: 5px; }
.option-mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--clay); transform: scale(0); transition: transform .15s ease; }
.option--check .option-mark::after { border-radius: 2px; }
.option input:checked ~ .option-mark { border-color: var(--clay); }
.option input:checked ~ .option-mark::after { transform: scale(1); }
.option.is-checked { border-color: var(--clay); background: #FDF3EE; }
.option.is-checked .option-text { color: var(--evergreen); }
.option input:focus-visible ~ .option-mark { outline: 3px solid var(--clay); outline-offset: 3px; }
.option-text { font-weight: 600; line-height: 1.4; }
.option-note { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); margin-top: 3px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.stepper { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 26px; }
.stepper li {
  flex: 1 1 88px; font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); padding-top: 10px; border-top: 4px solid var(--line);
}
.stepper li[data-state="current"] { color: var(--clay-dk); border-top-color: var(--clay); }
.stepper li[data-state="done"] { color: var(--ok); border-top-color: var(--ok); }

.step-nav { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
@media (max-width: 540px) { .step-nav .btn { flex: 1 1 100%; } }

.step-panel[hidden] { display: none; }
.reassure { font-size: .95rem; color: var(--muted); margin: 12px 0 0; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.match-panel {
  border: 2px dashed var(--tidewater); background: #EDF4F2;
  border-radius: var(--r); padding: 22px 24px; margin: 0 0 26px;
}
.match-panel[hidden] { display: none; }
.match-panel h3 { margin-bottom: .2em; }
.match-panel .card-grid { grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 14px; margin-top: 16px; }
.match-empty { margin: 0; color: var(--muted); }
.attached-note {
  display: flex; gap: .6em; align-items: flex-start; background: var(--ok-bg);
  border: 1px solid #B7DCC6; border-radius: var(--r-sm); padding: 12px 16px; margin: 14px 0 0; font-size: .95rem;
}
.attached-note[hidden] { display: none; }
.attached-note button { background: none; border: 0; color: var(--no); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; padding: 0; }

.dropzone {
  border: 2px dashed var(--line); border-radius: var(--r-sm); background: var(--bone);
  padding: 24px; text-align: center;
}
.dropzone.is-over { border-color: var(--tidewater); background: #EDF4F2; }
.thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 0; list-style: none; padding: 0; }
.thumbs li { position: relative; width: 96px; }
.thumbs img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.thumb-remove {
  position: absolute; top: -9px; right: -9px; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--no); cursor: pointer;
  font-size: 17px; line-height: 1; display: grid; place-items: center;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #D1D5DB; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { font-family: var(--sans); font-size: .95rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: #fff; margin-bottom: .8em; }
.site-footer a { color: #D1D5DB; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { padding: 4px 0; }
.footer-list a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-brand p { color: #9CA3AF; font-size: .93rem; max-width: 36ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .87rem; color: #9CA3AF; }

/* Staff sign-in. Deliberately the quietest thing in the footer: customers have
   no use for it, so it should read as a utility link rather than compete with
   the policy links above it. Underlined only on hover/focus, and still fully
   keyboard reachable. */
.footer-admin { color: #9CA3AF; opacity: .65; text-decoration: none; }
.footer-admin:hover,
.footer-admin:focus-visible { opacity: 1; color: #fff; text-decoration: underline; }

/* ---------- Sticky mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 780px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: rgba(247,244,238,.97); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  }
  .callbar .btn { min-height: 50px; padding: 12px 12px; font-size: .97rem; }
  body { padding-bottom: 80px; }
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.small { font-size: .93rem; color: var(--muted); }

/* ---------- Program detail tiles ---------- */
.detail-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; margin: 30px 0 0;
}
@media (min-width: 780px) { .detail-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.detail {
  background: var(--card); border: 1px solid var(--line);
  border-top: 4px solid var(--tidewater); border-radius: var(--r-sm);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 3px;
}
.detail-label {
  font-size: .7rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--tidewater);
}
.detail-value { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.detail-note { font-size: .87rem; color: var(--muted); }

/* ---------- Prose lists (policy pages) ---------- */
.wrap-narrow main ul, main > .wrap-narrow ul:not([class]) { padding-left: 0; list-style: none; }
.wrap-narrow ul:not([class]) { margin: 0 0 1.3em; padding-left: 0; list-style: none; }
.wrap-narrow ul:not([class]) li {
  position: relative; padding: 5px 0 5px 26px;
}
.wrap-narrow ul:not([class]) li::before {
  content: ""; position: absolute; left: 4px; top: 15px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--clay);
}
.wrap-narrow h2 { margin-top: 1.6em; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; gap: 16px; } }
.quote {
  margin: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px 26px 22px;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.quote-mark { color: var(--star); opacity: 1; margin-bottom: 14px; flex: none; }
.quote blockquote { margin: 0 0 18px; font-size: 1.01rem; line-height: 1.7; color: var(--ink); }
.quote figcaption { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.quote-name { display: block; font-weight: 700; color: var(--ink); }
.quote-where { display: block; font-size: .9rem; color: var(--muted); }

.placeholder-note {
  background: #FFF8E6; border: 2px dashed #C79E33; border-radius: var(--r-sm);
  padding: 16px 20px; color: #5C4608; font-size: .95rem;
}
.placeholder-note strong { color: #453405; }
.placeholder-note p:last-child { margin-bottom: 0; }

/* Reveal animation is opt-IN: content is visible by default and only hides
   once JS has armed it and is guaranteed to be able to reveal it again.
   Without this, a JS error or a browser without IntersectionObserver would
   leave whole sections permanently invisible. */
.reveal.is-armed { opacity: 1; transform: none; }
.reveal.is-armed.is-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-armed { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Cart
   ========================================================================== */

.cart-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-left: 4px; border-radius: var(--r-sm);
  color: var(--ink); text-decoration: none;
}
.cart-link:hover { background: var(--bone-2); }
.cart-badge {
  position: absolute; top: 2px; right: 0;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--green); color: #fff;
  font-size: .68rem; font-weight: 700; line-height: 1;
  border-radius: 999px;
}

/* A card already in the basket says so rather than silently doing nothing. */
.btn.is-in-cart { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.is-in-cart:hover { background: #000; color: #fff; }

.cart-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 400px;
  gap: 34px; align-items: start; margin-top: 24px;
}

.cart-lines { list-style: none; margin: 0 0 18px; padding: 0; }
.cart-line {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-line:first-child { border-top: 1px solid var(--line); }

.cart-thumb {
  flex: 0 0 84px; width: 84px; height: 84px;
  display: grid; place-items: center; overflow: hidden;
  background: var(--bone-2); border-radius: var(--r-sm);
}
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-thumb-empty { width: 100%; height: 100%; background: var(--bone-2); }

.cart-line-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cart-line-name { font-weight: 600; color: var(--ink); text-decoration: none; }
.cart-line-name:hover { text-decoration: underline; }
.cart-line-price { font-weight: 700; font-size: 1.05rem; }

.cart-remove {
  flex: none; background: none; border: 0; padding: 8px;
  min-height: 44px; color: var(--muted); font: inherit; font-size: .88rem;
  text-decoration: underline; cursor: pointer;
}
.cart-remove:hover { color: var(--no); }

.cart-side {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px; box-shadow: var(--shadow);
  position: sticky; top: 92px;
}
.cart-side-h {
  font-size: 1.05rem; font-weight: 700; margin: 0 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.cart-side-h + .grid-2, .cart-side-h + .field { margin-top: 0; }
.cart-side .money + * { margin-top: 18px; }

.money { margin: 0 0 4px; }
.money-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 7px 0; font-size: .95rem;
}
.money-row dt { color: var(--muted); margin: 0; }
.money-row dd { margin: 0; font-weight: 600; text-align: right; }
.money-sub { display: block; font-size: .78rem; color: var(--faint, #6B7280); font-weight: 400; }
.delivery-note {
  margin: 8px 0 0; font-size: .8rem; line-height: 1.5;
  color: var(--faint, #6B7280);
}
.money-row--total {
  border-top: 1px solid var(--line); margin-top: 6px; padding-top: 13px;
  font-size: 1.2rem;
}
.money-row--total dt { color: var(--ink); font-weight: 700; }
.money-row--total dd { font-weight: 700; }
.muted { color: var(--muted); font-weight: 400; }

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; gap: 26px; }
  .cart-side { position: static; }
}
@media (max-width: 520px) {
  .cart-thumb { flex-basis: 64px; width: 64px; height: 64px; }
  .cart-side { padding: 18px; }
}

/* ---------- Header search ---------- */
.nav-search {
  position: relative; display: flex; align-items: center;
  margin-left: 4px;
}
.nav-search svg {
  position: absolute; left: 11px; color: var(--faint, #6B7280); pointer-events: none;
}
/* Overrides the global field rule, which is sized for form pages. */
.nav-search input[type="search"] {
  width: 190px; min-height: 40px; padding: 8px 12px 8px 34px;
  font-size: .9rem; border-width: 1px; background: var(--bone-2);
  border-radius: var(--r-sm); transition: width .18s ease, background-color .18s ease;
}
.nav-search input[type="search"]:focus {
  width: 240px; background: #fff; border-color: var(--green); outline: none;
}
.nav-search input[type="search"]::-webkit-search-cancel-button { display: none; }

@media (max-width: 1100px) {
  .nav-search input[type="search"] { width: 150px; }
  .nav-search input[type="search"]:focus { width: 180px; }
}

/* The search lives inside .nav, so below the nav breakpoint it collapses into
   the menu panel with the links instead of crowding the header bar. */
@media (max-width: 940px) {
  .nav-search { margin: 10px 12px 2px; }
  .nav-search input[type="search"],
  .nav-search input[type="search"]:focus { width: 100%; min-height: 48px; font-size: 1rem; }
}


/* ==========================================================================
   Generated pages: breadcrumbs, answer-first paragraphs, FAQ accordions,
   rate tables, article prose, guide cards. See build/build.mjs.
   ========================================================================== */
.crumbs { font-size: .9rem; color: var(--muted); margin: 0 0 18px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "\203A"; padding: 0 8px; color: #9CA3AF; }
.crumbs a { color: var(--tidewater); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

.answer { font-size: 1.12rem; line-height: 1.6; max-width: 70ch; }
.answer strong { color: var(--ink); }

.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.12rem; margin-top: 1.4em; }
.prose p, .prose li { line-height: 1.65; }
.prose ul:not([class]) { padding-left: 1.2em; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: .96rem; }
.prose th, .prose td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; }
.byline { margin: -6px 0 22px; }

.checklist--plain li { display: flex; gap: .7em; }
.checklist--plain li::before { content: "\2713"; color: var(--ok); font-weight: 700; flex: none; }

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 40px 16px 0; position: relative; min-height: var(--tap); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; line-height: 1; color: var(--tidewater); font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary h3 { display: inline; font-size: 1.08rem; margin: 0; letter-spacing: 0; }
.faq-body { padding: 0 0 18px; color: var(--muted); max-width: 70ch; }
.faq-body p { margin: 0 0 12px; line-height: 1.6; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body a { color: var(--tidewater); }

.table-wrap { overflow-x: auto; margin: 18px 0; -webkit-overflow-scrolling: touch; }
.rate-table { width: 100%; border-collapse: collapse; font-size: .96rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.rate-table caption { text-align: left; font-weight: 600; padding: 12px 14px; color: var(--ink); caption-side: top; }
.rate-table th, .rate-table td { padding: 10px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.rate-table thead th { background: var(--bone-2); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.rate-table tbody th { font-weight: 500; }
.rate-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.rate-table--grid th, .rate-table--grid td { padding: 9px 10px; }
.rate-table thead a { color: inherit; text-decoration: none; }
.rate-table thead a:hover { text-decoration: underline; }

.toc { margin: 8px 0 26px; }
.toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; color: var(--ink); text-decoration: none; background: var(--card); }
.toc a:hover { border-color: var(--tidewater); color: var(--tidewater); }

.cat-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-link { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.cat-link:hover { border-color: var(--tidewater); color: var(--tidewater); }

.product-figure { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.product-figure img { display: block; width: 100%; height: auto; }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 28px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.guide-eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tidewater); font-weight: 700; }
.guide-title { font-weight: 700; font-size: 1.12rem; line-height: 1.3; color: var(--ink); }
.guide-desc { color: var(--muted); font-size: .95rem; line-height: 1.5; }

.sources { font-size: .92rem; color: var(--muted); padding-left: 1.2em; }
.sources li { margin-bottom: 6px; }

.footer-grid--5 { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
@media (max-width: 900px) { .footer-grid--5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid--5 { grid-template-columns: 1fr; } }
