/* ==========================================================================
   ECA — eCommerce Advisers · Design System
   Modern, lightweight, dependency-free CSS (no build step required)
   ========================================================================== */

:root {
  /* Colors */
  --ink: #0b1220;
  --ink-soft: #16203a;
  --navy-700: #101a30;
  --navy-600: #16223f;
  --navy-500: #1d2b4d;
  --teal: #14c8a0;
  --teal-600: #0fae8b;
  --teal-100: #e3faf4;
  --amber: #f5a623;
  --amber-100: #fff4e0;
  --paper: #f6f8fb;
  --paper-2: #eef2f8;
  --white: #ffffff;
  --line: #e4e9f2;
  --text: #1c2333;
  --text-soft: #57617a;
  --text-mute: #8b93a7;
  --danger: #e4574c;
  --success: #16a877;

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 12px 30px rgba(11, 18, 32, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 18, 32, 0.16);
  --shadow-teal: 0 14px 30px rgba(20, 200, 160, 0.35);

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Type */
  --f-head: "Manrope", "Segoe UI", Arial, sans-serif;
  --f-body: "Inter", "Segoe UI", Arial, sans-serif;

  /* Layout */
  --container: 1180px;
  --header-h: 78px;

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select, button { font-family: inherit; }
svg { display: block; }

body {
  font-family: var(--f-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  line-height: 1.55;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--f-head);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

.section {
  padding: clamp(56px, 9vw, 108px) 0;
}
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--dark {
  background: var(--ink);
  color: rgba(255,255,255,.82);
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--soft { background: var(--paper); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-600);
  background: var(--teal-100);
  padding: 7px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 18px;
}
.section--dark .eyebrow {
  background: rgba(20,200,160,.14);
  color: #5fe9c8;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head.align-left { margin: 0 0 40px; text-align: left; }

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.02em;
}
.section-sub {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 17px;
}
.section--dark .section-sub { color: rgba(255,255,255,.68); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-lg { padding: 18px 38px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--teal);
  color: var(--ink);
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover { background: var(--teal-600); transform: translateY(-2px); box-shadow: 0 18px 36px rgba(20,200,160,.4); }

.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: var(--navy-500); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: #fff;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); }

.btn-white {
  background: #fff;
  color: var(--ink);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ripple */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transform: scale(0);
  animation: ripple .6s var(--ease);
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* ---------- Header ---------- */
/* NOTE: the frosted-glass blur lives on ::before, not on .site-header itself.
   A `filter`/`backdrop-filter` on an element creates a new containing block
   for any `position: fixed` descendants (like the mobile nav drawer below),
   which would otherwise size itself against the header's own tiny box
   instead of the viewport. Keeping .site-header filter-free avoids that. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: saturate(180%) blur(14px);
  pointer-events: none;
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
}
.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-600) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #04241c;
  font-weight: 900;
  box-shadow: var(--shadow-teal);
}
.brand__sub {
  display: block;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: .04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}
.main-nav a {
  padding: 10px 12px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); background: var(--paper-2); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  padding: 8px 10px;
  white-space: nowrap;
}
.header-phone svg { color: var(--teal-600); flex: none; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  flex: none;
}
.burger span, .burger::before, .burger::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
  position: relative;
}
.burger span { margin: 5px 0; }
.burger.on span { opacity: 0; }
.burger.on::before { transform: translateY(7px) rotate(45deg); }
.burger.on::after { transform: translateY(-7px) rotate(-45deg); }
.burger { flex-direction: column; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(60px, 8vw, 110px);
  background:
    radial-gradient(1100px 480px at 78% -10%, rgba(20,200,160,.14), transparent 60%),
    radial-gradient(700px 400px at 5% 110%, rgba(245,166,35,.10), transparent 60%),
    var(--paper);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero__title {
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.03em;
}
.hero__title .accent {
  color: var(--teal-600);
  position: relative;
  white-space: nowrap;
}
.hero__lede {
  margin-top: 20px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-soft);
  max-width: 540px;
}
.hero__stat {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  font-family: var(--f-head);
}
.hero__stat b {
  font-size: clamp(26px, 3vw, 34px);
  color: var(--ink);
}
.hero__stat span { color: var(--text-soft); font-size: 15px; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero__trust {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
}
.hero__trust-item svg { color: var(--teal-600); flex: none; }

.hero__art {
  position: relative;
}
.hero__art img {
  border-radius: var(--r-lg);
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.hero__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
}
.hero__badge--1 { top: 6%; left: -8%; }
.hero__badge--2 { bottom: 8%; right: -6%; }
.hero__badge .dot {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-100); color: var(--teal-600); flex: none;
}
.hero__badge small { display: block; font-weight: 500; color: var(--text-mute); }

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--ink);
  padding: 34px 0;
}
.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-card b {
  display: block;
  font-family: var(--f-head);
  font-size: clamp(24px, 3vw, 34px);
  color: #fff;
}
.stat-card span {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  font-weight: 600;
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.about__visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-700), var(--ink));
  padding: 30px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__visual-ring {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(closest-side, rgba(20,200,160,.35), transparent),
    conic-gradient(from 90deg, rgba(20,200,160,.18), transparent 30%);
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.about__visual-card {
  position: relative;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
  padding: 26px;
  color: #fff;
  backdrop-filter: blur(6px);
  width: 100%;
}
.about__visual-card ul { display: grid; gap: 16px; margin-top: 18px; }
.about__visual-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: rgba(255,255,255,.82); }
.about__visual-card li svg { color: var(--teal); flex: none; margin-top: 2px; }
.about__visual-card .big { font-family: var(--f-head); font-size: 30px; font-weight: 700; }

.about__body p { color: var(--text-soft); margin-top: 16px; font-size: 16px; }
.about__body p:first-of-type { margin-top: 0; }
.about__body b { color: var(--ink); }

/* ---------- Steps / How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.steps__art { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.steps__art img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.steps-list { display: grid; gap: 14px; counter-reset: step; }
.step-item {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color .2s, background-color .2s, transform .2s;
}
.step-item:hover { border-color: var(--teal); background: #fff; transform: translateX(4px); }
.step-item__num {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--ink); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-head); font-weight: 700; font-size: 16px;
  flex: none;
}
.step-item__title { font-weight: 700; color: var(--ink); font-size: 15.5px; }
.step-item__txt { color: var(--text-soft); font-size: 14px; margin-top: 2px; }

/* ---------- Advantages grid ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.adv-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.adv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.adv-card__icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--teal-100); color: var(--teal-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.adv-card h3 { font-size: 18px; margin-bottom: 8px; }
.adv-card p { color: var(--text-soft); font-size: 14.5px; }

/* ---------- Requirements ---------- */
.req-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.req-card {
  background: #fff;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  padding: 24px 20px;
  text-align: center;
}
.req-card svg { color: var(--teal-600); margin: 0 auto 14px; }
.req-card h4 { font-size: 15px; margin-bottom: 6px; }
.req-card p { font-size: 13px; color: var(--text-soft); }

/* ---------- Earnings calculator ---------- */
.calc {
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--ink) 100%);
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.calc::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 320px at 90% 10%, rgba(20,200,160,.22), transparent 60%);
  pointer-events: none;
}
.calc__field { position: relative; }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.calc__row label { font-weight: 700; font-size: 14.5px; color: rgba(255,255,255,.8); }
.calc__row output { font-family: var(--f-head); font-weight: 700; color: var(--teal); font-size: 16px; }
.calc input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.18);
  margin: 14px 0 26px;
}
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(20,200,160,.22);
  cursor: pointer;
  transition: box-shadow .2s;
}
.calc input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; border: none;
  background: var(--teal); box-shadow: 0 0 0 6px rgba(20,200,160,.22); cursor: pointer;
}
.calc__result {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-md);
  padding: 28px;
  text-align: center;
  backdrop-filter: blur(6px);
}
.calc__result span { font-size: 13px; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.calc__result .amount {
  font-family: var(--f-head);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 700;
  color: var(--teal);
  margin: 8px 0;
}
.calc__result small { color: rgba(255,255,255,.5); font-size: 12.5px; display: block; }
.calc__note { margin-top: 18px; font-size: 12.5px; color: rgba(255,255,255,.55); }

/* ---------- CTA banner (registration / consultation) ---------- */
.cta-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.cta-banner--reverse { grid-template-columns: 1fr 1fr; }
.cta-banner--reverse .cta-banner__art { order: 2; }
.cta-banner__art { align-self: stretch; min-height: 320px; background-size: cover; background-position: center; }
.cta-banner__body { padding: clamp(24px, 4vw, 52px); }
.cta-banner__body h3 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; }
.cta-banner__body p { color: var(--text-soft); margin-bottom: 24px; }
.cta-banner__tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 10px;
}

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.testi-card__stars { color: var(--amber); display: flex; gap: 3px; margin-bottom: 16px; }
.testi-card p.quote { color: var(--text); font-size: 15px; }
.testi-card__who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-head); font-weight: 700; font-size: 15px;
  color: #fff; flex: none;
  object-fit: cover;
  border: 2px solid var(--teal-100);
}
.testi-card__who b { display: block; font-size: 14.5px; color: var(--ink); }
.testi-card__who span { font-size: 12.5px; color: var(--text-mute); }

/* ---------- Trust / security ---------- */
.trust-block__img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.trust-block {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.trust-list { display: grid; gap: 20px; }
.trust-item { display: flex; gap: 16px; }
.trust-item__icon {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: var(--teal-100); color: var(--teal-600);
  display: flex; align-items: center; justify-content: center;
}
.trust-item h4 { font-size: 15.5px; margin-bottom: 4px; }
.trust-item p { color: var(--text-soft); font-size: 14px; }

/* ---------- Resources ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.resource-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--paper);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); background: #fff; }
.resource-card__icon {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: var(--ink); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.resource-card h4 { font-size: 15px; margin-bottom: 4px; }
.resource-card p { font-size: 13.5px; color: var(--text-soft); }
.resource-card__go { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--teal-600); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
}
.faq-item__q .plus {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: background-color .2s, transform .3s var(--ease);
}
.faq-item__q .plus::before, .faq-item__q .plus::after {
  content: ""; position: absolute; background: var(--ink); border-radius: 2px;
}
.faq-item__q .plus::before { width: 12px; height: 2px; }
.faq-item__q .plus::after { width: 2px; height: 12px; transition: transform .25s var(--ease); }
.faq-item.active .plus { background: var(--teal); }
.faq-item.active .plus::before, .faq-item.active .plus::after { background: var(--ink); }
.faq-item.active .plus::after { transform: rotate(90deg) scaleY(0); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
}
.faq-item__a-in { padding: 0 24px 22px; color: var(--text-soft); font-size: 14.5px; }
.faq-item.active .faq-item__a { max-height: 400px; }

/* ---------- Contact + newsletter ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
}
.contact-info { display: grid; gap: 18px; align-content: start; }
.contact-info__card {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
}
.contact-info__card svg { color: var(--teal-600); flex: none; }
.contact-info__card b { display: block; font-size: 14.5px; color: var(--ink); }
.contact-info__card span { font-size: 13.5px; color: var(--text-soft); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-size: 14.5px;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2357617a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 38px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(20,200,160,.14);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error {
  display: none;
  font-size: 12.5px;
  color: var(--danger);
  font-weight: 600;
}
.field.has-error .field-error { display: block; }
.field small.hint { color: var(--text-mute); font-size: 12px; }

.form-msg {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  display: none;
}
.form-msg.show { display: block; }
.form-msg.ok { background: var(--teal-100); color: var(--teal-600); }
.form-msg.error { background: #fdeceb; color: var(--danger); }
.form-msg.pending { background: var(--paper-2); color: var(--text-soft); }

/* Newsletter */
.newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: linear-gradient(120deg, var(--navy-700), var(--ink));
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
  color: #fff;
  flex-wrap: wrap;
}
.newsletter__copy h3 { color: #fff; font-size: clamp(20px, 2.4vw, 26px); }
.newsletter__copy p { color: rgba(255,255,255,.65); margin-top: 8px; max-width: 420px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }
.newsletter-form input {
  min-width: 260px;
  padding: 14px 18px;
  border-radius: var(--r-pill);
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus { outline: none; border-color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.65); padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.55); max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .2s, transform .2s;
}
.footer-social a:hover { background: var(--teal); color: var(--ink); transform: translateY(-3px); }
.footer-col h5 { color: #fff; font-size: 14px; margin-bottom: 18px; letter-spacing: .03em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 14.5px; transition: color .2s; }
.footer-col a:hover { color: var(--teal); }
.footer-contact-item { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.footer-contact-item svg { color: var(--teal); flex: none; margin-top: 3px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 13px;
  color: rgba(255,255,255,.45);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--teal); }

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,18,32,.55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.modal-overlay.open { display: flex; }
.modal-overlay.show { opacity: 1; }
.modal {
  background: #fff;
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 36px;
  position: relative;
  transform: translateY(18px) scale(.98);
  transition: transform .28s var(--ease);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.show .modal { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .2s, transform .2s;
}
.modal__close:hover { background: var(--paper); transform: rotate(90deg); }
.modal__eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 8px; }
.modal__title { font-size: 24px; margin-bottom: 6px; }
.modal__sub { color: var(--text-soft); font-size: 14px; margin-bottom: 24px; }
.modal .field { margin-bottom: 4px; }
.modal form { display: grid; gap: 16px; }
.modal .btn { margin-top: 6px; }
.modal__foot { margin-top: 18px; font-size: 12.5px; color: var(--text-mute); text-align: center; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  display: none;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(11,18,32,.08);
}
.mobile-cta .btn { flex: 1; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }
.reveal-delay-5 { transition-delay: .4s; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s;
  z-index: 350;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.show-mobile { display: none; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--amber-100); color: #a8670a;
}

/* ==========================================================================
   Apply-now (multi-step application) page
   ========================================================================== */
.apply-hero {
  background: linear-gradient(160deg, var(--navy-700), var(--ink));
  color: #fff;
  padding: 52px 0 90px;
  text-align: center;
}
.apply-hero .eyebrow { background: rgba(20,200,160,.14); color: #5fe9c8; }
.apply-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 40px); }
.apply-hero p { color: rgba(255,255,255,.68); max-width: 560px; margin: 14px auto 0; }

.apply-wrap {
  max-width: 860px;
  margin: -56px auto 0;
  padding: 0 20px 100px;
}
.apply-card {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(22px, 4vw, 48px);
}

.progress-track {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
}
.progress-step .circle {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--paper-2);
  color: var(--text-mute);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  border: 2px solid var(--line);
  transition: all .25s var(--ease);
  z-index: 2;
}
.progress-step span.label { font-size: 11.5px; font-weight: 700; color: var(--text-mute); text-align: center; }
.progress-step::before {
  content: "";
  position: absolute;
  top: 17px; left: -50%; width: 100%;
  height: 2px;
  background: var(--line);
  z-index: 1;
}
.progress-step:first-child::before { display: none; }
.progress-step.done .circle { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.progress-step.done::before { background: var(--teal); }
.progress-step.active .circle { border-color: var(--teal); color: var(--ink); background: #fff; box-shadow: 0 0 0 5px rgba(20,200,160,.16); }
.progress-step.active span.label { color: var(--ink); }

.form-step { display: none; }
.form-step.active { display: block; animation: stepIn .35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }

.step-title { font-size: 21px; margin-bottom: 4px; }
.step-desc { color: var(--text-soft); font-size: 14px; margin-bottom: 26px; }

.step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; gap: 12px; }
.step-nav .spacer { flex: 1; }

.consent-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  font-size: 13px;
  color: var(--text-soft);
  max-height: 160px;
  overflow-y: auto;
  margin-bottom: 16px;
}
.consent-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-soft); flex-wrap: wrap; }
.consent-check input { margin-top: 3px; }
.consent-check a { color: var(--teal-600); font-weight: 700; }
.consent-check .field-error { display: none; width: 100%; }
.consent-check.has-error .field-error { display: block; }
.consent-check.has-error span:not(.field-error) { color: var(--danger); }

.result-panel { text-align: center; padding: 30px 10px; }
.result-panel .icon-circle {
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--teal-100); color: var(--teal-600);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}
.result-panel.is-error .icon-circle { background: #fdeceb; color: var(--danger); }
.result-panel.is-info .icon-circle { background: var(--amber-100); color: #a8670a; }
.result-panel h2 { font-size: 24px; margin-bottom: 10px; }
.result-panel p { color: var(--text-soft); max-width: 460px; margin: 0 auto; }

.simple-page-hero {
  background: linear-gradient(160deg, var(--navy-700), var(--ink));
  color: #fff;
  padding: 56px 0 74px;
  text-align: center;
}
.simple-page-hero h1 { color: #fff; }
.simple-page-body {
  max-width: 780px;
  margin: -36px auto 0;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(24px, 4vw, 52px);
  margin-bottom: 90px;
}
.simple-page-body h2 { font-size: 19px; margin: 28px 0 10px; }
.simple-page-body h2:first-child { margin-top: 0; }
.simple-page-body p { color: var(--text-soft); margin-bottom: 4px; }
.simple-page-body ul { margin: 10px 0 16px 0; display: grid; gap: 8px; }
.simple-page-body li { color: var(--text-soft); padding-left: 20px; position: relative; }
.simple-page-body li::before { content: "—"; position: absolute; left: 0; color: var(--teal-600); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .adv-grid, .testi-grid, .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .req-panel { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Switch header to the burger/mobile-drawer nav well before the desktop
   nav + phone number + buttons would ever run out of room and wrap. */
@media (max-width: 1240px) {
  .main-nav, .hide-mobile { display: none; }
  .burger { display: flex; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 78px; }
}

@media (max-width: 980px) {
  .hero__grid, .about, .steps, .trust-block, .contact-wrap { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .calc { grid-template-columns: 1fr; }
  .cta-banner, .cta-banner--reverse { grid-template-columns: 1fr; }
  .cta-banner__art { order: -1; min-height: 220px; }
  .cta-banner--reverse .cta-banner__art { order: -1; }
  .stats-strip__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 720px) {
  :root { --header-h: 68px; }
  .adv-grid, .testi-grid, .resource-grid, .req-panel { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter { flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { min-width: 0; flex: 1; }
  .hero__badge { display: none; }
  .progress-step span.label { display: none; }
}

/* ---------- Mobile nav drawer ---------- */
@media (max-width: 1240px) {
  .main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    bottom: 0;
    background: #fff;
    padding: 20px 24px;
    gap: 4px;
    overflow-y: auto;
    z-index: 490;
  }
  .main-nav.mobile-open a { padding: 16px 6px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav.mobile-open .mobile-only-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
}
.mobile-only-actions { display: none; }
