/* ==========================================================================
   SnackRoster design system
   Saturday morning bright: turf green, sky blue, orange slice pop.
   Display: Baloo 2. Body: Rubik. Big rounded shapes, confetti dots.
   ========================================================================== */

:root {
  /* brief palette */
  --bg: #F3FAFF;
  --surface: #FFFFFF;
  --ink: #132434;
  --primary: #1D6FB8;
  --accent: #FF8A3D;
  --muted: #5A7185;

  /* derived sky tints and shades */
  --primary-deep: #14528A;
  --primary-dark: #0E3E69;
  --primary-tint: #E3F0FB;
  --primary-soft: #C7E1F6;
  --sky: #7FC4F0;

  /* orange slice */
  --accent-deep: #E56A18;
  --accent-dark: #B94F0B;
  --accent-tint: #FFEEE0;
  --accent-soft: #FFD3B2;

  /* turf */
  --turf: #2E9E5B;
  --turf-deep: #1F7444;
  --turf-tint: #E4F6EA;
  --turf-soft: #B9E7CB;

  /* neutrals */
  --ink-soft: #24405A;
  --line: #D8E7F2;
  --line-strong: #B9D3E6;
  --shade: #EDF6FD;

  /* type */
  --font-display: "Baloo 2", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-body: "Rubik", "Helvetica Neue", Arial, system-ui, sans-serif;
  --t-xs: 0.78rem;
  --t-sm: 0.9rem;
  --t-base: 1.02rem;
  --t-md: 1.14rem;
  --t-lg: 1.36rem;
  --t-xl: 1.75rem;
  --t-2xl: 2.25rem;
  --t-3xl: 2.9rem;
  --t-4xl: 3.6rem;

  /* spacing scale */
  --s-1: 0.35rem;
  --s-2: 0.6rem;
  --s-3: 0.9rem;
  --s-4: 1.3rem;
  --s-5: 1.9rem;
  --s-6: 2.6rem;
  --s-7: 3.6rem;
  --s-8: 5rem;
  --s-9: 6.8rem;

  /* radii: big rounded shapes */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 30px;
  --r-xl: 42px;
  --r-pill: 999px;

  /* shadows */
  --sh-1: 0 2px 6px rgba(19, 36, 52, 0.06);
  --sh-2: 0 10px 26px rgba(19, 36, 52, 0.09);
  --sh-3: 0 22px 48px rgba(19, 36, 52, 0.14);
  --sh-pop: 0 16px 0 -6px var(--primary-soft), 0 26px 46px rgba(19, 36, 52, 0.16);

  /* motion: bouncy spring */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.32, 0.72, 0.3, 1);
  --wrap: 1180px;
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 4%, rgba(255, 138, 61, 0.10) 0 22%, transparent 60%),
    radial-gradient(circle at 92% 0%, rgba(46, 158, 91, 0.10) 0 24%, transparent 62%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-3);
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 5.4vw, var(--t-4xl)); }
h2 { font-size: clamp(1.7rem, 3.9vw, var(--t-3xl)); }
h3 { font-size: var(--t-lg); font-weight: 700; }
h4 { font-size: var(--t-md); font-weight: 700; }
p { margin: 0 0 var(--s-3); }
a { color: var(--primary-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 var(--s-3); padding-left: 1.25rem; }
li { margin-bottom: var(--s-2); }
strong { font-weight: 600; color: var(--ink); }
small { font-size: var(--t-sm); }

/* ---------- utilities ---------- */
.wrap { width: min(100% - 2.2rem, var(--wrap)); margin-inline: auto; }
.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-3); top: -80px; z-index: 200;
  background: var(--accent); color: #2A1300; font-family: var(--font-display);
  font-weight: 700; padding: 0.7rem 1.2rem; border-radius: var(--r-pill);
  box-shadow: var(--sh-2); transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--s-3); }

:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--t-sm);
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--turf-deep); background: var(--turf-tint);
  border-radius: var(--r-pill); padding: 0.35rem 0.95rem; margin-bottom: var(--s-3);
}
.eyebrow.is-sky { color: var(--primary-deep); background: var(--primary-tint); }
.eyebrow.is-slice { color: var(--accent-dark); background: var(--accent-tint); }
.eyebrow::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: currentColor; opacity: 0.75;
}

.lede { font-size: var(--t-md); color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; margin-inline: auto; }
.section { padding: var(--s-8) 0; position: relative; }
.section-head { max-width: 66ch; margin-bottom: var(--s-6); }
.section-head.center { text-align: center; }

/* confetti dot field, the house texture */
.confetti {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle, var(--accent) 46%, transparent 47%),
    radial-gradient(circle, var(--turf) 46%, transparent 47%),
    radial-gradient(circle, var(--sky) 46%, transparent 47%);
  background-size: 190px 190px, 250px 250px, 170px 170px;
  background-position: 12px 30px, 120px 140px, 70px 200px;
  opacity: 0.22;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--t-md);
  padding: 0.82rem 1.7rem; border-radius: var(--r-pill); border: 3px solid transparent;
  text-decoration: none; cursor: pointer; position: relative;
  transition: transform 0.32s var(--spring), box-shadow 0.32s var(--spring), background-color 0.2s var(--ease);
}
.btn-primary {
  background: var(--accent); color: #2A1300;
  box-shadow: 0 6px 0 var(--accent-deep), 0 14px 26px rgba(229, 106, 24, 0.28);
}
.btn-primary:hover { background: #FF9A55; color: #2A1300; transform: translateY(-3px) scale(1.03); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--accent-deep); }
.btn-secondary {
  background: var(--surface); color: var(--primary-deep); border-color: var(--primary-soft);
  box-shadow: 0 6px 0 var(--primary-soft);
}
.btn-secondary:hover { background: var(--primary-tint); color: var(--primary-dark); transform: translateY(-3px); }
.btn-ghost {
  background: transparent; color: var(--primary-deep); border-color: var(--primary-soft);
  padding: 0.6rem 1.2rem; font-size: var(--t-base);
}
.btn-ghost:hover { background: var(--primary-tint); }
.btn-block { width: 100%; }

/* confetti burst on the primary call to action */
.btn-primary::before, .btn-primary::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px;
  border-radius: 2px; opacity: 0; pointer-events: none;
}
.btn-primary::before {
  box-shadow:
    -70px -26px 0 var(--turf), 62px -30px 0 var(--primary), -44px 26px 0 var(--accent-deep),
    54px 24px 0 var(--sky), -96px 6px 0 var(--accent-dark), 92px 2px 0 var(--turf-deep);
}
.btn-primary::after {
  box-shadow:
    -24px -38px 0 var(--primary-deep), 20px -40px 0 var(--turf), -12px 40px 0 var(--sky),
    30px 36px 0 var(--accent-deep), -60px -6px 0 var(--turf-deep), 74px 16px 0 var(--primary);
}
.btn-primary:hover::before, .btn-primary:focus-visible::before { animation: pop-out 0.62s var(--spring) forwards; }
.btn-primary:hover::after, .btn-primary:focus-visible::after { animation: pop-out 0.62s 0.06s var(--spring) forwards; }
@keyframes pop-out {
  0% { opacity: 0; transform: scale(0.2) rotate(0deg); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.25) rotate(28deg); }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(243, 250, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid transparent;
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
  box-shadow: var(--sh-1);
}
.header-inner { display: flex; align-items: center; gap: var(--s-4); padding: 0.85rem 0; }
.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--ink);
  letter-spacing: -0.02em;
}
.wordmark:hover { color: var(--primary-deep); }
.wordmark svg { width: 40px; height: 40px; flex: none; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 0.5rem 0.95rem; border-radius: var(--r-pill);
  font-weight: 500; color: var(--ink-soft); text-decoration: none; font-size: var(--t-sm);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.main-nav a:hover { background: var(--primary-tint); color: var(--primary-dark); }
.header-cta { flex: none; }
.nav-toggle {
  display: none; margin-left: auto; background: var(--surface); border: 3px solid var(--primary-soft);
  border-radius: var(--r-pill); padding: 0.5rem 0.7rem; cursor: pointer; color: var(--primary-deep);
}
.nav-toggle svg { width: 24px; height: 24px; display: block; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: var(--s-8) 0 var(--s-7); }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
  background: repeating-linear-gradient(90deg, var(--turf) 0 46px, var(--turf-deep) 46px 92px);
  opacity: 0.85;
}
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: var(--s-7); align-items: center; }
.hero h1 { margin-bottom: var(--s-4); }
.hero h1 .slice {
  position: relative; white-space: nowrap; color: var(--primary-deep);
}
.hero h1 .slice::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.03em; height: 0.34em;
  background: var(--accent-soft); border-radius: var(--r-pill); z-index: -1;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-5) 0 var(--s-5); }
.trust-strip {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
  padding: var(--s-3) var(--s-4); background: var(--surface);
  border: 3px solid var(--primary-tint); border-radius: var(--r-lg); box-shadow: var(--sh-1);
}
.trust-strip li { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-size: var(--t-sm); color: var(--ink-soft); font-weight: 500; }
.trust-strip { list-style: none; padding-left: var(--s-4); }
.trust-strip svg { width: 20px; height: 20px; color: var(--turf); flex: none; }

.hero-media { position: relative; }
.hero-media::before {
  content: ""; position: absolute; inset: -6% -8% -10% -6%;
  background: conic-gradient(from 200deg at 60% 40%, var(--accent-soft), var(--primary-soft), var(--turf-soft), var(--accent-soft));
  border-radius: 52% 48% 46% 54% / 50% 52% 48% 50%;
  filter: blur(2px); opacity: 0.75;
}
.hero-media img {
  position: relative; border-radius: var(--r-xl); border: 6px solid var(--surface);
  box-shadow: var(--sh-3); object-fit: cover; aspect-ratio: 3 / 2; width: 100%;
}
.hero-badge {
  position: absolute; right: -10px; bottom: -22px; z-index: 3;
  background: var(--surface); border: 3px solid var(--turf-soft); border-radius: var(--r-lg);
  padding: var(--s-3) var(--s-4); box-shadow: var(--sh-2); max-width: 260px;
}
.hero-badge .num { font-family: var(--font-display); font-size: var(--t-xl); color: var(--turf-deep); font-weight: 800; line-height: 1; }
.hero-badge p { margin: 0.3rem 0 0; font-size: var(--t-sm); color: var(--muted); }

/* ---------- problem cards ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.pain-card {
  background: var(--surface); border-radius: var(--r-lg); padding: var(--s-5) var(--s-4);
  border: 3px solid var(--line); position: relative; overflow: hidden;
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--spring), border-color 0.3s var(--ease);
}
.pain-card:nth-child(even) { transform: rotate(-0.7deg); }
.pain-card:nth-child(odd) { transform: rotate(0.6deg); }
.pain-card:hover { transform: translateY(-8px) rotate(0deg) scale(1.02); box-shadow: var(--sh-2); border-color: var(--accent-soft); }
.pain-card::before {
  content: ""; position: absolute; top: -34px; right: -34px; width: 84px; height: 84px;
  border-radius: 50%; background: var(--accent-tint);
}
.pain-card h3 { position: relative; }
.pain-card p { color: var(--muted); font-size: var(--t-sm); margin-bottom: var(--s-3); }
.pain-cost {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: var(--t-sm);
  color: var(--accent-dark); background: var(--accent-tint); border-radius: var(--r-pill);
  padding: 0.3rem 0.85rem;
}

/* ---------- how it works ---------- */
.how { background: var(--surface); border-radius: var(--r-xl); padding: var(--s-7) var(--s-5); position: relative; overflow: hidden; }
.how-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: var(--s-7); align-items: start; position: relative; z-index: 1; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { position: relative; padding-left: 4.6rem; margin-bottom: var(--s-5); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -0.2rem; width: 3.3rem; height: 3.3rem;
  display: grid; place-items: center; border-radius: 46% 54% 52% 48% / 50% 48% 52% 50%;
  background: var(--primary); color: #fff; font-family: var(--font-display);
  font-weight: 800; font-size: var(--t-lg); box-shadow: 0 6px 0 var(--primary-deep);
}
.steps li:nth-child(2)::before { background: var(--turf); box-shadow: 0 6px 0 var(--turf-deep); }
.steps li:nth-child(3)::before { background: var(--accent); color: #2A1300; box-shadow: 0 6px 0 var(--accent-deep); }
.steps li:nth-child(4)::before { background: var(--primary-deep); box-shadow: 0 6px 0 var(--primary-dark); }
.steps h3 { margin-bottom: 0.3rem; }
.steps p { color: var(--muted); margin: 0; font-size: var(--t-sm); }
.how-media img { border-radius: var(--r-lg); border: 5px solid var(--primary-tint); box-shadow: var(--sh-2); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.how-caption { font-size: var(--t-xs); color: var(--muted); margin-top: var(--s-2); }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.feature-card {
  background: var(--surface); border: 3px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-5); transition: transform 0.4s var(--spring), box-shadow 0.4s var(--spring), border-color 0.3s var(--ease);
}
.feature-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: var(--sh-pop); border-color: var(--primary-soft); }
.icon-badge {
  width: 60px; height: 60px; border-radius: 44% 56% 50% 50% / 52% 48% 52% 48%;
  display: grid; place-items: center; margin-bottom: var(--s-3);
  background: var(--primary-tint); color: var(--primary-deep);
}
.icon-badge svg { width: 32px; height: 32px; }
.feature-card:nth-child(2) .icon-badge { background: var(--accent-tint); color: var(--accent-dark); }
.feature-card:nth-child(3) .icon-badge { background: var(--turf-tint); color: var(--turf-deep); }
.feature-card:nth-child(4) .icon-badge { background: var(--turf-tint); color: var(--turf-deep); }
.feature-card:nth-child(5) .icon-badge { background: var(--primary-tint); color: var(--primary-deep); }
.feature-card:nth-child(6) .icon-badge { background: var(--accent-tint); color: var(--accent-dark); }
.feature-card p { color: var(--muted); font-size: var(--t-sm); margin: 0; }

/* ---------- outcomes ---------- */
.outcomes { background: var(--primary-dark); border-radius: var(--r-xl); padding: var(--s-7) var(--s-5); position: relative; overflow: hidden; color: #EAF4FC; }
.outcomes h2, .outcomes h3 { color: #fff; }
.outcomes .lede { color: #C6DFF2; }
.outcomes::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 8% 88%, rgba(255, 138, 61, 0.32) 0 16%, transparent 45%),
    radial-gradient(circle at 96% 10%, rgba(46, 158, 91, 0.30) 0 18%, transparent 48%);
}
.outcome-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); position: relative; z-index: 1; }
.outcome {
  background: rgba(255, 255, 255, 0.07); border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-lg); padding: var(--s-5) var(--s-4);
  transition: transform 0.4s var(--spring), background-color 0.3s var(--ease);
}
.outcome:hover { transform: translateY(-8px); background: rgba(255, 255, 255, 0.12); }
.outcome .figure {
  font-family: var(--font-display); font-weight: 800; font-size: var(--t-3xl); line-height: 1;
  color: var(--accent); display: block; margin-bottom: var(--s-2);
}
.outcome:nth-child(2) .figure, .outcome:nth-child(4) .figure { color: #7FE3A5; }
.outcome p { color: #C6DFF2; font-size: var(--t-sm); margin: 0; }

/* ---------- proof ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.testimonial {
  background: var(--surface); border: 3px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-5); margin: 0; position: relative;
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--spring);
}
.testimonial::after {
  content: ""; position: absolute; left: 42px; bottom: -20px; width: 34px; height: 22px;
  background: var(--surface); border-right: 3px solid var(--line); border-bottom: 3px solid var(--line);
  border-bottom-right-radius: 8px; transform: skewX(-22deg);
}
.testimonial:hover { transform: translateY(-8px) rotate(-0.5deg); box-shadow: var(--sh-2); }
.testimonial .stars { color: var(--accent); letter-spacing: 2px; font-size: var(--t-sm); margin-bottom: var(--s-2); }
.testimonial p { font-size: var(--t-base); color: var(--ink); }
.testimonial figcaption { display: flex; gap: 0.8rem; align-items: center; margin-top: var(--s-4); }
.avatar-dot {
  width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; color: #fff; background: var(--primary);
}
.testimonial:nth-child(2) .avatar-dot { background: var(--turf); }
.testimonial:nth-child(3) .avatar-dot { background: var(--accent-deep); }
.testimonial cite { font-style: normal; font-weight: 600; display: block; font-size: var(--t-sm); }
.testimonial .who { color: var(--muted); font-size: var(--t-xs); display: block; }
.results-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-6);
  background: var(--turf-tint); border: 3px dashed var(--turf-soft); border-radius: var(--r-lg);
  padding: var(--s-5); text-align: center; list-style: none; padding-left: var(--s-5);
}
.results-strip .figure { font-family: var(--font-display); font-weight: 800; font-size: var(--t-2xl); color: var(--turf-deep); display: block; line-height: 1.1; }
.results-strip li { margin: 0; color: var(--ink-soft); font-size: var(--t-sm); }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); align-items: start; }
.plan {
  background: var(--surface); border: 3px solid var(--line); border-radius: var(--r-xl);
  padding: var(--s-6) var(--s-5); position: relative;
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--spring);
}
.plan:hover { transform: translateY(-8px); box-shadow: var(--sh-2); }
.plan.is-recommended {
  border-color: var(--accent); box-shadow: var(--sh-pop); transform: translateY(-14px);
  background: linear-gradient(180deg, var(--accent-tint) 0 120px, var(--surface) 120px);
}
.plan.is-recommended:hover { transform: translateY(-22px); }
.ribbon {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #2A1300; font-family: var(--font-display); font-weight: 800;
  font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.4rem 1.1rem; border-radius: var(--r-pill); box-shadow: 0 4px 0 var(--accent-deep);
  white-space: nowrap;
}
.plan h3 { font-family: var(--font-display); font-size: var(--t-xl); margin-bottom: 0.2rem; }
.plan .who { color: var(--muted); font-size: var(--t-sm); margin-bottom: var(--s-4); }
.plan .price { font-family: var(--font-display); font-weight: 800; font-size: var(--t-3xl); line-height: 1; color: var(--primary-deep); }
.plan .per { font-size: var(--t-sm); color: var(--muted); font-family: var(--font-body); font-weight: 400; }
.plan ul { list-style: none; padding: 0; margin: var(--s-4) 0 var(--s-5); }
.plan li { display: flex; gap: 0.6rem; font-size: var(--t-sm); color: var(--ink-soft); align-items: flex-start; }
.plan li svg { width: 19px; height: 19px; color: var(--turf); flex: none; margin-top: 3px; }
.billing-note {
  margin-top: var(--s-5); text-align: center; color: var(--muted); font-size: var(--t-sm);
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-pill);
  padding: var(--s-3) var(--s-4); max-width: 70ch; margin-inline: auto;
}

/* ---------- faq ---------- */
.faq-list { max-width: 860px; margin-inline: auto; }
.faq-item { background: var(--surface); border: 3px solid var(--line); border-radius: var(--r-lg); margin-bottom: var(--s-3); overflow: hidden; }
.faq-item h3 { margin: 0; font-size: var(--t-md); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: var(--t-md); color: var(--ink);
  padding: var(--s-4) var(--s-5); display: flex; justify-content: space-between; gap: var(--s-3);
  align-items: center;
}
.faq-q:hover { background: var(--primary-tint); }
.faq-q .chev { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-tint); color: var(--primary-deep); display: grid; place-items: center; transition: transform 0.35s var(--spring), background-color 0.2s var(--ease); }
.faq-q .chev svg { width: 18px; height: 18px; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); background: var(--accent); color: #2A1300; }
.faq-a { padding: 0 var(--s-5) var(--s-4); color: var(--muted); font-size: var(--t-sm); }
.faq-a[hidden] { display: none; }

/* ---------- contact ---------- */
.contact-panel {
  background: var(--primary); border-radius: var(--r-xl); padding: var(--s-7) var(--s-5);
  position: relative; overflow: hidden;
}
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--s-6); position: relative; z-index: 1; align-items: start; }
.contact-copy { color: #EAF4FC; }
.contact-copy h2 { color: #fff; }
.contact-copy p { color: #D6E9F7; }
.contact-copy ul { list-style: none; padding: 0; }
.contact-copy li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--t-sm); }
.contact-copy li svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }
.form-card { background: var(--surface); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--sh-3); }
.field { margin-bottom: var(--s-3); }
.field label { display: block; font-weight: 500; font-size: var(--t-sm); margin-bottom: 0.3rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: var(--t-base); color: var(--ink);
  background: var(--bg); border: 2px solid var(--line-strong); border-radius: var(--r-md);
  padding: 0.7rem 0.9rem; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-tint); outline: none;
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--accent-dark); background: var(--accent-tint);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.err { display: block; color: var(--accent-dark); font-size: var(--t-xs); font-weight: 500; margin-top: 0.25rem; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--t-sm); margin: var(--s-4) 0; }
.consent input { width: 22px; height: 22px; flex: none; accent-color: var(--primary); margin-top: 2px; }
.form-note { font-size: var(--t-xs); color: var(--muted); margin-top: var(--s-3); }

/* ---------- author byline ---------- */
.byline {
  display: flex; gap: var(--s-4); align-items: center; background: var(--surface);
  border: 3px solid var(--line); border-left: 10px solid var(--accent); border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5); margin-top: var(--s-7);
}
.byline p { margin: 0; font-size: var(--t-sm); color: var(--muted); }
.byline strong { display: block; font-family: var(--font-display); font-size: var(--t-md); color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #C6D6E3; margin-top: var(--s-8); position: relative; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(90deg, var(--turf) 0 40px, var(--accent) 40px 80px, var(--primary) 80px 120px);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.15fr; gap: var(--s-5); padding: var(--s-7) 0 var(--s-6); }
.site-footer h2, .site-footer h3 { color: #fff; font-size: var(--t-md); margin-bottom: var(--s-3); }
.site-footer a { color: #C6D6E3; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; font-size: var(--t-sm); }
.footer-brand .wordmark { color: #fff; }
.footer-brand p { font-size: var(--t-sm); color: #9FB6C8; max-width: 34ch; }
.social { display: flex; gap: 0.5rem; margin-top: var(--s-4); }
.social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); color: #E6F0F8;
  transition: transform 0.3s var(--spring), background-color 0.2s var(--ease);
}
.social a:hover { background: var(--accent); color: #2A1300; transform: translateY(-4px) scale(1.08); }
.social svg { width: 20px; height: 20px; }
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding: var(--s-4) 0;
  display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between;
  font-size: var(--t-xs); color: #93AABC;
}

/* ---------- inner pages ---------- */
.page-hero { padding: var(--s-7) 0 var(--s-5); position: relative; overflow: hidden; }
.page-hero .crumbs { font-size: var(--t-xs); color: var(--muted); margin-bottom: var(--s-3); }
.page-hero .crumbs a { color: var(--primary-deep); }
.prose { max-width: 76ch; }
.prose h2 { font-size: var(--t-xl); margin-top: var(--s-6); }
.prose h3 { margin-top: var(--s-5); }
.prose li { color: var(--ink-soft); }
.card {
  background: var(--surface); border: 3px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-5); margin-bottom: var(--s-4);
}
.fact-list { list-style: none; padding: 0; }
.fact-list li { display: grid; grid-template-columns: 230px 1fr; gap: var(--s-3); padding: 0.6rem 0; border-bottom: 1px dashed var(--line); }
.fact-list .k { font-weight: 600; color: var(--ink); }
.author-layout { display: grid; grid-template-columns: 300px 1fr; gap: var(--s-6); align-items: start; }
.author-portrait img { border-radius: var(--r-lg); border: 5px solid var(--surface); box-shadow: var(--sh-2); width: 100%; }
.author-portrait { position: sticky; top: 110px; }
.map-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.map-grid li { margin-bottom: var(--s-3); }
.map-grid .d { display: block; color: var(--muted); font-size: var(--t-xs); }
.mini-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px) scale(0.985); transition: opacity 0.6s var(--ease), transform 0.7s var(--spring); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .pain-grid, .outcome-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --s-8: 3.6rem; --s-7: 2.7rem; }
  .hero-grid, .how-grid, .contact-grid, .author-layout { grid-template-columns: 1fr; }
  .feature-grid, .quote-grid, .price-grid, .map-grid { grid-template-columns: 1fr 1fr; }
  .author-portrait { position: static; max-width: 260px; }
  .plan.is-recommended { transform: none; }
  .plan.is-recommended:hover { transform: translateY(-8px); }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 3px solid var(--line); box-shadow: var(--sh-2);
    padding: var(--s-3) 1.1rem var(--s-4);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0.2rem; }
  .main-nav a { padding: 0.75rem 0.9rem; font-size: var(--t-base); }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}
@media (max-width: 620px) {
  :root { --t-base: 1rem; }
  .pain-grid, .outcome-grid, .feature-grid, .quote-grid, .price-grid,
  .results-strip, .field-row, .map-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-badge { position: static; margin-top: var(--s-4); max-width: none; }
  .fact-list li { grid-template-columns: 1fr; gap: 0.2rem; }
  .how, .outcomes, .contact-panel { padding-left: var(--s-4); padding-right: var(--s-4); border-radius: var(--r-lg); }
  .byline { flex-direction: column; align-items: flex-start; }
  .trust-strip { border-radius: var(--r-md); }
}

@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; }
}

@media print {
  .site-header, .site-footer, .contact-panel, .nav-toggle { display: none; }
  body { background: #fff; }
}

/* ==========================================================================
   Sideline Duty magazine
   Same tokens, same typefaces, same rounded confetti world as the rest of
   the site. Nothing new is introduced here beyond layout for long reading.
   ========================================================================== */

/* ---------- shared magazine pieces ---------- */
.mag-crumbs { margin-bottom: var(--s-3); }
.mag-crumbs ol {
  display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0;
  font-size: var(--t-xs); color: var(--muted);
}
.mag-crumbs li { margin: 0; display: flex; align-items: center; gap: 0.4rem; }
.mag-crumbs li + li::before { content: "/"; color: var(--line-strong); }
.mag-crumbs a { color: var(--primary-deep); text-decoration: none; }
.mag-crumbs a:hover { color: var(--accent-dark); text-decoration: underline; }

.mag-standfirst {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.1rem, 2.4vw, var(--t-lg));
  line-height: 1.42; color: var(--ink-soft); max-width: 60ch; margin-bottom: var(--s-4);
}
.mag-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin: 0 0.55rem 0.15rem;
}

/* ---------- magazine index ---------- */
.mag-hero { padding: var(--s-7) 0 var(--s-6); position: relative; overflow: hidden; }
.mag-hero .wrap { position: relative; z-index: 1; }
.mag-hero h1 { margin-bottom: var(--s-3); }
.mag-hero-note { font-size: var(--t-sm); color: var(--muted); max-width: 58ch; margin: 0; }

.mag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5) var(--s-4); }

.mag-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 3px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--spring), border-color 0.3s var(--ease);
}
.mag-card:hover { transform: translateY(-8px); box-shadow: var(--sh-pop); border-color: var(--primary-soft); }
.mag-card-media { display: block; background: var(--shade); }
.mag-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-card-body { padding: var(--s-4) var(--s-4) var(--s-5); display: flex; flex-direction: column; flex: 1; }
.mag-card .eyebrow { font-size: var(--t-xs); padding: 0.25rem 0.75rem; margin-bottom: var(--s-2); align-self: flex-start; }
.mag-card-title { font-size: var(--t-lg); line-height: 1.18; margin-bottom: var(--s-2); }
.mag-card-title a { color: var(--ink); text-decoration: none; }
.mag-card-title a:hover { color: var(--primary-deep); text-decoration: underline; text-decoration-color: var(--accent); }
.mag-card-dek { color: var(--muted); font-size: var(--t-sm); margin-bottom: var(--s-3); }
.mag-card-meta {
  margin: auto 0 0; font-family: var(--font-display); font-weight: 600;
  font-size: var(--t-xs); color: var(--primary-deep); text-transform: uppercase; letter-spacing: 0.06em;
}

/* the lead card takes the full first row */
.mag-card.lead {
  grid-column: 1 / -1; flex-direction: row; align-items: stretch;
  border-color: var(--accent-soft); border-width: 4px; box-shadow: var(--sh-2);
}
.mag-card.lead .mag-card-media { flex: 1 1 56%; }
.mag-card.lead .mag-card-media img { height: 100%; aspect-ratio: auto; min-height: 340px; }
.mag-card.lead .mag-card-body { flex: 1 1 44%; justify-content: center; padding: var(--s-6) var(--s-5); }
.mag-card.lead .mag-card-title { font-size: clamp(1.6rem, 3vw, var(--t-2xl)); }
.mag-card.lead .mag-card-dek { font-size: var(--t-md); color: var(--ink-soft); }

/* ---------- article page ---------- */
.mag-article { padding: var(--s-6) 0 var(--s-8); }
.mag-head { max-width: 74ch; }
.mag-head h1 { margin-bottom: var(--s-3); }
.mag-byline {
  display: flex; align-items: center; gap: var(--s-3);
  background: var(--surface); border: 3px solid var(--line); border-left: 10px solid var(--primary);
  border-radius: var(--r-lg); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-5);
}
.mag-avatar {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center;
  border-radius: 46% 54% 52% 48% / 50% 48% 52% 50%;
  background: var(--primary-tint); color: var(--primary-deep);
}
.mag-avatar svg { width: 26px; height: 26px; }
.mag-byline-text { min-width: 0; }
.mag-author { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--t-md); }
.mag-author a { color: var(--ink); text-decoration: none; }
.mag-author a:hover { color: var(--primary-deep); text-decoration: underline; }
.mag-meta { margin: 0.1rem 0 0; font-size: var(--t-sm); color: var(--muted); }

.mag-figure { margin: 0 0 var(--s-6); }
.mag-figure img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--r-xl); border: 6px solid var(--surface); box-shadow: var(--sh-3);
}
.mag-figure figcaption { font-size: var(--t-xs); color: var(--muted); margin-top: var(--s-3); max-width: 66ch; }

.mag-body { max-width: 68ch; font-size: var(--t-md); line-height: 1.72; color: var(--ink-soft); }
.mag-body > h2 {
  font-size: clamp(1.45rem, 3vw, var(--t-xl)); color: var(--ink);
  margin: var(--s-6) 0 var(--s-3); padding-top: var(--s-2); position: relative;
}
.mag-body > h2::before {
  content: ""; display: block; width: 62px; height: 7px; border-radius: var(--r-pill);
  background: var(--accent); margin-bottom: var(--s-3);
}
.mag-body > h3 { font-size: var(--t-lg); color: var(--ink); margin: var(--s-5) 0 var(--s-2); }
.mag-body p { margin: 0 0 var(--s-4); }
.mag-body ul, .mag-body ol { margin: 0 0 var(--s-4); padding-left: 1.4rem; }
.mag-body li { margin-bottom: var(--s-2); }
.mag-body a { color: var(--primary-deep); text-decoration-color: var(--accent-soft); }
.mag-body a:hover { color: var(--accent-dark); }
.mag-body blockquote {
  margin: var(--s-5) 0; padding: var(--s-4) var(--s-5);
  background: var(--primary-tint); border-left: 10px solid var(--primary);
  border-radius: var(--r-md); font-family: var(--font-display); font-weight: 600;
  font-size: var(--t-md); color: var(--ink); line-height: 1.5;
}
.mag-body blockquote p:last-child { margin-bottom: 0; }
.mag-body table {
  width: 100%; border-collapse: collapse; margin: 0 0 var(--s-5);
  background: var(--surface); border: 3px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; font-size: var(--t-sm);
}
.mag-body th, .mag-body td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line); }
.mag-body th { background: var(--shade); font-family: var(--font-display); color: var(--ink); }
.mag-body tr:last-child td { border-bottom: 0; }

.inline-read {
  margin: var(--s-5) 0; padding: var(--s-3) var(--s-4);
  background: var(--turf-tint); border: 3px dashed var(--turf-soft); border-radius: var(--r-md);
  font-family: var(--font-display); font-weight: 600; font-size: var(--t-sm); color: var(--turf-deep);
}
.inline-read a { color: var(--turf-deep); text-decoration-color: var(--turf); }
.inline-read a:hover { color: var(--accent-dark); }

/* ---------- call to action after the body ---------- */
.mag-cta {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  flex-wrap: wrap; margin: var(--s-7) 0 0; padding: var(--s-6) var(--s-5);
  background: var(--surface); border: 4px solid var(--accent-soft); border-radius: var(--r-xl);
  box-shadow: var(--sh-2); position: relative; overflow: hidden;
}
.mag-cta::before {
  content: ""; position: absolute; top: -60px; right: -50px; width: 170px; height: 170px;
  border-radius: 50%; background: var(--accent-tint);
}
.mag-cta-copy { position: relative; z-index: 1; max-width: 54ch; }
.mag-cta h2 { font-size: var(--t-xl); margin-bottom: var(--s-2); }
.mag-cta p { margin: 0; color: var(--muted); font-size: var(--t-sm); }
.mag-cta .btn { position: relative; z-index: 1; flex: none; }

/* ---------- author box ---------- */
.mag-article .mag-author,
section.mag-author {
  display: grid; grid-template-columns: 160px 1fr; gap: var(--s-5); align-items: start;
  margin-top: var(--s-6); padding: var(--s-5);
  background: var(--primary-tint); border-radius: var(--r-xl); border: 3px solid var(--primary-soft);
}
section.mag-author img {
  width: 160px; height: 160px; object-fit: cover;
  border-radius: 46% 54% 52% 48% / 50% 48% 52% 50%;
  border: 5px solid var(--surface); box-shadow: var(--sh-2);
}
section.mag-author p { color: var(--ink-soft); font-size: var(--t-sm); margin-bottom: var(--s-3); }
section.mag-author p:last-child { margin-bottom: 0; }
.mag-author-name {
  font-family: var(--font-display); font-weight: 800; font-size: var(--t-lg);
  color: var(--ink) !important; margin-bottom: var(--s-2) !important;
}

/* ---------- read also ---------- */
.mag-related { margin-top: var(--s-7); }
.mag-related > h2 { font-size: var(--t-xl); margin-bottom: var(--s-4); }
.mag-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.mag-rel {
  background: var(--surface); border: 3px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; padding-bottom: var(--s-4);
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--spring), border-color 0.3s var(--ease);
}
.mag-rel:hover { transform: translateY(-6px); box-shadow: var(--sh-2); border-color: var(--turf-soft); }
.mag-rel-media { display: block; }
.mag-rel-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel-title { font-size: var(--t-md); line-height: 1.24; margin: var(--s-3) var(--s-4) var(--s-2); }
.mag-rel-title a { color: var(--ink); text-decoration: none; }
.mag-rel-title a:hover { color: var(--primary-deep); text-decoration: underline; }
.mag-rel-dek { margin: 0 var(--s-4) var(--s-2); font-size: var(--t-sm); color: var(--muted); }
.mag-rel-meta {
  margin: 0 var(--s-4); font-size: var(--t-xs); color: var(--primary-deep);
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}

/* ---------- home page magazine teaser ---------- */
.mag-teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.mag-teaser {
  background: var(--surface); border: 3px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; padding-bottom: var(--s-4);
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--spring), border-color 0.3s var(--ease);
}
.mag-teaser:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--sh-pop); border-color: var(--accent-soft); }
.mag-teaser-media { display: block; }
.mag-teaser img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-teaser h3 { font-size: var(--t-md); line-height: 1.24; margin: var(--s-3) var(--s-4) var(--s-2); }
.mag-teaser h3 a { color: var(--ink); text-decoration: none; }
.mag-teaser h3 a:hover { color: var(--primary-deep); text-decoration: underline; }
.mag-teaser p { margin: 0 var(--s-4) var(--s-2); font-size: var(--t-sm); color: var(--muted); }
.mag-teaser .mag-card-meta { margin: 0 var(--s-4); }

/* ---------- author page article list ---------- */
.mag-list { list-style: none; padding: 0; margin: 0; }
.mag-list li {
  padding: var(--s-3) 0; border-bottom: 1px dashed var(--line);
  display: flex; flex-wrap: wrap; gap: 0.3rem var(--s-3); justify-content: space-between; align-items: baseline;
}
.mag-list li:last-child { border-bottom: 0; }
.mag-list a { font-family: var(--font-display); font-weight: 700; color: var(--ink); text-decoration: none; }
.mag-list a:hover { color: var(--primary-deep); text-decoration: underline; text-decoration-color: var(--accent); }
.mag-list time { font-size: var(--t-xs); color: var(--muted); white-space: nowrap; }

/* ---------- magazine responsive ---------- */
@media (max-width: 1080px) {
  .mag-grid, .mag-related-grid, .mag-teaser-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .mag-card.lead { flex-direction: column; }
  .mag-card.lead .mag-card-media img { min-height: 0; aspect-ratio: 3 / 2; }
  .mag-card.lead .mag-card-body { padding: var(--s-5) var(--s-4); }
  .mag-body { font-size: var(--t-base); }
  .mag-cta { padding: var(--s-5) var(--s-4); }
}
@media (max-width: 620px) {
  .mag-grid, .mag-related-grid, .mag-teaser-grid { grid-template-columns: 1fr; }
  .mag-article { padding-top: var(--s-5); }
  .mag-figure img { border-radius: var(--r-lg); border-width: 4px; }
  .mag-byline { flex-direction: row; align-items: flex-start; padding: var(--s-3); }
  .mag-meta { line-height: 1.9; }
  .mag-cta { border-radius: var(--r-lg); }
  .mag-cta .btn { width: 100%; font-size: var(--t-base); padding: 0.8rem 1.1rem; }
  section.mag-author { grid-template-columns: 1fr; justify-items: start; padding: var(--s-4); border-radius: var(--r-lg); }
  .mag-list li { flex-direction: column; align-items: flex-start; }
  .mag-body table { display: block; overflow-x: auto; }
}
@media (max-width: 400px) {
  .mag-card-title { font-size: var(--t-md); }
  .mag-body > h2::before { width: 44px; height: 6px; }
}



/* 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; } }


/* Long unbroken strings inside article prose, such as a rule reference or a URL,
   must wrap rather than push the page sideways on a phone. */
.article-body, .article-body p, .article-body li, .article-body td { overflow-wrap: anywhere; }
.article-body a { overflow-wrap: anywhere; word-break: break-word; }


/* Phone: the byline sits in a heavily bordered box, so its text needs to be allowed
   to wrap rather than hold the box wider than the screen. */
@media (max-width: 560px) {
  .mag-byline { flex-wrap: wrap; border-left-width: 6px; padding: var(--s-3); }
  .mag-byline-text { flex: 1 1 100%; min-width: 0; }
  .mag-author, .mag-meta { overflow-wrap: anywhere; }
}


/* 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; }


/* 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%; }
}
