:root {
  --ink: #102017;
  --forest: #153f2a;
  --moss: #526c3d;
  --mint: #c8f06a;
  --aqua: #54d7b6;
  --paper: #f4f8e9;
  --white: #fffffb;
  --muted: rgba(16, 32, 23, 0.62);
  --curve: cubic-bezier(0.32, 0.72, 0, 1);
  font-family: "Plus Jakarta Sans", "Avenir Next", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -6%, rgba(200, 240, 106, 0.56), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(84, 215, 182, 0.34), transparent 30rem),
    linear-gradient(180deg, #fbfff2 0%, #edf7e5 44%, #f8fbf1 100%);
  overflow-x: hidden;
}
body,
main {
  max-width: 100%;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.05;
  background-image: radial-gradient(rgba(16, 32, 23, 0.72) 0.7px, transparent 0.7px);
  background-size: 16px 16px;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 60;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  transition: top 600ms var(--curve);
}
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 30;
  width: min(1180px, calc(100% - 36px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 251, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 80px rgba(21, 63, 42, 0.16), inset 0 1px 1px rgba(255,255,255,0.88);
  backdrop-filter: blur(18px);
}
.brand-card {
  width: 238px;
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 -1px 0 rgba(16, 32, 23, 0.08);
}
.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 2px;
}
.desktop-nav a {
  padding: 13px 16px;
  border-radius: 999px;
  color: rgba(16, 32, 23, 0.66);
  font-size: 13px;
  font-weight: 800;
  transition: transform 650ms var(--curve), background 650ms var(--curve), color 650ms var(--curve);
}
.desktop-nav a:hover { transform: translateY(-1px); background: rgba(21, 63, 42, 0.08); color: var(--forest); }
.header-action,
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 650ms var(--curve), box-shadow 650ms var(--curve);
}
.header-action {
  min-height: 54px;
  padding: 7px 8px 7px 18px;
  background: var(--forest);
  color: var(--white);
}
.header-action span,
.button span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: transform 650ms var(--curve);
}
.header-action span { background: var(--mint); color: var(--ink); }
.header-action:hover,
.button:hover { transform: translateY(-2px); }
.header-action:hover span,
.button:hover span { transform: translate(3px, -1px); }
.menu-button { display: none; }
.mobile-menu { display: none; }

main { overflow-x: hidden; }
.hero,
.cashline-section,
.loopboard-section,
.repay-section,
.apply-section,
.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 54px;
  padding: 128px 0 84px;
}
.hero-copy,
.cash-strip,
.strip-top,
.loop-track,
.strip-bottom,
.panel,
.phone-board,
.apply-shell {
  min-width: 0;
}
.kicker {
  margin: 0;
  color: var(--moss);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin: 0; }
h1 {
  margin-top: 20px;
  max-width: 820px;
  font-size: clamp(56px, 8vw, 108px);
  line-height: 0.9;
  letter-spacing: -0.065em;
  text-wrap: balance;
}
.lead {
  margin-top: 26px;
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.58;
}
.hero-actions { margin-top: 38px; display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  min-height: 58px;
  padding: 8px 9px 8px 22px;
}
.button.primary {
  color: var(--white);
  background: var(--forest);
  box-shadow: 0 26px 70px rgba(21, 63, 42, 0.2);
}
.button.primary span { background: var(--mint); color: var(--ink); }
.button.quiet {
  color: var(--forest);
  background: rgba(255,255,251,0.72);
  border: 1px solid rgba(21,63,42,0.08);
}
.button.quiet span { background: rgba(21,63,42,0.08); }

.cash-strip {
  justify-self: end;
  width: min(590px, 100%);
  padding: 10px;
  border-radius: 42px;
  background: rgba(255,255,251,0.56);
  border: 1px solid rgba(255,255,255,0.88);
  box-shadow: 0 42px 130px rgba(21, 63, 42, 0.18);
}
.strip-top,
.loop-track,
.strip-bottom {
  border-radius: 32px;
  background: var(--white);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.9);
}
.strip-top {
  padding: 30px;
}
.strip-top span,
.strip-bottom span,
.track-step span,
.panel-label,
.phone-row span,
.phone-top span,
.repay-list span {
  color: rgba(16, 32, 23, 0.56);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.strip-top strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.07em;
  overflow-wrap: anywhere;
}
.strip-top strong span {
  display: block;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: none;
}
.strip-top strong span + span::before {
  content: "- ";
}
.loop-track {
  position: relative;
  margin-top: 10px;
  min-height: 260px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 10px;
  padding: 26px;
  overflow: hidden;
}
.loop-track::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--forest), var(--mint), rgba(16,32,23,0.08));
}
.track-step {
  position: relative;
  min-height: 140px;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  border-radius: 28px;
  background: #f3f8e9;
}
.track-step.active { background: var(--forest); color: var(--white); }
.track-step.active span { color: rgba(255,255,251,0.64); }
.track-step strong { font-size: 18px; }
.strip-bottom {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  background: rgba(16,32,23,0.08);
}
.strip-bottom div {
  padding: 24px;
  background: var(--white);
}
.strip-bottom strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.cashline-section,
.loopboard-section,
.repay-section,
.apply-section { padding: 116px 0; }
.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}
h2 {
  margin-top: 14px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.94;
  letter-spacing: -0.06em;
  text-wrap: balance;
}
.cashline-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: 12px;
}
.panel {
  min-height: 300px;
  grid-column: span 4;
  padding: 30px;
  border-radius: 34px;
  background: rgba(255,255,251,0.78);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.9), 0 26px 80px rgba(21, 63, 42, 0.1);
}
.panel.tall {
  grid-column: span 5;
  grid-row: span 2;
  min-height: 612px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(rgba(21,63,42,0.02), rgba(21,63,42,0.08)),
    url("https://picsum.photos/seed/fundloop-ledger/900/1200") center / cover;
}
.panel.tall strong {
  max-width: 460px;
  font-size: clamp(62px, 7vw, 96px);
  line-height: 0.88;
  letter-spacing: -0.08em;
}
.panel p {
  margin-top: 86px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.34;
  letter-spacing: -0.03em;
}
.panel.dark {
  color: var(--white);
  background: var(--forest);
}
.panel.dark .panel-label,
.panel.dark p { color: rgba(255,255,251,0.7); }
.panel.ledger {
  grid-column: span 7;
  display: grid;
  gap: 1px;
  padding: 0;
  overflow: hidden;
  background: rgba(21,63,42,0.1);
}
.panel.ledger .panel-label {
  display: block;
  padding: 26px 28px 0;
  background: var(--white);
}
.panel.ledger div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: var(--white);
}
.panel.ledger strong { font-size: 26px; letter-spacing: -0.04em; }

.loopboard-section {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 74px;
  align-items: center;
}
.loopboard-copy p:last-child {
  margin-top: 26px;
  max-width: 620px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.58;
}
.phone-board {
  padding: 12px;
  border-radius: 48px;
  background: var(--ink);
  box-shadow: 0 42px 130px rgba(16, 32, 23, 0.24);
}
.phone-top,
.phone-row {
  border-radius: 34px;
  background: #f9fff1;
}
.phone-top {
  padding: 30px;
  margin-bottom: 10px;
}
.phone-top strong {
  display: block;
  margin-top: 12px;
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: -0.07em;
}
.meter {
  height: 260px;
  display: grid;
  place-items: end start;
  padding: 24px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(200,240,106,0.08), rgba(84,215,182,0.22)),
    #f9fff1;
}
.meter span {
  display: block;
  width: var(--value);
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--forest), var(--aqua), var(--mint));
}
.phone-row {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
}
.phone-row strong { font-size: 20px; }

.repay-card,
.apply-shell {
  border-radius: 46px;
  padding: 10px;
  background: rgba(255,255,251,0.48);
  border: 1px solid rgba(255,255,255,0.88);
  box-shadow: 0 36px 100px rgba(21,63,42,0.12);
}
.repay-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 12px;
}
.repay-card > div,
.repay-list {
  border-radius: 36px;
  background: var(--white);
  padding: 34px;
}
.repay-list {
  margin: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  counter-reset: repay;
}
.repay-list li {
  counter-increment: repay;
  padding: 24px;
  border-radius: 28px;
  background: #f1f7e8;
}
.repay-list li::before {
  content: counter(repay, decimal-leading-zero);
  display: block;
  margin-bottom: 42px;
  color: var(--forest);
  font-weight: 950;
}
.repay-list strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.apply-shell {
  min-height: 420px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
  padding: 42px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16,32,23,0.88), rgba(16,32,23,0.48)),
    url("https://picsum.photos/seed/green-finance-counter/1600/900") center / cover;
}
.apply-shell h2 { max-width: 760px; }
.apply-shell .kicker { color: var(--mint); }

.footer {
  padding: 40px 0 58px;
  border-top: 1px solid rgba(16,32,23,0.1);
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 28px;
  align-items: center;
  color: var(--muted);
}
.footer img { width: 42px; }
.footer > div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 950;
}
.footer p { max-width: 620px; line-height: 1.55; }
.footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--forest); font-weight: 850; }

.policy-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 132px 0 96px;
}
.policy-hero {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 42px;
  border-radius: 46px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16,32,23,0.9), rgba(16,32,23,0.46)),
    url("https://picsum.photos/seed/fundloop-privacy-office/1600/900") center / cover;
  box-shadow: 0 42px 130px rgba(21,63,42,0.16);
  overflow: hidden;
}
.policy-hero h1 {
  max-width: 920px;
}
.policy-hero .lead {
  color: rgba(255,255,251,0.74);
}
.company-block {
  margin-top: 30px;
  max-width: 760px;
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,251,0.12);
  border: 1px solid rgba(255,255,251,0.16);
  overflow-wrap: anywhere;
}
.policy-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.policy-card {
  padding: 30px;
  border-radius: 30px;
  background: rgba(255,255,251,0.78);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.9), 0 24px 70px rgba(21,63,42,0.08);
}
.policy-card h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}
.policy-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.policy-card p + p { margin-top: 14px; }
.policy-card a { color: var(--forest); font-weight: 900; }
.contact-card {
  color: var(--white);
  background: var(--forest);
}
.contact-card p { color: rgba(255,255,251,0.76); }
.contact-card a { color: var(--mint); }

body:has(.policy-page) {
  background: #fbfff8;
}
body:has(.policy-page)::before {
  display: none;
}
body:has(.policy-page) .site-header {
  position: sticky;
  left: auto;
  transform: none;
  margin: 18px auto 0;
}
body:has(.policy-page) .policy-page {
  width: min(920px, calc(100% - 40px));
  max-width: 920px;
  padding-top: 78px;
  overflow: hidden;
}
body:has(.policy-page) .policy-page h1 {
  width: auto;
  max-width: 760px;
}
body:has(.policy-page) .policy-hero,
body:has(.policy-page) .policy-card,
body:has(.policy-page) .contact-card {
  min-height: auto;
  display: block;
  padding: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
body:has(.policy-page) .policy-hero h1 {
  max-width: 760px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  white-space: normal;
  overflow-wrap: anywhere;
}
body:has(.policy-page) .policy-hero .lead,
body:has(.policy-page) .policy-card p,
body:has(.policy-page) .contact-card p {
  max-width: 820px;
  color: rgba(16, 32, 23, 0.72);
  overflow-wrap: anywhere;
}
body:has(.policy-page) .company-block {
  max-width: 820px;
  margin-top: 24px;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid rgba(16, 32, 23, 0.16);
  border-radius: 0;
  background: transparent;
  color: rgba(16, 32, 23, 0.72);
}
body:has(.policy-page) .policy-grid {
  display: block;
  margin-top: 54px;
}
body:has(.policy-page) .policy-card {
  padding-top: 34px;
  margin-top: 34px;
  border-top: 1px solid rgba(16, 32, 23, 0.14);
}
body:has(.policy-page) .policy-card h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
}
body:has(.policy-page) .policy-card a,
body:has(.policy-page) .contact-card a {
  color: var(--forest);
}
body:has(.policy-page) .policy-page * {
  max-width: 100%;
}
body:has(.policy-page) .reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  filter: blur(8px);
  transition: opacity 900ms var(--curve), transform 900ms var(--curve), filter 900ms var(--curve);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    width: calc(100% - 24px);
    top: 10px;
    border-radius: 28px;
  }
  .brand-card { width: min(240px, 64vw); }
  .desktop-nav,
  .header-action { display: none; }
  .menu-button {
    position: relative;
    display: block;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--forest);
  }
  .menu-button span {
    position: absolute;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--white);
    transition: transform 650ms var(--curve), top 650ms var(--curve);
  }
  .menu-button span:first-child { top: 18px; }
  .menu-button span:last-child { top: 28px; }
  .menu-open .menu-button span:first-child { top: 23px; transform: rotate(45deg); }
  .menu-open .menu-button span:last-child { top: 23px; transform: rotate(-45deg); }
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 22;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 40px;
    background: rgba(16,32,23,0.92);
    color: var(--white);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 650ms var(--curve), transform 650ms var(--curve);
  }
  .menu-open .mobile-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .mobile-menu a { font-size: clamp(34px, 11vw, 42px); line-height: 1; letter-spacing: -0.05em; font-weight: 950; }

  .hero,
  .cashline-section,
  .loopboard-section,
  .repay-section,
  .apply-section,
  .footer,
  .policy-page { width: min(100% - 28px, 1180px); }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 124px 0 58px;
    gap: 34px;
  }
  h1 {
    width: 100%;
    max-width: 328px;
    font-size: clamp(34px, 9.5vw, 40px);
    line-height: 0.96;
    letter-spacing: -0.045em;
    text-wrap: normal;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .lead {
    max-width: 330px;
    font-size: 17px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .button {
    max-width: 100%;
    white-space: nowrap;
  }
  .cash-strip {
    justify-self: stretch;
    overflow: hidden;
  }
  .strip-top { padding: 24px; }
  .strip-top strong {
    font-size: clamp(36px, 10vw, 44px);
    letter-spacing: -0.055em;
  }
  .cashline-section,
  .loopboard-section,
  .repay-section,
  .apply-section { padding: 78px 0; }
  .loop-track {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .loop-track::before { display: none; }
  .track-step { min-height: 96px; }
  .strip-bottom { grid-template-columns: 1fr; }
  .cashline-grid,
  .loopboard-section,
  .repay-card,
  .footer,
  .policy-grid { grid-template-columns: 1fr; }
  .panel,
  .panel.tall,
  .panel.ledger { grid-column: span 1; min-height: 280px; }
  .panel.tall { min-height: 430px; }
  .panel p { margin-top: 46px; }
  .phone-board { max-width: 430px; width: 100%; margin: 0 auto; }
  .apply-shell {
    min-height: 520px;
    align-items: start;
    flex-direction: column;
    justify-content: end;
    padding: 28px;
  }
  .footer { align-items: start; }
  .policy-page { padding: 124px 0 68px; }
  .policy-hero {
    min-height: 560px;
    padding: 28px;
  }
  .policy-hero h1 {
    max-width: 305px;
    font-size: clamp(34px, 9.5vw, 40px);
  }
  .policy-hero .lead,
  .company-block {
    max-width: 305px;
  }
  .policy-card { padding: 24px; }
  body:has(.policy-page) .policy-page { padding-top: 58px; }
  body:has(.policy-page) .policy-page {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    margin-left: auto;
    margin-right: auto;
  }
  body:has(.policy-page) .policy-hero h1 {
    max-width: 100%;
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: -0.035em;
  }
  body:has(.policy-page) .policy-hero .lead,
  body:has(.policy-page) .company-block { max-width: 320px; }
  body:has(.policy-page) .policy-card p,
  body:has(.policy-page) .contact-card p,
  body:has(.policy-page) .policy-card h2 {
    max-width: 320px;
  }
  body:has(.policy-page) .policy-card h2 {
    font-size: 25px;
  }
  body:has(.policy-page) .policy-card p,
  body:has(.policy-page) .policy-hero .lead,
  body:has(.policy-page) .company-block {
    font-size: 15px;
    line-height: 1.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
