:root {
    --navy: #0B1D3A;
    --navy-deep: #071327;
    --teal: #0FA3A3;
    --green: #22C55E;
    --mist: #F2F6FA;
    --ink: #0B1D3A;
    --muted: #5B6B82;
    --white: #FFFFFF;
    --line: rgba(255, 255, 255, 0.22);
    --font: 'Inter', 'Segoe UI', Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.landing-page {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--mist);
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 28px;
    min-height: 76px;
    padding: 14px 34px;
    color: var(--white);
    background: linear-gradient(180deg, rgba(7, 19, 39, 0.82), rgba(7, 19, 39, 0));
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 36px rgba(7, 19, 39, 0.22);
}

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

.brand-mark span {
    display: grid;
    gap: 1px;
    line-height: 1;
}

.brand-mark strong {
    font-size: 20px;
    font-weight: 900;
}

.brand-mark small {
    color: var(--teal);
    font-size: 11px;
    font-weight: 900;
}

.site-nav {
    justify-self: end;
    display: flex;
    gap: 26px;
    font-weight: 700;
    font-size: 14px;
}

.primary-cta,
.contact-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    font-weight: 800;
}

.primary-cta {
    padding: 0 20px;
    color: var(--navy);
    background: var(--green);
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: var(--white);
    isolation: isolate;
}

.hero-bg,
.image-story > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(7, 19, 39, 0.96), rgba(7, 19, 39, 0.72) 44%, rgba(7, 19, 39, 0.2)),
        linear-gradient(180deg, rgba(7, 19, 39, 0.18), rgba(7, 19, 39, 0.86));
}

.hero-content {
    width: min(980px, 100%);
    padding: 160px 40px 78px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero-content h1 {
    margin: 0;
    font-size: 78px;
    line-height: 0.95;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 720px;
    margin: 24px 0 0;
    font-size: 22px;
    line-height: 1.48;
    color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.34);
    color: rgba(255, 255, 255, 0.82);
}

.hero-metrics i {
    color: var(--green);
    font-size: 17px;
}

.statement-section {
    min-height: 34vh;
    display: flex;
    align-items: center;
    padding: 70px 40px;
    background: var(--white);
}

.statement-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.statement-inner p {
    margin: 0;
    max-width: 1100px;
    color: var(--navy);
    font-size: 42px;
    line-height: 1.18;
    font-weight: 800;
}

.mpesa-section {
    min-height: 58vh;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    align-items: center;
    gap: 50px;
    padding: 96px 40px;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(7, 19, 39, 0.96), rgba(11, 29, 58, 0.82), rgba(15, 163, 163, 0.72)),
        url("landing-tenant-dashboard.png") center / cover no-repeat;
}

.mpesa-copy {
    max-width: 680px;
}

.mpesa-copy h2 {
    margin: 0;
    font-size: 52px;
    line-height: 1.05;
    letter-spacing: 0;
}

.mpesa-copy p:not(.eyebrow) {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
    line-height: 1.65;
}

.mpesa-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.mpesa-flow span {
    display: grid;
    align-content: start;
    gap: 11px;
    min-height: 178px;
    padding: 0 0 18px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.36);
}

.mpesa-flow i {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--navy);
    background: var(--green);
    font-size: 28px;
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.25);
}

.mpesa-flow strong {
    font-size: 19px;
}

.mpesa-flow small {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

.image-story {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.image-story::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(7, 19, 39, 0.92), rgba(7, 19, 39, 0.34)),
        linear-gradient(180deg, rgba(7, 19, 39, 0.1), rgba(7, 19, 39, 0.68));
}

.tenant-story::after {
    background:
        linear-gradient(270deg, rgba(7, 19, 39, 0.94), rgba(7, 19, 39, 0.28)),
        linear-gradient(180deg, rgba(7, 19, 39, 0.08), rgba(7, 19, 39, 0.68));
}

.story-copy {
    width: min(650px, 100%);
    padding: 100px 40px;
    color: var(--white);
}

.story-copy.align-right {
    margin-left: auto;
}

.story-copy h2,
.pricing-head h2,
.contact-copy h2 {
    margin: 0;
    font-size: 52px;
    line-height: 1.05;
    letter-spacing: 0;
}

.story-copy p:not(.eyebrow),
.contact-copy p:not(.eyebrow) {
    margin: 22px 0 0;
    font-size: 19px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.84);
}

.line-list {
    display: grid;
    gap: 13px;
    margin-top: 30px;
    font-weight: 800;
}

.line-list span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.line-list i {
    color: var(--green);
}

.app-section {
    min-height: 96vh;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
    align-items: center;
    gap: 54px;
    padding: 110px 40px;
    overflow: hidden;
    color: var(--white);
    background:
        linear-gradient(105deg, rgba(7, 19, 39, 0.97), rgba(11, 29, 58, 0.88) 48%, rgba(15, 163, 163, 0.78)),
        url("landing-app-login.png") center / cover no-repeat;
}

.app-copy {
    max-width: 660px;
}

.app-copy h2 {
    margin: 0;
    font-size: 58px;
    line-height: 1.02;
    letter-spacing: 0;
}

.app-copy p:not(.eyebrow) {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 20px;
    line-height: 1.65;
}

.app-availability {
    display: grid;
    gap: 14px;
    margin-top: 32px;
    font-weight: 900;
}

.app-availability span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--line);
}

.app-availability i {
    color: var(--green);
    font-size: 20px;
}

.app-screens {
    position: relative;
    min-height: 650px;
}

.app-screen {
    position: absolute;
    margin: 0;
    width: min(280px, 42vw);
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 800;
}

.app-screen img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 28px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.36);
}

.app-screen figcaption {
    margin-top: 12px;
}

.app-screen-login {
    left: 4%;
    top: 24px;
    transform: rotate(-3deg);
}

.app-screen-signup {
    right: 4%;
    bottom: 10px;
    transform: rotate(4deg);
}

.pricing-section {
    padding: 100px 40px;
    background: var(--navy-deep);
    color: var(--white);
}

.pricing-head {
    width: min(1120px, 100%);
    margin: 0 auto 44px;
}

.pricing-head h2 {
    max-width: 880px;
}

.pricing-grid {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.price-column {
    min-height: 460px;
    padding: 34px 26px;
    border-right: 1px solid var(--line);
}

.price-column:last-child {
    border-right: 0;
}

.price-column.highlighted {
    background: linear-gradient(180deg, rgba(15, 163, 163, 0.28), rgba(34, 197, 94, 0.08));
}

.plan-name {
    display: block;
    color: var(--green);
    font-size: 15px;
    font-weight: 900;
}

.price-column strong {
    display: block;
    margin-top: 22px;
    font-size: 46px;
    line-height: 1;
}

.price-column small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.68);
}

.price-column p {
    min-height: 92px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
}

.price-column ul {
    display: grid;
    gap: 13px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.price-column li {
    padding-left: 22px;
    position: relative;
    color: rgba(255, 255, 255, 0.86);
}

.price-column li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.contact-section {
    min-height: 86vh;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
    align-items: center;
    gap: 60px;
    padding: 110px 40px;
    background:
        linear-gradient(90deg, rgba(242, 246, 250, 0.96), rgba(242, 246, 250, 0.78)),
        url("landing-tenant-dashboard.png") center / cover no-repeat;
}

.contact-copy {
    max-width: 620px;
}

.contact-copy h2 {
    color: var(--navy);
}

.contact-copy p:not(.eyebrow) {
    color: var(--muted);
}

.partner-lockup {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
    color: var(--navy);
    font-weight: 900;
}

.partner-lockup > span {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0;
}

.partner-lockup a,
.footer-brand-lockup a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
}

.partner-lockup img {
    width: 76px;
    height: 76px;
    display: block;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(7, 19, 39, 0.2);
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 0;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--navy);
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-bottom: 2px solid rgba(11, 29, 58, 0.24);
    border-radius: 0;
    padding: 10px 0;
    background: transparent;
    color: var(--navy);
    font: inherit;
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: var(--teal);
}

.full-span {
    grid-column: 1 / -1;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.form-footer p {
    min-height: 22px;
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.form-footer p.is-success {
    color: #137A3B;
}

.form-footer p.is-error {
    color: #BE123C;
}

.contact-form button {
    border: 0;
    padding: 0 24px;
    color: var(--white);
    background: var(--navy);
    cursor: pointer;
    gap: 10px;
}

.contact-form button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.site-footer {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    padding: 24px 40px;
    color: rgba(255, 255, 255, 0.78);
    background: var(--navy-deep);
    font-weight: 700;
}

.site-footer span {
    color: var(--white);
}

.footer-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.footer-brand-lockup > span {
    white-space: nowrap;
}

.footer-brand-lockup img {
    width: 56px;
    height: 56px;
    display: block;
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: 1fr;
        padding: 12px 20px;
    }

    .site-nav {
        display: none;
    }

    .hero-content {
        padding: 140px 24px 60px;
    }

    .hero-content h1 {
        font-size: 58px;
    }

    .hero-copy {
        font-size: 19px;
    }

    .statement-section,
    .mpesa-section,
    .pricing-section,
    .contact-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .statement-inner p,
    .mpesa-copy h2,
    .story-copy h2,
    .app-copy h2,
    .pricing-head h2,
    .contact-copy h2 {
        font-size: 38px;
    }

    .mpesa-section,
    .app-section,
    .pricing-grid,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .mpesa-flow {
        grid-template-columns: 1fr;
    }

    .price-column {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .price-column:last-child {
        border-bottom: 0;
    }

    .app-screens {
        min-height: 560px;
    }

    .app-screen {
        width: min(250px, 52vw);
    }
}

@media (max-width: 640px) {
    .brand-mark {
        width: fit-content;
        max-width: 100%;
    }

    .brand-mark img {
        width: 38px;
        height: 38px;
    }

    .brand-mark strong {
        font-size: 18px;
    }

    .hero-content h1 {
        font-size: 46px;
    }

    .hero-actions {
        display: grid;
    }

    .primary-cta {
        width: 100%;
    }

    .hero-metrics,
    .contact-form,
    .form-footer {
        display: grid;
    }

    .partner-lockup,
    .footer-brand-lockup {
        align-items: center;
    }

    .statement-inner p,
    .mpesa-copy h2,
    .story-copy h2,
    .app-copy h2,
    .pricing-head h2,
    .contact-copy h2 {
        font-size: 31px;
    }

    .story-copy {
        padding: 90px 24px;
    }

    .price-column strong {
        font-size: 38px;
    }

    .app-section {
        padding: 90px 24px;
        background: linear-gradient(150deg, var(--navy-deep), var(--navy) 58%, #0f8f91);
    }

    .app-screens {
        display: grid;
        gap: 24px;
        min-height: auto;
    }

    .app-screen {
        position: relative;
        width: min(270px, 78vw);
        transform: none;
    }

    .app-screen-login {
        left: 0;
        top: 0;
    }

    .app-screen-signup {
        right: auto;
        bottom: auto;
        justify-self: end;
    }
}
