/* MaintenanceIQ English site. Light warm base, white cards, hairlines; dark only for the
   header, hero band and closing CTA band. Motion: transform and opacity only. */

@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("/assets/fonts/archivo-700.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url("/assets/fonts/archivo-800.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2"); }

:root {
  --base: #F4F4F2;
  --card: #FFFFFF;
  --hair: #E2E0DA;
  --hair-strong: #CFCCC4;
  --ink: #0E0E0E;
  --ink-2: #1A1A1A;
  --text: #17171A;
  --muted: #55554F;
  --on-dark: #F4F2ED;
  --muted-dark: rgba(244, 242, 237, 0.72);
  --line-dark: rgba(244, 242, 237, 0.14);
  --accent: #E2510A;          /* brand orange: buttons, graphics, one highlight per section */
  --accent-text: #B5420A;     /* orange for small text on light backgrounds (AA) */
  --accent-on-dark: #F2803F;  /* orange for small text on dark backgrounds (AA) */
  --ok: #22603F;
  --warn: #7A4D00;
  --crit: #B3261E;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --sec: clamp(64px, 8vw, 104px);
  --r: 10px;
  --wipe: var(--base);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }
body { margin: 0; background: var(--base); color: var(--text); font: 400 17px/1.62 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; color: inherit; }
h1 { font-size: clamp(40px, 6.2vw, 76px); }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 4px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); }
.sketch-defs { position: absolute; width: 0; height: 0; }

/* Labels */
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 500 12.5px/1.3 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.hero .kicker, .cta-band .eyebrow { color: var(--accent-on-dark); }
.badge { display: inline-block; width: fit-content; margin-bottom: 10px; padding: 3px 9px; border: 1px solid var(--hair-strong); border-radius: 999px; font: 500 11.5px/1.4 var(--font-mono); letter-spacing: 0.04em; color: var(--muted); background: var(--card); }
.badge--ok { color: var(--ok); border-color: rgba(47, 122, 85, 0.4); }
.badge--beta { color: var(--accent-text); border-color: rgba(181, 66, 10, 0.4); }
.badge--fit { color: #4A4A8C; border-color: rgba(74, 74, 140, 0.35); }
.badge--sm { margin: 0 0 0 6px; padding: 1px 7px; font-size: 10.5px; vertical-align: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 13px 22px; border: 1px solid transparent; border-radius: 4px; font: 600 16px/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: filter .2s ease, background-color .2s ease, border-color .2s ease; }
.btn--primary { background: var(--accent); color: var(--ink); }  /* ink on brand orange: 5:1, AA. White would be 3.9:1. */
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: rgba(14, 14, 14, 0.06); }
.hero .btn--ghost, .cta-band .btn--ghost, .site-header .btn--ghost, .nav-panel .btn--ghost { color: var(--on-dark); border-color: rgba(244, 242, 237, 0.42); }
.hero .btn--ghost:hover, .cta-band .btn--ghost:hover, .site-header .btn--ghost:hover { background: rgba(244, 242, 237, 0.08); }
.btn--sm { min-height: 40px; padding: 10px 16px; font-size: 14.5px; }
.btn--lg { min-height: 54px; padding: 16px 26px; font-size: 17px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.link-arrow { display: inline-flex; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.link-arrow:hover { color: var(--accent-text); }

/* Header (dark: the logo renders exactly as before) */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--on-dark); border-bottom: 1px solid var(--line-dark); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--on-dark); white-space: nowrap; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; flex: 0 0 auto; }
.brand b { color: var(--accent); font-weight: 800; }
.nav-menu { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 11px; white-space: nowrap; border: 0; background: none; color: var(--muted-dark); font: 500 15px/1 var(--font-body); text-decoration: none; cursor: pointer; border-radius: 4px; }
.nav-link svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link[aria-current="page"] { color: var(--on-dark); }
.menu { position: absolute; top: calc(100% + 10px); left: -12px; display: none; width: 340px; padding: 10px; background: var(--card); color: var(--text); border: 1px solid var(--hair); border-radius: var(--r); box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.45); }
.menu--wide { width: 600px; display: none; grid-template-columns: 1fr 1fr; }
.nav-item:hover .menu, .nav-item:focus-within .menu, .nav-link[aria-expanded="true"] + .menu { display: grid; }
.nav-item:hover .menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.menu a { display: block; padding: 10px 12px; border-radius: 6px; text-decoration: none; }
.menu a:hover, .menu a[aria-current="page"] { background: var(--base); }
.menu strong { display: block; font-size: 15px; font-weight: 600; }
.menu span:not(.badge) { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-signin { color: var(--muted-dark); text-decoration: none; font-size: 15px; padding: 8px 6px; white-space: nowrap; }
.nav-signin:hover { color: var(--on-dark); }
.nav-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 6px; background: none; cursor: pointer; padding: 12px 10px; }
.nav-burger span { display: block; height: 2px; margin: 4px 0; background: var(--on-dark); transition: transform .2s ease, opacity .2s ease; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-panel { background: var(--ink); border-top: 1px solid var(--line-dark); max-height: calc(100vh - 68px); overflow-y: auto; }
.nav-panel ul { list-style: none; margin: 0; padding: 12px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.nav-panel li a { display: block; padding: 11px 0; color: var(--on-dark); text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.nav-panel-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 0 22px; }
@media (max-width: 1080px) { .nav-menu, .nav-actions { display: none; } .nav-burger { display: block; } }
@media (max-width: 520px) { .nav-panel ul { grid-template-columns: 1fr; } }

/* Hero (dark band) */
.hero { background: var(--ink); color: var(--on-dark); --wipe: var(--ink); }
.hero--home { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); }
.hero--inner { padding: 28px 0 clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero--noart .hero-grid { grid-template-columns: minmax(0, 820px); }
.hero--home h1 .kicker { display: flex; margin-bottom: 18px; font-size: 13px; }
.hero--home h1 { font-size: clamp(46px, 7.4vw, 92px); }
.hero--inner h1 { font-size: clamp(36px, 5vw, 60px); }
.support { margin: 20px 0 0; font-size: clamp(19px, 2vw, 23px); line-height: 1.45; color: var(--on-dark); }
.answer { margin: 18px 0 0; max-width: 62ch; color: var(--muted-dark); font-size: 17.5px; }
.hero--inner .answer { font-size: 18px; }
.category { margin: 22px 0 0; font: 500 13px/1.5 var(--font-mono); letter-spacing: 0.04em; color: var(--muted-dark); }
.hero .answer a, .hero .crumbs a { color: var(--on-dark); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 26px; padding: 0; list-style: none; font: 400 13px/1.4 var(--font-mono); color: var(--muted-dark); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 0; font: 400 13px/1.5 var(--font-mono); color: var(--muted-dark); }
.hero-art { position: relative; min-width: 0; }
.hero .sketch { color: var(--on-dark); }
.visual-note { margin: 10px 0 0; font: 400 12px/1.4 var(--font-mono); letter-spacing: 0.06em; color: var(--muted-dark); text-transform: uppercase; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 640px; } }

/* Hero visual: pump + beacon + drift card */
.hero-visual { position: relative; }
.hero-visual .render img { width: 100%; }
.beacon { position: absolute; left: 65.8%; top: 23.6%; width: 0; height: 0; }
.beacon i { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.drift-card { position: absolute; left: 0; bottom: 2%; width: min(300px, 62%); padding: 12px 14px 10px; background: var(--card); color: var(--text); border-radius: 8px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.7); font: 400 12px/1.35 var(--font-mono); --wipe: var(--card); }
.drift-card-head, .drift-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.drift-card-foot { margin-top: 6px; color: var(--muted); }
.drift-svg { width: 100%; height: auto; margin-top: 8px; overflow: hidden; }
.lim { stroke-width: 1.2; stroke-dasharray: 4 4; }
.lim--crit { stroke: var(--crit); }
.lim--warn { stroke: var(--warn); }
.trend { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.proj { stroke: var(--accent); stroke-width: 2.2; stroke-dasharray: 6 5; }
.dot { fill: var(--accent); }

/* Tags inside screens */
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 500 11px/1.5 var(--font-mono); background: #EFEDE8; color: var(--muted); white-space: nowrap; }
.tag--ok { background: #E3F1EA; color: var(--ok); }
.tag--warn { background: #FBEFD9; color: var(--warn); }
.tag--crit { background: #FBE5E3; color: var(--crit); }
.tag--beta { background: #FCEADF; color: var(--accent-text); }

/* Sections */
.sec { padding: var(--sec) 0; }
.sec + .sec { padding-top: 0; }
.sec--band { background: var(--card); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); --wipe: var(--card); }
.sec + .sec--band, .sec--band + .sec { padding-top: var(--sec); }
.sec--tight { padding-top: 0; }
.sec--moment + .sec--moment { padding-top: 0; }
.sec-head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head .lead, .lead { margin-top: 16px; font-size: 19px; color: var(--muted); }
.sec-foot { margin: 32px 0 0; }
.prose { max-width: 760px; }
.prose .sec-head { margin-bottom: 20px; }
.prose h3 { margin: 28px 0 10px; }
.prose a, .split-text a:not(.link-arrow), .faq-a a, .card p a, .callout a, .example a, .note a { color: var(--accent-text); text-underline-offset: 3px; }
.list, .olist { margin: 0 0 1em; padding-left: 1.2em; }
.list li, .olist li { margin: 6px 0; }
.list--check { list-style: none; padding: 0; }
.list--check li { position: relative; padding-left: 28px; }
.list--check li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.note { margin-top: 16px; font-size: 14.5px; color: var(--muted); }

/* Split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev .split-text { order: 2; }
.split-art { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev .split-text { order: 0; } }

/* Cards */
.cards { display: grid; gap: 18px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards--2, .cards--3 { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; padding: 26px; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); text-decoration: none; color: inherit; --wipe: var(--card); }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0 0 10px; color: var(--muted); }
.card .how { margin-top: auto; padding-top: 12px; font-size: 14.5px; color: var(--text); border-top: 1px dashed var(--hair-strong); }
.card .how span { font: 500 12px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.card--link { transition: border-color .2s ease, transform .2s ease; }
.card--link:hover { border-color: var(--ink); transform: translateY(-2px); }
.card-go { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 15px; }
.card-go span { color: var(--accent); }
.card-icon { display: block; width: 52px; height: 52px; margin-bottom: 14px; color: var(--ink); }
.card-icon svg { width: 100%; height: 100%; }
.card-num { display: block; margin-bottom: 14px; font: 500 13px/1 var(--font-mono); color: var(--accent-text); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 26px; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); }
.steps h3 { margin: 12px 0 8px; }
.steps p { margin: 0; color: var(--muted); }
.step-n { font: 500 13px/1 var(--font-mono); color: var(--accent-text); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Tables, formulas, examples, callouts */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
caption { padding: 14px 16px 0; text-align: left; font: 500 12.5px/1.4 var(--font-mono); color: var(--muted); }
th, td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
thead th { font: 600 13px/1.3 var(--font-body); color: var(--muted); background: #FAFAF8; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }
.formula { margin: 8px 0 22px; padding: 22px 24px; background: var(--card); border: 1px solid var(--hair); border-left: 3px solid var(--accent); border-radius: 6px; overflow-x: auto; }
.formula code, .formula-inline, .calc-formula code { font: 500 clamp(15px, 1.8vw, 19px)/1.5 var(--font-mono); color: var(--ink); white-space: pre-wrap; }
.formula-inline { display: block; margin-top: 8px; font-size: 15px; }
.terms { margin: 0; display: grid; gap: 10px; }
.terms div { display: grid; grid-template-columns: minmax(120px, 0.35fr) 1fr; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
.terms dt { font-weight: 600; }
.terms dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .terms div { grid-template-columns: 1fr; gap: 2px; } }
.example { max-width: 860px; padding: clamp(22px, 3vw, 34px); background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); }
.example .sec-head { margin-bottom: 12px; }
.example .sec-head h2 { font-size: clamp(24px, 2.6vw, 32px); }
.example-label { font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.example .table-wrap { margin: 8px 0 16px; }
.example-result { margin: 0; padding: 14px 16px; background: var(--base); border-radius: 6px; font-weight: 600; }
.callout { max-width: 860px; padding: 20px 24px; background: var(--card); border: 1px solid var(--hair); border-left: 3px solid var(--ink); border-radius: 6px; }
.callout p:last-child { margin-bottom: 0; }
.callout-title { margin-bottom: 6px; font-weight: 700; }
.callout--beta { border-left-color: var(--accent); }
.callout--fit { border-left-color: #4A4A8C; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.link-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--hair); text-decoration: none; }
.link-list strong { display: block; }
.link-list span { color: var(--muted); font-size: 15px; }
@media (max-width: 700px) { .link-list { grid-template-columns: 1fr; } }
.glossary { margin: 0; columns: 2 380px; column-gap: 40px; }
.glossary > div { break-inside: avoid; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.glossary dt { font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.glossary dd { margin: 6px 0 0; color: var(--muted); }
.sources ol { padding-left: 1.2em; }
.sources li { margin: 8px 0; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--hair-strong); }
.faq details:first-of-type { border-top: 1px solid var(--hair-strong); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 19px; }
.faq summary::after { content: ""; flex: 0 0 auto; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s ease; margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq-a { padding: 0 0 20px; max-width: 72ch; color: var(--muted); }

/* Day timeline */
.day { position: relative; }
.day-rail { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--hair); border-radius: 2px; overflow: hidden; }
.day-rail i { position: absolute; inset: 0; background: var(--accent); transform-origin: left center; transform: scaleX(var(--p, 1)); }
.day-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 26px 0 0; list-style: none; }
.moment-card a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 22px 20px; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); text-decoration: none; transition: transform .35s ease, border-color .2s ease; }
.moment-card a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 22px 40px -24px rgba(0, 0, 0, 0.35); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.moment-card.is-reached a { transform: translateY(-6px); border-color: var(--hair-strong); }
.moment-card.is-reached a::after, .moment-card a:hover::after { opacity: 1; }
.moment-card a:hover { border-color: var(--ink); }
.moment-icon { display: block; width: 46px; height: 46px; margin-bottom: 14px; color: var(--ink); }
.moment-icon svg { width: 100%; height: 100%; }
.moment-time { display: block; font: 500 20px/1 var(--font-mono); color: var(--accent-text); }
.moment-role { display: block; margin: 6px 0 12px; font: 500 12px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.moment-card h3 { font-size: 18px; margin-bottom: 8px; }
.moment-card p { font-size: 15px; color: var(--muted); }
.day-list .moment-card:nth-child(n) .card-go { font-size: 14px; }
@media (max-width: 1000px) {
  .day { padding-left: 22px; }
  .day-rail { left: 0; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .day-rail i { transform-origin: center top; transform: scaleY(var(--p, 1)); }
  .day-list { grid-template-columns: 1fr; padding-top: 0; }
  .moment-card.is-reached a { transform: translateX(4px); }
}

/* Moment (how-it-works) */
.moment-label { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.moment-label .moment-time { font-size: 28px; }
.moment-label .moment-role { margin: 0; }
.moment h2 { margin-bottom: 18px; }
.get { margin: 22px 0; padding: 16px 18px; background: var(--card); border: 1px solid var(--hair); border-left: 3px solid var(--accent); border-radius: 6px; }
.get-label, .how-label { margin: 0 0 4px; font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.get-text { margin: 0; font-weight: 600; font-size: 18px; }

/* Proof, industries, teaser */
.proof-card h3 { font-size: 22px; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--hair); }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font: 800 34px/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.stats dt { margin-top: 6px; font: 500 12px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.industry-art { margin: -6px -6px 18px; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: var(--base); border-radius: 8px; overflow: hidden; }
.industry-art .render img { max-height: 100%; width: auto; max-width: 92%; margin: auto; object-fit: contain; }
.industry-art .render { display: flex; height: 100%; width: 100%; align-items: center; justify-content: center; }
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 18px 36px; align-items: center; padding: clamp(24px, 3vw, 36px); background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); }
.teaser .eyebrow { grid-column: 1 / -1; margin: 0; }
.teaser h2 { font-size: clamp(24px, 2.6vw, 32px); }
.teaser p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .teaser { grid-template-columns: 1fr; } }

/* Problem visual */
.plant-visual { position: relative; margin: 0 auto 28px; max-width: 980px; }
.lamp { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; opacity: 0; }
.lamp::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; opacity: 0.55; }
.lamp--red { background: #E5332A; }
.lamp--red::after { background: radial-gradient(circle, rgba(229, 51, 42, 0.7), rgba(229, 51, 42, 0) 70%); }
.lamp--amber { background: #F2A623; }
.lamp--amber::after { background: radial-gradient(circle, rgba(242, 166, 35, 0.7), rgba(242, 166, 35, 0) 70%); }

/* Renders */
.render-fig { margin: 0; }
.render img { width: 100%; }

/* Sketches */
.sketch { position: relative; margin: 0; color: var(--ink); overflow: hidden; }
.sketch svg { width: 100%; height: auto; }
.sketch figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.sketch-wrap { max-width: 720px; padding: clamp(16px, 3vw, 32px); background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); --wipe: var(--card); }
.sk-lines { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sk-lines .sk-accent { stroke: var(--accent); }
.sk-lines .sk-fill-accent { fill: rgba(226, 81, 10, 0.16); stroke: var(--accent); }
.sk-lines .sk-hatch-hi { fill: rgba(226, 81, 10, 0.22); }
.sk-lines .sk-hatch-mid { fill: rgba(226, 81, 10, 0.09); }
.sk-text { fill: currentColor; stroke: none; }
.sk-t { font: 500 15px var(--font-mono); }
.sk-m { font-size: 13px; opacity: 0.8; }
.sk-b { font-weight: 600; font-size: 16px; }
.sketch--blog svg { max-height: 320px; }

/* Illustrative screens */
.screen { margin: 0; --wipe: var(--card); }
.screen-frame { position: relative; padding: 16px; background: var(--card); color: var(--text); border: 1px solid var(--hair); border-radius: 12px; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.45); font-size: 14px; overflow: hidden; }
.screen figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.hero .screen figcaption { color: var(--muted-dark); }
.screen figcaption .mono { display: inline-block; margin-right: 6px; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.hero .screen figcaption .mono { color: var(--accent-on-dark); }
.scr-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--hair); font: 600 14px/1.3 var(--font-body); }
.scr-rows { list-style: none; margin: 0; padding: 0; }
.scr-rows li { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 6px; }
.scr-rows li + li { border-top: 1px solid var(--hair); }
.scr-rows li.is-hot { background: #FBF4EF; }
.scr-k { font: 500 12px/1.2 var(--font-mono); color: var(--muted); }
.scr-t { font-weight: 600; line-height: 1.3; min-width: 0; }
.scr-t small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.scr-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.scr-tiles div { padding: 10px; background: var(--base); border-radius: 6px; }
.scr-tiles span { display: block; font: 400 11px/1.3 var(--font-mono); color: var(--muted); }
.scr-tiles b { display: block; margin-top: 4px; font: 700 17px/1.1 var(--font-display); }
.scr-tiles b.is-accent { color: var(--accent-text); }
.scr-tiles b.is-warn { color: var(--warn); }
@media (max-width: 520px) { .scr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .scr-rows li { grid-template-columns: 64px minmax(0, 1fr); } .scr-rows .tag { grid-column: 2; width: fit-content; } }
.scr-sub { margin: 10px 0 6px; font: 400 12px/1.3 var(--font-mono); color: var(--muted); }
.scr-bars { display: grid; gap: 8px; }
.scr-barrow { display: grid; grid-template-columns: 110px minmax(0, 1fr) 48px; gap: 10px; align-items: center; font-size: 13px; }
.scr-barrow i { display: block; height: 12px; width: calc(var(--v) * 1%); max-width: 100%; background: #CFCCC4; border-radius: 3px; transform-origin: left center; }
.scr-barrow.is-hot i { background: var(--accent); }
.scr-barrow b { font: 500 12px/1 var(--font-mono); text-align: right; }
.screen--reliability .scr-barrow i, .screen--cost .scr-barrow i { width: calc(var(--v) * 6%); }
.screen--oee .scr-barrow i { width: calc(var(--v) * 2%); }
.scr-chart svg { width: 100%; height: auto; overflow: hidden; }
.scr-drop { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--accent); border-radius: 6px; font-size: 13.5px; }
.scr-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.scr-cal span { position: relative; padding: 8px 0 12px; text-align: center; font: 400 12px/1 var(--font-mono); background: var(--base); border-radius: 4px; }
.scr-cal span.has-c::after, .scr-cal span.has-u::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--ink); }
.scr-cal span.has-u::after { background: var(--accent); }
.scr-cal span.is-today { outline: 2px solid var(--ink); }
.scr-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font: 400 12px/1.3 var(--font-mono); color: var(--muted); }
.scr-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--ink); }
.scr-legend .lg-u::before { background: var(--accent); }
.screen--mobile-checklist .screen-frame { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 18px; align-items: center; background: var(--base); }
.scr-device { padding: 12px; background: #1B1D1F; border-radius: 18px; border: 4px solid var(--accent); }
.scr-device-screen { padding: 12px; background: var(--card); border-radius: 10px; }
.scr-checks { list-style: none; margin: 0; padding: 0; }
.scr-checks li { position: relative; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--hair); font-size: 13.5px; }
.scr-checks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--hair-strong); }
.scr-checks li::after { content: ""; position: absolute; left: 4px; top: 13px; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.scr-checks li::before { background: var(--ok); border-color: var(--ok); }
.scr-qr { position: relative; padding: 10px; background: var(--card); border: 1px solid var(--hair-strong); border-radius: 8px; overflow: hidden; text-align: center; }
.scr-qr svg { width: 100%; fill: var(--ink); }
.scr-qr span { display: block; margin-top: 6px; font: 600 13px/1 var(--font-mono); }
.scr-qr .scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); box-shadow: 0 0 12px var(--accent); opacity: 0; }
.scr-pack { position: relative; display: grid; gap: 6px; padding-right: 92px; }
.sheet { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--base); border: 1px solid var(--hair); border-radius: 6px; font-weight: 500; }
.sheet .mono { color: var(--accent-text); }
.seal { position: absolute; right: 0; top: 50%; width: 82px; height: 82px; margin-top: -41px; display: flex; align-items: center; justify-content: center; text-align: center; border: 3px double var(--ok); border-radius: 50%; color: var(--ok); font: 600 11px/1.2 var(--font-mono); text-transform: uppercase; transform: rotate(-12deg); }
.scr-tree { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: center; }
.scr-tree .col { display: grid; gap: 6px; }
.scr-tree span { font: 400 11px/1.2 var(--font-mono); color: var(--muted); }
.scr-tree b { padding: 8px; background: var(--base); border-radius: 6px; font: 500 12px/1.2 var(--font-mono); text-align: center; }
.scr-tree b.is-hot { background: #FBF4EF; outline: 2px solid var(--accent); }

/* EHS scene (placeholder until the render arrives) */
.ehs-scene { position: relative; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 20px; align-items: center; }
.ehs-svg { width: 100%; max-height: 340px; }
.iso-body { fill: #3A3D40; }
.iso-plate { fill: #F2A623; }
.iso-dial { fill: #2A2C2E; stroke: #5A5E62; stroke-width: 3; }
.iso-handle { fill: var(--accent); }
.lock-shackle { fill: none; stroke: #C9CCD0; stroke-width: 7; stroke-linecap: round; }
.lock-body { fill: var(--accent); }
.lock-key { fill: #2A2C2E; }
.lock-tag { fill: #F4F2ED; stroke: #C9CCD0; stroke-width: 1.5; }
.padlock { transform-box: fill-box; }
.permit { perspective: 900px; }
.permit-inner { position: relative; display: grid; transform-style: preserve-3d; transition: transform .8s ease; }
.permit-face { grid-area: 1 / 1; display: grid; gap: 8px; padding: 18px; background: var(--card); color: var(--text); border-radius: 10px; backface-visibility: hidden; font-size: 14px; }
.permit-face .mono { font-size: 12px; color: var(--muted); }
.permit-face b { font-size: 16px; }
.permit-face ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.permit-face .tag { width: fit-content; }
.permit-back { transform: rotateY(180deg); }
.ehs-scene .visual-note { grid-column: 1 / -1; }
@media (max-width: 520px) { .ehs-scene { grid-template-columns: 1fr; } }

/* Calculators */
.sec--calc { padding-top: clamp(40px, 5vw, 64px); }
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 0; background: var(--card); border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; }
.calc-in { padding: clamp(22px, 3vw, 34px); }
.calc-in h2 { font-size: 26px; margin-bottom: 18px; }
.calc-field { display: grid; gap: 4px; margin-bottom: 16px; }
.calc-field label { font-weight: 600; font-size: 15.5px; }
.calc-field input, .calc-field select, .form input, .form textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--hair-strong); border-radius: 6px; background: #fff; color: var(--text); font: 400 17px/1.3 var(--font-body); }
.calc-field input:focus, .calc-field select:focus, .form input:focus, .form textarea:focus { outline: 3px solid rgba(226, 81, 10, 0.35); border-color: var(--accent); }
.calc-hint { font-size: 13.5px; color: var(--muted); }
.calc-res { padding: clamp(22px, 3vw, 34px); background: var(--ink); color: var(--on-dark); display: flex; flex-direction: column; gap: 10px; }
.calc-out { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.calc-out span { color: var(--muted-dark); }
.calc-out output { font: 700 24px/1 var(--font-display); transition: opacity .15s ease; }
.calc-out--main output { font-size: 36px; color: #fff; }
.calc-out output.is-tick { opacity: 0.4; }
.calc-msg { min-height: 1.4em; margin: 6px 0 0; font-size: 14.5px; color: #FFC89E; }
.calc-formula { margin: auto 0 0; display: grid; gap: 4px; }
.calc-formula code { color: var(--on-dark); font-size: 14px; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* Contact form */
.form { display: grid; gap: 14px; padding: clamp(20px, 3vw, 30px); background: var(--base); border: 1px solid var(--hair); border-radius: var(--r); }
.form-row { display: grid; gap: 6px; }
.form label { font-weight: 600; font-size: 15px; }
.form .btn { width: fit-content; }
.form-status { margin: 0; min-height: 1.4em; font-size: 15px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* CTA band + footer (dark) */
.cta-band { padding: clamp(64px, 8vw, 104px) 0; background: var(--ink); color: var(--on-dark); text-align: center; }
.cta-band h2 { font-size: clamp(36px, 5.4vw, 68px); }
.cta-band p { margin: 18px auto 0; max-width: 56ch; color: var(--muted-dark); font-size: 18px; }
.cta-band .btn-row { justify-content: center; }
.cta-small { font: 400 13px/1.4 var(--font-mono) !important; }
.site-footer { padding: 56px 0 28px; background: #080808; color: var(--muted-dark); border-top: 1px solid var(--line-dark); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { margin: 14px 0 0; font-size: 15px; }
.footer-brand .mono { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-col h2 { margin-bottom: 12px; font: 500 12px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 8px 0; }
.footer-col a, .footer-bottom a { color: var(--muted-dark); text-decoration: none; font-size: 15px; }
.footer-col a:hover, .footer-bottom a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 14px; }
.footer-bottom p { margin: 0; }
@media (max-width: 980px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* ── Motion (transform and opacity only; JS adds .is-in / .is-loaded) ─────── */
.js .cards[data-anim] > *, .js .steps[data-anim] > * { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; transition-delay: calc(var(--i, 0) * 110ms); }
.js .cards[data-anim].is-in > *, .js .steps[data-anim].is-in > * { opacity: 1; transform: none; }
.js .card--link.is-in:hover, .js .cards.is-in > .card--link:hover { transform: translateY(-2px); transition-delay: 0s; }
.js .screen[data-anim] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .screen[data-anim].is-in { opacity: 1; transform: none; }
/* Wipe-in for sketches: a cover in the background color slides away */
.draw::after { content: ""; position: absolute; inset: 0; background: var(--wipe); transform: translateX(101%); pointer-events: none; }
.js .draw[data-anim]::after { transform: none; transition: transform 1.5s cubic-bezier(.45, .05, .35, 1); }
.js .draw[data-anim].is-in::after { transform: translateX(101%); }
/* SVG line reveal: a cover rect slides right (trend first, then the projection) */
.cover { fill: var(--wipe); transform-box: fill-box; }
.js .drift-svg .cover, .js .scr-chart .cover { transform: translateX(0); }
.js .is-loaded .drift-svg .cover, .js .scr-chart.is-in .cover, .js .is-in .scr-chart .cover { animation: reveal 2.2s ease forwards; }
@keyframes reveal { 0% { transform: translateX(0); } 55% { transform: translateX(70%); } 70% { transform: translateX(70%); } 100% { transform: translateX(100%); } }
.js .drift-svg .dot, .js .scr-chart .dot { opacity: 0; }
.js .is-loaded .drift-svg .dot, .js .is-in .scr-chart .dot { animation: fadein .3s ease 1.25s forwards; }
.js .drift-card { opacity: 0; transform: translateY(12px); transition: opacity .6s ease .2s, transform .6s ease .2s; }
.js .is-loaded .drift-card { opacity: 1; transform: none; }
.js .is-loaded .beacon i { animation: pulse 2.2s ease-out 0.4s infinite; }
@keyframes pulse { 0% { opacity: 0.85; transform: scale(0.5); } 100% { opacity: 0; transform: scale(1.8); } }
@keyframes fadein { to { opacity: 1; } }
.js .scr-drop { opacity: 0; transform: translateY(-14px); }
.js .is-in .scr-drop { animation: drop .5s ease 2s forwards; }
@keyframes drop { to { opacity: 1; transform: none; } }
/* Plant lights */
.js .plant-visual.is-in .lamp--red { animation: fadein .4s ease .2s forwards, glow 1.6s ease-in-out 0.6s infinite alternate; }
.js .plant-visual.is-in .lamp--amber { animation: fadein .4s ease .6s forwards, glow 1.6s ease-in-out 1s infinite alternate; }
.plant-visual:not([data-anim]) .lamp, html:not(.js) .lamp { opacity: 1; }
@keyframes glow { from { opacity: 1; } to { opacity: 0.55; } }
/* Bars grow, worst highlights */
.js .screen .scr-barrow i { transform: scaleX(0); transition: transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--n, 0) * 80ms + 200ms); }
.js .screen.is-in .scr-barrow i { transform: scaleX(1); }
.scr-barrow:nth-child(2) { --n: 1; } .scr-barrow:nth-child(3) { --n: 2; } .scr-barrow:nth-child(4) { --n: 3; }
/* Checklist ticks fill, QR scan sweeps */
.js .screen--mobile-checklist .scr-checks li::before, .js .screen--mobile-checklist .scr-checks li::after { opacity: 0; transform-origin: center; }
.js .screen--mobile-checklist.is-in .scr-checks li::before, .js .screen--mobile-checklist.is-in .scr-checks li::after { animation: fadein .3s ease forwards; animation-delay: calc(1.4s + var(--k, 0) * 260ms); }
.js .screen--mobile-checklist.is-in .scr-checks li::after { transform: rotate(-45deg); }
.scr-checks li:nth-child(2) { --k: 1; } .scr-checks li:nth-child(3) { --k: 2; } .scr-checks li:nth-child(4) { --k: 3; } .scr-checks li:nth-child(5) { --k: 4; }
.js .screen--mobile-checklist.is-in .scan { animation: scan 0.6s ease-in-out 0.3s 2 alternate both; }
@keyframes scan { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 1; transform: translateY(110px); } }
/* Evidence pack: sections stack in, seal stamps once */
.js .screen--evidence-pack .sheet { opacity: 0; transform: translateY(-14px); transition: opacity .4s ease, transform .4s ease; transition-delay: calc(var(--i) * 90ms + 200ms); }
.js .screen--evidence-pack.is-in .sheet { opacity: 1; transform: none; }
.js .screen--evidence-pack .seal { opacity: 0; transform: rotate(-12deg) scale(1.3); }
.js .screen--evidence-pack.is-in .seal { animation: stamp .35s ease-out 1s forwards; }
@keyframes stamp { to { opacity: 1; transform: rotate(-12deg) scale(1); } }
/* EHS: padlock closes, permit flips to approved */
.js .ehs-scene .padlock { transform: translateY(-14px); transition: transform .5s ease .5s; }
.js .ehs-scene.is-in .padlock { transform: none; }
.js .ehs-scene.is-in .permit-inner { transform: rotateY(180deg); transition-delay: 1.2s; }
html:not(.js) .permit-inner { transform: rotateY(180deg); }
/* Industries: slow float */
.js .industries.is-in .industry-art .render { animation: float 6s ease-in-out infinite alternate; }
@keyframes float { from { transform: translateY(-4px); } to { transform: translateY(4px); } }
/* Hero parallax target */
.hero-visual .render { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; transition-delay: 0s !important; }
  .beacon i { display: none; }
  .js .industries .industry-art .render, .hero-visual .render { animation: none !important; transform: none !important; }
}
@media (max-width: 600px) { .drift-card { width: 56%; padding: 8px 10px; font-size: 10.5px; } .drift-card-foot { display: none; } }

/* Free calculators: validation, gate, result tables */
.calc-unit { font-weight: 400; color: var(--muted); }
.calc-opt { font: 500 11px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.calc-err { min-height: 0; font-size: 14px; font-weight: 600; color: var(--crit); }
.calc-err:empty { display: none; }
.calc-field input[aria-invalid="true"] { border-color: var(--crit); }
.calc-summary { margin: 0 0 12px; font-weight: 600; color: var(--crit); }
.calc-summary:empty { display: none; }
.calc-go { margin-top: 4px; }
.calc-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; }
.calc-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: 0 0 auto; }
.calc-res .calc-check label, .calc-res .calc-field label { color: var(--on-dark); }
.calc-locked-title { margin: 0 0 6px; font: 800 22px/1.2 var(--font-display); color: #fff; }
.calc-locked p:not(.calc-locked-title), .calc-gate p { color: var(--muted-dark); }
.calc-gate .calc-field input { background: #fff; }
.calc-gate .calc-err { color: #FFB38A; }
.calc-gate .btn { width: 100%; }
.calc-gate-note { margin: 12px 0 0; font-size: 14px; }
.calc-gate-note a, .calc-res a { color: #FFC89E; }
.calc-gate-status { min-height: 1.4em; margin: 8px 0 0; font-size: 14.5px; color: #FFC89E; }
.calc-result:focus, .calc-locked-title:focus { outline: none; }
.calc-out output { font-family: var(--font-mono); }
.calc-out--main output { font-family: var(--font-display); }
.calc-loss { width: 100%; margin: 14px 0 6px; border-collapse: collapse; font-size: 14px; color: var(--on-dark); }
.calc-loss caption { padding: 0 0 6px; color: var(--muted-dark); font: 500 12px/1.3 var(--font-mono); text-align: left; }
.calc-loss th, .calc-loss td { padding: 7px 6px; border-bottom: 1px solid var(--line-dark); text-align: left; background: none; color: var(--on-dark); }
.calc-loss thead th { font: 500 12px/1.3 var(--font-mono); color: var(--muted-dark); }
.calc-loss td:last-child { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
.calc-context { margin: 8px 0 0; font-size: 13.5px; color: var(--muted-dark); }
.calc-formula { display: grid; gap: 4px; margin-top: auto; padding-top: 14px; }
.calc-formula code { white-space: normal; }

/* Blog: listing and post figures */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 860px; }
.post-list a { display: block; padding: 24px; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); text-decoration: none; transition: border-color .2s ease; }
.post-list a:hover { border-color: var(--ink); }
.post-list h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 8px; }
.post-list p { color: var(--muted); margin: 0 0 10px; }
.post-list .post-meta { font: 400 13px/1.4 var(--font-mono); }
.post-figure { max-width: 760px; margin: 0; padding: clamp(14px, 3vw, 28px); background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); }
.post-figure svg { display: block; margin: 0 auto; }
.post-figure figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.post-steps { max-width: 760px; margin-top: 16px; }

/* Article pages (blog posts, guides): reading rhythm instead of marketing-section spacing */
.article-flow .sec { padding-bottom: clamp(28px, 3.5vw, 44px); }
.article-flow .sec--tight { padding-bottom: clamp(24px, 3vw, 36px); }
.article-flow .prose .sec-head { margin-bottom: 14px; }
.article-flow .prose h2 { font-size: clamp(26px, 3vw, 36px); }
.article-flow .sec + .sec--band, .article-flow .sec--band + .sec { padding-top: clamp(40px, 5vw, 64px); }
.article-flow #faq { padding-top: clamp(16px, 2vw, 24px); }
.post-after { margin-top: 20px; }
