

/* =====================================================================
   BucksByPhone.com — base / common styles
   Ordered top-to-bottom: each section (and homepage sub-section) keeps its
   own responsive @media rules right beside it, wrapped in editor-fold regions.
   ===================================================================== */

/* <editor-fold desc="1. Tokens"> */
:root {
    /* Brand / neutrals */
    --black: #252525;
    --grey: #616161;
    --grey-disabled: #D3D3D3; /* Figma "Grey Disabled" — field borders / disabled fields */
    --grey-light: #F1F1F1;
    --white: #FFFFFF;

    /* Purple / indigo (primary) */
    --purple: #5236B7;
    --purple-light: #877FFB;
    --purple-vlight: #C7B9F9;
    --purple-footer: #2D2257;
    --indigo: #3E48D4;

    /* Accents */
    --red: #EE5675;
    --yellow: #FFC14C;
    --yellow-bg: #FFFAE8;
    --yellow-vlight: #FFFDF7;
    --yellow-light: #FDF4D3;
    --green: #86D993;
    --green-dark: #21796B;
    --green-light: #DBFDE0;
    --turquoise: #6AC4B5;
    --turquoise-light: #96DDD1;
    --golden: #ECDB9F;

    /* Surfaces */
    --header-bg: var(--yellow-vlight);

    /* Type scale (desktop) */
    --h1: 62px;
    --h2: 50px;
    --h3: 40px;
    --h4: 26px;
    --h5: 22px;
    --h6: 20px;
    --body: 18px;
    --label: 17px;

    /* Layout */
    --content-width: 1110px;
    --gutter: 39px;
    --radius: 12px;
    --radius-lg: 20px;

    /* Fonts */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Effects */
    --shadow-menu: 0 4px 30px rgba(0, 0, 0, 0.25);
}

@media (max-width: 991px) {
    :root {
        --h1: 44px;
        --h2: 34px;
        --h3: 28px;
        --h4: 24px;
        --h5: 18px;
        --h6: 16px;
        --body: 14px;
        --label: 17px;
    }
}

@media (max-width: 575px) {
    :root {
        --h1: 32px;
        --h2: 28px;
        --h3: 24px;
        --h4: 20px;
        --h5: 18px;
        --h6: 16px;
        --body: 14px;
        --label: 14px;
        --gutter: 15px;
    }
}

/* </editor-fold> */

/* <editor-fold desc="2. Base"> */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: var(--body);
    line-height: 1.6;
    color: var(--black);
    background: var(--yellow-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
svg {
    max-width: 100%;
    display: block;
}

a {
    color: var(--indigo);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

strong,
b {
    font-weight: 700;
}

/* scale the whole layout up past the 1920 design width */
@media (min-width: 1921px) {
    body {
        zoom: calc(100vw / 1920px);
    }
}

/* </editor-fold> */

/* <editor-fold desc="3. Typography"> */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    color: var(--black);
    /* Inter ≈ 1.21 line-height on all headings */
    line-height: normal;
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--h1);
    font-weight: 600;
}

h2 {
    font-size: var(--h2);
    font-weight: 600;
}

h3 {
    font-size: var(--h3);
    font-weight: 600;
}

h4 {
    font-size: var(--h4);
    font-weight: 500;
    letter-spacing: 0;
}

h5 {
    font-size: var(--h5);
    font-weight: 500;
    letter-spacing: 0;
}

h6 {
    font-size: var(--h6);
    font-weight: 500;
}

p {
    font-size: var(--body);
    line-height: 1.6;
}

.text-label {
    font-size: var(--label);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-muted {
    color: var(--grey);
}

.text-purple {
    color: var(--purple);
}

.text-red {
    color: var(--red);
}

/* </editor-fold> */

/* <editor-fold desc="4. Layout"> */
.container {
    width: 100%;
    max-width: calc(var(--content-width) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: 90px 0;
}

.section--tight {
    padding: 60px 0;
}

@media (max-width: 991px) {
    .section {
        padding: 64px 0;
    }

    .section--tight {
        padding: 44px 0;
    }
}

@media (max-width: 575px) {
    .section {
        padding: 48px 0;
    }

    .section--tight {
        padding: 36px 0;
    }
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* </editor-fold> */

/* <editor-fold desc="5. Buttons"> */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    letter-spacing: -0.01em;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    padding: 18px 30px;
    min-height: 56px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.05s ease;
    -webkit-appearance: none;
    appearance: none;
}

.btn:hover {
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: var(--indigo);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--purple);
    color: var(--white);
}

.btn--primary:active {
    background: var(--purple);
    color: var(--yellow);
}

.btn--secondary {
    background: var(--green-light);
    color: var(--purple);
}

.btn--secondary:hover {
    background: var(--green);
    color: var(--purple);
}

.btn--secondary:active {
    background: var(--green);
    color: var(--green-dark);
}

.btn--yellow {
    background: var(--yellow);
    color: var(--purple-footer);
}

.btn--yellow:hover {
    background: #F2B23C;
    color: var(--purple-footer);
}

.btn[disabled],
.btn--disabled {
    background: var(--purple-vlight);
    color: var(--white);
    cursor: default;
    pointer-events: none;
}

.btn:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
}

.btn--block {
    display: flex;
    width: 100%;
}

.btn--lg {
    min-height: 70px;
    width: 100%;
    max-width: 270px;
    font-size: 22px;
    padding: 20px 24px;
    letter-spacing: -0.44px;
}

@media (max-width: 991px) {
    .btn--lg {
        max-width: 210px;
        min-height: 54px;
        padding: 15px;
        font-size: 18px;
        letter-spacing: -0.36px;
    }
}

@media (max-width: 575px) {
    .btn {
        font-size: 16px;
        padding: 15px 24px;
        min-height: 50px;
    }

    .btn--lg {
        max-width: 290px;
        font-size: 18px;
        padding: 15px;
        min-height: 52px;
    }
}

/* Text link used under CTAs (e.g. "Disclosures") */
.link-disclosure {
    display: inline-block;
    padding: 4px;
    color: var(--black);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.28px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 991px) {
    .link-disclosure {
        font-size: 12px;
        letter-spacing: -0.24px;
    }
}

.link-disclosure:hover {
    color: var(--purple);
}

/* </editor-fold> */

/* <editor-fold desc="6. Forms"> */
.field,
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="number"],
.form select,
.form textarea {
    width: 100%;
    font-family: var(--font);
    font-size: 18px;
    line-height: 1.3;
    color: var(--black);
    background: var(--white);
    border: 1px solid var(--grey-disabled);
    border-radius: var(--radius);
    padding: 16px 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field::placeholder,
.form input::placeholder,
.form textarea::placeholder {
    color: var(--grey);
    opacity: 1;
}

.field:focus,
.form input:focus,
.form select:focus,
.form textarea:focus {
    border-color: var(--black);
}

.field:focus-visible,
.form input:focus-visible,
.form textarea:focus-visible {
    outline: none;
    border-color: var(--golden);
    box-shadow: 0 0 0 3px rgba(236, 219, 159, 0.4);
}

.field--error,
.form .is-error {
    border-color: var(--red) !important;
}

.field--success,
.form .is-success {
    border-color: var(--turquoise) !important;
}

.field:disabled,
.form input:disabled,
.form textarea:disabled,
.form select:disabled {
    background: var(--grey-light);
    color: var(--grey);
    cursor: not-allowed;
}

.form textarea {
    min-height: 120px;
    resize: vertical;
}

.field-label {
    display: block;
    font-size: var(--label);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--black);
}

.form-row {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .form-row--2 {
        grid-template-columns: 1fr 1fr;
    }

    .form-row--3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* </editor-fold> */

/* <editor-fold desc="7. Header"> */
.site-header {
    background: var(--header-bg);
    position: relative;
    z-index: 70;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 30px; /* 30 + 52 logo + 30 = 112 header height */
    padding-bottom: 30px;
}

.site-header__logo-link {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}

.site-header__logo-link:hover {
    text-decoration: none;
}

.site-header__logo {
    height: 52px;
    width: auto;
}

.site-header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 36px;
    flex: 1;
}

.site-header__nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-header__nav-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.site-header__nav-link:hover {
    text-decoration: none;
    color: var(--purple);
}

.site-header__nav-link.active {
    color: var(--purple);
    border-bottom-color: var(--purple);
}

.site-header__cta {
    /* compact nav pill (uses .btn.btn--secondary) */
    min-height: 52px;
    padding: 10px 24px;
    font-size: 20px;
    flex-shrink: 0;
}

.site-header__nav-head,
.site-header__nav-close,
.site-header__burger {
    display: none;
}

/* Burger */
.site-header__burger {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 24px;
    height: 24px;
    padding: 4px 3px;
    background: transparent;
    border: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.site-header__burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--black);
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.site-header__burger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.site-header__burger.is-active span:nth-child(2) {
    opacity: 0;
}

.site-header__burger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Drawer backdrop (created by JS) */
.site-header__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 60;
}

.site-header__overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1150px) {
    .site-header__inner {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .site-header__logo {
        height: 33px;
    }

    .site-header__burger {
        display: flex;
    }

    /* Mobile nav = full-width white card dropping from the top (Figma: Menu Tablet/Mobile) */
    .site-header__nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 30px;
        padding: 22px var(--gutter);
        background: var(--white);
        border-radius: 0 0 12px 12px;
        box-shadow: var(--shadow-menu);
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        max-height: 100dvh;
        z-index: 70;
    }

    .site-header__nav.is-open {
        transform: translateY(0);
    }

    /* Panel header: logo + close (X) */
    .site-header__nav-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .site-header__nav-logo {
        height: 33px;
        width: auto;
    }

    /* Nav list: each row = label + right chevron, thin divider under every item */
    .site-header__nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-header__nav-list li {
        border-bottom: 1px solid #D3D3D3;
    }

    .site-header__nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 20px 0;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
        white-space: normal;
        border-bottom: 0;
    }

    .site-header__nav-list li:first-child .site-header__nav-link {
        padding-top: 0;
    }

    .site-header__nav-link.active {
        color: var(--purple);
    }

    .site-header__nav-link::after {
        content: "";
        flex-shrink: 0;
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--purple);
        border-bottom: 2px solid var(--purple);
        transform: rotate(-45deg);
    }

    /* Green "Get My Quote" pill, full width */
    .site-header__cta {
        width: 100%;
        min-height: 42px;
        padding: 10px 15px;
        font-size: 16px;
        border-radius: 12px;
    }

    /* Close (X) — two crossed bars */
    .site-header__nav-close {
        display: flex;
        position: relative;
        width: 30px;
        height: 30px;
        padding: 0;
        background: transparent;
        border: 0;
        cursor: pointer;
        flex-shrink: 0;
    }

    .site-header__nav-close span {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 22px;
        height: 2.5px;
        border-radius: 2px;
        background: var(--black);
    }

    .site-header__nav-close span:nth-child(1) {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .site-header__nav-close span:nth-child(2) {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
}

/* Form-page header has no nav */
.site-header--form .site-header__inner {
    justify-content: flex-start;
}

/* </editor-fold> */

/* <editor-fold desc="8. Footer"> */
.site-footer {
    background: var(--purple-footer);
    color: var(--white);
    padding: 60px 0;
    overflow: hidden;
}

.site-footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    flex-wrap: wrap;
    padding-bottom: 27px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.40);
}

.site-footer__logo-link {
    display: inline-flex;
    line-height: 0;
}

.site-footer__logo-link:hover {
    text-decoration: none;
}

.site-footer__logo {
    height: 52px;
    width: auto;
}

.site-footer__nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 30px;
}

.site-footer__nav a {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

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

/* ---------- Material disclosure (CMS markup: h3 / p / strong.title / .table) ---------- */
.site-footer__material {
    color: rgba(255, 255, 255, 0.85);
    padding-top: 27px;
}

.site-footer__material h3 {
    font-size: 18px;
    font-weight: 400;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: normal;
    margin: 0 0 20px;
}

.site-footer__material p {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 27px;
}

/* section headings sit on their own line above the paragraph body */
.site-footer__material .title {
    display: block;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
}

/* inline emphasis inside body copy */
.site-footer__material strong:not(.title) {
    font-weight: 700;
    color: var(--white);
}

/* CMS leaves an empty <p> right before the table — collapse it */
.site-footer__material p:has(+ .table) {
    display: none;
}

/* Loan-terms table (div-based: .table > .tr > .td) */
.site-footer__material .table {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    margin: 27px 0;
}

.site-footer__material .tr {
    display: table-row;
}

.site-footer__material .td {
    display: table-cell;
    padding: 10px;
    vertical-align: middle;
    font-size: 10px;
    font-weight: 500;
    line-height: normal;
    color: var(--white);
    letter-spacing: -0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
}

.site-footer__material .td:last-child {
    border-right: none;
}

.site-footer__material .tr:last-child .td {
    border-bottom: none;
}

/* header row: uppercase, no vertical dividers */
.site-footer__material .tr:first-child .td {
    font-size: 12px;
    font-weight: 700; /* Extra Bold in design; Inter loads up to 700 */
    text-transform: uppercase;
    white-space: nowrap;
    border-right: none;
}

.site-footer__copyright {
    margin-top: 27px;
    padding-top: 27px;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1150px) {
    .site-footer__logo {
        height: 41px;
    }

    .site-footer__nav {
        max-width: 304px;
        gap: 10px 34px;
    }

    .site-footer__nav a {
        font-size: 13px;
        letter-spacing: -0.26px;
        width: 100%;
        max-width: 135px;
    }
}

@media (max-width: 991px) {
    .site-footer {
        padding: 30px 0;
    }

    .site-footer__material p {
        font-size: 12px;
        line-height: normal;
        letter-spacing: -0.24px;
    }

    .site-footer__material .tr:first-child .td {
        font-size: 10px;
        letter-spacing: -0.2px;
    }
}

@media (max-width: 720px) {
    .site-footer__material h3 {
        font-size: 16px;
        line-height: normal;
        letter-spacing: -0.32px;
    }

    .site-footer__material .table {
        display: flex;
    }

    .site-footer__material .tr {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .site-footer__material .td {
        padding: 10px 4px;
        font-size: 8px;
        line-height: normal;
        letter-spacing: -0.155px;
    }

    .site-footer__material .tr:first-child .td {
        font-size: 8px;
        line-height: normal;
        letter-spacing: -0.155px;
    }

    .site-footer__material .td:last-child {
        border-right: 1px solid rgba(255, 255, 255, 0.4);
        border-bottom: none;
    }

    .site-footer__material .tr:last-child .td {
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
        border-right: none;
    }

    .site-footer__material .tr:last-child .td:last-child {
        border-bottom: none;
    }

    .site-footer__material .tr:first-child .td {
        border-right: 1px solid rgba(255, 255, 255, 0.4);
    }

    .site-footer__material p {
        font-size: 10px;
        letter-spacing: -0.2px;
    }
}

@media (max-width: 575px) {
    .site-footer {
        padding: 40px 0;
    }

    .site-footer__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__logo {
        height: 35px;
    }

    .site-footer__nav {
        flex-direction: column;
        gap: 14px;
    }

    .site-footer__nav a {
        font-size: 12px;
        letter-spacing: -0.24px;
    }
}

/* </editor-fold> */

/* <editor-fold desc="9. Homepage"> */

/* <editor-fold desc="Hero"> */
.hero {
    position: relative;
    overflow: hidden;
    /* cream page bg + a #BCA9FF radial glow fading out by ~63.5% of its radius, centred just below the hero */
    background: radial-gradient(1750px 1750px at 50% 120%, rgba(188, 169, 255, 1) 0%, rgba(188, 169, 255, 0) 63.5%),
    var(--yellow-bg);
}

/* Hero decorations — anchored to the right edge so they track the man photo (which bleeds off the right edge) */
.hero__deco {
    position: absolute;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    width: 504px;
    height: 688px;
    right: -125px;
}

.hero__deco-dots {
    position: absolute;
    top: 61px;
    right: 20px;
    z-index: 0;
}

.hero__deco-cube {
    position: absolute;
    bottom: 94px;
    left: -114px;
    z-index: 0;
}

.hero__deco-zigzag {
    position: absolute;
    bottom: 135px;
    right: -43px;
    z-index: 2;
}

.hero__deco-photo {
    position: absolute;
    height: auto;
    z-index: 1;
}

.hero__inner {
    padding-top: 60px;
    padding-bottom: 80px;
    position: relative;
}

.hero__col {
    position: relative;
    z-index: 2;
    max-width: 820px; /* wide enough for the 2-line H1; man is absolute (own layer) */
}

.hero__title {
    font-size: var(--h1);
    letter-spacing: -1.24px;
    margin-bottom: 25px; /* hero container gap */
}

.hero__benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 25px; /* hero container gap */
}

.hero__benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--h6);
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.4px;
}

.hero__benefits img {
    width: 23px;
    height: 23px;
    flex-shrink: 0;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px; /* CTA → Disclosures */
    margin-bottom: 60px; /* Disclosures → loan cards */
}

@media (max-width: 991px) {
    /* Man flows above the text (like Homepage Mobile) instead of bleeding behind it */
    .hero__inner {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero__inner:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        display: block;
        width: 100%;
        height: 150px;
        border-radius: 20px 20px 0 0;
        background: var(--yellow-bg);
    }

    .hero__deco {
        width: 356px;
        height: 482px;
        right: 12px;
        bottom: 150px;
    }

    .hero__deco-cube {
        bottom: 98px;
        left: -56px;
        max-width: 228px;
    }

    .hero__deco-zigzag {
        bottom: 49px;
        right: -8px;
        max-width: 54px;
    }

    .hero__deco-dots {
        top: 36px;
        right: 70px;
        max-width: 244px;
    }

    .hero__title {
        margin-bottom: 20px;
        max-width: 380px;
        letter-spacing: -0.88px;
    }

    .hero__benefits {
        gap: 10px;
        margin-bottom: 20px;
    }

    .hero__benefits li {
        letter-spacing: normal;
    }

    .hero__actions {
        gap: 15px;
        margin-bottom: 40px;
    }

    .hero__photo {
        position: static;
        display: block;
        height: 380px;
        width: auto;
        right: auto;
        bottom: auto;
        margin: 0 auto 8px;
    }

    .hero__col {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .hero__inner:after {
        height: 380px;
    }

    .hero__deco {
        bottom: 380px;
        width: 310px;
        height: 420px;
    }
}

@media (max-width: 575px) {
    .hero__title {
        margin-bottom: 30px;
        letter-spacing: -0.64px;
    }

    .hero__benefits {
        gap: 11px;
        margin-bottom: 30px;
    }

    .hero__deco {
        right: 50%;
        width: 244px;
        height: 330px;
        transform: translateX(50%);
    }

    .hero__deco-dots {
        max-width: 195px;
        left: 35px;
        top: 29px;
    }

    .hero__deco-zigzag {
        bottom: 64px;
        right: -26px;
        max-width: 43px;
    }

    .hero__deco-cube {
        bottom: 23px;
        left: -65px;
        max-width: 182px;
    }

    .hero__actions {
        margin-bottom: 325px;
		align-items: center;
    }
}

/* </editor-fold> */

/* <editor-fold desc="Loan options"> */
.loan-options {
    display: flex;
    gap: 40px;
    max-width: 680px;
    justify-content: center;
}

.loan-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 140px;
    text-decoration: none;
}

.loan-card:hover {
    text-decoration: none;
}

.loan-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 107px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(37, 37, 37, 0.09);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.loan-card__icon img {
    width: auto;
    height: 27px;
}

.loan-card__foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.loan-card__label {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.34px;
    line-height: normal;
    color: var(--black);
}

.loan-card__arrow {
    width: 13px;
    height: 11px;
    margin-top: 3px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    transform: rotate(135deg);
}

.loan-card:hover .loan-card__icon {
    box-shadow: 0 14px 30px rgba(82, 54, 183, 0.18);
    transform: translateY(-3px);
}

.loan-card:hover .loan-card__arrow {
    transform: translate(2px, -2px);
}

@media (max-width: 991px) {
    .loan-options {
        gap: 45px;
        max-width: 695px;
    }
}

@media (max-width: 768px) {
    .loan-options {
        gap: 30px;
        flex-wrap: wrap;
        max-width: 640px;
    }
}

@media (max-width: 575px) {
    .loan-options {
        margin: 0 auto;
    }

    .loan-card {
        max-width: 130px;
        gap: 12px;
    }

    .loan-card__icon {
        height: 123px;
    }

    .loan-card__label {
        font-size: 14px;
    }
}

@media (max-width: 375px) {
    .loan-options {
        gap: 25px;
    }
}

/* </editor-fold> */

/* <editor-fold desc="Steps"> */
/* steps + FAQ share one continuous cream band */
.steps {
    background: var(--yellow-bg);
    padding: 75px 0 134px;
}

.steps__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.steps__title {
    font-size: var(--h2);
    text-align: center;
}

.steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.step {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 478px;
    background: var(--yellow-vlight);
    border: 1px solid var(--golden);
    border-radius: 8px;
    overflow: hidden;
}

.step__head {
    padding: 29px 30px 0;
    position: relative;
    z-index: 4;
}

.step__top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 21px;
}

.step__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 47px;
    background: var(--yellow-light);
    border-radius: 4px;
}

.step__num {
    font-size: 22px;
    font-weight: 700;
    color: var(--purple);
    line-height: normal;
}

.step__heading {
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--black);
    max-width: 280px;
}

.step__visual {
    position: relative;
    margin-top: auto;
    width: 100%;
    aspect-ratio: 350 / 288; /* card 350 wide, visual 288 tall — scales on tablet */
}

.step__arch {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 68.678%; /* 239 / 348 */
    height: 81.023%; /* 232 / 286.34 */
    border-radius: 50% 50% 0 0 / 51.5% 51.5% 0 0;
    z-index: 0;
}

.step--1 .step__arch {
    background: var(--turquoise-light);
}

.step--2 .step__arch {
    background: var(--green);
}

.step--3 .step__arch {
    background: var(--purple-vlight);
}

.step__person {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 100%; /* fills the visual */
    width: auto;
    z-index: 2;
}

/* Decorative objects — all positions/sizes are % of .step__visual so the whole
   composition scales with the card (the visual keeps a fixed aspect ratio).
   Reference box = 348 × 286.34 (desktop rendered size).
   z-order: arch < (burst|dots|big) < person < (clipboard|clock|bills|coin) */
.step__obj {
    position: absolute;
    z-index: 3; /* in front of the person */
    height: auto;
}

.step__obj--burst,
.step__obj--dots,
.step__obj--big {
    z-index: 1; /* behind the person */
}

.step__obj--clipboard {
    left: 71.552%;
    bottom: 38.067%;
    width: 20.115%;
}

.step__obj--burst {
    left: 7.184%;
    bottom: 33.177%;
    width: 28.161%;
}

.step__obj--clock {
    left: 71.839%;
    bottom: 20.256%;
    width: 23.276%;
}

.step__obj--dots {
    left: 15.805%;
    bottom: 53.084%;
    width: 18.391%;
}

.step__obj--big {
    left: 28.736%;
    bottom: 8.731%;
    width: 62.931%;
}

.step__obj--bills {
    left: 10.920%;
    bottom: 60.767%;
    width: 18.103%;
}

.step__obj--coin {
    left: 9.483%;
    bottom: 9.429%;
    width: 10.345%;
}

@media (max-width: 1100px) {
    .step {
        min-height: 287px;
    }

    .step__head {
        padding: 17px 15px 0;
    }

    .step__top {
        gap: 8px;
        margin-bottom: 12px;
    }

    .step__badge {
        width: 26px;
        height: 28px;
    }

    .step__badge img {
        zoom: 0.6;
    }

    .step__num {
        font-size: 16px;
    }

    .step__heading {
        font-size: 18px;
    }

    /* The tablet card is a 0.6 scale of the desktop one, so the visual keeps the
       same aspect ratio and every object stays on its % position — no overrides. */
}

@media (max-width: 991px) {
    .steps {
        padding: 40px 0;
    }

    .steps__inner {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .steps__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
        gap: 18px;
    }

    .step {
        flex-direction: row;
        align-items: stretch;
        min-height: 0;
    }

    .step__head {
        flex: 1 1 auto;
        padding: 18px 0 16px 6.4%;
    }

    .step__heading {
        max-width: none;
    }

    .step__visual {
        flex: 0 0 56%;
        width: 56%;
        margin-top: auto;
    }
}

@media (max-width: 575px) {
    .steps__inner {
        gap: 30px;
    }

    .step__top {
        gap: 9px;
        margin-bottom: 14px;
    }

    .step__head {
        padding: 32px 0 32px 18px;
    }

    .step {
        min-height: 173px;
    }
}

/* </editor-fold> */

/* <editor-fold desc="FAQ"> */
.faq {
    position: relative;
    background: var(--yellow-bg);
    overflow: hidden;
    padding: 0 0 91px;
    min-height: 972px;
}

.faq__photo {
    position: absolute;
    left: -385px;
    top: 0;
    width: 100%;
    max-width: 755px;
    height: 867px;
    border-radius: 0 8px 8px 0;
    overflow: hidden;
    background: transparent url(../img/faq-couple-square.jpg) no-repeat center;
    background-size: cover;
}

.faq__inner {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.faq__content {
    position: relative;
    width: 100%;
    max-width: 635px;
    padding: 50px 0;
}

.faq__title {
    font-size: var(--h2);
    margin-bottom: 60px;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accordion__item {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
}

.accordion__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 26px;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: var(--font);
    font-size: 22px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0;
    color: var(--black);
}

.accordion__chevron {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    margin-top: -4px;
    border-right: 2px solid var(--purple-light);
    border-bottom: 2px solid var(--purple-light);
    transform: rotate(45deg);
    transition: transform 0.25s ease, margin 0.25s ease;
}

.accordion__item.is-open .accordion__chevron {
    transform: rotate(-135deg);
    margin-top: 4px;
}

/*.accordion__item.is-open .accordion__q {
    padding-bottom: 20px;
}*/

/* gap to answer */
.accordion__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion__item.is-open .accordion__a {
    max-height: 900px;
}

.accordion__a-inner {
    padding: 0 26px 26px;
}

.accordion__a-inner p {
    font-size: 18px;
    line-height: normal;
    letter-spacing: -0.36px;
    color: #7E7E7E; /* grey text */
}

.accordion__a-inner p + p {
    margin-top: 18px;
}

.accordion__a-inner ol {
    list-style: auto;
}

.accordion__a-inner ul,
.accordion__a-inner ol {
    margin: 18px 0;
}

.accordion__a-inner ol li {
    margin: 0 0 0 40px;
}

.accordion__a-inner ul li {
    position: relative;
    margin: 0 0 0 20px;
    padding-left: 25px;
}

.accordion__a-inner ul li:before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7E7E7E;
    position: absolute;
    top: 12px;
    left: 0;
}

.accordion__a-inner li {
    color: #7E7E7E;
    padding-left: 10px;
}

.faq__link {
    display: block;
    text-align: center;
    max-width: 96px;
    margin: 28px auto 0;
    padding: 4px;
    color: var(--black);
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    text-decoration: underline;
    text-underline-offset: 3px;
    letter-spacing: -0.28px;
}

.faq__link:hover {
    color: var(--purple);
}

/* FAQ decorations */
.faq__deco {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    height: auto;
}

.faq__deco--arrows {
    bottom: 28px;
    left: 33px;
    width: 135px;
}

.faq__deco--shapes {
    bottom: 59px;
    right: 62px;
    width: 98px;
}

.faq__deco--dots {
    top: -20px;
    right: -69px;
    width: 137px;
}

@media (max-width: 1600px) {
    .faq__photo {
        left: -280px;
    }
}

@media (max-width: 1300px) {
    .faq {
        min-height: auto;
    }

    .faq__photo {
        position: relative;
        left: auto;
        top: auto;
        max-width: 770px;
        height: 424px;
        margin: 0 auto;
        border-radius: 0;
        background: transparent url(../img/faq-couple-rectangular.jpg) no-repeat center;
        background-size: cover;
    }

    .faq__deco--shapes {
        bottom: 16px;
        right: 39px;
        width: 58px;
    }

    .faq__deco--arrows {
        bottom: 22px;
        left: 39px;
        width: 80px;
    }

    .faq__deco--dots {
        display: none;
    }

    .faq__inner {
        display: block;
    }

    .faq__content {
        max-width: 100%;
    }

    .faq__title {
        text-align: center;
    }

}

@media (max-width: 991px) {
    .faq {
        padding: 0;
    }

    .faq__inner {
        padding: 0;
    }

    .faq__content {
        padding: 40px var(--gutter) 20px;
    }

    .faq__title {
        margin-bottom: 40px;
    }

    .accordion__q {
        font-size: 16px;
    }

    .accordion__a-inner p {
        font-size: 14px;
        letter-spacing: -0.28px;
    }

    .faq__link {
        max-width: 75px;
        padding: 0;
        font-size: 12px;
        font-weight: 400;
    }
}

@media (max-width: 575px) {
    .faq__content {
        padding: 40px var(--gutter);
    }

    .faq__photo {
        height: 367px;
        background: transparent url(../img/faq-couple-square.jpg) no-repeat center;
        background-size: cover;
    }

    .faq__title {
        margin-bottom: 30px;
    }

    .accordion__q {
        padding: 20px;
    }

    .accordion__a-inner {
        padding: 0 20px 20px;
    }

    .faq__deco--arrows {
        width: 57px;
        left: 14px;
        bottom: 12px;
    }

    .faq__deco--shapes {
        width: 42px;
        right: 26px;
        bottom: 25px;
    }

    .faq__link {
        font-size: 14px;
        max-width: 87px;
        margin: 21px auto 0;
    }
}

/* </editor-fold> */

/* <editor-fold desc="Why trust"> */
.why {
    position: relative;
    overflow: hidden;
    /* solid Purple Light base + a #5236B7 radial glow toward the lower centre */
    background: var(--yellow-bg);
    color: var(--white);
    padding-top: 14px;
}

.why__inner {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    padding: 115px 0; /* 570 section = 114 + 341 + 115 */
    text-align: center;
}

.why__title {
    font-size: var(--h2);
    color: var(--white);
}

.why__reasons {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.why__reason {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.4px;
}

.why__reason img {
    width: 31px;
    height: 31px;
}

/* Why-trust decorations */
.why::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    max-width: 1418px;
    left: 50%;
    top: 14px;
    bottom: 0;
    z-index: 1;
    background: url(../img/why-glow.svg) no-repeat center;
    background-size: cover;
    pointer-events: none;
    transform: translate(-50%, 0);
}

.why::after {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    top: 14px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    border-radius: 20px 20px 0 0;
    background: var(--purple-light);
}

.why__deco {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    height: auto;
    width: 100%;
}

.why__deco--coins {
    left: 117px;
    top: 0;
    max-width: 88px;
}

.why__deco--poly-left {
    left: 0;
    bottom: 56px;
    max-width: 378px;
}

.why__deco--poly-right {
    right: 0;
    top: 78px;
    max-width: 372px;
}

.why__deco--dollar {
    right: 113px;
    bottom: 79px;
    max-width: 119px;
}

@media (max-width: 991px) {
    .why {
        padding-top: 25px;
    }

    .why::before {
        top: 25px;
    }

    .why::after {
        top: 25px;
    }

    .why__inner {
        padding: 66px 0 72px;
        gap: 30px;
    }

    .why__deco--dollar {
        right: 34px;
        bottom: 67px;
        max-width: 64px;
    }

    .why__deco--coins {
        left: 47px;
        max-width: 48px;
    }

    .why__reason {
        font-size: 16px;
    }

    .why__reason img {
        width: 23px;
        height: 23px;
    }

    .why__deco--poly-left {
        max-width: 220px;
        bottom: 12px;
        left: -74px;
    }

    .why__deco--poly-right {
        max-width: 220px;
        right: -80px;
        top: 18px;
    }
}

@media (max-width: 575px) {
    .why__deco--coins {
        left: 50%;
        transform: translate(-50%, 0);
    }

    .why__inner {
        padding: 59px 0 41px;
    }

    .why__reasons {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .why__deco--poly-left, .why__deco--poly-right {
        max-width: 172px;
    }

    .why__deco--poly-left {
        bottom: auto;
        left: -110px;
        top: 83px;
    }

    .why__deco--poly-right {
        top: auto;
        bottom: -42px;
        right: -126px;
    }

    .why__deco--dollar {
        bottom: 176px;
        right: -7px;
    }
}

/* </editor-fold> */

/* </editor-fold> */

/* <editor-fold desc="10. Inner pages"> */

/* Generic centered intro block (How It Works, topic pages) */
.page-intro {
    padding: 72px 0 60px;
    text-align: center;
}

.page-intro__title {
    font-size: var(--h1);
    margin-bottom: 30px;
}

.page-intro__text {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-intro__text p {
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.4px;
    text-align: left;
    color: #484848;
}

/* How It Works intro — soft purple fade + glow */
.hiw-intro {
    position: relative;
    overflow: hidden;
    background: radial-gradient(1750px 600px at 50% 120%, rgba(188, 169, 255, 1) 0%, rgba(188, 169, 255, 0) 63.5%), var(--yellow-bg);
}

.hiw-intro::before {
    content: "";
    position: absolute;
    top: -55%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(130, 110, 240, 0.10) 0%, transparent 60%);
    pointer-events: none;
}

.hiw-intro .container {
    position: relative;
    z-index: 1;
}

/* Steps on a cream band (inner pages) */
.steps--band {
    background: var(--yellow-bg);
}

@media (max-width: 991px) {
    .page-intro {
        padding: 40px 0;
    }

    .page-intro__text p {
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .page-intro__title {
        margin-bottom: 26px;
    }

    .page-intro__text {
        gap: 26px;
    }
}

/* Topic page hero (Debt Consolidation, Bad Credit, Emergency, Personal Loans) */
.topic-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(1750px 1750px at 50% 120%, rgba(188, 169, 255, 1) 0%, rgba(188, 169, 255, 0) 63.5%), var(--yellow-bg);
}

.topic-hero::after {
    content: "";
    display: block;
    width: 100%;
    height: 20px;
    background: var(--yellow-bg);
    position: relative;
    z-index: 1;
    border-radius: 20px 20px 0 0;
}

.topic-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    column-gap: 15px;
    align-items: end;
    padding-top: 94px;
}

.topic-hero__inner--bad-credit {
    grid-template-columns: minmax(0, 1fr) 580px;
    column-gap: 100px;
}

.topic-hero__inner--emergency {
    padding-top: 118px;
    grid-template-columns: minmax(0, 1fr) 460px;
}

.topic-hero__inner--personal {
    padding-top: 129px;
    grid-template-columns: minmax(0, 1fr) 455px;
    column-gap: 0;
}

.topic-hero__col {
    align-self: start;
    padding: 73px 0 0;
}

.topic-hero__col--emergency {
    padding: 17px 0 0;
}

.topic-hero__col--personal {
    padding: 38px 0 0;
}

.topic-hero__title {
    font-size: var(--h1);
    max-width: 670px;
    margin-bottom: 25px;
}

.topic-hero__deco {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 477px;
    height: 693px;
    align-self: end;
}

.topic-hero__deco--bad-credit {
    width: 622px;
    height: 695px;
}

.topic-hero__deco--emergency {
    width: 591px;
    height: 670px;
}

.topic-hero__deco--personal {
    width: 501px;
    height: 659px;
}

.topic-hero__deco-dots {
    position: absolute;
    top: 65px;
    right: -102px;
    max-width: 381px;
    z-index: 0;
}

.topic-hero__deco-dots--bad-credit {
    top: 68px;
    right: -87px;
}

.topic-hero__deco-dots--emergency {
    top: 42px;
    right: -21px;
}

.topic-hero__deco-dots--personal {
    top: 31px;
    right: -114px;
}

.topic-hero__deco-zigzag {
    position: absolute;
    bottom: 135px;
    right: -163px;
    max-width: 85px;
    z-index: 0;
}

.topic-hero__deco-zigzag--emergency {
    right: -83px;
}

.topic-hero__deco-zigzag--personal {
    right: -176px;
}

.topic-hero__deco-cube {
    position: absolute;
    bottom: 93px;
    left: -20px;
    max-width: 357px;
    z-index: 0;
}

.topic-hero__deco-cube--bad-credit {
    display: none;
}

.topic-hero__deco-cube--emergency {
    bottom: 33px;
    left: -96px;
}

.topic-hero__deco-cube--personal {
    bottom: 23px;
    left: -183px;
}

.topic-hero__deco-photo {
    position: absolute;
    height: auto;
    z-index: 1;
}


/* Topic page intro line */
.topic-intro {
    background: var(--yellow-bg); /* flows into the cream steps band */
    text-align: center;
    padding: 40px 0 45px;
}

.topic-intro__title {
    font-size: var(--h2);
    margin-bottom: 60px;
}

.topic-intro__text {
    margin: 0 auto;
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.4px;
}

@media (max-width: 991px) {
    .topic-hero {
        background: radial-gradient(1250px 600px at 50% 120%, rgba(188, 169, 255, 1) 0%, rgba(188, 169, 255, 0) 63.5%), var(--yellow-bg);
    }

    .topic-hero__inner {
        padding-top: 50px;
        grid-template-columns: minmax(0, 1fr) 330px;
        column-gap: 0;
    }

    .topic-hero__inner--bad-credit {
        padding-top: 84px;
        grid-template-columns: minmax(0, 1fr) 360px;
    }

    .topic-hero__deco {
        width: 320px;
        height: 465px;
    }

    .topic-hero__deco--bad-credit {
        margin-top: 38px;
        width: 352px;
        height: 393px;
    }

    .topic-hero__deco--emergency {
        margin-top: 105px;
        width: 316px;
        height: 359px;
    }

    .topic-hero__deco--personal {
        margin-top: 111px;
        width: 270px;
        height: 354px;
    }

    .topic-hero__deco-dots {
        max-width: 244px;
        top: 36px;
        right: -34px;
    }

    .topic-hero__deco-dots--bad-credit {
        top: -38px;
        right: -25px;
    }

    .topic-hero__deco-dots--emergency {
        top: -72px;
        right: 0;
    }

    .topic-hero__deco-dots--personal {
        top: -75px;
        right: -61px;
    }

    .topic-hero__deco-zigzag {
        max-width: 54px;
        bottom: 24px;
        right: -28px;
    }

    .topic-hero__deco-zigzag--emergency {
        bottom: 24px;
        right: 0;
    }

    .topic-hero__deco-zigzag--personal {
        right: -65px;
    }

    .topic-hero__deco-cube {
        max-width: 228px;
        bottom: -8px;
        left: -113px;
    }

    .topic-hero__deco-cube--bad-credit {
        display: block;
        bottom: -8px;
        left: -85px;
    }

    .topic-hero__deco-cube--emergency {
        bottom: -7px;
        right: -143px;
    }

    .topic-hero__deco-cube--personal {
        right: -126px;
    }

    .topic-hero__col {
        padding: 0;
    }

    .topic-hero__title {
        max-width: none;
        margin-bottom: 20px;
        min-width: 390px;
    }

    .topic-hero__title--emergency {
        min-width: 451px;
    }

    .topic-hero__title--personal {
        min-width: 451px;
    }

    .topic-intro {
        padding: 20px 0;
    }

    .topic-intro__title {
        margin-bottom: 40px;
    }

    .topic-intro__text {
        font-size: 16px;
    }
}

@media (max-width: 750px) {
    .topic-hero {
        background: radial-gradient(1250px 920px at 50% 120%, rgba(188, 169, 255, 1) 0%, rgba(188, 169, 255, 0) 63.5%), var(--yellow-bg);
    }

    .topic-hero__inner {
        grid-template-columns: 1fr;
    }

    .topic-hero__title {
        min-width: auto;
    }

    .topic-hero__col .hero__actions {
        margin-bottom: 19px;
    }

    .topic-hero__deco {
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .topic-hero::after {
        border-radius: 12px 12px 0 0;
    }

    .topic-hero__inner {
        padding-top: 40px;
    }

    .topic-hero__col .hero__actions {
        align-items: center;
    }

    .topic-hero__deco {
        width: 246px;
        height: 321px;
    }

    .topic-hero__deco--bad-credit {
        width: 316px;
        height: 353px;
    }

    .topic-hero__deco--emergency {
        width: 251px;
        height: 284px;
    }

    .topic-hero__deco--personal {
        width: 246px;
        height: 323px;
    }

    .topic-hero__deco-dots {
        max-width: 195px;
        top: 44px;
        right: -7px;
    }

    .topic-hero__deco-dots--bad-credit {
        top: 77px;
        right: 30px;
    }

    .topic-hero__deco-dots--emergency {
        top: 8px;
        right: -10px;
    }

    .topic-hero__deco-dots--personal {
        top: 47px;
        right: -17px;
    }

    .topic-hero__deco-zigzag {
        max-width: 42px;
        right: -48px;
        bottom: 39px;
    }

    .topic-hero__deco-zigzag--bad-credit {
        right: -10px;
    }

    .topic-hero__deco-zigzag--personal {
        right: -58px;
    }

    .topic-hero__deco-cube {
        max-width: 182px;
        bottom: 2px;
        left: -42px;
    }

    .topic-hero__deco-cube--bad-credit {
        left: -10px;
    }

    .topic-hero__deco-cube--emergency {
        left: -35px;
    }

    .topic-hero__deco-cube--personal {
        left: -32px;
        bottom: -2px;
    }
	
	.topic-hero__deco-photo--debt {
		margin-bottom: -28px;	
	}

    .topic-intro__title {
        margin-bottom: 30px;
    }
}

@media (max-width: 350px) {
    .topic-hero__deco--bad-credit {
        width: 100%
    }
}

/* </editor-fold> */

/* <editor-fold desc="11. Contact page"> */
.contact-page {
    position: relative;
    overflow: hidden;
    background: radial-gradient(1750px 900px at 50% 120%, rgba(188, 169, 255, 1) 0%, rgba(188, 169, 255, 0) 63.5%), var(--yellow-bg);
    padding: 60px 0;
}
	.contact-page__aside {
	position: relative;
	z-index: 1;
	}

.contact-page__deco-dots {
    position: absolute;
    top: 100px;
    right: -90px;
    width: 381px;
    height: 381px;
    z-index: 0;
}

.contact-page__deco-cube {
    position: absolute;
    bottom: -153px;
    left: 375px;
    width: 357px;
    height: 289px;
    z-index: 0;
}

.contact-page__deco-zigzag {
    position: absolute;
    left: -60px;
    bottom: -10px;
    width: 85px;
    height: 20px;
    z-index: 0;
}

.contact-page__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 540px;
    column-gap: 30px;
    align-items: center;
}

.contact-page__title {
    font-size: var(--h1);
    margin-bottom: 25px;
}

.contact-page__copy {
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.4px;
}

.contact-page__copy a {
    color: var(--purple);
    text-decoration: underline;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-info__icon {
    flex-shrink: 0;
    color: var(--purple);
    line-height: 0;
}

.contact-info__label {
    font-size: var(--body);
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.36px;
    color: var(--black);
    margin-bottom: 3px;
}

.contact-info__value {
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--purple);
    text-decoration: underline;
    text-underline-offset: 5px;
    line-height: normal;
}

a.contact-info__value:hover {
    text-decoration: none;
}

.contact-info__value--address {
    text-decoration: none;
}

/* Form card */
.contact-form-card {
    background: var(--purple-vlight);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    z-index: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-form__group {
    position: relative;
    min-width: 0;
}

/* ----- Field states (Figma "Fields" style guide) -------------------------
   default  1px #D3D3D3        filled   1px #D3D3D3, text #252525
   active   1px #252525        focus    3px #FFC14C ring (keyboard)
   error    1px #EE5675        success  1px #6AC4B5
   disabled #D3D3D3 on #D3D3D3                                            */
.contact-form__field {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 50px;
    font-family: var(--font);
    font-size: 14px;
    line-height: normal;
    color: var(--black);
    background: var(--white);
    border: 1px solid var(--grey-disabled);
    border-radius: var(--radius);
    padding: 15px 18px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.contact-form__field::placeholder {
    color: #7E7E7E;
    opacity: 1;
}

/* active — pointer / typing */
.contact-form__field:focus {
    outline: none;
    border-color: var(--black);
}

/* focus — the ring is reserved for keyboard users (html.is-kbd set in script.js) */
.is-kbd .contact-form__field:focus {
    outline: none;
    border-color: var(--grey-disabled);
    box-shadow: 0 0 0 3px var(--yellow);
}

.contact-form__field:disabled {
    background: var(--grey-disabled);
    border-color: var(--grey-disabled);
    color: #7E7E7E;
    cursor: not-allowed;
}

/* .error / .valid are painted by the feed's jQuery Validation setup.
   It renders no message for regular fields (errorPlacement returns false),
   so the border is the entire feedback. */
.contact-form__field.error {
    border-color: var(--red);
}

.contact-form__field.valid {
    border-color: var(--turquoise);
}

/* the captcha is the one field that does get a message */
.contact-form__captcha .feedCaptcha-error {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--red);
}

.contact-form__message {
    min-height: 136px;
    resize: vertical;
}

.contact-form__captcha:empty {
    display: none;
}

/* ----- Phone field (intl-tel-input, styled to match the guide) ----------- */
.contact-form__group--phone {
    --iti-arrow-size: 7px;
    --iti-arrow-width: 2px;
    --iti-icon-color: #7E7E7E;
    --iti-hover-color: var(--grey-light);
    --iti-border-color: #ECECEC;
}

.contact-form__group--phone .iti {
    display: block;
    width: 100%;
}

/* country button: "US" + chevron, no flag (per the guide's collapsed state) */
.contact-form__group--phone .iti__country-container {
    padding: 1px;
}

.contact-form__group--phone .iti__selected-country {
    border-radius: var(--radius) 0 0 var(--radius);
    padding: 0 0 0 17px;
    background: transparent;
}

.contact-form__group--phone .iti__selected-country-primary {
    padding: 0;
    gap: 2px;
}

.contact-form__group--phone .iti__selected-country .iti__flag {
    display: none;
}

.contact-form__group--phone .iti__selected-iso {
    font-size: 14px;
    line-height: normal;
    color: var(--black);
}

/* the plugin draws the chevron itself (rotated borders) — just retune it */
.contact-form__group--phone .iti__arrow {
    visibility: visible;
    margin-left: 8px;
}

/* dropdown: white card, r12, 9px padding; selected row grey with a green tick */
/* panel keeps no padding of its own — the plugin caps it with max-height:100%,
   so any padding here pushes the list out of the rounded box */
.contact-form__group--phone .iti__country-selector {
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    max-height: none;
}

/* :not(.iti__hide) is required — a plain `display` here would outrank the
   plugin's .iti__hide rule and leave the dropdown permanently open */
.contact-form__group--phone .iti__country-selector:not(.iti__hide) {
    display: flex;
    flex-direction: column;
}

.contact-form__group--phone .iti__country-list {
    padding: 9px;
    overflow-y: auto; /* no permanent scrollbar gutter */
    scrollbar-width: thin;
    scrollbar-color: #D3D3D3 transparent;
}

.contact-form__group--phone .iti__country-list::-webkit-scrollbar {
    width: 6px;
}

.contact-form__group--phone .iti__country-list::-webkit-scrollbar-track {
    background: transparent;
}

.contact-form__group--phone .iti__country-list::-webkit-scrollbar-thumb {
    background: #D3D3D3;
    border-radius: 3px;
}

.contact-form__group--phone .iti__country {
    padding: 11px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--black);
}

.contact-form__group--phone .iti__country-name {
    font-size: 14px;
    color: var(--black);
}

.contact-form__group--phone .iti__dial-code {
    color: #7E7E7E;
}

.contact-form__group--phone .iti__country.iti__highlight,
.contact-form__group--phone .iti__country[aria-selected="true"] {
    background: var(--grey-light);
}

.contact-form__group--phone .iti__country-check,
.contact-form__group--phone .iti__country-check-svg {
    color: var(--green);
}

.contact-form__foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.contact-form__required {
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    color: var(--purple);
}

.contact-form__success {
    text-align: center;
    padding: 40px 20px;
    font-size: 20px;
    font-weight: 600;
    color: var(--purple);
}

@media (max-width: 991px) {
    .contact-page {
        padding: 40px 0;
        background: radial-gradient(900px 950px at 50% 65%, rgba(188, 169, 255, 1) 0%, rgba(188, 169, 255, 0) 63.5%), var(--yellow-bg);
    }

    .contact-page:after {
        content: "";
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 425px;
        border-radius: 20px 20px 0 0;
        background: var(--yellow-bg);
    }

    .contact-page__inner {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    .contact-page__title {
        margin-bottom: 20px;
    }

    .contact-page__copy {
        margin-bottom: 20px;
        font-size: 16px;
    }

    .contact-info {
        flex-direction: row;
        justify-content: space-between;
    }

    .contact-info__value {
        font-size: 18px;
    }

    .contact-info__icon {
        zoom: 0.8;
    }

    .contact-page__deco-dots {
        width: 244px;
        height: 244px;
        top: -167px;
        right: -160px;
    }

    .contact-page__deco-cube {
        width: 228px;
        height: 184px;
        bottom: 320px;
        left: 91px;
    }

    .contact-page__deco-zigzag {
        width: 54px;
        height: 12px;
        right: -32px;
        left: auto;
        bottom: 407px;
    }

    .contact-page__copy {
        max-width: none;
    }
}

@media (max-width: 575px) {
    .contact-page:after {
        border-radius: 12px 12px 0 0;
        height: 565px;
    }

    .contact-page__inner {
        row-gap: 30px;
    }

    .contact-info {
        flex-direction: column;
    }

    .contact-page__title {
        margin-bottom: 30px;
    }

    .contact-page__copy {
        margin-bottom: 30px;
    }

    .contact-form-card {
        padding: 22px;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
    }

    .contact-info__value {
        font-size: 17px;
    }

    .contact-form__foot {
        flex-direction: column-reverse;
    }

    .contact-form__required {
        margin-left: auto;
    }
}

/* </editor-fold> */

/* <editor-fold desc="12. FAQ page"> */
.faq-page {
    background: var(--yellow-bg);
    padding: 60px 0;
}

.faq-page__title {
    font-size: var(--h1);
    text-align: center;
    margin-bottom: 60px;
}

.faq-page .accordion {
    max-width: 1110px;
    margin: 0 auto;
}

.faq-page__cta {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

@media (max-width: 991px) {
    .faq-page {
        padding: 40px 0;
    }

    .faq-page__title {
        margin-bottom: 40px;
    }

    .faq-page__cta {
        margin-top: 40px;
    }
}

@media (max-width: 575px) {
    .faq-page__title {
        margin-bottom: 30px;
    }

    .faq-page__cta {
        margin-top: 30px;
    }
}

/* </editor-fold> */

/* <editor-fold desc="13. Legal pages (terms / privacy / rates & fees)"> */
.legal {
    background: var(--yellow-bg);
    padding: 60px 0;
}

.legal__title {
    font-size: var(--h1);
    text-align: center;
    margin-bottom: 60px;
}

.legal__content {
    max-width: var(--content-width);
    margin: 0 auto;
}

.legal__content *:not(a):empty {
    display: none;
}

.legal__content h1 {
    display: none;
}

.legal__content p {
    font-size: var(--body);
    line-height: normal;
    letter-spacing: -0.02em;
    color: var(--black);
    margin: 0 0 18px;
}

/* Section headings keep the body size and are set in bold, as in the design */
.legal__content h2 {
    font-size: var(--body);
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.02em;
    color: var(--black);
    margin: 30px 0 10px;
    scroll-margin-top: 24px; /* keeps the Table of Contents jumps clear of the top */
}

.legal__content > :first-child {
    margin-top: 0;
}

.legal__content strong {
    font-weight: 400;
}

.legal__content em {
    font-style: italic;
}

.legal__content a {
    color: var(--indigo);
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: anywhere; /* long e-mails / URLs must not overflow */
}

.legal__content a:hover {
    color: var(--purple);
}

.legal__content ul,
.legal__content ol {
    margin: 0 0 18px;
    padding-left: 26px;
}

.legal__content ul > li {
    list-style: disc;
}

.legal__content ol > li {
    list-style: decimal;
}

.legal__content li {
    font-size: var(--body);
    line-height: normal;
    letter-spacing: -0.02em;
    color: var(--black);
    margin-bottom: 8px;
}

.legal__content li::marker {
    color: var(--black);
}

@media (max-width: 991px) {
    .legal {
        padding: 40px 0;
    }

    .legal__title {
        margin-bottom: 40px;
    }

    .legal__content h2 {
        margin-top: 24px;
    }
}

@media (max-width: 575px) {
    .legal__title {
        margin-bottom: 30px;
    }

    .legal__content ul,
    .legal__content ol {
        padding-left: 20px;
    }
}

/* </editor-fold> */
