/* jldev.ca — single stylesheet. No inline styles anywhere (strict CSP). */

/* ---------- Fonts (self-hosted, Latin subset) ---------- */
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-var.woff2?v=2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-var.woff2?v=2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --sunk: #EEF1F5;
  --ink: #0E1726;
  --muted: #4A5568;
  --line: #D9DEE6;
  --line-strong: #7A8699;
  --brand: #0C192A;
  --on-brand: #FFFFFF;
  --on-brand-muted: #C3CCD9;
  --accent: #B54A17;
  --accent-hover: #953C12;
  --on-accent: #FFFFFF;
  --accent-soft: #F8E6DC;
  --accent-on-brand: #EE7A3E;
  --link: #0C192A;
  --focus: #1D5FD1;
  --ok: #1E6B45;
  --ok-bg: #E3F1E8;
  --err: #B42318;
  --err-bg: #FCEDEB;
  --logo-c: #0C192A;
  --logo-jl: #FFFFFF;
  --logo-w: #0C192A;
  --footer: #0A1526;

  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;

  --r-sm: 4px;
  --r: 6px;
  --r-lg: 8px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 8vw, 112px);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1422;
    --surface: #111D30;
    --sunk: #0E1828;
    --ink: #E7ECF3;
    --muted: #A6B1C2;
    --line: #24344D;
    --line-strong: #5C6F8C;
    --brand: #16294A;
    --accent: #EE7A3E;
    --accent-hover: #F59460;
    --on-accent: #0B1422;
    --accent-soft: #3A2116;
    --link: #E7ECF3;
    --focus: #7FB0FF;
    --ok: #4CC38A;
    --ok-bg: #0F2A1F;
    --err: #F97066;
    --err-bg: #2A1214;
    --logo-c: #FFFFFF;
    --logo-jl: #0C192A;
    --logo-w: #FFFFFF;
    --footer: #070F1A;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
p, ul, ol, dl, dd, figure, h1, h2, h3 { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: var(--r); }
.skip:focus { left: 16px; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--top { padding-block: clamp(48px, 7vw, 96px) var(--section); }
.section--tight { padding-bottom: clamp(32px, 4vw, 48px); }
.section--flush-top { padding-top: 0; }
.band--surface { background: var(--surface); border-block: 1px solid var(--line); }
.band--sunk { background: var(--sunk); border-block: 1px solid var(--line); }
.band--brand { background: var(--brand); color: var(--on-brand); }
.stack-sm > * + * { margin-top: 12px; }
.stack-md > * + * { margin-top: 22px; }
.stack-lg > * + * { margin-top: 40px; }
.narrow { max-width: 760px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--5 { gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.grid--4 { gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; grid-template-columns: 1fr; }
.split--top { align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide { grid-template-columns: 1fr 2fr; }
}

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }

/* ---------- Type ---------- */
.h1 { font: 600 clamp(36px, 5.2vw, 62px)/1.08 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.h1--md { font-size: clamp(34px, 4.4vw, 52px); }
.h1--narrow { max-width: 18ch; }
.h2 { font: 600 clamp(28px, 3.4vw, 42px)/1.15 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.h3 { font: 600 20px/1.3 var(--sans); }
.h3--serif { font: 600 clamp(24px, 2.4vw, 30px)/1.2 var(--serif); }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.large { font-size: 18px; line-height: 1.65; max-width: 64ch; }
.small { font-size: 15px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.eyebrow--muted { color: var(--muted); }
.eyebrow--onbrand { color: var(--on-brand-muted); }
.link-strong { font-weight: 600; }
.note { padding: 16px 20px; background: var(--sunk); border-radius: var(--r); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--r); border: 2px solid transparent;
  font: 600 16px/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 18px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header { position: relative; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; color: var(--ink); }
.logo { height: 40px; width: auto; }
.logo-c { fill: var(--logo-c); }
.logo-jl { fill: var(--logo-jl); }
.logo-w { fill: var(--logo-w); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__link { color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 2px; }
.nav__link:hover { color: var(--accent); }
.nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.menu-toggle { display: none; min-height: 44px; padding: 8px 14px; }
.menu-toggle__icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--surface); }
.mobile-nav__inner { display: flex; flex-direction: column; padding-block: 8px 24px; }
.mobile-nav__link { color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-nav__link[aria-current="page"] { color: var(--accent); }
.mobile-nav .btn { margin-top: 16px; }

/* Small screens: with JS the menu collapses behind the button; without JS the links stay visible. */
@media (max-width: 980px) {
  .js .nav { display: none; }
  .js .menu-toggle { display: inline-flex !important; }
  .js .mobile-nav.is-open { display: block; }
  html:not(.js) .site-header__bar { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .nav { flex-wrap: wrap; gap: 8px 20px; }
}

/* ---------- Hero + before/after visual ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) var(--section); }
.hero__grid { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.05fr 1fr; } }
.hero__copy > * + * { margin-top: 28px; }

.ba { position: relative; height: clamp(340px, 36vw, 440px); }
.ba__before {
  position: absolute; left: 0; top: 0; width: 66%; padding: 14px; transform: rotate(-1.5deg);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(14, 23, 38, .06);
}
.ba__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.ba__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ba__label--after { color: var(--accent); }
.ba__file { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sheet > span { display: block; height: 24px; padding: 0 6px; font-size: 11px; line-height: 24px; white-space: nowrap; overflow: hidden; color: var(--muted); background: var(--surface); }
.sheet .sheet__h { font-weight: 700; color: var(--ink); }
.sheet .sheet__err { color: var(--err); font-weight: 700; }
.sheet .sheet__warn { grid-column: span 3; background: var(--accent-soft); color: var(--ink); font-weight: 700; }
.ba__after {
  position: absolute; right: 0; bottom: 0; width: 70%; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 16px 40px rgba(14, 23, 38, .16);
}
.ba__appbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--brand); color: var(--on-brand); }
.ba__appname { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.ba__appname .logo-c { fill: #FFFFFF; }
.ba__appname .logo-jl { fill: #0C192A; }
.ba__avatar { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .18); font-size: 11px; font-weight: 700; }
.ba__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ba__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--line); }
.ba__row:last-of-type { border-bottom: 0; }
.pill { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--wait { background: var(--accent-soft); color: var(--ink); }
.pill--draft { background: var(--sunk); color: var(--muted); }
.ba__toast { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 10px 12px; border-radius: var(--r); background: var(--sunk); font-size: 13px; }

/* ---------- Icons ---------- */
.icon--stroke { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.card--pad { padding: clamp(24px, 3vw, 40px); }
.card--bg { background: var(--bg); }
.card--outline { border: 2px solid var(--brand); }
.card--brand { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.card--brand .sq { background: var(--accent-on-brand); }
.card--ok { border: 2px solid var(--ok); }
.tag { display: inline-block; align-self: flex-start; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-sm); background: var(--sunk); color: var(--ink); }
.tag--lg { font-size: 14px; padding: 5px 12px; }

/* Symptoms list */
.sq { flex: none; width: 10px; height: 10px; margin-top: .55em; background: var(--accent); }
.symptoms { display: grid; gap: 0 56px; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); }
.symptoms li { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); font-size: 20px; line-height: 1.45; }

/* Price band */
.price { padding-block: clamp(64px, 8vw, 104px); }
.price .h2 { color: var(--on-brand); }
.price__big { font: 600 clamp(52px, 7vw, 96px)/1 var(--serif); letter-spacing: -0.02em; text-decoration: line-through; text-decoration-thickness: 4px; text-decoration-color: var(--accent-on-brand); }
.price__caption { margin-top: 10px; color: var(--on-brand-muted); }
.price__text { font-size: 18px; color: var(--on-brand-muted); max-width: 60ch; }

/* Conversions */
.conv { display: flex; flex-direction: column; gap: 18px; padding: 24px; }
.conv__to { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--muted); }

/* Icon list (M365) */
.icon-list li { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--line); font-size: 18px; }
.icon-list li:last-child { border-bottom: 1px solid var(--line); }
.icon-list .icon--stroke { color: var(--accent); margin-top: 2px; }

/* Method */
.method { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .method { grid-template-columns: 2fr 1fr; } }
.phase { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 3vw, 40px); }
.phase--main { border: 2px solid var(--brand); }
.phase--alt { background: var(--sunk); }
.phase__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.phase__note { margin-top: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-static { font-size: 14px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--brand); color: var(--on-brand); }
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.steps li { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 3px solid var(--accent); }
.steps__n { font: 600 28px/1 var(--serif); color: var(--accent); }
.steps strong { font-size: 18px; }
.steps .muted { font-size: 16px; }

/* Bullets */
.bullets { display: flex; flex-direction: column; gap: 14px; font-size: 18px; }
.bullets li { display: flex; gap: 14px; }

/* Numbered list */
.numbered li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 18px; }
.numbered li:last-child { border-bottom: 1px solid var(--line); }
.numbered__n { font: 600 22px/1.3 var(--serif); color: var(--accent); }

/* Case card */
.case-card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.case-card__title a { color: var(--ink); text-decoration: none; }
.case-card__title a:hover { color: var(--accent); }
.stretched::after { content: ""; position: absolute; inset: 0; }
.case-card__result { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font: 600 22px/1.3 var(--serif); }

/* Maintenance */
.maint { padding-block: clamp(56px, 7vw, 88px); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.faq__title { margin-bottom: 4px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 44px; padding: 20px 0; font-weight: 600; font-size: 18px; line-height: 1.4; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__item summary .icon--stroke { stroke-width: 2; transition: transform .2s ease; }
.faq__item[open] summary .icon--stroke { transform: rotate(45deg); }
.faq__item p { margin: 0 0 22px; max-width: 70ch; color: var(--muted); }

/* CTA band */
.cta-band { padding-block: clamp(72px, 9vw, 120px); }
.cta-band__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.cta-band__title { font: 600 clamp(32px, 4.4vw, 56px)/1.1 var(--serif); letter-spacing: -0.015em; max-width: 20ch; text-wrap: balance; }

/* ---------- About ---------- */
.about { display: grid; gap: clamp(40px, 6vw, 88px); align-items: start; grid-template-columns: 1fr; }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 7fr; } .about__copy { padding-top: 32px; } }
/* About: experience panel (stands in for a portrait) */
.about__panel { background: var(--brand); color: var(--on-brand); border-radius: var(--r-lg); padding: clamp(28px, 3.5vw, 40px); display: flex; flex-direction: column; gap: clamp(28px, 5vw, 64px); }
.about__badge { width: 64px; height: 64px; }
.about__stat { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.about__stat-n { font: 400 clamp(64px, 8vw, 96px)/1 var(--serif); letter-spacing: -0.02em; }
.about__stat-label { color: var(--on-brand-muted); font-size: 16px; }
.about__skills { list-style: none; margin: 0; padding: 28px 0 0; border-top: 1px solid rgba(255,255,255,.14); display: grid; gap: 12px; font-weight: 600; font-size: 15px; }
.about__skills li { display: flex; align-items: center; gap: 12px; }
.about__skills li::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--accent-on-brand); }
.photo-placeholder { display: grid; place-items: center; aspect-ratio: 4 / 5; padding: 24px; text-align: center; font-size: 15px; color: var(--muted); background: var(--sunk); border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); }
.about__photo img { width: 100%; height: auto; border-radius: var(--r-lg); }
.about__lead { font: 400 clamp(20px, 1.9vw, 24px)/1.55 var(--serif); max-width: 34ch; }
.pull { padding-left: 20px; border-left: 3px solid var(--accent); font-size: 18px; font-weight: 700; max-width: 60ch; }
.process { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(28px, 4vw, 56px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }

/* ---------- Work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); font: 500 16px/1 var(--sans); cursor: pointer; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 40px; background: var(--sunk); }

/* ---------- Case study ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; font-size: 15px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.case { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; grid-template-columns: 1fr; }
@media (min-width: 960px) { .case { grid-template-columns: 2fr 1fr; } }
.case__arrow { display: flex; justify-content: center; color: var(--accent); }
.case__arrow .icon--stroke { stroke-width: 2; }
.inset { padding: 16px 18px; background: var(--sunk); border-radius: var(--r); }
.inset > * + * { margin-top: 8px; }
.result { padding: clamp(28px, 4vw, 48px); background: var(--brand); color: var(--on-brand); border-radius: var(--r-lg); }
.result__value { margin-top: 10px; font: 600 clamp(28px, 3.4vw, 42px)/1.15 var(--serif); }
.case__aside { display: flex; flex-direction: column; gap: 20px; }
.facts { margin-top: 6px; }
.facts > div { padding: 14px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin-top: 4px; }
.quote-elsewhere { padding: 20px 24px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); }
.quote-elsewhere__value { font: 600 22px/1.3 var(--serif); text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* ---------- Contact form ---------- */
.contact { display: grid; gap: clamp(40px, 6vw, 88px); align-items: start; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .contact { grid-template-columns: 2fr 3fr; } }
.form { position: relative; display: flex; flex-direction: column; gap: 26px; padding: clamp(24px, 4vw, 44px); }
.form__grid { display: grid; gap: 22px 20px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--narrow { max-width: 360px; }
.fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: 12px; }
.label { font-weight: 600; font-size: 16px; line-height: 1.35; }
.opt { font-weight: 400; color: var(--muted); }
.input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--ink); font: 400 17px/1.4 var(--sans); }
.input:hover { border-color: var(--ink); }
.input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.input[aria-invalid="true"] { border: 2px solid var(--err); }
textarea.input { min-height: 150px; resize: vertical; }
.err { display: flex; gap: 8px; align-items: flex-start; color: var(--err); font-size: 15px; font-weight: 600; line-height: 1.4; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 500; cursor: pointer; }
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 18px 20px; border-radius: var(--r); font-weight: 600; }
.alert--error { border: 2px solid var(--err); background: var(--err-bg); }
.alert__title { color: var(--ink); }
.alert ul { margin-top: 8px; padding-left: 20px; }
.alert a { color: var(--err); }
.thanks { max-width: 720px; }
.thanks__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.thanks__icon .icon--stroke { stroke-width: 2.5; }

/* ---------- Privacy ---------- */
.legal { display: grid; gap: clamp(32px, 5vw, 80px); align-items: start; grid-template-columns: 1fr; }
@media (min-width: 900px) { .legal { grid-template-columns: 240px 1fr; } }
.toc__title { margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 8px 0; color: var(--muted); text-decoration: none; font-size: 15px; }
.toc a:hover { color: var(--ink); }
.prose { font-size: 18px; line-height: 1.7; min-width: 0; }
.prose h2 { margin: 56px 0 14px; font: 600 28px/1.25 var(--serif); scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; max-width: 68ch; }
.placeholder { color: var(--muted); font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #FFFFFF; padding-block: 56px 40px; }
.site-footer a { color: #C3CCD9; text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.site-footer__badge { display: inline-block; justify-self: start; }
.site-footer__badge:focus-visible { border-radius: 50%; }
.badge-c { fill: #FFFFFF; }
.badge-ink { fill: #0C192A; }
.site-footer__nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #22324B; font-size: 14px; color: #C3CCD9; }

/* ---------- Services and blog ---------- */
.service-item h3 { margin-bottom: 8px; }
.service-item p, .service-card p { color: var(--muted); }
.service-card { position: relative; display: flex; flex-direction: column; gap: 10px; }
.link-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.prose h3 { margin: 32px 0 10px; font: 600 22px/1.3 var(--serif); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.3em; max-width: 68ch; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--sunk); }
.conv { position: relative; }
.conv h3 a { color: inherit; text-decoration: none; }
.conv:hover h3 a { text-decoration: underline; }
.cover { display: block; width: 100%; height: auto; max-height: none; object-fit: cover; aspect-ratio: 1200 / 630; border-radius: var(--r-lg); background: #0C192A; }
.post-card .cover { margin-bottom: 8px; }
