:root {
    --bg: #f4efe6;
    --ink: #1b241d;
    --muted: #5c695f;
    --panel: rgba(255, 251, 244, 0.84);
    --panel-strong: #fffdf8;
    --line: rgba(27, 36, 29, 0.12);
    --accent: #a62e28;
    --accent-strong: #741d19;
    --moss: #234332;
    --moss-soft: #dfe9dd;
    --gold: #c58d2e;
    --shadow: 0 28px 80px rgba(41, 35, 24, 0.12);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(197, 141, 46, 0.18), transparent 32%),
        radial-gradient(circle at 82% 12%, rgba(35, 67, 50, 0.16), transparent 28%),
        linear-gradient(180deg, #f6f0e7 0%, #efe4d3 100%);
    font-family: "Aptos", "Segoe UI Variable", "Trebuchet MS", sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
}

.site-shell {
    position: relative;
    overflow: clip;
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%231b241d' fill-opacity='.035'%3E%3Ccircle cx='12' cy='10' r='1.4'/%3E%3Ccircle cx='62' cy='44' r='1.2'/%3E%3Ccircle cx='98' cy='22' r='1.1'/%3E%3Ccircle cx='114' cy='88' r='1.3'/%3E%3Ccircle cx='31' cy='96' r='1.2'/%3E%3Ccircle cx='77' cy='122' r='1.1'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.65;
}

.container {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.topbar {
    padding: 18px 0;
}

.topbar-inner,
.hero-copy,
.hero-preview,
.content-panel,
.page-hero-panel,
.guide-nav,
.guide-section,
.cta-band,
.footer-panel {
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    border-radius: 999px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, #a62e28, #d4a13c);
    font-family: "Space Grotesk", "Bahnschrift", sans-serif;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.brand-kicker,
.eyebrow {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
}

.brand-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.nav-link,
.footer-links a,
.toc-list a,
.breadcrumbs a {
    text-decoration: none;
}

.nav-link {
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--muted);
}

.hero,
.page-hero {
    padding: 32px 0 24px;
}

.hero-grid,
.guide-layout,
.card-grid,
.list-grid,
.hero-notes,
.preview-aside,
.mini-grid {
    display: grid;
    gap: 18px;
}

.hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 28px;
}

.hero-copy,
.hero-preview,
.page-hero-panel,
.guide-nav,
.guide-section,
.content-panel,
.cta-band {
    border-radius: var(--radius-xl);
    padding: 28px;
}

.hero-tag,
.pill,
.tier-label,
.inline-code {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
}

.hero-tag {
    padding: 8px 14px;
    background: rgba(35, 67, 50, 0.08);
    color: var(--moss);
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    margin: 18px 0 14px;
    font-family: "Space Grotesk", "Aptos Display", "Bahnschrift", sans-serif;
    font-size: clamp(2.6rem, 5.2vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero p,
.page-hero p,
.section-intro p,
.card p,
.guide-section p,
.guide-section li,
.hero-note span,
.stat span,
.cta-band p,
.muted {
    color: var(--muted);
}

.hero-actions {
    margin-top: 28px;
}

.hero-notes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}

.hero-actions,
.mock-toolbar,
.cta-actions,
.footer-links,
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.button-secondary {
    color: var(--moss);
    background: rgba(35, 67, 50, 0.08);
}

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

.hero-note,
.stat,
.tier-item,
.mini-card,
.card {
    border: 1px solid rgba(27, 36, 29, 0.08);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.62);
}

.hero-note,
.stat,
.mini-card,
.card,
.tier-item {
    padding: 16px;
}

.hero-note strong,
.stat strong,
.mini-card strong,
.step-list strong,
.checklist strong,
.tier-item strong {
    display: block;
    margin-bottom: 4px;
}

.preview-head,
.section-intro {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.preview-head h2,
.section-intro h2,
.guide-section h2,
.cta-band h2 {
    margin: 0;
    font-family: "Space Grotesk", "Aptos Display", sans-serif;
    font-size: clamp(1.55rem, 2vw, 2rem);
    letter-spacing: -0.04em;
}

.pill,
.tier-label {
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pill {
    color: var(--moss);
    background: rgba(255, 255, 255, 0.72);
}

.mock-toolbar span {
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(35, 67, 50, 0.08);
    color: var(--moss);
    font-size: 0.82rem;
    font-weight: 700;
}

.preview-aside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.heatmap-board {
    padding: 20px;
    border-radius: 24px;
    background: var(--panel-strong);
    border: 1px solid rgba(35, 67, 50, 0.08);
}

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

.heatmap-grid span {
    display: block;
    aspect-ratio: 1;
    border-radius: 6px;
    background: var(--moss-soft);
}

.heatmap-grid span:nth-child(6n + 1) { background: #eac36f; }
.heatmap-grid span:nth-child(6n + 2) { background: #d1a448; }
.heatmap-grid span:nth-child(6n + 3) { background: #84a68e; }
.heatmap-grid span:nth-child(6n + 4) { background: #54755d; }
.heatmap-grid span:nth-child(6n + 5) { background: #b94234; }
.heatmap-grid span:nth-child(6n + 6) { background: #eadfd0; }

.section {
    padding: 28px 0;
}

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

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

.checklist,
.tier-list,
.step-list,
.toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.checklist li,
.tier-item,
.step-list li,
.toc-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.checklist li:last-child,
.tier-item:last-child,
.step-list li:last-child,
.toc-list li:last-child {
    border-bottom: 0;
}

.tier-label {
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.card h3 {
    margin: 0 0 10px;
    font-family: "Space Grotesk", "Aptos Display", sans-serif;
    font-size: 1.2rem;
}

.tier-free { color: #6a5541; background: #f0eadf; }
.tier-pro { color: #234332; background: #dbe8df; }
.tier-ent { color: #7c251e; background: #f6d8c6; }

.page-hero-panel {
    padding: 34px;
}

.guide-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
}

.guide-nav {
    position: sticky;
    top: 18px;
}

.guide-nav h2 {
    margin: 0 0 14px;
    font-family: "Space Grotesk", "Aptos Display", sans-serif;
    font-size: 1.15rem;
}

.guide-main {
    display: grid;
    gap: 18px;
}

.inline-code {
    padding: 2px 8px;
    background: rgba(35, 67, 50, 0.08);
    color: var(--moss);
    font-family: "Consolas", "Cascadia Code", monospace;
}

.cta-band {
    background:
        radial-gradient(circle at top right, rgba(197, 141, 46, 0.2), transparent 30%),
        linear-gradient(135deg, rgba(35, 67, 50, 0.88), rgba(27, 36, 29, 0.92));
    color: #f8f3ea;
}

.cta-band p {
    color: rgba(248, 243, 234, 0.8);
}

.cta-band .button-secondary,
.cta-band .button-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.footer {
    padding: 0 0 38px;
}

.footer-panel {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    padding: 20px 24px;
    border-radius: 22px;
}

.footer-panel p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 960px) {
    .hero-grid,
    .guide-layout,
    .card-grid,
    .list-grid,
    .mini-grid {
        grid-template-columns: 1fr;
    }

    .guide-nav {
        position: static;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(calc(100% - 20px), var(--max));
    }

    .topbar-inner,
    .hero-copy,
    .hero-preview,
    .content-panel,
    .page-hero-panel,
    .guide-nav,
    .guide-section,
    .cta-band {
        padding: 20px;
    }

    .nav-links,
    .preview-head,
    .section-intro {
        width: 100%;
        flex-direction: column;
    }

    .heatmap-grid {
        gap: 6px;
    }
}
