/* ============================================================
   GENIUS PAY — Claude/Anthropic-inspired light editorial theme
   Warm ivory paper, clay accent, serif display
   ============================================================ */

:root {
    --bg: #faf9f5;
    --bg-soft: #f4f1ea;
    --surface: #ffffff;
    --clay-bg: #f6ede7;
    --border: #e8e6de;
    --border-strong: #d9d5c9;
    --ink: #191817;
    --muted: #66645e;
    --faint: #a3a09a;
    --clay: #d97757;
    --clay-dark: #b85c3e;
    --clay-soft: rgba(217, 119, 87, 0.12);
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --radius: 18px;
    --maxw: 1120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: var(--clay);
    color: #fff;
}

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

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

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
}

/* ---------------- Nav ---------------- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 249, 245, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--clay);
    color: #fff;
    font-family: var(--serif);
    font-weight: 600;
    font-style: italic;
    font-size: 19px;
    display: grid;
    place-items: center;
}

.brand-name {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 21px;
    letter-spacing: -0.01em;
}

.brand-name em {
    font-style: italic;
    color: var(--clay);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--ink);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--sans);
    font-size: 14.5px;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.22s ease;
    white-space: nowrap;
}

.btn-solid {
    background: var(--clay);
    color: #fff;
}

.btn-solid:hover {
    background: var(--clay-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(217, 119, 87, 0.35);
}

.btn-ghost {
    border-color: var(--border-strong);
    color: var(--ink);
    background: transparent;
}

.btn-ghost:hover {
    border-color: var(--ink);
    background: var(--surface);
}

.nav .btn {
    padding: 10px 20px;
    font-size: 13.5px;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 14px;
    cursor: pointer;
}

/* ---------------- Hero ---------------- */

.hero {
    padding: 178px 0 90px;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    padding: 8px 18px;
    background: var(--surface);
    margin-bottom: 30px;
}

.badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--clay);
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(46px, 6.2vw, 84px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.015em;
    max-width: 920px;
    margin: 0 auto 28px;
}

.hero h1 em {
    font-style: italic;
    color: var(--clay);
}

.hero .lede {
    color: var(--muted);
    font-size: 19px;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 38px;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 72px;
}

.hero-diagram {
    max-width: 860px;
    margin: 0 auto;
}

.hero-diagram svg {
    width: 100%;
    height: auto;
}

.chips-row {
    margin-top: 64px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 34px;
    flex-wrap: wrap;
}

.chips-row span {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--faint);
}

/* ---------------- Stats ---------------- */

.stats {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat {
    padding: 40px 34px;
    border-left: 1px solid var(--border);
    text-align: center;
}

.stat:first-child {
    border-left: none;
}

.stat .num {
    font-family: var(--mono);
    font-size: 34px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat .num .clay {
    color: var(--clay);
}

.stat .lbl {
    font-size: 13.5px;
    color: var(--muted);
}

/* ---------------- Sections ---------------- */

section {
    padding: 104px 0;
}

.sec-num {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.12em;
    color: var(--clay);
    margin-bottom: 18px;
}

h2.sec-title {
    font-family: var(--serif);
    font-size: clamp(32px, 3.8vw, 52px);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.1;
    max-width: 640px;
}

.sec-lead-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.sec-lead-grid .lead {
    font-family: var(--serif);
    font-size: clamp(24px, 2.6vw, 33px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.sec-lead-grid .body-text {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.sec-lead-grid .body-text p + p {
    margin-top: 18px;
}

.sec-lead-grid .body-text a {
    color: var(--clay);
    border-bottom: 1px solid var(--clay-soft);
}

/* ---------------- Feature rows ---------------- */

.feat-rows {
    margin-top: 64px;
    border-top: 1px solid var(--border);
}

.feat-row {
    display: grid;
    grid-template-columns: 64px 1fr 1.1fr;
    gap: 40px;
    align-items: baseline;
    padding: 34px 0;
    border-bottom: 1px solid var(--border);
}

.feat-row .idx {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--clay);
}

.feat-row h3 {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.feat-row p {
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.7;
}

/* ---------------- Timeline ---------------- */

.timeline {
    margin-top: 56px;
    max-width: 720px;
}

.tl-step {
    position: relative;
    padding: 0 0 48px 58px;
}

.tl-step:last-child {
    padding-bottom: 0;
}

.tl-step::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 34px;
    bottom: 6px;
    width: 1px;
    background: var(--border-strong);
}

.tl-step:last-child::before {
    display: none;
}

.tl-dot {
    position: absolute;
    left: 0;
    top: 3px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--clay);
    display: grid;
    place-items: center;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--clay);
}

.tl-step h3 {
    font-family: var(--serif);
    font-size: 23px;
    font-weight: 500;
    margin-bottom: 8px;
}

.tl-step p {
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.7;
}

/* ---------------- Comparison ---------------- */

.cmp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 56px;
}

.cmp-col {
    border-radius: var(--radius);
    padding: 36px 34px;
}

.cmp-col.legacy {
    background: var(--bg-soft);
    border: 1px solid var(--border);
}

.cmp-col.genius {
    background: var(--surface);
    border: 1.5px solid var(--clay);
    box-shadow: 0 12px 40px rgba(217, 119, 87, 0.12);
}

.cmp-col header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.cmp-col.legacy header {
    border-color: var(--border-strong);
}

.cmp-col h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
}

.cmp-tag {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
}

.cmp-col.legacy .cmp-tag {
    background: #e6e3da;
    color: var(--muted);
}

.cmp-col.genius .cmp-tag {
    background: var(--clay-soft);
    color: var(--clay-dark);
}

.cmp-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14.5px;
}

.cmp-item:last-child {
    border-bottom: none;
}

.cmp-item .k {
    color: var(--muted);
}

.cmp-item .v {
    font-family: var(--mono);
    font-size: 13px;
    text-align: right;
    color: var(--ink);
}

.cmp-col.legacy .v {
    color: var(--muted);
}

.cmp-col.genius .v {
    color: var(--clay-dark);
    font-weight: 500;
}

/* ---------------- CTA ---------------- */

.cta-band {
    background: var(--clay-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 112px 0;
    text-align: center;
}

.cta-band .sec-num {
    text-align: center;
}

.cta-band h2 {
    font-family: var(--serif);
    font-size: clamp(34px, 4.4vw, 60px);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.06;
    max-width: 760px;
    margin: 0 auto 22px;
}

.cta-band h2 em {
    font-style: italic;
    color: var(--clay);
}

.cta-band p {
    color: var(--muted);
    font-size: 17.5px;
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.cta-band .hero-ctas {
    margin-bottom: 0;
}

/* ---------------- Footer ---------------- */

footer {
    padding: 52px 0 44px;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
}

.footer-copy {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--faint);
}

.footer-links {
    display: flex;
    gap: 26px;
}

.footer-links a {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--clay);
}

/* ---------------- Reveal ---------------- */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 980px) {
    .sec-lead-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feat-row {
        grid-template-columns: 48px 1fr;
        gap: 10px 28px;
    }

    .feat-row p {
        grid-column: 2;
    }

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

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

    .stat {
        border-top: 1px solid var(--border);
    }

    .stat:nth-child(-n + 2) {
        border-top: none;
    }

    .stat:nth-child(odd) {
        border-left: none;
    }
}

@media (max-width: 720px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 8px 28px 18px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 13px 0;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding-top: 142px;
    }

    section {
        padding: 76px 0;
    }

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

    .feat-row p {
        grid-column: 1;
    }

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

    .stat {
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .stat:first-child {
        border-top: none;
    }
}
