:root {
    --bg: #f7f2ea;
    --bg-soft: #fcfaf7;
    --ink: #101828;
    --muted: #667085;
    --line: rgba(16, 24, 40, 0.08);
    --card: rgba(255, 255, 255, 0.9);
    --brand: #225d48;
    --brand-dark: #163e31;
    --coral: #f26b50;
    --gold: #d7a94b;
    --shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(242, 107, 80, 0.16), transparent 24%),
        radial-gradient(circle at bottom right, rgba(34, 93, 72, 0.18), transparent 30%),
        linear-gradient(180deg, #fcfaf6 0%, #f4ede5 100%);
}

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

button,
input,
select,
textarea {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 14px 16px;
    color: var(--ink);
}

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

.public-body,
.app-body {
    min-height: 100vh;
}

.landing,
.auth-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px;
}

.hero-bar,
.panel,
.sidebar,
.topbar,
.auth-panel,
.stat-card,
.mini-card,
.list-card,
.info-card,
.plan-card,
.brand-card,
.plan-card,
.plan-card,
.hero-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--card);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.hero {
    padding: 16px 0 40px;
}

.hero-bar,
.page-head,
.panel-head,
.topbar,
.topbar-actions,
.hero-actions,
.content-grid,
.stats-grid,
.cards-section,
.plan-grid,
.app-shell {
    display: flex;
    gap: 20px;
}

.hero-bar,
.topbar,
.page-head,
.panel-head {
    justify-content: space-between;
    align-items: center;
}

.hero-bar,
.topbar {
    padding: 20px 24px;
}

.hero-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1.3fr 0.7fr;
    margin-top: 28px;
}

.hero-copy h2,
.hero-bar h1,
.auth-panel h1,
.auth-panel h2,
.page-head h2,
.topbar-title {
    margin: 8px 0 0;
    line-height: 1.08;
    font-weight: 800;
}

.hero-bar h1 {
    max-width: 780px;
    font-size: 3rem;
}

.hero-copy h2 {
    font-size: 3.4rem;
}

.hero-text,
.muted,
.muted-light {
    color: var(--muted);
    line-height: 1.6;
}

.muted-light {
    color: rgba(255, 255, 255, 0.72);
}

.eyebrow {
    margin: 0;
    color: var(--brand);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    font-weight: 800;
}

.badge-pill {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(34, 93, 72, 0.1);
    border: 1px solid rgba(34, 93, 72, 0.16);
    margin-bottom: 8px;
}

.hero-card,
.plan-card,
.auth-panel,
.panel,
.mini-card,
.info-card,
.brand-card,
.plan-card,
.stat-card,
.list-card {
    padding: 22px;
}

.benefits,
.stack-form,
.stack-list,
.sidebar-nav,
.card-grid {
    display: grid;
    gap: 14px;
}

.benefit {
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(16, 24, 40, 0.05);
}

.cards-section {
    margin-top: 24px;
}

.cards-section > * {
    flex: 1;
}

.info-card.dark,
.dark-panel,
.dark-band {
    background: #101828;
    color: #fff;
}

.info-card.accent,
.plan-dark {
    background: linear-gradient(180deg, #17392f 0%, #102821 100%);
    color: #fff;
}

.plan-dark .plan-tag {
    color: var(--gold);
}

.plan-light {
    background: rgba(255, 255, 255, 0.92);
}

.section-head {
    margin: 60px 0 20px;
}

.section-head h2 {
    margin: 8px 0 0;
    font-size: 2.4rem;
}

.plan-grid {
    align-items: stretch;
}

.plan-grid > * {
    flex: 1;
}

.plan-card h3 {
    margin: 10px 0;
    font-size: 3rem;
}

.plan-tag {
    margin: 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--brand);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 18px;
    padding: 14px 18px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.button:hover {
    filter: brightness(0.97);
}

.button-dark {
    background: #101828;
    color: #fff;
}

.button-ghost {
    background: rgba(255, 255, 255, 0.76);
    color: var(--ink);
}

.button-gold {
    background: var(--gold);
    color: #101828;
}

.alert {
    padding: 14px 16px;
    border-radius: 18px;
    margin: 18px 0;
    border: 1px solid var(--line);
}

.alert-success {
    background: rgba(34, 93, 72, 0.1);
    color: var(--brand-dark);
}

.alert-error {
    background: rgba(242, 107, 80, 0.12);
    color: #b6422d;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 0.9fr;
    gap: 24px;
}

.auth-shell.single {
    grid-template-columns: minmax(320px, 560px);
    justify-content: center;
}

.dark-panel .eyebrow,
.dark-panel h1,
.dark-panel .muted-light,
.dark-band .eyebrow,
.dark-band h3,
.dark-band .muted-light {
    color: #fff;
}

.app-shell {
    align-items: flex-start;
    padding: 18px;
}

.sidebar {
    position: sticky;
    top: 18px;
    width: 310px;
    padding: 20px;
    display: grid;
    gap: 18px;
}

.nav-title {
    margin: 4px 0 10px;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
    font-weight: 700;
}

.nav-link {
    display: block;
    padding: 13px 14px;
    border-radius: 18px;
    color: #475467;
}

.nav-link.active {
    background: #101828;
    color: #fff;
}

.nav-link.active.business {
    background: var(--brand);
}

.nav-link.disabled {
    opacity: 0.58;
}

.app-main {
    flex: 1;
    display: grid;
    gap: 20px;
}

.page-head {
    margin-bottom: 6px;
}

.topbar-title {
    font-size: 2rem;
}

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

.stat-card {
    flex: 1;
    min-width: 180px;
    display: grid;
    gap: 8px;
}

.stat-card span,
.stat-card small {
    color: var(--muted);
}

.stat-card strong {
    font-size: 2rem;
}

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

.table-wrap {
    overflow-x: auto;
}

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

th,
td {
    text-align: left;
    padding: 14px 10px;
    border-top: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-weight: 700;
    border-top: none;
}

.inline-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inline-check input {
    width: auto;
}

.list-card p,
.mini-card p {
    margin: 8px 0 0;
}

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

.mini-card span,
.list-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

code {
    background: rgba(16, 24, 40, 0.06);
    padding: 2px 6px;
    border-radius: 8px;
}

@media (max-width: 1100px) {
    .app-shell,
    .hero-bar,
    .topbar,
    .page-head,
    .hero-actions,
    .topbar-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .sidebar {
        position: static;
        width: auto;
    }

    .hero-grid,
    .content-grid,
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .hero-copy h2 {
        font-size: 2.5rem;
    }

    .hero-bar h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 720px) {
    .landing,
    .auth-shell,
    .app-shell {
        padding: 14px;
    }

    .hero-copy h2 {
        font-size: 2rem;
    }

    .section-head h2 {
        font-size: 1.9rem;
    }
}
