/* =============================================================
   RAILQUICK — PREMIUM COMING SOON
   DM Serif Display + DM Sans · White + Deep Green
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;0,9..40,900;1,9..40,400;1,9..40,700&family=DM+Serif+Display:ital@0;1&display=swap');

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #fff;
  color: #111;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Tokens ---------- */
:root {
  --g:     #15803d;
  --g-dk:  #14532d;
  --g-lt:  #f0fdf4;
  --g-mid: #bbf7d0;
  --g-glo: rgba(21,128,61,.18);
  --ink:   #111;
  --ink2:  #3f3f46;
  --ink3:  #71717a;
  --ink4:  #a1a1aa;
  --line:  #e4e4e7;
  --surf:  #fafafa;
  --ease:  cubic-bezier(.22,1,.36,1);
}

body {
  background-image:
    radial-gradient(ellipse 55% 40% at 88% 0%,  rgba(187,247,208,.55) 0%, transparent 100%),
    radial-gradient(ellipse 38% 28% at  4% 98%, rgba(187,247,208,.28) 0%, transparent 100%);
}

/* =============================================================
   NAV
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 0 clamp(18px, 5vw, 64px);
  height: 64px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border-bottom: 1px solid var(--line);
  position: relative;
}

/* Rainbow top edge */
.nav-rainbow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--g), #4ade80, #fbbf24, #f97316, #a78bfa, var(--g));
  background-size: 300%;
  animation: rainbow-slide 6s linear infinite;
}
@keyframes rainbow-slide { from { background-position: 0% } to { background-position: 300% } }

.nav-brand { display: flex; align-items: center; }
.nav-logo  { width: clamp(110px, 11vw, 155px); height: auto; }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 9px; }

.nav-link {
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink2);
  background: var(--surf);
  transition: border-color 160ms, background 160ms, color 160ms;
}
.nav-link:hover { border-color: var(--g-mid); background: var(--g-lt); color: var(--g-dk); }

.nav-cta {
  padding: 9px 20px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
  transition: background 180ms, transform 200ms var(--ease), box-shadow 180ms;
}
.nav-cta:hover { background: var(--g); box-shadow: 0 4px 20px var(--g-glo); transform: translateY(-1px); }

/* =============================================================
   HERO GRID
   ============================================================= */
.page {
  display: grid;
  grid-template-columns: 1fr minmax(0, 460px);
  align-items: start;
  gap: clamp(40px, 8vw, 96px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(52px, 9vh, 100px) clamp(18px, 5vw, 64px) clamp(52px, 8vh, 72px);
}

/* =============================================================
   LEFT
   ============================================================= */
.col-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: rise .65s var(--ease) both;
}

.headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(3rem, 6.5vw, 6.8rem);
  font-weight: 400;
  line-height: 1.01;
  letter-spacing: -.03em;
  color: var(--ink);
  animation: rise .65s .06s var(--ease) both;
}
.headline-em { font-style: italic; color: var(--g); }

.subline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--ink2);
  line-height: 1.7;
  max-width: 480px;
  animation: rise .65s .12s var(--ease) both;
}

/* Stats — 2 items only */
.stats-row {
  display: flex;
  align-items: center;
  animation: rise .65s .18s var(--ease) both;
}
.stat-item { display: flex; flex-direction: column; gap: 2px; padding: 0 20px; }
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child  { padding-right: 0; }
.stat-n {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  color: var(--ink);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-l { font-size: 0.71rem; font-weight: 500; color: var(--ink4); }
.stat-sep { width: 1px; height: 34px; background: var(--line); flex-shrink: 0; }

/* Visit site (desktop only) */
.btn-site {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink2);
  background: #fff;
  width: fit-content;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  transition: border-color 180ms, background 180ms, color 180ms, transform 200ms var(--ease), box-shadow 180ms;
  animation: rise .65s .22s var(--ease) both;
}
.btn-site:hover { border-color: var(--g); background: var(--g-lt); color: var(--g-dk); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(21,128,61,.18); }
.arr-out { opacity: .45; flex-shrink: 0; }

/* =============================================================
   GOOGLE PLAY BADGE (desktop left col)
   ============================================================= */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 12px;
  background: #0d0d0d;
  border: 1.5px solid #1e1e1e;
  border-radius: 14px;
  cursor: pointer;
  width: fit-content;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: background 200ms, transform 220ms var(--ease), box-shadow 220ms;
  animation: rise .65s .26s var(--ease) both;
}
.play-badge:hover { background: #181818; transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.26); }

.play-icon-box { flex-shrink: 0; display: flex; align-items: center; }
.play-svg     { width: 34px; height: 34px; display: block; }
.play-svg-sm  { width: 32px; height: 32px; }

.play-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.play-sub  { font-size: 0.55rem; font-weight: 700; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .12em; line-height: 1; }
.play-main { font-size: 1.05rem; font-weight: 700; color: #fff; letter-spacing: .02em; line-height: 1.1; }
.play-arr  { flex-shrink: 0; margin-left: 4px; }

/* desktop-only / mobile-only utilities */
.desktop-only { }
.mobile-only  { display: none; }

/* =============================================================
   FORM CARD
   ============================================================= */
.col-right {
  position: sticky;
  top: 72px;
  animation: rise .65s .08s var(--ease) both;
}

.form-card {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 28px;
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.6) inset,
    0 2px 4px  rgba(0,0,0,.04),
    0 8px 24px rgba(0,0,0,.07),
    0 40px 80px rgba(0,0,0,.06);
}

/* Rainbow shimmer top */
.form-shimmer {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g), #4ade80, #fbbf24, #f97316, #a78bfa, var(--g));
  background-size: 300%;
  animation: rainbow-slide 6s linear infinite;
}

.form-head { margin-bottom: 20px; }

.form-pill {
  display: inline-block;
  padding: 4px 11px;
  background: var(--g-lt);
  border: 1px solid var(--g-mid);
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--g-dk);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}
.form-h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.form-desc { font-size: 0.88rem; color: var(--ink3); line-height: 1.5; }

/* Proof strip */
.proof-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 22px;
}
.av-group { display: flex; }
.av {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.57rem; font-weight: 800;
  margin-left: -7px;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.av:first-child { margin-left: 0; }
.proof-lbl { font-size: 0.83rem; color: var(--ink3); }
.proof-lbl strong { color: var(--ink); font-weight: 700; }

/* Fields */
.f-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 13px; }
label { font-size: 0.75rem; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .07em; }
.input-wrap { position: relative; }
.input-ico {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink4); pointer-events: none;
}
input {
  width: 100%; height: 52px;
  padding: 0 16px 0 40px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surf);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  -webkit-appearance: none;
  transition: border-color 180ms, background 180ms, box-shadow 180ms;
}
input::placeholder { color: var(--ink4); }
input:focus { border-color: var(--g); background: #fff; box-shadow: 0 0 0 3.5px rgba(21,128,61,.12); }

/* Submit button */
#submitButton {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; height: 56px;
  margin-top: 8px;
  border-radius: 12px;
  font-size: 1rem; font-weight: 700;
  color: #fff; letter-spacing: .01em;
  background: linear-gradient(155deg, #16a34a 0%, #15803d 60%, #166534 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.18) inset,
    0 4px 16px rgba(21,128,61,.32),
    0 16px 40px rgba(21,128,61,.18);
  overflow: hidden;
  transition: transform 220ms var(--ease), box-shadow 220ms;
}
#submitButton::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: skewX(-18deg);
  animation: btn-sheen 4.5s ease-in-out infinite;
}
@keyframes btn-sheen { 0%{left:-80%} 100%{left:170%} }
#submitButton:hover { background: linear-gradient(155deg, #15803d 0%, #14532d 100%); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(21,128,61,.42), 0 20px 48px rgba(21,128,61,.2); }
#submitButton:active  { transform: translateY(0); }
#submitButton:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ico { flex-shrink: 0; transition: transform 220ms var(--ease); }
#submitButton:hover .btn-ico { transform: translateX(5px); }

.form-status { margin-top: 11px; min-height: 16px; font-size: 0.83rem; font-weight: 600; color: var(--g-dk); text-align: center; line-height: 1.45; }
.form-status.error { color: #dc2626; }
.form-note { margin-top: 11px; font-size: 0.72rem; color: var(--ink4); text-align: center; }

/* ─── Mobile-only form footer ─── */
.form-mobile-foot {
  display: none; /* shown only on mobile via media query */
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* "Visit railquick.in" link in form */
.form-site-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink2);
  background: var(--surf);
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  transition: border-color 180ms, background 180ms, color 180ms, transform 180ms;
}
.form-site-link:hover { border-color: var(--g); background: var(--g-lt); color: var(--g-dk); transform: translateY(-1px); }

/* Play store block in mobile form */
.form-play-center {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 4px;
}

/* Full-width play badge in form */
.form-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 250px;
  padding: 10px 18px 10px 12px;
  background: #0d0d0d;
  border: 1.5px solid #1e1e1e;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: background 200ms, transform 220ms var(--ease), box-shadow 220ms;
}
.form-play-btn:hover { background: #181818; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.24); }
.form-play-btn:active { transform: translateY(0); }

/* =============================================================
   HOW IT WORKS
   ============================================================= */
.hiw {
  padding: clamp(64px, 10vh, 110px) clamp(18px, 5vw, 64px);
  background: var(--surf);
  border-top: 1px solid var(--line);
}
.hiw-inner { max-width: 1100px; margin: 0 auto; }
.hiw-header { text-align: center; margin-bottom: clamp(44px, 6vw, 68px); }
.hiw-eyebrow { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--g); margin-bottom: 12px; }
.hiw-h2 { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(2rem, 3.8vw, 3.4rem); font-weight: 400; color: var(--ink); line-height: 1.12; letter-spacing: -.03em; }
.hiw-em { font-style: italic; color: var(--g); }

/* Desktop 3-col */
.hiw-desktop {
  display: flex; align-items: stretch; justify-content: center; gap: 0;
}
.hiw-card-d {
  flex: 1; max-width: 310px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.04), 0 12px 28px rgba(0,0,0,.05);
  transition: transform 240ms var(--ease), box-shadow 240ms, border-color 240ms;
}
.hiw-card-d::after {
  content: attr(data-step);
  position: absolute; bottom: -14px; right: 12px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 7.5rem; font-weight: 400;
  color: rgba(21,128,61,.06); line-height: 1;
  pointer-events: none; user-select: none;
}
.hiw-card-d:hover { transform: translateY(-6px); box-shadow: 0 4px 16px rgba(0,0,0,.06), 0 24px 56px rgba(0,0,0,.1); border-color: var(--g-mid); }
.hiw-card-d--mid { background: var(--g-lt); border-color: var(--g-mid); }
.hiw-d-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.hiw-d-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--surf);
  border: 1.5px solid var(--line);
  color: var(--g);
  transition: all 260ms var(--ease);
}
.hiw-card-d:hover .hiw-d-icon {
  background: var(--g);
  color: #fff;
  border-color: var(--g);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(21,128,61,.2);
}
.hiw-card-d--mid .hiw-d-icon {
  background: #fff;
  border-color: var(--g-mid);
}
.hiw-card-d--mid:hover .hiw-d-icon {
  background: var(--g-dk);
  border-color: var(--g-dk);
}

.hiw-d-num { font-family: 'DM Serif Display', Georgia, serif; font-size: 2.6rem; font-weight: 400; color: var(--g-mid); line-height: 1; letter-spacing: -.03em; }
.hiw-card-d--mid .hiw-d-num { color: var(--g); }
.hiw-d-title { font-size: 1.05rem; font-weight: 800; color: var(--ink); line-height: 1.25; letter-spacing: -.01em; }
.hiw-d-p { font-size: 0.87rem; color: var(--ink3); line-height: 1.65; }
.hiw-arrow-d { display: flex; align-items: center; justify-content: center; padding: 0 12px; color: var(--ink4); flex-shrink: 0; align-self: center; margin-top: 16px; }

/* Mobile timeline — hidden by default */
.hiw-mobile { display: none; }

/* =============================================================
   FOOTER
   ============================================================= */
.footer { border-top: 1px solid var(--line); padding: 24px clamp(18px, 5vw, 64px); background: #fff; }
.footer-in { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.f-logo { width: 108px; }
.f-copy { font-size: 0.76rem; color: var(--ink4); }
.f-link { font-size: 0.8rem; font-weight: 700; color: var(--g); transition: color 160ms; }
.f-link:hover { color: var(--g-dk); }

/* =============================================================
   MODALS
   ============================================================= */
.modal { position: fixed; inset: 0; z-index: 500; display: none; place-items: center; padding: 20px; }
.modal[aria-hidden="false"] { display: grid; }
.modal-scrim { position: absolute; inset: 0; background: rgba(6,6,6,.5); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

.modal-box {
  position: relative; z-index: 1;
  width: min(100%, 460px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 26px;
  overflow: hidden;
  box-shadow:
    0 10px 40px rgba(0,0,0,.06),
    0 30px 80px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.9);
  animation: modal-slide-up .42s cubic-bezier(.16,1,.3,1) both;
}
@keyframes modal-slide-up {
  from { transform: translateY(28px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* X close button */
.modal-x {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  display: flex; align-items: center; justify-content: center;
  transition: background 200ms, color 200ms, transform 240ms var(--ease);
}
.modal-x:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  transform: rotate(90deg);
}

/* Close button for modals without green band */
.modal-body-pad ~ .modal-x,
.modal-body-pad .modal-x {
  color: var(--ink3);
  background: var(--surf);
  border-color: var(--line);
}
.modal-body-pad ~ .modal-x:hover,
.modal-body-pad .modal-x:hover {
  background: var(--line);
  color: var(--ink);
}

/* ── Success modal top green band ── */
.modal-top-band {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 60%, #14532d 100%);
  padding: 38px 24px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
}
.modal-top-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -20%, rgba(255,255,255,0.2) 0%, transparent 75%);
  pointer-events: none;
}

.modal-success-icon {
  width: 68px; height: 68px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: icon-pulse 2.2s infinite ease-in-out;
}
@keyframes icon-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.22); }
  50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

.check-anim {
  stroke-dashoffset: 32;
  animation: draw-check .5s .2s ease forwards;
}
@keyframes draw-check { to { stroke-dashoffset: 0; } }

.modal-band-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.8);
  margin-top: 2px;
}

/* ── Modal body ── */
.modal-body {
  padding: clamp(28px, 6vw, 42px);
  text-align: center;
}

.modal-body-pad {
  padding-top: clamp(32px, 6vw, 48px);
}

/* Play icon card in app modal */
.modal-play-card {
  width: 86px; height: 86px;
  margin: 0 auto 22px;
  background: #0d0d0d;
  border: 1.5px solid #1f1f1f;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.modal-play-card:hover {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}
.modal-play-card svg { width: 50px; height: 50px; }

.modal-eyebrow { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--ink4); margin-bottom: 7px; }
.modal-h { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(1.6rem, 4.5vw, 2.2rem); font-weight: 400; color: var(--ink); line-height: 1.12; letter-spacing: -.02em; margin-bottom: 10px; }
.modal-p { font-size: 0.92rem; color: var(--ink3); line-height: 1.65; margin-bottom: 28px; max-width: 350px; margin-left: auto; margin-right: auto; }

.modal-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 50px; border-radius: 14px;
  font-size: 0.92rem; font-weight: 700; letter-spacing: .01em;
  transition: all 200ms var(--ease);
}
.mbtn-solid {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(21,128,61,.22);
}
.mbtn-solid:hover {
  background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(21,128,61,.32);
}
.mbtn-ghost {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink2);
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.mbtn-ghost:hover {
  background: var(--surf);
  border-color: var(--ink4);
  color: var(--ink);
  transform: translateY(-1px);
}

/* =============================================================
   ANIMATIONS
   ============================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

/* =============================================================
   RESPONSIVE — TABLET ≤960px
   ============================================================= */
@media (max-width: 960px) {
  .page { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; gap: 40px; }
  .col-left  { order: 1; }
  .col-right { order: 2; position: static; max-width: 560px; width: 100%; margin: 0 auto; }

  .desktop-only { display: none !important; }
  .form-mobile-foot { display: flex; }

  .hiw-desktop { flex-direction: column; align-items: stretch; gap: 16px; max-width: 560px; margin: 0 auto; }
  .hiw-card-d  { max-width: 100%; }
  .hiw-arrow-d { display: none; }
}

/* =============================================================
   RESPONSIVE — MOBILE ≤640px
   ============================================================= */
@media (max-width: 640px) {
  /* Nav */
  .nav { height: 56px; padding: 0 16px; }
  .nav-logo { width: 102px; }
  .nav-link { display: none; }
  .nav-cta  { padding: 8px 16px; font-size: 0.8rem; }

  /* Hero */
  .page    { padding: 28px 16px 36px; gap: 28px; }
  .headline { font-size: clamp(2.5rem, 11vw, 3.3rem); }
  .subline  { font-size: 1rem; }

  /* Stats */
  .stats-row { flex-wrap: wrap; gap: 16px; }
  .stat-item { padding: 0; }
  .stat-sep  { display: none; }

  /* Form */
  .form-card  { padding: 20px 16px; border-radius: 22px; }
  .form-h2    { font-size: 1.75rem; }
  .desktop-only { display: none !important; }
  .form-mobile-foot { display: flex; }

  /* HIW — switch to mobile timeline */
  .hiw { padding: 44px 16px; }
  .hiw-h2 { font-size: 1.85rem; }
  .hiw-desktop { display: none; }
  .hiw-mobile  { display: flex; flex-direction: column; gap: 0; }

  /* ── Mobile timeline styles ── */
  .hiw-step {
    display: flex; align-items: flex-start; gap: 16px;
  }

  .hiw-step-left {
    display: flex; flex-direction: column; align-items: center;
    flex-shrink: 0; gap: 0;
  }

  .hiw-bubble {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--g);
    color: var(--g);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; position: relative; z-index: 1;
    box-shadow: 0 0 0 4px var(--g-lt), 0 4px 14px rgba(21,128,61,.12);
  }
  .hiw-bubble--dark {
    border-color: #111;
    color: #111;
    box-shadow: 0 0 0 4px rgba(0,0,0,.04), 0 4px 14px rgba(0,0,0,.08);
  }

  .hiw-line {
    width: 2px; flex: 1; min-height: 48px;
    background: linear-gradient(to bottom, var(--g-mid), var(--line));
    border-radius: 2px;
  }

  .hiw-step-body {
    flex: 1;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 18px;
    padding: 20px 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04), 0 8px 20px rgba(0,0,0,.05);
    transition: border-color 200ms;
  }
  .hiw-step-body:hover { border-color: var(--g-mid); }
  .hiw-step-body--mid { background: var(--g-lt); border-color: var(--g-mid); }

  .hiw-step-body h3 { font-size: 1.05rem; font-weight: 800; color: var(--ink); margin-bottom: 7px; line-height: 1.3; }
  .hiw-step-body p  { font-size: 0.88rem; color: var(--ink3); line-height: 1.62; }

  .hiw-step--last .hiw-line { display: none; }
  .hiw-step--last .hiw-step-body { margin-bottom: 0; }

  /* Footer */
  .footer-in { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Modals */
  .modal-btns { grid-template-columns: 1fr; }
  .modal-box  { border-radius: 22px; }
  .modal-top-band { padding: 26px 20px 22px; }
  .modal-body { padding: 22px 18px; }
}

@media (max-width: 400px) {
  .headline { font-size: 2.2rem; }
  .nav-cta  { font-size: 0.76rem; padding: 7px 13px; }
  .form-card { padding: 18px 14px; }
  .hiw-step-body { padding: 16px 14px; }
}

/* ── Success Modal Upgraded ── */
.success-modal-box {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.success-modal-content {
  padding: 40px 32px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.success-ring-wrap {
  position: relative;
  width: 72px; height: 72px;
  margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center;
}
.success-ring-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(21,128,61,0.06);
  border: 2px dashed rgba(21,128,61,0.18);
  animation: spin-ring 12s linear infinite;
}
@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.success-ring-icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--g-lt);
  border: 2.5px solid var(--g-mid);
  color: var(--g);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(21,128,61,0.15);
  animation: scale-in-check .32s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes scale-in-check {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.success-desc {
  font-size: 0.92rem;
  color: var(--ink3);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 350px;
}

/* Steps list */
.success-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 28px;
  text-align: left;
}
.success-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.step-bullet {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--g-mid);
  color: var(--g-dk);
  font-size: 0.72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.step-text {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink2);
  line-height: 1.45;
}

.success-modal-btns {
  width: 100%;
}

