/* JP Distribution design system (red, black and white, 24 Nov 2026).
   Brand red is sampled from the original JP Distribution logo PNG (#C22929,
   94% of its red pixels). White leads, charcoal carries structure and dark
   sections, and red is kept for actions, links, indicators and highlights.
   Every colour lives in the tokens below; components only use tokens.
   Contrast checked against WCAG 2.2 AA: see BRAND-COLOURS.md. */

:root {
  /* Core identity */
  --red: #C22929;          /* sampled from the logo: primary buttons, links, accents */
  --red-deep: #9C1D1D;     /* logo shade: primary hover, stronger emphasis */
  --red-soft: #FBEFF0;     /* subtle highlights and selected states */
  --red-on-dark: #E85C5C;  /* red text on dark sections (5.5:1 on #111111) */
  --charcoal: #171717;     /* headings, body text, secondary buttons */
  --ink: #111111;          /* dark sections and footer */
  --white: #FFFFFF;

  /* Supporting neutrals */
  --text-2: #5F6670;       /* supporting copy (5.8:1 on white) */
  --text-3: #6B7280;       /* meta, captions, placeholders (4.8:1 on white) */
  --text-on-dark: #C9CDD2; /* body copy on dark sections (11.8:1) */
  --light: #F6F7F8;        /* alternating sections */
  --border: #E5E7EB;       /* dividers, cards, form borders */
  --border-strong: #9CA3AF;
  --line-dark: rgba(255, 255, 255, .14);

  /* Legacy aliases used by inline template styles */
  --black: var(--charcoal);
  --obsidian: var(--ink);
  --graphite: #2B2E33;
  --iron: var(--text-2);
  --slate: var(--text-2);
  --steel: var(--text-3);
  --fog: var(--text-on-dark);
  --mist: var(--border);
  --cloud: var(--light);
  --paper: var(--light);

  --font: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --r: 6px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, .05);
  --shadow-md: 0 1px 2px rgba(17, 17, 17, .04), 0 12px 32px -12px rgba(17, 17, 17, .16);
  --max: 1200px;
  --gutter: 24px;
  --section: 88px;

  /* semantic, remapped on dark sections */
  --muted: var(--text-2);
  --line: var(--border);
  --accent: var(--red);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--charcoal);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
p { margin: 0 0 16px; }
h1, h2, h3, h4 { margin: 0 0 16px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--charcoal); }
h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 19px; line-height: 1.4; letter-spacing: -0.01em; }
ul, ol { margin: 0 0 16px; padding-left: 20px; }
::selection { background: var(--red-soft); color: var(--charcoal); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.dark :focus-visible, .footer :focus-visible { outline-color: var(--white); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- Announcement + nav --------------------------------------------- */
.announce { background: var(--charcoal); color: var(--white); font-size: 14px; font-weight: 500; text-align: center; padding: 9px 16px; }
.announce a { color: var(--white); text-decoration-color: var(--red-on-dark); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.nav { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 80px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo img { height: 64px; width: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; list-style: none; padding: 0; margin-bottom: 0; }
.nav__links a { font-size: 14px; font-weight: 500; color: var(--charcoal); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav__links a:hover { border-bottom-color: var(--border-strong); }
.nav__links a[aria-current] { border-bottom-color: var(--red); }
.nav__cta { display: flex; gap: 8px; }
.nav__toggle { display: none; margin-left: auto; }
.nav__toggle summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 500; border: 1px solid var(--charcoal); padding: 8px 14px; border-radius: var(--r); }
.nav__toggle summary::-webkit-details-marker { display: none; }
.nav__drawer { position: absolute; left: 0; right: 0; top: 80px; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px var(--gutter) 24px; box-shadow: var(--shadow-md); }
.nav__drawer a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); text-decoration: none; font-weight: 500; }
.nav__drawer a.btn { display: flex; margin-top: 16px; width: 100%; padding: 13px 24px; border-bottom: 1.5px solid var(--red); }

/* ---- Buttons ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1.3 var(--font); padding: 13px 24px; border-radius: var(--r); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn--primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn--ghost:hover { background: var(--charcoal); color: var(--white); }
.btn--sm { font-size: 14px; padding: 9px 16px; }
.btn:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; }
.dark .btn--primary:focus-visible { outline-color: var(--white); }
.dark .btn--ghost { color: var(--white); border-color: var(--white); }
.dark .btn--ghost:hover { background: var(--white); color: var(--charcoal); }
.link-arrow { font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; gap: 6px; color: var(--red); }
.link-arrow::after { content: '→'; transition: transform .15s; }
a:hover > .link-arrow::after, .link-arrow:hover::after { transform: translateX(3px); }
.dark .link-arrow { color: var(--red-on-dark); }

/* ---- Bands -------------------------------------------------------------- */
.band { padding: var(--section) 0; }
.band--paper { background: var(--light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band--white { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dark { background: var(--ink); color: var(--white); --muted: var(--text-on-dark); --line: var(--line-dark); --accent: var(--red-on-dark); }
.dark p, .dark li { color: var(--text-on-dark); }
.dark h2, .dark h3, .dark strong { color: var(--white); }
.tag { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.dark .tag { color: var(--red-on-dark); }
.wash { color: var(--red); }
.dark .wash { color: var(--red-on-dark); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 720px; }
.section-head p { color: var(--muted); max-width: 560px; margin: 8px 0 0; }
.lead { font-size: 19px; line-height: 1.55; color: var(--text-2); }
.dark .lead { color: var(--text-on-dark); }

/* ---- Hero --------------------------------------------------------------- */
.hero { padding: 80px 0 88px; background: var(--white); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 52px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 24px; }
.hero .lead { margin-bottom: 32px; max-width: 560px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__meta { margin-top: 32px; display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); }
.hero__meta span::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--red); border-radius: 50%; margin-right: 8px; vertical-align: middle; }

.page-hero { padding: 56px 0; border-bottom: 1px solid var(--border); background: var(--light); }
.page-hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.page-hero h1 { font-size: 44px; font-weight: 700; line-height: 1.12; letter-spacing: -0.03em; }
.page-hero .lead { margin: 0; }
.page-hero__img { aspect-ratio: 4/3; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--white); }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }

.crumbs { font-size: 12px; color: var(--text-2); margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--border-strong); }
.crumbs a { text-decoration: none; color: var(--red); }
.crumbs a:hover { text-decoration: underline; }

/* ---- Widget ------------------------------------------------------------- */
.widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-md); overflow: hidden; }
.widget__head { display: flex; border-bottom: 1px solid var(--border); }
.widget__tab { flex: 1; font: 500 14px/1.3 var(--font); padding: 14px 12px; background: none; border: 0; border-right: 1px solid var(--border); color: var(--text-2); cursor: pointer; }
.widget__tab:last-child { border-right: 0; }
.widget__tab:hover { color: var(--charcoal); }
.widget__tab[aria-selected="true"] { color: var(--charcoal); font-weight: 600; box-shadow: inset 0 -3px 0 var(--red); }
.widget__body { padding: 20px 20px 8px; }
.widget__title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.widget__title strong { font-size: 14px; font-weight: 600; }
.widget__title span { font-size: 12px; color: var(--text-3); }
.widget__chart { width: 100%; height: auto; margin-top: 12px; }
.widget__chart text { font: 500 10px var(--font); fill: var(--text-3); }
.widget__legend { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.widget__legend div { padding: 12px; border-right: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.widget__legend div:last-child { border-right: 0; }
.widget__legend b { display: block; color: var(--charcoal); font-size: 13px; font-weight: 600; }
.widget__foot { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--light); }
.widget__foot select { flex: 1; }
.widget__note { font-size: 11px; color: var(--text-3); padding: 0 20px 12px; margin: 0; }

/* ---- Inputs ------------------------------------------------------------- */
input, select, textarea { font: 400 14px/1.4 var(--font); color: var(--charcoal); background: var(--white); border: 1px solid var(--border-strong); border-radius: var(--r); padding: 10px 12px; width: 100%; }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(194, 41, 41, .18); }
textarea { min-height: 120px; resize: vertical; }
label { font-size: 14px; font-weight: 500; display: block; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.field small { display: block; color: var(--text-3); font-size: 12px; margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
fieldset { border: 1px solid var(--border); border-radius: var(--r); padding: 16px; margin: 0 0 16px; }
legend { font-size: 14px; font-weight: 600; padding: 0 6px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; }
.checks label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: 0; }
.checks input { width: auto; margin-top: 3px; accent-color: var(--red); }
.form-card { background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--red); border-radius: var(--r); padding: 32px; box-shadow: var(--shadow-md); }
.form-step { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin: 24px 0 12px; padding-top: 24px; border-top: 1px solid var(--border); }
.form-step:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.hp { display: none; }
.consent { font-size: 12px; color: var(--text-2); }
.consent a:not(.btn) { color: var(--red); }

.subscribe { display: flex; max-width: 520px; margin: 24px auto 0; }
.subscribe input { border-radius: var(--r) 0 0 var(--r); padding: 12px; font-size: 16px; border-color: var(--white); }
.subscribe .btn { border-radius: 0 var(--r) var(--r) 0; }

/* ---- Strips, grids, cards ------------------------------------------- */
.strip { padding: 32px 0; border-bottom: 1px solid var(--border); }
.strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.strip__label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--red); }
.strip__items { display: flex; gap: 36px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.strip__items li { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--charcoal); }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); display: flex; flex-direction: column; text-decoration: none; color: var(--charcoal); transition: border-color .15s, box-shadow .2s; overflow: hidden; }
a.card:hover { border-color: var(--charcoal); box-shadow: var(--shadow-md); }
.card__img { aspect-ratio: 16/10; overflow: hidden; background: var(--light); border-bottom: 1px solid var(--border); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.card:hover .card__img img { transform: scale(1.03); }
.card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 19px; margin-bottom: 8px; }
.card__body p { font-size: 14px; color: var(--text-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__body .link-arrow { margin-top: auto; padding-top: 16px; }
.card--flat { padding: 24px; }
.card--flat h3 { margin-bottom: 8px; }
.card--flat p { font-size: 14px; color: var(--text-2); }
.card--flat a:not(.btn) { color: var(--red); }
.dark .card { background: rgba(255, 255, 255, .04); border-color: var(--line-dark); color: var(--white); }
.dark .card p { color: var(--text-on-dark); }
.dark a.card:hover { border-color: var(--white); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 72px; }
.feature--flip > :first-child { order: 2; }
.feature__img { aspect-ratio: 4/3; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.dark .feature__img { border-color: var(--line-dark); }
.feature__img img { width: 100%; height: 100%; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--line); font-size: 15px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); color: var(--red); }
.dark .ticks li::before { color: var(--red-on-dark); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: 1px solid var(--border); border-radius: var(--r); background: var(--white); counter-reset: step; }
.step { padding: 24px; border-right: 1px solid var(--border); counter-increment: step; }
.step:last-child { border-right: 0; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-size: 13px; font-weight: 700; color: var(--red); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--red); width: 28px; }
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-2); margin: 0; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); }
.stat-row div { padding: 24px; border-right: 1px solid var(--line); }
.stat-row div:last-child { border-right: 0; }
.stat-row b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; color: var(--red); }
.dark .stat-row b { color: var(--white); }
.stat-row span { font-size: 14px; color: var(--muted); }

.list-links { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.list-links li { border-bottom: 1px solid var(--border); }
.list-links a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; text-decoration: none; font-weight: 500; }
.list-links a::after { content: '→'; color: var(--red); }
.list-links a:hover { color: var(--red); }
.list-links span { font-weight: 400; color: var(--text-2); font-size: 14px; }

/* ---- Content layout --------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.aside { position: sticky; top: 104px; display: grid; gap: 16px; }
.aside .card--flat h3 { font-size: 16px; }
.prose { font-size: 17px; line-height: 1.7; color: var(--graphite); max-width: 720px; }
.prose h2 { font-size: 27px; margin: 48px 0 16px; }
.prose h3 { margin: 32px 0 12px; }
.prose a:not(.btn) { color: var(--red); text-decoration: underline; text-decoration-color: rgba(194, 41, 41, .35); text-underline-offset: 3px; }
.prose a:not(.btn):hover { text-decoration-color: var(--red); }
.prose li { margin-bottom: 8px; }
.prose .lede { font-size: 19px; line-height: 1.55; color: var(--charcoal); padding: 20px 24px; background: var(--light); border: 1px solid var(--border); border-left: 3px solid var(--red); border-radius: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 24px 0; background: var(--white); border: 1px solid var(--border); }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose th { background: var(--light); font-weight: 600; color: var(--charcoal); }
.prose thead th { background: var(--charcoal); color: var(--white); }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); margin-top: 24px; }
.article-meta a:not(.btn) { color: var(--red); }
.article-hero { aspect-ratio: 21/9; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 48px; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.toc { font-size: 14px; }
.toc ol { padding-left: 18px; margin: 0; }
.toc li { margin-bottom: 6px; }
.toc a { text-decoration: none; color: var(--text-2); }
.toc a:hover { color: var(--red); }
.callout { background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--red); border-radius: 0; padding: 24px; margin-top: 48px; }
.gate { background: var(--light); margin: 40px 0; }
.gate ul { margin-bottom: 0; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 17px; font-weight: 500; font-size: 22px; color: var(--red); }
.faq details[open] summary::after { content: '−'; }
.faq summary:hover { color: var(--red); }
.dark .faq summary:hover { color: var(--red-on-dark); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; max-width: 760px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 32px; }
.chips li { margin: 0; }
.chips > li:not(:has(a)) { font-size: 14px; font-weight: 500; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--r); background: var(--light); }
.chips a { display: inline-block; font-size: 14px; font-weight: 500; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--r); background: var(--white); text-decoration: none; }
.chips a:hover { border-color: var(--charcoal); }
.chips a[aria-current] { border-color: var(--red); background: var(--red-soft); color: var(--red); }

.nap { font-style: normal; line-height: 1.7; }
.nap a:not(.btn) { color: var(--red); }
.footer .nap a:not(.btn), .dark .nap a:not(.btn) { color: var(--red-on-dark); }
.map-frame { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; background: var(--light); display: grid; place-items: center; color: var(--text-3); font-size: 14px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.group-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; }
.group-card h3 { margin-bottom: 4px; }
.group-card .role { font-size: 14px; color: var(--text-2); margin-bottom: 16px; }
.group-card p { font-size: 14px; color: var(--text-2); }
.group-card ul { list-style: none; padding: 0; margin: auto 0 0; border-top: 1px solid var(--border); }
.group-card li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 500; text-decoration: none; }
.group-card li a:hover { color: var(--red); }
.group-card--self { background: var(--ink); color: var(--white); border-color: var(--ink); border-top: 3px solid var(--red); }
.group-card--self h3 { color: var(--white); }
.group-card--self p, .group-card--self .role { color: var(--text-on-dark); }
.group-card--self .tag { color: var(--red-on-dark); }
.group-card--self ul, .group-card--self li a { border-color: var(--line-dark); }
.group-card--self li a:hover { color: var(--red-on-dark); }

/* ---- Footer --------------------------------------------------------- */
.footer { background: var(--ink); color: var(--text-on-dark); font-size: 14px; padding: 72px 0 32px; border-top: 3px solid var(--red); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer h2 { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: var(--text-on-dark); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--red-on-dark); text-underline-offset: 4px; }
.footer .logo { background: var(--white); padding: 8px 12px; border-radius: var(--r); margin-bottom: 20px; }
.footer .logo img { height: 72px; }
.footer__group { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer__group strong { color: var(--white); font-weight: 500; }
.footer__legal { margin-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; }

/* ---- Responsive ----------------------------------------------------- */
@media (max-width: 1240px) {
  .nav__links { gap: 18px; }
  .nav__links a { white-space: nowrap; }
}
@media (max-width: 1080px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --section: 56px; }
  .hero__grid, .page-hero__grid, .feature, .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feature--flip > :first-child { order: 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .aside { position: static; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-row div:nth-child(2) { border-right: 0; }
  .stat-row div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .step { border-right: 0; border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  h1 { font-size: 30px; } h2 { font-size: 25px; }
  .nav__inner { height: 68px; }
  .logo img { height: 52px; }
  .nav__drawer { top: 68px; }
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 34px; }
  .page-hero h1 { font-size: 31px; }
  .lead { font-size: 17px; }
  .grid--2, .grid--3, .grid--4, .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .widget__legend { grid-template-columns: repeat(2, 1fr); }
  .widget__legend div:nth-child(2) { border-right: 0; }
  .widget__legend div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .form-card { padding: 20px; }
  .subscribe { flex-direction: column; gap: 8px; }
  .subscribe input, .subscribe .btn { border-radius: var(--r); }
  .announce { font-size: 13px; }
  .prose { font-size: 16px; }
  .prose table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
