/* LIFE_TIME Systems public site, design system v4 (docs/SITE_DESIGN.md).
   Light day, one dark night: the night-shift band on the home page and the closing «next step» on every case page.
   One action colour (lamp), one family (Onest, self-hosted under SIL OFL: fonts/OFL-Onest.txt). Owner desk keeps style.css. */
@font-face { font-family: "Onest"; src: url("/agency/fonts/onest-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("/agency/fonts/onest-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; src: url("/agency/fonts/onest-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --paper: #FFFFFF;
  --tint: #F1F3F9;
  --ink: #0F1532;
  --slate: #4A5372;
  --line: #DCE0EA;
  --line-strong: #7A82A0;
  --night: #10173A;
  --night-2: #1A2352;
  --night-line: #33407A;
  --night-text: #E3E8FF;
  --night-dim: #9EA9D9;
  --lamp: #F5B53A;
  --lamp-dark: #E09E1F;
  --mint: #45D4A4;
  --mint-ink: #0B7A57;
  --wait: #FF8A7A;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
header, main, footer { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--slate); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lamp); color: var(--ink); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font); color: var(--ink); text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2.2rem, 1.3rem + 3.2vw, 4rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 1.22rem; font-weight: 650; line-height: 1.25; letter-spacing: -0.012em; }
h4 { font-size: 1.05rem; font-weight: 650; line-height: 1.3; }
p, li { text-wrap: pretty; }
p { margin: 0 0 12px; }
strong, b { font-weight: 650; }
code { font-size: 0.92em; padding: 1px 5px; border-radius: 5px; background: var(--tint); }
.mut { color: var(--slate); }
.mini { font-size: 0.92rem; line-height: 1.5; }
.num, time, .tier-price, .leak-math strong, .night-stats dd { font-variant-numeric: tabular-nums; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.icon { flex: none; vertical-align: -3px; }

/* ---- header ---- */
body > header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.brand { margin-right: auto; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); }
.brand b { font-weight: 750; }
.brand-sub { margin-left: 4px; color: var(--slate); font-weight: 450; }
.header-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.case-page .header-nav { gap: 4px 14px; }
.case-page .header-nav > a { font-size: 0.94rem; }
.header-nav > a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; color: var(--ink); font-size: 0.98rem; font-weight: 500; text-decoration: none; }
.header-nav > a:hover { color: var(--ink); text-decoration: underline; }
.case-back-link { color: var(--slate) !important; }
.header-nav > a.nav-cta { padding: 0 18px; border-radius: 999px; background: var(--lamp); color: var(--ink); font-weight: 650; }
.header-nav > a.nav-cta:hover { background: var(--lamp-dark); text-decoration: none; }
.lang-switcher { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; }
.lang-switcher a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 6px; border-radius: 8px; color: var(--slate); font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.lang-switcher a:hover { color: var(--ink); background: var(--tint); }
.lang-switcher a.active { color: var(--ink); background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); }
.lang-sep { display: none; }

/* ---- buttons ---- */
.button, button.primary, .sticky-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border: 2px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 600 1rem/1.2 var(--font); text-align: center; text-decoration: none; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease; }
.button:hover { background: var(--ink); color: var(--paper); }
.button.primary, button.primary { border-color: var(--lamp); background: var(--lamp); color: var(--ink); }
.button.primary:hover, button.primary:hover { border-color: var(--lamp-dark); background: var(--lamp-dark); color: var(--ink); }
.button:active, button.primary:active { transform: scale(0.97); }
button.primary:disabled { opacity: 0.6; cursor: progress; }
.hero-actions, .contact-strip, .trust-links, .cta-center { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---- sections ---- */
main > section, .spaced { padding-block: clamp(56px, 7vw, 104px); }
main > section + section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 56px; align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head > * { grid-column: 1; }
.section-head h2 { max-width: 20ch; }
.section-head p { grid-column: 2; grid-row: 1 / span 2; align-self: end; max-width: 52ch; margin: 0; color: var(--slate); font-size: 1.08rem; }
.section-head .eyebrow { display: none; } /* labels above every heading were template chrome */
.eyebrow { display: block; margin-bottom: 10px; color: var(--slate); font-size: 0.95rem; font-weight: 600; }

/* generic surfaces */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: clamp(20px, 2.4vw, 28px); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; align-items: start; }
/* columns follow the number of blocks, so a row never ends with one orphan: 4 → 4, 7/8/11 → 4, 2 → 2, otherwise 3 */
.grid:has(> :nth-child(4):last-child), .grid:has(> :nth-child(7):last-child), .grid:has(> :nth-child(8):last-child), .grid:has(> :nth-child(11):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
.grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.grid > .card:not(.tier-card):not(.form-card):not(.proof-card):not(.callout) { padding: 18px 0 0; border: 0; border-top: 2px solid var(--ink); border-radius: 0; background: none; }
.grid > .card h3, .grid > .card .case-section-title { margin-bottom: 8px; }
.grid > .card p { color: var(--slate); }
.grid > .card p:last-child { margin-bottom: 0; }
.case-points { margin: 0; padding: 0; list-style: none; }
.case-points li { position: relative; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--line); }
.case-points li:last-child { border-bottom: 0; }
.case-points li::before { content: ""; position: absolute; left: 6px; top: 0.95em; width: 7px; height: 13px; border: solid var(--mint-ink); border-width: 0 2.5px 2.5px 0; transform: translateY(-50%) rotate(45deg); }

/* ---- home hero ---- */
.home-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px clamp(32px, 5vw, 72px); align-items: end; padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.home-hero h1 { max-width: 19ch; margin-bottom: 22px; font-size: clamp(2.2rem, 1.3rem + 2.9vw, 3.75rem); }
.hero-sub { max-width: 58ch; margin-bottom: 28px; color: var(--slate); font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; }
.hero-micro { margin: 16px 0 0; color: var(--slate); font-size: 0.95rem; }
.hero-points { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.hero-points li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--slate); font-size: 0.98rem; line-height: 1.5; }
.hero-points b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 1.06rem; }
.home main > section.night { padding-block: 0; border-top: 0; }
.home main > section.night + section { border-top: 0; }

/* ---- night shift band ---- */
.night { padding: 0; }
.night-band { padding: clamp(22px, 3.4vw, 44px); border-radius: 28px; background: var(--night); color: var(--night-text); }
.night-band :focus-visible { outline-color: #fff; }
.night-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: clamp(20px, 3vw, 32px); }
.night-head h2 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.night-label { padding: 3px 12px; border: 1px solid var(--night-line); border-radius: 999px; color: var(--night-dim); font-size: 0.85rem; font-weight: 600; }
.night-play { margin-left: auto; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--night-line); border-radius: 999px; background: transparent; color: var(--night-text); font: 600 0.95rem var(--font); cursor: pointer; }
.night-play:hover { border-color: var(--night-dim); }
.night-play[aria-pressed="true"] { border-color: var(--lamp); color: var(--lamp); }
.night-track { display: none; position: relative; height: 104px; margin: 0 6px 6px; }
.is-live .night-track { display: block; }
.night-hours { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; color: var(--night-dim); font-size: 0.8rem; }
.night-hours span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.night-hours span:first-child { transform: none; }
.night-hours span:last-child { transform: translateX(-100%); }
.night-axis { position: absolute; left: 0; right: 0; bottom: 30px; height: 2px; border-radius: 2px; background: var(--night-line); transform-origin: left center; }
.night-edge { position: absolute; bottom: 30px; width: 2px; height: 46px; background: var(--night-dim); }
.night-edge.end { right: 0; }
.night-edge span { position: absolute; bottom: 50px; white-space: nowrap; color: var(--night-dim); font-size: 0.8rem; }
.night-edge.end span { right: 0; }
.night-mark { position: absolute; bottom: 22px; width: 18px; height: 18px; margin-left: -9px; padding: 0; border: 3px solid var(--night); border-radius: 50%; background: var(--mint); cursor: pointer; transition: transform 0.18s var(--ease); }
.night-mark::before { content: ""; position: absolute; inset: -14px; }
.night-mark.on { transform: scale(1.35); box-shadow: 0 0 0 4px rgba(69, 212, 164, 0.28); }
.night-wait { position: absolute; bottom: 52px; height: 0; border-top: 2px dashed var(--wait); opacity: 0.45; transform-origin: left center; }
.night-wait.on { opacity: 1; }
.night-events { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.is-live .night-events { margin-top: 18px; }
.night-events button { display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--night-line); border-radius: 999px; background: transparent; color: var(--night-text); font: 500 0.95rem var(--font); cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.night-events button time { font-weight: 700; color: #fff; }
.night-events button:hover { border-color: var(--night-dim); }
.night-events button[aria-pressed="true"] { border-color: var(--mint); background: var(--night-2); }
.night-stage { display: grid; gap: 18px; }
.night-detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px 32px; align-items: start; padding: clamp(18px, 2.4vw, 26px); border-radius: 20px; background: var(--night-2); }
.night-detail[hidden] { display: none; }
.night-detail h3 { grid-column: 1 / -1; color: var(--night-dim); font-size: 0.95rem; font-weight: 600; letter-spacing: 0; }
.night-detail h3 time { color: #fff; }
.chat { display: grid; gap: 10px; margin: 0; }
.bubble { max-width: 92%; margin: 0; padding: 11px 14px; border-radius: 16px; font-size: 0.98rem; line-height: 1.45; }
.bubble.client { justify-self: start; border-bottom-left-radius: 4px; background: #2A3466; color: #fff; }
.bubble.ai { justify-self: end; border-bottom-right-radius: 4px; background: var(--paper); color: var(--ink); }
.night-facts { display: grid; gap: 10px; margin: 0; }
.night-facts p { margin: 0; padding-left: 26px; position: relative; font-size: 0.98rem; line-height: 1.45; }
.night-facts .ok { color: var(--mint); font-weight: 600; }
.night-facts .ok::before { content: ""; position: absolute; left: 5px; top: 0.7em; width: 6px; height: 11px; border: solid var(--mint); border-width: 0 2.5px 2.5px 0; transform: translateY(-50%) rotate(45deg); }
.night-facts .res { color: #fff; font-weight: 600; }
.night-facts .res::before { content: ""; position: absolute; left: 3px; top: 0.72em; width: 12px; height: 2px; background: #fff; transform: translateY(-50%); }
.night-facts .late { color: var(--wait); }
.night-facts .late::before { content: ""; position: absolute; left: 1px; top: 0.72em; width: 15px; border-top: 2px dashed var(--wait); transform: translateY(-50%); }
.night-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; margin: clamp(22px, 3vw, 32px) 0 0; padding-top: clamp(18px, 2.4vw, 24px); border-top: 1px solid var(--night-line); }
.night-stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.night-stats dt { color: var(--night-dim); font-size: 0.9rem; line-height: 1.35; }
.night-stats dd { margin: 0; color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.night-stats .good dd { color: var(--mint); }
.night-stats .bad dd { color: var(--wait); }
.night-note { margin: 18px 0 0; color: var(--night-dim); font-size: 0.9rem; }
.is-live .night-stage .night-detail h3 { display: none; }

/* ---- money ledger (pains) ---- */
.ledger { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.leak { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) minmax(0, 320px); gap: 8px clamp(20px, 3vw, 44px); padding: 24px 0; border-bottom: 1px solid var(--line); }
.leak-tag { margin: 3px 0 0; color: var(--slate); font-size: 0.95rem; font-weight: 600; }
.leak-body h3 { margin-bottom: 8px; }
.leak-body p { margin: 0; color: var(--slate); }
.leak-math { margin: 0; color: var(--slate); font-size: 0.95rem; line-height: 1.5; }
.leak-math strong { display: block; margin-top: 6px; color: var(--ink); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.leak-formula, .leak-note { display: block; }
.leak-note { margin-top: 4px; font-size: 0.9rem; }

/* ---- calculator ---- */
.calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(28px, 4vw, 56px); align-items: start; }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.calc label { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; color: var(--slate); font-size: 0.95rem; line-height: 1.35; }
input, textarea, select { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--paper); color: var(--ink); font: 400 1rem var(--font); }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(245, 181, 58, 0.55); outline-offset: 0; border-color: var(--ink); }
.calc input { font-size: 1.12rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-result { position: sticky; top: 24px; padding: clamp(20px, 2.6vw, 30px); border-radius: 22px; background: var(--tint); }
#calc-out { display: block; margin-bottom: 14px; font-size: 1.1rem; line-height: 1.55; }
#calc-out strong { color: var(--ink); font-size: 1.7rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.2; }
.calc-result .mini { margin-bottom: 18px; color: var(--slate); }

/* ---- steps (a real sequence: numbered) ---- */
.steps-line { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 48px); margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps-line li { position: relative; padding-top: 68px; counter-increment: s; }
.steps-line li::before { content: counter(s); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); font-weight: 700; font-size: 1.15rem; }
.steps-line li::after { content: ""; position: absolute; top: 23px; left: 60px; right: -12px; height: 2px; background: var(--line); }
.steps-line li:last-child::after { display: none; }
.steps-line h3 { margin-bottom: 8px; }
.steps-line p { margin: 0; color: var(--slate); }

/* ---- prices (tiers) ---- */
.tiers { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.tier-card { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 26px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: none; }
.tier-card:first-child { border-left: 0; padding-left: 0; }
.tier-card.tier-featured { margin-top: -2px; border-top: 6px solid var(--lamp); background: linear-gradient(var(--tint), var(--tint)) padding-box; padding-left: 22px; }
.service-label { color: var(--slate); font-size: 0.95rem; font-weight: 600; }
.tier-price { font-size: clamp(1.7rem, 1.3rem + 1vw, 2.2rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; }
.tier-card .case-points { flex: 1; font-size: 0.97rem; }
.tier-card .case-points li { padding-block: 6px; }
.tier-card .button { margin-top: 8px; }
.tier-note { margin: 20px 0 0; }

/* ---- industries, trust, faq ---- */
.industries-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 56px); border-top: 2px solid var(--ink); }
.industry { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 0; }
.industry p { margin: 0 0 6px; color: var(--slate); }
.trust { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 28px clamp(28px, 4vw, 56px); align-items: start; }
.trust .case-points { border-top: 2px solid var(--ink); }
.trust .case-points li { padding-block: 14px; }
.trust-links { flex-direction: column; align-items: stretch; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; background: none; }
.faq summary { position: relative; display: flex; align-items: center; min-height: 64px; padding: 14px 48px 14px 0; font-size: 1.12rem; font-weight: 650; line-height: 1.3; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { max-width: 70ch; margin: 0 0 20px; color: var(--slate); }

/* ---- request form ---- */
#request-section { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px clamp(28px, 5vw, 64px); align-items: start; }
#request-section > div h2 { margin-bottom: 14px; }
#request-section > div > p { color: var(--slate); }
#request-section .contact-strip { margin: 20px 0; }
.form-card { display: grid; gap: 16px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 50px -40px rgba(15, 21, 50, 0.5); }
.form-card h3 { font-size: 1.35rem; }
.form-card > label { display: grid; gap: 6px; font-weight: 600; font-size: 0.98rem; }
.form-card .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.form-card .check input { flex: none; width: 24px; min-height: 0; height: 24px; margin: 2px 0 0; accent-color: var(--ink); }
#status { min-height: 1.5em; margin: 0; font-weight: 600; }

/* ---- case pages ---- */
.case-hero { padding-block: clamp(36px, 5vw, 72px) clamp(32px, 4vw, 56px); }
.case-hero-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 18px; font-size: 0.95rem; }
.case-hero-meta .eyebrow { display: inline; margin: 0; }
.case-breadcrumb { display: inline-flex; align-items: center; min-height: 44px; color: var(--slate); }
.case-meta-sep { color: var(--line-strong); }
.case-status-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 5px 14px 5px 12px; border-radius: 999px; background: var(--tint); font-size: 0.92rem; font-weight: 600; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint-ink); }
.case-hero h1 { max-width: 22ch; margin-bottom: 22px; font-size: clamp(2rem, 1.2rem + 2.8vw, 3.5rem); }
.case-hero-sub { max-width: 64ch; margin-bottom: 28px; color: var(--slate); font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem); }
.flow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.flow-grid:has(> :nth-child(4):last-child), .flow-grid:has(> :nth-child(8):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flow-grid:has(> :nth-child(5):last-child), .flow-grid:has(> :nth-child(10):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 22px; }
.flow-arrow { display: none; }
.flow-card { position: relative; padding-top: 18px; border-top: 2px solid var(--ink); }
.flow-step-header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; }
.flow-step-num { font-size: 0.92rem; font-weight: 700; }
.flow-step-badge { padding: 2px 10px; border-radius: 999px; background: var(--tint); color: var(--slate); font-size: 0.82rem; font-weight: 600; }
.flow-card h3 { margin-bottom: 8px; }
.flow-card p { margin: 0; color: var(--slate); }
.proof-card { padding: clamp(22px, 3vw, 32px); border: 0; border-radius: 22px; background: var(--tint); }
.proof-card .case-points li { border-bottom-color: #D3D8E6; }
.grid > .proof-card { padding: 22px; }
.callout { padding: 6px 0 6px clamp(18px, 2.4vw, 28px); border: 0; border-left: 4px solid var(--lamp); border-radius: 0; background: none; }
.callout p { max-width: 72ch; }
.table-wrap { padding: 0; border: 0; overflow-x: auto; }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; }
.compare th, .compare td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { border-bottom: 2px solid var(--ink); font-size: 0.95rem; }
.compare tbody th { font-weight: 650; }
.compare td { color: var(--slate); }
.symptom-tag, .proof-metric, .optional-num, .target-card-num { display: block; margin-bottom: 8px; color: var(--slate); font-size: 0.92rem; font-weight: 650; }
.case-section-title { font-size: 1.12rem; font-weight: 650; }
.case-highlight-card { padding: 4px 0 4px clamp(18px, 2.4vw, 28px); border: 0; border-left: 4px solid var(--lamp); border-radius: 0; background: none; font-size: 1.12rem; }
.case-status-banner { margin-bottom: 28px; padding: 18px 22px; border-radius: 16px; background: var(--tint); }
.banner-tag, .optional-badge { display: block; margin-bottom: 6px; font-size: 0.92rem; font-weight: 700; }
.case-status-banner p { margin: 0; color: var(--slate); }
.pattern-detail { margin-top: 8px; color: var(--slate); font-size: 0.97rem; }
.optional-notice-box { margin-bottom: 32px; padding: 18px 22px; border: 1.5px dashed var(--line-strong); border-radius: 16px; }
.optional-notice-box p { margin: 0; color: var(--slate); }
.case-ai-architecture-card { margin-bottom: 36px; padding: clamp(22px, 3vw, 32px); border: 0; border-radius: 22px; background: var(--tint); }
.case-ai-architecture-card > h3 { margin-bottom: 6px; }
.case-ai-architecture-card .grid { margin-top: 18px; }
.arch-card { padding-top: 14px; border-top: 2px solid var(--ink); }
.arch-card h4 { margin-bottom: 6px; }
.arch-card p { margin: 0; color: var(--slate); }
.note-spaced { margin-top: 18px; }

/* the closing «next step»: the second dark place on every case page */
.case-cta-section { margin-block: clamp(40px, 6vw, 80px); padding: clamp(28px, 5vw, 64px); border: 0; border-radius: 28px; background: var(--night); color: var(--night-text); text-align: left; }
main > section.case-cta-section { border-top: 0; }
.case-cta-section .eyebrow { display: block; color: var(--night-dim); }
.case-cta-section h2 { max-width: 22ch; margin-bottom: 14px; color: #fff; }
.case-cta-lead, .case-cta-text { max-width: 64ch; color: var(--night-text); }
.case-cta-text strong { color: #fff; }
.case-cta-meta { display: grid; gap: 6px; margin: 22px 0 26px; padding: 16px 0; border-block: 1px solid var(--night-line); color: var(--night-dim); font-size: 0.95rem; }
.case-cta-meta strong { color: var(--night-text); }
.case-cta-section .button { border-color: var(--night-line); color: var(--night-text); }
.case-cta-section .button:hover { border-color: var(--night-text); background: transparent; color: #fff; }
.case-cta-section .button.primary { border-color: var(--lamp); background: var(--lamp); color: var(--ink); }
.case-cta-section .button.primary:hover { border-color: var(--lamp-dark); background: var(--lamp-dark); color: var(--ink); }
.case-cta-section :focus-visible { outline-color: #fff; }

/* invoice page (/agency/pay/…) */
.invoice-card { max-width: 720px; margin: clamp(32px, 5vw, 64px) auto; }
.invoice-card h1 { margin: 6px 0 12px; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.invoice-card h2 { margin: 28px 0 12px; font-size: 1.4rem; }
.invoice-card .card { margin-bottom: 12px; }
.invoice-card > .button { display: flex; width: 100%; margin-top: 10px; }
.invoice-card > .button + .mini { margin-top: 12px; }
.pay-details { overflow-x: auto; margin: 8px 0 12px; padding: 12px 14px; border-radius: 10px; background: var(--tint); font: 500 0.95rem/1.5 ui-monospace, "SFMono-Regular", Menlo, monospace; white-space: pre-wrap; word-break: break-all; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--tint); font-weight: 650; }
.pill.yes { background: #DDF6EC; color: var(--mint-ink); }

/* ---- footer ---- */
body > footer { display: grid; gap: 8px; margin-top: 24px; padding-block: 32px 40px; border-top: 1px solid var(--line); color: var(--slate); font-size: 0.95rem; }
body > footer a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); }
.sticky-cta { display: none; }

/* ---- responsive ---- */
@media (max-width: 1360px) {
  .case-page .header-nav > a:not(.nav-cta):not(.nav-tg):not(.case-back-link) { display: none; }
}
@media (max-width: 1000px) {
  .grid, .grid:has(> :nth-child(4):last-child), .grid:has(> :nth-child(7):last-child), .grid:has(> :nth-child(8):last-child), .grid:has(> :nth-child(11):last-child), .flow-grid, .flow-grid:has(> :nth-child(4):last-child), .flow-grid:has(> :nth-child(8):last-child), .flow-grid:has(> :nth-child(5):last-child), .flow-grid:has(> :nth-child(10):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero, .calc, .trust, #request-section { grid-template-columns: minmax(0, 1fr); }
  .home-hero { align-items: start; }
  .leak { grid-template-columns: minmax(0, 1fr) minmax(0, 260px); }
  .leak-tag { grid-column: 1 / -1; }
  .calc-result { position: static; }
  .night-detail { grid-template-columns: minmax(0, 1fr); }
  .night-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-nav > a:not(.nav-cta):not(.nav-tg):not(.case-back-link) { display: none; }
}
@media (max-width: 760px) {
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head p { grid-column: 1; grid-row: auto; }
  .leak { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .steps-line { grid-template-columns: minmax(0, 1fr); }
  .steps-line li { padding: 0 0 30px 68px; }
  .steps-line li::after { top: 54px; bottom: 6px; left: 23px; right: auto; width: 2px; height: auto; }
  .tier-card, .tier-card:first-child { padding: 22px 0 26px; border-left: 0; border-bottom: 1px solid var(--line); }
  .tier-card.tier-featured { padding-inline: 18px; }
  .industries-list, .calc-grid { grid-template-columns: minmax(0, 1fr); }
  .grid, .grid:has(> *), .flow-grid, .flow-grid:has(> *) { grid-template-columns: minmax(0, 1fr); }
  .night-track { height: 92px; }
  .night-hours span:nth-child(2), .night-hours span:nth-child(4), .night-hours span:nth-child(6), .night-hours span:nth-child(7) { display: none; }
  .night-events { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; margin-inline: -4px; padding: 2px 4px 6px; scrollbar-width: none; }
  .night-events li { flex: none; scroll-snap-align: start; }
  .night-play { margin-left: 0; }
  .case-cta-section .button, .hero-actions .button { flex: 1 1 100%; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  body > header { gap: 6px 12px; padding-block: 12px; }
  .brand { font-size: 1.02rem; }
  .header-nav { gap: 2px 10px; }
  .nav-tg-label { display: none; }
  .header-nav > a.nav-tg, .case-back-link { display: none !important; } /* Telegram stays in the hero, the form and the footer */
  .header-nav { gap: 2px 8px; }
  .header-nav > a.nav-cta { padding: 0 16px; font-size: 0.95rem; }
  .case-page .header-nav > a.nav-cta { display: none; } /* the case hero has the same action as its first button */
  .lang-switcher { margin-left: 0; }
  .lang-switcher a { min-width: 40px; }
  .night-band { border-radius: 22px; margin-inline: -6px; }
  .night-stats { gap: 14px 16px; }
  .sticky-cta { display: flex; transition: transform 0.25s var(--ease), opacity 0.25s ease; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; border-color: var(--lamp); background: var(--lamp); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(15, 21, 50, 0.6); }
  .home > footer { padding-bottom: 96px; }
  .sticky-cta.away { transform: translateY(140%); opacity: 0; pointer-events: none; } /* hidden while the hero buttons are on screen */
}

@media (max-width: 400px) {
  .lang-switcher a { min-width: 34px; padding: 0 4px; }
  .header-nav > a.nav-cta { padding: 0 12px; }
}

/* ---- the one orchestrated moment: the night draws itself once ---- */
@media (prefers-reduced-motion: no-preference) {
  .is-live.intro .night-axis { animation: v4-grow 0.9s var(--ease) both; }
  .is-live.intro .night-wait { animation: v4-grow 0.8s var(--ease) both; animation-delay: calc(0.5s + var(--i, 0) * 0.12s); }
  .is-live.intro .night-mark { animation: v4-pop 0.45s var(--ease) both; animation-delay: calc(0.35s + var(--i, 0) * 0.12s); }
  .night-detail:not([hidden]) { animation: v4-fade 0.3s ease both; }
}
@keyframes v4-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes v4-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes v4-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
