:root {
    --bg: #ffffff;
    --text: #1d2130;
    --text-muted: #5b6275;
    --border: #e3e5ee;
    --on-accent: #ffffff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #12141c;
        --text: #eceef5;
        --text-muted: #a3a9bb;
        --border: #2a2e3d;
        --on-accent: #12141c;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

h1,
h2,
h3,
.logo {
    font-family: var(--heading-font);
}

a {
    color: var(--accent);
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

.header {
    border-bottom: 1px solid var(--border);
}

.header__inner,
.footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

.logo {
    font-weight: 700;
    font-size: 22px;
    color: var(--text);
    text-decoration: none;
}

.nav,
.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.nav a,
.footer__links a {
    color: var(--text-muted);
    text-decoration: none;
}

.hero {
    padding: 64px 0 48px;
}

.hero h1 {
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.15;
    margin: 0 0 16px;
}

.lead {
    font-size: 18px;
    color: var(--text-muted);
}

.hero__visual {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: var(--surface);
    border-radius: var(--radius);
}

.bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
}

.bubble--user {
    align-self: flex-end;
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}

.layout-centered .hero__inner {
    text-align: center;
}

.layout-centered .lead {
    max-width: 640px;
    margin: 0 auto 32px;
}

.layout-centered .hero__visual {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

.layout-split .hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 720px) {
    .layout-split .hero__inner {
        grid-template-columns: 1fr;
    }
}

.section {
    padding: 48px 0;
}

.section--muted {
    background: var(--surface);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.layout-split .card {
    border-width: 0 0 0 3px;
    border-color: var(--accent);
    border-radius: 0;
}

.card h3 {
    margin-top: 0;
}

.payments {
    color: var(--text-muted);
}

details {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

summary {
    cursor: pointer;
    font-weight: 600;
}

.legal {
    max-width: 760px;
}

.legal__updated {
    color: var(--text-muted);
}

.footer {
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
}

.footer__company {
    margin-top: 4px;
}

.checkout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--surface);
}

.checkout__box {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.checkout__message {
    margin: 0;
    text-align: center;
}

.checkout__legal {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.button {
    padding: 14px;
    border: 0;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--on-accent);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.button--secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.button:disabled {
    opacity: 0.6;
    cursor: default;
}
