:root {
    --ink: #111111;
    --paper: #F8F6F1;
    --stone: #D8CFC4;
    --muted: #8C8C8C;
    --white: #FFFFFF;
    --line: rgba(17, 17, 17, 0.12);
    --shadow: 0 24px 70px rgba(17, 17, 17, 0.12);
    --serif: Georgia, "Times New Roman", serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 74px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(248, 246, 241, 0.14);
    color: var(--white);
    background: rgba(17, 17, 17, 0.92);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.main-nav,
.site-footer nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.menu-toggle {
    display: none;
}

.main-nav a,
.site-footer nav a {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.82rem;
    font-weight: 600;
    transition: color 180ms ease;
}

.main-nav a:hover,
.site-footer nav a:hover {
    color: var(--white);
}

.section-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.hero {
    display: grid;
    gap: 54px;
    min-height: calc(88vh - 73px);
    align-items: center;
    padding: 46px 0 54px;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 0.98;
}

h1 {
    margin-bottom: 20px;
    font-size: clamp(4.8rem, 20vw, 11rem);
    letter-spacing: 0;
}

.hero-logo {
    width: min(310px, 72vw);
    margin: 0 0 24px;
}

.hero-logo img {
    display: block;
    width: 100%;
    height: auto;
}

h2 {
    max-width: 760px;
    margin-bottom: 0;
    font-size: clamp(2.2rem, 8vw, 5.8rem);
    letter-spacing: 0;
}

h3 {
    margin-bottom: 12px;
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.18;
}

.hero-subtitle {
    max-width: 700px;
    margin-bottom: 18px;
    font-size: clamp(2.35rem, 5vw, 4.25rem);
    font-family: var(--serif);
    line-height: 1.02;
}

.hero-description {
    max-width: 660px;
    margin-bottom: 30px;
    color: #494949;
    font-size: 1.06rem;
}

.store-actions {
    display: grid;
    gap: 12px;
}

.store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 20px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--white);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    text-align: center;
    cursor: default;
    white-space: nowrap;
}

.store-button:disabled {
    opacity: 1;
    -webkit-text-fill-color: currentColor;
}

.store-button-light {
    background: transparent;
    color: var(--ink);
}

.hero-visual {
    position: relative;
    min-height: 500px;
    margin: 0;
    border: 1px solid var(--line);
    background: var(--stone);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.02), rgba(17, 17, 17, 0.38));
}

.hero-visual img,
.editorial-strip img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-visual img {
    position: absolute;
    inset: 0;
}

.app-preview {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    width: min(300px, calc(100% - 48px));
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(248, 246, 241, 0.9);
    box-shadow: 0 22px 60px rgba(17, 17, 17, 0.28);
    backdrop-filter: blur(18px);
}

.app-preview::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    margin: 0 auto 24px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.24);
}

.app-preview > span,
.feature-card span,
.step span,
.editorial-strip span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.app-preview > strong {
    display: block;
    margin-bottom: 8px;
    font-family: var(--serif);
    font-size: 1.65rem;
    font-weight: 500;
}

.app-preview p,
.feature-card p,
.legal-card p,
.step h3 {
    margin-bottom: 0;
}

.match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.match-row span {
    margin: 0;
}

.match-row strong {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 500;
}

.editorial-strip {
    display: grid;
    gap: 14px;
    padding: 0 0 72px;
}

.editorial-strip article {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    background: var(--ink);
}

.editorial-strip article::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(17, 17, 17, 0.78));
}

.editorial-strip div {
    position: absolute;
    right: 20px;
    bottom: 18px;
    left: 20px;
    z-index: 1;
    color: var(--white);
}

.editorial-strip p {
    max-width: 280px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
}

.feature-band {
    padding: 72px 0;
    background: var(--ink);
    color: var(--white);
}

.section-heading {
    margin-bottom: 36px;
}

.feature-grid {
    display: grid;
    gap: 14px;
}

.feature-card,
.step,
.legal-card {
    border: 1px solid var(--line);
    background: var(--white);
}

.feature-card {
    min-height: 220px;
    padding: 26px;
    color: var(--ink);
}

.feature-card p {
    color: #525252;
}

.process {
    padding: 72px 0;
}

.steps {
    display: grid;
    gap: 14px;
}

.step {
    padding: 28px;
    background: transparent;
}

.page-main {
    padding: 56px 0 72px;
}

.page-hero {
    margin-bottom: 36px;
}

.page-hero h1 {
    font-size: clamp(3rem, 13vw, 7rem);
}

.page-hero p {
    max-width: 760px;
    color: #4d4d4d;
    font-size: 1.05rem;
}

.last-updated {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.legal-grid {
    display: grid;
    gap: 14px;
}

.legal-card {
    padding: 24px;
}

.legal-card ul {
    margin: 12px 0 0;
    padding-left: 20px;
    color: #4d4d4d;
}

.legal-card li + li {
    margin-top: 8px;
}

.legal-document {
    max-width: 860px;
}

.legal-document h2 {
    margin: 34px 0 12px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    font-family: var(--serif);
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 500;
    line-height: 1.08;
}

.legal-document p,
.legal-document li {
    color: #4d4d4d;
}

.legal-document ul {
    margin: 12px 0 0;
    padding-left: 20px;
}

.legal-document li + li {
    margin-top: 8px;
}

.contact-link {
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-footer {
    padding: 34px 20px;
    background: var(--ink);
    color: var(--white);
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    width: min(1120px, 100%);
    margin: 0 auto 22px;
}

.site-footer p {
    width: min(1120px, 100%);
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
}

@media (min-width: 640px) {
    .store-actions {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
        max-width: 560px;
    }

    .feature-grid,
    .steps,
    .legal-grid,
    .editorial-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .site-header {
        padding-inline: 34px;
    }

    .hero {
        grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
        padding-top: 42px;
    }

    .editorial-strip {
        grid-template-columns: 1.2fr 0.9fr 0.9fr;
    }

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

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

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

@media (max-width: 760px) {
    .section-shell {
        width: min(100% - 32px, 1120px);
    }

    .site-header {
        position: sticky;
        align-items: center;
        gap: 14px;
        min-height: 68px;
        padding: 10px 16px 12px;
    }

    .brand img {
        width: 44px;
        height: 44px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        width: 44px;
        height: 44px;
        margin-left: auto;
        border: 1px solid rgba(255, 255, 255, 0.18);
        background: transparent;
        color: var(--white);
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        background: currentColor;
        transition: transform 180ms ease, opacity 180ms ease;
    }

    .site-header.nav-open .menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header.nav-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.nav-open .menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: grid;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        border-bottom: 1px solid rgba(248, 246, 241, 0.14);
        background: rgba(17, 17, 17, 0.98);
        transition: max-height 220ms ease;
    }

    .site-header.nav-open .main-nav {
        max-height: 320px;
    }

    .main-nav a {
        padding: 15px 20px;
        border-top: 1px solid rgba(248, 246, 241, 0.1);
        font-size: 0.9rem;
    }

    .hero {
        gap: 30px;
        min-height: auto;
        padding: 38px 0 42px;
    }

    .hero-logo {
        width: min(250px, 68vw);
        margin-bottom: 18px;
    }

    .eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.14em;
    }

    .hero-subtitle {
        font-size: clamp(2.45rem, 14vw, 3.5rem);
        line-height: 1;
    }

    .hero-description {
        font-size: 1rem;
    }

    .store-actions {
        gap: 10px;
    }

    .store-button {
        min-height: 50px;
        white-space: normal;
    }

    .hero-visual {
        min-height: 430px;
    }

    .app-preview {
        right: 14px;
        bottom: 14px;
        width: min(280px, calc(100% - 28px));
        padding: 18px;
    }

    .app-preview > strong {
        font-size: 1.45rem;
    }

    .match-row strong {
        font-size: 1.65rem;
    }

    .editorial-strip {
        padding-bottom: 54px;
    }

    .editorial-strip article {
        min-height: 220px;
    }

    .feature-band,
    .process {
        padding: 58px 0;
    }

    .feature-card,
    .step,
    .legal-card {
        padding: 22px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 420px) {
    .hero-logo {
        width: min(220px, 70vw);
    }

    .hero-subtitle {
        font-size: clamp(2.2rem, 13vw, 3rem);
    }

    .hero-visual {
        min-height: 380px;
    }
}
