:root {
    --bg: #f7f7f2;
    --ink: #151a18;
    --muted: #66726d;
    --line: #d9ded8;
    --paper: #ffffff;
    --blue: #2f6fed;
    --blue-dark: #2457bd;
    --green: #168466;
    --yellow: #f2ba4a;
    --shadow: 0 24px 70px rgba(25, 32, 29, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.55;
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    min-height: 72px;
    padding: 0 clamp(18px, 5vw, 72px);
    border-bottom: 1px solid var(--line);
    background: rgba(247, 247, 242, 0.9);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 850;
}

.brand span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
}

.nav {
    display: flex;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}

.nav a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.nav a[aria-current="page"] {
    background: var(--ink);
    color: #fff;
}

.top-cta {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(340px, 450px);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    min-height: calc(82vh - 72px);
    padding: clamp(42px, 5.2vw, 70px) clamp(18px, 5vw, 72px) clamp(34px, 4.4vw, 54px);
}

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

.kicker {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

h1 {
    max-width: 980px;
    margin-bottom: 24px;
    font-size: clamp(3rem, 5.25vw, 5.75rem);
    line-height: 1;
    letter-spacing: 0;
}

.lead {
    max-width: 740px;
    margin-bottom: 28px;
    color: #394842;
    font-size: clamp(1.08rem, 1.8vw, 1.32rem);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 850;
}

.button.primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 14px 30px rgba(47, 111, 237, 0.2);
}

.button.primary:hover,
.top-cta:hover {
    background: var(--blue-dark);
}

.button.secondary {
    border: 1px solid var(--line);
    background: #fff;
}

.preview {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fdfefe;
    box-shadow: var(--shadow);
}

.preview-head {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    font-weight: 850;
}

.bubble {
    width: fit-content;
    max-width: 90%;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
}

.bubble.user {
    margin-left: auto;
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

.chips {
    display: grid;
    gap: 9px;
    margin-top: 24px;
}

.chips span {
    padding: 11px 12px;
    border-radius: 10px;
    background: #eef5ff;
    color: #24436f;
    font-weight: 800;
}

.section {
    padding: clamp(38px, 5vw, 60px) clamp(18px, 5vw, 72px);
}

.after-click {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1fr);
    gap: clamp(24px, 4vw, 44px);
    align-items: end;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.42);
}

.after-click h2,
.before-after h2 {
    max-width: 820px;
    margin-bottom: 0;
    font-size: clamp(1.65rem, 3vw, 2.8rem);
    line-height: 1.08;
}

.after-click-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.after-click-list span {
    min-height: 92px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: #31423b;
    font-weight: 800;
}

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

.steps article,
.split {
    border-top: 1px solid var(--line);
}

.steps article {
    padding-top: 20px;
}

.steps strong {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: var(--yellow);
}

.steps h2,
.split h2,
.final h2 {
    margin-bottom: 12px;
    font-size: clamp(1.5rem, 2.45vw, 2.25rem);
    line-height: 1.08;
}

.steps p,
.split li {
    color: var(--muted);
}

.before-after {
    display: grid;
    grid-template-columns: minmax(0, 0.65fr) minmax(320px, 1fr);
    gap: clamp(24px, 4vw, 40px);
    align-items: start;
    border-top: 1px solid var(--line);
}

.comparison {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.comparison article {
    min-height: 220px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
}

.comparison article:last-child {
    border-color: rgba(47, 111, 237, 0.28);
    background: #eef5ff;
}

.comparison span {
    display: block;
    margin-bottom: 18px;
    color: var(--green);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.comparison p {
    margin-bottom: 0;
    color: #31423b;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
    gap: clamp(24px, 4vw, 36px);
}

.split ul {
    display: grid;
    gap: 12px;
    align-content: start;
    margin: 0;
    padding: 0;
    list-style: none;
}

.split li {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    font-weight: 750;
}

.final {
    margin: 0 clamp(18px, 5vw, 72px) 56px;
    padding: clamp(30px, 5vw, 50px);
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
}

.final h2 {
    max-width: 820px;
}

@media (max-width: 900px) {
    .topbar {
        grid-template-columns: 1fr auto;
    }

    .nav {
        order: 3;
        grid-column: 1 / -1;
        justify-self: start;
    }

    .hero,
    .split,
    .after-click,
    .before-after {
        grid-template-columns: 1fr;
    }

    .after-click-list,
    .comparison {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .topbar {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .top-cta {
        min-height: 38px;
        padding: 0 12px;
        font-size: 0.9rem;
    }

    .hero {
        padding-top: 36px;
    }

    .actions,
    .button {
        width: 100%;
    }

    .preview {
        border-radius: 18px;
    }

    .final {
        margin: 0 18px 48px;
    }
}
