html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: #fbfcff;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ── Brand palette ────────────────────────────────────────────── */
:root {
  --fm-primary: #1b5fae;
  --fm-primary-dark: #123f78;
  --fm-primary-light: #eef4ff;
  --fm-accent: #16a34a;
  --fm-warn: #b45309;
}

/* ── Navbar ───────────────────────────────────────────────────── */
.fm-navbar {
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(27, 95, 174, 0.06);
}

.fm-navbar .navbar-brand {
  font-weight: 800;
  color: var(--fm-primary) !important;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: 4rem 1.5rem 5rem;
  background: linear-gradient(-45deg, #eef4ff, #f5faff, #e7f7ee, #eef4ff);
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-badge {
  display: inline-block;
  background: #fff;
  border: 1px solid rgba(27, 95, 174, 0.15);
  color: var(--fm-primary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.9rem;
  border-radius: 50rem;
  box-shadow: 0 2px 8px rgba(27, 95, 174, 0.08);
}

.hero-float {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.5;
  animation: floaty 6s ease-in-out infinite;
  pointer-events: none;
}

.hero-float.f1 { top: 8%;  left: 6%;  animation-delay: 0s; }
.hero-float.f2 { top: 65%; left: 10%; animation-delay: 1.2s; font-size: 2rem; }
.hero-float.f3 { top: 15%; right: 8%; animation-delay: 0.6s; }
.hero-float.f4 { top: 60%; right: 6%; animation-delay: 1.8s; font-size: 2rem; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(6deg); }
}

.btn-pulse {
  animation: pulseGlow 2.4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(27, 95, 174, 0.35); }
  50%      { box-shadow: 0 0 0 10px rgba(27, 95, 174, 0); }
}

/* ── Section headings ─────────────────────────────────────────── */
.section-eyebrow {
  color: var(--fm-primary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Feature cards ────────────────────────────────────────────── */
.feature-icon {
  font-size: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: var(--fm-primary-light);
}

.feature-card {
  border: 1px solid #eef0f4;
  border-radius: 1rem;
  padding: 1.75rem 1.25rem;
  height: 100%;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1rem 2rem rgba(27, 95, 174, 0.1);
}

/* ── How it works ─────────────────────────────────────────────── */
.step-circle {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--fm-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 6px 16px rgba(27, 95, 174, 0.25);
}

.how-it-works-col {
  position: relative;
}

.how-it-works-col:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.6rem;
  left: 60%;
  width: 80%;
  border-top: 2px dashed #c9d9ee;
  display: none;
}

@media (min-width: 768px) {
  .how-it-works-col:not(:last-child)::after {
    display: block;
  }
}

/* ── Plan cards ───────────────────────────────────────────────── */
.plan-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid #eef0f4;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

.plan-card.free-trial {
  border: 2px solid var(--fm-accent);
}

.plan-card.popular {
  border: 2px solid var(--fm-primary);
  box-shadow: 0 1rem 2rem rgba(27, 95, 174, 0.12);
}

.plan-ribbon {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.8rem;
  border-radius: 50rem;
  white-space: nowrap;
}

.plan-feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  text-align: left;
  font-size: 0.85rem;
  color: #495057;
}

.plan-feature-list li {
  padding: 0.2rem 0;
}

.plan-feature-list li::before {
  content: "✓";
  color: var(--fm-accent);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* ── Step indicator (wizard) ──────────────────────────────────── */
.fm-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.fm-stepper .fm-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #adb5bd;
  font-size: 0.8rem;
  font-weight: 600;
}

.fm-stepper .fm-step .dot {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #e9ecef;
  color: #868e96;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.fm-stepper .fm-step.active .dot,
.fm-stepper .fm-step.done .dot {
  background: var(--fm-primary);
  color: #fff;
}

.fm-stepper .fm-step.active {
  color: var(--fm-primary);
}

.fm-stepper .fm-line {
  width: 1.5rem;
  height: 2px;
  background: #e9ecef;
}

/* ── OTP input ────────────────────────────────────────────────── */
.otp-input {
  letter-spacing: 0.5rem;
  font-size: 1.5rem;
  text-align: center;
}

/* ── Success page ─────────────────────────────────────────────── */
.success-emoji {
  font-size: 4.5rem;
  display: inline-block;
  animation: bounceIn 0.8s ease;
}

@keyframes bounceIn {
  0%   { transform: scale(0.3); opacity: 0; }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

.next-steps-list {
  text-align: left;
  list-style: none;
  padding: 0;
}

.next-steps-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.next-steps-list .num {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--fm-primary-light);
  color: var(--fm-primary);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── FAQ ──────────────────────────────────────────────────────── */
.accordion-button:not(.collapsed) {
  background: var(--fm-primary-light);
  color: var(--fm-primary-dark);
}

/* ── Footer ───────────────────────────────────────────────────── */
.fm-footer {
  background: #10233d;
  color: rgba(255, 255, 255, 0.75);
}

.fm-footer a {
  color: #fff;
  text-decoration: none;
}
