@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap");

/* ─── Tokens ──────────────────────────────────────────── */
:root {
    --white:   #ffffff;
    --gray-1:  #f5f5f7;
    --gray-2:  #e8e8ed;
    --gray-3:  #6e6e73;
    --dark:    #1d1d1f;
    --text:    #1d1d1f;
    --text-2:  #6e6e73;
    --blue:    #0071e3;
    --blue-dk: #0064cc;
    --line:    rgba(0, 0, 0, 0.08);

    --max-w:   1180px;
    --copy-w:  680px;
    --gutter:  clamp(1.5rem, 5vw, 3rem);
    --sec-y:   clamp(4.5rem, 9vw, 7.5rem);

    --ease:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --t:       200ms;
}

/* ─── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
    font-family: "Inter", -apple-system, "Helvetica Neue", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.47;
    color: var(--text);
    background: var(--white);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

/* ─── Type scale ──────────────────────────────────────── */
h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.07;
    color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.6rem); }

p { color: var(--text-2); line-height: 1.6; }
ul, ol { padding-left: 1.2em; }
li { color: var(--text-2); line-height: 1.6; }

/* ─── Nav ─────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    height: 52px;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: none;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    /* reset old styles */
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.brand-mark {
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: none;
    border-radius: 0.4rem;
    background: transparent;
    box-shadow: none;
}

.brand-label { display: flex; flex-direction: column; gap: 0; }
.brand-label strong { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.brand-label span {
    font-size: 0.625rem;
    color: var(--text-2);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}

.menu-toggle {
    display: none;
    border: none;
    background: none;
    color: var(--blue);
    font-size: 0.9375rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0.4rem 0;
}

.site-nav { display: flex; align-items: center; gap: 0; }

.site-nav a {
    font-size: 0.8125rem;
    color: var(--text-2);
    padding: 0.4rem 0.8rem;
    border-radius: 0.4rem;
    font-weight: 400;
    transition: color var(--t) var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active { color: var(--text); }

.nav-pill {
    color: var(--white) !important;
    background: var(--blue);
    border-radius: 980px;
    padding: 0.4rem 0.9rem;
    margin-left: 0.5rem;
    transition: background var(--t) var(--ease) !important;
}

.nav-pill:hover,
.nav-pill:focus-visible {
    background: var(--blue-dk) !important;
    color: var(--white) !important;
}

/* ─── Page shell ──────────────────────────────────────── */
main { width: 100%; }

.page-shell { display: block; }

/* ─── Section foundations ─────────────────────────────── */
.section-shell {
    width: 100%;
    background: var(--white);
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.section-shell + .section-shell {
    border-top: 1px solid var(--line);
}

.section-shell--alt  { background: var(--gray-1); }

.section-shell--dark {
    background: var(--dark);
    border-top: none;
}

.section-shell--dark p,
.section-shell--dark li { color: rgba(255, 255, 255, 0.65); }

.section-shell--dark h2,
.section-shell--dark h3,
.section-shell--dark h4 { color: var(--white); }

/* Padded, max-width content block */
.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: var(--sec-y) var(--gutter);
}

/* ─── Section heading ─────────────────────────────────── */
.eyebrow {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--blue);
    letter-spacing: 0.01em;
    margin-bottom: 0.6rem;
    text-transform: none;
}

.section-shell--dark .eyebrow { color: #6eb3ff; }

.section-heading { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-heading h2 { max-width: 15ch; margin-top: 0.35rem; }
.section-copy { max-width: var(--copy-w); margin-top: 1rem; font-size: 1.0625rem; }
.button-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }

/* ─── Hero ────────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--dark);
    /* reset old card styles */
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

.hero-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: clamp(3rem, 7vw, 6rem) var(--gutter);
    /* reset old styles */
    background: none;
    min-height: 0;
    display: block;
    overflow: visible;
}

.hero-panel--dark { background: none; color: var(--white); }

.hero-panel--dark h1,
.hero-panel--dark h2,
.hero-panel--dark h3 { color: var(--white); }

.hero-panel--dark p,
.hero-panel--dark li { color: rgba(255, 255, 255, 0.72); }

.hero-panel .eyebrow { color: rgba(255, 255, 255, 0.55); margin-bottom: 1rem; }

.hero-panel h1 {
    font-size: clamp(2.6rem, 6.5vw, 5.2rem);
    letter-spacing: -0.03em;
    max-width: 16ch;
    margin-bottom: 1.1rem;
}

.hero-copy {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    max-width: 44ch;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 2rem;
}

/* Hide old hero elements not used in new design */
.hero-visual  { display: none; }
.hero-lockup  { display: none; }
.hero-note    { display: none; }
.platform-pills { display: none; }

/* ─── Buttons ─────────────────────────────────────────── */
.hero-actions,
.button-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 2.75rem;
    padding: 0 1.25rem;
    border-radius: 980px;
    border: 1px solid transparent;
    font-weight: 400;
    font-size: 1.0625rem;
    letter-spacing: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity var(--t) var(--ease);
}

.button:hover  { opacity: 0.82; }
.button:active { opacity: 0.65; }

.button.primary  { background: var(--blue);    color: var(--white); }
.button.secondary { background: var(--gray-1); color: var(--text);  }
.button.ghost {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.18);
}
.button.full-width { width: 100%; }

/* ─── Feature split row (image + copy) ───────────────── */
.feature-image-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
}

.feature-image-row.reverse { direction: rtl; }
.feature-image-row.reverse > * { direction: ltr; }

.feature-row-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: clamp(3rem, 7vw, 5rem) var(--gutter);
    background: var(--white);
}

.feature-row-copy.on-gray { background: var(--gray-1); }
.feature-row-copy.on-dark { background: var(--dark); }
.feature-row-copy.on-dark h2,
.feature-row-copy.on-dark h3 { color: var(--white); }
.feature-row-copy.on-dark p  { color: rgba(255, 255, 255, 0.65); }

.feature-row-copy h2  { max-width: 12ch; }
.feature-row-copy p   { max-width: 36ch; font-size: 1.0625rem; }

.feature-row-image {
    overflow: hidden;
    background: var(--gray-1);
    position: relative;
}

.feature-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ─── Feature card grid ───────────────────────────────── */
.feature-grid {
    display: grid;
    gap: 1px;
    background: var(--line);
    grid-template-columns: repeat(3, 1fr);
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.feature-card {
    background: var(--white);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    display: grid;
    gap: 0.75rem;
    align-content: start;
    /* reset */
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-height: 0;
    position: static;
}

.feature-card::before,
.feature-card::after { display: none; }

.feature-card h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.feature-card p   { font-size: 0.9375rem; }

.feature-label,
.support-label,
.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blue);
    letter-spacing: 0.01em;
    text-transform: none;
}

/* ─── Steps ───────────────────────────────────────────── */
.steps-grid {
    display: grid;
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.step-card {
    background: var(--dark);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    display: grid;
    gap: 1rem;
    align-content: start;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.step-card h3 { color: var(--white) !important;              font-size: 1.2rem; letter-spacing: -0.02em; }
.step-card p  { color: rgba(255, 255, 255, 0.6) !important; font-size: 0.9375rem; }

/* ─── Support / platform cards ────────────────────────── */
.support-grid,
.platform-grid,
.contact-grid,
.faq-grid {
    display: grid;
    gap: 1px;
    background: var(--line);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.support-card,
.platform-card,
.contact-card,
.faq-item,
.info-card {
    background: var(--white);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    display: grid;
    gap: 0.75rem;
    align-content: start;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.support-card h3,
.platform-card h3,
.contact-card h3,
.faq-item h3 { font-size: 1.25rem; letter-spacing: -0.02em; }

.support-card h3 a { color: var(--blue); transition: opacity var(--t) var(--ease); }
.support-card h3 a:hover { opacity: 0.75; }
.support-card p,
.platform-card p { font-size: 0.9375rem; }

/* ─── Status chips ────────────────────────────────────── */
.platform-pill,
.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.7rem;
    border-radius: 980px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: none;
}

.platform-pill     { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }
.status-chip          { background: rgba(0,113,227,0.1);    color: var(--blue); }
.status-chip.neutral  { background: rgba(0,0,0,0.06);     color: var(--text); }
.status-chip.warning  { background: rgba(255,159,10,0.12); color: #904e00; }

/* Centre all content in platform cards */
.platform-card { text-align: center; }
.platform-card .status-chip { justify-self: center; }

/* ─── CTA band ────────────────────────────────────────── */
.cta-band {
    background: var(--gray-1);
    padding: var(--sec-y) var(--gutter);
    text-align: center;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.cta-band::before { display: none; }
.cta-band h2 { max-width: 16ch; margin: 0 auto; }
.cta-band p  { max-width: 42rem; margin: 1rem auto 0; }
.cta-band .button-row { justify-content: center; }

/* ─── Footer ──────────────────────────────────────────── */
.site-footer {
    width: 100%;
    padding: 1.5rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--gray-1);
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

.site-footer p { font-size: 0.75rem; color: var(--text-2); font-weight: 400; }

.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }

.site-footer a {
    font-size: 0.75rem;
    color: var(--text-2);
    font-weight: 400;
    transition: color var(--t) var(--ease);
}

.site-footer a:hover { color: var(--text); }

/* ─── Legal pages ─────────────────────────────────────── */
.legal-page main { background: var(--white); }

.policy-container,
.terms-container {
    max-width: var(--copy-w);
    margin: 4rem auto;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: none;
    background: var(--white);
}

.policy-header,
.terms-header { margin-bottom: 2rem; }

.policy-header h1,
.terms-header h1 { font-size: clamp(2rem, 4vw, 3rem); }

.last-updated {
    font-size: 0.875rem;
    color: var(--text-2);
    font-weight: 500;
    margin-top: 0.25rem;
    letter-spacing: 0;
    text-transform: none;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 2rem;
    font-size: 0.9375rem;
    color: var(--blue);
    font-weight: 400;
    border: none;
    background: none;
    padding: 0;
    border-radius: 0;
    transition: opacity var(--t) var(--ease);
}

.back-link:hover { opacity: 0.7; }
.back-link svg   { width: 1rem; height: 1rem; }

.policy-section,
.terms-section {
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    margin-top: 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.policy-section h2,
.terms-section h2 { font-size: 1.25rem; }

.policy-section h3,
.terms-section h3 { font-size: 1rem; }

.important-notice {
    padding: 1rem 1.25rem;
    background: rgba(0, 113, 227, 0.07);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 113, 227, 0.12);
}

.contact-info {
    padding: 1rem 1.25rem;
    background: var(--gray-1);
    border-radius: 0.75rem;
}

/* ─── Redirect / auth ─────────────────────────────────── */
.redirect-page main,
.auth-page main {
    background: var(--gray-1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

.simple-redirect {
    max-width: 560px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    text-align: center;
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.07);
    border: none;
}

.simple-redirect h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.simple-redirect p  { margin: 0.85rem auto 0; max-width: 32rem; }

/* ─── Misc components ─────────────────────────────────── */
.list-tight { display: grid; gap: 0.6rem; }

.checklist { list-style: none; padding-left: 0; }
.checklist li { padding-left: 1.4rem; position: relative; }
.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--blue);
    font-size: 0.875rem;
    font-weight: 600;
}

/* ─── Reveal animation ────────────────────────────────── */
[data-reveal],
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

[data-reveal].is-visible,
.reveal.is-visible { opacity: 1; transform: none; }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
    .feature-image-row,
    .feature-image-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .feature-row-image { aspect-ratio: 16 / 9; min-height: 260px; }

    .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
    .menu-toggle { display: block; }

    .site-nav {
        position: fixed;
        top: 52px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: saturate(180%) blur(20px);
        gap: 0.25rem;
        overflow-y: auto;
    }

    .site-nav.is-open { display: flex; }

    .site-nav a {
        font-size: 1.1875rem;
        padding: 0.85rem 0.75rem;
        border-radius: 0.5rem;
        color: var(--text);
    }

    .nav-pill {
        margin-left: 0;
        margin-top: 0.5rem;
        font-size: 1.0625rem;
        padding: 0.85rem 1rem;
        text-align: center;
    }

    .hero-section { min-height: 100svh; }

    .feature-row-copy { padding: 2.5rem var(--gutter); }

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

@media (max-width: 480px) {
    .support-grid,
    .platform-grid { grid-template-columns: 1fr; }

    .steps-grid { grid-template-columns: 1fr; }

    .button { font-size: 0.9375rem; height: 2.5rem; padding: 0 1rem; }
}
