:root {
    color-scheme: light;
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-alt: #eef4f1;
    --text: #17212b;
    --muted: #5d6b7a;
    --line: #dbe3ea;
    --brand: #0f7b6c;
    --brand-strong: #09594e;
    --accent: #f2b84b;
    --danger: #b42318;
    --shadow: 0 18px 45px rgba(23, 33, 43, .10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    letter-spacing: 0;
}

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

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid rgba(219, 227, 234, .86);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
}

.nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 19px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.btn.primary {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.btn.primary:hover {
    background: var(--brand-strong);
}

.hero {
    padding: 76px 0 48px;
    background:
        linear-gradient(130deg, rgba(15, 123, 108, .12), rgba(242, 184, 75, .16)),
        var(--bg);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, .94fr);
    gap: 36px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-strong);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
}

h1 {
    margin: 16px 0;
    max-width: 760px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: .96;
}

.hero p {
    max-width: 650px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.68;
}

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

.product-shot {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.shot-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.shot-body {
    padding: 22px;
}

.score-ring {
    width: 168px;
    height: 168px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--brand) 0 82%, #e9eef3 82% 100%);
}

.score-ring span {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    font-size: 36px;
    font-weight: 900;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
}

.metric-row strong {
    color: var(--brand-strong);
}

section {
    padding: 72px 0;
}

.section-title {
    max-width: 720px;
    margin-bottom: 30px;
}

.section-title h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 44px);
}

.section-title p {
    color: var(--muted);
    line-height: 1.65;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 22px;
}

.card h3 {
    margin: 0 0 10px;
}

.card p,
.muted {
    color: var(--muted);
    line-height: 1.62;
}

.feature-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--surface-alt);
    color: var(--brand-strong);
    margin-bottom: 14px;
}

.plans {
    background: #fff;
}

.price {
    font-size: 34px;
    font-weight: 900;
}

.price small {
    font-size: 14px;
    color: var(--muted);
}

.list {
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
}

.list li {
    padding: 9px 0;
    color: var(--muted);
}

.faq details {
    border-top: 1px solid var(--line);
    padding: 18px 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 800;
}

.footer {
    padding: 28px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: #fff;
}

.auth-page,
.app-shell {
    min-height: 100vh;
}

.auth-box {
    width: min(460px, calc(100% - 32px));
    margin: 54px auto;
}

.form {
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 7px;
}

label {
    font-weight: 800;
    font-size: 13px;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

.alert {
    border: 1px solid #f4c7c3;
    background: #fff4f2;
    color: var(--danger);
    padding: 12px;
    border-radius: 8px;
}

.app-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    border-right: 1px solid var(--line);
    background: #fff;
    padding: 22px;
}

.sidebar nav {
    display: grid;
    gap: 8px;
    margin-top: 28px;
}

.sidebar a {
    padding: 11px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 700;
}

.sidebar a.active,
.sidebar a:hover {
    background: var(--surface-alt);
    color: var(--brand-strong);
}

.main {
    padding: 28px;
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

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

.stat strong {
    display: block;
    font-size: 28px;
    margin-bottom: 4px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.table th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--brand-strong);
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 860px) {
    .nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .nav-links {
        flex-wrap: wrap;
    }

    .hero-grid,
    .grid-3,
    .app-layout,
    .stats {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}
