/* ===== Maxloanconnect – stylesheet (logo colors: navy, blue, green) ===== */
:root {
  --navy: #011d47;
  --navy-2: #0a2c63;
  --blue: #0059e4;
  --blue-d: #0047b8;
  --green: #4cb601;
  --green-d: #3f9a00;
  --ink: #0b1b33;
  --muted: #52617a;
  --tint: #f2f6fc;
  --line: #dbe3f0;
  --white: #fff;
  --err: #b42318;
  --ok: #166534;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: Figtree, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
h1, h2, h3, h4 { font-family: Sora, Figtree, sans-serif; line-height: 1.15; letter-spacing: -.02em; color: var(--navy); }
a { color: var(--blue); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(1, 29, 71, .10); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { display: block; height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 500; }
.nav a:hover { color: var(--blue); }
.nav .nav-cta { background: var(--green); color: var(--navy); font-weight: 600; padding: 10px 20px; border-radius: 10px; }
.nav .nav-cta:hover { background: var(--green-d); color: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 72px 0 168px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 80px), 0 100%);
}
.hero :focus-visible { outline-color: #fff; }
.hero-arrow { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 260px; pointer-events: none; }
.hero-arrow .line { fill: none; stroke: var(--green); stroke-width: 7; stroke-linecap: round; opacity: .8; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 1.8s cubic-bezier(.3, .6, .2, 1) both; }
.hero-arrow .head { fill: var(--green); opacity: .8; animation: pop .5s ease-out 1.5s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; } to { opacity: .8; } }

.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 64px; align-items: start; }
.hero h1 { color: #fff; font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; max-width: 14ch; text-wrap: balance; }
.hero .lead { color: #c9d8f2; font-size: 19px; max-width: 46ch; margin: 22px 0 36px; }
.facts { list-style: none; padding: 0; display: grid; gap: 0; max-width: 460px; }
.facts li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.facts li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .18); }
.facts strong { font-family: Sora, sans-serif; font-size: 18px; color: #fff; }
.facts span { color: #b5c6e6; font-size: 15.5px; line-height: 1.45; }

.card { background: var(--white); color: var(--ink); border-radius: 20px; padding: 28px 26px 22px; box-shadow: 0 30px 80px rgba(0, 8, 32, .5); border-top: 6px solid var(--green); }
.card h2 { font-size: 24px; }
.card-sub { color: var(--muted); font-size: 15.5px; margin: 6px 0 18px; }
.card-note { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-top: 14px; }

.frame-wrap { position: relative; min-height: 360px; }
.frame-wrap #form-frame { display: block; width: 100%; transition: opacity .25s; }
.frame-wrap.loading #form-frame { opacity: 0; }
#loader { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; color: var(--muted); font-size: 15.5px; }
.frame-wrap:not(.loading) #loader { display: none; }
.spin { width: 36px; height: 36px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--blue); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- sections ---------- */
.block { padding: 96px 0; }
.block.tint { background: var(--tint); }
.sec-title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; max-width: 22ch; }
.sec-sub { color: var(--muted); max-width: 58ch; margin-top: 14px; }

/* how it works: rising staircase */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; margin-top: 24px; }
.step { background: var(--tint); border-top: 6px solid var(--navy); border-radius: 4px 4px 14px 14px; padding: 28px 26px 32px; }
.step.s1 { margin-top: 104px; border-top-color: var(--navy); }
.step.s2 { margin-top: 52px; border-top-color: var(--blue); }
.step.s3 { margin-top: 0; border-top-color: var(--green); }
.num { display: block; font-family: Sora, sans-serif; font-weight: 800; font-size: 56px; line-height: 1; color: var(--navy); margin-bottom: 18px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }

/* rates table */
.apr-wrap { margin-top: 36px; background: var(--white); border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.apr-table { width: 100%; border-collapse: collapse; text-align: left; }
.apr-table thead th { padding: 16px 28px; font-size: 14.5px; font-weight: 600; color: var(--muted); background: #f8fafd; border-bottom: 1px solid var(--line); }
.apr-table tbody th, .apr-table tbody td { padding: 22px 28px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.apr-table tbody tr:last-child th, .apr-table tbody tr:last-child td { border-bottom: 0; }
.apr-table tbody th { font-family: Sora, sans-serif; font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.apr-table td { color: var(--ink); }
.apr-table td.pay { font-weight: 600; color: var(--blue-d); }
.fine { color: var(--muted); font-size: 14.5px; max-width: 78ch; margin-top: 18px; }

/* before you apply */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.reqbox { background: var(--navy); color: #fff; border-radius: 18px; padding: 36px 34px; }
.reqbox h2 { color: #fff; font-size: 26px; margin-bottom: 22px; }
.reqbox ul { list-style: none; padding: 0; display: grid; gap: 14px; }
.reqbox li { position: relative; padding-left: 34px; color: #dce7fb; }
.reqbox li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23011d47' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center/16px no-repeat; }
.reqbox small { display: block; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); color: #a9bce0; font-size: 14.5px; line-height: 1.5; }
.tips .tip { padding: 22px 0; border-top: 1px solid var(--line); }
.tips .tip:first-of-type { margin-top: 30px; }
.tips .tip:last-child { border-bottom: 1px solid var(--line); }
.tip h3 { font-size: 20px; margin-bottom: 6px; }
.tip p { color: var(--muted); }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.faq-side { position: sticky; top: 100px; }
.faq-help { margin-top: 32px; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--green); border-radius: 12px; max-width: 420px; }
.faq-help h3 { font-size: 18px; margin-bottom: 4px; }
.faq-help p { color: var(--muted); font-size: 15.5px; }
.faq-list details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-family: Sora, sans-serif; font-weight: 600; font-size: 17px; color: var(--navy); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--blue); font-size: 22px; line-height: 30px; text-align: center; font-family: Figtree, sans-serif; }
.faq-list details[open] { border-color: var(--blue); }
.faq-list details[open] summary::after { content: "–"; background: var(--blue); color: #fff; }
.faq-list details p { padding: 0 24px 22px; color: var(--muted); max-width: 62ch; }

/* cta */
.cta { background: var(--blue); color: #fff; padding: 64px 0; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); }
.cta p { color: #d6e4ff; margin-top: 8px; }
.cta :focus-visible { outline-color: #fff; }
.btn, .primary { display: inline-block; background: var(--green); color: var(--navy); font-family: Sora, sans-serif; font-weight: 700; font-size: 17px; text-decoration: none; padding: 16px 32px; border: 0; border-radius: 12px; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover, .primary:hover { background: #fff; color: var(--navy); }
.primary { width: 100%; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #b8c8e8; padding: 56px 0 28px; }
.site-footer :focus-visible { outline-color: #fff; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.foot-logo img { display: block; height: 38px; width: auto; }
.foot-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-nav a { color: #fff; text-decoration: none; font-size: 15.5px; }
.foot-nav a:hover { text-decoration: underline; }
.foot-disc { padding: 28px 0 8px; display: grid; gap: 14px; max-width: 980px; }
.foot-disc p { font-size: 14px; line-height: 1.65; }
.foot-disc strong { color: #fff; }
.foot-bottom { margin-top: 18px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 14px; }

/* ---------- inner pages (privacy, terms, unsubscribe) ---------- */
.page-banner { background: var(--navy); color: #fff; padding: 56px 0 96px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%); }
.page-banner h1 { color: #fff; font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.page-banner p { color: #b8c8e8; margin-top: 10px; }
.legal-box { max-width: 780px; margin: 0 auto; padding: 24px 0 96px; }
.legal-box h2 { font-size: 22px; margin: 36px 0 10px; }
.legal-box h2:first-child { margin-top: 0; }
.legal-box p, .legal-box li { color: #2b3a55; }
.legal-box p + p { margin-top: 12px; }
.legal-box ul { padding-left: 22px; display: grid; gap: 8px; }

.unsub-card { max-width: 520px; margin: 0 auto 96px; padding: 32px 30px; background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--green); border-radius: 18px; box-shadow: 0 18px 50px rgba(1, 29, 71, .10); }
.unsub-card > p { color: var(--muted); margin-bottom: 20px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--navy); }
.form-control { width: 100%; height: 50px; padding: 0 14px; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #c5d0e3; border-radius: 10px; }
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 89, 228, .18); }
.alert-success, .alert-error { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 15.5px; }
.alert-success { background: #ecfdf3; color: var(--ok); border: 1px solid #b7ebc9; }
.alert-error { background: #fef3f2; color: var(--err); border: 1px solid #fecdca; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .menu-btn { display: flex; }
  .nav { position: absolute; left: 0; right: 0; top: 72px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; box-shadow: 0 14px 30px rgba(1, 29, 71, .12); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 14px; text-align: center; border-bottom: 0; }
  .hero { padding: 48px 0 140px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: 16ch; }
  .block { padding: 72px 0; }
  .split, .faq-grid { grid-template-columns: 1fr; gap: 48px; }
  .faq-side { position: static; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; margin-top: 12px; }
  .step.s1, .step.s2, .step.s3 { margin-top: 0; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .apr-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .apr-table, .apr-table tbody, .apr-table tr, .apr-table th, .apr-table td { display: block; }
  .apr-table tr { padding: 18px 20px; border-bottom: 1px solid var(--line); }
  .apr-table tr:last-child { border-bottom: 0; }
  .apr-table tbody th, .apr-table tbody td { padding: 4px 0; border: 0 !important; }
  .apr-table tbody th { font-size: 26px; }
  .apr-table td::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 400; }
  .cta .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 18px; }
  .card { padding: 22px 16px 18px; border-radius: 16px; }
  .reqbox { padding: 28px 22px; }
  .brand img { height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-arrow .line, .hero-arrow .head { animation: none; }
  .spin { animation-duration: 2.4s; }
}
