/* ==========================================================================
   BinderRenew design system
   Agency dependable: slate blue, file folder kraft, a steady green.
   Motifs: tabbed folders, ruled ledger lines, rails that fill left to right.
   ========================================================================== */

:root {
  /* Brief palette */
  --bg: #F5F6F4;
  --surface: #FFFFFF;
  --ink: #1A2028;
  --primary: #34597A;
  --accent: #3F8F5F;
  --muted: #63707C;

  /* Derived slate blues */
  --primary-900: #16283A;
  --primary-800: #1F3A53;
  --primary-700: #26415A;
  --primary-600: #2D4E6A;
  --primary-300: #8FA8BE;
  --primary-200: #C2D0DD;
  --primary-100: #E2EAF1;
  --primary-050: #F0F4F8;

  /* Derived greens */
  --accent-800: #2A6B44;
  --accent-600: #357B51;
  --accent-200: #B7DCC5;
  --accent-100: #DCEFE4;

  /* File folder kraft */
  --kraft: #D9C299;
  --kraft-deep: #C0A472;
  --kraft-soft: #EEE3CB;
  --kraft-pale: #F7F1E3;

  /* Structure */
  --rule: #DCE1E5;
  --rule-strong: #C3CBD2;
  --ink-soft: #3A444F;
  --warn: #B4552C;

  /* Type */
  --font-display: "Arvo", "Rockwell", "Roboto Slab", Georgia, serif;
  --font-body: "Mulish", "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-base: 1.02rem;
  --fs-md: 1.14rem;
  --fs-lg: 1.35rem;
  --fs-xl: 1.72rem;
  --fs-2xl: 2.15rem;
  --fs-3xl: 2.7rem;
  --fs-4xl: 3.3rem;

  /* Space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 88px;
  --s-10: 120px;

  /* Radii and shadow */
  --r-sm: 3px;
  --r-md: 5px;
  --r-lg: 8px;
  --r-tab: 8px 8px 0 0;
  --sh-1: 0 1px 0 var(--rule), 0 1px 2px rgba(26, 32, 40, 0.05);
  --sh-2: 0 2px 0 var(--rule-strong), 0 6px 18px rgba(26, 32, 40, 0.07);
  --sh-3: 0 3px 0 var(--kraft-deep), 0 14px 34px rgba(26, 32, 40, 0.11);
  --ring: 0 0 0 3px var(--surface), 0 0 0 6px var(--accent);
  --wrap: 1180px;
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(90deg, rgba(52, 89, 122, 0.035) 0 1px, transparent 1px 84px),
    radial-gradient(circle at 12% 0%, rgba(217, 194, 153, 0.28), transparent 46%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; letter-spacing: -0.012em; margin: 0 0 var(--s-4); }
h1 { font-size: clamp(2.05rem, 5.1vw, var(--fs-4xl)); letter-spacing: -0.022em; }
h2 { font-size: clamp(1.6rem, 3.6vw, var(--fs-2xl)); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 var(--s-4); }
a { color: var(--primary-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-800); }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.15rem; }
li { margin-bottom: var(--s-2); }
strong { font-weight: 800; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s-6) 0; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--r-sm);
}
::selection { background: var(--kraft); color: var(--primary-900); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-5); }
.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;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -60px; z-index: 200;
  background: var(--primary-800); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--r-md) var(--r-md); font-weight: 700; text-decoration: none;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ----------------------------------------------------------- folder tab */
.tab-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-800);
  background: var(--kraft-soft);
  border: 1px solid var(--kraft-deep);
  border-bottom: 0;
  padding: 7px 20px 6px;
  clip-path: polygon(0 100%, 7px 0, calc(100% - 7px) 0, 100% 100%);
  position: relative;
  top: 1px;
}
.tab-label--green { background: var(--accent-100); border-color: var(--accent-600); color: var(--accent-800); }
.tab-label--slate { background: var(--primary-100); border-color: var(--primary-600); color: var(--primary-800); }

.section-head { max-width: 720px; margin-bottom: var(--s-7); }
.section-head .rule-under {
  display: block; height: 3px; width: 96px; margin-top: var(--s-4);
  background: linear-gradient(90deg, var(--primary) 0 60%, var(--accent) 60% 100%);
}
.lede { font-size: var(--fs-md); color: var(--ink-soft); max-width: 62ch; }
.eyebrow {
  font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--primary); margin: 0 0 var(--s-3);
}

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  padding: 13px 24px; border-radius: var(--r-sm); border: 2px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.btn--primary {
  background: var(--primary); color: #fff; border-color: var(--primary-800);
  box-shadow: 0 3px 0 var(--primary-800);
}
.btn--primary:hover { background: var(--primary-700); color: #fff; transform: translateY(-2px); box-shadow: 0 5px 0 var(--primary-900); }
.btn--accent {
  background: var(--accent); color: #fff; border-color: var(--accent-800);
  box-shadow: 0 3px 0 var(--accent-800);
}
.btn--accent:hover { background: var(--accent-600); color: #fff; transform: translateY(-2px); box-shadow: 0 5px 0 var(--accent-800); }
.btn--ghost {
  background: var(--surface); color: var(--primary-800); border-color: var(--primary-200);
  box-shadow: 0 3px 0 var(--primary-100);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary-900); transform: translateY(-2px); }
.btn--wide { width: 100%; justify-content: center; }
.btn svg { flex: none; }

/* -------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header::before {
  content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, var(--primary) 0 34%, var(--kraft) 34% 67%, var(--accent) 67% 100%);
}
.site-header.is-stuck { box-shadow: 0 6px 20px rgba(26, 32, 40, 0.09); border-color: var(--rule-strong); }
.header-bar { display: flex; align-items: center; gap: var(--s-5); padding: 12px 0; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark strong { font-family: var(--font-display); font-size: 1.16rem; letter-spacing: -0.02em; }
.wordmark span { color: var(--primary); }
.nav { margin-left: auto; }
.nav ul { display: flex; align-items: flex-end; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-soft);
  text-decoration: none; padding: 9px 15px 10px;
  border: 1px solid transparent; border-bottom: 0;
  border-radius: var(--r-tab);
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.nav a:hover, .nav a:focus-visible {
  background: var(--kraft-pale); border-color: var(--kraft-deep);
  color: var(--primary-900); transform: translateY(-2px);
}
.header-cta { margin-left: var(--s-3); }
.nav-toggle {
  display: none; margin-left: auto; background: var(--surface); color: var(--primary-800);
  border: 2px solid var(--primary-200); border-radius: var(--r-sm); padding: 9px 11px; cursor: pointer;
}
.nav-toggle:hover { border-color: var(--primary); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 3px solid var(--kraft-deep);
    box-shadow: 0 18px 30px rgba(26, 32, 40, 0.12);
    margin-left: 0; display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--s-3) var(--s-5) var(--s-5); }
  .nav a { border-radius: var(--r-sm); border: 1px solid transparent; padding: 12px 10px; }
  .nav li + li a { border-top: 1px solid var(--rule); border-radius: 0; }
  .header-cta { display: none; }
}

/* ---------------------------------------------------------------- hero */
.hero { padding: var(--s-9) 0 var(--s-8); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--rule);
}
.hero-grid { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: var(--s-8); align-items: center; }
.hero h1 { margin-bottom: var(--s-5); }
.hero .lede { font-size: var(--fs-lg); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-6) 0 var(--s-6); }

.trust-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule-strong); border-left: 4px solid var(--primary);
  background: var(--surface); border-radius: var(--r-sm);
}
.trust-strip div { padding: var(--s-4) var(--s-4); border-left: 1px solid var(--rule); }
.trust-strip div:first-child { border-left: 0; }
.trust-strip b { display: block; font-family: var(--font-display); font-size: var(--fs-md); color: var(--primary-800); }
.trust-strip span { font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.03em; }

/* photo framed as a manila folder */
.folder-photo { position: relative; padding-top: 30px; }
.folder-photo::before {
  content: attr(data-tab);
  position: absolute; top: 0; left: 26px;
  font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--primary-900);
  background: var(--kraft); border: 2px solid var(--kraft-deep); border-bottom: 0;
  padding: 6px 22px 8px;
  clip-path: polygon(0 100%, 10px 0, calc(100% - 10px) 0, 100% 100%);
}
.folder-photo::after {
  content: ""; position: absolute; right: -10px; top: 44px; bottom: -10px; left: 18px;
  background: var(--kraft-soft); border: 2px solid var(--kraft-deep);
  border-radius: var(--r-sm); z-index: -1; transform: rotate(0.7deg);
}
.folder-photo .frame {
  position: relative; background: var(--kraft); border: 2px solid var(--kraft-deep);
  border-radius: 0 var(--r-md) var(--r-md) var(--r-md); padding: 12px;
  box-shadow: var(--sh-3);
}
.folder-photo img { border-radius: var(--r-sm); border: 1px solid var(--kraft-deep); }
.photo-caption {
  margin: 10px 2px 0; font-size: var(--fs-xs); color: var(--primary-900);
  display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: 0.02em;
}
.photo-caption::before { content: ""; width: 10px; height: 10px; background: var(--accent); border-radius: 50%; flex: none; }

@media (max-width: 940px) {
  .hero { padding: var(--s-7) 0 var(--s-7); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-7); }
}
@media (max-width: 560px) {
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip div { border-left: 0; border-top: 1px solid var(--rule); }
  .trust-strip div:first-child { border-top: 0; }
}

/* ------------------------------------------------------------ sections */
.band { padding: var(--s-9) 0; position: relative; }
.band--paper { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band--ruled {
  background-color: var(--surface);
  background-image: repeating-linear-gradient(to bottom, transparent 0 33px, var(--rule) 33px 34px);
  border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong);
}
.band--slate {
  background: linear-gradient(175deg, var(--primary-900), var(--primary-700));
  color: #EDF2F6;
}
.band--slate h2, .band--slate h3 { color: #fff; }
.band--slate .lede { color: #C6D4E0; }
.band--slate .eyebrow { color: var(--kraft); }
.band--kraft {
  background-color: var(--kraft-pale);
  background-image: repeating-linear-gradient(115deg, rgba(192, 164, 114, 0.14) 0 2px, transparent 2px 9px);
  border-top: 1px solid var(--kraft-deep); border-bottom: 1px solid var(--kraft-deep);
}

/* --------------------------------------------------------- problem grid */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.pain {
  background: var(--surface); border: 1px solid var(--rule-strong);
  border-top: 4px solid var(--warn); border-radius: 0 0 var(--r-sm) var(--r-sm);
  padding: var(--s-5); box-shadow: var(--sh-1);
}
.pain h3 { font-size: var(--fs-md); margin-bottom: var(--s-3); }
.pain p { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: var(--s-3); }
.pain .cost {
  display: block; font-family: var(--font-display); font-size: var(--fs-sm);
  color: var(--warn); border-top: 1px dashed var(--rule-strong); padding-top: var(--s-3);
}
@media (max-width: 1000px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pain-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ steps */
.steps-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s-8); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  position: relative; padding: 0 0 var(--s-6) var(--s-8); margin: 0;
  border-left: 2px solid var(--primary-200);
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: -19px; top: 0;
  width: 36px; height: 36px; display: grid; place-items: center;
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 700;
  color: #fff; background: var(--primary); border: 2px solid var(--primary-900);
  border-radius: var(--r-sm);
}
.steps h3 { margin-bottom: var(--s-2); }
.steps p { color: var(--ink-soft); font-size: var(--fs-sm); margin-bottom: 0; }

/* ------------------------------------------------------- ruled ledger */
.ledger { width: 100%; border-collapse: collapse; background: var(--surface); font-size: var(--fs-sm); }
.ledger caption {
  caption-side: top; text-align: left; font-family: var(--font-display);
  font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); padding-bottom: var(--s-3);
}
.ledger th, .ledger td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--rule); }
.ledger thead th {
  background: var(--primary-050); color: var(--primary-900);
  font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: 0.08em;
  text-transform: uppercase; border-bottom: 2px solid var(--primary-300);
}
.ledger tbody tr:nth-child(even) { background: var(--kraft-pale); }
.ledger tbody tr:last-child td { border-bottom: 0; }
.ledger td:first-child { font-family: var(--font-display); color: var(--primary-800); white-space: nowrap; }
.ledger-wrap { border: 1px solid var(--rule-strong); border-left: 4px solid var(--accent); overflow-x: auto; }
@media (max-width: 940px) { .steps-layout { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.feature {
  position: relative; background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: 0 var(--r-md) var(--r-sm) var(--r-sm); padding: var(--s-6) var(--s-5) var(--s-5);
  margin-top: 22px; box-shadow: var(--sh-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature::before {
  content: ""; position: absolute; top: -14px; left: -1px; width: 120px; height: 15px;
  background: var(--kraft); border: 1px solid var(--kraft-deep); border-bottom: 0;
  clip-path: polygon(0 100%, 8px 0, calc(100% - 12px) 0, 100% 100%);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--primary-300); }
.feature .ic {
  width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: var(--s-4);
  background: var(--primary-050); border: 1px solid var(--primary-200); border-radius: var(--r-sm);
  color: var(--primary);
}
.feature h3 { font-size: var(--fs-md); margin-bottom: var(--s-2); }
.feature p { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: 0; }
@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------- outcomes and rails */
.outcome-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.outcome {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-sm); padding: var(--s-5);
}
.outcome .figure {
  font-family: var(--font-display); font-size: var(--fs-2xl); line-height: 1.1;
  color: #fff; display: block; margin-bottom: var(--s-2);
}
.outcome h3 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.1em; color: var(--kraft); margin-bottom: var(--s-3); }
.outcome p { font-size: var(--fs-sm); color: #C6D4E0; margin-bottom: var(--s-4); }
.rail { height: 8px; background: rgba(255, 255, 255, 0.14); border-radius: 99px; overflow: hidden; }
.rail i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-200));
  transition: width 1.4s cubic-bezier(0.22, 0.68, 0.32, 1);
}
.reveal.is-visible .rail i { width: var(--pct, 70%); }
@media (max-width: 1000px) { .outcome-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .outcome-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------- testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.testimonial {
  position: relative; background: var(--surface); border: 1px solid var(--rule-strong);
  border-left: 4px solid var(--accent); border-radius: var(--r-sm);
  padding: var(--s-6) var(--s-5) var(--s-5); margin: 0; box-shadow: var(--sh-1);
}
.testimonial p { font-size: var(--fs-sm); color: var(--ink); }
.testimonial footer {
  border-top: 1px solid var(--rule); padding-top: var(--s-3); margin-top: var(--s-4);
  font-size: var(--fs-xs); color: var(--muted); line-height: 1.5;
}
.testimonial footer b { display: block; font-family: var(--font-display); font-size: var(--fs-sm); color: var(--primary-900); }
.results-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: var(--s-6);
  border: 2px solid var(--primary-800); background: var(--primary-050); border-radius: var(--r-sm);
}
.results-strip div { padding: var(--s-5); text-align: center; border-left: 1px solid var(--primary-200); }
.results-strip div:first-child { border-left: 0; }
.results-strip b { display: block; font-family: var(--font-display); font-size: var(--fs-xl); color: var(--primary-900); }
.results-strip span { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
@media (max-width: 940px) { .quote-grid { grid-template-columns: 1fr; } .results-strip { grid-template-columns: 1fr; } .results-strip div { border-left: 0; border-top: 1px solid var(--primary-200); } .results-strip div:first-child { border-top: 0; } }

/* -------------------------------------------------------------- pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); align-items: start; }
.plan {
  position: relative; background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: 0 var(--r-md) var(--r-sm) var(--r-sm); padding: var(--s-6) var(--s-5);
  margin-top: 24px; box-shadow: var(--sh-1);
}
.plan::before {
  content: attr(data-tab); position: absolute; top: -25px; left: -1px;
  font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary-900);
  background: var(--kraft-soft); border: 1px solid var(--kraft-deep); border-bottom: 0;
  padding: 5px 20px 6px; clip-path: polygon(0 100%, 9px 0, calc(100% - 9px) 0, 100% 100%);
}
.plan--pick { border: 2px solid var(--accent); box-shadow: var(--sh-2); }
.plan--pick::before { background: var(--accent); border-color: var(--accent-800); color: #fff; }
.plan .amount { font-family: var(--font-display); font-size: var(--fs-3xl); color: var(--primary-900); line-height: 1; }
.plan .per { font-size: var(--fs-sm); color: var(--muted); }
.plan .who { font-size: var(--fs-sm); color: var(--ink-soft); border-bottom: 1px solid var(--rule); padding-bottom: var(--s-4); }
.plan ul { list-style: none; padding: 0; margin: var(--s-4) 0 var(--s-5); }
.plan li { position: relative; padding-left: 26px; font-size: var(--fs-sm); color: var(--ink-soft); }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 13px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.billing-note {
  margin-top: var(--s-6); border: 1px dashed var(--rule-strong); background: var(--kraft-pale);
  padding: var(--s-4) var(--s-5); font-size: var(--fs-sm); color: var(--ink-soft); border-radius: var(--r-sm);
}
@media (max-width: 940px) { .price-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ faq */
.faq-list { border-top: 2px solid var(--primary-800); }
.faq-item { border-bottom: 1px solid var(--rule-strong); background: var(--surface); }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: var(--s-4); text-align: left;
  background: none; border: 0; cursor: pointer; padding: var(--s-5) var(--s-4);
  font-family: var(--font-display); font-size: var(--fs-md); color: var(--primary-900);
  transition: background-color 0.18s ease;
}
.faq-q:hover { background: var(--primary-050); }
.faq-q .mark {
  margin-left: auto; flex: none; width: 26px; height: 26px; display: grid; place-items: center;
  border: 2px solid var(--primary-300); border-radius: var(--r-sm); color: var(--primary);
  transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}
.faq-q[aria-expanded="true"] { background: var(--primary-050); }
.faq-q[aria-expanded="true"] .mark { transform: rotate(45deg); background: var(--primary); color: #fff; border-color: var(--primary-900); }
.faq-a { padding: 0 var(--s-4) var(--s-5) var(--s-4); max-width: 78ch; }
.faq-a p { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: var(--s-3); }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a[hidden] { display: none; }

/* ---------------------------------------------------------------- form */
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--s-8); align-items: start; }
.form-card {
  background: var(--surface); border: 1px solid var(--rule-strong);
  border-top: 5px solid var(--primary); border-radius: var(--r-sm);
  padding: var(--s-6); box-shadow: var(--sh-2);
}
.field { margin-bottom: var(--s-4); }
.field label { display: block; font-size: var(--fs-sm); font-weight: 800; margin-bottom: 6px; color: var(--primary-900); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: var(--fs-sm); color: var(--ink);
  background: var(--kraft-pale); border: 1px solid var(--rule-strong); border-radius: var(--r-sm);
  padding: 11px 12px; transition: border-color 0.16s ease, background-color 0.16s ease;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--primary-300); }
.field input:focus, .field select:focus, .field textarea:focus { background: var(--surface); border-color: var(--primary); }
.field [aria-invalid="true"] { border-color: var(--warn); background: #FCF3EE; }
.field .err { display: none; font-size: var(--fs-xs); color: var(--warn); margin-top: 5px; font-weight: 700; }
.field .err.is-shown { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-soft); }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.consent label { font-weight: 500; color: var(--ink-soft); }
.form-aside ul { list-style: none; padding: 0; }
.form-aside li { position: relative; padding-left: 28px; font-size: var(--fs-sm); color: var(--ink-soft); }
.form-aside li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 14px;
  background: var(--kraft); border: 1px solid var(--kraft-deep); border-radius: 1px 3px 1px 1px;
}
.after-form { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s-4); }
@media (max-width: 940px) { .contact-layout { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ byline */
.byline {
  display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap;
  border: 1px solid var(--rule-strong); border-left: 4px solid var(--kraft-deep);
  background: var(--surface); padding: var(--s-5); border-radius: var(--r-sm);
  font-size: var(--fs-sm); color: var(--ink-soft); margin-top: var(--s-7);
}
.byline b { font-family: var(--font-display); color: var(--primary-900); }

/* ------------------------------------------------------------- footer */
.site-footer { background: var(--primary-900); color: #C6D4E0; padding: var(--s-8) 0 0; }
.site-footer a { color: #DCE6EE; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.25fr; gap: var(--s-6); }
.foot-brand .wordmark strong { color: #fff; }
.foot-brand .wordmark span { color: var(--kraft); }
.foot-brand p { font-size: var(--fs-sm); color: #A9BCCC; margin-top: var(--s-4); }
.social { display: flex; gap: 10px; margin-top: var(--s-4); }
.social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24); border-radius: var(--r-sm); color: #DCE6EE;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.social a:hover { background: var(--accent); border-color: var(--accent-800); transform: translateY(-2px); }
.foot-col h2 {
  font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--kraft); margin-bottom: var(--s-4); padding-bottom: var(--s-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { font-size: var(--fs-sm); margin-bottom: 10px; }
.foot-note { font-size: var(--fs-xs); color: #93A7B8; margin-top: var(--s-4); }
.foot-base {
  margin-top: var(--s-7); border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: var(--s-5) 0; display: flex; flex-wrap: wrap; gap: var(--s-4);
  justify-content: space-between; font-size: var(--fs-xs); color: #93A7B8;
}
@media (max-width: 940px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------- inner pages */
.page-head { padding: var(--s-8) 0 var(--s-6); border-bottom: 1px solid var(--rule); }
.page-head .crumbs { font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--s-3); }
.page-head .crumbs a { color: var(--primary-700); }
.prose { max-width: 74ch; padding: var(--s-8) 0; }
.prose h2 { margin-top: var(--s-7); padding-top: var(--s-4); border-top: 2px solid var(--kraft-deep); }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: var(--s-5); font-size: var(--fs-md); }
.prose li { font-size: var(--fs-base); }
.fact-list { list-style: none; padding: 0; border: 1px solid var(--rule-strong); background: var(--surface); }
.fact-list li { display: grid; grid-template-columns: 220px 1fr; gap: var(--s-4); margin: 0; padding: 11px 16px; border-bottom: 1px solid var(--rule); font-size: var(--fs-sm); }
.fact-list li:last-child { border-bottom: 0; }
.fact-list b { font-family: var(--font-display); color: var(--primary-800); }
@media (max-width: 620px) { .fact-list li { grid-template-columns: 1fr; gap: 2px; } }

.map-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); padding: var(--s-8) 0; }
.map-card { background: var(--surface); border: 1px solid var(--rule-strong); border-top: 4px solid var(--primary); padding: var(--s-5); border-radius: 0 0 var(--r-sm) var(--r-sm); }
.map-card h2 { font-size: var(--fs-md); }
.map-card ul { list-style: none; padding: 0; }
.map-card li { border-bottom: 1px dotted var(--rule-strong); padding-bottom: var(--s-2); }
.map-card li:last-child { border-bottom: 0; }
.map-card span { display: block; font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 780px) { .map-grid { grid-template-columns: 1fr; } }

.author-layout { display: grid; grid-template-columns: 300px 1fr; gap: var(--s-8); padding: var(--s-8) 0; align-items: start; }
.author-card { background: var(--surface); border: 2px solid var(--kraft-deep); border-radius: var(--r-sm); padding: var(--s-4); box-shadow: var(--sh-2); position: sticky; top: 96px; }
.author-card img { border-radius: var(--r-sm); border: 1px solid var(--rule); }
.author-card p { font-size: var(--fs-sm); color: var(--muted); margin: var(--s-3) 0 0; }
.author-card b { display: block; font-family: var(--font-display); color: var(--primary-900); font-size: var(--fs-md); }
.profile-links { list-style: none; padding: 0; margin: var(--s-4) 0 0; }
.profile-links li { border-top: 1px solid var(--rule); padding-top: var(--s-2); font-size: var(--fs-sm); }
@media (max-width: 880px) { .author-layout { grid-template-columns: 1fr; } .author-card { position: static; max-width: 320px; } }

.narrow-center { max-width: 640px; margin: 0 auto; padding: var(--s-10) 0; text-align: center; }
.narrow-center .big-mark { font-family: var(--font-display); font-size: 4.4rem; color: var(--primary-200); line-height: 1; margin-bottom: var(--s-4); }
.narrow-center .btn-row { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; margin-top: var(--s-6); }

/* ------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .rail i { width: var(--pct, 70%); }
}

@media print {
  .site-header, .site-footer, .hero-actions, .form-card { display: none; }
  body { background: #fff; }
}

/* Contrast corrections inside the slate band and small motif polish */
.band--slate .section-head .rule-under {
  background: linear-gradient(90deg, var(--kraft) 0 60%, var(--accent-200) 60% 100%);
}
.band--slate .tab-label { background: var(--kraft); border-color: var(--kraft-deep); color: var(--primary-900); }
.plan { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.plan--pick:hover { box-shadow: var(--sh-3); }
.ledger tbody tr:hover { background: var(--primary-050); }
.pain { transition: border-top-color 0.2s ease, box-shadow 0.2s ease; }
.pain:hover { box-shadow: var(--sh-2); }
.testimonial::before {
  content: ""; position: absolute; top: 0; left: 22px; width: 92px; height: 9px;
  background: var(--accent-200); border: 1px solid var(--accent-600); border-top: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 7px 100%);
}

/* ==========================================================================
   The Renewal Desk: magazine index, article pages, cards
   Same drawer as the rest of the site. Kraft tabs, ruled rhythm, slate rails.
   ========================================================================== */

/* Room for the magazine label in the tab bar before the mobile menu takes over */
@media (min-width: 901px) and (max-width: 1140px) {
  .nav a { padding-left: 10px; padding-right: 10px; }
  .header-cta { padding-left: 16px; padding-right: 16px; margin-left: var(--s-2); }
}
.nav a { white-space: nowrap; }

/* ------------------------------------------------------------- crumbs */
.mag-crumbs { padding: var(--s-6) 0 0; font-size: var(--fs-xs); color: var(--muted); }
.mag-crumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2);
}
.mag-crumbs li { margin: 0; display: flex; align-items: center; gap: var(--s-2); }
.mag-crumbs li + li::before {
  content: ""; width: 9px; height: 9px; flex: none;
  border-top: 2px solid var(--primary-300); border-right: 2px solid var(--primary-300);
  transform: rotate(45deg);
}
.mag-crumbs a { color: var(--primary-700); text-decoration: none; font-weight: 700; }
.mag-crumbs a:hover { color: var(--accent-800); text-decoration: underline; }
.mag-crumbs [aria-current="page"] {
  color: var(--ink-soft);
  display: inline-block; max-width: 46ch;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------------------------------------------------------- masthead */
.mag-masthead {
  padding: var(--s-6) 0 var(--s-7);
  border-bottom: 3px solid var(--primary-800);
  margin-bottom: var(--s-7);
}
.mag-masthead h1 { margin: var(--s-4) 0 var(--s-4); }
.mag-standfirst {
  font-family: var(--font-body); font-size: var(--fs-lg); line-height: 1.5;
  color: var(--ink-soft); max-width: 60ch; margin-bottom: var(--s-4);
}
.mag-masthead-note { font-size: var(--fs-sm); color: var(--muted); max-width: 68ch; }
.mag-masthead-facts {
  list-style: none; margin: var(--s-6) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule-strong); border-left: 4px solid var(--accent);
  background: var(--surface); border-radius: var(--r-sm);
}
.mag-masthead-facts li {
  margin: 0; padding: var(--s-4); border-left: 1px solid var(--rule);
}
.mag-masthead-facts li:first-child { border-left: 0; }
.mag-masthead-facts b {
  display: block; font-family: var(--font-display); font-size: var(--fs-md);
  color: var(--primary-800); font-weight: 700;
}
.mag-masthead-facts span { font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.03em; }
@media (max-width: 720px) {
  .mag-masthead-facts { grid-template-columns: 1fr; }
  .mag-masthead-facts li { border-left: 0; border-top: 1px solid var(--rule); }
  .mag-masthead-facts li:first-child { border-top: 0; }
}

/* ------------------------------------------------------- index cards */
.mag-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6) var(--s-5);
  padding-bottom: var(--s-8);
}
.mag-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 0 var(--r-md) var(--r-sm) var(--r-sm);
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.mag-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--primary-300); }
.mag-card-shot { position: relative; background: var(--kraft-soft); border-bottom: 1px solid var(--rule); }
.mag-card-shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-card-tab {
  position: absolute; left: 0; bottom: 0;
  font-family: var(--font-display); font-size: var(--fs-xs);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary-900); background: var(--kraft);
  border: 1px solid var(--kraft-deep); border-left: 0; border-bottom: 0;
  padding: 5px 20px 6px 14px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
}
.mag-card-text { padding: var(--s-5); display: flex; flex-direction: column; flex: 1 1 auto; }
.mag-card-title { font-size: var(--fs-md); line-height: 1.25; margin: 0 0 var(--s-3); }
.mag-card-title a { color: var(--primary-900); text-decoration: none; }
.mag-card-title a:hover { color: var(--accent-800); text-decoration: underline; }
.mag-card-dek { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: var(--s-4); }
.mag-card-meta {
  margin: auto 0 0; display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
  font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.04em;
  border-top: 1px dashed var(--rule-strong); padding-top: var(--s-3);
}
.mag-card-sep { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex: none; }

/* lead card: the newest piece gets the full width of the drawer */
.mag-card.lead {
  grid-column: 1 / -1; flex-direction: row; align-items: stretch;
  border-top: 4px solid var(--primary); border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.mag-card.lead .mag-card-shot { flex: 0 0 54%; border-bottom: 0; border-right: 1px solid var(--rule); }
.mag-card.lead .mag-card-shot img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.mag-card.lead .mag-card-tab { background: var(--accent); border-color: var(--accent-800); color: #fff; }
.mag-card.lead .mag-card-text { padding: var(--s-6); justify-content: center; }
.mag-card.lead .mag-card-title { font-size: var(--fs-xl); line-height: 1.18; }
.mag-card.lead .mag-card-dek { font-size: var(--fs-md); color: var(--ink-soft); }
.mag-card.lead .mag-card-meta { margin-top: var(--s-5); }

@media (max-width: 1000px) { .mag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .mag-card.lead { flex-direction: column; }
  .mag-card.lead .mag-card-shot { flex: none; border-right: 0; border-bottom: 1px solid var(--rule); }
  .mag-card.lead .mag-card-shot img { min-height: 0; aspect-ratio: 3 / 2; }
  .mag-card.lead .mag-card-text { padding: var(--s-5); }
  .mag-card.lead .mag-card-title { font-size: var(--fs-lg); }
}
@media (max-width: 620px) { .mag-grid { grid-template-columns: 1fr; gap: var(--s-5); } }

/* ------------------------------------------------------ article page */
.mag-article > .wrap { max-width: 920px; }
.mag-head {
  padding: var(--s-5) 0 var(--s-6);
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: var(--s-6);
}
.mag-head h1 { margin: var(--s-4) 0 var(--s-4); font-size: clamp(1.95rem, 4.4vw, var(--fs-3xl)); }
.mag-head .mag-standfirst { font-size: var(--fs-lg); color: var(--ink-soft); max-width: 58ch; }
.mag-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5);
  margin-top: var(--s-5); padding: var(--s-4) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--rule-strong); border-left: 4px solid var(--kraft-deep);
  border-radius: var(--r-sm);
}
.mag-byline p { margin: 0; }
.mag-byline-who { font-size: var(--fs-sm); color: var(--ink-soft); }
.mag-byline-who b { font-family: var(--font-display); color: var(--primary-900); }
.mag-byline-who a { text-decoration: none; }
.mag-byline-who a:hover b { color: var(--accent-800); text-decoration: underline; }
.mag-byline-meta {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.03em;
}
.mag-byline-meta span { display: inline-flex; align-items: center; gap: 7px; }
.mag-byline-meta span::before {
  content: ""; width: 12px; height: 10px; flex: none;
  background: var(--kraft); border: 1px solid var(--kraft-deep); border-radius: 1px 3px 1px 1px;
}
.mag-byline time { font-weight: 700; color: var(--ink-soft); }

.mag-figure { margin: 0 0 var(--s-7); }
.mag-figure-frame {
  background: var(--kraft); border: 2px solid var(--kraft-deep);
  border-radius: var(--r-md); padding: 10px; box-shadow: var(--sh-2);
}
.mag-figure-frame img { border-radius: var(--r-sm); border: 1px solid var(--kraft-deep); }
.mag-figure figcaption {
  margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--muted);
  letter-spacing: 0.05em; text-transform: uppercase;
  font-family: var(--font-display);
  display: flex; align-items: center; gap: 9px;
}
.mag-figure figcaption::before {
  content: ""; width: 26px; height: 3px; flex: none;
  background: linear-gradient(90deg, var(--primary) 0 60%, var(--accent) 60% 100%);
}

/* body typography: a measure of about 70 characters, generous rhythm */
.mag-body {
  max-width: 58ch;
  font-size: var(--fs-md);
  line-height: 1.72;
  color: var(--ink);
}
.mag-body > p { margin: 0 0 var(--s-5); }
.mag-body h2 {
  font-size: clamp(1.42rem, 3vw, var(--fs-xl));
  margin: var(--s-8) 0 var(--s-4);
  padding-top: var(--s-4);
  border-top: 2px solid var(--kraft-deep);
  color: var(--primary-900);
}
.mag-body h2:first-child { margin-top: 0; }
.mag-body h3 {
  font-size: var(--fs-md); margin: var(--s-6) 0 var(--s-3);
  color: var(--primary-800);
  padding-left: var(--s-4); border-left: 3px solid var(--accent);
}
.mag-body ul, .mag-body ol { margin: 0 0 var(--s-5); padding-left: 1.35rem; }
.mag-body li { margin-bottom: var(--s-3); }
.mag-body ul { list-style: none; padding-left: 0; }
.mag-body ul > li { position: relative; padding-left: 30px; }
.mag-body ul > li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 16px; height: 13px;
  background: var(--kraft); border: 1px solid var(--kraft-deep); border-radius: 1px 3px 1px 1px;
}
.mag-body strong { color: var(--primary-900); }
.mag-body a { font-weight: 700; }
.mag-body blockquote {
  margin: var(--s-6) 0; padding: var(--s-5);
  background: var(--primary-050); border: 1px solid var(--primary-200);
  border-left: 4px solid var(--primary); border-radius: var(--r-sm);
  font-size: var(--fs-md); color: var(--primary-900);
}
.mag-body blockquote p:last-child { margin-bottom: 0; }
.mag-body table {
  width: 100%; border-collapse: collapse; font-size: var(--fs-sm);
  background: var(--surface); margin: 0 0 var(--s-6);
  border: 1px solid var(--rule-strong); border-left: 4px solid var(--accent);
}
.mag-body th, .mag-body td { text-align: left; padding: 10px 13px; border-bottom: 1px solid var(--rule); }
.mag-body thead th {
  background: var(--primary-050); color: var(--primary-900);
  font-family: var(--font-display); font-size: var(--fs-xs);
  letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 2px solid var(--primary-300);
}
.mag-body tbody tr:nth-child(even) { background: var(--kraft-pale); }

/* the contextual link the desk drops between sections */
.mag-body .inline-read {
  display: flex; align-items: flex-start; gap: var(--s-3);
  margin: var(--s-6) 0; padding: var(--s-4) var(--s-5);
  background: var(--kraft-pale);
  border: 1px solid var(--kraft-deep); border-left: 4px solid var(--accent);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft);
  line-height: 1.5;
}
.mag-body .inline-read::before {
  content: ""; flex: none; margin-top: 4px;
  width: 18px; height: 15px;
  background: var(--kraft); border: 1px solid var(--kraft-deep); border-radius: 1px 4px 1px 1px;
}
.mag-body .inline-read a { color: var(--primary-800); }
.mag-body .inline-read a:hover { color: var(--accent-800); }

/* ------------------------------------------------ call to action block */
.mag-cta {
  margin: var(--s-8) 0 0;
  padding: var(--s-7) var(--s-6) var(--s-6);
  background: linear-gradient(175deg, var(--primary-900), var(--primary-700));
  border: 1px solid var(--primary-900);
  border-radius: 0 var(--r-lg) var(--r-md) var(--r-md);
  color: #EDF2F6;
  position: relative;
}
.mag-cta .tab-label { position: absolute; top: 0; left: var(--s-6); }
.mag-cta h2 { color: #fff; font-size: var(--fs-xl); margin-top: var(--s-3); margin-bottom: var(--s-4); max-width: 26ch; }
.mag-cta p { color: #C6D4E0; font-size: var(--fs-sm); max-width: 62ch; margin-bottom: var(--s-6); }
.mag-cta .btn--accent { box-shadow: 0 3px 0 var(--accent-800); }
.mag-cta--index { margin: var(--s-6) 0 var(--s-9); }

/* ----------------------------------------------------------- author box */
.mag-author {
  display: grid; grid-template-columns: 180px 1fr; gap: var(--s-6);
  align-items: start;
  margin: var(--s-7) 0 0; padding: var(--s-6);
  background: var(--surface);
  border: 2px solid var(--kraft-deep); border-radius: var(--r-sm);
  box-shadow: var(--sh-1);
}
.mag-author > img { border-radius: var(--r-sm); border: 1px solid var(--rule); width: 100%; height: auto; }
.mag-author-kicker {
  font-family: var(--font-display); font-size: var(--fs-xs);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary);
  margin: 0 0 var(--s-2);
}
.mag-author h2 { font-size: var(--fs-lg); margin-bottom: var(--s-3); color: var(--primary-900); }
.mag-author p { font-size: var(--fs-sm); color: var(--ink-soft); }
.mag-author-more { margin-bottom: 0; font-weight: 700; }
@media (max-width: 620px) {
  .mag-author { grid-template-columns: 1fr; gap: var(--s-5); }
  .mag-author > img { max-width: 160px; }
}

/* --------------------------------------------------------- read also */
.mag-related { margin: var(--s-8) 0 var(--s-9); }
.mag-related h2 {
  font-size: var(--fs-xl); margin: 0 0 var(--s-6);
  padding-top: var(--s-4); border-top: 3px solid var(--primary-800);
}
.mag-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.mag-rel {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: 0 var(--r-md) var(--r-sm) var(--r-sm);
  overflow: hidden; box-shadow: var(--sh-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.mag-rel:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--kraft-deep); }
.mag-rel-shot { display: block; background: var(--kraft-soft); border-bottom: 1px solid var(--rule); }
.mag-rel-shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel-text { padding: var(--s-4) var(--s-5) var(--s-5); display: flex; flex-direction: column; flex: 1 1 auto; }
.mag-rel-title { font-size: var(--fs-base); line-height: 1.3; margin: 0 0 var(--s-2); }
.mag-rel-title a { color: var(--primary-900); text-decoration: none; }
.mag-rel-title a:hover { color: var(--accent-800); text-decoration: underline; }
.mag-rel-dek { font-size: var(--fs-xs); color: var(--muted); line-height: 1.55; margin-bottom: var(--s-3); }
.mag-rel-date {
  margin: auto 0 0; font-size: var(--fs-xs); color: var(--muted);
  border-top: 1px dashed var(--rule-strong); padding-top: var(--s-3); letter-spacing: 0.04em;
}
.mag-related-all { margin: var(--s-6) 0 0; font-size: var(--fs-sm); font-weight: 700; }
@media (max-width: 780px) { .mag-related-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------- home page magazine strip */
.mag-home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.mag-home-more { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.mag-home-more .note { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .mag-home-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .mag-home-grid { grid-template-columns: 1fr; } }

/* magazine block inside the site map drawer */
.map-card--wide { grid-column: 1 / -1; border-top-color: var(--accent); }
.map-card--wide ul { columns: 2; column-gap: var(--s-6); }
.map-card--wide li { break-inside: avoid; margin-bottom: var(--s-3); }
@media (max-width: 780px) { .map-card--wide ul { columns: 1; } }

/* ------------------------------------------- author and site map lists */
.article-index { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--primary-800); }
.article-index li {
  margin: 0; padding: var(--s-4) 0; border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: 1fr 190px; gap: var(--s-3) var(--s-4); align-items: baseline;
}
.article-index a { font-weight: 700; color: var(--primary-800); text-decoration: none; }
.article-index a:hover { color: var(--accent-800); text-decoration: underline; }
.article-index time { font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.05em; text-align: right; }
@media (max-width: 620px) {
  .article-index li { grid-template-columns: 1fr; }
  .article-index time { text-align: left; }
}

/* ----------------------------------------------------- narrow screens */
@media (max-width: 420px) {
  .mag-crumbs [aria-current="page"] { max-width: 22ch; }
  .mag-head { padding-top: var(--s-4); }
  .mag-byline { padding: var(--s-4); gap: var(--s-3); }
  .mag-figure-frame { padding: 6px; }
  .mag-body { font-size: var(--fs-base); }
  .mag-body h3 { padding-left: var(--s-3); }
  .mag-cta { padding: var(--s-6) var(--s-5) var(--s-5); }
  .mag-cta .tab-label { left: var(--s-5); }
  .mag-cta h2 { font-size: var(--fs-lg); }
  .mag-cta .btn { width: 100%; justify-content: center; }
  .mag-author { padding: var(--s-5); }
  .mag-card-text { padding: var(--s-4); }
  .mag-masthead-facts li { padding: var(--s-3) var(--s-4); }
}



/* Network strip: five sibling products, rotated so every site is linked the same
   number of times. Spans the full footer grid rather than adding a fifth column,
   because each footer declares a fixed column count and a fifth item would wrap. */
.site-network { grid-column: 1 / -1; flex-basis: 100%; width: 100%;
  margin-top: 1.6rem; padding-top: 1.2rem;
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.site-network h2 { font: inherit; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; margin: 0 0 0.7rem; opacity: 0.72; }
.site-network ul { list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-network li + li { margin-top: 0; }
.site-network a { font-size: 0.86rem; text-decoration: none; opacity: 0.9;
  border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { opacity: 1; border-bottom-color: currentColor; }
@media (max-width: 620px) { .site-network ul { gap: 0.45rem 1.1rem; } }


/* Phone: the numbered step list hangs its counter 19px into the left margin, so the
   list needs that much room back rather than sitting flush to the container edge. */
@media (max-width: 620px) {
  .steps-layout { grid-template-columns: minmax(0, 1fr); }
  .steps { margin-left: 19px; }
  .steps li { padding-left: var(--s-6); }
}


/* Decorative bleed guard. Several sections intentionally hang a rotated or offset
   pseudo element past the viewport edge. overflow-x: clip contains them without
   creating a scroll container, so position: sticky keeps working, unlike overflow
   hidden. Genuine content overflow is still reported by the element level check in
   the browser pass. */
html { overflow-x: clip; }
body { overflow-x: clip; }


/* Phone: comparison tables carry long policy terms, so they need to wrap or scroll
   inside their own box rather than push cells past the right edge. */
@media (max-width: 560px) {
  table { display: block; overflow-x: auto; max-width: 100%; }
  th, td { overflow-wrap: anywhere; }
}


/* Wide content on phones. Class names for the prose wrapper differ from site to site,
   so this targets tables and pre blocks directly: they scroll inside their own box
   rather than pushing cells past the right edge, per the build contract. */
@media (max-width: 700px) {
  table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { overflow-wrap: anywhere; }
  pre { overflow-x: auto; max-width: 100%; }
}
