body {
    margin: 0;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
    color: #172033;
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 18px;
    box-sizing: border-box;
}

.card {
    width: 100%;
    max-width: 760px;
    background: #ffffff;
    border: 1px solid #dbe4ee;
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
    padding: 36px;
    box-sizing: border-box;
}

.hero-card,
.results-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.eyebrow {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e8f0fe;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

h2 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    line-height: 1.3;
}

.description {
    margin: 0;
    max-width: 60ch;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4c5a6d;
}

.upgrade-prompt-title {
    margin: 0 0 12px;
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 700;
    color: inherit;
}

.section-block {
    padding-top: 4px;
}

.feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.feature-list li {
    position: relative;
    padding-left: 20px;
    line-height: 1.6;
    color: #334155;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #2563eb;
    transform: translateY(-50%);
}

.form-block {
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fbff;
}

.upload-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

input[type="file"] {
    flex: 1 1 280px;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #334155;
    box-sizing: border-box;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #334155;
    box-sizing: border-box;
}

.form-message {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.96rem;
    line-height: 1.5;
    font-weight: 600;
}

.form-message-error {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

.form-message-success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

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

.inline-form {
    margin: 0;
    display: inline-flex;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2563eb;
    border-radius: 12px;
    padding: 12px 18px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-sizing: border-box;
}

button:hover,
.button:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.button-secondary {
    background: #ffffff;
    color: #1f3b66;
    border-color: #cbd5e1;
}

.button-secondary:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.nav-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    min-height: 46px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: linear-gradient(180deg, #eff6ff 0%, #e8f0fe 100%);
    color: #1e40af;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.2;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    white-space: nowrap;
}

.button-disabled {
    cursor: default;
    pointer-events: none;
}

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

.stat-card {
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
}

.account-email-card {
    grid-column: 1 / -1;
}

.dashboard-account-card {
    max-width: 100%;
}

.stat-label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.92rem;
    color: #5b6778;
}

.stat-value {
    display: block;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.stat-value-small {
    font-size: 1.15rem;
    line-height: 1.3;
    letter-spacing: 0;
}

.account-email-value {
    overflow-wrap: break-word;
    word-break: normal;
}

.dashboard-account-value {
    color: #334155;
}

.table-section {
    padding-top: 8px;
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
}

.preview-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    font-size: 0.94rem;
}

.preview-table th,
.preview-table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e2e8f0;
}

.preview-table th {
    background: #f8fafc;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.preview-table td {
    color: #475569;
    line-height: 1.5;
}

.preview-table tbody tr:last-child td {
    border-bottom: 0;
}

.preview-table tbody tr:nth-child(even) {
    background: #fbfdff;
}

.table-link-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.table-link-group a {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 600;
}

.table-link-group a:hover {
    text-decoration: underline;
}

.empty-state {
    padding: 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #f8fafc;
}

.pricing-card {
    max-width: 1040px;
}

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

.plan-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border: 1px solid #dbe4ee;
    border-radius: 20px;
    background: #fbfdff;
}

.plan-card-featured {
    background: #f4f8ff;
    border-color: #93c5fd;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.plan-price {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.plan-price span {
    margin-left: 4px;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
}

.faq-section {
    padding-top: 8px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
}

.faq-item h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.faq-item p {
    margin: 0;
    line-height: 1.6;
    color: #475569;
}

@media (max-width: 640px) {
    .card {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .hero-card,
    .results-card {
        gap: 20px;
    }

    .form-block {
        padding: 16px;
    }

    .button-row,
    .upload-form {
        flex-direction: column;
        align-items: stretch;
    }

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