/* ==========================================================================
   White Shore Wipes — design system stylesheet
   --------------------------------------------------------------------------
   Self-contained: no CDN, no web fonts, no external requests.
   Every value comes from a token below. No rule is declared twice.
   Palette source: white shore logo.svg (#102744 navy + #c8a34d gold).
   Contrast ratios in the comments were measured, not estimated.
   ========================================================================== */

/* ---------- 1. tokens ---------- */
:root {
  /* colour — surface */
  --white:      #ffffff;
  --cream-soft: #faf8f2;   /* page background          */
  --cream:      #f8f5ee;   /* tinted fills, media beds */
  --cream-deep: #f2ecdf;   /* gradient end             */

  /* colour — brand */
  --navy:       #06213F;   /* logo navy · 16.19:1 on white */
  --navy-hover: #1c406d;
  --navy-deep:  #04101c;   /* darker than --navy so the two still separate */

  /* colour — accent. --gold is DECORATION ONLY (2.19:1 on cream). */
  --gold:        #c8a34d;
  --gold-bright: #dfc273;  /* 8.67:1 on navy-deep      */
  --gold-deep:   #8a6516;  /* 4.88:1 on cream — only gold safe for small text */
  --gold-mid:    #d8b666;

  /* colour — text & lines */
  --ink:      #142033;     /* 15.02:1 on cream         */
  --muted:    #5f6b78;     /*  5.00:1 on cream         */
  --line:     #d9e0e4;
  --line-warm:#e3dbc9;

  /* colour — on dark */
  --on-dark:      #f8f5ee;
  --on-dark-soft: #cdc6b6; /* 11.15:1 on navy-deep     */
  --on-dark-body: #e6dfd2; /* 11.36:1                  */

  /* colour — state */
  --ok:      #2f5d3a;
  --ok-bg:   #dfeadf;
  --error:   #8a2b2b;
  --error-bg:#f7e8e6;

  /* type — 8 steps + 3 fluid sizes */
  --text-2xs:  11px;
  --text-xs:   12px;
  --text-sm:   13px;
  --text-md:   14px;
  --text-base: 16px;
  --text-lg:   18px;
  --text-xl:   20px;
  --text-2xl:  23px;
  --text-3xl:  clamp(26px, 3.4vw, 36px);   /* section title  */
  --text-4xl:  clamp(34px, 5vw, 58px);     /* hero h1        */
  --text-page: clamp(30px, 4vw, 44px);     /* product/legal h1 */
  --text-hero-sub: clamp(17px, 2vw, 21px);
  --text-stat: clamp(30px, 2.6vw, 38px);

  /* space — 4px base */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  32px;
  --space-8:  40px;
  --space-9:  48px;
  --space-10: 64px;
  --space-11: 96px;

  /* radius */
  --radius-xs:   4px;
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   22px;
  --radius-pill: 999px;

  /* elevation */
  --shadow-sm: 0 1px 2px rgba(16, 39, 68, .05);
  --shadow-md: 0 1px 2px rgba(16, 39, 68, .05), 0 8px 24px -12px rgba(16, 39, 68, .12);
  --shadow-lg: 0 18px 36px -14px rgba(6, 17, 31, .22);
  --shadow-modal: 0 30px 70px -20px rgba(0, 0, 0, .45);

  --max: 1180px;
}

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

/* Author display rules would otherwise beat the UA [hidden] rule. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;          /* clears the sticky header */
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream-soft);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--navy);
}
/* Serif display face on headings, echoing the print catalogue. System fonts only. */
h1, h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  letter-spacing: -.02em;
}

/* Navy ring for WCAG 2.4.11 (13.82:1); gold halo is decorative only. */
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
  box-shadow: 0 0 0 5px rgba(200, 163, 77, .45);
}
.section--dark :focus-visible,
.hero :focus-visible {
  outline-color: var(--gold-bright);
  box-shadow: 0 0 0 5px rgba(200, 163, 77, .30);
}

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

/* ---------- 3. layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--space-5); }
@media (min-width: 900px) { .container { padding: 0 var(--space-7); } }

.section { padding: var(--space-10) 0; }
@media (min-width: 900px) { .section { padding: var(--space-11) 0; } }

.section--white { background: var(--white); }
.section--tint  { background: var(--cream-soft); }
.section--dark  { background: var(--navy-deep); color: var(--on-dark); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--on-dark); }

/* ---------- 4. typography primitives ---------- */
.eyebrow {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: var(--space-2);
}
.section--dark .eyebrow { color: var(--gold-bright); }

.lead { color: var(--muted); max-width: 62ch; margin-top: var(--space-4); }
.lead--lg { font-size: var(--text-lg); }
.lead--center { margin-left: auto; margin-right: auto; }
.section--dark .lead { color: var(--on-dark-soft); }

/* heading levels — one rule each, used by the templates instead of inline styles */
.section-title { font-size: var(--text-3xl); font-weight: 900; }
.block-title   { font-size: var(--text-3xl); font-weight: 900; }
.page-title    { font-size: var(--text-page); font-weight: 900; }
.page-title--legal { font-size: clamp(28px, 3.6vw, 38px); }
.block-subtitle    { font-size: var(--text-lg); font-weight: 800; }
.block-subtitle--sm { font-size: var(--text-lg); font-weight: 800; margin-bottom: var(--space-3); }
.note { font-size: var(--text-md); color: var(--muted); }
.small { font-size: var(--text-sm); color: var(--muted); }
.center { text-align: center; }

.section-intro { max-width: 720px; margin: 0 auto; text-align: center; }

.rule { border: 0; border-top: 1px solid var(--line); margin: var(--space-5) 0; }

/* ---------- 5. header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: var(--space-5);
}
.brand { display: flex; align-items: center; gap: var(--space-3); color: var(--navy); }
.brand:hover { text-decoration: none; }
/* Vector mark: two stroked paths + a gold dot, drawn with currentColor so it
   follows the surrounding text colour (navy on light, cream on dark). */
.brand__mark {
  width: 44px; height: 44px; flex: 0 0 44px;
  display: block;
  color: var(--navy);
}
.brand__name { font-size: var(--text-lg); font-weight: 900; letter-spacing: -.02em; display: block; }
.brand__tag {
  font-size: var(--text-2xs); letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 700;
}

.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: var(--space-6); }
  .nav a { font-size: var(--text-md); font-weight: 700; color: var(--navy); }
  .nav a[aria-current="page"] { color: var(--gold-deep); }
}
/* Two classes deep so it beats the later .btn { display: inline-flex }. */
.header .header__cta { display: none; }
@media (min-width: 1024px) { .header .header__cta { display: inline-flex; } }

.nav-toggle {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--navy); cursor: pointer;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.mobile-nav {
  display: none; border-top: 1px solid var(--line); background: var(--white);
  padding: var(--space-4) var(--space-5) var(--space-6);
}
.mobile-nav[open] { display: block; }
.mobile-nav a {
  display: flex; align-items: center; min-height: 44px;
  font-weight: 700; color: var(--navy);
}
.mobile-nav .btn { width: 100%; margin-top: var(--space-2); }

/* ---------- 6. buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font-size: var(--text-base); font-weight: 800; cursor: pointer; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-hover); }
.btn--accent { background: var(--gold); color: var(--navy); }   /* 6.31:1 */
.btn--accent:hover { background: var(--gold-bright); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--outline { border-color: var(--line); background: var(--white); color: var(--navy); }
.btn--outline:hover { border-color: var(--gold); background: var(--cream); }

/* Compact variant still clears the 44px touch target. */
.btn--sm {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  min-width: 44px; min-height: 44px;
}
table .btn--sm { display: inline-flex; align-items: center; justify-content: center; }

/* ---------- 7. hero ---------- */
.hero { position: relative; background: var(--navy-deep); color: var(--on-dark); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(
    95deg,
    rgba(6, 17, 31, .96) 0%,
    rgba(16, 39, 68, .90) 52%,
    rgba(6, 17, 31, .50) 100%
  );
}
.hero__inner {
  position: relative; z-index: 1;
  padding: var(--space-10) 0; max-width: 760px;
}
@media (min-width: 900px) { .hero__inner { padding: var(--space-11) 0; } }
.hero h1 {
  color: var(--on-dark);
  font-size: var(--text-4xl);
  font-weight: 900;
  letter-spacing: -.03em;
}
.hero h1 em { font-style: normal; color: var(--gold); }   /* 6.31:1 on navy-deep */
.hero__sub {
  margin-top: var(--space-4);
  font-size: var(--text-hero-sub);
  font-weight: 600;
  color: #f1d78f;
}
.hero__body {
  margin-top: var(--space-5);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--on-dark-body);
  max-width: 60ch;
}
.hero__actions, .actions {
  margin-top: var(--space-7);
  display: flex; flex-wrap: wrap; gap: var(--space-4);
}
.actions { margin-top: var(--space-7); }

.hero__badges {
  margin-top: var(--space-8);
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  max-width: 640px;
}
@media (min-width: 720px) { .hero__badges { grid-template-columns: repeat(4, 1fr); } }
.hero__badge {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs); font-weight: 700; color: var(--white);
}
.hero__badge svg { flex: 0 0 16px; color: var(--gold-bright); }

/* ---------- 8. trust bar ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); padding: var(--space-6) 0; }
.trust__label {
  text-align: center;
  font-size: var(--text-2xs); font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);                 /* was #93a09a: 2.71:1, below AA */
  margin-bottom: var(--space-4);
}
.trust__list {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-4) var(--space-8);
}
.trust__item {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 700; color: var(--ink);
}
.trust__item svg { color: var(--gold-deep); flex: 0 0 16px; }

/* ---------- 9. metric cards ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin-top: var(--space-8); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(5, 1fr); gap: var(--space-3); } }
/* Below 360px a 2-up grid leaves ~92px of text width, which the figure outgrows. */
@media (max-width: 359px) { .stats { grid-template-columns: 1fr; } }

.stat {
  display: flex; flex-direction: column;
  min-height: 168px;
  padding: var(--space-4) var(--space-4) var(--space-4);
  position: relative; overflow: hidden;
  border: 1px solid var(--line-warm);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--white) 0%, var(--cream-soft) 62%, var(--cream-deep) 100%);
  box-shadow:
    inset 0 1px 0 var(--white),
    inset 0 -1px 0 rgba(16, 39, 68, .06),
    0 1px 2px rgba(16, 39, 68, .04),
    0 10px 20px -16px rgba(6, 17, 31, .35);
}
/* hairline accent across the top edge */
.stat::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-mid) 55%, rgba(200, 163, 77, .12) 100%);
}
.stat__num {
  font-size: var(--text-stat);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -.035em;
  line-height: .95;
  font-variant-numeric: tabular-nums;
}
/* At 900–1019px a card is ~158px wide; "10,000+" at 30px measured 130px of
   text against 122px of inner width, so it clipped. */
@media (min-width: 900px) and (max-width: 1019px) { .stat__num { font-size: var(--text-2xl); } }
.stat__unit {
  margin-top: var(--space-1);
  font-size: var(--text-2xs); font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.stat__label {
  display: block;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(16, 39, 68, .14);
  font-size: var(--text-sm); font-weight: 800; color: var(--ink);
}
.stat__note {
  margin-top: auto;                        /* shared baseline across cards */
  padding-top: var(--space-2);
  font-size: var(--text-xs);
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- 10. grids ---------- */
.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
/* Wide two-column split used by content blocks. */
.grid--split { gap: var(--space-9); }
.grid--split-center { gap: var(--space-9); align-items: center; }
.grid--split-start  { gap: var(--space-9); align-items: start; }

/* ---------- 11. cards ---------- */
.card {
  display: flex; flex-direction: column;
  height: 100%;
  justify-content: space-between;   /* footers share one baseline regardless of copy length */
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200, 163, 77, .45);
}
.card__media { position: relative; aspect-ratio: 3 / 2; background: var(--cream); flex: 0 0 auto; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--space-6) var(--space-6) 0; flex: 1 1 auto; }
.card__body--flush { padding-bottom: var(--space-6); }
.card__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.card__title { font-size: var(--text-xl); font-weight: 900; }
.card__text { margin-top: var(--space-3); font-size: var(--text-md); color: var(--muted); }
.card__foot { padding: var(--space-6); flex: 0 0 auto; margin-top: auto; }

.tag {
  font-size: var(--text-2xs); font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--cream);
  border-radius: var(--radius-xs);
  padding: var(--space-1) var(--space-2);
}

/* ---------- 12. feature list ---------- */
.feature { display: flex; gap: var(--space-4); }
.feature__icon {
  flex: 0 0 44px; width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--cream); color: var(--gold-deep);
  display: grid; place-items: center;
}
.feature__icon--stacked { margin-bottom: var(--space-4); }
.feature h3 { font-size: var(--text-lg); font-weight: 800; }
.feature p { margin-top: var(--space-2); font-size: var(--text-md); color: var(--muted); }

/* ---------- 13. spec panel ---------- */
.panel {
  position: relative;
  padding: var(--space-6);
  border: 1px solid var(--line-warm);
  border-radius: var(--radius-md);
  background-color: #fbf8f0;
  background-image:
    repeating-linear-gradient(0deg, rgba(16, 39, 68, .05) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(16, 39, 68, .05) 0 1px, transparent 1px 24px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .9),
    0 1px 2px rgba(16, 39, 68, .05),
    0 18px 34px -24px rgba(6, 17, 31, .45);
}
.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;                       /* pill drops below the title on narrow screens */
  gap: var(--space-3);
  margin: 0 0 var(--space-5);
  padding: 0 0 var(--space-3);
  border-bottom: 1px solid rgba(16, 39, 68, .18);
}
.panel__head h3 { font-size: var(--text-lg); font-weight: 800; flex: 1 1 auto; min-width: 9ch; }

.pill {
  font-size: var(--text-2xs); font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-3);
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .18);
}

.spec {
  position: relative;
  padding: var(--space-4);
  border: 1px solid #e0d9c8;
  border-left: 3px solid var(--gold);     /* decorative rule */
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .92);
  box-shadow: inset 0 1px 0 var(--white);
}
.spec + .spec { margin-top: var(--space-3); }
.spec dt {
  font-size: var(--text-2xs); font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}
.spec dd {
  margin: var(--space-2) 0 0;
  font-size: var(--text-base); font-weight: 800; color: var(--navy);
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.spec p { margin-top: var(--space-1); font-size: var(--text-sm); color: var(--muted); }

/* ---------- 14. table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}
table { width: 100%; border-collapse: collapse; min-width: 640px; }
thead th {
  background: var(--navy); color: var(--white); text-align: left;
  font-size: var(--text-xs); font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase;
  padding: var(--space-4) var(--space-5);
}
tbody td {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid #f0ece2;
  font-size: var(--text-md);
  vertical-align: top;
}
tbody tr:hover { background: var(--cream-soft); }
td.is-strong { font-weight: 800; color: var(--navy); white-space: nowrap; }
td.is-muted { color: var(--muted); }
td.cell--end { text-align: right; }

/* ---------- 15. gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure {
  margin: 0; overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--cream);
  border: 1px solid rgba(16, 39, 68, .08);
}
/* 16/10 keeps more of the wide facility shots than 4/3, which crops tops and floors. */
.gallery img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* 16. cases — removed 2026-11-04. The client-brand showcase was taken down
   because publishing other companies' packaging needed permission we don't have. */

/* certificate pills — on the dark quality section */
.certs {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding: 0;
  list-style: none;
  max-width: 900px;
}
@media (min-width: 480px) { .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 720px) { .certs { display: flex; flex-wrap: wrap; gap: var(--space-3); } }
.certs__item {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgba(200, 163, 77, .30);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .05);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--on-dark);
}
.certs__item svg { color: var(--gold-bright); flex: 0 0 15px; }
.certs__item span { min-width: 0; white-space: nowrap; }

/* ---------- 16b. the shift band ---------- */
.shift { max-width: 780px; }
.shift__claim {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--navy);
}
.shift__claim strong { color: var(--gold-deep); }
.shift__body { margin-top: var(--space-3); font-size: var(--text-lg); color: var(--muted); max-width: 58ch; }
.shift .btn { margin-top: var(--space-5); }

/* ---------- 16c. faq ---------- */
.faq { margin-top: var(--space-8); max-width: 820px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  cursor: pointer;
  padding: var(--space-5) 0;
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--gold-deep);
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item summary:hover { color: var(--gold-deep); }
.faq__item p {
  padding: 0 var(--space-7) var(--space-5) 0;
  font-size: var(--text-md);
  color: var(--muted);
  line-height: 1.65;
}

/* ---------- 17. steps ---------- */
.steps { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  padding: var(--space-6);
  border: 1px solid rgba(200, 163, 77, .22);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .04);
}
.step__num {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gold); color: var(--navy);
  font-size: var(--text-sm); font-weight: 900;
  margin-bottom: var(--space-4);
}
.step h3 { font-size: var(--text-base); font-weight: 800; }
.step p { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--on-dark-soft); }

/* ---------- 18. cta band ---------- */
.cta-band { text-align: center; background: var(--navy-deep); color: var(--on-dark); }
.cta-band h2 { font-size: var(--text-3xl); font-weight: 900; color: var(--on-dark); }
.cta-band .lead { margin: var(--space-4) auto 0; }
.cta-band__actions {
  margin-top: var(--space-7);
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center;
}

/* ---------- 19. product page ---------- */
.product-hero { background: var(--white); padding: var(--space-9) 0 var(--space-10); border-bottom: 1px solid var(--line); }
.product-hero__grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) { .product-hero__grid { grid-template-columns: 1.05fr .95fr; gap: var(--space-10); } }
.product-hero img { width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }

.crumbs { font-size: var(--text-xs); color: var(--muted); margin-bottom: var(--space-4); }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 var(--space-2); }

.kp { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.kp li { display: flex; gap: var(--space-3); font-size: var(--text-md); }
.kp__n {
  flex: 0 0 26px; width: 26px; height: 26px;
  border-radius: var(--radius-pill);
  background: var(--navy); color: var(--white);
  display: grid; place-items: center;
  font-size: var(--text-xs); font-weight: 900;
}
.kp strong { display: block; color: var(--navy); font-size: var(--text-md); }
.kp span { color: var(--muted); }

.dl { display: grid; gap: var(--space-3); }
@media (min-width: 720px) { .dl { grid-template-columns: repeat(2, 1fr); } }
.dl > div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-4); background: var(--white); }
.dl dt { font-size: var(--text-2xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.dl dd { margin: var(--space-1) 0 0; font-size: var(--text-md); font-weight: 600; color: var(--ink); }

/* ---------- 20. prose (legal) ---------- */
.prose { max-width: 76ch; }
.prose h2 { font-size: var(--text-2xl); font-weight: 900; color: var(--navy); margin: var(--space-8) 0 var(--space-3); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--text-lg); font-weight: 800; color: var(--navy); margin: var(--space-6) 0 var(--space-2); }
.prose p, .prose li { font-size: var(--text-base); color: var(--ink); margin-bottom: var(--space-3); }
.prose ul { list-style: disc; padding-left: var(--space-6); }
.prose ul li { margin-bottom: var(--space-2); }
.prose table { min-width: 0; }
.prose .notice {
  border-left: 4px solid var(--gold);
  background: var(--cream);
  padding: var(--space-4) var(--space-5);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--text-md);
  margin: var(--space-5) 0;
}

/* ---------- 21. footer ---------- */
.footer { background: var(--cream-soft); border-top: 1px solid var(--line); padding: var(--space-10) 0 var(--space-7); }
/* 1.1 / .7 / 1.65: the contact column carries two desks, the products column is a
   short list. The old 2fr 1fr 1fr starved contact and left the brand column empty. */
.footer__grid { display: grid; gap: var(--space-7); }
@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: 1.1fr .7fr 1.65fr;
    gap: var(--space-8);
    align-items: start;          /* no stretched empty column */
  }
}
.footer .brand { margin-bottom: var(--space-4); }
.footer__about { max-width: 42ch; }
.footer__badge { margin-top: var(--space-4); }
.footer__badge-inline { margin-top: var(--space-4); }

/* MERA credit sits under the brand, keeps the partnership visible without
   competing with the White Shore mark for the primary slot. */
.footer__credit {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.6;
}
.footer__mera {
  display: block;
  height: 22px;               /* 520×140 source, keeps its ratio */
  width: auto;
  margin: var(--space-2) 0;
}

/* two desks side by side when there is room, stacked on narrow screens */
.footer__desks { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .footer__desks { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
.footer__desk strong {
  display: block;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: var(--space-2);
}
.footer__desk p { font-size: var(--text-sm); color: var(--muted); line-height: 1.55; }
.footer__desk a { font-size: var(--text-sm); color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.footer__hours {
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  color: var(--muted);
}
.footer__cta { margin-top: var(--space-4); }

.footer h3 {
  font-size: var(--text-xs); font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: var(--space-4);
}
.footer p, .footer li { font-size: var(--text-md); color: var(--muted); }
.footer li + li { margin-top: var(--space-2); }
.footer__links { margin-top: var(--space-4); }
.footer__bottom {
  margin-top: var(--space-9);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--text-xs); color: var(--muted);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-4); }
/* .footer li + li adds a stacked-list margin; these sit side by side, so reset it. */
.footer__legal li + li { margin-top: 0; }
.footer__legal a { font-size: var(--text-xs); color: var(--muted); }
.footer__legal a:hover { color: var(--navy); }
.footer__operated { margin-top: var(--space-3); font-size: var(--text-xs); color: var(--muted); }
.badge-inline {
  display: inline-block;
  font-size: var(--text-2xs); font-weight: 800;
  color: var(--gold-deep);
  background: var(--cream);
  border-radius: var(--radius-xs);
  padding: var(--space-1) var(--space-2);
}

/* ---------- 22. modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  padding: var(--space-5);
  background: rgba(6, 17, 31, .76);
}
.modal[open] { display: flex; }
.modal__box {
  width: 100%; max-width: 560px; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-modal);
}
@media (min-width: 640px) { .modal__box { padding: var(--space-7); } }

.modal__head {
  flex: 0 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--space-4);
}
.modal__head h2 { font-size: var(--text-2xl); font-weight: 900; }
.modal__sub {
  font-size: var(--text-2xs); font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-deep);
}
.modal__close {
  flex: 0 0 44px; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--muted);
  cursor: pointer; display: grid; place-items: center;
}
.modal__close:hover { color: var(--navy); background: var(--cream); }

/* Fields scroll on their own; the CTA stays pinned so it is never below the fold. */
.form {
  flex: 1 1 auto; min-height: 0;
  margin-top: var(--space-6);
  display: flex; flex-direction: column;
}
.form__fields {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  display: grid; gap: var(--space-4);
  padding-right: var(--space-1);       /* room for the scrollbar */
}
.form__actions {
  flex: 0 0 auto;
  display: grid; gap: var(--space-3);
  padding-top: var(--space-4);
  margin-top: var(--space-2);
  border-top: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 -10px 14px -10px rgba(16, 39, 68, .18);   /* hints content continues above */
}
.form label {
  display: block;
  font-size: var(--text-xs); font-weight: 800; color: var(--navy);
  margin-bottom: var(--space-1);
}
.form input, .form select, .form textarea {
  width: 100%;
  padding: var(--space-3);
  font: inherit; font-size: var(--text-md);
  border: 1px solid #cdd6df; border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(200, 163, 77, .28);
}
.form__row { display: grid; gap: var(--space-4); }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__note { font-size: var(--text-xs); color: var(--muted); }
.form__note a { text-decoration: underline; }
.form__status {
  font-size: var(--text-sm); font-weight: 700;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  display: none;
}
.form__status[data-state="error"]   { display: block; background: var(--error-bg); color: var(--error); }
/* the fallback offers a link, so it has to look like one */
.form__status a { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.form__status[data-state="success"] { display: block; background: var(--ok-bg); color: var(--ok); }

/* Visibility is controlled by the [hidden] attribute only — see section 2. */
.success {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  text-align: center;
  padding: var(--space-6) 0 var(--space-2);
}
.success__mark {
  width: 50px; height: 50px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--ok-bg); color: var(--ok);
  display: grid; place-items: center;
}
.success h3 { font-size: var(--text-xl); font-weight: 900; color: var(--navy); }
.success p { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--muted); }

/* ---------- 23. misc ---------- */
.qr { margin-top: var(--space-2); border-radius: var(--radius-sm); }

/* Honeypot: present in the DOM for bots, hidden from people and from AT. */
.hp { display: none !important; }

/* Plain link list used inside panels. */
.link-list { font-size: var(--text-md); }

/* utility spacing — only the steps the templates actually use */
.mt-0  { margin-top: 0; }
.mt-8  { margin-top: var(--space-2); }
.mt-12 { margin-top: var(--space-3); }
.mt-16 { margin-top: var(--space-4); }
.mt-24 { margin-top: var(--space-6); }
.mt-40 { margin-top: var(--space-8); }

/* ---------- 24. narrow-screen adjustments ---------- */
@media (max-width: 400px) {
  .brand__name { font-size: var(--text-md); }
  .brand__mark { width: 36px; height: 36px; flex-basis: 36px; }
  .header__inner { gap: var(--space-3); }
  .modal__box { padding: var(--space-5); }
}
