/* =========================================================
   SilverPe — Fintech Partner Platform
   Design tokens
   ========================================================= */
:root{
  --navy: #100D2E;          /* deep indigo-black — header/hero/footer base */
  --navy-2: #1B1650;
  --navy-soft: #241D63;
  --indigo: #4F46E5;
  --indigo-dark: #3730A3;
  --violet: #7C3AED;
  --ink: #161A2E;
  --ink-soft: #5B6178;
  --bg: #F7F8FC;
  --paper: #FFFFFF;
  --silver: #C7CBE8;
  --silver-light: #EFF1FA;
  --border: #E3E6F2;
  --accent: #F59E0B;       /* gold — CTAs, money */
  --accent-dark: #D97706;
  --teal: #059669;         /* positive / earnings */
  --teal-light: #E4F5EF;
  --danger: #DC2626;
  --danger-light: #FDEAEA;
  --service-accent: var(--indigo);
  --service-tint: #EEEDFC;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 6px;
  --radius-lg: 14px;
  --max-width: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1{ font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.01em; }
h2{ font-size: clamp(1.5rem, 2.6vw, 2.15rem); letter-spacing: -0.01em; }
h3{ font-size: 1.25rem; }
p{ margin: 0 0 1em; color: var(--ink-soft); }
a{ color: inherit; text-decoration: none; }
img{ max-width:100%; display:block; }
ul{ padding-left: 1.2em; }
li{ margin-bottom: .5em; color: var(--ink-soft); }
.container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.visually-hidden{
  position:absolute; width:1px;height:1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap;
}
:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =========================================================
   Top utility bar
   ========================================================= */
.topbar{
  background: var(--navy);
  color: var(--silver);
  font-size: .82rem;
}
.topbar .container{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding-top:7px;
  padding-bottom:7px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a{ color: var(--silver); }
.topbar a:hover{ color: #fff; }
.topbar__contact{ display:flex; gap:18px; flex-wrap:wrap; }
.topbar__contact span{ opacity:.55; margin-right:4px; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header{
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
  flex-shrink:0;
}
.brand__mark{
  width:34px; height:34px;
  border-radius: 9px;
  background: linear-gradient(155deg, var(--indigo) 0%, var(--violet) 60%, var(--accent) 150%);
  position:relative;
  flex-shrink:0;
  box-shadow: 0 4px 10px rgba(79,70,229,.35);
}
.brand__mark::after{
  content:"";
  position:absolute; inset: 8px;
  border: 2px solid var(--silver);
  border-radius: 3px;
}
.brand small{
  display:block;
  font-family: var(--font-body);
  font-weight:500;
  font-size:.62rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
}

.nav__links{
  display:flex;
  align-items:center;
  gap: 6px;
  list-style:none;
  margin:0; padding:0;
  flex:1;
  justify-content:center;
}
.nav__links > li{ position:relative; margin:0; }
.nav__links > li > a, .nav__links > li > button{
  display:inline-block;
  padding: 10px 14px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius);
  background:none;
  border:none;
  font-family: var(--font-body);
  cursor:pointer;
}
.nav__links > li > a:hover, .nav__links > li > button:hover,
.nav__links > li.is-active > a{
  color: var(--accent-dark);
}
.nav__links > li.is-active > a{
  border-bottom: 2px solid var(--accent);
}

.has-dropdown{ position:relative; }
.dropdown{
  position:absolute;
  top: calc(100% + 4px);
  left:0;
  background: var(--paper);
  border:1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 240px;
  box-shadow: 0 12px 24px rgba(14,26,43,.1);
  padding: 8px;
  list-style:none;
  margin:0;
  display:none;
  z-index: 50;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown{ display:block; }
.dropdown li a{
  display:flex;
  flex-direction:column;
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size:.92rem;
  color: var(--ink);
}
.dropdown li a span{ font-size:.76rem; color: var(--ink-soft); font-weight:400; }
.dropdown li a:hover{ background: var(--silver-light); }

.nav__actions{ display:flex; align-items:center; gap:10px; flex-shrink:0; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight:600;
  font-size:.92rem;
  font-family: var(--font-body);
  cursor:pointer;
  border:1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--ghost{
  color: var(--navy);
  border-color: var(--border);
  background: transparent;
}
.btn--ghost:hover{ border-color: var(--navy); }
.btn--primary{
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(245,158,11,.3);
}
.btn--primary:hover{ background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 10px 20px rgba(245,158,11,.35); }
.btn{ transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.btn--outline-light{
  color:#fff; border-color: rgba(255,255,255,.5);
}
.btn--outline-light:hover{ border-color:#fff; background: rgba(255,255,255,.08); }
.btn--block{ width:100%; }
.btn--lg{ padding: 13px 26px; font-size:1rem; }

.nav__toggle{
  display:none;
  background:none; border:none;
  width:38px; height:32px;
  position:relative;
  cursor:pointer;
}
.nav__toggle span, .nav__toggle::before, .nav__toggle::after{
  content:"";
  position:absolute; left:5px; right:5px; height:2px;
  background: var(--navy);
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle::before{ top:9px; }
.nav__toggle span{ top:15px; }
.nav__toggle::after{ top:21px; }
.nav__toggle.is-open::before{ transform: translateY(6px) rotate(45deg); }
.nav__toggle.is-open::after{ transform: translateY(-6px) rotate(-45deg); }
.nav__toggle.is-open span{ opacity:0; }

/* =========================================================
   Hero (ledger-style two column)
   ========================================================= */
.hero{
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 45%, var(--indigo-dark) 100%);
  color: var(--silver-light);
  position:relative;
  overflow:hidden;
  padding: 68px 0 76px;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(480px 320px at 88% -10%, rgba(124,58,237,.55), transparent 70%),
    radial-gradient(420px 300px at 12% 110%, rgba(245,158,11,.22), transparent 70%),
    repeating-linear-gradient(90deg, rgba(199,203,232,.05) 0 1px, transparent 1px 120px);
  pointer-events:none;
}
.hero .container{
  position:relative;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items:center;
}
.hero-icon-row{ display:flex; align-items:center; gap:14px; margin-bottom:18px; }
.hero-icon-row .hero__eyebrow{ margin-bottom:0; }
.hero__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:.8rem;
  color: var(--accent);
  font-weight:700;
  letter-spacing:.02em;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.35);
  padding: 6px 12px 6px 10px;
  border-radius: 20px;
  margin-bottom: 18px;
  animation: heroRise .5s ease both;
}
.hero h1{ color:#fff; animation: heroRise .55s .06s ease both; }
.hero p.lead{
  font-size: 1.08rem;
  color: var(--silver);
  max-width: 46ch;
  animation: heroRise .55s .12s ease both;
}
.hero__cta{ display:flex; gap:12px; margin-top: 26px; flex-wrap:wrap; animation: heroRise .55s .18s ease both; }

@keyframes heroRise{
  from{ opacity:0; transform: translateY(14px); }
  to{ opacity:1; transform: translateY(0); }
}

.hero__panel{
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(199,203,232,.22);
  border-radius: var(--radius-lg);
  padding: 26px;
  animation: heroRise .6s .22s ease both;
}
.hero__panel__row{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  padding: 13px 0;
  border-bottom: 1px solid rgba(174,185,196,.16);
}
.hero__panel__row:last-child{ border-bottom:none; }
.hero__panel__row .label{ font-size:.85rem; color: var(--silver); }
.hero__panel__row .value{
  font-family: var(--font-display);
  font-size: 1.35rem;
  color:#fff;
  font-weight:600;
}
.hero__panel__row .value.accent{ color: var(--accent); }

/* =========================================================
   Sections generic
   ========================================================= */
section{ padding: 64px 0; }
.section--muted{ background: var(--paper); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.section-head{ max-width: 62ch; margin-bottom: 36px; }
.section-head .kicker{
  font-size:.8rem; font-weight:600; color: var(--accent-dark);
  letter-spacing:.02em; margin-bottom:8px; display:block;
}

/* =========================================================
   Ledger list (service directory on homepage)
   ========================================================= */
.ledger{
  border-top: 1px solid var(--border);
}
.ledger__row{
  display:grid;
  grid-template-columns: 46px 1.4fr 2fr auto;
  gap: 20px;
  align-items:center;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.ledger__row:hover{ background: var(--silver-light); }
.ledger__num{
  font-family: var(--font-display);
  color: var(--silver);
  font-size:1.1rem;
}
.ledger__row h3{ margin:0; }
.ledger__row p{ margin:0; font-size:.94rem; }
.ledger__row .btn{ white-space:nowrap; }

/* =========================================================
   Feature grid
   ========================================================= */
.feature-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(230px,1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.feature-grid .feature{
  background: var(--paper);
  padding: 26px 24px;
}
.feature .tag{
  display:inline-block;
  font-size:.72rem;
  font-weight:700;
  color: var(--teal);
  background: var(--teal-light);
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom:12px;
}
.feature h3{ font-size:1.05rem; margin-bottom:6px; }
.feature p{ font-size:.92rem; margin:0; }

/* =========================================================
   Steps (how it works — legitimate sequence)
   ========================================================= */
.steps{ counter-reset: step; }
.step{
  display:grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px dashed var(--border);
}
.step:last-child{ border-bottom:none; }
.step__num{
  counter-increment: step;
  font-family: var(--font-display);
  font-weight:700;
  font-size:1.1rem;
  color: var(--navy);
  background: var(--silver-light);
  border: 1px solid var(--border);
  width:44px; height:44px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.step__num::before{ content: counter(step); }
.step h3{ margin-bottom:4px; font-size:1.05rem; }
.step p{ margin:0; font-size:.93rem; }

/* =========================================================
   Commission / payout table
   ========================================================= */
.table-wrap{ overflow-x:auto; border:1px solid var(--border); border-radius: var(--radius-lg); background: var(--paper); }
table.rates{ width:100%; border-collapse: collapse; min-width: 520px; }
table.rates th, table.rates td{
  padding: 14px 18px;
  text-align:left;
  border-bottom: 1px solid var(--border);
  font-size:.92rem;
}
table.rates th{
  background: var(--indigo-dark);
  color: #fff;
  font-family: var(--font-display);
  font-weight:600;
  font-size:.85rem;
}
table.rates tr:last-child td{ border-bottom:none; }
table.rates td.highlight{ color: var(--teal); font-weight:600; }

/* =========================================================
   FAQ accordion
   ========================================================= */
.faq{ border-top:1px solid var(--border); }
.faq__item{ border-bottom:1px solid var(--border); }
.faq__q{
  width:100%;
  text-align:left;
  background:none;
  border:none;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy);
  font-weight:600;
  display:flex;
  justify-content:space-between;
  align-items:center;
  cursor:pointer;
  gap:16px;
}
.faq__q .plus{
  font-size:1.3rem;
  color: var(--accent);
  transition: transform .18s ease;
  flex-shrink:0;
}
.faq__item.is-open .plus{ transform: rotate(45deg); }
.faq__a{
  max-height:0;
  overflow:hidden;
  transition: max-height .22s ease;
}
.faq__a p{ padding-bottom:18px; margin:0; font-size:.94rem; }

/* =========================================================
   Terms & conditions block
   ========================================================= */
.terms{ counter-reset: term; }
.terms h2{ margin-top:2rem; }
.terms ol{ list-style:none; padding-left:0; counter-reset: term; }
.terms ol > li{
  counter-increment: term;
  position:relative;
  padding-left: 34px;
  margin-bottom: 14px;
  font-size:.95rem;
}
.terms ol > li::before{
  content: counter(term) ".";
  position:absolute; left:0; top:0;
  font-family: var(--font-display);
  color: var(--accent-dark);
  font-weight:700;
}
.terms-box{
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.terms-note{
  background: var(--teal-light);
  border: 1px solid #cfe7e1;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size:.88rem;
  color: var(--navy);
  margin-bottom: 24px;
}

/* =========================================================
   CTA band
   ========================================================= */
.cta-band{
  background: linear-gradient(120deg, var(--indigo-dark) 0%, var(--violet) 100%);
  color:#fff;
  border-radius: var(--radius-lg);
  padding: 44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
  flex-wrap:wrap;
  box-shadow: 0 20px 40px rgba(79,70,229,.25);
}
.cta-band h2{ color:#fff; margin-bottom:6px; }
.cta-band p{ color: var(--silver); margin:0; }

/* =========================================================
   Forms (login / register)
   ========================================================= */
.auth{
  padding: 60px 0 90px;
}
.auth__wrap{
  max-width: 560px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.auth__wrap--wide{ max-width: 720px; }
.auth__head{ text-align:center; margin-bottom: 28px; }
.auth__head p{ margin:0; }
.form-row{ margin-bottom: 18px; }
.form-row--grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
label{
  display:block;
  font-size:.85rem;
  font-weight:600;
  color: var(--navy);
  margin-bottom: 6px;
}
input[type="text"], input[type="tel"], input[type="email"],
input[type="password"], select{
  width:100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
}
input:focus, select:focus{ border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(79,70,229,.12); outline:none; }
input, select{ transition: border-color .15s ease, box-shadow .15s ease; }
.field-error{ color: var(--danger); font-size:.78rem; margin-top:5px; display:none; }
.form-row.has-error input{ border-color: var(--danger); }
.form-row.has-error .field-error{ display:block; }
.field-hint{ font-size:.78rem; color: var(--ink-soft); margin-top:5px; }
.role-select{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.role-select input{ position:absolute; opacity:0; }
.role-select label{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 10px;
  text-align:center;
  font-size:.84rem;
  color: var(--ink-soft);
  cursor:pointer;
  margin:0;
}
.role-select input:checked + label{
  border-color: var(--indigo);
  background: var(--service-tint, #EEEDFC);
  color: var(--indigo-dark);
  font-weight:600;
}
.role-select label{ transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.role-select input:checked + label{ transform: translateY(-1px); }
.checkline{
  display:flex; align-items:flex-start; gap:9px;
  font-size:.85rem; color: var(--ink-soft);
}
.checkline input{ margin-top:4px; }
.checkline a{ color: var(--accent-dark); text-decoration:underline; }
.auth__foot{
  text-align:center;
  margin-top: 20px;
  font-size:.9rem;
  color: var(--ink-soft);
}
.auth__foot a{ color: var(--accent-dark); font-weight:600; }
.form-msg{
  display:none;
  background: var(--teal-light);
  border:1px solid #cfe7e1;
  color: var(--navy);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size:.88rem;
  margin-bottom: 18px;
}
.form-msg.is-visible{ display:block; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  background: var(--navy);
  color: var(--silver);
  padding-top: 52px;
}
.footer__grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(174,185,196,.18);
}
.footer__grid h4{
  color:#fff;
  font-size:.85rem;
  letter-spacing:.03em;
  margin-bottom: 16px;
}
.footer__grid ul{ list-style:none; padding:0; margin:0; }
.footer__grid li{ margin-bottom: 10px; }
.footer__grid a{ color: var(--silver); font-size:.9rem; }
.footer__grid a:hover{ color:#fff; }
.footer__brand p{ color: var(--silver); font-size:.9rem; max-width: 32ch; }
.footer__bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 20px 0;
  font-size:.8rem;
  color: rgba(174,185,196,.7);
  flex-wrap:wrap;
  gap:10px;
}
.footer__bottom a{ color: rgba(174,185,196,.7); }
.footer__bottom a:hover{ color:#fff; }

/* =========================================================
   Icon badges (services + feature highlights)
   ========================================================= */
.icon-badge{
  width: 48px; height:48px;
  border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  background: var(--tint, var(--silver-light));
  color: var(--ic, var(--indigo));
}
.icon-badge svg{ width:24px; height:24px; }
.icon-badge--lg{ width:60px; height:60px; border-radius:14px; }
.icon-badge--lg svg{ width:30px; height:30px; }
.icon-badge--dark{
  background: rgba(255,255,255,.1);
  color:#fff;
  border: 1px solid rgba(255,255,255,.25);
}
.icon-badge--pill{
  width:auto; height:auto; padding:9px; border-radius:10px;
}
.icon-badge--pill svg{ width:20px; height:20px; }

/* =========================================================
   Reveal-on-scroll (applied by JS to cards/rows/steps)
   ========================================================= */
.reveal{
  opacity:0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible{ opacity:1; transform: translateY(0); }

/* =========================================================
   Ledger row + feature card: icon-led, colorful, lift on hover
   ========================================================= */
.ledger__row{
  grid-template-columns: 56px 1.4fr 2fr auto;
  transition: background .18s ease, transform .18s ease;
}
.ledger__row:hover{ transform: translateX(4px); }
.ledger__num.icon-badge{ margin: 0; }

.feature-grid{ background: transparent; border:none; gap: 18px; }
.feature-grid .feature{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-grid .feature:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(16,13,46,.08);
  border-color: rgba(79,70,229,.25);
}
.feature .icon-badge{ margin-bottom: 16px; }

/* =========================================================
   Nav dropdown service icons
   ========================================================= */
.dropdown li a{ flex-direction:row; align-items:center; gap:12px; }
.dropdown li a .icon-badge{ width:34px; height:34px; border-radius:9px; }
.dropdown li a .icon-badge svg{ width:18px; height:18px; }
.dropdown li a .dropdown__text{ display:flex; flex-direction:column; }

/* =========================================================
   Tab toggle (login: password vs OTP)
   ========================================================= */
.tabs{
  display:flex;
  background: var(--silver-light);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}
.tabs button{
  flex:1;
  border:none;
  background:none;
  padding: 10px;
  font-family: var(--font-body);
  font-weight:600;
  font-size:.9rem;
  color: var(--ink-soft);
  border-radius: 8px;
  cursor:pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.tabs button.is-active{
  background:#fff;
  color: var(--indigo);
  box-shadow: 0 2px 8px rgba(16,13,46,.1);
}
.tab-panel{ display:none; }
.tab-panel.is-active{ display:block; animation: heroRise .3s ease both; }

/* =========================================================
   OTP input group
   ========================================================= */
.otp-group{
  display:flex;
  gap: 10px;
  margin: 4px 0 6px;
}
.otp-group input{
  width: 48px;
  text-align:center;
  font-size: 1.2rem;
  font-family: var(--font-display);
  padding: 10px 0;
}
.otp-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:.82rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.otp-meta button{
  background:none; border:none; padding:0;
  color: var(--indigo); font-weight:600; cursor:pointer;
  font-size:.82rem;
}
.otp-meta button:disabled{ color: var(--ink-soft); cursor:default; }

/* =========================================================
   Password strength meter
   ========================================================= */
.pw-strength{ margin: -8px 0 16px; }
.pw-strength__bar{
  height:5px;
  border-radius:3px;
  background: var(--border);
  overflow:hidden;
}
.pw-strength__bar span{
  display:block; height:100%; width:0%;
  background: var(--danger);
  transition: width .2s ease, background .2s ease;
}
.pw-strength__label{ font-size:.76rem; color: var(--ink-soft); margin-top:5px; display:block; }

/* =========================================================
   Registration wizard (step indicator)
   ========================================================= */
.wizard-steps{
  display:flex;
  justify-content:space-between;
  margin-bottom: 30px;
  position:relative;
}
.wizard-steps::before{
  content:"";
  position:absolute; top:15px; left:26px; right:26px; height:2px;
  background: var(--border); z-index:0;
}
.wizard-steps__fill{
  position:absolute; top:15px; left:26px; height:2px;
  background: var(--indigo); z-index:1; width:0%;
  transition: width .25s ease;
}
.wizard-step{
  position:relative; z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  font-size:.78rem; color: var(--ink-soft); font-weight:600;
  flex:1;
}
.wizard-step .dot{
  width:32px; height:32px; border-radius:50%;
  background:#fff; border:2px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); color: var(--ink-soft);
}
.wizard-step.is-active .dot{ border-color: var(--indigo); color: var(--indigo); }
.wizard-step.is-done .dot{ background: var(--indigo); border-color: var(--indigo); color:#fff; }
.wizard-step.is-done .dot svg{ width:16px; height:16px; }
.wizard-panel{ display:none; }
.wizard-panel.is-active{ display:block; animation: heroRise .3s ease both; }

.success-panel{
  text-align:center;
  padding: 20px 0 8px;
}
.success-panel .icon-badge{ margin: 0 auto 18px; }
.success-panel h3{ margin-bottom:8px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px){
  .hero .container{ grid-template-columns: 1fr; }
  .footer__grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px){
  .nav__toggle{ display:block; }
  .nav__links{
    position:fixed; top:0; right:0; height:100vh; width: min(78vw, 320px);
    background:#fff; flex-direction:column; align-items:stretch;
    padding: 90px 20px 20px; box-shadow: -12px 0 30px rgba(0,0,0,.12);
    transform: translateX(100%); transition: transform .25s ease;
    overflow-y:auto; justify-content:flex-start; gap:2px;
  }
  .nav__links.is-open{ transform: translateX(0); }
  .nav__links > li{ width:100%; }
  .nav__links > li > a, .nav__links > li > button{ width:100%; text-align:left; }
  .dropdown{ position:static; box-shadow:none; border:none; display:none; padding-left:10px; }
  .has-dropdown.is-open .dropdown{ display:block; }
  .nav__actions{ display:none; }
  .nav__links::after{
    content:"";
    display:block; margin-top:14px; padding-top:14px;
    border-top:1px solid var(--border);
  }
  .form-row--grid, .role-select{ grid-template-columns: 1fr; }
  .footer__grid{ grid-template-columns: 1fr; }
  .ledger__row{ grid-template-columns: 48px 1fr; }
  .ledger__row p{ grid-column: 2 / 3; }
  .ledger__row .btn{ grid-column: 2/3; justify-self:flex-start; margin-top:6px; }
  .cta-band{ flex-direction:column; align-items:flex-start; }
}
@media (max-width: 480px){
  .auth__wrap{ padding: 26px 20px; }
}
