:root {
    color-scheme: light;
    --bg: #f2f3f5;
    --surface: #ffffff;
    --surface-soft: #f8f8f8;
    --text: #111318;
    --muted: #666b73;
    --line: #e4e6e9;
    --dark: #111318;
    --danger: #b42318;
    --success: #067647;
    --warning: #b54708;
    --radius: 22px;
    --shadow: 0 20px 60px rgba(17, 19, 24, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    padding: 24px 28px 0;
}

.nav-wrap {
    max-width: 1220px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 14px;
}

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

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

.nav-button {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--dark);
    color: #fff !important;
}

.site-footer {
    max-width: 1220px;
    margin: 0 auto;
    padding: 50px 28px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
    font-size: 13px;
}

.site-footer > div:first-child {
    display: flex;
    gap: 10px;
    align-items: center;
}

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

.footer-links a {
    text-decoration: none;
}

.hero {
    padding: 90px 28px 30px;
}

.hero-card {
    max-width: 1220px;
    min-height: 620px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: 32px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    overflow: hidden;
}

.hero-copy {
    padding: 84px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: #8a8f97;
    margin-bottom: 14px;
}

.hero h1,
.auth-heading h1,
.page-heading h1,
.legal-card h1,
.auth-card h1 {
    margin: 0;
    letter-spacing: -0.05em;
    line-height: 0.98;
}

.hero h1 {
    max-width: 700px;
    font-size: clamp(54px, 7vw, 92px);
}

.hero-text {
    max-width: 650px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 40px;
}

.price-row strong {
    font-size: 42px;
    letter-spacing: -0.04em;
}

.price-row span {
    color: var(--muted);
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.danger-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    transition:
        transform .15s ease,
        opacity .15s ease,
        border-color .15s ease;
}

.primary-button {
    background: var(--dark);
    color: #fff;
}

.secondary-button {
    background: var(--surface);
    color: var(--text);
    border-color: var(--line);
}

.danger-button {
    background: #fff;
    color: var(--danger);
    border-color: #efc0bc;
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover {
    transform: translateY(-1px);
}

.full-button {
    width: 100%;
}

.feature-panel {
    background: #f7f7f7;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.feature:first-child {
    border-top: 1px solid var(--line);
}

.feature > span {
    color: #9a9ea5;
    font-size: 12px;
    padding-top: 2px;
}

.feature strong {
    font-size: 21px;
}

.feature p {
    margin: 6px 0 0;
    color: var(--muted);
}

.auth-page {
    min-height: 720px;
    padding: 72px 28px 30px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 540px;
    background: var(--surface);
    border-radius: 26px;
    box-shadow: var(--shadow);
    padding: 54px;
}

.auth-card.large {
    max-width: 860px;
}

.auth-card.centered {
    text-align: center;
}

.auth-heading {
    margin: 50px 0 30px;
}

.auth-heading h1 {
    font-size: 48px;
}

.auth-heading p {
    color: var(--muted);
    margin: 16px 0 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.field.full {
    grid-column: 1 / -1;
}

.field > span {
    font-size: 13px;
    font-weight: 700;
}

.field > span small,
.field > small {
    font-weight: 500;
    color: var(--muted);
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 13px;
    padding: 13px 14px;
    outline: none;
    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.field textarea {
    min-height: 160px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-color: #9aa0a8;
    box-shadow: 0 0 0 4px #f1f2f4;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
    font-size: 13px;
    color: var(--muted);
}

.checkbox-row input {
    margin-top: 3px;
}

.turnstile-wrap {
    margin: 18px 0;
}

.signup-bottom {
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.signup-bottom div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.signup-bottom strong {
    font-size: 19px;
}

.signup-bottom span {
    color: var(--muted);
    font-size: 13px;
}

.auth-footer {
    margin-top: 26px;
    color: var(--muted);
    font-size: 13px;
}

.auth-footer a {
    color: var(--text);
    font-weight: 700;
}

.alert {
    border-radius: 14px;
    padding: 14px 16px;
    margin: 0 0 20px;
    font-size: 14px;
}

.alert.error {
    color: var(--danger);
    background: #fff4f3;
    border: 1px solid #f5cfca;
}

.alert.warning {
    color: var(--warning);
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.alert.success {
    color: var(--success);
    background: #ecfdf3;
    border: 1px solid #abefc6;
}

.honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.app-page {
    max-width: 1220px;
    margin: 0 auto;
    padding: 72px 28px 40px;
}

.app-page.narrow {
    max-width: 900px;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 34px;
}

.page-heading h1 {
    font-size: 58px;
}

.page-heading p {
    margin: 14px 0 0;
    color: var(--muted);
}

.status-pill {
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 800;
}

.status-pill.active {
    background: #ecfdf3;
    color: var(--success);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

.stat-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.stat-card span,
.stat-card small,
.detail-list span,
.billing-status span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.stat-card strong {
    display: block;
    font-size: 24px;
    margin: 8px 0 4px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.panel {
    background: var(--surface);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.panel h2 {
    margin: 0;
    font-size: 25px;
    letter-spacing: -0.03em;
}

.panel p {
    color: var(--muted);
    margin: 16px 0 24px;
}

.detail-list {
    display: grid;
    gap: 0;
}

.detail-list > div {
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}

.detail-list > div:first-child {
    border-top: 1px solid var(--line);
}

.danger-panel {
    border: 1px solid #f3d4d0;
}

.billing-card {
    background: var(--dark);
    color: #fff;
    border-radius: 22px;
    padding: 36px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    margin-bottom: 18px;
}

.billing-main h2 {
    font-size: 44px;
    margin: 0;
    letter-spacing: -0.04em;
}

.billing-main p {
    max-width: 550px;
    margin: 12px 0 0;
    color: #b4b8bf;
}

.billing-status {
    min-width: 140px;
}

.billing-status strong {
    display: block;
    margin-top: 5px;
    font-size: 20px;
}

.payment-panel {
    margin-top: 18px;
}

.config-box,
.legal-note {
    color: var(--muted);
    font-size: 13px;
}

.config-box {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 13px 14px;
}

.legal-note {
    margin-top: 20px;
}

.legal-note a {
    font-weight: 700;
}

.success-mark {
    width: 68px;
    height: 68px;
    margin: 0 auto 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ecfdf3;
    color: var(--success);
    font-size: 34px;
    font-weight: 800;
}

.error-code {
    font-size: 80px;
    line-height: 1;
    letter-spacing: -0.08em;
    font-weight: 900;
    margin-bottom: 22px;
}

.legal-page {
    padding: 72px 28px 40px;
}

.legal-card {
    max-width: 880px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 58px;
}

.legal-card h1 {
    font-size: 58px;
    margin-bottom: 10px;
}

.legal-updated {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 48px;
}

.legal-card h2 {
    margin-top: 36px;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.legal-card p {
    color: #4f545c;
}

@media (max-width: 900px) {
    .hero-card,
    .content-grid,
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .feature-panel {
        padding: 44px;
    }

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

    .field.full {
        grid-column: auto;
    }

    .billing-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 18px 18px 0;
    }

    .nav-wrap {
        align-items: flex-start;
    }

    .nav-links {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .nav-links a:not(.nav-button) {
        display: none;
    }

    .hero,
    .auth-page,
    .app-page,
    .legal-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero {
        padding-top: 40px;
    }

    .hero-card {
        border-radius: 24px;
        min-height: 0;
    }

    .hero-copy,
    .feature-panel {
        padding: 34px 26px;
    }

    .hero h1 {
        font-size: 49px;
    }

    .auth-card,
    .auth-card.large,
    .legal-card {
        padding: 32px 22px;
        border-radius: 20px;
    }

    .page-heading h1,
    .legal-card h1 {
        font-size: 43px;
    }

    .site-footer {
        padding-left: 18px;
        padding-right: 18px;
        flex-direction: column;
        align-items: flex-start;
    }
}

.status-pill.pending {
    color: #b54708;
    background: #fff7ed;
}

.alert {
    border-radius: 14px;
    padding: 15px 16px;
    margin-bottom: 20px;
}

.alert.warning {
    color: #b54708;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.inline-button {
    margin-top: 14px;
    color: #fff !important;
}
