/* ==========================================================================
   LevelUp Advance — design system
   Skin tuned to Emil Kowalski's design-engineering philosophy:
   restraint over noise, custom easing curves, press feedback on every
   pressable, hover gated to fine pointers, motion that stays under 300ms.
   Palette: deep navy -> royal -> electric blue, sampled from the brand mark.
   ========================================================================== */

:root {
  /* Brand — navy to electric blue */
  --navy-950: #060a18;
  --navy-900: #0a1130;
  --navy-850: #0b1638;
  --navy-800: #0e1f48;
  --navy-700: #122a62;
  --blue-700: #0b3aa8;
  --blue-600: #0b53d6;   /* primary */
  --blue-500: #1463ec;
  --blue-400: #2f7bff;   /* bright accent */
  --blue-300: #6aa3ff;
  --cyan-400: #46c8ff;

  /* Ink */
  --ink: #eef2fb;
  --ink-soft: #aab6d6;
  --ink-mute: #7a87ab;
  --paper: #f4f7fd;
  --paper-2: #e9eefb;
  --paper-ink: #0a1230;
  --paper-mute: #51608c;

  /* Lines & surfaces — crisper, less neon */
  --line: rgba(124, 152, 218, .14);
  --line-strong: rgba(132, 166, 244, .26);
  --glass: rgba(16, 28, 66, .55);
  --glass-2: rgba(10, 19, 50, .74);

  /* Brand gradients — calmer ramps */
  --grad-brand: linear-gradient(120deg, #0a1a4d 0%, #0b53d6 54%, #2f7bff 100%);
  --grad-brand-soft: linear-gradient(120deg, #1463ec 0%, #2f7bff 100%);
  --grad-text: linear-gradient(100deg, #8fb8ff 0%, #2f7bff 48%, #eef2fb 100%);

  /* Type */
  --font-display: "Schibsted Grotesk", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  /* Shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  /* Depth — soft, premium, low-glow */
  --shadow-glow: 0 0 0 1px rgba(47, 123, 255, .18), 0 30px 70px -34px rgba(20, 99, 236, .42);
  --shadow-card: 0 28px 64px -38px rgba(2, 8, 28, .85);
  --shadow-press: 0 10px 28px -16px rgba(47, 123, 255, .55);

  /* Motion — Emil's canonical curves */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);        /* enters / responsive UI */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);    /* on-screen movement */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);     /* iOS-like drawer */
  --dur-press: 130ms;
  --dur-fast: 180ms;
  --dur-base: 240ms;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Atmospheric backdrop — restrained gradient mesh + fine grain.
   Glow alphas pulled back ~40% from the original; calm reads as premium. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(62% 52% at 80% -8%, rgba(47, 123, 255, .16), transparent 60%),
    radial-gradient(48% 44% at 6% 6%, rgba(11, 83, 214, .13), transparent 56%),
    radial-gradient(82% 60% at 50% 112%, rgba(14, 31, 72, .42), transparent 62%),
    var(--navy-950);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--blue-400); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section--tight { padding-block: clamp(54px, 8vw, 96px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue-300);
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: rgba(47, 123, 255, .06);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-400); box-shadow: 0 0 10px 1px rgba(47, 123, 255, .8);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; margin: 0; }
.h-xl { font-size: clamp(2.6rem, 6.4vw, 5.1rem); font-weight: 800; letter-spacing: -.038em; }
.h-lg { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -.026em; }
.h-md { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--ink-soft); max-width: 56ch; }
.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section-head { max-width: 64ch; margin-bottom: clamp(38px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 18px; }

/* ---------- Buttons ----------
   Press feedback is the single most felt detail: every button scales to
   0.97 on :active. Hover lift is decorative, so it's gated to fine pointers
   (touch devices fire hover on tap — a false positive). */
.btn {
  --bg: var(--grad-brand-soft);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 15px 26px; border-radius: 100px; border: 0; cursor: pointer;
  color: #fff; background: var(--bg);
  position: relative; isolation: isolate;
  transition: transform var(--dur-press) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              filter var(--dur-fast) var(--ease-out);
  box-shadow: var(--shadow-press);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; transition: transform var(--dur-fast) var(--ease-out); }
.btn--ghost {
  background: rgba(255, 255, 255, .04); color: var(--ink);
  border: 1px solid var(--line-strong); box-shadow: none; backdrop-filter: blur(6px);
}
.btn--lg { padding: 18px 34px; font-size: 1.08rem; }
.btn--block { width: 100%; }
.btn--dark { background: var(--navy-900); color: #fff; box-shadow: var(--shadow-card); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -18px rgba(47, 123, 255, .8); filter: brightness(1.05); }
  .btn:active { transform: scale(0.97); }   /* press wins over hover-lift */
  .btn:hover svg { transform: translateX(3px); }
  .btn--ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: none; }
  .btn--dark:hover { filter: brightness(1.1); }
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              backdrop-filter var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 10, 24, .72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; transition: transform var(--dur-press) var(--ease-out); }
.brand:active { transform: scale(0.98); }
.brand .mark { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 6px 14px rgba(47, 123, 255, .35)); }
/* Brand logo — the real wordmark, baked to a high-res transparent PNG so the
   white plate is knocked out once (no live SVG filter) and it stays crisp at
   nav scale instead of going soft/pixely. */
.brand__logo { height: 32px; width: auto; flex: none; display: block; }
.footer__brand .brand__logo { height: 40px; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; line-height: 1; }
.brand__name b { color: var(--blue-300); font-weight: 800; }
.brand__name small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .58rem; letter-spacing: .42em; color: var(--ink-mute); text-transform: uppercase; margin-top: 4px; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a.navlink {
  padding: 9px 16px; border-radius: 100px; color: var(--ink-soft); font-weight: 500; font-size: .96rem;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.nav__links a.navlink.active { color: #fff; background: rgba(255, 255, 255, .06); }
@media (hover: hover) and (pointer: fine) {
  .nav__links a.navlink:hover { color: #fff; background: rgba(255, 255, 255, .06); }
}
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; }

@media (max-width: 900px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; gap: 5px; width: 46px; height: 46px;
    align-items: center; justify-content: center; border-radius: 12px;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line); cursor: pointer;
    transition: transform var(--dur-press) var(--ease-out), background var(--dur-fast) var(--ease-out);
  }
  .nav__toggle:active { transform: scale(0.94); }
  .nav__toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-out); }
  .nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* Drawer slides from its own edge with the iOS drawer curve. */
  .nav__drawer {
    position: fixed; inset: 76px 0 auto 0;
    background: var(--glass-2); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    display: grid; gap: 6px; padding: 18px var(--gutter) 26px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform var(--dur-base) var(--ease-drawer), opacity var(--dur-fast) var(--ease-out);
  }
  .nav.open .nav__drawer { transform: none; opacity: 1; pointer-events: auto; }
  .nav__drawer a { padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: 1.1rem; transition: background var(--dur-fast) var(--ease-out); }
  .nav__drawer a:active { background: rgba(255, 255, 255, .08); }
  .nav__drawer .btn { margin-top: 8px; }
}
@media (min-width: 901px) { .nav__drawer { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(116px, 12vw, 150px); padding-bottom: clamp(56px, 8vw, 96px); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px; border-radius: 100px; font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
}
.pill svg { width: 16px; height: 16px; color: var(--blue-300); }

/* Hero floating quote/application card */
.hero__card {
  position: relative;
  background: linear-gradient(165deg, rgba(18, 36, 92, .58), rgba(9, 16, 42, .8));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: 30px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}
.hero__card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(106, 163, 255, .5), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.hero__card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.hero__card .sub { color: var(--ink-mute); font-size: .9rem; margin-bottom: 22px; }

/* Slider */
.slider-amount { font-family: var(--font-mono); font-size: 2.6rem; font-weight: 600; letter-spacing: -.02em; }
.slider-amount span { color: var(--blue-300); }
.range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 100px; margin: 16px 0 6px;
  background: linear-gradient(90deg, var(--blue-400) var(--fill, 50%), rgba(255, 255, 255, .1) var(--fill, 50%));
  cursor: pointer;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 5px solid var(--blue-500);
  box-shadow: 0 4px 14px rgba(47, 123, 255, .55); cursor: grab;
  transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.range::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 5px solid var(--blue-500);
  box-shadow: 0 4px 14px rgba(47, 123, 255, .55); cursor: grab;
  transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.range:active::-webkit-slider-thumb { transform: scale(1.12); cursor: grabbing; box-shadow: 0 6px 18px rgba(47, 123, 255, .7); }
.range:active::-moz-range-thumb { transform: scale(1.12); cursor: grabbing; box-shadow: 0 6px 18px rgba(47, 123, 255, .7); }
.range-legend { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-mute); font-family: var(--font-mono); }
.card-meta { display: flex; gap: 10px; margin: 22px 0; }
.card-meta .chip { flex: 1; text-align: center; padding: 12px 6px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.card-meta .chip b { display: block; font-family: var(--font-mono); font-size: 1rem; color: #fff; }
.card-meta .chip small { font-size: .72rem; color: var(--ink-mute); }

/* Rising-bars motif (static growth glyph) */
.bars-motif { display: flex; align-items: flex-end; gap: 5px; height: 34px; }
.bars-motif i { width: 7px; border-radius: 2px; background: var(--grad-brand-soft); opacity: .92; }
.bars-motif i:nth-child(1){height:38%}
.bars-motif i:nth-child(2){height:58%}
.bars-motif i:nth-child(3){height:78%}
.bars-motif i:nth-child(4){height:100%}

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__card { max-width: 460px; }
}

/* ---------- Marquee logos / trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.trust__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px; }
.trust__item { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-weight: 500; font-size: .96rem; }
.trust__item svg { width: 22px; height: 22px; color: var(--blue-300); flex: none; }

/* ---------- Stat counters ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  position: relative; padding: 30px 26px; border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(18, 36, 92, .36), rgba(9, 16, 42, .52));
  border: 1px solid var(--line); overflow: hidden;
}
.stat::after { content:""; position:absolute; left:0; top:0; width:42px; height:3px; background: var(--grad-brand-soft); border-radius: 0 0 6px 0; }
.stat__num { font-family: var(--font-mono); font-size: clamp(2.1rem, 4vw, 2.9rem); font-weight: 600; letter-spacing: -.03em; color: #fff; line-height: 1; }
.stat__num .u { color: var(--blue-300); }
.stat__label { color: var(--ink-soft); font-size: .92rem; margin-top: 12px; }
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Stat line (airy, divided — no boxes) ----------
   Numbers sit directly on the page, separated by hairlines. Editorial,
   not a grid of glassy cards. */
.statline { display: grid; grid-template-columns: repeat(4, 1fr); }
.statline--3 { grid-template-columns: repeat(3, 1fr); }
.statline__item { padding: 4px clamp(18px, 3vw, 34px); border-left: 1px solid var(--line); }
.statline__item:first-child { border-left: 0; padding-left: 0; }
.statline__num { font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1; }
.statline__num .u { color: var(--blue-300); }
.statline__label { color: var(--ink-soft); font-size: .92rem; margin-top: 14px; max-width: 24ch; }
@media (max-width: 760px) {
  .statline, .statline--3 { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .statline__item { border-left: 0; padding-left: 0; }
}

/* ---------- Panel (one hairline-divided surface) ----------
   Replaces repeated feature/benefit cards with a single confident block. */
.panel {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-strong); border-radius: var(--r-xl);
  background: linear-gradient(168deg, rgba(18, 36, 92, .32), rgba(8, 14, 38, .5));
  box-shadow: var(--shadow-card); overflow: hidden;
}
.panel__cell { padding: clamp(30px, 4vw, 44px); border-left: 1px solid var(--line); }
.panel__cell:first-child { border-left: 0; }
.panel__ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  color: var(--blue-300); background: rgba(47, 123, 255, .1); border: 1px solid var(--line-strong);
}
.panel__ico svg { width: 24px; height: 24px; }
.panel__cell h3 { font-size: 1.22rem; margin: 20px 0 10px; }
.panel__cell p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
@media (max-width: 760px) {
  .panel { grid-template-columns: 1fr; }
  .panel__cell { border-left: 0; border-top: 1px solid var(--line); }
  .panel__cell:first-child { border-top: 0; }
}

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 32px; border-radius: var(--r-lg);
  background: linear-gradient(168deg, rgba(16, 30, 78, .46), rgba(8, 14, 38, .6));
  border: 1px solid var(--line);
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  overflow: hidden;
}
.card__glow { position: absolute; inset: -40% 40% auto -10%; height: 200px; background: radial-gradient(circle, rgba(47, 123, 255, .26), transparent 65%); opacity: 0; transition: opacity var(--dur-base) var(--ease-out); }
.card__icon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(150deg, rgba(47, 123, 255, .2), rgba(11, 83, 214, .1));
  border: 1px solid var(--line-strong); color: var(--blue-300);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.32rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
.card__index { position: absolute; top: 26px; right: 30px; font-family: var(--font-mono); font-size: .8rem; color: var(--ink-mute); }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
  .card:hover .card__glow { opacity: 1; }
}
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Requirements ---------- */
.reqs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.req {
  text-align: center; padding: 40px 24px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(18, 36, 92, .3), rgba(9, 16, 42, .46));
  border: 1px solid var(--line);
}
.req__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); letter-spacing: -.04em; }
.req__label { color: var(--ink-soft); margin-top: 8px; font-size: .98rem; }
@media (max-width: 760px) { .reqs { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding: 34px 30px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .02); border: 1px solid var(--line); }
.step__n {
  display: block; font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1;
  letter-spacing: -.045em; margin-bottom: 16px;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 1.28rem; margin: 0 0 8px; }
.step p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.step__line { position: absolute; top: 52px; right: -13px; width: 26px; height: 2px; background: linear-gradient(90deg, var(--blue-500), transparent); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step__line { display: none; } }

/* ---------- Process flow (open, connected — no heavy boxes) ----------
   Replaces a third boxed card-grid with an airy numbered sequence so the
   page breathes instead of stacking identical panels. */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 5vw, 56px); }
.flow__step { position: relative; }
.flow__n {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; color: var(--blue-300);
  background: linear-gradient(150deg, rgba(47, 123, 255, .16), rgba(11, 83, 214, .07));
  border: 1px solid var(--line-strong); margin-bottom: 20px;
}
.flow__step h3 { font-size: 1.24rem; margin: 0 0 8px; }
.flow__step p { color: var(--ink-soft); margin: 0; font-size: 1rem; max-width: 36ch; }
.flow__step:not(:last-child)::after {
  content: ""; position: absolute; top: 26px; left: 68px; right: -22px; height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; gap: 34px; } .flow__step:not(:last-child)::after { display: none; } }

/* ---------- Qualifications — editorial "by the numbers" spread ----------
   No box, no chips, no icons. Oversized display figures on a hairline-ruled
   grid, a plain typographic label, and a quiet underlined CTA. */
.quals { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.quals__label { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--blue-300); display: block; margin-bottom: 24px; }
.quals__intro h2 { margin-bottom: 20px; }
.quals__intro p { color: var(--ink-soft); margin: 0 0 30px; max-width: 40ch; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 5px;
  transition: gap var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.link-arrow svg { width: 18px; height: 18px; color: var(--blue-300); transition: transform var(--dur-fast) var(--ease-out); }
.link-arrow:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover { gap: 14px; border-color: var(--blue-400); } .link-arrow:hover svg { transform: translateX(3px); } }

.quals__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.qual {
  display: grid; grid-template-columns: clamp(132px, 16vw, 190px) 1fr; align-items: baseline;
  gap: clamp(18px, 4vw, 44px); padding: clamp(26px, 3.4vw, 38px) 0; border-bottom: 1px solid var(--line);
}
.qual__fig { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.7rem, 6.2vw, 4.2rem); letter-spacing: -.045em; line-height: .85; color: #fff; white-space: nowrap; }
.qual__fig i { font-style: normal; color: var(--blue-400); }
.qual__body { display: flex; flex-direction: column; gap: 7px; }
.qual__body b { font-size: 1.12rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.qual__body span { color: var(--ink-mute); font-size: .98rem; max-width: 36ch; }
@media (max-width: 860px) { .quals { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 520px) { .qual { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Testimonials ---------- */
.tcols { columns: 3; column-gap: 20px; }
@media (max-width: 980px) { .tcols { columns: 2; } }
@media (max-width: 640px) { .tcols { columns: 1; } }
.quote {
  break-inside: avoid; margin-bottom: 20px; padding: 28px;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(168deg, rgba(16, 30, 78, .42), rgba(8, 14, 38, .58));
}
.quote p { margin: 0 0 18px; color: var(--ink); font-size: 1.04rem; line-height: 1.6; }
.quote__mark { font-family: var(--font-display); font-size: 2.6rem; line-height: .6; color: var(--blue-400); display: block; height: 22px; }
.quote__who { display: flex; align-items: center; gap: 12px; }
.quote__av { width: 42px; height: 42px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; font-weight: 700; color: #fff; font-family: var(--font-display); }
.quote__who b { display: block; font-size: .95rem; }
.quote__who span { font-size: .82rem; color: var(--ink-mute); }
.stars { color: var(--blue-300); font-size: .85rem; letter-spacing: 2px; margin-bottom: 12px; }

/* ---------- Big CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: var(--grad-brand); padding: clamp(44px, 7vw, 80px);
  box-shadow: var(--shadow-glow);
}
.cta-band::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(60% 120% at 90% 10%, rgba(255, 255, 255, .18), transparent 50%);
}
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 48ch; margin: 14px 0 0; }
.cta-band__action { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-band__rr { color: rgba(255, 255, 255, .72); font-size: .86rem; font-weight: 500; }

/* ---------- Hero amount choices (links into the apply funnel) ---------- */
.opt--go { justify-content: space-between; gap: 10px; font-weight: 600; }
.opt--go svg { width: 18px; height: 18px; color: var(--blue-300); flex: none; transition: transform var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .opt--go:hover svg { transform: translateX(4px); } }

/* ---------- Hero trust line ---------- */
.hero__trust { margin: 22px 0 0; font-size: .92rem; font-weight: 500; color: var(--ink-mute); }

/* ---------- Testimonials (editorial, no cards/avatars/stars) ---------- */
.tlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 52px); }
.tline { margin: 0; position: relative; padding-top: 30px; }
.tline::before { content: "\201C"; position: absolute; top: 2px; left: -2px; font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--blue-400); opacity: .55; }
.tline p { font-size: 1.12rem; line-height: 1.55; color: var(--ink); margin: 0 0 16px; }
.tline cite { font-style: normal; color: var(--ink-mute); font-size: .92rem; font-weight: 500; }
@media (max-width: 860px) { .tlist { grid-template-columns: 1fr; gap: 34px; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 30px; padding-block: clamp(54px, 7vw, 80px) 30px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand .lead { font-size: .98rem; margin: 18px 0 22px; max-width: 38ch; }
.footer__col h4 { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 16px; font-weight: 500; }
.footer__col a, .footer__col p { display: block; color: var(--ink-soft); padding: 5px 0; margin: 0; font-size: .96rem; transition: color var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .footer__col a:hover { color: var(--blue-300); }
  .footer__bottom a:hover { color: var(--blue-300); }
}
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 64px); padding-top: 26px; border-top: 1px solid var(--line); color: var(--ink-mute); font-size: .86rem; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink-soft);
  transition: transform var(--dur-press) var(--ease-out), color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.socials a:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .socials a:hover { color: #fff; border-color: var(--line-strong); background: rgba(255, 255, 255, .05); transform: translateY(-2px); }
}
.socials svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Multi-step wizard ---------- */
.wizard {
  position: relative; max-width: 640px; margin-inline: auto;
  background: linear-gradient(168deg, rgba(18, 36, 92, .5), rgba(8, 14, 38, .76));
  border: 1px solid var(--line-strong); border-radius: var(--r-xl);
  padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-card);
}
.wizard__progress { height: 6px; border-radius: 100px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-bottom: 8px; }
.wizard__bar { height: 100%; width: 12.5%; border-radius: 100px; background: var(--grad-brand-soft); transition: width var(--dur-base) var(--ease-out); }
.wizard__meta { display: flex; justify-content: space-between; font-size: .84rem; font-weight: 500; color: var(--ink-mute); margin-bottom: 26px; }
.step-panel { display: none; }
.step-panel.active { display: block; animation: stepIn var(--dur-base) var(--ease-out) both; }
.step-panel h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 6px; }
.step-panel .req-flag { font-size: .82rem; font-weight: 600; color: var(--blue-300); margin-bottom: 22px; display: inline-block; }

.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt-grid.cols-1 { grid-template-columns: 1fr; }
.opt {
  display: flex; align-items: center; gap: 12px; padding: 17px 18px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); cursor: pointer;
  font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--ink); text-align: left;
  transition: transform var(--dur-press) var(--ease-out), border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.opt:active { transform: scale(0.985); }
.opt.selected { border-color: var(--blue-400); background: rgba(47, 123, 255, .14); box-shadow: inset 0 0 0 1px var(--blue-400); }
@media (hover: hover) and (pointer: fine) {
  .opt:hover { border-color: var(--line-strong); background: rgba(47, 123, 255, .08); }
}
.opt .tick { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.opt.selected .tick { border-color: var(--blue-400); background: var(--blue-400); }
/* Tick fill starts visible (scale 0.4), never from nothing — Emil's "never scale(0)". */
.opt.selected .tick::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: tickPop var(--dur-base) var(--ease-out) both; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; color: var(--ink-soft); margin-bottom: 7px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 16px; border-radius: var(--r-md); font-family: var(--font-body); font-size: 1rem;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: #fff;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-400); background: rgba(47, 123, 255, .07); }
.field.invalid input { border-color: #ff6b7d; }
.field .err { color: #ff8a98; font-size: .78rem; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .grid-2, .opt-grid { grid-template-columns: 1fr; } }

.wizard__amount { text-align: center; padding: 8px 0 4px; }
.wizard__amount .big { font-family: var(--font-mono); font-size: clamp(2.6rem, 8vw, 3.6rem); font-weight: 600; letter-spacing: -.03em; }
.wizard__amount .big span { color: var(--blue-300); }

.wizard__nav { display: flex; gap: 12px; margin-top: 28px; }
.wizard__nav .btn { flex: 1; }
.wizard__nav .btn--ghost { flex: 0 0 auto; min-width: 120px; }

.wizard__done, .wizard__error { display: none; text-align: center; padding: 20px 0; }
.wizard__done.show, .wizard__error.show { display: block; animation: stepIn var(--dur-base) var(--ease-out) both; }
/* Success badge scales up from 0.92 (not 0) — an object that was always there. */
.done-badge { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 24px; display: grid; place-items: center; background: var(--grad-brand-soft); box-shadow: 0 16px 36px -16px rgba(47, 123, 255, .75); animation: badgePop 420ms var(--ease-out) both; }
.done-badge svg { width: 40px; height: 40px; color: #fff; }
.spin { width: 22px; height: 22px; border: 3px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero { padding-top: clamp(130px, 16vw, 180px); padding-bottom: clamp(20px, 4vw, 40px); }
.page-hero .lead { margin-top: 20px; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.prose h3 { font-size: 1.15rem; margin: 26px 0 10px; color: var(--blue-300); }
.prose p, .prose li { color: var(--ink-soft); font-size: 1.02rem; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--blue-300); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FAQ accordion ----------
   Height animates via the grid-rows 0fr->1fr trick so it eases open with the
   site's curve instead of snapping. The chevron rotates on the same beat. */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: -.01em; color: var(--ink);
  transition: color var(--dur-fast) var(--ease-out);
}
.faq__q .faq__chev { width: 22px; height: 22px; flex: none; color: var(--blue-300); transition: transform var(--dur-base) var(--ease-out); }
.faq__item.open .faq__q { color: #fff; }
.faq__item.open .faq__q .faq__chev { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .faq__q:hover { color: #fff; } }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-base) var(--ease-out); }
.faq__item.open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; }
.faq__a p { color: var(--ink-soft); margin: 0 0 26px; font-size: 1.02rem; max-width: 70ch; }
.faq__a p a { color: var(--blue-300); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__info { display: grid; gap: 22px; align-content: start; }
.contact__item { display: flex; gap: 16px; align-items: flex-start; }
.contact__ico {
  width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center;
  color: var(--blue-300); background: rgba(47, 123, 255, .1); border: 1px solid var(--line-strong);
}
.contact__ico svg { width: 22px; height: 22px; }
.contact__item h4 { font-size: .76rem; font-family: var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 4px; font-weight: 500; }
.contact__item a, .contact__item p { color: var(--ink); font-size: 1.05rem; margin: 0; }
.contact__item a { transition: color var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .contact__item a:hover { color: var(--blue-300); } }
.contact__card {
  background: linear-gradient(168deg, rgba(18, 36, 92, .5), rgba(8, 14, 38, .76));
  border: 1px solid var(--line-strong); border-radius: var(--r-xl);
  padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-card);
}
.form-done { text-align: center; padding: 24px 0; }
.form-done .done-badge { margin-bottom: 18px; }
.form-error { color: #ff8a98; font-size: .9rem; margin: 14px 0 0; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Reveal animation ----------
   Decorative scroll-in: ease-out, subtle 16px rise, short staggered delays. */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .06s; }
[data-reveal][data-delay="2"] { transition-delay: .12s; }
[data-reveal][data-delay="3"] { transition-delay: .18s; }
[data-reveal][data-delay="4"] { transition-delay: .24s; }

@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes badgePop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes tickPop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }

.step-panel.shake { animation: shake .4s var(--ease-in-out); }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-7px)} 40%,80%{transform:translateX(7px)} }

/* Reduced motion: keep opacity/comprehension cues, drop positional movement. */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .btn:active, .opt:active, .socials a:active, .brand:active { transform: none; }
}
