/* ============================================================
   Avasha Finance — shared site styles
   Modern fintech premium · warmer than most · conversion-led
   ============================================================ */

:root{
  /* Brand */
  --plum-900: #1F0B2C;
  --plum-800: #2E1440;
  --plum-700: #4A1A5C;
  --plum-600: #6B1F6B;
  --magenta-600: #B9295C;
  --magenta-500: #D93A7A;
  --magenta-400: #E85A9A;

  /* Neutrals — warm */
  --bg: #FBF7F4;            /* soft warm ivory base */
  --bg-alt: #F4EEE8;         /* alternating section tone */
  --surface: #FFFFFF;
  --ink: #1A0F22;            /* near-plum black */
  --ink-2: #3A2A44;
  --ink-3: #6B5C74;
  --mute: #9A8EA3;
  --hair: #E9DFD8;           /* warm hairline */
  --hair-2: #F0E8E1;

  /* Radii & shadow */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 36px;
  --shadow-sm: 0 1px 2px rgba(31,11,44,.04), 0 2px 6px rgba(31,11,44,.04);
  --shadow-md: 0 4px 12px rgba(31,11,44,.06), 0 12px 32px rgba(31,11,44,.06);
  --shadow-lg: 0 10px 30px rgba(31,11,44,.08), 0 30px 60px rgba(31,11,44,.08);
  --shadow-mag: 0 10px 30px rgba(185,41,92,.22), 0 20px 50px rgba(185,41,92,.18);

  /* Type scale (fluid) */
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: clamp(20px, 1.4vw + 14px, 24px);
  --fs-xl: clamp(26px, 2vw + 16px, 34px);
  --fs-2xl: clamp(34px, 3vw + 18px, 52px);
  --fs-3xl: clamp(44px, 4.5vw + 20px, 78px);
  --fs-4xl: clamp(56px, 6vw + 24px, 104px);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
html{ scroll-behavior: smooth; }

body{
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

::selection{ background: var(--magenta-500); color: #fff; }

/* Typography ---------------------------------------------------- */
h1,h2,h3,h4{
  font-family: 'Instrument Sans', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1{ font-size: var(--fs-3xl); letter-spacing: -0.035em; font-weight: 500; }
h2{ font-size: var(--fs-2xl); letter-spacing: -0.03em; font-weight: 500; }
h3{ font-size: var(--fs-xl); letter-spacing: -0.022em; font-weight: 600; }
h4{ font-size: var(--fs-lg); font-weight: 600; }

p{ margin: 0; color: var(--ink-2); line-height: 1.6; text-wrap: pretty; }
.lede{ font-size: var(--fs-md); color: var(--ink-2); line-height: 1.55; }

/* Section label — distinctive brand-led label (replaces generic eyebrow).
   Card-title influenced: Instrument Sans, slight italic serif flourish accent. */
.section-label{
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--plum-700);
  letter-spacing: -0.01em;
  margin: 0;
}
.section-label::before{
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  background: currentColor;
  transform: translateY(-5px);
  opacity: .55;
}
.section-label .sl-accent{
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--magenta-600);
  font-size: 17px;
}
.section-label.on-dark{ color: rgba(255,255,255,.85); }
.section-label.on-dark .sl-accent{ color: #F2A8C9; }

/* Legacy eyebrow — kept for backwards compatibility but restyled softer */
.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--magenta-600);
}
.eyebrow::before{
  content: "";
  width: 18px; height: 1px;
  background: var(--magenta-600);
}

/* Layout -------------------------------------------------------- */
.wrap{ max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow{ max-width: 880px; margin: 0 auto; padding: 0 28px; }

section{ padding: clamp(72px, 9vw, 140px) 0; }
section.tight{ padding: clamp(56px, 6vw, 96px) 0; }

.section-head{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head .lede{ max-width: 48ch; }
@media (max-width: 780px){
  .section-head{ grid-template-columns: 1fr; gap: 20px; }
}

/* Navigation ---------------------------------------------------- */
.nav{
  position: fixed;
  top: 16px; left: 16px; right: 16px;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px 12px 16px;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: transform .4s var(--ease), background .3s var(--ease);
}
.nav.is-hidden{ transform: translateY(-140%); }
.nav.is-scrolled{ background: rgba(255,255,255,.9); }

.nav-brand{
  display: flex; align-items: center; gap: 10px;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 18px;
  color: var(--ink);
  padding: 4px 6px;
  white-space: nowrap;
}
.nav-brand span{ white-space: nowrap; }
.nav-brand img{ height: 26px; width: auto; }

.nav-links{
  display: flex; gap: 4px;
  list-style: none; margin:0; padding:0;
}
.nav-links a{
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-links a:hover{ background: rgba(31,11,44,.05); color: var(--ink); }
.nav-links a.is-active{ color: var(--ink); background: rgba(31,11,44,.06); }

.nav-cta{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--plum-700) 0%, var(--magenta-600) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  box-shadow: 0 2px 8px rgba(74,26,92,.22);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-cta:hover{ transform: translateY(-1px); box-shadow: 0 6px 18px rgba(74,26,92,.34); }
.nav-cta svg{ width: 14px; height: 14px; }

.nav-toggle{
  display: none;
  background: none; border: none; padding: 8px;
  cursor: pointer;
}
.nav-toggle svg{ width: 22px; height: 22px; color: var(--ink); }

@media (max-width: 900px){
  .nav{ padding: 10px 10px 10px 14px; }
  .nav-links{ display: none; }
  .nav-toggle{ display: flex; }
  .nav-cta{ padding: 9px 14px; font-size: 13px; }
}

.nav-mobile{
  position: fixed; inset: 0;
  z-index: 99;
  background: var(--bg);
  padding: 100px 28px 40px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-100%);
  transition: transform .35s var(--ease-out);
  overflow: hidden;
}
.nav-mobile.is-open{ transform: translateY(0); }
.nav-mobile a{
  font-family: 'Instrument Sans', sans-serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
  letter-spacing: -0.02em;
}
.nav-mobile .nav-cta{
  align-self: flex-start;
  margin-top: 16px;
  padding: 14px 24px;
  font-size: 15px;
  border-bottom: none;
}

/* Buttons ------------------------------------------------------- */
.btn{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  text-decoration: none;
}
.btn svg{ width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg{ transform: translateX(3px); }

.btn-primary{
  background: linear-gradient(135deg, var(--plum-700) 0%, var(--magenta-600) 100%);
  color: #fff;
  box-shadow: var(--shadow-mag);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 34px rgba(185,41,92,.32); }

.btn-ghost{
  background: rgba(31,11,44,.05);
  color: var(--ink);
}
.btn-ghost:hover{ background: rgba(31,11,44,.09); }

.btn-outline{
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(31,11,44,.18);
}
.btn-outline:hover{ background: rgba(31,11,44,.04); border-color: var(--ink-2); }

.btn-light{
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
}
.btn-light:hover{ background: rgba(255,255,255,.2); }

/* Cards --------------------------------------------------------- */
.card{
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  border: 1px solid var(--hair-2);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--hair);
}
.card-icon{
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(74,26,92,.08), rgba(185,41,92,.1));
  color: var(--plum-700);
  margin-bottom: 22px;
}
.card-icon svg{ width: 22px; height: 22px; }
.card h3{ font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.card p{ font-size: 15px; line-height: 1.55; color: var(--ink-3); }

/* Footer -------------------------------------------------------- */
.footer{
  background: var(--plum-900);
  color: #E9DCEF;
  padding: 96px 0 40px;
  position: relative;
  overflow: hidden;
}
.footer::before{
  content: "";
  position: absolute;
  inset: auto -200px -400px auto;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(217,58,122,.25), transparent 60%);
  pointer-events: none;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}
.footer-brand img{ height: 34px; margin-bottom: 18px; filter: brightness(1.3); }
.footer-brand p{ color: #C5B3D0; font-size: 14px; max-width: 32ch; line-height: 1.55; }
.footer h5{
  font-family: 'Instrument Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 20px 0;
}
.footer ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer ul a{ color: #C5B3D0; font-size: 14px; transition: color .2s; }
.footer ul a:hover{ color: #fff; }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 32px;
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center;
  color: #8B7594;
  font-size: 12.5px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.footer-bottom p{ color: #8B7594; max-width: 68ch; font-size: 12px; }
.footer-legal{ display: flex; gap: 22px; }
.footer-legal a{ color: #8B7594; font-size: 12.5px; }
.footer-legal a:hover{ color: #fff; }

@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand{ grid-column: 1 / -1; }
}
@media (max-width: 520px){
  .footer-grid{ grid-template-columns: 1fr; gap: 32px; }
}

/* Utility ------------------------------------------------------- */
.gradient-text{
  background: linear-gradient(100deg, var(--plum-700) 0%, var(--magenta-500) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Reveal-on-scroll — transition-based (most reliable) */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-in{
  opacity: 1;
  transform: none;
}
.reveal-delay-1{ transition-delay: .08s; }
.reveal-delay-2{ transition-delay: .16s; }
.reveal-delay-3{ transition-delay: .24s; }
.reveal-delay-4{ transition-delay: .32s; }
@keyframes revealIn{
  from{ opacity: 0; transform: translateY(16px); }
  to{ opacity: 1; transform: none; }
}

/* Parallax */
.parallax{
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.parallax-bg{
  position: absolute;
  inset: -10% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: -1;
}
.parallax-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,11,44,.5) 0%, rgba(31,11,44,.75) 100%);
  z-index: -1;
}

/* Page hero (inner pages) */
.page-hero{
  padding: 180px 0 80px;
  position: relative;
}
.page-hero .eyebrow{ margin-bottom: 24px; }
.page-hero h1{ max-width: 18ch; margin-bottom: 24px; }
.page-hero .lede{ max-width: 52ch; font-size: 20px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .01s !important; transition-duration: .01s !important; }
  .reveal, .reveal.is-in{ opacity: 1 !important; transform: none !important; animation: none !important; }
  html{ scroll-behavior: auto; }
}

/* ============================================================
   LOAN CALCULATOR — premium reusable component
   ============================================================ */
.calc{
  background: #fff;
  border-radius: 28px;
  padding: 32px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.8) inset,
    0 10px 30px rgba(31,11,44,.08),
    0 30px 80px rgba(31,11,44,.08);
  border: 1px solid rgba(255,255,255,.9);
  position: relative;
  overflow: hidden;
}
.calc::before{
  content: "";
  position: absolute;
  inset: -30% -30% auto auto;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(217,58,122,.12), transparent 60%);
  pointer-events: none;
}
.calc-head{
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 26px;
  position: relative;
}
.calc-head h3{
  font-family: 'Instrument Sans', sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.calc-head .calc-meta{
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.calc-field{
  margin-bottom: 22px;
  position: relative;
}
.calc-label{
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.calc-label-text{
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: -0.005em;
}
.calc-value-display{
  font-family: 'Instrument Sans', sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.calc-value-edit{
  background: transparent;
  border: none;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-align: right;
  width: 140px;
  padding: 2px 4px;
  border-radius: 6px;
  outline: none;
}
.calc-value-edit:focus{ background: rgba(185,41,92,.06); }

/* Range slider — custom */
.calc-range{
  -webkit-appearance: none; appearance: none;
  width: 100%;
  height: 6px;
  background: var(--hair);
  border-radius: 999px;
  outline: none;
  margin: 6px 0 0;
  cursor: pointer;
}
.calc-range::-webkit-slider-thumb{
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--plum-700);
  box-shadow: 0 4px 12px rgba(74,26,92,.3), 0 0 0 6px rgba(185,41,92,.0);
  cursor: grab;
  transition: box-shadow .2s var(--ease), transform .15s var(--ease);
}
.calc-range::-webkit-slider-thumb:hover{
  box-shadow: 0 4px 12px rgba(74,26,92,.3), 0 0 0 6px rgba(185,41,92,.14);
}
.calc-range::-webkit-slider-thumb:active{ cursor: grabbing; transform: scale(1.1); }
.calc-range::-moz-range-thumb{
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--plum-700);
  cursor: grab;
  box-shadow: 0 4px 12px rgba(74,26,92,.3);
}
.calc-range-fill{
  position: relative;
  height: 6px;
  margin-top: -6px;
  margin-bottom: 0;
  pointer-events: none;
}
.calc-range-fill-inner{
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--plum-700), var(--magenta-500));
  border-radius: 999px;
  transition: width .15s var(--ease);
}

/* Segmented term selector */
.calc-segment{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 4px;
}
.calc-segment button{
  background: transparent;
  border: none;
  padding: 10px 8px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.calc-segment button:hover{ color: var(--ink); }
.calc-segment button.is-active{
  background: #fff;
  color: var(--plum-700);
  box-shadow: 0 2px 6px rgba(31,11,44,.08);
  font-weight: 600;
}

/* Results */
.calc-results{
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(74,26,92,.04), rgba(185,41,92,.05));
  border: 1px solid rgba(185,41,92,.12);
  position: relative;
}
.calc-result-main{
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(185,41,92,.14);
}
.calc-result-main .calc-label-text{ color: var(--ink-2); font-weight: 500; }
.calc-result-main .calc-figure{
  font-family: 'Instrument Sans', sans-serif;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  background: linear-gradient(100deg, var(--plum-700), var(--magenta-500));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity .25s var(--ease);
}
.calc-figure.is-updating{ opacity: .5; }
.calc-result-row{
  display: flex; justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-3);
  padding: 4px 0;
}
.calc-result-row strong{
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 500;
  color: var(--ink);
  font-size: 15px;
}

.calc-cta{
  margin-top: 22px;
  display: flex; gap: 10px;
}
.calc-cta .btn{ flex: 1; justify-content: center; }
.calc-note{
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.5;
  padding: 0 2px;
}

/* Compact variant for Apply page */
.calc.is-compact{ padding: 24px; border-radius: 22px; }
.calc.is-compact .calc-result-main .calc-figure{ font-size: 32px; }
.calc.is-compact .calc-results{ margin-top: 22px; padding: 18px 20px; }

/* ============================================================
   MULTI-STEP FORM — Apply page
   ============================================================ */
.msf{
  background: #fff;
  border-radius: 28px;
  padding: 40px 44px;
  border: 1px solid var(--hair-2);
  box-shadow: var(--shadow-md);
}
@media (max-width: 680px){
  .msf{ padding: 28px 22px; border-radius: 22px; }
}
.msf-progress{
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
}
.msf-progress-step{
  flex: 1;
  display: flex; flex-direction: column; gap: 8px;
  cursor: pointer;
}
.msf-progress-bar{
  height: 3px;
  background: var(--hair);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.msf-progress-bar::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--plum-700), var(--magenta-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.msf-progress-step.is-done .msf-progress-bar::after{ transform: scaleX(1); }
.msf-progress-step.is-current .msf-progress-bar::after{ transform: scaleX(.5); }
.msf-progress-label{
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: -0.005em;
}
.msf-progress-step.is-current .msf-progress-label{ color: var(--plum-700); font-weight: 600; }
.msf-progress-step.is-done .msf-progress-label{ color: var(--ink-2); }
@media (max-width: 680px){
  .msf-progress-label{ display: none; }
}

.msf-step-head{ margin-bottom: 28px; }
.msf-step-num{
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--magenta-600);
  font-size: 15px;
  margin-bottom: 10px;
  display: block;
}
.msf-step-head h2{
  font-size: clamp(28px, 3vw, 36px);
  margin-bottom: 10px;
  font-weight: 500;
}
.msf-step-head p{ font-size: 15.5px; color: var(--ink-3); }

.msf-panel{
  display: none;
  animation: msfIn .45s var(--ease-out) both;
}
.msf-panel.is-active{ display: block; }
@keyframes msfIn{
  from{ opacity: 0; transform: translateY(12px); }
  to{ opacity: 1; transform: none; }
}

.msf-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.msf-grid .msf-full{ grid-column: 1 / -1; }
@media (max-width: 560px){
  .msf-grid{ grid-template-columns: 1fr; }
}

.msf-field{
  display: flex; flex-direction: column; gap: 8px;
}
.msf-field label{
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.msf-field .hint{
  font-size: 12px;
  color: var(--ink-3);
  margin-top: -2px;
}
.msf-field input,
.msf-field select,
.msf-field textarea{
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  width: 100%;
}
.msf-field input:focus,
.msf-field select:focus,
.msf-field textarea:focus{
  border-color: var(--plum-700);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(185,41,92,.1);
}
.msf-field input::placeholder,
.msf-field textarea::placeholder{ color: var(--mute); }
.msf-field textarea{ resize: vertical; min-height: 92px; }
.msf-field.has-error input,
.msf-field.has-error select{
  border-color: #C03050;
  background: #FFF4F6;
}
.msf-field .err{
  font-size: 12.5px;
  color: #C03050;
  display: none;
}
.msf-field.has-error .err{ display: block; }

.msf-check{
  display: flex; gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  transition: all .2s var(--ease);
  align-items: flex-start;
}
.msf-check:hover{ border-color: var(--plum-700); }
.msf-check input{ margin: 2px 0 0; accent-color: var(--plum-700); width: 18px; height: 18px; flex-shrink: 0; }
.msf-check-text{ font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.msf-check-text strong{ color: var(--ink); font-weight: 600; }

.msf-nav{
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--hair-2);
  gap: 14px;
}
.msf-nav .msf-nav-right{ display: flex; gap: 10px; margin-left: auto; }

/* Review summary */
.msf-summary{
  display: grid;
  gap: 2px;
  border: 1px solid var(--hair);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
}
.msf-summary-group{
  background: #fff;
  padding: 20px 22px;
}
.msf-summary-group + .msf-summary-group{ border-top: 1px solid var(--hair-2); }
.msf-summary-group h4{
  font-family: 'Instrument Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--plum-700);
  letter-spacing: -0.005em;
  margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.msf-summary-group h4 button{
  background: transparent; border: none; cursor: pointer;
  font-size: 12px; font-weight: 500;
  color: var(--magenta-600);
  font-family: inherit;
  text-decoration: underline; text-underline-offset: 3px;
}
.msf-summary dl{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 20px;
  margin: 0;
  font-size: 14px;
}
.msf-summary dt{ color: var(--ink-3); }
.msf-summary dd{ color: var(--ink); margin: 0; font-weight: 500; }
@media (max-width: 560px){
  .msf-summary dl{ grid-template-columns: 1fr; gap: 2px 0; }
  .msf-summary dt{ font-size: 12px; margin-top: 6px; }
  .msf-summary dd{ margin-bottom: 6px; }
}

.msf-disclaimer{
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--bg-alt);
  border-radius: 14px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
}
.msf-disclaimer strong{ color: var(--ink-2); font-weight: 600; }

.msf-success{
  text-align: center;
  padding: 48px 20px;
}
.msf-success-mark{
  width: 72px; height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--plum-700), var(--magenta-500));
  display: grid; place-items: center;
  color: #fff;
}
.msf-success-mark svg{ width: 32px; height: 32px; }
.msf-success h2{ margin-bottom: 14px; }
.msf-success p{ max-width: 48ch; margin: 0 auto; }

/* ============================================================
   TIMELINE — vertical (desktop) variant for How it works
   ============================================================ */
.timeline{
  display: grid;
  gap: 0;
  position: relative;
  margin-top: 24px;
}
.timeline-step{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  padding: 28px 0;
  position: relative;
  align-items: flex-start;
}
.timeline-step + .timeline-step{ border-top: 1px solid var(--hair); }
.timeline-num{
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 56px;
  font-weight: 400;
  color: var(--plum-700);
  line-height: 1;
  letter-spacing: -0.02em;
}
.timeline-content h3{
  font-family: 'Instrument Sans', sans-serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.timeline-content p{
  font-size: 16px;
  color: var(--ink-2);
  max-width: 52ch;
}
@media (max-width: 680px){
  .timeline-step{ grid-template-columns: 60px 1fr; gap: 18px; }
  .timeline-num{ font-size: 38px; }
  .timeline-content h3{ font-size: 22px; }
}

/* ============================================================
   Self-hosted fonts (replaces Google Fonts CDN)
   ============================================================ */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('instrument-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('instrument-serif.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('inter.woff2') format('woff2');
}
