/* CraftLoan design system v2 (2026-11-10). Modern sans, white/cream surfaces, navy/royal brand, motion-first.
   Motion is driven by js/main.js, which adds `html.js`; without JS everything is visible and static. */
:root {
  --navy: #0A1B3D;
  --navy-2: #102A5C;
  --royal: #2152E5;
  --royal-deep: #173EB8;
  --sky: #6FA8FF;
  --ice: #EEF3FF;
  --cream: #F8F5EF;
  --cream-2: #F0EBE1;
  --white: #FFFFFF;
  --ink: #0E1730;
  --muted: #5E6880;
  --line: #E4E7EF;
  --gold: #C9A24B;
  --gold-soft: #F6EEDA;
  --good: #14804A;
  --good-soft: #E2F4EA;
  --bad: #B8323A;
  --bad-soft: #FBE7E8;

  --font: "Rubik", "Segoe UI", Arial, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(10, 27, 61, .05), 0 6px 18px -8px rgba(10, 27, 61, .14);
  --shadow: 0 2px 4px rgba(10, 27, 61, .04), 0 18px 44px -18px rgba(10, 27, 61, .22);
  --shadow-lg: 0 4px 8px rgba(10, 27, 61, .05), 0 40px 80px -28px rgba(10, 27, 61, .42);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { direction: rtl; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: opacity .35s ease; }
body.leaving { opacity: 0; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.02em; text-wrap: balance; color: var(--navy); }
h1 { font-size: clamp(2.7rem, 6.4vw, 5.2rem); font-weight: 800; letter-spacing: -.035em; }
h1.slogan { font-size: clamp(2.4rem, 5.3vw, 4.5rem); }   /* the slogan in three short lines, sized so the longest fits the hero column */
h1.slogan .line { white-space: nowrap; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.35rem; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--royal); text-decoration: none; }
:focus-visible { outline: 2px solid var(--royal); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; letter-spacing: .08em; color: var(--royal); font-weight: 600; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 56ch; font-weight: 400; }
.wrap { width: min(1200px, 100%); margin-inline: auto; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.demo-note { font-size: .78rem; color: var(--muted); }

/* ---------- Motion primitives ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(34px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); will-change: transform, opacity; }
html.js body.app [data-reveal] { transition-duration: .6s, .7s, .6s; transition-delay: calc(var(--i, 0) * 60ms); transform: translateY(20px); filter: none; }
html.js [data-reveal="scale"] { transform: translateY(20px) scale(.94); }
html.js [data-reveal="side"] { transform: translateX(-60px); }
html.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

.split .line { display: block; }
html.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
html.js .split .wi { display: inline-block; transform: translateY(115%) rotate(4deg); transform-origin: right bottom; transition: transform 1.1s var(--ease); transition-delay: calc(var(--wi, 0) * 80ms + 120ms); }
html.js .split.in .wi { transform: none; }
.grad, html.js .split .grad .wi { background: linear-gradient(100deg, var(--royal) 10%, var(--sky) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.draw path, .draw circle, .draw rect, .draw line { stroke-dasharray: 1; stroke-dashoffset: 0; }
html.js .draw path, html.js .draw circle, html.js .draw rect, html.js .draw line { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) .25s; }
html.js .in .draw path, html.js .in .draw circle, html.js .in .draw rect, html.js .in .draw line, html.js .draw.in path { stroke-dashoffset: 0; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@keyframes shine { from { transform: translateX(120%) skewX(-20deg); } to { transform: translateX(-220%) skewX(-20deg); } }
@keyframes aurora { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-6%, 5%) scale(1.15); } 100% { transform: translate(0, 0) scale(1); } }
@keyframes paneIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drawMark { to { stroke-dashoffset: 0; } }

/* Loader (index only) */
.loader { display: none; }
html.js .loader { position: fixed; inset: 0; z-index: 200; background: var(--white); display: grid; place-items: center; transition: transform 1s var(--ease-io); }
html.js .loader.done { transform: translateY(-101%); }
.loader svg { width: 86px; height: 86px; }
.loader .lm { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawMark 1s var(--ease) forwards; }
.loader .lm2 { animation-delay: .25s; }

/* Scroll progress + custom cursor (created by JS) */
.scrollbar { position: fixed; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--sky), var(--royal)); transform-origin: right; transform: scaleX(var(--sp, 0)); z-index: 120; pointer-events: none; }
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 190; border-radius: 50%; will-change: transform; }
.cursor { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid #fff; mix-blend-mode: difference; opacity: 0; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, opacity .3s; }
.cursor.on { opacity: .9; }
.cursor.hot { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(255, 255, 255, .14); }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; opacity: 0; transition: opacity .3s; }
.cursor-dot.on { opacity: 1; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; transition: transform .5s var(--ease), background .3s, box-shadow .3s; padding-top: env(safe-area-inset-top, 0px); }
.nav.scrolled { background: rgba(255, 255, 255, .86); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.nav.hide { transform: translateY(-110%); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; direction: ltr; }
.brand .mark { width: 34px; height: 34px; transition: transform .6s var(--ease); }
.brand:hover .mark { transform: rotate(-90deg); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a:not(.btn) { color: var(--ink); font-weight: 500; font-size: .98rem; position: relative; padding-block: 6px; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; right: 0; bottom: 0; height: 2px; width: 100%; background: var(--royal); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); border-radius: 2px; }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: right; }
@media (max-width: 820px) { .nav-links .hide-m { display: none; } }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; white-space: nowrap; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s, border-color .25s; }
.btn .arr { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(-5px); }
.btn-primary { background: var(--royal); color: var(--white); box-shadow: 0 14px 30px -14px rgba(33, 82, 229, .85); }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; right: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: translateX(120%) skewX(-20deg); }
.btn-primary:hover::after { animation: shine .9s var(--ease); }
.btn-primary:hover { background: var(--royal-deep); box-shadow: 0 20px 36px -14px rgba(33, 82, 229, .9); }
.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(10, 27, 61, .22); }
.btn-ghost:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
.btn-light:hover { background: var(--ice); }
.btn-sm { padding: 10px 20px; font-size: .92rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { position: relative; margin-top: -76px; padding-top: 76px; min-height: min(100svh, 920px); display: grid; align-items: center; overflow: hidden; background: linear-gradient(180deg, var(--ice) 0%, var(--white) 78%); }
.ribbons { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-glow { position: absolute; inset: -20% -10% auto auto; width: 62vw; height: 62vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(closest-side, rgba(111, 168, 255, .38), transparent 70%); animation: aurora 14s ease-in-out infinite; pointer-events: none; }
.hero-glow.b { inset: auto auto -30% -15%; width: 50vw; height: 50vw; background: radial-gradient(closest-side, rgba(33, 82, 229, .16), transparent 70%); animation-duration: 18s; animation-direction: reverse; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 80px); align-items: center; padding-block: clamp(36px, 6vw, 80px); }
.hero-copy { display: grid; gap: 26px; justify-items: start; padding-right: clamp(0px, 3.5vw, 64px); }
.hero { z-index: 1; }
.tagpill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--navy); box-shadow: var(--shadow-sm); }
.tagpill i, .live i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; animation: pulse 1.8s infinite; flex: none; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 28px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.hero-proof li { display: grid; gap: 2px; }
.hero-proof b { color: var(--navy); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.scroll-cue { position: absolute; bottom: 22px; right: 50%; transform: translateX(50%); display: grid; justify-items: center; gap: 8px; font-size: .78rem; color: var(--muted); letter-spacing: .1em; }
.scroll-cue::after { content: ""; width: 1.5px; height: 38px; background: linear-gradient(var(--royal), transparent); animation: floaty 1.8s ease-in-out infinite; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .scroll-cue { display: none; } .hero { min-height: 0; } h1.slogan { font-size: min(12.4vw, 4rem); } }

/* Hero visual: tilting composer + floating chips */
.hero-visual { perspective: 1400px; padding: 30px 30px 36px; }
@media (max-width: 560px) { .hero-visual { padding-inline: 8px; } }
.tilt { position: relative; transform-style: preserve-3d; will-change: transform; max-width: 480px; margin-inline: auto; }
.composer { position: relative; background: var(--white); border: 1px solid rgba(255, 255, 255, .9); border-radius: 28px; padding: 26px 26px 46px; box-shadow: var(--shadow-lg); display: grid; gap: 18px; }
.composer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.composer-head b { display: block; font-size: 1.1rem; color: var(--navy); }
.composer-head small { color: var(--muted); font-size: .76rem; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 500; color: var(--good); background: var(--good-soft); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.composer-amount { display: flex; justify-content: space-between; align-items: baseline; }
.composer-amount .lbl { color: var(--muted); font-size: .9rem; }
.composer-amount output { font-size: 2.3rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.composer input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; background: linear-gradient(to left, var(--royal) var(--fill, 60%), var(--line) var(--fill, 60%)); outline-offset: 6px; cursor: grab; margin: 0; }
.composer input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--white); border: 3px solid var(--royal); box-shadow: 0 4px 12px rgba(33, 82, 229, .4); transition: transform .2s; }
.composer input[type=range]:active::-webkit-slider-thumb { transform: scale(1.2); }
.composer input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 3px solid var(--royal); }
.terms { display: flex; gap: 8px; }
.terms button { flex: 1; font: inherit; font-size: .9rem; font-weight: 500; padding: 9px 0; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; transition: all .3s var(--ease); }
.terms button.on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.offers { position: relative; height: 218px; }
.offer { position: absolute; top: 0; right: 0; left: 0; height: 66px; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 2px 14px; align-items: center; padding: 10px 16px; border-radius: 16px; background: var(--cream); border: 1.5px solid transparent; transform: translateY(calc(var(--pos, 0) * 76px)); transition: transform .8s var(--ease), background .4s, border-color .4s, box-shadow .4s; }
.offer .o-name { font-size: .82rem; color: var(--muted); grid-column: 2; }
.offer .o-rate { grid-row: span 2; grid-column: 1; font-size: 1.55rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; min-width: 78px; }
.offer .o-pay { font-size: .88rem; color: var(--ink); grid-column: 2; white-space: nowrap; }
.offer .o-bar { grid-row: 1 / span 2; grid-column: 3; width: 74px; height: 6px; border-radius: 6px; background: rgba(10, 27, 61, .08); overflow: hidden; }
.offer .o-bar i { display: block; height: 100%; width: 100%; border-radius: 6px; background: var(--muted); transform-origin: right; transform: scaleX(var(--w, 1)); transition: background .4s; }
.offer .o-badge { position: absolute; top: -10px; left: 14px; font-size: .68rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--royal); color: var(--white); opacity: 0; transform: translateY(6px) scale(.9); transition: all .45s var(--ease); }
.offer.lead { background: var(--white); border-color: var(--royal); box-shadow: 0 14px 30px -16px rgba(33, 82, 229, .6); z-index: 2; }
.offer.lead .o-badge { opacity: 1; transform: none; }
.offer.lead .o-bar i { background: var(--royal); }
.offer.flash { background: var(--ice); }
.composer-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .9rem; color: var(--muted); }
.composer-foot b { color: var(--good); font-size: 1.15rem; }
.chip { position: absolute; z-index: 3; will-change: transform; }
.chip > span { display: inline-flex; align-items: center; gap: 9px; background: var(--white); border-radius: 14px; padding: 11px 15px; font-size: .86rem; font-weight: 500; color: var(--navy); box-shadow: var(--shadow); animation: floaty 5s ease-in-out infinite; white-space: nowrap; }
.chip svg { width: 18px; height: 18px; color: var(--royal); flex: none; }
.chip-a { top: -20px; left: -22px; }
.chip-b { bottom: -20px; right: -24px; }
.chip-b > span { animation-delay: -2s; background: var(--royal); color: var(--white); }
.chip-b svg { color: var(--white); }
.chip-c { bottom: -20px; left: -14px; }
.chip-c > span { animation-delay: -3.4s; }
@media (max-width: 560px) { .chip-c { display: none; } .chip-a { left: -6px; } .chip-b { right: -6px; } }

/* ---------- Marquee ---------- */
.marq { overflow: hidden; direction: ltr; padding-block: clamp(22px, 3vw, 40px); border-block: 1px solid var(--line); background: var(--white); }
.marq-track { display: flex; gap: 44px; width: max-content; will-change: transform; font-size: clamp(1.8rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; white-space: nowrap; align-items: center; }
.marq-track span { direction: rtl; color: var(--navy); }
/* Alternate items are a solid lighter blue. Outlined (stroked) Hebrew glyphs show overlapping inner contours. */
.marq-track span.o { color: #9DB8F6; }
.marq-track i { width: 14px; height: 14px; border-radius: 50%; background: var(--royal); flex: none; }

/* ---------- Pinned "how it works" ---------- */
.how { position: relative; height: 340vh; background: var(--ice); color: var(--ink); }
.how-sticky { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; overflow: hidden; }
.how-sticky::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(33, 82, 229, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(33, 82, 229, .07) 1px, transparent 1px); background-size: 56px 56px; transform: translateY(calc(var(--p, 0) * -112px)); mask-image: radial-gradient(ellipse at 30% 50%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 20%, transparent 75%); }
.how-sticky::after { content: ""; position: absolute; width: 60vw; height: 60vw; left: -18vw; top: 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(111, 168, 255, .4), transparent 70%); transform: translateY(calc(var(--p, 0) * -18vh)); pointer-events: none; }
.how-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.how-copy { display: grid; gap: 30px; }
.how-steps { list-style: none; margin: 0; padding: 0 22px 0 0; display: grid; gap: 26px; position: relative; }
.how-steps::before { content: ""; position: absolute; top: 6px; bottom: 6px; right: 0; width: 2px; background: rgba(10, 27, 61, .12); border-radius: 2px; }
.how-steps::after { content: ""; position: absolute; top: 6px; right: 0; width: 2px; height: calc(100% - 12px); background: linear-gradient(var(--sky), var(--royal)); transform-origin: top; transform: scaleY(var(--p, 0)); border-radius: 2px; }
.how-steps li { opacity: .34; transform: translateX(-10px); transition: opacity .5s var(--ease), transform .6s var(--ease); display: grid; gap: 6px; }
.how-steps li.on { opacity: 1; transform: none; }
.how-steps .k { font-size: .8rem; color: var(--royal); font-weight: 600; letter-spacing: .1em; }
.how-steps h3 { color: var(--navy); font-size: 1.5rem; }
.how-steps p { color: var(--muted); max-width: 38ch; }
.screens { position: relative; aspect-ratio: 1 / .78; width: 100%; max-width: 600px; margin-inline: auto; }
.screen { position: absolute; inset: 0; background: var(--white); color: var(--ink); border-radius: 26px; padding: clamp(18px, 2.6vw, 30px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; align-content: start; gap: 14px; opacity: var(--o, 0); transform: translateY(calc((1 - var(--o, 0)) * 60px)) scale(calc(.9 + var(--o, 0) * .1)) rotate(calc((1 - var(--o, 0)) * -3deg)); pointer-events: none; }
.screen-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.screen-head b { font-size: 1.1rem; color: var(--navy); }
.screen-head span { font-size: .78rem; color: var(--muted); }
.frow { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 12px; font-size: .92rem; }
.frow .l { color: var(--muted); }
.frow .v { position: relative; height: 42px; border-radius: 12px; background: var(--cream); overflow: hidden; display: flex; align-items: center; padding-inline: 14px; font-weight: 600; color: var(--navy); }
.frow .v::before { content: ""; position: absolute; inset: 0; background: var(--ice); transform-origin: right; transform: scaleX(clamp(0, calc(var(--t, 0) * 5 - var(--k, 0)), 1)); }
.frow .v span { position: relative; opacity: clamp(0, calc(var(--t, 0) * 5 - var(--k, 0) - .3), 1); }
.screen .go { justify-self: start; margin-top: 4px; padding: 11px 22px; border-radius: 999px; background: var(--royal); color: var(--white); font-weight: 600; font-size: .92rem; opacity: clamp(.25, calc(var(--t, 0) * 5 - 3.6), 1); transform: scale(calc(.94 + clamp(0, calc(var(--t, 0) * 5 - 3.6), 1) * .06)); }
.swap { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; font-size: .92rem; }
.swap .l { color: var(--muted); }
.swap .v { position: relative; height: 42px; border-radius: 12px; background: var(--cream); display: flex; align-items: center; padding-inline: 14px; font-weight: 600; overflow: hidden; }
.swap .a, .swap .b { position: absolute; right: 14px; transition: none; white-space: nowrap; }
.swap .a { color: var(--ink); opacity: calc(1 - clamp(0, calc(var(--t, 0) * 5 - var(--k, 0)), 1)); filter: blur(calc(clamp(0, calc(var(--t, 0) * 5 - var(--k, 0)), 1) * 8px)); transform: translateY(calc(clamp(0, calc(var(--t, 0) * 5 - var(--k, 0)), 1) * -14px)); }
.swap .b { color: var(--royal); opacity: clamp(0, calc(var(--t, 0) * 5 - var(--k, 0)), 1); transform: translateY(calc((1 - clamp(0, calc(var(--t, 0) * 5 - var(--k, 0)), 1)) * 14px)); }
.lockline { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--good); font-weight: 500; opacity: clamp(0, calc(var(--t, 0) * 5 - 3.8), 1); }
.lockline svg { width: 18px; height: 18px; }
.srow { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--cream); border: 1.5px solid transparent; opacity: clamp(0, calc(var(--t, 0) * 4 - var(--k, 0)), 1); transform: translateX(calc((1 - clamp(0, calc(var(--t, 0) * 4 - var(--k, 0)), 1)) * -70px)); }
.srow .r { font-size: 1.5rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.srow .n { font-size: .85rem; color: var(--muted); }
.srow .c { font-size: .9rem; font-weight: 600; }
.srow.win { background: var(--white); border-color: var(--royal); box-shadow: 0 14px 30px -16px rgba(33, 82, 229, .6); }
.srow .pick { padding: 7px 16px; border-radius: 999px; background: var(--royal); color: var(--white); font-size: .82rem; font-weight: 600; transform: scale(clamp(0, calc(var(--t, 0) * 4 - 2.8), 1)); }
@media (max-width: 900px) {
  .how { height: auto; padding-block: 70px; }
  .how-sticky { position: relative; height: auto; overflow: hidden; }   /* relative + hidden: clips the glow, which otherwise widens the page on phones */
  .how-grid { grid-template-columns: 1fr; }
  .how-steps li { opacity: 1; transform: none; }
  .screens { aspect-ratio: auto; display: grid; gap: 18px; }
  .screen { position: relative; inset: auto; --o: 1; --t: 1; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(70px, 10vw, 140px); position: relative; }
.section.cream { background: var(--cream); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(34px, 5vw, 64px); justify-items: start; }

/* Product cards */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; perspective: 1400px; }
.product { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: clamp(26px, 3.4vw, 44px); display: grid; gap: 20px; overflow: hidden; transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; box-shadow: var(--shadow-sm); justify-items: start; }
.product::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px circle at var(--px, 50%) var(--py, 0%), rgba(33, 82, 229, .1), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.product:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.product:hover::before { opacity: 1; }
.product .ico { width: 68px; height: 68px; border-radius: 20px; background: var(--ice); display: grid; place-items: center; color: var(--royal); transition: transform .6s var(--ease), background .3s, color .3s; }
.product:hover .ico { transform: translateY(-6px) rotate(-6deg); background: var(--royal); color: var(--white); }
.product .ico svg { width: 34px; height: 34px; }
.product .range { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.product h3 { font-size: 1.15rem; color: var(--royal); font-weight: 600; }
.product ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--muted); }
.product li { display: flex; gap: 12px; align-items: center; }
.product li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.6L13 6.6' fill='none' stroke='%232152E5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.product .ghostnum { position: absolute; left: 22px; top: 6px; font-size: 9rem; font-weight: 800; line-height: 1; color: var(--navy); opacity: .04; letter-spacing: -.06em; pointer-events: none; transition: transform .8s var(--ease), opacity .4s; }
.product:hover .ghostnum { transform: translateY(-8px) scale(1.06); opacity: .07; }
@media (max-width: 820px) { .products { grid-template-columns: 1fr; } }

/* Stats band */
.band { position: relative; background: linear-gradient(180deg, var(--white), var(--ice)); color: var(--ink); padding-block: clamp(70px, 9vw, 130px); overflow: hidden; }
.band .ribbons { opacity: .9; }
.band .wrap { position: relative; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { padding: 26px 0 0; border-top: 1px solid rgba(10, 27, 61, .14); display: grid; gap: 8px; position: relative; }
.stat::before { content: ""; position: absolute; top: -1px; right: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--sky), var(--royal)); transform: scaleX(0); transform-origin: right; transition: transform 1.4s var(--ease) calc(var(--i, 0) * 120ms + 200ms); }
.stat.in::before { transform: scaleX(1); }
.stat .v { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--navy); }
.stat .v small { font-size: .36em; font-weight: 600; color: var(--royal); margin-right: 6px; letter-spacing: 0; }
.stat .k { color: var(--muted); font-size: .98rem; max-width: 24ch; }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Why grid */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 30px; display: grid; gap: 14px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); justify-items: start; }
.why-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.why-card .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--navy); color: var(--sky); display: grid; place-items: center; }
.why-card .ico svg { width: 28px; height: 28px; }
.why-card p { color: var(--muted); }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }

/* Accordion */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; background: none; border: 0; font: inherit; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; color: var(--navy); cursor: pointer; text-align: right; transition: color .3s, padding .4s var(--ease); }
.acc-btn:hover { color: var(--royal); padding-right: 10px; }
.acc-btn .pm { position: relative; width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); transition: all .4s var(--ease); }
.acc-btn .pm::before, .acc-btn .pm::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease); }
.acc-btn .pm::after { transform: rotate(90deg); }
.acc-item.open .pm { background: var(--royal); border-color: var(--royal); color: var(--white); transform: rotate(180deg); }
.acc-item.open .pm::after { transform: rotate(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 0 26px; color: var(--muted); max-width: 68ch; }

/* CTA */
.cta { position: relative; overflow: hidden; border-radius: 36px; padding: clamp(40px, 7vw, 90px); background: linear-gradient(120deg, #3B6CF2 0%, var(--royal) 55%, var(--royal-deep) 100%); color: var(--white); display: grid; gap: 26px; justify-items: start; }
.cta h2 { color: var(--white); font-size: clamp(2.2rem, 5vw, 4rem); max-width: 16ch; position: relative; }
.cta p { color: rgba(255, 255, 255, .8); position: relative; max-width: 46ch; }
.cta .btn { position: relative; }

/* Footer */
.footer { padding-block: 44px; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); margin-top: clamp(50px, 7vw, 90px); }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }

/* ---------- App pages (apply / auction / lender) ---------- */
body.app { background: linear-gradient(180deg, var(--ice) 0, var(--white) 420px); background-repeat: no-repeat; }
.page { padding-block: 44px 100px; }
.page-head { display: grid; gap: 12px; margin-bottom: 30px; justify-items: start; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 30px); box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
@media (max-width: 940px) { .layout { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 96px; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.choice { position: relative; overflow: hidden; background: var(--white); border: 2px solid var(--line); border-radius: 24px; padding: 30px; cursor: pointer; display: grid; gap: 10px; text-align: right; font: inherit; color: inherit; transition: border-color .3s, transform .5s var(--ease), box-shadow .5s var(--ease); }
.choice:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--royal); }
.choice.on { border-color: var(--royal); box-shadow: 0 0 0 5px var(--ice); }
.choice .range { color: var(--navy); font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; }
.choice h3 { color: var(--royal); font-size: 1.1rem; font-weight: 600; }
.choice p { color: var(--muted); font-size: .98rem; }
@media (max-width: 640px) { .choices { grid-template-columns: 1fr; } }

.progress { display: grid; gap: 10px; margin-bottom: 24px; }
.progress .bar { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--sky), var(--royal)); transform-origin: right; transition: transform .8s var(--ease); }
.progress .labels { display: flex; justify-content: space-between; font-size: .88rem; color: var(--muted); font-weight: 500; }

.pane:not([hidden]) { animation: paneIn .6s var(--ease) both; }
.fields { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-weight: 600; color: var(--navy); font-size: .98rem; }
.field .hint { font-size: .84rem; color: var(--muted); }
.field input[type=number], .field input[type=text], .field select { font: inherit; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); width: 100%; font-variant-numeric: tabular-nums; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.field input:hover, .field select:hover { border-color: #C5CCDD; }
.field input:focus, .field select:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 5px var(--ice); }
.field .with-unit { position: relative; }
.field .with-unit input { padding-left: 62px; }
.field .with-unit span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; }
.seg { display: flex; flex-wrap: wrap; gap: 10px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg span { display: inline-block; padding: 11px 20px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-size: .98rem; font-weight: 500; transition: all .3s var(--ease); }
.seg label:hover span { border-color: var(--royal); transform: translateY(-2px); }
.seg input:checked + span { background: var(--navy); color: var(--white); border-color: var(--navy); }
.seg input:focus-visible + span { box-shadow: 0 0 0 4px var(--ice); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; color: var(--ink); font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--royal); flex: none; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.err { color: var(--bad); font-size: .9rem; font-weight: 500; }

.result { display: grid; gap: 18px; }
.result.ok { border-right: 5px solid var(--good); }
.result.fail { border-right: 5px solid var(--bad); }
.result h2 { font-size: 1.7rem; }
.reasons { margin: 0; padding-right: 22px; color: var(--ink); display: grid; gap: 8px; }

.acard { display: grid; gap: 16px; }
.acard-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.acard-head .amt { font-size: 2.2rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.acard-head .amt small { font-size: .42em; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 18px; margin: 0; }
.kv div { display: grid; gap: 2px; }
.kv dt { font-size: .8rem; color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .8rem; background: var(--ice); color: var(--royal); font-weight: 600; }
.pill.brass { background: var(--gold-soft); color: #7A5E1C; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.gray { background: var(--cream-2); color: var(--muted); }

.bidrow { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr auto; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); animation: paneIn .6s var(--ease) both; }
.bidrow:nth-child(4) { animation-delay: .08s; } .bidrow:nth-child(5) { animation-delay: .16s; } .bidrow:nth-child(6) { animation-delay: .24s; }
.bidrow:last-child { border-bottom: 0; }
.bidrow .lbl { font-size: .78rem; color: var(--muted); display: block; }
.bidrow .rate { font-size: 1.6rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.bidrow.lead { background: linear-gradient(90deg, transparent, var(--ice)); margin-inline: -16px; padding-inline: 16px; border-radius: 14px; }
.bidrow.chosen { background: var(--good-soft); margin-inline: -16px; padding-inline: 16px; border-radius: 14px; }
@media (max-width: 760px) { .bidrow { grid-template-columns: 1fr 1fr; } }

.board { display: grid; gap: 14px; }
.board-item { background: var(--white); border: 1.5px solid var(--line); border-radius: 20px; padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; align-items: center; cursor: pointer; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; animation: paneIn .6s var(--ease) both; }
.board-item:nth-child(2) { animation-delay: .07s; } .board-item:nth-child(3) { animation-delay: .14s; } .board-item:nth-child(4) { animation-delay: .21s; }
.board-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--royal); }
.board-item.on { border-color: var(--royal); box-shadow: 0 0 0 5px var(--ice); }
.board-item .amt { font-size: 1.6rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.board-item .meta { color: var(--muted); font-size: .92rem; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.countdown { color: var(--navy); font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }

.toast { position: fixed; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translate(-50%, 30px) scale(.95); background: var(--navy); color: var(--white); padding: 14px 24px; border-radius: 999px; box-shadow: var(--shadow-lg); opacity: 0; transition: all .5s var(--ease); z-index: 150; pointer-events: none; font-size: .98rem; font-weight: 500; }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------- Session nav, phone menu, panels (accounts, lender panel, admin) ---------- */
.nav-links .who { font-size: .85rem; color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }
.linkbtn { background: none; border: 0; font: inherit; font-size: .95rem; font-weight: 500; color: var(--royal); cursor: pointer; padding: 6px 0; }
.linkbtn:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; padding: 0; place-items: center; gap: 0; }
.menu-btn i { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; margin: 2px auto; transition: transform .3s var(--ease), opacity .3s; }
.menu-btn.open i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.open i:nth-child(2) { opacity: 0; }
.menu-btn.open i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-panel { position: absolute; top: 100%; right: 12px; left: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 10px; display: grid; gap: 2px; animation: paneIn .35s var(--ease) both; }
.menu-panel a, .menu-panel .linkbtn { padding: 13px 14px; border-radius: 12px; color: var(--ink); font-weight: 500; text-align: right; }
.menu-panel a:hover { background: var(--ice); }
.menu-panel .who { padding: 8px 14px; display: block; }
@media (max-width: 820px) { .menu-btn { display: grid; align-content: center; } .nav-links { gap: 10px; } .nav-links .lender-entry { display: none; } }
@media (min-width: 821px) { .menu-panel { display: none !important; } }

.auth-wrap { max-width: 480px; margin-inline: auto; }
.tabs { display: flex; gap: 6px; padding: 5px; background: var(--ice); border-radius: 999px; margin-bottom: 22px; flex-wrap: wrap; }
.tabs button { flex: 1; font: inherit; font-weight: 600; font-size: .95rem; padding: 10px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; transition: all .35s var(--ease); white-space: nowrap; }
.tabs button.on { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.tabs button .badge { display: inline-block; min-width: 20px; padding: 0 6px; margin-right: 6px; border-radius: 999px; background: var(--royal); color: var(--white); font-size: .72rem; line-height: 20px; }
.pin { letter-spacing: .5em; font-size: 1.3rem !important; text-align: center; direction: ltr; }
.note { background: var(--ice); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .9rem; color: var(--navy); }
.note.warn { background: var(--gold-soft); color: #6B5116; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; display: grid; gap: 4px; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.kpi:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.kpi .k { font-size: .85rem; color: var(--muted); }
.kpi .v { font-size: 1.9rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1.15; }
.kpi .v.pos { color: var(--good); }
.kpi .s { font-size: .8rem; color: var(--muted); }
.econ { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.econ .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: .92rem; border-bottom: 1px solid var(--line); }
.econ .row span:first-child { color: var(--muted); }
.econ .row.minus span:last-child { color: var(--bad); }
.econ .row.total { background: var(--good-soft); border-bottom: 0; font-weight: 700; font-size: 1.05rem; }
.econ .row.total span { color: var(--good) !important; }
.econ .row.total.neg { background: var(--bad-soft); }
.econ .row.total.neg span { color: var(--bad) !important; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: right; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl th { font-size: .8rem; font-weight: 500; color: var(--muted); }
.tbl tr:last-child td { border-bottom: 0; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); display: grid; gap: 14px; justify-items: center; }
.steps-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: sm; margin: 0; padding: 0; list-style: none; }
.steps-mini li { counter-increment: sm; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 6px; font-size: .92rem; color: var(--muted); }
.steps-mini li::before { content: "0" counter(sm); font-family: "JetBrains Mono", monospace; font-size: .8rem; color: var(--royal); }
.steps-mini li b { color: var(--navy); font-size: 1rem; }
@media (max-width: 760px) { .steps-mini { grid-template-columns: 1fr; } }
/* Phone refinements for the app pages */
@media (max-width: 640px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 22px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: 0 0 auto; padding: 10px 14px; font-size: .9rem; }
  .board-item { grid-template-columns: 1fr; padding: 18px; }
  .board-item .amt { display: block; }
  .board-item > div:last-child { text-align: right !important; justify-items: start !important; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi { padding: 16px; }
  .kpi .v { font-size: 1.5rem; }
  .page { padding-block: 28px 80px; }
  .card { padding: 18px; }
  .acard-head .amt { font-size: 1.8rem; }
  .form-nav .btn { flex: 1; }
  .btn { padding: 14px 22px; }
  .field input[type=number], .field input[type=text], .field select { font-size: 16px; }   /* 16px stops iOS from zooming on focus */
}
.legal h2 { font-size: 1.4rem; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--muted); max-width: 70ch; }

/* ---------- Lender landing: hero, "further down" strip, scroll hint, login dialog ---------- */
.lhero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 70px); align-items: center; padding-block: clamp(10px, 3vw, 40px) 10px; }
.lhero-copy { display: grid; gap: 22px; justify-items: start; }
.lhero-copy h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.lhero-points { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px 22px; flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
.lhero-points li { display: flex; align-items: center; gap: 8px; }
.lhero-points li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.500l2.600 2.600L13 6.600' fill='none' stroke='%232152E5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.sample { background: var(--white); border: 1px solid var(--line); border-radius: 26px; padding: 24px; box-shadow: var(--shadow-lg); display: grid; gap: 16px; transform: rotate(-1.5deg); transition: transform .6s var(--ease); }
.sample:hover { transform: none; }
.sample-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sample .acard-head .amt { font-size: 1.9rem; }
.sample .kv { grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }
.sample-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line); }
.sample-foot div { display: grid; gap: 2px; }
.sample-foot .k { font-size: .78rem; color: var(--muted); }
.sample-foot b { font-size: 1.35rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.sample-foot b.pos { color: var(--good); }
.lnav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: clamp(18px, 2.4vw, 30px); padding-top: 18px; border-top: 1px solid var(--line); }
.lnav-label { font-size: .85rem; color: var(--muted); margin-left: 6px; }
.lnav a:not(.scroll-hint) { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--navy); font-size: .93rem; font-weight: 500; transition: all .3s var(--ease); }
.lnav a:not(.scroll-hint):hover { border-color: var(--royal); color: var(--royal); transform: translateY(-2px); }
/* The hint sits at the far end of the same row, so it is always above the fold with the chips. */
.scroll-hint { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: var(--royal); font-size: .93rem; font-weight: 600; }
.scroll-hint i { width: 22px; height: 34px; border: 2px solid var(--royal); border-radius: 12px; position: relative; display: block; flex: none; }
.scroll-hint i::after { content: ""; position: absolute; top: 6px; left: 50%; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--royal); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(11px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
body.lenders-page .page { padding-top: 18px; }
/* Short laptop screens: shrink the hero so the "further down" row is still above the fold. */
@media (max-height: 800px) and (min-width: 901px) {
  .lhero { padding-block: 0; gap: 40px; }
  .lhero-copy { gap: 16px; }
  .lhero-copy h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
  .lhero-copy .lede { font-size: 1.02rem; }
  .sample { padding: 18px 20px; gap: 12px; }
  .sample .kv div:nth-child(n+7) { display: none; }
  .sample .acard { gap: 10px; }
  .sample-foot { padding-top: 10px; }
  .lnav { margin-top: 16px; padding-top: 14px; }
}
body.lenders-page .section:first-of-type { padding-top: clamp(40px, 5vw, 70px); }
@media (max-width: 900px) { .lhero { grid-template-columns: 1fr; } .sample { transform: none; } }
.page section[id] { scroll-margin-top: 80px; }

/* Live profit example on the lender landing */
.exa { display: grid; gap: 18px; }
.exa-head { display: grid; gap: 8px; justify-items: start; }
.exa-head h3 { font-size: 1.4rem; }
.exa-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.exa-big { display: grid; gap: 2px; padding: 20px 22px; border-radius: 20px; background: linear-gradient(135deg, var(--good-soft), #F2FBF6); border: 1px solid #CDE9D8; }
.exa-big .k { font-size: .9rem; color: var(--good); font-weight: 600; }
.exa-big b { font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.05; letter-spacing: -.04em; color: var(--good); }
.exa-big b.neg { color: var(--bad); }
.exa-big .s { font-size: .88rem; color: var(--muted); }
.exa-bar { display: flex; height: 16px; border-radius: 10px; overflow: hidden; background: var(--line); }
.exa-bar i { display: block; height: 100%; transition: width .5s var(--ease); }
.exa-bar .keep { background: var(--good); }
.exa-bar .cof { background: #B8C2D6; }
.exa-bar .fee { background: var(--royal); }
.exa-legend { list-style: none; margin: -6px 0 0; padding: 0; display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); }
.exa-legend li { display: flex; align-items: center; gap: 7px; }
.exa-legend li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.exa-legend .keep::before { background: var(--good); }
.exa-legend .cof::before { background: #B8C2D6; }
.exa-legend .fee::before { background: var(--royal); }
.exa-legend b { color: var(--navy); font-weight: 600; }
.exa-ctrl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.exa-ctrl.one { grid-template-columns: 1fr; }
.exa-ctrl label { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
.exa-ctrl output { color: var(--royal); font-weight: 700; }
.exa input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; background: linear-gradient(to left, var(--royal) var(--fill, 30%), var(--line) var(--fill, 30%)); outline-offset: 6px; cursor: grab; margin: 6px 0 0; }
.exa input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 3px solid var(--royal); box-shadow: 0 4px 12px rgba(33, 82, 229, .4); }
.exa input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 3px solid var(--royal); }
@media (max-width: 560px) { .exa-ctrl { grid-template-columns: 1fr; } }

.modal { position: fixed; inset: 0; z-index: 180; background: rgba(10, 27, 61, .45); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: paneIn .3s var(--ease) both; }
.modal-card { position: relative; width: min(440px, 100%); max-height: calc(100svh - 40px); overflow: auto; background: var(--white); border-radius: 26px; padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.modal-card h2 { font-size: 1.6rem; }
.modal-x { position: absolute; top: 14px; left: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; transition: all .3s var(--ease); }
.modal-x:hover { border-color: var(--royal); color: var(--royal); transform: rotate(90deg); }

/* ---------- Lender landing: the login / join split (kept for reuse) ---------- */
.entry-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.entry { display: grid; gap: 16px; align-content: start; padding: clamp(22px, 3vw, 36px); border-radius: 26px; }
.entry h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.entry.join { background: linear-gradient(140deg, #3B6CF2 0%, var(--royal) 55%, var(--royal-deep) 100%); border-color: transparent; color: var(--white); box-shadow: 0 30px 60px -28px rgba(33, 82, 229, .8); }
.entry.join h2, .entry.join .eyebrow { color: var(--white); }
.entry.join .btn { justify-self: start; }
.entry.join .small { font-size: .86rem; color: rgba(255, 255, 255, .82); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ""; width: 20px; height: 20px; flex: none; margin-top: 3px; border-radius: 50%; background: rgba(255, 255, 255, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.500 10.500l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.tbl.cmp td, .tbl.cmp th { white-space: normal; padding: 14px 12px; }
.tbl.cmp td:first-child { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.tbl.cmp td:nth-child(2) { color: var(--muted); }
.tbl.cmp td:nth-child(3) { color: var(--navy); background: var(--ice); }
.tbl.cmp th:nth-child(3) { color: var(--royal); background: var(--ice); font-weight: 700; }
@media (max-width: 820px) { .entry-split { grid-template-columns: 1fr; } }

/* ---------- Accessibility: skip link, menu, modes ---------- */
.skip-link { position: fixed; top: -100px; right: 16px; z-index: 300; background: var(--navy); color: var(--white); padding: 12px 20px; border-radius: 0 0 12px 12px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 0; }
.a11y-btn { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 160; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--royal); color: var(--white); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(33, 82, 229, .9); transition: transform .3s var(--ease); }
.a11y-btn:hover { transform: scale(1.08); }
.a11y-panel { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(74px + env(safe-area-inset-bottom, 0px)); z-index: 160; width: min(280px, calc(100vw - 32px)); background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 14px; display: grid; gap: 8px; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 4px; }
.a11y-opt { font: inherit; font-size: .95rem; font-weight: 500; text-align: right; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.a11y-opt:hover { border-color: var(--royal); }
.a11y-opt.on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.a11y-opt.reset { border-style: dashed; color: var(--muted); }
.a11y-panel a { font-size: .88rem; padding: 4px; text-decoration: underline; text-underline-offset: 3px; }

html.a11y-contrast { --muted: #2B3345; --line: #6B7385; --royal: #0B3BC4; --royal-deep: #072E9C; --ice: #FFFFFF; --cream: #FFFFFF; --cream-2: #F0F0F0; --sky: #0B3BC4; --good: #0A5C33; --bad: #8E1C24; }
html.a11y-contrast body, html.a11y-contrast body.app { background: #fff; }
html.a11y-contrast .grad, html.a11y-contrast.js .split .grad .wi { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--navy); }
html.a11y-contrast .marq-track span.o { color: var(--navy); }
html.a11y-contrast .hero-glow, html.a11y-contrast canvas.ribbons { display: none; }
html.a11y-contrast .card, html.a11y-contrast .product, html.a11y-contrast .why-card, html.a11y-contrast .kpi, html.a11y-contrast .board-item, html.a11y-contrast .composer { border: 2px solid var(--navy); box-shadow: none; }
html.a11y-contrast .cta { background: var(--navy); }
html.a11y-links a:not(.btn):not(.brand) { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
html.a11y-links .btn, html.a11y-links button { outline: 2px solid currentColor; outline-offset: 2px; }
html.a11y-font, html.a11y-font body, html.a11y-font h1, html.a11y-font h2, html.a11y-font h3, html.a11y-font button, html.a11y-font input, html.a11y-font select { font-family: Arial, "Segoe UI", sans-serif !important; letter-spacing: 0 !important; }
html.a11y-nomotion *, html.a11y-nomotion *::before, html.a11y-nomotion *::after { animation: none !important; transition: none !important; }
html.a11y-nomotion.js [data-reveal], html.a11y-nomotion.js .split .wi { opacity: 1; transform: none; filter: none; }
html.a11y-nomotion.js .loader, html.a11y-nomotion .cursor, html.a11y-nomotion .cursor-dot { display: none; }

/* ---------- Coming-soon mode (published copy only; see scripts/build-publish.ps1 and js/main.js) ---------- */
html.soon [data-live] { display: none !important; }
.soon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.soon-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; justify-items: start; box-shadow: var(--shadow-sm); }
.soon-card.on { border-color: var(--royal); box-shadow: 0 0 0 4px var(--ice), var(--shadow-sm); }
.soon-card p { color: var(--muted); margin: 0; }
.soon-head h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
@media (max-width: 760px) { .soon-grid { grid-template-columns: 1fr; } }

/* ---------- Legal documents ---------- */
.footer.mini { margin-top: 0; padding-block: 26px; font-size: .88rem; }
.footer.mini .wrap { padding-left: 76px; }   /* keeps clear of the accessibility button */
.doc { max-width: 820px; }
.doc .meta { color: var(--muted); font-size: .9rem; }
.doc .toc { background: var(--ice); border-radius: var(--radius); padding: 18px 22px; margin-block: 22px; }
.doc .toc ol { margin: 8px 0 0; padding-right: 22px; display: grid; gap: 4px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); column-gap: 30px; }
.doc .toc a { color: var(--navy); }
.doc .toc a:hover { color: var(--royal); text-decoration: underline; }
.doc section { padding-block: 6px; scroll-margin-top: 96px; }
.doc h2 { font-size: 1.35rem; margin: 30px 0 10px; }
.doc h3 { font-size: 1.05rem; margin: 18px 0 6px; }
.doc p, .doc li { color: #2F3A52; max-width: 72ch; }
.doc p { margin-bottom: 10px; }
.doc ul, .doc ol.cl { padding-right: 22px; display: grid; gap: 7px; margin: 0 0 12px; }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: .95rem; }
.doc th, .doc td { text-align: right; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--ice); color: var(--navy); font-weight: 600; }
.doc .early { background: var(--gold-soft); border-right: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 14px 16px; color: #5A4513; margin-block: 16px; }
.doc .early a { color: inherit; text-decoration: underline; }
.doc .fill { background: var(--bad-soft); color: var(--bad); padding: 0 6px; border-radius: 4px; font-weight: 600; }
.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.hub a { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 6px; color: var(--ink); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.hub a:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--royal); }
.hub a b { color: var(--navy); font-size: 1.1rem; }
.hub a span { color: var(--muted); font-size: .93rem; }

/* Privacy notice shown next to every form that collects data, and the agreement checkboxes */
.notice { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .88rem; color: var(--muted); background: var(--white); display: grid; gap: 6px; }
.notice b { color: var(--navy); font-size: .92rem; }
.notice ul { margin: 0; padding-right: 18px; display: grid; gap: 3px; }
.notice a, .check a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 3D home: bright hero + exploded layers (scene in js/scene.js) ---------- */
.mono { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; letter-spacing: .04em; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: none; pointer-events: none; background: radial-gradient(70vw 70vw at 22% 45%, #DCE8FF 0%, rgba(220, 232, 255, 0) 65%), linear-gradient(180deg, var(--ice) 0%, var(--white) 100%); }
html.gl #gl { display: block; }
.rest { position: relative; z-index: 1; background: var(--white); }
.nav.on-dark .brand, .nav.on-dark .nav-links a:not(.btn) { color: var(--white); }
.nav.on-dark .nav-links a:not(.btn)::after { background: var(--white); }
.nav.on-dark.scrolled { background: rgba(6, 17, 38, .72); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
[data-dark] .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .35); }
[data-dark] .btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.hero3d { position: relative; z-index: 1; margin-top: -76px; padding-top: 76px; min-height: 100svh; display: grid; align-items: center; overflow: hidden; color: var(--ink); background: linear-gradient(180deg, var(--ice) 0%, var(--white) 80%); }
html.gl .hero3d { background: linear-gradient(270deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, 0) 56%); }
html.gl .hero3d .ribbons { display: none; }
.hero3d-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-block: 40px 110px; }
.hero3d .hero-copy { grid-column: 1; transform: translateY(calc(var(--hp, 0) * -80px)); opacity: calc(1 - var(--hp, 0) * 1.6); }
.hero3d h1 { font-size: clamp(3rem, 7.2vw, 6.2rem); line-height: .98; }
.gl-frame { position: absolute; left: 4vw; top: 17%; width: 43vw; height: 60%; pointer-events: none; opacity: .5; }
.gl-frame i { position: absolute; width: 22px; height: 22px; border: 1.5px solid var(--royal); }
.gl-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.gl-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.gl-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.gl-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hud { position: absolute; left: 4vw; bottom: 34px; display: flex; gap: 26px; align-items: flex-end; color: var(--navy); }
.hud-cell { display: grid; gap: 2px; }
.hud-cell small { font-size: .7rem; color: var(--muted); }
.hud-cell b { font-size: .92rem; font-weight: 500; color: var(--navy); direction: ltr; }
.hud-note { font-size: .68rem; color: var(--muted); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; background: var(--white); }

.layers { position: relative; z-index: 1; height: 440vh; color: var(--ink); background: var(--ice); }
html.gl .layers { background: transparent; }
.layers-sticky { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; overflow: hidden; }
html.gl .layers-sticky { background: linear-gradient(270deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, 0) 58%); }
.layers-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.layers-copy { grid-column: 1; display: grid; gap: 28px; padding-right: clamp(0px, 3.5vw, 64px); }
.lay-steps li { cursor: pointer; }
.lay-steps li:hover { opacity: .8; }
.lay-hint { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.lay-hint::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--royal); animation: pulse 1.8s infinite; flex: none; }
html:not(.gl) .lay-hint { display: none; }
.layers-head { display: grid; gap: 14px; justify-items: start; }
.lay-steps { list-style: none; margin: 0; padding: 0 24px 0 0; display: grid; gap: 2px; position: relative; }
.lay-steps::before { content: ""; position: absolute; top: 6px; bottom: 6px; right: 0; width: 2px; background: rgba(10, 27, 61, .12); border-radius: 2px; }
.lay-steps::after { content: ""; position: absolute; top: 6px; right: 0; width: 2px; height: calc(100% - 12px); background: linear-gradient(var(--sky), var(--royal)); transform-origin: top; transform: scaleY(var(--lp, 0)); border-radius: 2px; }
.lay-steps li { opacity: .38; padding-block: 7px; transition: opacity .5s var(--ease), padding .6s var(--ease); }
.lay-steps li.on { opacity: 1; padding-block: 14px; }
.lay-steps .t { display: flex; align-items: baseline; gap: 14px; }
.lay-steps .t .mono { font-size: .8rem; color: var(--royal); }
.lay-steps h3 { color: var(--navy); font-size: 1.4rem; }
.lay-steps .d { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.lay-steps li.on .d { grid-template-rows: 1fr; }
.lay-steps .d p { min-height: 0; overflow: hidden; color: var(--muted); max-width: 40ch; }
.gl-tags { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0; }
.gl-tag { position: absolute; top: 0; left: 0; direction: ltr; display: flex; align-items: center; gap: 10px; font-family: "JetBrains Mono", "Rubik", monospace; font-size: .74rem; color: var(--muted); white-space: nowrap; will-change: transform; transition: color .3s; }
.gl-tag::after { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .6; transition: width .4s var(--ease); }
.gl-tag.on { color: var(--royal); font-weight: 500; }
.gl-tag.on::after { width: 64px; opacity: 1; }

.sim { overflow: hidden; }
.sim .hero-glow { inset: auto auto -40% -12%; }
.sim-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.sim-copy { display: grid; gap: 22px; justify-items: start; }

@media (max-width: 900px) {
  .hero3d { align-items: start; }
  .hero3d-grid { grid-template-columns: 1fr; padding-block: 26px 46svh; }
  html.gl .hero3d { background: linear-gradient(180deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 62%); }
  .gl-frame, .hud, .hero3d .hero-proof { display: none; }
  .layers-sticky { align-items: end; }
  html.gl .layers-sticky { background: linear-gradient(0deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, 0) 58%); }
  .layers-grid { grid-template-columns: 1fr; padding-bottom: 34px; }
  .layers h2 { font-size: 1.7rem; }
  .hero-copy, .layers-copy { padding-right: 0; }
  .lay-steps li:not(.on) { display: none; }
  .sim-grid { grid-template-columns: 1fr; }
}
/* No WebGL: the layers section becomes a plain list. */
html:not(.gl) .layers { height: auto; padding-block: 90px; }
html:not(.gl) .layers-sticky { position: static; height: auto; }
html:not(.gl) .layers-grid { grid-template-columns: 1fr; }
html:not(.gl) .lay-steps li, html:not(.gl) .lay-steps li:not(.on) { display: list-item; opacity: 1; }
html:not(.gl) .lay-steps .d { grid-template-rows: 1fr; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  html.js [data-reveal], html.js .split .wi { opacity: 1; transform: none; filter: none; }
  html.js .loader { display: none; }
}
