/* Plaixus — shared stylesheet. Homepage, landing pages and blog all link this file. */
/* Self-hosted fonts. No third-party font requests, so no visitor IP reaches a font CDN. */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/montserrat-500.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/montserrat-600.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/montserrat-700.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/plexsans-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/plexsans-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/plexsans-600.woff2') format('woff2'); }

:root {
  /* Brand palette – from the original Plaixus identity */
  --ink: #162737;          /* logo ink – hero, footer, dark bands */
  --ink-2: #21315F;        /* brand navy – raised surfaces on dark, primary action */
  --navy: #21315F;
  --steel: #A3C2E4;        /* brand steel blue – strokes and text on dark */
  --paper: #F6F9FC;        /* page background */
  --paper-2: #EAF2F9;      /* brand pale – alternating section */
  --text: #162737;
  --muted: #4F6180;
  --line: #D3DEEC;
  --pulse: #21315F;        /* primary action on light */
  --pulse-deep: #162737;
  --signal: #4DD0E1;       /* brand cyan – accent on dark */
  --signal-deep: #0E8A9B;  /* cyan for small text on light (AA) */
  --white: #FFFFFF;
  --radius: 12px;
  --radius-lg: 18px;
  --max: 1180px;
  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--pulse-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--steel); color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.15rem; color: var(--muted); }

.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; }
section { padding: clamp(4rem, 8vw, 7rem) 0; }
.kicker { font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--signal-deep); margin: 0 0 .75rem; }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-cta { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 2.5rem; }
.section-cta span { color: var(--muted); font-size: .95rem; max-width: 52ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.35rem; border-radius: 8px; font-family: var(--font-head); font-weight: 600; font-size: .98rem; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--pulse); color: var(--white); border-color: var(--pulse); }
.btn-primary:hover { background: var(--pulse-deep); border-color: var(--pulse-deep); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(163,194,228,.5); }
.on-dark .btn-primary, .hero .btn-primary, .rnd .btn-primary, .site-header .btn-primary { background: var(--steel); color: var(--ink); border-color: var(--steel); }
.on-dark .btn-primary:hover, .hero .btn-primary:hover, .rnd .btn-primary:hover, .site-header .btn-primary:hover { background: #C2D8F0; border-color: #C2D8F0; }
.btn-ghost:hover { border-color: var(--steel); color: var(--steel); }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-2); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(22,39,55,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 50px; height: 34px; color: var(--steel); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--steel); font-size: .92rem; font-weight: 500; font-family: var(--font-head); }
.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-links a, .nav-links a:link, .nav-links a:visited, .nav-links a:active, .nav-links a:focus, .brand, .brand:link, .brand:visited, .brand:active, .brand:focus { text-decoration: none; }
.nav-links a { white-space: nowrap; }
.brand { flex-shrink: 0; }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.lang { color: var(--steel); font-size: .9rem; font-weight: 500; }
.lang strong { color: var(--white); }
.menu-btn { display: none; background: none; border: 0; color: var(--white); width: 44px; height: 44px; cursor: pointer; }
@media (max-width: 1120px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--ink); padding: .5rem 1.25rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta .btn { display: none; }
}

/* Hero */
.hero { background: var(--ink); color: var(--white); padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero .tag { font-family: var(--font-head); color: var(--signal); font-weight: 600; margin-bottom: 1.25rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.hero .lead { color: var(--steel); max-width: 56ch; font-size: 1.2rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-assure { margin: 1.25rem 0 0; max-width: 52ch; font-size: .95rem; color: var(--steel); }
.plexus-wrap { position: relative; aspect-ratio: 1 / 1; max-width: 560px; margin-inline: auto; width: 100%; }
.plexus-wrap canvas { width: 100%; height: 100%; border-radius: 50%; }
.plexus-caption { position: absolute; bottom: -.25rem; right: 0; font-size: .8rem; color: rgba(163,194,228,.7); display: flex; gap: 1rem; }
.plexus-caption span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .4rem; vertical-align: middle; }
.plexus-caption .c-cloud::before { background: var(--steel); }
.plexus-caption .c-edge::before { background: var(--signal); }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem; border-top: 1px solid rgba(163,194,228,.25); }
.hero-stats div strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--white); font-weight: 600; }
.hero-stats div span { color: var(--steel); font-size: .92rem; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .plexus-wrap { max-width: 420px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
.about-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.about-list li { display: grid; grid-template-columns: 26px 1fr; gap: .8rem; align-items: start; padding: 1rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.about-list li svg { width: 26px; height: 26px; color: var(--signal-deep); margin-top: .1rem; }
.about-list li strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1rem; }
.about-list li span { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* Products – TraceLM */
.products { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.products h2, .products h3 { color: var(--white); }
.products .kicker { color: var(--signal); }
.products .lead, .products p { color: var(--steel); }
.product-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.product-head .section-head { margin-bottom: 0; }
.product-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid rgba(163,194,228,.35); color: var(--steel); font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.product-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(77,208,225,.18); }
.product-name { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; line-height: 1; margin: 0 0 .5rem; color: var(--white); }
.product-name span { color: var(--signal); }
.product-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.product-shot { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(163,194,228,.25); background: var(--ink-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.product-shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.product-shot figcaption { padding: .8rem 1rem; font-size: .85rem; color: var(--steel); border-top: 1px solid rgba(163,194,228,.2); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.product-copy p { max-width: 58ch; }
.product-copy .lead { color: var(--white); font-size: 1.15rem; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 3rem 0 2.5rem; counter-reset: flow; }
.flow li { list-style: none; position: relative; padding: 1.1rem 1.2rem 1.1rem; border-radius: var(--radius); background: rgba(33,49,95,.6); border: 1px solid rgba(163,194,228,.2); }
.flow li::before { counter-increment: flow; content: "0" counter(flow); font-family: var(--font-head); font-size: .75rem; font-weight: 700; letter-spacing: .1em; color: var(--signal); display: block; margin-bottom: .4rem; }
.flow li strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--white); margin-bottom: .2rem; }
.flow li span { font-size: .9rem; color: var(--steel); }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -.75rem; top: 50%; width: .75rem; height: 1px; background: rgba(163,194,228,.45); }
.flow { padding: 0; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.feat { padding: 1.25rem 1.3rem; border-radius: var(--radius); background: rgba(255,255,255,.03); border: 1px solid rgba(163,194,228,.18); }
.feat svg { width: 26px; height: 26px; color: var(--signal); margin-bottom: .8rem; }
.feat h3 { font-size: 1rem; margin-bottom: .3rem; }
.feat p { font-size: .92rem; margin: 0; }
.product-cta { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; margin-top: 2.5rem; }
.product-cta .note { font-size: .9rem; color: var(--steel); margin: 0; }
@media (max-width: 960px) { .product-grid { grid-template-columns: 1fr; } .flow, .feat-grid { grid-template-columns: 1fr 1fr; } .flow li:not(:last-child)::after { display: none; } }
@media (max-width: 560px) { .flow, .feat-grid { grid-template-columns: 1fr; } }

/* Services */
.services { background: var(--paper-2); }
.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; grid-column: span 3; display: flex; flex-direction: column; }
.service.wide { grid-column: span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; background: var(--ink); color: var(--white); border-color: var(--ink); }
.service.wide h3 { color: var(--white); }
.service.wide.light { background: var(--white); color: var(--text); border-color: var(--line); }
.service.wide.light h3 { color: var(--text); }
.service.wide.light p { color: var(--muted); }
.service.wide.light li { background: var(--paper-2); border-color: var(--line); color: var(--text); }
.service.wide.light .glyph { background: var(--paper-2); color: var(--navy); }
.service.wide p, .service.wide li { color: var(--steel); }
.service h3 { margin-top: .9rem; }
.service p { color: var(--muted); font-size: 1rem; }
.service ul { margin: auto 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.service li { font-size: .85rem; padding: .3rem .7rem; border-radius: 999px; background: var(--paper-2); color: var(--text); border: 1px solid var(--line); }
.service.wide li { background: rgba(163,194,228,.12); border-color: rgba(163,194,228,.25); color: var(--white); }
.service .glyph { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); color: var(--navy); }
.service.wide .glyph { background: rgba(77,208,225,.14); color: var(--signal); }
.service .glyph svg { width: 26px; height: 26px; }
@media (max-width: 900px) { .service, .service.wide { grid-column: span 6; } .service.wide { grid-template-columns: 1fr; } }

/* Continuum diagram */
.continuum { background: var(--white); }
.continuum-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.continuum figure { margin: 0; }
.continuum figcaption { font-size: .9rem; color: var(--muted); margin-top: .75rem; }
.flow-line { stroke-dasharray: 6 8; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
@media (prefers-reduced-motion: reduce) { .flow-line { animation: none; } }
@media (max-width: 900px) { .continuum-grid { grid-template-columns: 1fr; } }

/* Platforms */
.platforms { background: var(--paper-2); }
.platform-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.platform-list li { display: grid; grid-template-columns: 200px 1fr auto; gap: 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.platform-list h3 { margin: 0; font-size: 1.15rem; }
.platform-list .domain { color: var(--muted); font-size: .92rem; display: block; margin-top: .25rem; }
.platform-list p { margin: 0; color: var(--text); font-size: 1rem; max-width: 62ch; }
.platform-list .stack { font-size: .85rem; color: var(--muted); text-align: right; max-width: 220px; }
@media (max-width: 900px) { .platform-list li { grid-template-columns: 1fr; gap: .6rem; } .platform-list .stack { text-align: left; max-width: none; } }

/* Sectors */
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.sector p a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.sector { padding: 1.5rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.sector h3 { font-size: 1.1rem; display: flex; align-items: center; gap: .6rem; }
.sector h3 svg { width: 22px; height: 22px; color: var(--signal-deep); flex: none; }
.sector p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 1100px) { .sector-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .sector-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sector-grid { grid-template-columns: 1fr; } }

/* R&D */
.rnd { background: var(--ink); color: var(--white); }
.rnd h2, .rnd h3 { color: var(--white); }
.rnd .lead, .rnd p { color: var(--steel); }
.rnd .kicker { color: var(--signal); }
.rnd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.project { padding: 1.25rem 0; border-top: 1px solid rgba(163,194,228,.25); }
.project:last-child { border-bottom: 1px solid rgba(163,194,228,.25); }
.project h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.project p { margin: 0; font-size: .98rem; }
.project .prog { font-size: .85rem; color: var(--signal); }
.interests { margin-top: 2.5rem; }
.interests h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); margin-bottom: .9rem; }
.interests ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.interests li { font-size: .85rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(163,194,228,.12); border: 1px solid rgba(163,194,228,.25); color: var(--white); }
@media (max-width: 900px) { .rnd-grid { grid-template-columns: 1fr; } }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding: 1.5rem 1.5rem 1.5rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--steel); margin-bottom: 1rem; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .98rem; margin: 0; }
.step .dur { display: block; margin-top: .75rem; font-size: .85rem; color: var(--pulse-deep); font-weight: 500; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq { background: var(--paper-2); }
.faq-list { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.2rem 0; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; color: var(--signal-deep); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.2rem; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; }
.contact-info dl { margin: 1.5rem 0 0; display: grid; gap: 1.1rem; }
.contact-info dt { font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.contact-info dd { margin: .15rem 0 0; color: var(--muted); }
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 500; font-size: .95rem; }
.field input, .field select, .field textarea { font: inherit; padding: .8rem .95rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--text); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--pulse); outline-offset: 1px; border-color: var(--pulse); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .85rem; color: var(--muted); margin: .75rem 0 0; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px; display: none; font-size: .95rem; }
.form-status.ok { display: block; background: #E3F7FA; color: #0E6F7D; border: 1px solid #9FE3EC; }
.form-status.err { display: block; background: #FDECEC; color: #8A1C1C; border: 1px solid #F5B5B5; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }

/* Footer */
footer { background: var(--ink); color: var(--steel); padding: 3.5rem 0 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
footer h4 { color: var(--white); font-size: .95rem; margin-bottom: .9rem; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
footer a { color: var(--steel); font-size: .95rem; }
footer a:hover { color: var(--white); }
.foot-brand p { font-size: .95rem; max-width: 40ch; margin-top: 1rem; }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(163,194,228,.25); font-size: .85rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .foot-grid { grid-template-columns: 1fr; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================================================
   Sub-pages: landing pages, blog index, blog posts
   ============================================================ */

/* Page hero (shorter, darker band under the sticky header) */
.page-hero { background: var(--ink); color: var(--white); padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2.25rem, 5vw, 3.5rem); }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 3.8vw, 3rem); max-width: 20ch; }
.page-hero .lead { color: var(--steel); font-size: 1.15rem; max-width: 60ch; }
.page-hero .kicker { color: var(--signal); }
.page-hero .hero-actions { margin-top: 1.75rem; }
.page-hero .hero-assure { color: var(--steel); }

/* Breadcrumb */
.crumb { padding: 1rem 0 .9rem; font-size: .85rem; color: var(--muted); background: var(--paper); }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--text); text-decoration: underline; }
.crumb li + li::before { content: "/"; margin-right: .4rem; opacity: .45; }
.crumb [aria-current] { color: var(--text); font-weight: 500; }

/* Long-form prose column */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.75rem; scroll-margin-top: 96px; }
.prose h3 { margin-top: 1.75rem; font-size: 1.1rem; }
.prose p, .prose li { font-size: 1.03rem; }
.prose > ul, .prose > ol { padding-left: 1.2rem; margin: 0 0 1.25rem; }
.prose > ul li, .prose > ol li { margin-bottom: .5rem; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose strong { font-weight: 600; }

/* Two-column long-form layout with a sticky rail */
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 3.5rem; align-items: start; }
/* Grid items default to min-width:auto, which lets a wide table push the page sideways.
   Without this the certificate tables overflow the viewport at phone widths. */
.doc-grid > * { min-width: 0; }
.rail { position: sticky; top: 96px; font-size: .92rem; }
.rail h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem; }
.rail ol { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: .55rem; }
.rail ol a { color: var(--muted); }
.rail ol a:hover { color: var(--text); }
/* .rail a used to win over .btn-dark on specificity and made the button text
   muted-on-ink, about 1.9:1. Keep the button's own colours authoritative. */
.rail .rail-cta .btn-dark { color: var(--white); }
.rail .rail-cta { padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.rail .rail-cta p { font-size: .9rem; color: var(--muted); margin: 0 0 .8rem; }
@media (max-width: 1000px) { .doc-grid { grid-template-columns: 1fr; gap: 2rem; } .rail { position: static; } .rail .rail-cta { display: none; } }

/* Table of contents (blog posts). Scoped by class, never by bare nav. */
.toc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 1.25rem 1.4rem; margin: 0 0 2.5rem; }
.toc h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; font-size: .97rem; }
.toc a { color: var(--pulse-deep); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Data table (certificate types, comparisons) */
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; }
.data-table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .95rem; }
.data-table caption { text-align: left; font-size: .88rem; color: var(--muted); padding-bottom: .6rem; }
.data-table th, .data-table td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-family: var(--font-head); font-size: .85rem; background: var(--paper-2); border-bottom: 2px solid var(--line); }
.data-table tbody th { font-family: var(--font-head); font-weight: 600; white-space: nowrap; }
.data-table tr.hl td, .data-table tr.hl th { background: rgba(77,208,225,.08); }

/* Pros / cons box */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0 2.25rem; }
.proscons > div { border-radius: var(--radius); padding: 1.25rem 1.4rem; border: 1px solid; }
.proscons h3 { margin: 0 0 .7rem; font-size: 1rem; display: flex; align-items: center; gap: .5rem; }
.proscons ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .45rem; }
.proscons li { font-size: .95rem; }
.pros { background: #EFF9F2; border-color: #BFE3CC; }
.pros h3 { color: #17603A; }
.cons { background: #FDF1F1; border-color: #F2C9C9; }
.cons h3 { color: #8A2020; }
@media (max-width: 700px) { .proscons { grid-template-columns: 1fr; } }

/* Callout */
.callout { border-left: 3px solid var(--signal-deep); background: var(--paper-2); padding: 1.1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.75rem 0; }
.callout p:last-child { margin-bottom: 0; }
.callout p { font-size: .97rem; }

/* Key-points list (mid-article scannable block) */
.keypoints { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 1.5rem 1.7rem; margin: 2rem 0 2.25rem; }
.keypoints h3 { margin: 0 0 .9rem; font-size: 1.05rem; }
.keypoints ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; }
.keypoints li { font-size: .97rem; }
.keypoints li strong { font-family: var(--font-head); }

/* Author / opinion block */
.take { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); padding: 1.75rem 1.9rem; margin: 2.5rem 0; }
.take h2 { margin-top: 0; }
.byline { display: flex; align-items: center; gap: .7rem; font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.byline .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--steel); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .85rem; flex: none; }
.byline strong { color: var(--text); font-family: var(--font-head); }

/* Post meta */
.post-meta { color: var(--steel); font-size: .9rem; display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 1rem; }
/* Separator trails its own item, so a wrapped line never starts with a stray dot. */
.post-meta span:not(:last-child)::after { content: " ·"; opacity: .6; }

/* Blog index cards */
.post-list { display: grid; gap: 1.25rem; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); padding: 1.75rem 1.9rem; }
.post-card .eyebrow { font-family: var(--font-head); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--signal-deep); margin: 0 0 .5rem; }
.post-card h2 { font-size: 1.35rem; margin: 0 0 .6rem; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.post-card p { color: var(--muted); margin: 0 0 .9rem; font-size: 1rem; }
.post-card .more { font-family: var(--font-head); font-weight: 600; font-size: .93rem; }

/* Related posts */
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0 0; }
.related a { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; background: var(--white); text-decoration: none; color: var(--text); }
.related a:hover { border-color: var(--signal-deep); text-decoration: none; }
.related span { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--signal-deep); font-family: var(--font-head); margin-bottom: .35rem; }
.related strong { font-family: var(--font-head); font-weight: 600; font-size: .98rem; }
@media (max-width: 700px) { .related { grid-template-columns: 1fr; } }

/* End-of-page CTA band */
.endcta { background: var(--ink); color: var(--white); }
.endcta h2 { color: var(--white); }
.endcta p { color: var(--steel); max-width: 58ch; }
.endcta .hero-assure { margin-top: 1.25rem; }

/* Light variant of the numbered flow, for use on pale backgrounds */
.flow.light li { background: var(--white); border-color: var(--line); }
.flow.light li strong { color: var(--text); }
.flow.light li span { color: var(--muted); }
.flow.light li::before { color: var(--signal-deep); }
.flow.light li:not(:last-child)::after { background: var(--line); }

/* ============================================================
   Landing pages: two-column hero with a lead form
   ============================================================ */
.hero-split { display: grid; grid-template-columns: 1.08fr .92fr; gap: 3rem; align-items: start; }
.hero-split .hero-copy h1 { margin-bottom: 1rem; }
@media (max-width: 960px) { .hero-split { grid-template-columns: 1fr; gap: 2rem; } }

/* The form card sits on the dark hero, so it carries its own light surface */
.lead-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.6rem 1.7rem; box-shadow: 0 24px 48px -24px rgba(0,0,0,.55); }
.lead-card h2 { font-size: 1.15rem; color: var(--text); margin: 0 0 .3rem; }
.lead-card .sub { font-size: .92rem; color: var(--muted); margin: 0 0 1.1rem; }
.lead-card .field { margin-bottom: .8rem; }
.lead-card .field label { font-size: .88rem; font-weight: 500; color: var(--text); }
.lead-card .field input, .lead-card .field textarea { padding: .65rem .8rem; font-size: .95rem; }
.lead-card .field textarea { min-height: 88px; }
.lead-card .btn { width: 100%; justify-content: center; margin-top: .2rem; }
.lead-card .form-note { font-size: .8rem; margin-top: .7rem; }
.lead-card .form-status { font-size: .9rem; }

/* Repeat of the form inside the closing CTA band */
.endcta .cta-split { display: grid; grid-template-columns: 1.08fr .92fr; gap: 3rem; align-items: start; }
@media (max-width: 960px) { .endcta .cta-split { grid-template-columns: 1fr; gap: 2rem; } }

/* Table of contents at the top of a landing page, visible at every width */
.prose > .toc { margin-top: 0; }
.rail-only-cta .rail-toc { display: none; }
@media (max-width: 1000px) { .rail { display: none; } }
