* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f7f8fb;
    color: #1b1f24;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

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

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 64px;
    background: rgba(247, 248, 251, 0.9);
    border-bottom: 1px solid #e2e6ef;
    backdrop-filter: blur(10px);
}

.nav__brand {
    font-weight: 700;
    letter-spacing: 0.4px;
}

.nav__links {
    display: flex;
    gap: 18px;
    font-size: 14px;
    color: #4a5568;
}

.nav__actions {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
}

.btn--primary {
    background: #1d4ed8;
    color: #fff;
    border-color: #1d4ed8;
}

.btn--ghost {
    background: #fff;
    border-color: #d3d9e6;
    color: #1d1f2a;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 36px;
    padding: 72px 64px 48px;
    align-items: center;
}

.hero__content h1 {
    font-size: 42px;
    margin: 0 0 16px;
}

.hero__content p {
    font-size: 18px;
    color: #4a5568;
    margin: 0 0 24px;
}

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

.hero__meta {
    margin-top: 16px;
    font-size: 13px;
    color: #7b8794;
}

.hero__card {
    display: flex;
    justify-content: center;
}

.card {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(17, 24, 39, 0.08);
}

.card__title {
    font-weight: 600;
    margin-bottom: 12px;
}

.card__item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eef1f6;
    font-size: 14px;
}

.card__item:last-child {
    border-bottom: none;
}

.pill {
    background: #eef2ff;
    color: #3b4cca;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.pill--accent {
    background: #e0f2fe;
    color: #0f4c81;
}

.section {
    padding: 64px;
}

.section h2 {
    font-size: 28px;
    margin: 0 0 24px;
}

.section--alt {
    background: #fff;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid--three {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid--two {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tile {
    background: #fff;
    border: 1px solid #e4e8f0;
    border-radius: 18px;
    padding: 20px;
}

.section--alt .tile {
    background: #f8fafc;
}

.plan {
    background: #fff;
    border: 1px solid #e4e8f0;
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.plan ul {
    margin: 0;
    padding-left: 18px;
    color: #4a5568;
}

.plan__name {
    font-weight: 600;
    font-size: 18px;
}

.plan__price {
    font-size: 24px;
    font-weight: 700;
}

.plan--featured {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 18px 40px rgba(29, 78, 216, 0.25);
}

.plan--featured .plan__price,
.plan--featured .plan__name {
    color: #fff;
}

.plan--featured ul {
    color: rgba(255, 255, 255, 0.85);
}

.plan--featured .btn--primary {
    background: #fff;
    color: #1d4ed8;
    border-color: #fff;
}

.contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    align-items: start;
}

.contact__info {
    margin-top: 12px;
    color: #4a5568;
}

.contact__form {
    display: grid;
    gap: 12px;
}

.contact__form label {
    display: grid;
    gap: 6px;
    font-size: 14px;
    color: #4a5568;
}

.contact__form input,
.contact__form textarea {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #d8dee9;
    font: inherit;
    background: #fff;
}

.footer {
    margin-top: auto;
    padding: 24px 64px 36px;
    border-top: 1px solid #e4e8f0;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6b7280;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 48px 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e4e8f0;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
}

.auth-back {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 16px;
}

.auth-card h1 {
    margin: 0 0 12px;
    font-size: 26px;
}

.auth-card p {
    margin: 0 0 20px;
    color: #4a5568;
}

.auth-form {
    display: grid;
    gap: 12px;
}

.auth-form label {
    display: grid;
    gap: 6px;
    font-size: 14px;
    color: #4a5568;
}

.auth-form input {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #d8dee9;
    font: inherit;
    background: #fff;
}

.auth-footer {
    margin-top: 16px;
    font-size: 13px;
    color: #6b7280;
}

.flash-container {
    position: fixed;
    bottom: 16px;
    right: 24px;
    z-index: 50;
    display: grid;
    gap: 10px;
    width: min(520px, calc(100% - 48px));
    pointer-events: none;
}

.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #e9f5ff;
    color: #0f2a4a;
    border: 1px solid #cde6ff;
    font-size: 14px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.flash__message {
    flex: 1;
}

.flash__close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
}

.flash--closing {
    opacity: 0;
    transform: translateY(-6px);
}

.flash--success {
    background: #e9f7ef;
    color: #14532d;
    border-color: #c8efd7;
}

.flash--error {
    background: #fff1f2;
    color: #7f1d1d;
    border-color: #fecdd3;
}

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

.turnstile {
    margin: 8px 0;
}

@media (max-width: 900px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px;
    }

    .hero,
    .section,
    .footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .flash-container {
        right: 12px;
        left: 12px;
        width: calc(100% - 24px);
    }
}
