:root {
  --green: #137a57;
  --green-dark: #0b3023;
  --yellow: #f5c342;
  --ink: #172820;
  --muted: #5f6e66;
  --light: #f5f7f6;
  --mint: #edf7f2;
  --border: #e3eae6;
  --shadow: 0 8px 24px rgba(17, 45, 32, 0.07);
  --radius: 16px;
    --x5-ink: #102c22;
  --five-x-green: #087653;
  --five-x-green-dark: #075b42;
  --five-x-green-soft: #eaf6f0;
  --five-x-yellow: #f4c84a;
  --five-x-ink: #17352d;
  --five-x-muted: #687b74;
  --five-x-border: #e5eee9;
  --five-x-card-radius: 18px;
  --five-x-card-shadow: 0 10px 30px rgba(19, 59, 45, .07);
  --five-x-card-shadow-hover: 0 16px 38px rgba(19, 59, 45, .12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
      color: var(--x5-ink);
  text-rendering: optimizeLegibility;
}


.container {
  width: 100%;
  max-width: 1140px;
  padding-right: 20px;
  padding-left: 20px;
}

section[id],
header[id],
footer[id] {
  scroll-margin-top: 76px;
}

/* Navigation */
.navbar {
  min-height: 68px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(16, 40, 28, 0.04);
}

.navbar-brand {
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.navbar-brand img {
  width: 120px;
}

.navbar-brand span {
  color: var(--green);
}

.navbar .nav-link {
  padding: 10px 12px;
  color: #34443d;
  /* font-size: 0.84rem; */
  font-weight: 600;
  transition: color 180ms ease;
}
.dropdown-item.active, .dropdown-item:active{
        color: #137a57;
    text-decoration: none;
    background-color: transparent;
}
.nav-item{
    margin: auto 0;
}

.nav-dropdown {
    padding: 10px 12px;
    color: #34443d;
    /* font-size: 0.84rem; */
    font-weight: 600;
    transition: color 180ms ease;
    text-decoration: none;
    top: 0;
}


.navbar .nav-link:hover {
  color: var(--green);
}

/* Buttons */
/* Buttons */
.btn {
  position: relative;
  overflow: hidden;
  min-height: 42px;
  padding: 9px 17px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease,
    background-color 180ms ease, border-color 180ms ease;
}

.btn::before {
  position: absolute;
  top: 0;
  left: -75%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    110deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  content: "";
  transform: skewX(-20deg);
  transition: left 500ms ease;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(17, 45, 32, 0.12);
}

.btn:hover::before {
  left: 130%;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn i,
.btn svg {
  transition: transform 180ms ease;
}

.btn:hover i,
.btn:hover svg {
  transform: translateX(3px);
}

.btn-green {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.btn-green:hover {
  color: #fff;
  background: #106b4c;
  border-color: #106b4c;
}

.btn-dark-green {
  color: #fff;
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.btn-dark-green:hover {
  color: #fff;
  background: #164633;
  border-color: #164633;
}

.btn-yellow {
  color: #172820;
  background: var(--yellow);
  border-color: var(--yellow);
}

.btn-yellow:hover {
  color: #172820;
  background: #eab72f;
  border-color: #eab72f;
}

.btn:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(19, 122, 87, 0.35);
  outline-offset: 3px;
}


.btn:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(19, 122, 87, 0.35);
  outline-offset: 3px;
}

/* Hero */
.hero {
  padding: clamp(54px, 7vw, 88px) 0 clamp(72px, 9vw, 106px);
  background: linear-gradient(120deg, #f1f8f4, #eaf6f0);
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(2.6rem, 5.5vw, 2.1rem);
  font-weight: 750;
  /* letter-spacing: -2.5px; */
  line-height: 1.08;
}

.hero h1 span {
  color: var(--green);
}

.hero-copy {
  max-width: 490px;
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-art {
  display: block;
  width: min(100%, 430px);
  margin: 0 auto;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  color: #3e5048;
  font-size: 0.82rem;
  font-weight: 600;
}

.trust-row i {
  margin-right: 5px;
  color: var(--green);
}

/* Benefits */
.benefit-wrap {
  position: relative;
  z-index: 2;
  margin-top: -42px;
}

.benefit-strip {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  height: 100%;
}

.small-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--green);
  background: var(--mint);
  font-size: 1.25rem;
}
.purpose-icon {
  display: inline-block;
  animation: icon-bob 2.8s ease-in-out infinite;
}

.purpose-card:nth-child(2) .purpose-icon { animation-delay: 0.25s; }
.purpose-card:nth-child(3) .purpose-icon { animation-delay: 0.5s; }
.purpose-card:nth-child(4) .purpose-icon { animation-delay: 0.75s; }

@keyframes icon-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .purpose-icon {
    animation: none;
  }
}


.benefit-item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.86rem;
}

.benefit-item small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Shared sections and headings */
.section {
  padding: clamp(30px, 7vw, 60px) 0;
}

.section-gray {
  background: var(--light);

}

.section-dark {
  color: #fff;
  background: var(--green-dark);
}

.title {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 3.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -1.2px;
  line-height: 1.16;
}

.section-copy {
  max-width: 470px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}
.step-card:hover .step-number-1 {
    color: #f5c342 !important;
}

.section-dark .section-copy {
  color: #c4d1ca;
}

.section-dark .eyebrow {
  color: #66d8a9;
}

/* Eligibility cards */
.criteria-card {
  height: 100%;
  min-height: 126px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.criteria-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.criteria-card .small-icon {
  margin-bottom: 12px;
}

.criteria-card small {
  display: block;
  color: var(--muted);
}

.criteria-card strong {
  display: block;
  margin-top: 5px;
  font-size: 1rem;
  line-height: 1.4;
}

/* Four steps */
.step-card {
  height: 100%;
  transition: transform 180ms ease;
}

.step-card:hover {
  transform: translateY(-3px);
}

.step-icon-1 {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  color: var(--green-dark);
  background: #32d59b;
  font-size: 1.1rem;
  transition: background-color 180ms ease, color 180ms ease;
}

/* Yellow is reserved for the step-icon hover accent */
.step-card:hover .step-icon-1 {
  color: #172820;
  background: var(--yellow);
}

.step-number-1 {
  display: block;
  margin-bottom: 8px;
  color: #66d8a9;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

.step-card p {
  margin: 0;
  color: #c4d1ca;
  font-size: 0.8rem;
  line-height: 1.6;
}

/* Loan-purpose cards */
.moment-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 135px;
  padding: 19px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #13352a;
  background: var(--mint);
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.moment-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.moment-card i {
  color: var(--green);
  font-size: 1.45rem;
}

.moment-card.yellow {
  background: #fff6dc;
}

.moment-card.dark {
  color: #fff;
  background: var(--green-dark);
}

.moment-card.dark i {
  color: #66d8a9;
}

/* EMI calculator styles, if you re-enable that section */
.range-line {
  margin-bottom: 22px;
}

.range-line label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.range-line strong {
  color: var(--ink);
}

input[type="range"] {
  accent-color: var(--green);
}

.emi-output {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px;
  border-radius: 14px;
  color: #fff;
  background: var(--green-dark);
}

.emi-output span {
  color: #c8d7cf;
  font-size: 0.82rem;
}

.emi-output strong {
  font-size: 1.35rem;
}

.fine-print {
  color: #77847d;
  font-size: 0.7rem;
  line-height: 1.5;
}

/* Mobile app section */
.app-section {
  overflow: hidden;
  color: #fff;
  background: #101a14;
}

.app-section .section-copy {
  color: #c4d1ca;
}

.app-benefits {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.app-benefits li {
  font-size: 0.9rem;
  font-weight: 600;
}

.app-benefits i {
  margin-right: 8px;
  color: #66d8a9;
}
.app-icon img {
    width: 100%;
    max-width: 150px;
}

.app-phone-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.app-phone-visual img {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(12, 55, 39, .12));
}

@media (max-width: 767px) {
    .app-phone-visual img {
        max-width: 200px;
    }
    .hero-banner{
        flex-direction: column;
    }
    .benefit-strip{
        margin-top:-30px
    }
}
/* Partners and assurance */
.partner-card {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  min-height: 82px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 180ms ease, box-shadow 180ms ease;
  flex-direction: column;
}


.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.partner-card strong {
  display: block;
  font-size: 0.8rem;
}

.partner-card small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.assurance-panel {
  margin-top: 24px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid #e2eee7;
  border-radius: 18px;
  background: var(--mint);
}

.assurance-item h3 {
  margin: 10px 0 5px;
  font-size: 0.9rem;
  font-weight: 750;
}

.assurance-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

/* FAQs */
.accordion-item {
    margin: 5px;
  overflow: hidden;
  border: 1px solid var(--border) !important;
  border-radius: 13px !important;
  background: #fff;
}

.accordion-button {
  padding: 17px 20px;
  font-size: 0.88rem;
  font-weight: 700;
}

.accordion-button:not(.collapsed) {
  color: var(--green-dark);
  background: #fff;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-body {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.65;
}

/* Call to action */
.cta-box {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 42px);
  border-radius: 20px;
  background: var(--yellow);
}

.cta-box::after {
  position: absolute;
  top: -75px;
  right: -20px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  content: "";
}

.cta-box h2 {
  max-width: 530px;
  font-size: 1.8rem;
  font-weight: 800;
}

.cta-box p {
  margin-bottom: 0;
  color: #3c351c;
}

.cta-action {
  position: relative;
  z-index: 1;
}

/* Footer */
footer {
  padding: 55px 0 18px;
  color: #c2d0c8;
  background: var(--green-dark);
  font-size: 0.78rem;
  line-height: 1.7;
}
a.footer-brand img {
    width: 100%;
    height: auto;
    max-width: 120px;
}

footer h2 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}

footer h2 span {
  color: #66d8a9;
}

footer h3 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 750;
}

footer a {
  display: block;
  margin: 8px 0;
  color: #c2d0c8;
  text-decoration: none;
  transition: color 180ms ease;
}

footer a:hover {
  color: #66d8a9;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #244136;
}

@media (max-width: 575.98px) {
  footer {
    padding-top: 42px;
  }
}
.icon-bob {
  animation: icon-bob 2.2s ease-in-out infinite;
}

@keyframes icon-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .icon-bob {
    animation: none;
  }
}

section.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 800ms cubic-bezier(.22, 1, .36, 1),
    transform 800ms cubic-bezier(.22, 1, .36, 1);
}

section.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional: gently stagger direct children inside each section */
section.reveal > * {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 650ms cubic-bezier(.22, 1, .36, 1),
    transform 650ms cubic-bezier(.22, 1, .36, 1);
}

section.reveal.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

section.reveal.is-visible > *:nth-child(2) { transition-delay: 100ms; }
section.reveal.is-visible > *:nth-child(3) { transition-delay: 180ms; }
section.reveal.is-visible > *:nth-child(4) { transition-delay: 260ms; }

@media (prefers-reduced-motion: reduce) {
  section.reveal,
  section.reveal > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


::selection { background: rgba(21, 155, 104, .16); color: var(--x5-ink); }

a, button, .btn, .nav-link {
  transition: color .22s ease, background-color .22s ease,
              border-color .22s ease, box-shadow .22s ease,
              transform .22s ease;
}

/* Header: understated fintech polish */
.navbar {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.navbar.sticky-top { z-index: 1030; }
.navbar .nav-link {
  position: relative;
  font-weight: 600;
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: .5rem;
  right: .5rem;
  bottom: .2rem;
  height: 2px;
  border-radius: 2px;
  background: #137a57;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.navbar .nav-link:hover::after,
.navbar .nav-link:focus-visible::after { transform: scaleX(1); }
.navbar .btn { border-radius: 7px; font-weight: 700; }

/* Hero: preserve composition; add a little depth to the existing SVG */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  right: -170px;
  top: -210px;
  border-radius: 50%;
  background: rgba(36, 183, 126, .055);
  z-index: -1;
}
.hero .eyebrow { letter-spacing: .13em; }
.hero h1, .hero .title { letter-spacing: -.045em; }
.hero .hero-art {
  filter: drop-shadow(0 16px 22px rgba(16, 44, 34, .07));
  animation: x5-hero-drift 5.5s ease-in-out infinite;
}
.hero .hero-art circle[fill="#f9c640"] {
  transform-box: fill-box;
  transform-origin: center;
  animation: x5-orbit-soft 4.8s ease-in-out infinite;
}
.hero .hero-art circle[fill="#31d295"] {
  transform-box: fill-box;
  transform-origin: center;
  animation: x5-status-pulse 3.2s ease-in-out infinite;
}

/* CTA buttons: crisp feedback, no constant shimmer */
.btn-green, .btn-dark-green, .btn-yellow,
.hero .btn, .cta-box .btn {
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(16, 44, 34, .07);
}
.btn-green:hover, .btn-dark-green:hover, .btn-yellow:hover,
.hero .btn:hover, .cta-box .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(16, 44, 34, .13);
}
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(21, 155, 104, .28);
  outline-offset: 3px;
}

/* Floating benefits strip */
.benefit-wrap { position: relative; z-index: 2; }
.benefit-strip {
  border: 1px solid rgba(229, 238, 232, .9);
  box-shadow: var(--x5-shadow);
}
.benefit-item {
  transition: transform .25s ease;
  cursor: pointer;
}
.benefit-item:hover { transform: translateY(-2px)!important;} 
.benefit-item .small-icon {
  animation: x5-icon-lift 4.8s ease-in-out infinite;
}
.benefit-item:nth-child(2) .small-icon { animation-delay: .5s; }
.benefit-item:nth-child(3) .small-icon { animation-delay: 1s; }
.benefit-item:nth-child(4) .small-icon { animation-delay: 1.5s; }

/* Eligibility cards */
.criteria-card {
  border: 1px solid var(--x5-line);
  box-shadow: 0 3px 12px rgba(16, 44, 34, .025);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.criteria-card:hover {
  transform: translateY(-4px);
  border-color: rgba(21, 155, 104, .3);
  box-shadow: 0 12px 24px rgba(16, 44, 34, .08);
}
.criteria-card .small-icon {
  transition: transform .25s ease, background-color .25s ease;
}
.criteria-card:hover .small-icon { transform: scale(1.06); }

/* How it works: keep dark section, refine step icon movement */
.section-dark .step-card { transition: transform .25s ease; }
.section-dark .step-card:hover { transform: translateY(-4px); }
.step-card .step-icon-1 {
  animation: x5-step-float 5.2s ease-in-out infinite;
}
.step-card:nth-child(2) .step-icon-1 { animation-delay: .45s; }
.step-card:nth-child(3) .step-icon-1 { animation-delay: .9s; }
.step-card:nth-child(4) .step-icon-1 { animation-delay: 1.35s; }

/* Loan-purpose tiles */
.moment-card {
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.moment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 22px rgba(16, 44, 34, .09);
}
.moment-card .purpose-icon {
  display: inline-block;
  transition: transform .25s ease;
}
.moment-card:hover .purpose-icon { transform: translateY(-2px) scale(1.08); }

/* App phone: a very slow, low-distance float */
.app-section .phone {
  animation: x5-phone-float 6.8s ease-in-out infinite;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .18);
}
.app-section .phone-loan { overflow: hidden; }
.app-section .phone-loan .progress-bar {
  position: relative;
}
.app-section .phone-loan .progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35), transparent 70%);
  transform: translateX(-110%);
  animation: x5-progress-glint 5s ease-in-out infinite;
}

/* Lending partners and assurance */
.partner-card, .assurance-item {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(16, 44, 34, .07);
  border-color: rgba(21, 155, 104, .24);
}
.assurance-panel { border: 1px solid rgba(21, 155, 104, .08); }
.assurance-item .small-icon { transition: transform .25s ease; }
.assurance-item:hover .small-icon { transform: translateY(-2px); }

/* FAQ and CTA */
.accordion-item {
  border-color: var(--x5-line);
  overflow: hidden;
  transition: box-shadow .22s ease, border-color .22s ease;
}
/* .accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: rgba(21, 155, 104, .3);
  box-shadow: 0 5px 16px rgba(16, 44, 34, .045);
} */
.accordion-button { font-weight: 650; }
.accordion-button:not(.collapsed) { color: var(--x5-ink); }
.cta-box {
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(16, 44, 34, .07);
}
.cta-box::after {
  content: "";
  position: absolute;
  top: -45%;
  right: -5%;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  pointer-events: none;
}

/* Existing data-motion attributes: use a single clean reveal style.
   JS should add .in-view when an element enters the viewport. */
html.motion-ready [data-motion] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
html.motion-ready [data-motion].in-view {
  opacity: 1;
  transform: translateY(0);
}
html.motion-ready [data-motion="slide-left"] { transform: translateX(24px); }
html.motion-ready [data-motion="slide-right"] { transform: translateX(-24px); }
html.motion-ready [data-motion="zoom"] { transform: translateY(16px) scale(.985); }
html.motion-ready [data-motion="slide-left"].in-view,
html.motion-ready [data-motion="slide-right"].in-view,
html.motion-ready [data-motion="zoom"].in-view {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Restrained stagger on cards when their parent section is revealed */
[data-motion].in-view .criteria-card,
[data-motion].in-view .step-card,
[data-motion].in-view .moment-card,
[data-motion].in-view .partner-card,
[data-motion].in-view .benefit-item {
  animation: x5-card-arrive .55s both;
}
[data-motion].in-view .criteria-card:nth-child(2),
[data-motion].in-view .step-card:nth-child(2),
[data-motion].in-view .moment-card:nth-child(2),
[data-motion].in-view .partner-card:nth-child(2) { animation-delay: .08s; }
[data-motion].in-view .criteria-card:nth-child(3),
[data-motion].in-view .step-card:nth-child(3),
[data-motion].in-view .moment-card:nth-child(3),
[data-motion].in-view .partner-card:nth-child(3) { animation-delay: .16s; }
[data-motion].in-view .criteria-card:nth-child(4),
[data-motion].in-view .step-card:nth-child(4),
[data-motion].in-view .moment-card:nth-child(4) { animation-delay: .24s; }

/* Keyframes — low amplitude, long durations */
@keyframes x5-hero-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes x5-orbit-soft {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.05); }
}
@keyframes x5-status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .78; }
}
@keyframes x5-icon-lift {
  0%, 88%, 100% { transform: translateY(0); }
  94% { transform: translateY(-3px); }
}
@keyframes x5-step-float {
  0%, 90%, 100% { transform: translateY(0); }
  95% { transform: translateY(-4px); }
}
@keyframes x5-phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes x5-progress-glint {
  0%, 72% { transform: translateX(-110%); }
  100% { transform: translateX(110%); }
}
@keyframes x5-card-arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive refinement */
@media (max-width: 767.98px) {
  .hero .hero-art { animation-duration: 7.5s; }
  .criteria-card:hover,
  .section-dark .step-card:hover,
  .moment-card:hover,
  .partner-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  html.motion-ready [data-motion] {
    opacity: 1;
    transform: none;
  }
}


.hero {
  padding: clamp(56px, 7vw, 92px) 0 clamp(46px, 6vw, 76px);
  overflow: hidden;
}

.hero .row {
  --bs-gutter-x: 2.5rem;
}

.hero h1 {
  max-width: 620px;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.hero .hero-copy {
  max-width: 540px;
  color: var(--five-x-muted);
  line-height: 1.8;
}

.hero .eyebrow,
.section .eyebrow {
  letter-spacing: .11em;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .col-lg-6:last-child {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero .col-lg-6:last-child > img {
  display: block;
  width: 100%;
  max-width: 570px;
  max-height: 480px;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  filter: drop-shadow(0 18px 24px rgba(17, 65, 47, .08));
}

/* Benefit strip */
.benefit-wrap {
  position: relative;
  z-index: 2;
  margin-top: -18px;
}

.benefit-strip {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--five-x-border);
  border-radius: 20px;
  box-shadow: var(--five-x-card-shadow);
}



.small-icon {
  display: inline-flex;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--five-x-green-soft);
  color: var(--five-x-green);
  font-size: 1.15rem;
}

/* Eligibility cards */
#eligibility .criteria-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 164px;
  height: 100%;
  padding: 23px 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--five-x-border);
  border-radius: var(--five-x-card-radius);
  box-shadow: 0 5px 18px rgba(19, 59, 45, .045);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

#eligibility .criteria-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -42px;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: var(--five-x-green-soft);
  opacity: .65;
  pointer-events: none;
}

#eligibility .criteria-card .small-icon {
  margin-bottom: 18px;
}

#eligibility .criteria-card small {
  margin-bottom: 6px;
  color: var(--five-x-muted);
  font-size: .78rem;
  font-weight: 600;
}

#eligibility .criteria-card strong {
  color: var(--five-x-ink);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
  z-index: 9;
}

#eligibility .criteria-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 118, 83, .24);
  box-shadow: var(--five-x-card-shadow-hover);
}

/* Four-step process */
#how-it-works .step-card {
  position: relative;
  height: 100%;
  min-height: 230px;
  padding: 25px 22px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--five-x-card-radius);
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}

#how-it-works .step-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.085);
  border-color: rgba(244,200,74,.48);
}

#how-it-works .step-icon-1 {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 14px;
  background: rgba(244,200,74,.14);
  color: var(--five-x-yellow);
  font-size: 1.25rem;
}

#how-it-works .step-number-1 {
  display: block;
  margin-bottom: 9px;
  color: var(--five-x-yellow);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
}

#how-it-works .step-card h3 {
  margin-bottom: 9px;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.4;
}

#how-it-works .step-card p {
  margin-bottom: 0;
  color: rgba(255,255,255,.72);
  font-size: .86rem;
  line-height: 1.7;
}

/* Shared card language */
.criteria-card,
.moment-card,
.partner-card,
.assurance-panel,
.accordion-item,
.cta-box,
.phone {
  border-radius: var(--five-x-card-radius);
}

.moment-card,
.partner-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.moment-card:hover,
.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--five-x-card-shadow-hover);
}

/* Mobile app as a product showcase */

/* Refined hover and focus states */
.btn {
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(244,200,74,.8);
  outline-offset: 3px;
}

/* Subtle entrance motion — uses the existing data-motion / in-view markup */
@media (prefers-reduced-motion: no-preference) {
  html.motion-ready [data-motion] {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1);
  }

  html.motion-ready [data-motion].in-view {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Responsive refinements */
@media (max-width: 991.98px) {
  .hero {
    padding-top: 52px;
  }

  .hero .col-lg-6:last-child > img {
    max-width: 520px;
    max-height: 390px;
  }

  .benefit-wrap {
    margin-top: 0;
  }

  .app-section .phone {
    margin-top: 18px;
  }
}

@media (max-width: 575.98px) {
  .hero {
    padding: 42px 0 36px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10vw, 2.8rem);
  }

  .hero .col-lg-6:last-child > img {
    max-height: 310px;
  }

  .benefit-strip {
    padding: 16px 12px;
    border-radius: 16px;
  }

  .benefit-item {
    align-items: flex-start;
    gap: 9px;
    padding: 5px 2px;
  }

  .benefit-item .small-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 1rem;
  }

  .benefit-item strong {
    font-size: .78rem;
  }

  .benefit-item small {
    font-size: .69rem;
  }

  #eligibility .criteria-card {
    min-height: 150px;
    padding: 17px 15px;
  }

  #eligibility .criteria-card strong {
    font-size: .96rem;
  }

  #how-it-works .step-card {
    min-height: 215px;
    padding: 19px 15px;
  }

  #how-it-works .step-card h3 {
    font-size: .92rem;
  }

  #how-it-works .step-card p {
    font-size: .79rem;
  }

  .app-section .phone {
    width: min(100%, 285px);
    min-height: 410px;
  }
}


.about-banner {
  min-height: 210px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(15, 35, 27, 0.18), rgba(15, 35, 27, 0.18)),
    url("../img/about-banner.jpg") center 48% / cover no-repeat;
  border-radius: 0 0 12px 12px;
}

.about-banner h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-content-section h2 {
  color: #172820;
  font-size: 1.75rem;
  font-weight: 700;
}

.about-content-section h2 span {
  color: #137a57;
}

.about-copy p {
  margin: 0 0 2rem;
  color: #5f6e66;
  font-size: 0.95rem;
  line-height: 1.8;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 576px) {
  .about-banner {
    min-height: 160px;
  }

  .about-copy p {
    margin-bottom: 1.4rem;
    font-size: 0.9rem;
  }
}
.about-banner {
  min-height: 300px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(11, 48, 35, 0.82), rgba(11, 48, 35, 0.28)),
    url("../img/about-banner.jpg") center / cover no-repeat;
}

.about-banner-label {
  margin-bottom: 0.75rem;
  color: #d9f3e7;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-banner h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.about-content-section {
  background: #fff;
}

.about-copy {
  max-width: 900px;
  color: #5f6e66;
  line-height: 1.8;
}

.about-copy p {
  margin-bottom: 1.5rem;
}

.about-copy .about-closing {
  margin-bottom: 0;
  color: #137a57;
  font-weight: 700;
}

@media (max-width: 576px) {
  .about-banner {
    min-height: 240px;
  }
}
