:root {
  --navy: #003767;
  --navy-dark: #002B4E;
  --blue-accent: #0062E1;
  --label: #16324A;
  --green-1: #82C220;
  --green-2: #69A211;
  --green-text: #5F9C12;
  --green-tint: rgba(114,181,27,.15);
  --text-body: #45556C;
  --text-footer: #62748E;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-soft: #F8F9FF;
  --bg-inset: #EFF5FA;
  --border: #E2E8F0;
  --cta-gradient: linear-gradient(131deg, #82C220 0%, #69A211 100%);
  --cta-shadow: 0 5px 14px rgba(105,162,17,.14);
  --cta-shadow-hover: 0 12px 28px rgba(105,162,17,.30);
  --float-shadow: 0 18px 40px -12px rgba(0, 43, 78, .22), 0 2px 6px rgba(0, 43, 78, .06);
  --font: 'Poppins', ui-sans-serif, system-ui, sans-serif;
}

body { font-family: var(--font); color: var(--text-body); background: var(--bg); }
h1, h2, h3 { color: var(--navy); }
a:focus-visible { outline: 3px solid var(--blue-accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--cta-gradient);
  color: #fff;
  box-shadow: var(--cta-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary svg { transition: transform .18s ease; }
.btn-primary:hover { box-shadow: var(--cta-shadow-hover); transform: translateY(-1px); }
.btn-primary:hover svg { transform: translateX(2px); }
.btn-primary:active { transform: none; box-shadow: var(--cta-shadow); }
.btn-primary:focus-visible { outline: 3px solid var(--blue-accent); outline-offset: 3px; border-radius: 12px; }

/* Breathing scale + soft glow + ring radiating outward, all on one cycle */
.btn-hero {
  box-shadow: 0 10px 24px -6px rgba(105,162,17,.45);
  animation: cta-breathe 2.6s ease-in-out infinite;
}
/* Mobile: keep the label on one line; text scales with the screen width.
   Two classes so this beats the Tailwind utilities on the element. */
@media (max-width: 639px) {
  .btn-primary.btn-hero {
    gap: 8px;
    padding-left: 16px;
    padding-right: 16px;
    font-size: clamp(14px, 4.4vw, 17px);
    white-space: nowrap;
  }
  .btn-primary.btn-hero .btn-arrow { width: 26px; height: 26px; }
}

.btn-hero:hover,
.btn-hero:focus-visible {
  animation: none;
  box-shadow: 0 14px 32px -6px rgba(105,162,17,.42), 0 0 24px 3px rgba(130,194,32,.18);
}

@keyframes cta-breathe {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 24px -6px rgba(105,162,17,.35), 0 0 0 0 rgba(130,194,32,.22), 0 0 14px 0 rgba(130,194,32,.08);
  }
  50% {
    transform: scale(1.035);
    box-shadow: 0 12px 28px -6px rgba(105,162,17,.38), 0 0 0 10px rgba(130,194,32,.06), 0 0 28px 4px rgba(130,194,32,.18);
  }
  80% {
    box-shadow: 0 10px 24px -6px rgba(105,162,17,.35), 0 0 0 18px rgba(130,194,32,0), 0 0 18px 2px rgba(130,194,32,.10);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 10px 24px -6px rgba(105,162,17,.35), 0 0 0 0 rgba(130,194,32,0), 0 0 14px 0 rgba(130,194,32,.08);
  }
}
.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: rgba(255,255,255,.2);
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%); }

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(620px 480px at 82% 35%, rgba(0, 98, 225, .09), transparent 70%),
    radial-gradient(520px 380px at 5% 95%, rgba(130, 194, 32, .10), transparent 70%);
}
/* Faint grid that fades out toward the edges */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 55, 103, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 55, 103, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.eyebrow { color: var(--text-body); font-weight: 500; }
.eyebrow-lead {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-text);
  font-weight: 600;
}
.eyebrow-sep {
  width: 1px;
  height: 14px;
  background: #C5D0DC;
}

.hero-amount {
  position: relative;
  display: inline-block;
  color: var(--blue-accent);
  white-space: nowrap;
}
.hero-amount svg {
  position: absolute;
  left: 0;
  bottom: -0.14em;
  width: 100%;
  height: 0.26em;
}

.check-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--label);
  font-size: 15px;
  font-weight: 500;
}
.check-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background: var(--green-tint);
  color: var(--green-text);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid #DCE2EA;
  border-radius: 6px;
  background: #fff;
  color: #4A5568;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.trust-badge svg { color: #5A6578; }

/* ---------- Hero photo ---------- */
.hero-media { padding: 0 8px 8px 0; }
.hero-media-back {
  position: absolute;
  inset: 22px -14px -14px 22px;
  border-radius: 32px;
  background: linear-gradient(150deg, #0062E1 0%, #003767 100%);
  opacity: .12;
}
.hero-media-dots {
  position: absolute;
  top: -22px;
  left: -26px;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(rgba(0, 55, 103, .28) 1.6px, transparent 1.6px);
  background-size: 14px 14px;
}
.hero-photo {
  background: var(--bg-inset);
  box-shadow: var(--float-shadow);
}

/* ---------- Everyday use cases ---------- */
.needs { background: var(--bg-alt); }
.section-label { color: var(--green-text); }
.section-label--lined {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-label--lined::before,
.section-label--lined::after {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--cta-gradient);
}

.need-photo {
  display: none;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  background: var(--bg-inset);
  box-shadow: 0 14px 32px -16px rgba(0, 43, 78, .28);
}
@media (min-width: 640px) {
  .need-photo { display: block; margin-bottom: 22px; }
}

/* Number sits above the title so descriptions get the full item width */
.need-body {
  position: relative;
  padding: 20px 0 22px;
  border-top: 1px solid var(--border);
}
.need-body::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--cta-gradient);
}
.need-num {
  display: block;
  color: rgba(0, 55, 103, .22);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.need-title {
  margin-top: 12px;
  color: var(--navy);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}
.need-desc {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.6;
}
@media (min-width: 640px) {
  .need-num { font-size: 38px; }
  .need-title { font-size: 20px; }
  .need-desc { font-size: 16px; }
}

/* ---------- FastPayly offer overview ---------- */
.offer-panel {
  background: var(--navy-dark);
  color: #fff;
}
.offer-panel h2,
.offer-panel h3 { color: inherit; }
.offer-panel .btn-primary:focus-visible { outline-color: #fff; }

.offer-arcs {
  position: absolute;
  top: 0;
  right: 0;
  width: 420px;
  height: 420px;
  color: rgba(255, 255, 255, .06);
  pointer-events: none;
}

/* Brighter green so the label stays readable on navy */
.offer-label { color: var(--green-1); }

.offer-lead { color: rgba(255, 255, 255, .82); }

.offer-benefit {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}
.offer-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(130, 194, 32, .16);
  color: var(--green-1);
}
.offer-benefit-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.offer-benefit-text {
  margin-top: 4px;
  color: rgba(255, 255, 255, .75);
  font-size: 15px;
  line-height: 1.6;
}
@media (min-width: 640px) {
  .offer-benefit-title { font-size: 19px; }
  .offer-benefit-text { font-size: 16px; }
}

.offer-note { color: rgba(255, 255, 255, .68); }

/* Light inset */
.offer-inset {
  background: var(--bg-inset);
  color: var(--text-body);
}
.offer-inset h3 { color: var(--navy); }
.offer-inset-media { min-height: 220px; }

.offer-step {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding-bottom: 24px;
  font-size: 16px;
  line-height: 1.6;
}
.offer-step:last-child { padding-bottom: 0; }
/* Connector line between step numbers */
.offer-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 4px;
  left: 17px;
  width: 2px;
  border-radius: 2px;
  background: #CBD8E4;
}
.offer-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.offer-step p { padding-top: 5px; }

/* ---------- Reviews ---------- */
.reviews {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Collapsed: first row only (3 cards on mobile, 4 from tablet up = 2 rows of 2 / 1 row of 4) */
.reviews-grid.is-collapsed .review-card:nth-child(n+4) { display: none; }
@media (min-width: 640px) {
  .reviews-grid.is-collapsed .review-card:nth-child(4) { display: flex; }
}
.reviews-grid:not(.is-collapsed) .review-card:nth-child(n+4) { animation: faq-in .3s ease both; }

.reviews-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid var(--navy);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  transition: background-color .18s ease, color .18s ease;
}
.reviews-toggle[hidden] { display: none; }
.reviews-toggle:hover { background: var(--navy); color: #fff; }
.reviews-toggle:focus-visible { outline: 3px solid var(--blue-accent); outline-offset: 3px; }
.reviews-toggle svg { transition: transform .2s ease; }
.reviews-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  text-align: left;
  transition: border-color .2s ease;
}
.review-card:hover { border-color: #CBD5E1; }
@media (min-width: 1024px) {
  .review-card { padding: 20px; }
}

.review-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
@media (min-width: 1024px) {
  .review-head { gap: 12px; margin-bottom: 16px; }
}
.review-avatar {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: var(--bg-inset);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}
@media (min-width: 1024px) {
  .review-avatar { width: 48px; height: 48px; font-size: 15px; }
}
.review-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.review-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  border: 1px solid #fff;
  border-radius: 9999px;
  background: #72B519;
}
.review-name {
  overflow: hidden;
  color: var(--navy-dark);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.review-purpose {
  overflow: hidden;
  color: #90A1B9;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.review-amount {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
}
.review-amount--green { background: rgba(114, 181, 25, .15); color: var(--green-text); }
.review-amount--blue { background: #EFF6FF; color: #0058A8; }
@media (min-width: 1024px) {
  .review-name { font-size: 14px; }
  .review-purpose { font-size: 12px; }
  .review-amount { font-size: 11px; }
}

.review-stars {
  margin-bottom: 6px;
  color: #FBBF24;
  font-size: 12px;
  letter-spacing: 2px;
}
.review-quote {
  color: #475569;
  font-size: 11px;
  font-style: italic;
  line-height: 1.65;
}
@media (min-width: 1024px) {
  .review-quote { font-size: 14px; }
}
.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #F1F5F9;
  color: #90A1B9;
  font-size: 10px;
}
@media (min-width: 1024px) {
  .review-meta { margin-top: 14px; padding-top: 10px; font-size: 11px; }
}

/* ---------- FAQ ---------- */
/* Soft tiles instead of divider lines */
.faq-item {
  border-radius: 16px;
  background: var(--bg-alt);
  transition: background-color .2s ease;
}
.faq-item[open] { background: var(--bg-inset); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 20px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--blue-accent); }
.faq-q:focus-visible {
  outline: 3px solid var(--blue-accent);
  outline-offset: 3px;
  border-radius: 6px;
}
@media (min-width: 640px) {
  .faq-q { font-size: 18px; padding: 22px 26px; }
}

/* Plus that turns into minus */
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: 1.5px solid var(--border);
  transition: background-color .2s ease, border-color .2s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transform: translate(-50%, -50%);
  transition: transform .2s ease, background-color .2s ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon {
  background: var(--navy);
  border-color: var(--navy);
}
.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-a {
  padding: 0 20px 20px;
  font-size: 15px;
  line-height: 1.7;
}
@media (min-width: 640px) {
  .faq-a { padding: 0 26px 24px; font-size: 16px; }
}
.faq-item[open] .faq-a { animation: faq-in .25s ease both; }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, .72);
}
.site-footer a:focus-visible { outline-color: #fff; }
.footer-brand {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero-logo { width: auto; height: 36px; }
@media (min-width: 1024px) { .hero-logo { height: 44px; } }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(0, 43, 78, .08);
  backdrop-filter: blur(8px);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
}
.sticky-cta.is-visible {
  transform: translateY(0);
  visibility: visible;
  transition: transform .3s ease, visibility 0s;
}
@media (min-width: 640px) {
  .sticky-cta { display: none; }
}

/* Blue logo would vanish on navy; render it white */
.footer-logo {
  display: block;
  width: auto;
  height: 40px;
  filter: brightness(0) invert(1);
}
.footer-heading {
  margin-bottom: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  font-size: 14px;
}
.footer-links a {
  color: rgba(255, 255, 255, .72);
  transition: color .15s ease;
}
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer-disclosures {
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
  line-height: 1.65;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .6);
}

/* ---------- Policy dialog ---------- */
.policy-dialog {
  width: min(880px, calc(100vw - 32px));
  max-width: none;
  height: min(86vh, 900px);
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: var(--text-body);
  box-shadow: 0 30px 80px -20px rgba(0, 43, 78, .45);
}
.policy-dialog::backdrop {
  background: rgba(0, 27, 50, .55);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}
.policy-dialog[open] { animation: dialog-in .22s ease both; }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 639px) {
  .policy-dialog { width: 100vw; height: 100dvh; border-radius: 0; }
}

.policy-dialog-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.policy-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.policy-dialog-kicker {
  color: var(--green-text);
  font-size: 13px;
  font-weight: 600;
}
.policy-dialog-title {
  color: var(--navy);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}
.policy-dialog-close {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: var(--bg-alt);
  color: var(--navy);
  transition: background-color .15s ease;
}
.policy-dialog-close:hover { background: var(--bg-inset); }
.policy-dialog-close:focus-visible { outline: 3px solid var(--blue-accent); outline-offset: 2px; }

.policy-dialog-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  overscroll-behavior: contain;
}
@media (min-width: 640px) {
  .policy-dialog-head { padding: 22px 36px; }
  .policy-dialog-body { padding: 28px 36px 36px; }
}

.policy-dialog-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-footer);
  font-size: 13px;
}
@media (min-width: 640px) {
  .policy-dialog-foot { padding: 14px 36px; }
}
.policy-dialog-foot a { color: var(--blue-accent); font-weight: 600; }
.policy-dialog-foot a:hover { text-decoration: underline; }

/* Long-form legal text */
.policy-content { font-size: 15px; line-height: 1.7; }
.policy-content .policy-title { color: var(--navy); font-size: 18px; font-weight: 700; }
.policy-content .policy-date { margin-top: 2px; color: var(--text-footer); font-size: 14px; }
/* Long partner list: compact scroll box so it doesn't swamp the dialog */
.policy-content .policy-partners {
  max-height: 220px;
  overflow-y: auto;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-alt);
  font-size: 13px;
  line-height: 1.7;
}
.policy-content h3 {
  margin-top: 28px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
}
.policy-content p { margin-top: 10px; }
.policy-content ul {
  margin-top: 10px;
  padding-left: 22px;
  list-style: disc;
}
.policy-content li { margin-top: 4px; }
.policy-content li::marker { color: var(--navy); }
.policy-content strong { color: var(--navy); font-weight: 600; }
.policy-content .policy-callout {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 3px solid #F59E0B;
  border-radius: 10px;
  background: #FFFBEB;
  color: #78350F;
  font-size: 14px;
  line-height: 1.65;
}
.policy-content a { color: var(--blue-accent); }
.policy-content a:hover { text-decoration: underline; }

/* Keep the page from scrolling behind an open dialog */
html.has-dialog { overflow: hidden; }

/* ---------- One-time entrance motion ---------- */
.reveal {
  animation: reveal-up .6s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: var(--d, 0ms);
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
