:root {
    --brand: #1e7874;
    --brand-deep: #155e5c;
    --accent: #c65c30;
    --ink: #1a2c2c;
    --muted: rgba(26, 44, 44, 0.68);
    --line: #e6ddd0;
    --wash: #f4f0e8;
    --partner: rgba(30, 120, 116, 0.14);
    --faq: #f3f1ec;
    --white: #ffffff;
    --cream: #fbf8f2;
    --shadow: 0 16px 40px rgba(30, 120, 116, 0.12);
    --max: 1140px;
    --nav: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    font-family: "Open Sans", "Segoe UI", sans-serif;
    background: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); }

.skip {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--brand);
    color: white;
    padding: 8px 12px;
    z-index: 2000;
}

.skip:focus { top: 12px; }

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav);
    background: var(--cream);
    border-bottom: 1px solid rgba(30, 120, 116, 0.12);
    z-index: 1000;
}

.nav-inner {
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-right: auto;
}

.brand img {
    width: auto;
    height: 58px;
    max-width: 240px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a,
.menu-trigger {
    color: var(--brand);
    text-decoration: none;
    background: none;
    border: 0;
    font: inherit;
    font-size: 16px;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 8px;
}

.nav-links a:hover,
.menu-trigger:hover,
.nav-links a.is-active {
    background: var(--wash);
}

.has-menu { position: relative; }

.dropdown {
    display: none;
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    min-width: 190px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.has-menu:hover .dropdown,
.has-menu:focus-within .dropdown,
.has-menu.open .dropdown { display: block; }

.dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 10px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--brand);
}

main {
    flex: 1;
    padding-top: var(--nav);
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 28px;
}

.product-row {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: center;
    padding: 56px 0 28px;
}

.hero {
    background: linear-gradient(180deg, rgba(198, 92, 48, 0.07), rgba(30, 120, 116, 0.08) 55%, transparent);
    padding: 72px 0 36px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: center;
}

.hero-copy h1,
.product-copy h2,
.section-title,
.page-hero h1,
.steps h2,
.faq-block h2,
.partners-head h2 {
    color: var(--brand);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.hero-copy h1,
.product-copy h2 {
    margin: 0 0 16px;
    font-size: 3rem;
}

.score-tips {
    margin: 0 0 22px;
    padding-left: 1.2rem;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.55;
}

.score-tips li { margin: 8px 0; }

.lede,
.product-copy p,
.step p,
.page-hero p,
.prose p {
    color: var(--muted);
    font-size: 1.35rem;
    line-height: 1.55;
    margin: 0 0 22px;
}

.section-title {
    text-align: center;
    font-size: 3.4rem;
    margin: 28px 0 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 168px;
    padding: 12px 22px;
    border-radius: 10px;
    border: 0;
    background: var(--brand);
    color: var(--white);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover { background: var(--brand-deep); }

.btn.ghost {
    background: transparent;
    color: var(--brand);
    border: 1px solid var(--brand);
}

.art {
    width: min(100%, 520px);
    margin-left: auto;
}

.flip .art { margin-left: 0; margin-right: auto; }
.flip .product-copy { order: 2; }

.band { padding: 28px 0 10px; }

.band h2 {
    margin: 8px 0 18px;
    text-align: center;
    color: var(--brand);
    font-size: 2.6rem;
    font-weight: 600;
}

.partner-wash {
    background: var(--partner);
    padding: 22px 0 28px;
}

.logo-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.logo-card,
.support-card {
    background: var(--white);
    border-radius: 12px;
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
}

.logo-card strong,
.support-card strong {
    color: var(--brand);
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.logo-card span,
.support-card span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    margin-top: 4px;
}

.support-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.support-card { min-width: 220px; }

.steps {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
    padding: 64px 0 24px;
}

.step { margin-bottom: 22px; }

.step h3 {
    margin: 0 0 6px;
    color: var(--brand);
    font-weight: 500;
    font-size: 1.45rem;
}

.num {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    vertical-align: middle;
}

.reviews { padding: 20px 0 10px; }

.review-stage { position: relative; min-height: 280px; }

.review-card {
    display: none;
    max-width: 760px;
    margin: 0 auto;
    background: var(--brand);
    color: white;
    border-radius: 16px;
    padding: 32px 36px 28px;
}

.review-card.is-active { display: block; }

.review-card h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    font-weight: 600;
}

.review-card p {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.who {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: white;
    color: var(--brand);
    font-weight: 700;
}

.who strong { display: block; }

.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 0;
    background: #d5e4e3;
    cursor: pointer;
}

.dot.is-active { background: var(--accent); }

.faq-block { padding: 36px 0 20px; }

.faq-block h2 {
    text-align: center;
    font-size: 2.6rem;
    font-weight: 500;
    margin-bottom: 22px;
}

.faq-item {
    background: var(--faq);
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 4px 16px;
}

.faq-item button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    background: none;
    border: 0;
    text-align: left;
    font: inherit;
    font-size: 1.15rem;
    padding: 14px 4px;
    cursor: pointer;
    color: var(--ink);
}

.faq-item .chevron {
    transition: transform 0.2s ease;
    color: var(--brand);
}

.faq-item.open .chevron { transform: rotate(180deg); }

.faq-item .answer {
    display: none;
    margin: 0;
    padding: 0 4px 14px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.faq-item.open .answer { display: block; }

.lender-band { padding: 36px 0 10px; text-align: center; }

.lender-band h2 {
    color: var(--brand);
    font-weight: 500;
    font-size: 2.2rem;
    margin-bottom: 18px;
}

.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: slide 28s linear infinite;
}

.pill {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 22px;
    min-width: 180px;
    background: white;
    color: var(--brand);
    font-weight: 700;
    letter-spacing: -0.02em;
}

@keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.view-all {
    display: inline-block;
    margin: 18px 0 8px;
    color: var(--brand);
    font-weight: 700;
}

.site-footer {
    background: var(--brand-deep);
    color: white;
    margin-top: auto;
    padding: 36px 0 28px;
}

.site-footer a { color: white; text-decoration: none; }

.site-footer a:hover { text-decoration: underline; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.3fr;
    gap: 24px;
}

.site-footer h3 {
    margin: 0 0 12px;
    font-size: 1.15rem;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li { margin: 8px 0; }

.socials { display: flex; gap: 12px; }

.socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: grid;
    place-items: center;
}

.tagline {
    margin: 18px 0 0;
    font-size: 1.05rem;
}

.cities {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.cities h3 { font-weight: 600; }

.city-links {
    margin: 0;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
}

.legal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.95rem;
}

.page-hero { padding: 56px 0 10px; }

.page-hero h1 { font-size: 3rem; margin: 0 0 12px; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-bottom: 20px;
}

.feature {
    background: var(--wash);
    border-radius: 14px;
    padding: 20px;
}

.feature h3 {
    margin: 0 0 8px;
    color: var(--brand);
    font-size: 1.15rem;
}

.feature p { margin: 0; color: var(--muted); line-height: 1.5; }

.panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }

.amount-words {
    min-height: 1.2em;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
}

label { font-weight: 600; font-size: 0.95rem; }

input, select, textarea {
    font: inherit;
    border: 1px solid #d7d2c8;
    border-radius: 10px;
    padding: 12px 12px;
    background: white;
    color: var(--ink);
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid rgba(30, 120, 116, 0.35);
    border-color: var(--brand);
}

.error {
    color: #9b2340;
    font-size: 0.85rem;
}

.success {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #e7f4f3;
    color: var(--brand);
    font-weight: 600;
}

.form-actions { margin-top: 16px; }
.form-section { padding-bottom: 48px; }

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 4px;
}

.consent input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--brand);
}

.consent label {
    font-weight: 500;
    line-height: 1.45;
}

.otp-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(26, 44, 44, 0.48);
}

.otp-card {
    width: min(100%, 420px);
    background: var(--white);
    border-radius: 16px;
    padding: 28px 24px 24px;
    box-shadow: var(--shadow);
}

.otp-card h2 {
    margin: 0 0 8px;
    color: var(--brand);
    font-size: 1.6rem;
}

.otp-card p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.5;
}

.otp-timer {
    margin: 16px 0 0;
    text-align: center;
    font-weight: 600;
    color: var(--accent);
}

.otp-resend {
    margin-top: 16px;
    text-align: center;
}

.otp-resend .btn { min-width: 160px; }

.split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
    align-items: start;
    padding-bottom: 40px;
}

.prose { padding-bottom: 48px; max-width: 820px; }

.prose h2 { color: var(--brand); font-size: 1.4rem; }
.prose h3 { color: var(--ink); font-size: 1.1rem; margin: 18px 0 8px; }
.prose ul { color: var(--muted); line-height: 1.55; padding-left: 1.2rem; }
.prose li { margin: 6px 0; }

.note {
    background: var(--wash);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--muted);
}

.lender-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-bottom: 40px;
}

.lender-grid article {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
}

.lender-grid h3 { margin: 0 0 4px; color: var(--brand); }
.lender-grid p { margin: 0; color: var(--muted); }

.alert {
    background: #e7f3f2;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 12px 0 20px;
}

@media (max-width: 900px) {
    .hero, .hero-grid, .product-row, .steps, .split, .footer-grid, .feature-grid, .form-grid, .logo-row, .lender-grid {
        grid-template-columns: 1fr;
    }

    .flip .product-copy { order: 0; }
    .art { margin: 0 auto; }
    .hero-copy h1, .product-copy h2, .section-title, .page-hero h1 { font-size: 2rem; }
    .band h2, .faq-block h2 { font-size: 1.8rem; }
    .lede, .product-copy p, .step p { font-size: 1.05rem; }

    .brand img { height: 42px; max-width: 168px; }

    .nav-toggle { display: block; }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav);
        left: 0;
        right: 0;
        background: var(--cream);
        flex-direction: column;
        align-items: stretch;
        padding: 8px 12px 16px;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .nav-links.open { display: flex; }

    .dropdown {
        position: static;
        box-shadow: none;
        padding-left: 12px;
    }
}
