:root {
    --navy: #082f49;
    --teal: #009da8;
    --teal-dark: #00647a;
    --coral: #f24f61;
    --orange: #f49a24;
    --text: #173650;
    --muted: #506779;
    --line: #dce6ea;
    --page: #f6f8f9;
    --shadow: 0 10px 28px rgba(8, 47, 73, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--page);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
}

a {
    color: inherit;
}

.page-shell {
    width: min(1320px, calc(100% - 72px));
    margin-inline: auto;
}

/* Header */

.site-header {
    min-height: 102px;
    display: flex;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #e4ebee;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--navy);
    text-decoration: none;
}

.brand img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 68px;
}

.brand-mark {
    width: 54px;
    height: 54px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    font-size: 30px;
    line-height: 0.85;
    letter-spacing: -0.03em;
}

.brand-copy strong {
    font-weight: 800;
}

.brand-copy span {
    font-weight: 400;
}

/* Hero */

.hero {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    background-image: url("assets/home-background.webp");
    background-position: center;
    background-size: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(247, 250, 251, 0.99) 0%,
            rgba(247, 250, 251, 0.97) 34%,
            rgba(247, 250, 251, 0.68) 51%,
            rgba(247, 250, 251, 0.06) 75%
        ),
        linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.22),
            rgba(255, 255, 255, 0.08)
        );
}

.hero-inner {
    position: relative;
    z-index: 1;
    min-height: 540px;
    display: flex;
    align-items: flex-start;
    padding-block: 54px 130px;
}

.hero-copy {
    width: min(850px, 65%);
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1.5px solid rgba(242, 79, 97, 0.66);
    border-radius: 999px;
    color: var(--coral);
    background: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    font-weight: 700;
}

.service-badge svg {
    width: 21px;
    height: 21px;
}

h1 {
    margin: 22px 0 18px;
    color: var(--navy);
    font-size: clamp(42px, 4.2vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.hero-copy p {
    margin: 0 0 18px;
    font-size: clamp(17px, 1.4vw, 21px);
    line-height: 1.48;
}

.hero-copy p:last-child {
    margin-bottom: 0;
}

/* Options */

.options-section {
    position: relative;
    z-index: 2;
    margin-top: -110px;
    padding-bottom: 30px;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.option-card {
    min-height: 384px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 26px 22px;
    text-align: center;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(215, 226, 231, 0.95);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.option-icon {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    margin-bottom: 12px;
    border: 1px solid #b9e2e4;
    border-radius: 50%;
    background: #f7fbfc;
}

.option-icon svg {
    width: 58px;
    height: 58px;
}

.option-icon--teal {
    color: #0d5a70;
}

.option-icon--swap {
    border-color: #f5c8ce;
}

.option-icon--orange {
    color: var(--orange);
    border-color: #f5cf96;
}

.option-icon--pin {
    color: var(--coral);
    border-color: #f5c8ce;
}

.option-logo {
    width: 100%;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.option-logo img {
    display: block;
    max-width: 100%;
    object-fit: contain;
}

.option-card h2 {
    margin: 0;
    color: var(--navy);
    font-size: 22px;
    line-height: 1.2;
}

.option-subtitle {
    margin: 5px 0 0;
    color: var(--teal);
    font-size: 16px;
    font-weight: 700;
}

.option-rule {
    width: 42px;
    height: 2px;
    flex: 0 0 auto;
    margin: 13px 0 15px;
    background: var(--teal);
}

.option-description {
    margin: 0 auto 18px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.42;
}

.option-button,
.option-note {
    width: 100%;
    min-height: 48px;
    margin-top: auto;
    border-radius: 8px;
}

.option-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    color: #fff;
    background: linear-gradient(135deg, #f24557, #f45c69);
    text-decoration: none;
    font-weight: 750;
    box-shadow: 0 6px 14px rgba(242, 79, 97, 0.23);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.option-button span {
    margin-left: auto;
    font-size: 28px;
    line-height: 0;
}

.option-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 18px rgba(242, 79, 97, 0.3);
}

.option-button:focus-visible {
    outline: 3px solid rgba(0, 157, 168, 0.4);
    outline-offset: 3px;
}

.option-note {
    display: grid;
    place-items: center;
    padding: 10px 13px;
    background: #eaf5fa;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
}

/* Disclaimer */

.disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 22px;
    padding: 16px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(8, 47, 73, 0.06);
}

.disclaimer svg {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    color: var(--teal-dark);
}

.disclaimer p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Footer */

.support-strip {
    background: linear-gradient(90deg, #005e77, #08768a);
    color: #fff;
}

.support-strip-inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
}

.support-strip svg {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
}

.support-strip p {
    margin: 0;
    font-size: 16px;
}

.legal-footer {
    background: #eeede2;
    color: #2f3335;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.legal-footer-inner {
    padding-block: 12px 18px;
    text-align: center;
}

.footer-contact,
.footer-joint {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
}

.footer-contact a {
    color: #438a87;
    text-decoration: none;
}

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

.footer-artwork {
    width: 100%;
    height: auto;
    margin-top: 8px;
}

.footer-companies {
    display: grid;
    grid-template-columns: 88px minmax(0, 1.45fr) 150px minmax(0, 1fr);
    align-items: center;
    column-gap: 20px;
    width: 100%;
    margin: 8px auto 0;
    text-align: left;
}

.footer-logo-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
}

.footer-company-logo {
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
}

.footer-company-logo--clarion {
    width: 68px !important;
    height: auto !important;
    max-width: 68px !important;
    max-height: 100px !important;
}

.footer-company-logo--101 {
    width: 135px !important;
    height: auto !important;
    max-width: 135px !important;
    max-height: 58px !important;
}

.footer-company-copy {
    min-width: 0;
    margin: 0;
    color: #333;
    font-size: 10.5px;
    line-height: 1.45;
    font-weight: 500;
}

/* Tablet */

@media (max-width: 1100px) {
    .page-shell {
        width: min(100% - 40px, 960px);
    }

    .hero-copy {
        width: 64%;
    }

    .option-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .option-card {
        min-height: 370px;
    }
}

/* Mobile */

@media (max-width: 760px) {
    .page-shell {
        width: min(100% - 28px, 680px);
    }

    .site-header {
        min-height: 68px;
    }

    .brand img {
        max-height: 44px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .brand-copy {
        font-size: 24px;
    }

    .hero {
        min-height: auto;
        background-position: 61% center;
    }

    .hero-shade {
        background:
            linear-gradient(
                180deg,
                rgba(247, 250, 251, 0.98) 0%,
                rgba(247, 250, 251, 0.95) 68%,
                rgba(247, 250, 251, 0.8) 100%
            );
    }

    .hero-inner {
        min-height: 480px;
        padding-top: 22px;
        padding-bottom: 105px;
        align-items: flex-start;
    }

    .hero-copy {
        width: 100%;
    }

    .service-badge {
        gap: 7px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .service-badge svg {
        width: 17px;
        height: 17px;
    }

    h1 {
        margin: 13px 0 10px;
        font-size: clamp(32px, 9vw, 42px);
        line-height: 1.02;
    }

    .hero-copy p {
        margin-bottom: 9px;
        font-size: 15px;
        line-height: 1.35;
    }

    .hero-copy p:last-child {
        margin-bottom: 0;
    }

    .options-section {
        margin-top: -88px;
    }

    .option-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .option-card {
        min-height: 350px;
        padding: 20px;
    }

    /*
     * Compact landlord card.
     * The first card needs:
     * class="option-card option-card--landlord"
     */
    .option-card--landlord {
        min-height: 0;
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        grid-template-areas:
            "icon heading"
            "icon description"
            "note note";
        align-items: center;
        column-gap: 14px;
        row-gap: 4px;
        padding: 14px 16px;
        text-align: left;
    }

    .option-card--landlord .option-icon {
        grid-area: icon;
        width: 48px;
        height: 48px;
        margin: 0;
        align-self: start;
    }

    .option-card--landlord .option-icon svg {
        width: 31px;
        height: 31px;
    }

    .option-card--landlord h2 {
        grid-area: heading;
        align-self: end;
        font-size: 18px;
    }

    .option-card--landlord .option-subtitle,
    .option-card--landlord .option-rule {
        display: none;
    }

    .option-card--landlord .option-description {
        grid-area: description;
        margin: 0;
        align-self: start;
        font-size: 13px;
        line-height: 1.32;
    }

    .option-card--landlord .option-note {
        grid-area: note;
        min-height: 0;
        margin-top: 6px;
        padding: 7px 10px;
        display: block;
        text-align: center;
        font-size: 11.5px;
        line-height: 1.25;
    }

    .disclaimer {
        align-items: flex-start;
        padding: 17px;
    }

    .disclaimer svg {
        width: 28px;
        height: 28px;
    }

    .support-strip-inner {
        padding-block: 15px;
        text-align: left;
    }

    .support-strip svg {
        width: 32px;
        height: 32px;
    }

    .support-strip p {
        font-size: 14px;
    }

    .footer-contact,
    .footer-joint {
        font-size: 10px;
    }

    .footer-companies {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
}

/* Small mobile */

@media (max-width: 420px) {
    .page-shell {
        width: calc(100% - 22px);
    }

    .site-header {
        min-height: 62px;
    }

    .brand img {
        max-height: 40px;
    }

    .hero-inner {
        min-height: 392px;
        padding-top: 18px;
        padding-bottom: 94px;
    }

    .service-badge {
        padding: 5px 10px;
        font-size: 11.5px;
    }

    .service-badge svg {
        width: 16px;
        height: 16px;
    }

    h1 {
        margin-top: 11px;
        margin-bottom: 9px;
        font-size: 31px;
    }

    .hero-copy p {
        margin-bottom: 8px;
        font-size: 14px;
        line-height: 1.32;
    }

    .options-section {
        margin-top: -78px;
    }

    .option-card--landlord {
        grid-template-columns: 44px minmax(0, 1fr);
        column-gap: 11px;
        padding: 12px 13px;
    }

    .option-card--landlord .option-icon {
        width: 44px;
        height: 44px;
    }

    .option-card--landlord .option-icon svg {
        width: 28px;
        height: 28px;
    }

    .option-card--landlord h2 {
        font-size: 17px;
    }

    .option-card--landlord .option-description {
        font-size: 12.5px;
    }

    .option-card--landlord .option-note {
        margin-top: 5px;
        padding: 6px 8px;
        font-size: 11px;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}