/* ==========================================================================
   digiwalrus.com — Walk-in tub buyer's guide
   Pure CSS, no frameworks. Fonts: Lexend (headings) + Figtree (body)
   ========================================================================== */

:root {
  /* Palette sampled from the digiwalrus logo: teal #42807B, rose #B5525A, cornflower #4483D4, ocean #277697 */
  --teal: #2f6f6a;        /* primary (logo teal, deepened for white labels) */
  --teal-700: #245a56;    /* primary hover */
  --teal-900: #173a38;    /* dark bands */
  --teal-50: #eef5f4;
  --teal-100: #d4e6e4;
  --rose: #b5525a;        /* logo dusty rose: accent fills & icons */
  --rose-700: #9a3e47;    /* rose for text & links */
  --rose-800: #7f323a;    /* link hover */
  --rose-50: #fbf1f2;
  --rose-100: #f1d9db;
  --blue: #277697;        /* logo ocean blue: secondary accent */
  --cornflower: #4483d4;  /* logo cornflower: focus ring */
  --blue-50: #edf4fb;
  --blue-100: #d5e5f4;
  --ink: #152a29;
  --body: #33413f;
  --muted: #56625f;
  --line: #dce6e4;
  --line-soft: #e9f0ee;
  --card: #f1f6f5;
  --card-2: #f8fbfa;
  --white: #ffffff;
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(21, 42, 41, .05);
  --shadow: 0 1px 2px rgba(21, 42, 41, .05), 0 10px 28px rgba(21, 42, 41, .07);
  --shadow-lg: 0 2px 4px rgba(21, 42, 41, .05), 0 22px 48px rgba(21, 42, 41, .10);
  --font-head: 'Lexend', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html, body { overflow-x: hidden; max-width: 100%; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--rose-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--rose-800); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--cornflower);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -0.015em;
  font-weight: 600;
}
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }

svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 800px; }
.container.narrow-wide { max-width: 920px; }

/* ---------- Top bar & header ---------- */
.top-bar {
  background: var(--teal-900);
  border-bottom: 1px solid var(--teal-900);
  color: #d9eae7;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  padding: 7px 0;
}

.site-header {
  position: static;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: inline-flex; align-items: center; }
.header-logo { height: 52px; width: auto; max-width: 220px; object-fit: contain; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 54px;
  padding: 14px 28px;
  border-radius: 12px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(47, 111, 106, .22);
}
.btn-primary:hover { background: var(--teal-700); color: var(--white); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(47, 111, 106, .28); }
.btn-sm { min-height: 46px; padding: 10px 20px; font-size: .98rem; }
.btn-lg { min-height: 60px; padding: 16px 36px; font-size: 1.15rem; }
.btn-outline {
  background: var(--white);
  color: var(--teal);
  border-color: var(--teal-100);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal-700); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 24px; }
.hero-copy { max-width: 900px; }
.hero h1 {
  font-size: clamp(2.05rem, 4.6vw, 3.45rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: .45em;
}
.hero-sub {
  font-size: clamp(1.12rem, 1.6vw, 1.3rem);
  color: var(--muted);
  max-width: 780px;
  line-height: 1.6;
  margin-bottom: 1.2em;
}
.hero-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: .98rem;
  color: var(--muted);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { color: var(--rose); width: 1.05em; height: 1.05em; }
.hero-meta time { font-weight: 600; color: var(--ink); margin-left: .25em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 40px; }
.hero-note { font-size: .92rem; color: var(--muted); }

.hero-media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1200 / 560;
  background: var(--teal-50);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.fact-strip {
  list-style: none;
  margin: -46px auto 0;
  padding: 18px;
  position: relative;
  z-index: 1;
  max-width: 1000px;
  width: calc(100% - 48px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.fact-strip li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  font-size: .92rem;
  line-height: 1.35;
  color: var(--muted);
}
.fact-strip li + li { border-left: 1px solid var(--line-soft); }
.fact-strip strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1rem; }
.fact-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue);
  flex-shrink: 0;
}
.fact-icon svg { width: 22px; height: 22px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--card-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 780px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin-bottom: 0; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }

.content-block h2 { margin-bottom: .5em; }
.lead { font-size: 1.25rem; line-height: 1.65; color: var(--ink); }

.pull-quote {
  margin: 36px 0 0;
  padding: 28px 32px;
  border-left: 5px solid var(--rose);
  background: var(--rose-50);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pull-quote p {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ---------- Feature bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.bento-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.bento-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.bento-card h3 { margin: 18px 0 .45em; }
.bento-card p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }
.bento-wide { grid-column: span 2; }
.bento-accent { background: var(--teal-50); border-color: var(--teal-100); }
.bento-accent h3 { font-size: 1.45rem; }
.bento-accent p { color: var(--body); font-size: 1.08rem; }
.bento-soft { background: var(--rose-50); border-color: var(--rose-100); }
.bento-soft p { color: var(--body); }
.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--white);
  color: var(--rose);
  border: 1px solid var(--line);
}
.icon-badge svg { width: 26px; height: 26px; }
.bento-accent .icon-badge { color: var(--teal); border-color: var(--teal-100); }

/* ---------- Zigzag ---------- */
.zig {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.zig:last-child { margin-bottom: 0; }
.zig-reverse .zig-media { order: 2; }
.zig-media { margin: 0; }
.zig-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.zig-media-light img { object-fit: contain; background: var(--white); padding: 12px; }
.zig-media figcaption, .types-media figcaption {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.4;
}
.zig-copy { padding: 12px 20px 12px 0; }
.zig-reverse .zig-copy { padding: 12px 0 12px 20px; }
.zig-copy h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); }
.zig-copy p { font-size: 1.06rem; }
.zig-copy p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--teal-50) 0%, var(--card-2) 55%, var(--rose-50) 100%);
  border: 1px solid var(--teal-100);
}
.cta-band h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: .35em; }
.cta-band p { margin: 0; color: var(--muted); max-width: 620px; }
.cta-band .btn { flex-shrink: 0; }

/* ---------- Types ---------- */
.types-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 32px;
  align-items: start;
}
.types-media {
  position: sticky;
  top: 24px;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}
.types-media img { width: 100%; border-radius: var(--radius-sm); }
.types-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.type-card {
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card-2);
}
.type-card h3 { font-size: 1.1rem; margin: 12px 0 .35em; }
.type-card p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--muted); }
.type-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--rose-50);
  color: var(--rose);
}
.type-icon svg { width: 22px; height: 22px; }

/* ---------- Match grid (informational tiles) ---------- */
.match-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.match-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.match-tile p { margin: 0; padding: 18px 22px 22px; font-size: 1.02rem; line-height: 1.6; }
.match-tile .match-need {
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 14px 22px;
  letter-spacing: -0.005em;
}

/* ---------- Cost factors ---------- */
.factor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.factor {
  padding: 24px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.factor h3 { font-size: 1.08rem; margin: 14px 0 .35em; }
.factor p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.factor-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue);
  flex-shrink: 0;
}
.factor-icon svg { width: 22px; height: 22px; }

.checklist-box {
  margin-top: 28px;
  padding: 30px 34px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
}
.checklist-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.checklist-head h3 { margin: 0; font-size: 1.3rem; }
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
}
.check-list li {
  position: relative;
  padding-left: 34px;
  font-size: 1.04rem;
  line-height: 1.55;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Installation timeline ---------- */
.timeline {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline li {
  counter-increment: step;
  position: relative;
  padding: 0 0 30px 78px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 2px solid var(--rose);
  color: var(--rose-700);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  z-index: 1;
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: var(--rose-100);
}
.timeline li:last-child::after { display: none; }
.timeline h3 { margin: 10px 0 .35em; font-size: 1.22rem; }
.timeline p { margin: 0; color: var(--body); }

/* ---------- Comparison table ---------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.compare th, .compare td { text-align: left; padding: 18px 22px; vertical-align: top; line-height: 1.5; }
.compare thead th {
  background: var(--card);
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  font-size: .95rem;
  border-bottom: 1px solid var(--line);
}
.compare tbody th { font-family: var(--font-head); font-weight: 600; color: var(--ink); width: 26%; }
.compare tbody tr + tr { border-top: 1px solid var(--line-soft); }
.compare tbody tr.is-featured { background: var(--teal-50); }
.compare tbody tr.is-featured th { color: var(--teal); }

/* ---------- Split (paying) ---------- */
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: start; }
.split-copy p { font-size: 1.08rem; }
.alert-box {
  background: var(--white);
  border: 1px solid var(--rose-100);
  border-top: 5px solid var(--rose);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.alert-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.alert-head svg { width: 26px; height: 26px; color: var(--rose); }
.alert-head h3 { margin: 0; font-size: 1.2rem; }
.alert-box ul { margin: 0 0 16px; padding-left: 1.2em; }
.alert-box li { margin-bottom: 8px; font-size: 1.02rem; line-height: 1.5; }
.alert-box li::marker { color: var(--rose); }
.alert-note {
  margin: 0;
  font-size: .95rem;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.steps li {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 46px;
  right: -14px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--rose-100);
  border-right: 2px solid var(--rose-100);
  transform: rotate(45deg);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rose);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 14px;
}
.steps h3 { font-size: 1.12rem; margin-bottom: .35em; }
.steps p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--muted); }
.steps-cta { text-align: center; margin-top: 36px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--rose-100); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 64px 20px 24px;
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--rose-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5525a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--body); }

/* ---------- Bottom CTA ---------- */
.cta-section { padding: 88px 0; }
.cta-box {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 48px 44px;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--teal-50) 0%, var(--white) 70%);
  border: 1px solid var(--teal-100);
  box-shadow: var(--shadow);
}
.cta-box h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); max-width: 700px; margin-left: auto; margin-right: auto; }
.cta-box > p { color: var(--muted); font-size: 1.15rem; max-width: 620px; margin: 0 auto 28px; }
.cta-legal {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.cta-legal p { font-size: .9rem; line-height: 1.6; color: var(--muted); margin-bottom: .9em; }
.cta-legal p.cta-small { font-size: .8rem; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
  font-size: .95rem;
  color: var(--muted);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { display: inline-flex; }
.footer-logo { height: 50px; width: auto; max-width: 210px; object-fit: contain; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--rose-700); text-decoration: underline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
}
.footer-identity p { margin: 0 0 4px; line-height: 1.55; }
.footer-identity a { color: var(--muted); }
.footer-copy { margin: 0; }

/* ==========================================================================
   Subpages
   ========================================================================== */
.page-hero {
  background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 48px;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -0.02em; margin-bottom: .35em; }
.page-hero p { margin: 0; color: var(--muted); font-size: 1.15rem; max-width: 680px; }

.page-body { padding: 56px 0 80px; }
.page-grid { display: grid; grid-template-columns: 270px 1fr; gap: 48px; align-items: start; }
.aside-sticky { display: grid; gap: 16px; }
.side-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.side-card-accent { background: var(--blue-50); border-color: var(--blue-100); }
.side-title {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  margin: 0 0 10px;
}
.page-nav { display: grid; gap: 2px; }
.page-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--body);
  text-decoration: none;
  font-size: 1rem;
}
.page-nav a:hover { background: var(--card); color: var(--ink); }
.page-nav a.is-current { background: var(--rose-50); color: var(--rose-700); font-weight: 600; }
.aside-line { margin: 0 0 6px; font-size: .98rem; word-break: break-word; }
.aside-line:last-child { margin-bottom: 0; }
.aside-line a { color: var(--blue); font-weight: 600; text-decoration: none; }
.aside-line a:hover { text-decoration: underline; }

.prose { max-width: 760px; min-width: 0; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); margin: 1.6em 0 .5em; }
.prose h2:first-child, .prose .updated + h2, .prose .updated + p { margin-top: 0; }
.prose ul { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--rose); }
.updated {
  display: inline-block;
  font-size: .9rem;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 24px;
}
.prose-numbered { counter-reset: q; }
.prose-numbered h2 { counter-increment: q; display: flex; gap: 14px; align-items: baseline; }
.prose-numbered h2::before {
  content: counter(q, decimal-leading-zero);
  font-size: .8em;
  color: var(--rose);
  font-weight: 700;
  min-width: 2ch;
}

.reach-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 0 1.4em; }
.reach-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-2);
  font-size: 1rem;
  line-height: 1.5;
  min-width: 0;
}
.reach-item svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue);
}
.reach-item div { min-width: 0; word-break: break-word; }
.reach-item strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink); }

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  margin-bottom: 1.4em;
}
.contact-form label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: 1rem; }
.contact-form input, .contact-form textarea {
  width: 100%;
  font: inherit;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card-2);
  transition: border-color .2s ease, background-color .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); background: var(--white); outline: none; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .btn { justify-self: start; }
.form-note { margin: 0; font-size: .92rem; color: var(--muted); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .factor-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(2)::after { display: none; }
  .types-layout { grid-template-columns: 1fr; }
  .types-media { max-width: 560px; position: static; }
  .match-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 860px) {
  .fact-strip { grid-template-columns: repeat(2, 1fr); margin-top: -32px; }
  .fact-strip li + li { border-left: 0; }
  .zig, .zig-reverse { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
  .zig-reverse .zig-media { order: 0; }
  .zig-copy, .zig-reverse .zig-copy { padding: 4px 6px 8px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 30px 28px; }
  .page-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-aside { order: 2; }
  .check-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .container { padding: 0 18px; }
  .header-inner { min-height: 68px; }
  .header-logo { height: 44px; max-width: min(150px, 46vw); }
  .footer-logo { height: 44px; max-width: min(160px, 60vw); }
  .btn-sm { padding: 10px 16px; font-size: .92rem; min-height: 44px; }
  .hero { padding: 36px 0 12px; }
  .hero-actions .btn { width: 100%; }
  .hero-media { aspect-ratio: 4 / 3; border-radius: var(--radius); }
  .fact-strip { width: calc(100% - 24px); margin-top: -24px; padding: 10px; gap: 4px; }
  .fact-strip li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 8px; font-size: .86rem; }
  .fact-icon { width: 38px; height: 38px; }
  .section { padding: 60px 0; }
  .section-tight { padding: 44px 0; }
  .section-head { margin-bottom: 28px; }
  .pull-quote { padding: 22px 22px; }
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .bento-wide { grid-column: auto; }
  .bento-card { padding: 22px; }
  .types-grid { grid-template-columns: 1fr; }
  .match-grid { grid-template-columns: 1fr; }
  .factor-grid { grid-template-columns: 1fr; }
  .factor { display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; }
  .factor .factor-icon { grid-row: span 2; }
  .factor h3 { margin: 2px 0 .3em; }
  .checklist-box { padding: 24px 20px; }
  .timeline li { padding-left: 66px; }
  .timeline li::before { width: 46px; height: 46px; font-size: 1.05rem; }
  .timeline li::after { left: 22px; top: 46px; }
  .timeline h3 { margin-top: 8px; font-size: 1.12rem; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .cta-band .btn { width: 100%; }
  .table-wrap { border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tbody tr {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--white);
  }
  .compare tbody tr + tr { border-top: 1px solid var(--line); }
  .compare tbody th { width: 100%; padding: 14px 18px; background: var(--card); }
  .compare tbody tr.is-featured th { background: var(--teal-100); }
  .compare td { padding: 10px 18px 4px; }
  .compare td:last-child { padding-bottom: 16px; }
  .compare td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 2px;
  }
  .faq summary { padding: 18px 58px 18px 18px; font-size: 1.04rem; }
  .faq summary::after { right: 16px; }
  .faq details p { padding: 0 18px 20px; }
  .cta-section { padding: 56px 0; }
  .cta-box { padding: 36px 20px 28px; border-radius: var(--radius-lg); }
  .cta-box .btn { width: 100%; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 10px 18px; }
  .page-hero { padding: 40px 0 34px; }
  .page-body { padding: 40px 0 60px; }
  .reach-list { grid-template-columns: 1fr; }
  .contact-form { padding: 20px; }
  .contact-form .btn { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Compact icon cards on small screens */
@media (max-width: 640px) {
  .bento-card, .type-card { display: grid; grid-template-columns: 48px 1fr; gap: 0 16px; align-items: start; }
  .bento-card .icon-badge, .type-card .type-icon { grid-row: span 2; }
  .bento-card h3, .type-card h3 { margin: 2px 0 .3em; }
  .icon-badge { width: 48px; height: 48px; }
  .type-icon { width: 44px; height: 44px; }
  .bento-accent h3 { font-size: 1.25rem; }
  .type-card { padding: 18px; }
  .match-grid { gap: 12px; }
  .match-tile .match-need { padding: 12px 18px; }
  .match-tile p { padding: 14px 18px 18px; }
}
