:root {
    --bg: #f7f1e6;
    --bg-alt: #fffdf8;
    --surface: #fff8ee;
    --surface-strong: #ffffff;
    --card-border: #d8c9b4;
    --ink: #1f2933;
    --muted: #6b7280;
    --accent: #d06a2f;
    --accent-dark: #8b3a16;
    --accent-soft: #f5c089;
    --ok: #1f7a5a;
    --warn: #ba6b00;
    --danger: #b6342f;
    --shadow: 0 18px 50px rgba(94, 60, 30, 0.12);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Instrument Sans", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(208, 106, 47, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(31, 122, 90, 0.12), transparent 22%),
        linear-gradient(180deg, #fef9f0 0%, #f7f1e6 100%);
    min-height: 100vh;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(255, 249, 240, 0.88);
    border-bottom: 1px solid rgba(216, 201, 180, 0.7);
}

.site-header .shell,
.nav-links,
.nav-actions,
.hero,
.hero-stats,
.hero-actions,
.stats-grid,
.card-grid,
.metric-grid,
.form-grid,
.meta-grid,
.report-summary,
.score-grid,
.report-grid,
.dashboard-grid,
.subscription-grid,
.section-header,
.auth-grid,
.admin-grid,
.table-actions,
.page-grid,
.footer-grid {
    display: flex;
    gap: 16px;
}

.site-header .shell,
.section-header {
    align-items: center;
    justify-content: space-between;
}

.site-header .shell {
    padding: 16px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    box-shadow: 0 10px 24px rgba(208, 106, 47, 0.26);
}

.nav-links,
.nav-actions {
    align-items: center;
    flex-wrap: wrap;
}

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

.nav-links a:hover,
.subtle-link:hover {
    color: var(--ink);
}

.page {
    padding: 44px 0 72px;
}

.hero {
    align-items: stretch;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 32px;
}

.hero-home {
    align-items: center;
}

.hero-copy,
.hero-panel,
.panel,
.card,
.table-wrap,
.auth-card,
.report-card,
.report-page,
.admin-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(216, 201, 180, 0.85);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-copy {
    flex: 1.3;
    padding: 40px;
}

.hero-panel {
    flex: 1;
    padding: 24px;
    align-self: stretch;
}

.hero-copy-home {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 238, 0.92)),
        radial-gradient(circle at top right, rgba(208, 106, 47, 0.14), transparent 34%);
}

.hero-preview {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(25, 29, 38, 0.96), rgba(39, 44, 56, 0.94)),
        radial-gradient(circle at top left, rgba(245, 192, 137, 0.18), transparent 26%);
    color: white;
    border-color: rgba(255, 255, 255, 0.08);
}

.hero-preview p,
.hero-preview span {
    color: rgba(255, 255, 255, 0.78);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 24px;
}

.hero-badges .pill {
    background: rgba(31, 41, 51, 0.06);
    color: var(--ink);
}

.preview-topline,
.preview-score,
.preview-score-meta,
.trust-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.preview-topline,
.preview-score {
    justify-content: space-between;
    align-items: center;
}

.preview-url {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

.preview-score {
    margin: 18px 0 20px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.preview-score strong {
    display: block;
    font-size: 3.2rem;
    line-height: 1;
    margin-bottom: 8px;
}

.preview-checks {
    display: grid;
    gap: 12px;
}

.preview-check {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

.preview-check strong {
    display: block;
    margin-bottom: 6px;
    color: white;
}

.preview-check.good {
    border-color: rgba(31, 122, 90, 0.5);
}

.preview-check.warn {
    border-color: rgba(245, 192, 137, 0.45);
}

.trust-strip {
    padding: 20px 24px;
    border-radius: 18px;
    border: 1px solid rgba(216, 201, 180, 0.75);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 10px 30px rgba(94, 60, 30, 0.06);
}

.trust-label {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.trust-grid span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(216, 201, 180, 0.8);
    font-weight: 600;
}

.eyebrow,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(208, 106, 47, 0.1);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

h1,
h2,
h3 {
    margin: 0 0 12px;
    line-height: 1.05;
}

h1 {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1rem, 3vw, 2.2rem);
    font-weight: 700;
}

h2 {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(2rem, 3vw, 1.3rem);
}

h3 {
    font-size: 1.15rem;
}

p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.6;
}

.hero-lead {
    font-size: 1.08rem;
    max-width: 58ch;
}

.hero-actions,
.hero-stats,
.metric-grid,
.report-summary,
.score-grid,
.dashboard-grid,
.subscription-grid,
.auth-grid,
.admin-grid,
.page-grid,
.footer-grid {
    flex-wrap: wrap;
}

.btn,
.btn-secondary,
.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn {
    color: white;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    box-shadow: 0 12px 24px rgba(208, 106, 47, 0.25);
}

.btn:hover,
.btn-secondary:hover,
.btn-link:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(216, 201, 180, 0.95);
}

.btn-link {
    background: transparent;
    color: var(--accent-dark);
    padding-left: 0;
    padding-right: 0;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.hero-stat,
.metric-card,
.card,
.admin-card,
.report-card,
.report-page {
    flex: 1 1 0;
    min-width: 220px;
}

.hero-stat,
.metric-card,
.card,
.admin-card,
.report-card,
.report-page,
.table-wrap,
.panel,
.auth-card {
    padding: 20px;
}

.hero-stat strong,
.metric-card strong {
    display: block;
    font-size: 1.7rem;
    margin-bottom: 8px;
}

.stats-grid,
.card-grid {
    flex-wrap: wrap;
    margin: 28px 0 0;
}

.card-grid .card,
.admin-grid .admin-card {
    flex: 1 1 280px;
}

.feature-card {
    min-height: 220px;
}

.process-grid .card {
    min-height: 210px;
}

.process-number {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(208, 106, 47, 0.15), rgba(139, 58, 22, 0.18));
    color: var(--accent-dark);
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.outcome-section .report-card {
    min-height: 100%;
}

.pricing-highlight {
    position: relative;
}

.pricing-highlight.is-featured {
    border-color: rgba(208, 106, 47, 0.72);
    box-shadow: 0 20px 48px rgba(208, 106, 47, 0.14);
}

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 30px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(31, 41, 51, 0.96), rgba(59, 46, 38, 0.95)),
        radial-gradient(circle at top left, rgba(245, 192, 137, 0.18), transparent 34%);
    box-shadow: 0 22px 56px rgba(28, 24, 20, 0.2);
}

.cta-banner h2,
.cta-banner p,
.cta-banner .eyebrow {
    color: white;
}

.cta-banner .eyebrow {
    background: rgba(255, 255, 255, 0.12);
}

.section {
    margin-top: 56px;
}

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

.list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.list li {
    margin-bottom: 8px;
}

.form-grid {
    flex-wrap: wrap;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 220px;
    min-width: 220px;
}

label {
    font-weight: 700;
    color: var(--ink);
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(216, 201, 180, 0.95);
    background: var(--bg-alt);
    color: var(--ink);
    font: inherit;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(208, 106, 47, 0.25);
    border-color: var(--accent);
}

.alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(216, 201, 180, 0.95);
}

.alert-success {
    background: rgba(31, 122, 90, 0.1);
    color: var(--ok);
}

.alert-error {
    background: rgba(182, 52, 47, 0.08);
    color: var(--danger);
}

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(216, 201, 180, 0.75);
    vertical-align: top;
    text-align: left;
}

th {
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(216, 201, 180, 0.35);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.success {
    background: rgba(31, 122, 90, 0.12);
    color: var(--ok);
}

.badge.warning {
    background: rgba(186, 107, 0, 0.12);
    color: var(--warn);
}

.badge.error {
    background: rgba(182, 52, 47, 0.12);
    color: var(--danger);
}

.badge.info {
    background: rgba(56, 98, 137, 0.12);
    color: #386289;
}

.score-good {
    color: var(--ok);
}

.score-mid {
    color: var(--warn);
}

.score-low {
    color: var(--danger);
}

.report-card,
.report-page {
    margin-bottom: 18px;
}

.score-grid .metric-card {
    min-width: 160px;
}

.report-grid {
    flex-wrap: wrap;
}

.report-grid > * {
    flex: 1 1 300px;
}

.progress-shell {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: rgba(216, 201, 180, 0.55);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    transition: width 0.4s ease;
}

.check-list {
    margin: 12px 0 0;
    padding-left: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.check-copy strong {
    display: block;
    margin-bottom: 4px;
}

.stack {
    display: grid;
    gap: 16px;
}

.auth-grid > .auth-card,
.dashboard-grid > .card,
.admin-grid > .admin-card {
    flex: 1 1 340px;
}

.footer {
    padding: 28px 0 44px;
    border-top: 1px solid rgba(216, 201, 180, 0.75);
}

.footer-grid {
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 860px) {
    .hero,
    .site-header .shell,
    .section-header,
    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-copy,
    .hero-panel,
    .card,
    .auth-card,
    .report-card,
    .report-page,
    .admin-card {
        min-width: 100%;
    }

    h1 {
        font-size: 2.8rem;
    }

    .page {
        padding-top: 32px;
    }

    .cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}
