/* Kaironova. Static site, no build step. */

@font-face { font-family: "Lora"; src: url("../fonts/lora-var.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #f4efe4;
  --paper-deep: #e9e1d0;
  --card: #fbf8f1;
  --ink: #18202e;
  --ink-soft: #485061;
  --rule: #d5ccb8;
  --navy: #0c1629;
  --navy-lift: #16233f;
  --mist: #c9d1e0;
  --lamp: #f2b24c;
  --lamp-deep: #855407;
  --serif: "Lora", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); line-height: 1.05; letter-spacing: -0.025em; text-wrap: wrap; max-width: 13.5em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.1; }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
svg { display: block; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lamp-deep); outline-offset: 3px; border-radius: 4px; }
.on-night :focus-visible, .site-footer :focus-visible, .calc :focus-visible { outline-color: var(--lamp); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--ink-soft); max-width: 38em; }
.band { padding-block: clamp(72px, 10vw, 136px); }
.band__head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 46rem; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.s { display: inline-block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: #26324a; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--lamp { background: var(--lamp); color: var(--navy); }
.btn--lamp:hover { background: #f7c56f; }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(244, 239, 228, 0.9); border-bottom: 1px solid transparent; transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease; }
@supports (backdrop-filter: blur(8px)) { .site-header { backdrop-filter: blur(10px); background: rgba(244, 239, 228, 0.78); } }
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header.is-night { background: rgba(12, 22, 41, 0.72); color: var(--paper); border-bottom-color: rgba(255, 255, 255, 0.08); }
.site-header.is-night .btn--primary { background: var(--lamp); color: var(--navy); }
.site-header__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; text-decoration: none; margin-right: auto; }
.brand svg { height: 30px; width: 30px; }
.brand { gap: 10px; }
.nav { display: none; gap: 26px; font-size: 0.9375rem; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; transition: border-color 0.2s ease; }
.nav a:hover { border-bottom-color: currentColor; }
@media (min-width: 900px) { .nav { display: flex; } }

/* 1. Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 96px) clamp(64px, 9vw, 120px); background: radial-gradient(120% 90% at 100% 100%, #f3d9a4 0%, rgba(243, 217, 164, 0.35) 38%, rgba(244, 239, 228, 0) 68%), var(--paper); }
.hero__in { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: 22px; justify-items: start; }
.hero__sub { font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.5; color: var(--ink-soft); max-width: 31em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__more { font-size: 0.9875rem; color: var(--ink-soft); display: grid; gap: 6px; }
.hero__more a { color: var(--ink); font-weight: 500; }
@media (min-width: 900px) { .hero__in { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr); } }

.phone { width: min(100%, 330px); margin-inline: auto; background: var(--navy); border-radius: 44px; padding: 12px; box-shadow: 0 40px 70px -30px rgba(40, 30, 10, 0.55), 0 0 0 1.5px #27324a inset; }
.phone__screen { background: #f7f5f0; border-radius: 33px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-height: 370px; color: var(--ink); }
.phone__bar { display: grid; gap: 2px; justify-items: center; padding: 16px 16px 12px; border-bottom: 1px solid #e3ded2; background: #fbfaf6; }
.phone__clock { font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; justify-self: start; margin-bottom: 4px; }
.phone__who { font-weight: 600; font-size: 0.95rem; }
.phone__kind { font-size: 0.75rem; color: var(--ink-soft); }
.phone__thread { padding: 18px 14px 20px; display: flex; flex-direction: column; gap: 12px; }
.phone__event { align-self: center; display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--ink-soft); background: #ece8dd; border-radius: 999px; padding: 6px 12px; }
.phone__event svg { width: 14px; height: 14px; color: var(--lamp-deep); }
.bubble { background: #e6e3da; border-radius: 18px 18px 18px 6px; padding: 11px 14px; font-size: 0.9rem; line-height: 1.45; max-width: 92%; }
.bubble u { text-decoration-color: var(--lamp-deep); color: var(--lamp-deep); font-weight: 500; }
.bubble__meta { display: block; font-size: 0.7rem; color: var(--ink-soft); margin-top: 6px; }
.typing { align-self: flex-start; display: none; gap: 4px; background: #e6e3da; border-radius: 16px; padding: 12px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8d8a80; }
.phone__note { text-align: center; font-size: 0.875rem; color: var(--ink-soft); margin-top: 18px; }

.motion .phone [data-step] { opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease, transform 0.5s ease; }
.motion .phone [data-step].is-in { opacity: 1; transform: none; }
.motion .phone .typing.is-in { display: inline-flex; }
.motion .phone .typing i { animation: blink 1s infinite ease-in-out; }
.motion .phone .typing i:nth-child(2) { animation-delay: 0.15s; }
.motion .phone .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* 2. Story */
.story__intro { padding-block: clamp(56px, 8vw, 104px) clamp(32px, 4vw, 48px); display: grid; gap: 18px; }
.story__stage { position: relative; }
.sky, .story__clock, .story__ticks { display: none; }

.scene { position: relative; color: var(--paper); padding: clamp(40px, 7vw, 72px) var(--gutter); display: grid; gap: 22px; }
.scene--1 { background: linear-gradient(180deg, #34426b 0%, #8a5f72 46%, #d98f63 100%); }
.scene--2 { background: linear-gradient(180deg, #131c38 0%, #2b2d57 55%, #5c4468 100%); }
.scene--3 { background: linear-gradient(180deg, #0b1426 0%, #111e3b 100%); }
.scene--4 { background: linear-gradient(180deg, #070d1a 0%, #0c1730 100%); }
.scene--5 { background: linear-gradient(180deg, #c6d9e6 0%, #efe9da 70%, var(--paper) 100%); color: var(--ink); }
.scene > * { width: 100%; max-width: 1084px; margin-inline: auto; }
.scene__head { display: grid; gap: 8px; }
.scene__time { font-family: var(--serif); font-size: clamp(2.6rem, 8vw, 4.5rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.02em; }
.scene__head h3 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
.scene__head p:last-child { max-width: 36em; opacity: 0.86; font-size: 1rem; line-height: 1.5; }

.clinics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.clinic { background: rgba(9, 16, 32, 0.62); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; padding: 10px 8px 8px; display: grid; gap: 8px; align-content: start; }
.clinic__name { font-weight: 600; font-size: 0.8125rem; line-height: 1.2; }
.clinic__state { display: block; font-weight: 400; font-size: 0.72rem; line-height: 1.25; min-height: 2.5em; opacity: 0.75; margin-top: 2px; }
.clinic--yours { border-color: var(--lamp); box-shadow: 0 0 0 1px var(--lamp), 0 0 34px -6px rgba(242, 178, 76, 0.55); }
.clinic--yours .clinic__state { color: var(--lamp); opacity: 1; }
.rows { display: grid; gap: 6px; }
.row { min-height: 46px; border-radius: 9px; padding: 6px 7px; background: rgba(255, 255, 255, 0.07); display: grid; gap: 1px; align-content: center; font-size: 0.72rem; line-height: 1.25; }
.row--empty { background: none; border: 1px dashed rgba(255, 255, 255, 0.14); }
.row__what { display: flex; align-items: center; gap: 5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.row__what svg { width: 13px; height: 13px; flex: none; }
.row__status { opacity: 0.8; }
.row--wait .row__status { color: #ff9d8a; opacity: 1; }
.row--sent { background: rgba(242, 178, 76, 0.16); }
.row--sent .row__status { color: var(--lamp); opacity: 1; }
.row--booked { background: var(--lamp); color: var(--navy); }
.row--booked .row__status { opacity: 1; font-weight: 600; }

.scene--5 .clinic { background: rgba(255, 255, 255, 0.72); border-color: rgba(24, 32, 46, 0.14); }
.scene--5 .clinic--yours { border-color: var(--lamp-deep); box-shadow: 0 0 0 1px var(--lamp-deep), 0 18px 40px -18px rgba(133, 84, 7, 0.5); }
.scene--5 .clinic--yours .clinic__state { color: var(--lamp-deep); }
.scene--5 .row { background: rgba(24, 32, 46, 0.06); }
.scene--5 .row--wait .row__status { color: #a23a2a; }
.scene--5 .row--sent { background: rgba(242, 178, 76, 0.3); }
.scene--5 .row--sent .row__status { color: var(--lamp-deep); }
.scene--5 .row--booked { background: var(--lamp); }

.reply { display: grid; gap: 10px; align-content: start; }
.reply__label { font-size: 0.78rem; opacity: 0.8; }
.reply__bubble { background: var(--paper); color: var(--ink); border-radius: 16px 16px 16px 5px; padding: 11px 14px; font-size: 0.875rem; line-height: 1.45; }
.reply__bubble u { text-decoration-color: var(--lamp-deep); color: var(--lamp-deep); font-weight: 500; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.75rem; }
.checks li { display: inline-flex; align-items: center; gap: 5px; }
.checks svg { width: 13px; height: 13px; color: var(--lamp); flex: none; }
.reply__line { font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.6rem); line-height: 1.25; }
.reply__aside { font-size: 0.875rem; opacity: 0.8; }

@media (min-width: 760px) {
  .clinics { gap: 16px; }
  .clinic { padding: 16px 14px 14px; gap: 12px; border-radius: 18px; }
  .clinic__name { font-size: 1rem; }
  .clinic__state { font-size: 0.8125rem; min-height: 0; }
  .rows { gap: 8px; }
  .row { min-height: 50px; padding: 8px 12px; font-size: 0.875rem; grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
  .row__status { text-align: right; }
  .row__what svg { width: 16px; height: 16px; }
  .reply-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .reply-row .reply { grid-column: 3; }
  .reply-row .reply--wide { grid-column: 1 / -1; }
  .reply__bubble { font-size: 0.9375rem; }
}

/* Story, live (JavaScript on, motion allowed) */
.story-live .story__track { height: 540vh; }
.story-live .story__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--paper); transition: color 0.5s ease; }
.story-live .story__stage.is-morning { color: var(--ink); }
.story-live .sky { display: block; position: absolute; inset: 0; }
.sky__layer { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.sky__layer svg { position: absolute; left: 0; bottom: 0; width: 100%; height: clamp(90px, 9vw + 60px, 240px); }
.sky__layer:first-child { opacity: 1; }
.sky--1 { background: linear-gradient(180deg, #34426b 0%, #8a5f72 50%, #e39a66 100%); --bld: #2a2440; --win: rgba(255, 214, 140, 0.35); }
.sky--2 { background: linear-gradient(180deg, #131c38 0%, #2b2d57 58%, #5c4468 100%); --bld: #0d1228; --win: rgba(255, 205, 120, 0.85); }
.sky--3 { background: linear-gradient(180deg, #0b1426 0%, #111e3b 100%); --bld: #060b18; --win: rgba(255, 205, 120, 0.7); }
.sky--4 { background: linear-gradient(180deg, #070d1a 0%, #0c1730 100%); --bld: #03060f; --win: rgba(255, 205, 120, 0.28); }
.sky--5 { background: linear-gradient(180deg, #c6d9e6 0%, #efe9da 62%, #f4efe4 100%); --bld: #cfd3d0; --win: rgba(255, 255, 255, 0); }
.skyline__bld { fill: var(--bld); }
.skyline__win { fill: var(--win); }
.sky__stars { position: absolute; inset: 0 0 35% 0; opacity: 0; background-image: radial-gradient(1.2px 1.2px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 27% 61%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 41% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 58% 38%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 71% 9%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 83% 47%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 93% 24%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 6% 52%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 49% 70%, #fff 50%, transparent 51%), radial-gradient(1.1px 1.1px at 35% 33%, #fff 50%, transparent 51%); }

.story-live .story__clock { display: block; position: absolute; z-index: 2; top: calc(var(--header-h) + clamp(10px, 2.5vh, 28px)); left: 0; right: 0; padding-inline: var(--gutter); pointer-events: none; }
.story__clock span { display: block; max-width: 1084px; margin-inline: auto; font-family: var(--serif); font-size: clamp(2.9rem, 9vh, 5.2rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.story-live .scenes { position: absolute; inset: 0; }
.story-live .scene { position: absolute; inset: 0; background: none; color: inherit; padding-top: calc(var(--header-h) + clamp(10px, 2.5vh, 28px) + clamp(2.9rem, 9vh, 5.2rem) + 12px); padding-bottom: 74px; align-content: start; gap: clamp(12px, 2.4vh, 24px); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.story-live .scene.is-active { opacity: 1; transition: opacity 0.4s ease; }
.story-live .scene--5 { color: var(--ink); }
.story-live .scene__time { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.story-live .scene.is-active .is-new { animation: rowIn 0.55s 0.12s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }

.story-live .story__ticks { display: grid; grid-template-columns: repeat(5, 1fr); position: absolute; z-index: 2; left: 0; right: 0; bottom: 18px; width: calc(100% - 2 * var(--gutter)); max-width: 1084px; margin-inline: auto; font-size: 0.75rem; font-variant-numeric: tabular-nums; padding-top: 12px; }
.story__ticks::before, .story__ticks::after { content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 100%; background: currentColor; opacity: 0.22; border-radius: 2px; }
.story__ticks::after { opacity: 1; background: var(--lamp); transform-origin: left; transform: scaleX(var(--p, 0)); }
.is-morning .story__ticks::after { background: var(--lamp-deep); }
.story__ticks li { opacity: 0.55; transition: opacity 0.3s ease; }
.story__ticks li.is-on { opacity: 1; font-weight: 600; }
.story__ticks li:nth-child(n + 2) { text-align: center; }
.story__ticks li:last-child { text-align: right; }

@media (max-width: 759px) {
  .row__status { white-space: nowrap; }
  .story-live .story__clock { top: calc(var(--header-h) + 6px); }
  .story-live .story__clock span { font-size: clamp(2.3rem, 7vh, 3.4rem); }
  .story-live .scene { padding-top: calc(var(--header-h) + 6px + clamp(2.3rem, 7vh, 3.4rem) + 8px); padding-bottom: 46px; gap: clamp(8px, 1.6vh, 16px); }
  .story-live .scene__head { gap: 4px; }
  .story-live .scene__head h3 { font-size: 1.25rem; }
  .story-live .scene__head p:last-child { font-size: 0.875rem; line-height: 1.4; }
  .story-live .clinic { padding: 8px 6px 6px; gap: 6px; }
  .story-live .rows { gap: 4px; }
  .story-live .row { min-height: clamp(36px, 6vh, 46px); padding: 4px 7px; }
  .story-live .reply { gap: 7px; }
  .story-live .reply__label { display: none; }
  .story-live .reply__bubble { font-size: 0.8125rem; line-height: 1.4; padding: 8px 12px; }
  .story-live .checks { font-size: 0.6875rem; gap: 3px 10px; }
  .story-live .story__ticks { bottom: 8px; font-size: 0.6875rem; padding-top: 8px; }
}
@media (min-width: 760px) and (max-height: 780px) {
  .story-live .story__clock span { font-size: clamp(2.6rem, 8vh, 4rem); }
  .story-live .scene { padding-top: calc(var(--header-h) + clamp(10px, 2.5vh, 28px) + clamp(2.6rem, 8vh, 4rem) + 8px); padding-bottom: 60px; gap: 12px; }
  .story-live .clinic { padding: 12px 12px 10px; gap: 8px; }
  .story-live .rows { gap: 6px; }
  .story-live .row { min-height: 40px; padding-block: 6px; }
  .story-live .reply { gap: 6px; }
  .story-live .reply__bubble { font-size: 0.8125rem; line-height: 1.4; padding: 8px 12px; }
  .story-live .reply__label { display: none; }
  .story-live .scene__head p:last-child { font-size: 0.9375rem; }
  .story-live .story__ticks { bottom: 12px; }
}

@media (min-width: 760px) and (max-height: 660px) {
  .story-live .story__clock span { font-size: 2.3rem; }
  .story-live .scene { padding-top: calc(var(--header-h) + 10px + 2.3rem + 6px); gap: 9px; }
  .story-live .scene__head h3 { font-size: 1.3rem; }
  .story-live .row { min-height: 34px; padding-block: 4px; }
  .story-live .reply-row .reply { grid-column: 2 / -1; }
  .story-live .reply__label { display: none; }
}

/* 3. Findings */
.findings__grid { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.finding { display: grid; gap: 14px; padding-block: 28px; border-bottom: 1px solid var(--rule); align-items: center; }
.finding__num { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.finding__num small { font-size: 0.42em; letter-spacing: 0; color: var(--ink-soft); margin-inline: 0.2em; }
.finding__num small:first-child { margin-left: 0; }
.finding__text { font-size: 1.0625rem; max-width: 26em; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; max-width: 250px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink); opacity: 0.35; }
.dots i.on { background: var(--lamp-deep); border-color: var(--lamp-deep); opacity: 1; }
.motion .dots i.on { background: transparent; border-color: var(--ink); opacity: 0.35; transition: background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease; }
.motion .is-counted .dots i.on { background: var(--lamp-deep); border-color: var(--lamp-deep); opacity: 1; }
.hours { display: grid; grid-template-columns: repeat(13, 1fr); gap: 3px; max-width: 250px; }
.hours i { height: 14px; border-radius: 3px; background: var(--ink); opacity: 0.85; }
.motion .hours i { transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.motion .is-counted .hours i { transform: none; }
.hours__ends { display: flex; justify-content: space-between; max-width: 250px; font-size: 0.75rem; color: var(--ink-soft); margin-top: 6px; }
.method { margin-top: 28px; font-size: 0.9375rem; color: var(--ink-soft); max-width: 44em; }
@media (min-width: 760px) {
  .finding { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr) 250px; gap: 32px; padding-block: 30px; }
}

/* 4. Calculator */
.calc { background: var(--navy); color: var(--paper); }
.calc .lede { color: var(--mist); }
.calc__grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
.calc__inputs { display: grid; gap: 26px; }
.field { display: grid; gap: 8px; }
.field__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.field label { font-weight: 500; line-height: 1.35; max-width: 22em; }
.field__hint { font-size: 0.8125rem; color: var(--mist); }
.field__num { display: inline-flex; align-items: center; gap: 4px; flex: none; background: var(--navy-lift); border: 1px solid #2c3b5e; border-radius: 10px; padding: 0 10px; font-variant-numeric: tabular-nums; }
.field__num input { width: 4.2em; min-height: 44px; background: none; border: 0; text-align: right; font-weight: 600; font-size: 1.0625rem; -moz-appearance: textfield; appearance: textfield; }
.field__num input::-webkit-outer-spin-button, .field__num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field__num:focus-within { border-color: var(--lamp); }
.field__num input:focus-visible { outline: none; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: none; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: #33436a; }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: #33436a; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--lamp); border: 3px solid var(--navy); margin-top: -10px; box-shadow: 0 0 0 1.5px var(--lamp); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--lamp); border: 3px solid var(--navy); box-shadow: 0 0 0 1.5px var(--lamp); }
.calc__out { background: var(--navy-lift); border: 1px solid #2c3b5e; border-radius: 24px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 14px; }
.calc__label { font-size: 0.9375rem; color: var(--mist); }
.calc__figure { font-family: var(--serif); font-size: clamp(3rem, 8vw, 5rem); line-height: 1; letter-spacing: -0.02em; color: var(--lamp); font-variant-numeric: lining-nums tabular-nums; }
.calc__figure small { font-family: var(--sans); font-size: 1rem; letter-spacing: 0; color: var(--mist); margin-left: 6px; }
.calc__sum { font-size: 1rem; }
.calc__note { font-size: 0.8125rem; color: var(--mist); border-top: 1px solid #2c3b5e; padding-top: 14px; }
.calc__out .btn { justify-self: start; margin-top: 6px; }
@media (min-width: 900px) { .calc__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } .calc__out { position: sticky; top: calc(var(--header-h) + 24px); } }

/* 5. What we do */
.services { display: grid; gap: 12px; }
.service { background: var(--card); border: 1px solid var(--rule); border-radius: 20px; padding: 22px; display: grid; gap: 10px; align-content: start; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.service__icon { width: 30px; height: 30px; color: var(--lamp-deep); transition: color 0.3s ease; }
.service h3 button { all: unset; cursor: pointer; display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; font: inherit; letter-spacing: inherit; }
.service h3 button:focus-visible { outline: 3px solid var(--lamp-deep); outline-offset: 4px; border-radius: 4px; }
.service__sign { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; position: relative; opacity: 0.7; }
.service__sign::before, .service__sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.25s ease; }
.service__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.service.is-open .service__sign::after { transform: translate(-50%, -50%) rotate(0deg); }
.service__sum { color: var(--ink-soft); transition: color 0.3s ease; }
.service__more { font-size: 0.9688rem; line-height: 1.55; }
.js .service__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.js .service__more > div { overflow: hidden; }
.js .service.is-open .service__more { grid-template-rows: 1fr; }
.service.is-open { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.service.is-open .service__sum { color: var(--mist); }
.service.is-open .service__icon { color: var(--lamp); }
.service.is-open h3 button:focus-visible { outline-color: var(--lamp); }
@media (min-width: 700px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) and (hover: hover) {
  .services { grid-template-columns: repeat(4, 1fr); }
  .js .service { min-height: 350px; }
  .js .service:hover, .js .service:focus-within { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .js .service:hover .service__sum, .js .service:focus-within .service__sum { color: var(--mist); }
  .js .service:hover .service__icon, .js .service:focus-within .service__icon { color: var(--lamp); }
  .js .service:hover .service__more, .js .service:focus-within .service__more { grid-template-rows: 1fr; }
  .js .service:hover .service__sign::after, .js .service:focus-within .service__sign::after { transform: translate(-50%, -50%) rotate(0deg); }
}

/* 6. How it works */
.steps-band { background: var(--paper-deep); }
.steps { display: grid; gap: 28px; counter-reset: step; }
.step { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 1.5px solid var(--ink); counter-increment: step; }
.step::before { content: counter(step); font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--lamp-deep); font-variant-numeric: lining-nums; }
.step p { color: var(--ink-soft); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* 7. Safeguards */
.guards { display: grid; gap: 26px 48px; }
.guard { display: grid; grid-template-columns: 28px 1fr; gap: 6px 14px; }
.guard svg { width: 26px; height: 26px; color: var(--lamp-deep); margin-top: 2px; }
.guard h3 { font-size: 1.2rem; }
.guard p { grid-column: 2; color: var(--ink-soft); }
@media (min-width: 800px) { .guards { grid-template-columns: repeat(2, 1fr); } }

/* 8. About */
.about { border-top: 1px solid var(--rule); }
.about__grid { display: grid; gap: 32px; }
.about__body { display: grid; gap: 16px; max-width: 36em; font-size: 1.0938rem; }
.about__name { background: var(--card); border: 1px solid var(--rule); border-radius: 20px; padding: 26px; display: grid; gap: 10px; align-content: start; align-self: start; }
.about__name dt { font-family: var(--serif); font-size: 1.5rem; }
.about__name dd { color: var(--ink-soft); margin-bottom: 10px; }
.about__name dd:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .about__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 72px; } }

/* 9. FAQ */
.faq-band { background: var(--paper-deep); }
.faq { border-top: 1px solid var(--ink); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 0 22px; max-width: 42em; color: var(--ink-soft); }
.faq details p + p { margin-top: -10px; }

/* 10. Final call to action and footer */
.final { position: relative; overflow: hidden; background: linear-gradient(180deg, #131c38 0%, var(--navy) 70%); color: var(--paper); padding-block: clamp(80px, 11vw, 150px) clamp(150px, 20vw, 260px); }
.final__in { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: start; max-width: 44rem; margin-inline: 0; }
.final .lede { color: var(--mist); }
.final__sky { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(120px, 20vw, 240px); width: 100%; --bld: #060b18; --win: rgba(255, 205, 120, 0.75); }
.site-footer { background: #060b18; color: var(--mist); padding-block: 48px 40px; font-size: 0.9375rem; }
.site-footer__in { display: grid; gap: 28px; }
.site-footer .brand { color: var(--paper); margin: 0; }
.site-footer a { color: var(--paper); }
.site-footer__line { max-width: 30em; }
.legal { font-size: 0.8438rem; line-height: 1.6; border-top: 1px solid #1d2a47; padding-top: 22px; display: grid; gap: 6px; max-width: 62em; }
@media (min-width: 800px) { .site-footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; } }
.site-footer__top { display: grid; gap: 16px; }

/* 404 */
.lost { min-height: 70vh; display: grid; align-content: center; gap: 20px; justify-items: start; padding-block: 80px; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
