/*
  CertsDue marketing site: shared styles.
  Status colors mirror the product: green = current, amber = expiring soon, red = expired.
  The hanging-tag shape (status chips, logo, favicon) is the one recurring motif; keep everything else quiet.
*/

:root {
  color-scheme: light;

  --bg: #f3f5f1;
  --surface: #ffffff;
  --surface-2: #e8ede8;
  --ink: #13261c;
  --muted: #4e5f56;
  --line: #d5dcd6;
  --line-strong: #aebbb2;

  --green: #0b7a43;
  --green-ink: #0a5c33;
  --green-tint: #ddf2e5;
  --amber: #e8a317;
  --amber-ink: #7a4a00;
  --amber-tint: #fcebc4;
  --red: #c8291e;
  --red-ink: #9e1c12;
  --red-tint: #fbdad6;
  --on-green: #ffffff;

  --footer-bg: #13261c;
  --footer-ink: #dce6e0;
  --footer-muted: #a3b6ab;

  --shadow-window: 0 1px 0 rgba(19, 38, 28, 0.04), 0 28px 60px -28px rgba(19, 38, 28, 0.38);

  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gutter: 1rem;
}

@media (min-width: 40rem) {
  :root { --gutter: 2rem; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1712;
    --surface: #13211a;
    --surface-2: #1a2b22;
    --ink: #e4ece7;
    --muted: #9db0a5;
    --line: #26382e;
    --line-strong: #3d5547;

    --green: #45c487;
    --green-ink: #7fe0ae;
    --green-tint: #143826;
    --amber: #f2b33d;
    --amber-ink: #f5c25b;
    --amber-tint: #3a2a0c;
    --red: #ff6b5e;
    --red-ink: #ff8f84;
    --red-tint: #3f1714;
    --on-green: #062514;

    --footer-bg: #08100c;
    --footer-ink: #dce6e0;
    --footer-muted: #93a89c;

    --shadow-window: 0 28px 60px -28px rgba(0, 0, 0, 0.75);
    color-scheme: dark;
  }
}

/* Same dark values when a viewer explicitly picks dark. */
:root[data-theme="dark"] {
  --bg: #0d1712;
  --surface: #13211a;
  --surface-2: #1a2b22;
  --ink: #e4ece7;
  --muted: #9db0a5;
  --line: #26382e;
  --line-strong: #3d5547;

  --green: #45c487;
  --green-ink: #7fe0ae;
  --green-tint: #143826;
  --amber: #f2b33d;
  --amber-ink: #f5c25b;
  --amber-tint: #3a2a0c;
  --red: #ff6b5e;
  --red-ink: #ff8f84;
  --red-tint: #3f1714;
  --on-green: #062514;

  --footer-bg: #08100c;
  --footer-ink: #dce6e0;
  --footer-muted: #93a89c;

  --shadow-window: 0 28px 60px -28px rgba(0, 0, 0, 0.75);
  color-scheme: dark;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  text-wrap: balance;
}

p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }

a {
  color: var(--green-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 2.875rem;
  padding: 0.7em 1.25em;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font: 600 1.0625rem/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--green); color: var(--on-green); }
.btn-primary:hover { background: var(--green-ink); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-sm { min-height: 2.5rem; padding: 0.5em 0.9em; font-size: 0.9375rem; }

/* A plan button with no Stripe Payment Link yet (see config.js) */
.btn:disabled,
.btn[aria-disabled="true"] {
  background: var(--surface-2);
  color: var(--muted);
  border: 1.5px dashed var(--line-strong);
  cursor: not-allowed;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font: 700 1.5rem/1 var(--font-display);
  letter-spacing: 0.005em;
  text-decoration: none;
}
.brand svg { width: 1.75rem; height: 1.75rem; flex: none; }
.tag-body { fill: var(--green); }
.tag-mark { fill: none; stroke: var(--bg); }
.tag-hole { fill: var(--bg); }

.nav { display: none; }
.nav a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { color: var(--green-ink); text-decoration: underline; }

.header-cta .long { display: none; }

@media (min-width: 23.25rem) {
  .header-cta .long { display: inline; }
}
@media (min-width: 52rem) {
  .nav { display: flex; gap: 1.75rem; margin-left: auto; margin-right: 1rem; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head h2,
.h2 {
  font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem);
  letter-spacing: -0.005em;
}
.lede {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  max-width: 38rem;
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(2.25rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6rem); }
.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.75rem, 1.7rem + 4.6vw, 4.6rem);
  line-height: 0.97;
  letter-spacing: -0.012em;
  max-width: 13.5ch;
}
.hero-sub {
  margin-top: 1.25rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem);
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.5rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.hero-note svg { width: 1.15rem; height: 1.15rem; flex: none; margin-top: 0.15rem; }
.hero-note strong { color: var(--ink); font-weight: 600; }

@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
}

/* ---------- Product preview (hero roster, built in HTML/CSS) ---------- */

.preview { position: relative; }
.preview-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 1rem;
  padding: 0.45rem 0.8rem 0.4rem;
  border-radius: 7px 7px 0 0;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.1;
}
.preview-label::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--green);
}
.preview-window {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-window);
}
.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.preview-title { font: 700 1.25rem/1.1 var(--font-display); }
.preview-count { display: block; color: var(--muted); font-size: 0.8125rem; font-weight: 400; font-family: var(--font-body); }
.preview-export {
  flex: none;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 0.65rem 0.5rem 0.6rem 0.7rem;
  border-right: 1px solid var(--line);
  box-shadow: inset 0 3px 0 var(--stat-c, var(--line-strong));
}
.stat:last-child { border-right: 0; }
.stat-expired { --stat-c: var(--red); }
.stat-soon { --stat-c: var(--amber); }
.stat-current { --stat-c: var(--green); }
.stat-n {
  display: inline-grid;
  font: 700 1.5rem/1 var(--font-display);
  font-variant-numeric: tabular-nums;
}
.stat-l { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.75rem; line-height: 1.2; }

.roster {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.3;
}
.roster th {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-align: left;
}
.roster td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.roster tbody tr:last-child td { border-bottom: 0; }
.roster th:last-child,
.roster td:last-child { text-align: right; padding-left: 0.25rem; }
.roster th:nth-child(2),
.roster td:nth-child(2) { padding-inline: 0.25rem; }
.who { display: block; font-weight: 600; }
.what { display: block; color: var(--muted); font-size: 0.8125rem; }
.when {
  color: var(--muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.preview-foot {
  display: grid;
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.8125rem;
}
.preview-caption {
  margin-top: 0.75rem;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

@media (max-width: 26rem) {
  .roster .extra { display: none; }
}
@media (min-width: 30rem) {
  .preview-bar, .roster th, .roster td, .preview-foot { padding-inline: 1.125rem; }
  .roster th:nth-child(2), .roster td:nth-child(2) { padding-inline: 0.5rem; }
  .roster th:last-child, .roster td:last-child { padding-left: 0.5rem; }
}

/* Status chip: a hanging inspection tag with a punch hole. Text always states the status; color is never the only signal. */
.chip {
  --chip-bg: var(--green-tint);
  --chip-ink: var(--green-ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.3em 0.65em 0.3em 1.3em;
  background: var(--chip-bg);
  color: var(--chip-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  clip-path: polygon(0.62em 0, 100% 0, 100% 100%, 0.62em 100%, 0 50%);
}
.chip::before {
  content: "";
  position: absolute;
  left: 0.55em;
  top: 50%;
  width: 0.36em;
  height: 0.36em;
  margin-top: -0.18em;
  border-radius: 50%;
  background: var(--surface);
}
.chip-expired { --chip-bg: var(--red-tint); --chip-ink: var(--red-ink); }
.chip-soon { --chip-bg: var(--amber-tint); --chip-ink: var(--amber-ink); }

/* The one orchestrated moment: a renewed card arrives and its row turns from amber to green. */
.swap { display: inline-grid; }
.swap > * { grid-area: 1 / 1; }
.swap-end { justify-items: end; }
.swap .now { visibility: hidden; opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .swap .was { animation: swap-out 0.3s ease 2.4s forwards; }
  .swap .now { animation: swap-in 0.4s ease 2.6s forwards; }
  .renewing td { animation: row-flash 1.8s ease 2.4s; }
}
@keyframes swap-out { to { opacity: 0; visibility: hidden; } }
@keyframes swap-in {
  from { visibility: visible; opacity: 0; transform: translateY(3px); }
  to { visibility: visible; opacity: 1; transform: none; }
}
@keyframes row-flash {
  0%, 100% { background-color: transparent; }
  20%, 55% { background-color: color-mix(in srgb, var(--green-tint) 45%, var(--surface)); }
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  gap: 3rem;
  list-style: none;
}
.step {
  position: relative;
  padding-top: 2rem;
  border-top: 2px solid var(--line-strong);
}
.step-n {
  position: absolute;
  top: -1.2rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font: 700 1.3rem/1 var(--font-display);
}
.step h3 { font-size: 1.75rem; }
.step p { margin-top: 0.6rem; color: var(--muted); max-width: 30rem; }

.step-art {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.875rem;
  line-height: 1.35;
}
.art-file-name { display: flex; align-items: center; gap: 0.45rem; font-weight: 600; margin-bottom: 0.6rem; }
.art-file-name svg { width: 1rem; height: 1rem; color: var(--green); }
.art-rows { display: grid; gap: 0.35rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.art-rows span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art-rows .head { color: var(--ink); font-weight: 600; }

.art-card {
  position: relative;
  padding: 0.8rem 0.9rem;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
}
.art-card-lines { display: grid; gap: 0.35rem; margin-bottom: 0.65rem; }
.art-card-lines i { display: block; height: 0.45rem; border-radius: 3px; background: var(--surface-2); }
.art-card-lines i:nth-child(1) { width: 70%; background: var(--line-strong); }
.art-card-lines i:nth-child(2) { width: 50%; }
.art-card-lines i:nth-child(3) { width: 60%; }
.art-exp {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  border: 2px solid var(--green);
  border-radius: 4px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.art-read {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  color: var(--muted);
}
.art-read strong { color: var(--ink); }
.art-confirm {
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: var(--green);
  color: var(--on-green);
  font-weight: 600;
  white-space: nowrap;
}

.art-mail-meta { color: var(--muted); }
.art-mail-subject { margin-top: 0.2rem; font-weight: 600; }
.art-mail-list { display: grid; gap: 0.35rem; margin-top: 0.65rem; list-style: none; }
.art-mail-list li { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; }
.step-art .chip::before { background: var(--bg); }

@media (min-width: 56rem) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
}

/* ---------- Features ---------- */

.feature-grid { display: grid; gap: 2.5rem; }
.fgroup-title { font-size: 1.5rem; margin-bottom: 1.25rem; }
.flist { display: grid; gap: 0; list-style: none; }
.flist li { padding-block: 1.1rem; border-top: 1px solid var(--line); }
.flist li:last-child { border-bottom: 1px solid var(--line); }
.flist h4 {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}
.flist p { margin-top: 0.25rem; color: var(--muted); }

.fgroup-staff {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.fgroup-staff .intro { font-size: 1.1875rem; font-weight: 600; line-height: 1.35; }
.fgroup-staff .detail { margin-top: 1.25rem; color: var(--muted); }

.phone {
  width: min(100%, 15.5rem);
  margin: 1.5rem auto 0;
  padding: 0.6rem;
  border: 2px solid var(--ink);
  border-radius: 1.6rem;
  background: var(--ink);
}
.phone-screen {
  padding: 1.1rem 0.9rem 1rem;
  border-radius: 1.15rem;
  background: var(--bg);
  font-size: 0.875rem;
  line-height: 1.4;
}
.phone-brand { display: flex; align-items: center; gap: 0.35rem; font: 700 1rem/1 var(--font-display); }
.phone-brand svg { width: 1.05rem; height: 1.05rem; }
.phone-hi { margin-top: 1rem; font-weight: 600; font-size: 1rem; }
.phone-ask { margin-top: 0.3rem; color: var(--muted); }
.phone-btn {
  display: block;
  margin-top: 1rem;
  padding: 0.6rem;
  border-radius: 6px;
  background: var(--green);
  color: var(--on-green);
  font-weight: 600;
  text-align: center;
}
.phone-alt { margin-top: 0.5rem; color: var(--muted); font-size: 0.8125rem; text-align: center; }
.phone-note { margin-top: 0.9rem; padding-top: 0.75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; text-align: center; }

@media (min-width: 44rem) {
  .flist { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
  .flist li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
}
@media (min-width: 60rem) {
  .feature-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
}

/* ---------- Vertical pages: pain points and Credential list ---------- */

.pain-grid { display: grid; gap: 2.5rem; }
.pain-list { display: grid; gap: 0; margin-top: 1.75rem; list-style: none; }
.pain-list li {
  position: relative;
  padding: 1rem 0 1rem 2rem;
  border-top: 1px solid var(--line);
}
.pain-list li:last-child { border-bottom: 1px solid var(--line); }
.pain-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.45rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  background: var(--amber);
  transform: rotate(45deg);
}
.creds h3 { font-size: 1.5rem; }
.cred-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; list-style: none; }
.cred-tags .chip { font-size: 0.9375rem; white-space: normal; }
.cred-tags .chip::before { background: var(--bg); }
.creds .note { margin-top: 1.25rem; color: var(--muted); font-size: 0.9375rem; max-width: 36rem; }

@media (min-width: 56rem) {
  .pain-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
}

/* ---------- Pricing ---------- */

.offer-steps {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
  list-style: none;
  counter-reset: offer;
}
.offer-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.75rem;
  align-items: baseline;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--green);
  background: var(--bg);
  border-radius: 0 8px 8px 0;
}
.offer-steps .when-label { font: 700 1.125rem/1.2 var(--font-display); white-space: nowrap; }
.offer-steps .what-label { color: var(--muted); }

.plans { display: grid; gap: 1rem; }
.plan {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
}
.plan h3 { font-size: 1.875rem; }
.plan-size { margin-top: 0.15rem; color: var(--muted); }
.plan-price { margin-top: 1.25rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.15rem 0.5rem; }
.plan-amount {
  font: 700 2.75rem/1 var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.plan-per { color: var(--muted); font-size: 0.9375rem; }
.plan-save {
  margin-top: 0.5rem;
  color: var(--green-ink);
  font-size: 0.9375rem;
  font-weight: 600;
}
.plan-terms { display: grid; gap: 0.5rem; margin: 1.25rem 0 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.plan-terms div { display: flex; justify-content: space-between; gap: 1rem; }
.plan-terms dt { color: var(--muted); }
.plan-terms dd { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.plan-terms s { color: var(--muted); font-weight: 500; }
.plan-extra { margin-top: -0.75rem; margin-bottom: 1.25rem; color: var(--muted); font-size: 0.875rem; }
.plan .btn { margin-top: auto; width: 100%; }

.fine { margin-top: 1.5rem; color: var(--muted); font-size: 0.875rem; max-width: 46rem; }

@media (min-width: 40rem) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 52rem) {
  .offer-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offer-steps li { grid-template-columns: 1fr; }
}
@media (min-width: 68rem) {
  .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Guarantee ---------- */

.guarantee { padding-bottom: 0; }

.guarantee-box {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 2px solid var(--green);
  border-radius: 16px;
  background: var(--green-tint);
}
.guarantee-head { display: flex; gap: 1rem; align-items: center; }
.guarantee-head svg { width: 2.5rem; height: 2.5rem; flex: none; }
.guarantee-head .h2 { font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem); }
.guarantee-head .tag-mark { stroke: var(--green-tint); }
.guarantee-head .tag-hole { fill: var(--green-tint); }
.promises { display: grid; gap: 1.5rem; list-style: none; }
.promises h3 { font-size: 1.5rem; }
.promises p { margin-top: 0.4rem; }
.guarantee-box .more { font-weight: 600; }

@media (min-width: 52rem) {
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
}

/* ---------- FAQ ---------- */

.faq-grid { display: grid; gap: 2rem; }
.faq-aside p { margin-top: 0.9rem; color: var(--muted); }
.faq-list { border-bottom: 1px solid var(--line); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 0.9rem;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease;
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list summary:hover { color: var(--green-ink); }
.faq-answer { padding: 0 0 1.25rem; color: var(--muted); max-width: 40rem; }
.faq-answer p + p { margin-top: 0.75rem; }

@media (prefers-reduced-motion: reduce) {
  .faq-list summary::before, .faq-list summary::after { transition: none; }
}
@media (min-width: 60rem) {
  .faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4rem; }
  .faq-aside { position: sticky; top: 6rem; align-self: start; }
}

/* ---------- Closing call to action ---------- */

.closing { padding-block: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--line); }
.closing .wrap { display: grid; gap: 1.5rem; align-items: center; }
.closing p { color: var(--muted); margin-top: 0.6rem; max-width: 36rem; }

@media (min-width: 52rem) {
  .closing .wrap { grid-template-columns: 1fr auto; gap: 3rem; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 3rem 2rem;
  background: var(--footer-bg);
  color: var(--footer-ink);
  font-size: 0.9375rem;
}
.site-footer a { color: var(--footer-ink); }
.site-footer .brand { color: var(--footer-ink); }
.site-footer .tag-body { fill: #45c487; }
.site-footer .tag-mark { stroke: var(--footer-bg); }
.site-footer .tag-hole { fill: var(--footer-bg); }
.footer-grid { display: grid; gap: 2rem; }
.footer-about p { margin-top: 0.75rem; color: var(--footer-muted); max-width: 22rem; }
.footer-about .email { margin-top: 1rem; }
.footer-h { font: 600 0.9375rem/1.2 var(--font-body); color: var(--footer-muted); margin-bottom: 0.75rem; }
.footer-links { display: grid; gap: 0.5rem; list-style: none; }
.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(220, 230, 224, 0.18);
  color: var(--footer-muted);
}

@media (min-width: 44rem) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* ---------- Legal and utility pages ---------- */

.doc { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem); }
.doc .wrap { max-width: 44rem; }
.doc h1 { font-size: clamp(2.5rem, 1.8rem + 3vw, 3.5rem); }
.doc .updated { margin-top: 0.75rem; color: var(--muted); font-size: 0.9375rem; }
.doc .summary {
  margin-top: 2rem;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border-left: 3px solid var(--green);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
}
.doc .summary p { margin-top: 0; }
.doc h2 { margin-top: 2.5rem; font-size: 1.75rem; }
.doc h3 { margin-top: 1.5rem; font-family: var(--font-body); font-size: 1.125rem; font-weight: 600; }
.doc p, .doc ul { margin-top: 0.85rem; }
.doc ul { padding-left: 1.25rem; }
.doc li + li { margin-top: 0.4rem; }

.not-found { padding-block: clamp(4rem, 12vw, 8rem); }
.not-found .chip { font-size: 1rem; }
.not-found h1 { margin-top: 1.25rem; font-size: clamp(2.75rem, 2rem + 4vw, 4.5rem); max-width: 14ch; }
.not-found p { margin-top: 1rem; color: var(--muted); font-size: 1.125rem; max-width: 34rem; }
.not-found .hero-actions { margin-top: 2rem; }
