:root {
    --bg: #f4efe5;
    --surface: #fffdf7;
    --surface-soft: #f7f1e7;
    --ink: #15130f;
    --muted: #6d665b;
    --line: #d8cfbf;
    --accent: #15130f;
    --danger: #6e2f21;
    --shadow: 0 18px 40px rgba(21, 19, 15, 0.06);
    --font-display: "Cormorant Garamond", "Libre Baskerville", Georgia, serif;
    --font-mono: "IBM Plex Mono", "Courier Prime", Consolas, monospace;
    --font-wordmark: "Libre Baskerville", Georgia, serif;
    --brand-spacing-a23: 0.09em;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-mono);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.landing-page {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.hero-band,
.content-band {
    border-top: 1px solid var(--line);
}

.content-band {
    padding: 72px 0 78px;
}

.hero-band {
    display: grid;
    grid-template-columns: minmax(0, 760px);
    gap: 0;
    align-items: center;
    justify-content: start;
    min-height: calc(100vh - 56px);
    padding-top: 39px;
    padding-bottom: 39px;
}

.brand-mark {
    display: inline-grid;
    justify-items: end;
    gap: 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ink);
}

.brand-lockup {
    display: inline-grid;
}

.varica-wordmark {
    display: inline-block;
    font-family: var(--font-wordmark);
    font-size: 36px;
    font-weight: 700;
    line-height: .94;
    letter-spacing: var(--brand-spacing-a23);
    text-transform: uppercase;
    color: var(--ink);
}

.varica-wordmark--hero {
    font-size: 38px;
}

.varica-wordmark--section {
    font-size: 20px;
}

.varica-brand-subtitle {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.varica-brand-signoff {
    text-align: right;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: none;
}

.eyebrow {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-copy h1,
.section-headline h2,
.final-copy h2 {
    margin: 18px 0 0;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0;
    color: var(--ink);
}

.final-copy .brand-lockup {
    margin-bottom: 18px;
}

.hero-copy h1 {
    font-size: clamp(54px, 8vw, 88px);
    line-height: .9;
}

.hero-copy h2 {
    max-width: 700px;
    margin: 18px 0 0;
    font-family: var(--font-display);
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 600;
    line-height: 1.12;
}

.lead,
.final-copy p,
.section-note,
.compare-conclusion p,
.integration-note p {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.hero-actions {
    margin-top: 22px;
}

.cta-button {
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fffdf7;
    font-weight: 700;
    border-radius: 0;
    transition: background-color .22s ease;
}

.cta-button:hover {
    background: #2d281f;
}

.hero-preview {
    padding-top: 0;
    align-self: center;
}

.preview-shell {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.preview-topbar {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
}

.preview-topbar span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #c9bea8;
}

.preview-page {
    padding: 22px;
    min-height: 360px;
}

.preview-kicker {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.preview-placeholder {
    display: grid;
    place-items: center;
    min-height: 260px;
    margin-top: 12px;
    border: 1px dashed var(--line);
    background: #ffffff;
    text-align: center;
    padding: 24px;
}

.preview-placeholder strong {
    display: block;
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 1;
    margin-bottom: 12px;
}

.preview-placeholder p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    max-width: 360px;
}

.section-headline {
    margin-bottom: 36px;
}

.section-headline h2,
.final-copy h2 {
    font-size: clamp(34px, 5vw, 54px);
    line-height: .98;
}

.value-grid,
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.value-card,
.compare-column,
.step-card,
.crm-pill,
.signal-step,
.auth-panel {
    border: 1px solid var(--line);
    background: var(--surface);
}

.value-card,
.compare-column {
    padding: 20px;
}

.compare-column:first-child {
    background: #f6f1e8;
    border-color: #ded3c2;
}

.compare-column:first-child h3 {
    color: #7f7668;
}

.compare-column:first-child li {
    color: #857c6d;
}

.value-card h3,
.compare-column h3 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 1;
}

.value-card p,
.compare-column li,
.step-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.compare-column ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 12px;
}

.compare-column--accent {
    background: #15130f;
    border-color: #15130f;
}

.compare-column--accent h3 {
    color: #fffdf7;
}

.compare-column--accent li {
    color: rgba(255, 253, 247, 0.84);
}

.integration-note {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    text-align: left;
}

.integration-note strong {
    display: block;
    margin-top: 10px;
    max-width: 900px;
    font-family: var(--font-display);
    font-size: clamp(42px, 5vw, 64px);
    line-height: 0.98;
}

.signal-flow {
    position: relative;
    display: grid;
    gap: 0;
    width: min(840px, 100%);
    margin: 0 auto;
    padding-left: 34px;
}

.signal-flow::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 6px;
    width: 1px;
    background: var(--line);
}

.signal-step {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 28px;
    align-items: baseline;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: none;
}

.signal-step::before {
    content: "";
    position: absolute;
    top: 23px;
    left: -33px;
    width: 11px;
    height: 11px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--bg);
}

.signal-step span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.signal-step p {
    margin: 0;
    color: var(--ink);
}

.signal-stamp {
    width: fit-content;
    margin: 24px 0 10px 92px;
    padding: 10px 18px 9px;
    border: 1px solid var(--ink);
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    transform: rotate(-1deg);
}

.steps-grid {
    gap: 12px;
}

.step-card {
    display: grid;
    gap: 18px;
    min-height: 176px;
    padding: 18px;
}

.step-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}

.crm-row {
    display: grid;
    grid-template-columns: minmax(0, 320px);
    gap: 12px;
    justify-content: center;
}

.crm-pill {
    min-height: 120px;
    display: grid;
    place-items: center;
    padding: 16px;
    font-family: var(--font-display);
    font-size: 28px;
    text-align: center;
}


.final-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 36px;
    align-items: start;
    padding-bottom: 0;
}

.auth-panel {
    box-shadow: var(--shadow);
    border-radius: 0;
    overflow: hidden;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
}

.auth-tab {
    min-height: 56px;
    border: 0;
    border-right: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.auth-tab:last-child {
    border-right: 0;
}

.auth-tab.active {
    background: var(--surface);
    color: var(--ink);
    box-shadow: inset 0 -2px 0 var(--ink);
}

.auth-form {
    display: none;
    padding: 24px;
}

.auth-form.active {
    display: grid;
    gap: 16px;
}

.auth-form label {
    display: grid;
    gap: 7px;
}

.auth-form span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #fffaf0;
    color: var(--ink);
    padding: 0 12px;
    outline: none;
}

.auth-form input:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 1px var(--ink);
}

.auth-form button {
    min-height: 48px;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--ink);
    color: #fffdf7;
    font-weight: 700;
}

.auth-form button:hover {
    background: #2d281f;
}

.auth-form button:disabled {
    opacity: .65;
    cursor: wait;
}

.hint,
.status {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.status.error {
    color: var(--danger);
}

@media (max-width: 1100px) {
    .hero-band,
    .final-band {
        grid-template-columns: 1fr;
    }

    .hero-band {
        min-height: auto;
    }

    .value-grid,
    .steps-grid,
    .crm-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .landing-page {
        width: min(100% - 28px, 720px);
        padding-bottom: 32px;
    }

    .hero-band,
    .content-band {
        padding: 24px 0 28px;
    }

    .hero-band {
        min-height: auto;
        gap: 28px;
    }

    .hero-copy h1 {
        font-size: 52px;
    }

    .hero-copy h2,
    .section-headline h2,
    .final-copy h2 {
        font-size: 34px;
    }

    .preview-page {
        padding: 18px;
        min-height: 300px;
    }

    .preview-placeholder {
        min-height: 220px;
        padding: 22px;
    }

    .value-grid,
    .steps-grid,
    .compare-grid,
    .crm-row {
        grid-template-columns: 1fr;
    }

    .integration-note strong {
        font-size: 36px;
    }

    .signal-flow {
        padding-left: 24px;
    }

    .signal-flow::before {
        left: 4px;
    }

    .signal-step {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 16px;
    }

    .signal-step::before {
        left: -25px;
    }

    .signal-stamp {
        margin-left: 58px;
    }
}
