:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-alt: #eef4ff;
    --surface-accent: #f8fafc;
    --text: #0f172a;
    --muted: #475569;
    --line: #dbe4f0;
    --brand: #2563eb;
    --brand-strong: #1d4ed8;
    --brand-soft: rgba(37, 99, 235, 0.12);
    --teal: #0f766e;
    --orange: #ea580c;
    --success: #15803d;
    --radius: 22px;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.05);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.08), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #f5f7fb 100%);
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
}

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 12px;
    background: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    z-index: 100;
}

.skip-link:focus {
    left: 12px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(219, 228, 240, 0.8);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text);
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    font-size: 1rem;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--muted);
    font-weight: 600;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--brand);
    text-decoration: none;
}

/* ========= HERO REDESIGN (match landing) ========= */
.hero {
    padding: 56px 0 48px;
    position: relative;
}

.hero-panel {
    position: relative;
    background:
        radial-gradient(1200px 400px at 100% -10%, rgba(255,255,255,0.18), transparent 60%),
        radial-gradient(800px 300px at 0% 110%, rgba(255,255,255,0.12), transparent 60%),
        linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 28px;
    color: #fff;
    padding: 56px 48px;
    box-shadow: 0 30px 80px -20px rgba(102, 126, 234, 0.45), 0 12px 40px -12px rgba(118, 75, 162, 0.35);
    overflow: hidden;
    isolation: isolate;
}

.hero-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.35), transparent 50%),
        radial-gradient(1.5px 1.5px at 80% 60%, rgba(255,255,255,0.25), transparent 50%),
        radial-gradient(2px 2px at 40% 80%, rgba(255,255,255,0.2), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-panel > * {
    position: relative;
    z-index: 1;
}

.hero-grid,
.split,
.card-grid,
.resource-grid,
.stat-grid,
.feature-nav {
    display: grid;
    gap: 28px;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr);
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.25);
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(2.15rem, 4.4vw, 3.6rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: #fff;
}

.hero h1 strong,
.hero h1 .accent {
    position: relative;
    background: linear-gradient(135deg, #fef9c3 0%, #fde68a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 800;
}

.hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
    line-height: 1.7;
    max-width: 56ch;
}

.actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 26px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: #fff;
    color: #5b4bff;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 18px 44px -10px rgba(0, 0, 0, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
}

.hero-card {
    /* Glass morphism card that sits inside the hero panel */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 22px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 28px;
}

.hero-card h2,
.hero-card h3 {
    color: #fff;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 14px;
}

.hero-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-card li {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    line-height: 1.55;
    padding: 8px 0 8px 26px;
    position: relative;
}

.hero-card li + li {
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.hero-card li::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 17px;
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

/* Reset generic card styling for non-hero cards */
.card,
.stat,
.callout,
.toc {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.card h2,
.card h3,
.callout h2,
.callout h3 {
    margin: 0 0 12px;
}

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

.card ul,
.callout ul,
.toc ul {
    margin: 0;
    padding-left: 18px;
}

.card li + li,
.callout li + li,
.toc li + li {
    margin-top: 8px;
}

/* Breadcrumbs inside the hero panel — light on dark */
.hero .breadcrumbs {
    margin: 0 0 4px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.86rem;
    letter-spacing: 0.02em;
}

.hero .breadcrumbs a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.hero .breadcrumbs a:hover {
    color: #fff;
    text-decoration: underline;
}

.hero .breadcrumbs li + li::before {
    content: "›";
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.55);
}

.breadcrumbs {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.breadcrumbs li + li::before {
    content: "/";
    margin-right: 10px;
    color: #94a3b8;
}

/* Pills inside the hero — frosted glass style */
.hero .pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero .pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    backdrop-filter: blur(8px);
}

.hero .pill.teal { background: rgba(45, 212, 191, 0.18); border-color: rgba(94, 234, 212, 0.35); }
.hero .pill.orange { background: rgba(251, 146, 60, 0.2); border-color: rgba(253, 186, 116, 0.35); }
.hero .pill.green { background: rgba(74, 222, 128, 0.18); border-color: rgba(134, 239, 172, 0.35); }

.section {
    padding: 18px 0 10px;
}

.section h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.35rem);
    line-height: 1.15;
    margin: 0 0 14px;
}

.section > p.lead {
    max-width: 760px;
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.8;
}

.split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.is-4-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .card-grid.is-4-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.card.card-highlight {
    background: linear-gradient(155deg, #fff7ed 0%, #fdf2f8 100%);
    border: 2px solid #f97316;
    box-shadow: 0 14px 40px rgba(249,115,22,0.18), 0 6px 14px rgba(249,115,22,0.10);
    position: relative;
}

.card.card-highlight .kicker {
    background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.card.card-highlight h3 {
    color: #c2410c;
}

.card.card-highlight .btn {
    background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(249,115,22,0.35);
}

.card.card-highlight .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(249,115,22,0.45);
}

.resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.stat,
.callout,
.toc {
    padding: 24px;
}

.card p:last-child,
.callout p:last-child,
.stat p:last-child {
    margin-bottom: 0;
}

.card .kicker,
.callout .kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--brand-strong);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat strong {
    display: block;
    margin-bottom: 6px;
    color: var(--brand-strong);
    font-size: 1.65rem;
    line-height: 1.1;
}

.stat span {
    color: var(--muted);
    font-weight: 600;
}

.comparison {
    overflow-x: auto;
}

.comparison table {
    width: 100%;
    border-collapse: collapse;
    min-width: 660px;
}

.comparison th,
.comparison td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
}

.comparison th {
    font-size: 0.95rem;
    color: var(--text);
    background: var(--surface-alt);
}

.comparison tr:last-child td {
    border-bottom: 0;
}

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

.faq details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: var(--shadow-soft);
}

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

.faq summary::-webkit-details-marker {
    display: none;
}

.faq p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-weight: 700;
    font-size: 0.92rem;
}

.pill.teal {
    background: rgba(15, 118, 110, 0.1);
    color: var(--teal);
}

.pill.orange {
    background: rgba(234, 88, 12, 0.1);
    color: var(--orange);
}

.pill.green {
    background: rgba(21, 128, 61, 0.1);
    color: var(--success);
}

.note.note {
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--surface-accent);
    border: 1px solid var(--line);
    color: var(--muted);
    line-height: 1.75;
}

.cta-band {
    margin: 18px 0 36px;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #0f766e 100%);
    color: #fff;
    box-shadow: var(--shadow);
}

.cta-band p {
    color: rgba(255, 255, 255, 0.84);
}

.cta-band .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
}

.cta-proof,
.hero-proof {
    margin-top: 14px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.01em;
}

.toc {
    position: sticky;
    top: 96px;
}

.toc h2 {
    font-size: 1.15rem;
    margin: 0 0 12px;
}

.toc a {
    color: var(--muted);
    font-weight: 600;
}

.lazy-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

.site-footer {
    margin-top: 48px;
    padding: 36px 0 56px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 980px) {
    .hero-grid,
    .split,
    .card-grid,
    .feature-nav,
    .resource-grid,
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .toc {
        position: static;
    }
}

.tool-card {
    max-width: 760px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.field-grid label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--muted);
}

.field-grid input,
.field-grid select {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    font: inherit;
    color: var(--text);
    background: #fff;
}

.field-grid .full-width {
    grid-column: 1 / -1;
}

.field-grid .checkbox-row {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

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

.result {
    padding: 16px;
    border-radius: 16px;
    background: var(--surface-alt);
    border: 1px solid var(--line);
}

.result span {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.result strong,
.result-value {
    font-size: 1.35rem;
    color: var(--text);
}

.result-value.good { color: var(--success); }
.result-value.warn { color: var(--orange); }
.result-value.bad { color: #b91c1c; }

@media (max-width: 720px) {
    .field-grid,
    .result-strip {
        grid-template-columns: 1fr;
    }

    .nav-shell {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-panel {
        padding: 28px 22px;
        border-radius: 24px;
    }

    .actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
