:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #475569;
    --border: #e2e8f0;
    --brand: #059669;
    --brand-bright: #10b981;
    --brand-soft: #ecfdf5;
    --brand-border: #a7f3d0;
    --blue: #0284c7;
    --blue-soft: #f0f9ff;
    --gold: #b45309;
    --gold-soft: #fef3c7;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

.g-topbar {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 30;
}

.g-topbar-inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.g-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 800;
    font-size: 1.12rem;
    text-decoration: none !important;
}

.g-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.g-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.92rem;
    flex-wrap: wrap;
}

.g-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand);
    color: #ffffff !important;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.g-btn:hover { background: #047857; }

.g-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: var(--ink) !important;
    border: 1px solid #cbd5e1;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none !important;
}

.g-btn-outline:hover { border-color: var(--brand); color: var(--brand) !important; }

.g-wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 40px 24px 84px;
}

.g-breadcrumb {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 18px;
}

.g-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-border);
    color: var(--brand);
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(1.95rem, 3.8vw, 2.7rem);
    line-height: 1.18;
    letter-spacing: -0.025em;
    margin: 14px 0 14px;
}

.g-lead {
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 820px;
    margin: 0 0 26px;
}

.g-tldr {
    background: var(--surface);
    border: 1px solid var(--brand-border);
    border-left: 5px solid var(--brand);
    border-radius: 14px;
    padding: 20px 24px;
    margin: 24px 0 36px;
    box-shadow: 0 4px 18px rgba(5, 150, 105, 0.05);
}

.g-tldr strong.g-tldr-kicker {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand);
    margin-bottom: 8px;
}

.g-tldr ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.g-tldr li { margin-bottom: 6px; }

h2 {
    font-size: 1.52rem;
    letter-spacing: -0.015em;
    margin: 46px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

h3 {
    font-size: 1.14rem;
    margin: 24px 0 8px;
}

.g-table-wrap {
    overflow-x: auto;
    margin: 18px 0 28px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}

table.g-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

table.g-table th, table.g-table td {
    text-align: left;
    padding: 13px 15px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

table.g-table th {
    background: #f8fafc;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

table.g-table tr:last-child td { border-bottom: none; }
table.g-table tr.g-highlight { background: #ecfdf5; }

.g-pill {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    white-space: nowrap;
}
.g-pill.yes { background: var(--brand-soft); color: var(--brand); }
.g-pill.partial { background: var(--gold-soft); color: var(--gold); }
.g-pill.no { background: #f1f5f9; color: #64748b; }

.g-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    margin: 18px 0;
}

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

.g-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.g-card h3 { margin-top: 0; }
.g-card p { color: var(--muted); font-size: 0.95rem; margin: 8px 0 0; }

.g-calc {
    background: var(--surface);
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    padding: 28px;
    margin: 24px 0 36px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.g-calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: start;
}

.g-field { margin-bottom: 18px; }
.g-field label {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 6px;
    color: var(--ink);
}

.g-field input[type="number"], .g-field select {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
}

.g-field input[type="range"] {
    width: 100%;
    accent-color: var(--brand);
    margin-top: 6px;
}

.g-result-panel {
    background: linear-gradient(145deg, #064e3b 0%, #0f172a 85%);
    color: #ffffff;
    border-radius: 16px;
    padding: 24px;
}

.g-result-kicker {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6ee7b7;
    font-weight: 700;
}

.g-result-big {
    font-size: 2.35rem;
    font-weight: 800;
    color: #34d399;
    line-height: 1.15;
    margin: 6px 0 12px;
}

.g-result-rows {
    border-top: 1px solid rgba(255,255,255,0.14);
    padding-top: 12px;
    font-size: 0.9rem;
    display: grid;
    gap: 8px;
}

.g-result-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #e2e8f0;
}

.g-faq { display: grid; gap: 12px; margin: 18px 0; }
.g-faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
}
.g-faq summary {
    font-weight: 700;
    cursor: pointer;
    color: var(--ink);
}
.g-faq details p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.g-cta-box {
    margin-top: 48px;
    background: linear-gradient(135deg, #064e3b 0%, #0f172a 85%);
    color: #ffffff;
    border-radius: 20px;
    padding: 36px 32px;
    text-align: center;
}

.g-cta-box h2 {
    color: #ffffff;
    border: none;
    margin: 0 0 10px;
    padding: 0;
}

.g-cta-box p {
    color: #cbd5e1;
    max-width: 660px;
    margin: 0 auto 22px;
}

.g-cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.g-footer {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.87rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
