/* Data brokering site. Dark cinematic look after Dan's reference (thecorner.ai), written from scratch.
   One type family for Latin and Cyrillic so both languages look the same: Geologica + Geist Mono. */

@font-face { font-family: "Geologica"; src: url("fonts/Geologica-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Geologica"; src: url("fonts/Geologica-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: "Geist Mono"; src: url("fonts/GeistMono-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-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; }

:root {
  --bg: #121212; --bg2: #171717; --bg3: #1c1c1e;
  --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
  --fg: #ededed; --fg2: #a3a3a3; --fg3: #6e6e6e;
  --amber: #e7a46b; --green: #7bd88f; --rose: #f2a0a0;
  --sky1: #353d48; --sky2: #2a3039; --sky3: #1b1d21;
  --sans: "Geologica", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.21,.47,.32,.98);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-weight: 320; font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; letter-spacing: -.028em; text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: 500; }
::selection { background: rgba(231,164,107,.35); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(88px, 12vw, 160px) 0; position: relative; }
.section--tight { padding: clamp(56px, 8vw, 104px) 0; }
.head { max-width: 800px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.h1 { font-size: clamp(38px, 5.7vw, 70px); line-height: 1.04; }
.h2 { font-size: clamp(30px, 4.1vw, 52px); line-height: 1.08; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.02em; }
.dim { color: rgba(237,237,237,.52); }
.eyebrow { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg3); margin: 0 0 18px; }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--fg2); max-width: 54ch; margin: 22px auto 0; }
.fine { font-size: 13px; color: var(--fg3); margin-top: 18px; }
.mono { font-family: var(--mono); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 6px; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg2); white-space: nowrap; }

/* Buttons: a light slab with a dark square that holds the arrow */
.btn { display: inline-flex; align-items: center; gap: 14px; height: 52px; padding: 0 6px 0 20px; border-radius: 8px; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 450; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s; }
.btn__chip { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 5px; transition: transform .25s var(--ease); }
.btn__chip svg { width: 16px; height: 16px; }
.btn:hover .btn__chip { transform: translateX(2px); }
.btn:active { transform: scale(.98); }
.btn--light { background: rgba(255,255,255,.92); color: #111; }
.btn--light:hover { background: #fff; }
.btn--light .btn__chip { background: #121212; color: #fff; }
.btn--ghost { background: rgba(30,30,33,.72); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--ghost .btn__chip { background: rgba(255,255,255,.08); }
.btn--sm { height: 40px; gap: 10px; padding: 0 5px 0 14px; font-size: 14px; border-radius: 7px; }
.btn--sm .btn__chip { width: 30px; height: 30px; }
.btn--plain { padding: 0 20px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); font-size: 15px; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
a:hover > .link-arrow svg, .link-arrow:hover svg { transform: translateX(3px); }

/* Nav: transparent over the hero, a floating glass bar after scroll */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: center; padding: 14px 16px; pointer-events: none; }
.nav__in { pointer-events: auto; display: flex; align-items: center; gap: 6px; width: 100%; max-width: 1180px; height: 52px; padding: 0 6px 0 14px;
  border: 1px solid transparent; border-radius: 14px; transition: max-width .5s var(--ease), background-color .4s, border-color .4s; }
.nav[data-scrolled="true"] .nav__in { max-width: 980px; background: rgba(20,20,21,.74); border-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; padding: 6px 4px; font-weight: 500; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.brand svg { width: 22px; height: 22px; flex: none; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a { padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--fg2); transition: color .2s, background-color .2s; }
.nav__links a:hover { color: var(--fg); background: rgba(255,255,255,.06); }
.lang { display: inline-flex; align-items: center; gap: 2px; margin: 0 6px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; }
.lang a, .lang span { padding: 5px 8px; border-radius: 6px; color: var(--fg3); }
.lang span { color: var(--fg); background: rgba(255,255,255,.09); }
.lang a:hover { color: var(--fg); }
.nav .btn .short { display: none; }

/* Hero: text block on top, the digit horizon fills whatever height is left, so the two never collide in either language */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; min-height: clamp(700px, 100svh, 960px);
  background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 34%, var(--sky3) 62%, var(--bg) 100%); }
.hero::before, .grainy::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: overlay; background-image: var(--grain);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 78%); mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 78%); }
.digits { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.hero__in { position: relative; text-align: center; max-width: 1060px; padding: 132px 24px 0; }
.hero__field { position: relative; flex: 1 1 auto; align-self: stretch; min-height: 300px; margin-top: -18px; }
.hero__field::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; pointer-events: none; background: linear-gradient(to bottom, rgba(18,18,18,0), var(--bg)); z-index: -1; }
.hero__range { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 26px auto 0; }
.hero__range .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(237,237,237,.5); }
.hero__range b { font-size: clamp(38px, 4.8vw, 62px); font-weight: 450; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero__range b i { font-style: normal; font-weight: 300; color: rgba(237,237,237,.5); }
.hero .lede { color: rgba(237,237,237,.74); max-width: 66ch; }
.hero .btn-row { margin-top: 32px; }
.hero .fine { color: rgba(237,237,237,.5); margin-top: 16px; }
.hero__foot { position: absolute; left: 0; right: 0; bottom: 30px; margin: 0 auto; width: max-content; max-width: calc(100% - 32px); display: flex; justify-content: center; flex-wrap: wrap;
  gap: 6px 26px; padding: 11px 22px; border-radius: 999px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(237,237,237,.55);
  background: rgba(30,30,33,.6); box-shadow: inset 0 0 0 1px var(--line2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hero__foot b { color: var(--fg); font-weight: 450; }

/* Process: the place where the reference has its video series. A stage with a mock per step, tabs under it, the step text on the right */
.process__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4.5vw, 64px); align-items: start; }
.stage { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 16 / 10.4; border-radius: 20px; border: 1px solid var(--line2);
  background: linear-gradient(160deg, #343b46 0%, #262b33 46%, #17181b 100%); }
.stage .digits { opacity: .75; }
.pane { position: absolute; inset: 0; display: grid; place-items: center; padding: clamp(18px, 3vw, 36px); opacity: 0; visibility: hidden; transform: translateY(10px) scale(.985);
  transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .5s; }
.pane.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mock { width: min(100%, 400px); padding: 20px 22px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(18,18,19,.78);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 14.5px; }
.mock__cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg3); }
.mock__row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.mock__row span:first-child { color: var(--fg3); flex: none; }
.mock__row span:last-child { text-align: right; }
.mock__row.is-best { color: var(--amber); }
.mock__row.is-best span:first-child { color: var(--amber); }
.mock__row.is-out span:last-child { color: var(--fg3); text-decoration: line-through; }
.mock__row .ok { color: var(--green); }
.mock__big { font-size: clamp(30px, 3.4vw, 42px); font-weight: 400; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mock__status { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--green); font-size: 14px; }
.mock__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 18px; }
.tab { display: block; text-align: left; padding: 0; border: 0; background: none; cursor: pointer; color: var(--fg3); font-size: 13.5px; transition: color .2s; }
.tab:hover, .tab.is-on { color: var(--fg); }
.tab__bar { display: block; height: 2px; margin-bottom: 10px; background: rgba(255,255,255,.14); overflow: hidden; border-radius: 2px; }
.tab__bar i { display: block; height: 100%; width: 0; background: #e4e4e4; }
.tab.is-done .tab__bar i { width: 100%; }
.tab.is-on .tab__bar i { width: 100%; }
.process.is-auto .tab.is-on .tab__bar i { animation: tabfill var(--step-ms, 6500ms) linear forwards; }
.process.is-paused .tab.is-on .tab__bar i { animation-play-state: paused; }
@keyframes tabfill { from { width: 0; } to { width: 100%; } }
.tab .n { font-family: var(--mono); font-size: 11px; margin-right: 6px; color: var(--fg3); }
.steptext { position: relative; min-height: 300px; padding-top: clamp(0px, 3vw, 40px); }
.steptext__item { display: none; }
.steptext__item.is-on { display: block; animation: fadeup .5s var(--ease); }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.steptext .eyebrow { color: var(--fg2); }
.steptext p { color: var(--fg2); margin-top: 14px; max-width: 40ch; }
.steptext .btn { margin-top: 30px; }

/* Statement and the three checks buyers run */
.statement { max-width: 23em; margin: 0 auto; text-align: center; font-size: clamp(24px, 3vw, 38px); font-weight: 300; line-height: 1.28; letter-spacing: -.022em; text-wrap: balance; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trio > div { padding: 34px 28px; border-left: 1px solid var(--line); }
.trio > div:first-child { border-left: 0; }
.trio .n { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.03em; line-height: 1.1; }
.trio p { margin-top: 12px; font-size: 14.5px; color: var(--fg2); max-width: 30ch; }

/* Hairline grid: industries and terms */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.cell { position: relative; display: flex; flex-direction: column; padding: 34px 28px 30px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); transition: background-color .3s; }
.grid3 > .cell:nth-child(3n) { border-right: 0; }
a.cell:hover { background: rgba(255,255,255,.025); }
.cell canvas.glyph { width: 150px; height: 96px; margin: 0 0 22px -6px; display: block; }
.cell h3 { font-size: 20px; font-weight: 400; letter-spacing: -.015em; }
.cell p { margin-top: 10px; font-size: 15px; color: var(--fg2); }
.cell .cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 24px; font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--amber); }
.cell .cap svg { width: 14px; height: 14px; color: var(--fg3); transition: transform .25s var(--ease), color .2s; }
a.cell:hover .cap svg { transform: translateX(3px); color: var(--fg); }
.cell--wide { grid-column: 1 / -1; justify-content: center; align-items: flex-start; gap: 22px; border-right: 0; }
.cell--wide h3 { font-size: clamp(22px, 2.3vw, 30px); font-weight: 300; max-width: 22ch; }
.term .k { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg3); }
.term .v { margin-top: 14px; font-size: 21px; letter-spacing: -.02em; line-height: 1.2; }
.term p { font-size: 14.5px; }

/* Split: sticky heading on the left, rows on the right */
.split { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split__side { position: sticky; top: 120px; }
.split__side .h2 { font-size: clamp(28px, 3.3vw, 44px); }
.split__side p { margin-top: 20px; color: var(--fg2); font-size: 17px; max-width: 42ch; }
.split__side .btn { margin-top: 30px; }
.rows { border-top: 1px solid var(--line2); }
.row { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.row .n { font-family: var(--mono); font-size: 12px; color: var(--fg3); padding-top: 5px; }
.row h3 { font-size: 19px; font-weight: 400; letter-spacing: -.015em; }
.row p { margin-top: 6px; color: var(--fg2); font-size: 15px; max-width: 52ch; }

/* Offer comparison card */
.offer { margin-top: 36px; border: 1px solid var(--line2); border-radius: 16px; background: var(--bg2); overflow: hidden; }
.offer__head, .offer__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; font-size: 14.5px; }
.offer__head { border-bottom: 1px solid var(--line); }
.offer__foot { border-top: 1px solid var(--line); color: var(--fg2); }
.offer__foot b { color: var(--fg); }
.offer__foot .up { color: var(--green); font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.offer__scroll { overflow-x: auto; }
.offer table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14.5px; }
.offer th, .offer td { padding: 13px 14px; text-align: left; font-weight: 320; border-top: 1px solid var(--line); vertical-align: top; }
.offer thead th { border-top: 0; font-weight: 450; }
.offer thead small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 11px; color: var(--fg3); font-weight: 400; }
.offer tbody th { color: var(--fg3); padding-left: 20px; white-space: nowrap; }
.offer .win { background: rgba(231,164,107,.08); color: var(--amber); }
.offer .win small { color: var(--amber); opacity: .8; }
.offer .price { font-size: 19px; font-weight: 400; letter-spacing: -.02em; }
.offer .warn { color: var(--rose); }

/* De-identification mock with a toggle */
.deid { max-width: 720px; margin: clamp(36px, 5vw, 56px) auto 0; border: 1px solid var(--line2); border-radius: 16px; background: rgba(23,23,23,.9); overflow: hidden; text-align: left; }
.deid__bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--fg3); }
.deid__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.12); }
.deid__bar span { margin-left: 10px; }
.deid__body { padding: 20px 24px 10px; }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--line2); border-radius: 10px; background: rgba(255,255,255,.03); }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 7px; background: none; cursor: pointer; font-size: 13.5px; color: var(--fg2); transition: background-color .2s, color .2s; }
.seg button[aria-pressed="true"] { background: #ededed; color: #111; font-weight: 450; }
.msg { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.msg:last-child { border-bottom: 0; }
.msg .av { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.07); font-size: 13px; color: var(--fg2); }
.msg .who { font-size: 14.5px; }
.msg time { margin-left: 8px; font-family: var(--mono); font-size: 11px; color: var(--fg3); }
.msg p { margin-top: 4px; color: var(--fg2); font-size: 15px; }
.pii { padding: 1px 5px; border-radius: 5px; background: rgba(242,160,160,.14); color: var(--rose); transition: background-color .3s, color .3s; }
.pii .anon { display: none; }
.deid[data-view="anon"] .pii { background: rgba(255,255,255,.08); color: var(--fg); font-family: var(--mono); font-size: .88em; }
.deid[data-view="anon"] .pii .raw { display: none; }
.deid[data-view="anon"] .pii .anon { display: inline; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); margin-top: clamp(48px, 6vw, 80px); text-align: left; }

/* Lists with ticks and crosses */
.list { border-top: 1px solid var(--line); }
.list li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.list li svg { width: 16px; height: 16px; margin-top: 5px; color: var(--green); }
.list--no li svg { color: var(--fg3); }
.list small { display: block; margin-top: 2px; font-size: 14px; color: var(--fg3); }
.list-k { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg3); margin-bottom: 14px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 22px 0; font-size: 18px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 16px; height: 16px; flex: none; margin-top: 6px; color: var(--fg3); transition: transform .3s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .a { padding: 0 0 24px; color: var(--fg2); max-width: 64ch; }

/* Final call and footer */
.final { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: clamp(110px, 14vw, 190px) 0 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--sky3) 40%, var(--sky2) 72%, var(--sky1) 100%); }
.final__field { position: relative; height: clamp(230px, 25vw, 330px); margin-top: 26px; }
.final::after { content: ""; position: absolute; inset: 0 0 auto; height: 30%; z-index: -1; background: linear-gradient(to bottom, var(--bg), rgba(18,18,18,0)); }
.foot { padding: 44px 0 40px; font-size: 14px; background: var(--bg); border-top: 1px solid var(--line); }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--fg2); }
.foot__links a:hover { color: var(--fg); }
.foot__disc { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--fg3); font-size: 12.5px; line-height: 1.65; max-width: 96ch; }
.foot__copy { margin-top: 16px; color: var(--fg3); font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; }

/* Reveal on scroll, only when JS is on */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* Calculator page */
.calc { min-height: 100svh; padding: 84px 16px 16px; background: #1f2227; }
.calc__stage { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100svh - 100px); border-radius: 24px; padding: clamp(40px, 6vw, 72px) 16px clamp(56px, 8vw, 96px);
  display: flex; flex-direction: column; align-items: center; background: linear-gradient(180deg, #3a424e 0%, #2a3039 38%, #1b1d21 76%, #141415 100%); }
.calc__stage .digits { top: 30%; height: 70%; }
.calc__title { max-width: 760px; text-align: center; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.1; }
.panel { position: relative; width: 100%; max-width: 780px; margin-top: clamp(28px, 4vw, 48px); border-radius: 20px; border: 1px solid var(--line2);
  background: rgba(38,43,52,.62); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); -webkit-backdrop-filter: blur(22px) saturate(130%); backdrop-filter: blur(22px) saturate(130%); overflow: hidden; }
.panel__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 26px clamp(20px, 5vw, 48px) 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(237,237,237,.55); }
.panel__top b { margin-left: 10px; font-family: var(--sans); font-size: 18px; font-weight: 450; letter-spacing: -.01em; text-transform: none; color: var(--fg); white-space: nowrap; }
.panel__top .est { text-align: right; }
.panel__body { padding: clamp(28px, 5vw, 52px) clamp(20px, 5vw, 48px) 8px; min-height: 380px; }
.q__title { font-size: clamp(24px, 3vw, 36px); line-height: 1.12; text-align: center; }
.q__hint { margin: 12px auto 0; max-width: 52ch; text-align: center; color: rgba(237,237,237,.62); font-size: 15px; }
.opts { display: grid; gap: 8px; max-width: 520px; margin: 28px auto 0; }
.opts--grid { grid-template-columns: 1fr 1fr; max-width: none; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 52px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line2);
  background: rgba(18,18,19,.42); cursor: pointer; text-align: left; font-size: 15.5px; transition: border-color .2s, background-color .2s, transform .15s var(--ease); }
.opt:hover { border-color: rgba(255,255,255,.34); background: rgba(18,18,19,.62); }
.opt:active { transform: scale(.99); }
.opt[aria-pressed="true"] { border-color: #ededed; background: rgba(237,237,237,.1); }
.opt small { flex: none; font-family: var(--mono); font-size: 12px; color: var(--amber); letter-spacing: .02em; }
.opt .sub { display: block; margin-top: 2px; font-size: 13px; color: rgba(237,237,237,.55); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 620px; margin: 28px auto 0; }
.chip { min-height: 40px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(18,18,19,.42); cursor: pointer; font-size: 14.5px; text-align: left; transition: border-color .2s, background-color .2s, color .2s; }
.chip:hover { border-color: rgba(255,255,255,.34); }
.chip[aria-pressed="true"] { border-color: #ededed; background: #ededed; color: #111; font-weight: 400; }
.chips--col { flex-direction: column; align-items: stretch; max-width: 520px; }
.chips--col .chip { border-radius: 10px; min-height: 48px; padding: 10px 16px; }
.note { max-width: 520px; margin: 18px auto 0; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(231,164,107,.35); background: rgba(231,164,107,.07); color: #f0c7a2; font-size: 14px; }
.panel__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px clamp(20px, 5vw, 48px) 28px; }
.panel__nav .back { height: 44px; padding: 0 14px; border: 0; border-radius: 8px; background: none; cursor: pointer; color: rgba(237,237,237,.62); font-size: 14.5px; }
.panel__nav .back:hover { color: var(--fg); background: rgba(255,255,255,.06); }
.panel__bar { height: 2px; margin: 0 clamp(20px, 5vw, 48px) 26px; background: rgba(255,255,255,.14); border-radius: 2px; overflow: hidden; }
.panel__bar i { display: block; height: 100%; width: 0; background: #e4e4e4; transition: width .6s var(--ease); }
.result { text-align: center; }
.result__amount { margin-top: 10px; font-size: clamp(46px, 7vw, 84px); font-weight: 400; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result__amount i { font-style: normal; font-weight: 300; color: rgba(237,237,237,.5); }
.bars { display: grid; gap: 14px; max-width: 460px; margin: 34px auto 0; text-align: left; }
.bars__row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; }
.bars__row span:last-of-type { font-family: var(--mono); font-size: 12px; color: rgba(237,237,237,.55); }
.bar { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: rgba(255,255,255,.1); overflow: hidden; }
/* The width is set inline by calc.js; the animation only plays it in, so a bar is right even if no animation runs */
.bar i { display: block; height: 100%; border-radius: 5px; background: #e4e4e4; animation: bargrow 1.1s var(--ease) both; }
@keyframes bargrow { from { width: 0; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; max-width: 600px; margin: 28px auto 0; text-align: left; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .field .lab { font-size: 13.5px; color: rgba(237,237,237,.7); }
.field input, .field select, .field textarea { width: 100%; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(18,18,19,.5); color: var(--fg);
  font: inherit; font-size: 16px; transition: border-color .2s, background-color .2s; -webkit-appearance: none; appearance: none; }
.field textarea { height: 88px; padding: 12px 14px; resize: vertical; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a3a3a3' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(237,237,237,.3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #ededed; background: rgba(18,18,19,.7); }
.field.is-bad input, .field.is-bad .chips { border-color: var(--rose); }
.field .err { display: none; font-size: 12.5px; color: var(--rose); }
.field.is-bad .err { display: block; }
.field .chips { justify-content: flex-start; margin: 0; max-width: none; padding: 0; border: 1px solid transparent; border-radius: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.calc__fine { width: fit-content; max-width: min(780px, 100%); margin: 22px auto 0; padding: 8px 14px; border-radius: 10px; text-align: center; font-size: 12.5px; color: rgba(237,237,237,.66); background: rgba(20,20,21,.86); }
.form .calc__fine { width: auto; padding: 0; background: none; color: rgba(237,237,237,.45); }
.done-mark { width: 56px; height: 56px; margin: 8px auto 22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(123,216,143,.5); color: var(--green); }
.done-mark svg { width: 22px; height: 22px; }

/* Grid children may shrink below their content width, otherwise a wide table pushes the whole column off a phone screen */
.split > *, .process__grid > *, .duo > *, .grid3 > *, .trio > * { min-width: 0; }

/* Responsive */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .process__grid, .split, .duo { grid-template-columns: 1fr; }
  .split__side { position: static; }
  .steptext { min-height: 0; padding-top: 0; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .grid3 > .cell:nth-child(3n) { border-right: 1px solid var(--line); }
  .grid3 > .cell:nth-child(2n) { border-right: 0; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 10px 10px; }
  .nav__in { padding: 0 5px 0 10px; }
  .nav .btn .long { display: none; }
  .nav .btn .short { display: inline; }
  .lang { margin: 0 4px; }
  .hero__in { padding: 112px 20px 0; }
  .hero__field { min-height: 250px; }
  .hero__foot { bottom: 22px; border-radius: 16px; font-size: 11px; gap: 4px 16px; padding: 10px 16px; }
  .btn-row { flex-direction: column; align-items: stretch; max-width: 360px; margin-left: auto; margin-right: auto; }
  .btn-row .btn { justify-content: space-between; }
  .stage { aspect-ratio: auto; height: 330px; border-radius: 16px; }
  .tabs { gap: 6px; }
  .tab { font-size: 11.5px; letter-spacing: -.01em; }
  .tab .n { display: block; margin: 0 0 2px; }
  .trio { grid-template-columns: 1fr; }
  .trio > div { border-left: 0; border-top: 1px solid var(--line); padding: 26px 4px; }
  .trio > div:first-child { border-top: 0; }
  .grid3 { grid-template-columns: 1fr; }
  .grid3 > .cell, .grid3 > .cell:nth-child(3n) { border-right: 0; padding: 28px 4px; }
  .row { grid-template-columns: 34px 1fr; gap: 10px; }
  .deid__body { padding: 16px 16px 6px; }
  .faq summary { font-size: 17px; }
  .calc { padding: 72px 8px 8px; }
  .calc__stage { border-radius: 18px; }
  .opts--grid, .form { grid-template-columns: 1fr; }
  .panel__top { flex-direction: column; gap: 6px; }
  .panel__top .est { text-align: left; }
  .panel__top b { margin-left: 8px; }
  .panel__body { min-height: 320px; }
  .panel__nav { flex-direction: column-reverse; align-items: stretch; gap: 6px; }
  .panel__nav .btn { justify-content: space-between; }
  .panel__nav > span:empty { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .pane, .panel__bar i { transition: none; }
  .bar i { animation: none; }
  .process.is-auto .tab.is-on .tab__bar i { animation: none; width: 100%; }
}

/* Late additions */
.stage__tag { position: absolute; left: 16px; top: 16px; z-index: 2; background: rgba(18,18,19,.55); }

/* Privacy policy and other legal text */
.legal { max-width: 74ch; }
.legal h1 { margin: 14px 0 8px; }
.legal h2 { margin: 44px 0 12px; font-size: 22px; font-weight: 400; letter-spacing: -.015em; }
.legal p, .legal li { color: var(--fg2); font-size: 16px; line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 0; padding-left: 20px; }
.legal li + li { margin-top: 8px; }
.legal a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.calc__fine a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.legal ul { list-style: disc; }
.legal ul + p { margin-top: 14px; }
