/*
 * Public shell overrides for marketing and public-facing pages.
 * Applies a single restrained visual system on top of the legacy base CSS.
 */

body.site-shell {
    --primary-bg: #13100d;
    --secondary-bg: #1a1612;
    --tertiary-bg: #221d18;

    --text-primary: #f3eee7;
    --text-secondary: rgba(243, 238, 231, 0.78);
    --text-tertiary: rgba(243, 238, 231, 0.56);
    --text-muted: rgba(243, 238, 231, 0.36);

    --accent-glow: #9cc65b;
    --accent-glow-dim: rgba(156, 198, 91, 0.14);
    --accent-glow-subtle: rgba(156, 198, 91, 0.08);
    --accent-warm: var(--accent-glow);
    --accent-warm-dim: var(--accent-glow-dim);
    --accent-cyan: var(--accent-glow);
    --accent-cyan-dim: var(--accent-glow-subtle);

    --border-color: rgba(243, 238, 231, 0.08);
    --border-color-hover: rgba(243, 238, 231, 0.16);
    --border-accent: rgba(156, 198, 91, 0.24);

    --gradient-card: linear-gradient(180deg, rgba(27, 22, 18, 0.96) 0%, rgba(20, 16, 13, 0.96) 100%);
    --gradient-slate: linear-gradient(180deg, rgba(27, 22, 18, 0.96) 0%, rgba(19, 16, 13, 0.98) 100%);
    --gradient-glow: linear-gradient(180deg, rgba(156, 198, 91, 0.06) 0%, transparent 100%);
    --gradient-radial: radial-gradient(circle at top, rgba(156, 198, 91, 0.08) 0%, transparent 56%);

    --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.18);
    --shadow-md: 0 16px 36px rgba(0, 0, 0, 0.22);
    --shadow-lg: 0 22px 48px rgba(0, 0, 0, 0.24);
    --shadow-glow: 0 0 0 3px rgba(156, 198, 91, 0.16);
    --shadow-glow-strong: var(--shadow-glow);
    --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.02);

    --radius-sm: 14px;
    --radius-btn: 14px;
    --radius-md: 14px;
    --radius-lg: 14px;
    --radius-xl: 14px;
    --radius-full: 999px;

    --font-heading: 'Bricolage Grotesque', system-ui, sans-serif;
    --font-body: 'Bricolage Grotesque', system-ui, sans-serif;

    background-color: var(--primary-bg);
    background-image: none;
    color: var(--text-primary);
    font-family: var(--font-body);
}

body.site-shell::before {
    background: radial-gradient(circle at 50% -12%, rgba(156, 198, 91, 0.1) 0%, transparent 54%);
}

body.site-shell::after {
    display: none;
}

body.site-shell #neural-canvas {
    display: none !important;
}

body.site-shell ::selection {
    background: rgba(156, 198, 91, 0.24);
    color: var(--text-primary);
}

body.site-shell h1,
body.site-shell h2,
body.site-shell h3,
body.site-shell h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.03em;
}

body.site-shell p,
body.site-shell li {
    color: var(--text-secondary);
}

body.site-shell .container {
    max-width: 1200px;
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
}

body.site-shell a {
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

body.site-shell a:hover {
    color: var(--text-primary);
}

body.site-shell :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: none;
    box-shadow: var(--shadow-glow);
}

body.site-shell main {
    position: relative;
    z-index: 1;
}

body.site-shell .skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    padding: 0.75rem 1rem;
    background: var(--accent-glow);
    color: #13100d;
    border-radius: var(--radius-md);
    font-weight: 700;
    z-index: 400;
}

body.site-shell .skip-link:focus {
    top: 1rem;
}

body.site-shell header {
    height: auto;
    min-height: 80px;
    background: rgba(19, 16, 13, 0.82);
    border-bottom: 1px solid var(--border-color);
    box-shadow: none !important;
}

body.site-shell header .container {
    min-height: 80px;
    gap: 1.25rem;
}

body.site-shell .logo {
    gap: 0.875rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.site-shell .logo:hover {
    color: var(--text-primary);
}

body.site-shell .logo img {
    width: 36px;
    height: 36px;
    padding: 0.45rem;
    background: rgba(243, 238, 231, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

body.site-shell nav ul {
    gap: 0.35rem;
}

body.site-shell nav a {
    color: var(--text-tertiary);
    padding: 0.7rem 0.95rem;
    border-radius: var(--radius-md);
    font-size: 0.93rem;
    font-weight: 500;
}

body.site-shell nav a:hover {
    color: var(--text-primary);
    background: rgba(243, 238, 231, 0.03);
}

body.site-shell nav a.active {
    color: var(--text-primary);
    background: rgba(243, 238, 231, 0.04);
}

body.site-shell nav a.nav-cta {
    background: var(--accent-glow);
    border-color: transparent;
    color: #13100d;
    font-weight: 700;
}

body.site-shell nav a.nav-cta:hover,
body.site-shell nav a.nav-cta.active {
    background: #afd56f;
    color: #13100d;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

body.site-shell nav a.nav-dashboard {
    background: rgba(243, 238, 231, 0.03);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

body.site-shell nav a.nav-dashboard:hover {
    background: rgba(243, 238, 231, 0.05);
    border-color: var(--border-color-hover);
    color: var(--text-primary);
}

body.site-shell .menu-toggle {
    border: 1px solid var(--border-color);
    background: rgba(243, 238, 231, 0.03);
}

body.site-shell .menu-toggle:hover {
    background: rgba(243, 238, 231, 0.06);
}

body.site-shell .menu-toggle span {
    width: 18px;
    background-color: var(--text-primary);
}

body.site-shell .btn,
body.site-shell .btn-accent,
body.site-shell .btn-primary-cta {
    background: var(--accent-glow);
    color: #13100d;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 700;
    box-shadow: none;
    transition: background-color 0.18s ease, transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body.site-shell .btn:hover,
body.site-shell .btn-accent:hover,
body.site-shell .btn-primary-cta:hover {
    background: #afd56f;
    color: #13100d;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

body.site-shell .btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

body.site-shell .btn-outline:hover {
    border-color: var(--border-color-hover);
    background: rgba(243, 238, 231, 0.03);
    box-shadow: none;
}

body.site-shell input,
body.site-shell textarea,
body.site-shell select {
    background: rgba(243, 238, 231, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    box-shadow: none;
}

body.site-shell input:focus,
body.site-shell textarea:focus,
body.site-shell select:focus {
    background: rgba(243, 238, 231, 0.05);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

body.site-shell input::placeholder,
body.site-shell textarea::placeholder {
    color: var(--text-muted);
}

body.site-shell .alert {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: rgba(243, 238, 231, 0.03);
}

body.site-shell .alert-success {
    color: #c9e8a1;
    border-color: rgba(156, 198, 91, 0.22);
    background: rgba(156, 198, 91, 0.08);
}

body.site-shell .alert-error {
    color: #ffb6b1;
    border-color: rgba(255, 117, 117, 0.2);
    background: rgba(255, 117, 117, 0.08);
}

body.site-shell .glass-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: none;
}

body.site-shell .glass-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

body.site-shell footer {
    margin-top: 0;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

body.site-shell .footer-content {
    display: block;
}

body.site-shell .site-footer-grid {
    display: grid;
    gap: 1.5rem;
}

body.site-shell .site-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 0.85rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.site-shell .site-footer-brand img {
    width: 36px;
    height: 36px;
    padding: 0.45rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(243, 238, 231, 0.03);
}

body.site-shell .site-footer-copy {
    max-width: 36ch;
    margin: 0;
}

body.site-shell .site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.15rem;
    align-content: start;
}

body.site-shell .site-footer-links a {
    color: var(--text-secondary);
}

body.site-shell .site-footer-links a:hover {
    color: var(--text-primary);
}

body.site-shell .site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.85rem 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
}

body.site-shell .site-footer-bottom p {
    margin: 0;
    color: var(--text-tertiary);
}

body.site-shell .site-footer-bottom a {
    color: var(--text-secondary);
}

body.site-shell .site-footer-bottom a:hover {
    color: var(--text-primary);
}

.landing-page {
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(4rem, 8vw, 6rem);
}

.home-hero {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    padding: clamp(1rem, 3vw, 2rem) 0 clamp(2.5rem, 6vw, 4.5rem);
    border-bottom: 1px solid var(--border-color);
}

.home-hero-copy {
    max-width: 56rem;
}

.home-kicker,
.home-section-kicker,
.home-panel-label,
.home-brief-kicker {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.home-kicker {
    color: var(--accent-glow);
}

.home-section-kicker,
.home-panel-state,
.home-brief-kicker {
    color: var(--text-tertiary);
}

.home-title {
    max-width: 9ch;
    margin: 0.7rem 0 1rem;
    font-size: clamp(3.2rem, 9vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.home-lead {
    max-width: 32ch;
    margin: 0 0 1.35rem;
    font-size: clamp(1rem, 2vw, 1.04rem);
    line-height: 1.6;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.home-hero-panel {
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(31, 26, 21, 0.96) 0%, rgba(20, 16, 13, 0.98) 100%);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.home-panel-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.guest-preview-shell {
    display: grid;
    gap: 0.9rem;
}

.guest-preview-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.guest-preview-heading {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.guest-preview-mode-row {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.1rem;
}

.guest-mode-btn {
    min-height: 40px;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(243, 238, 231, 0.03);
    color: var(--text-secondary);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.guest-mode-btn:hover {
    border-color: var(--border-color-hover);
    color: var(--text-primary);
}

.guest-mode-btn.is-active {
    border-color: rgba(156, 198, 91, 0.18);
    background: rgba(156, 198, 91, 0.08);
    color: var(--text-primary);
}

.guest-preview-window {
    display: grid;
    gap: 0.65rem;
}

.guest-preview-messages {
    display: grid;
    gap: 0.65rem;
    min-height: 250px;
    max-height: 320px;
    padding: 0.1rem;
    overflow: auto;
}

.guest-message {
    display: flex;
}

.guest-message.user {
    justify-content: flex-end;
}

.guest-message-bubble {
    width: min(100%, 30rem);
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(243, 238, 231, 0.035);
}

.guest-message.user .guest-message-bubble {
    background: rgba(243, 238, 231, 0.05);
    border-color: rgba(243, 238, 231, 0.08);
}

.guest-message-bubble p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.55;
    font-size: 0.89rem;
}

.guest-message-bubble strong {
    color: var(--text-primary);
}

.guest-message-bubble ul,
.guest-message-bubble ol {
    margin: 0.65rem 0 0 1.1rem;
    padding: 0;
}

.guest-message-bubble li + li {
    margin-top: 0.3rem;
}

.guest-preview-suggestions {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guest-suggestion-chip {
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(243, 238, 231, 0.03);
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.84rem;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.guest-suggestion-chip:hover {
    border-color: var(--border-color-hover);
    background: rgba(243, 238, 231, 0.05);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.guest-preview-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
}

.guest-preview-input {
    min-height: 48px;
    max-height: 120px;
    resize: none;
    font-size: 0.92rem;
}

.guest-preview-send {
    min-width: 96px;
    align-self: stretch;
}

.home-section {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.home-section + .home-section {
    border-top: 1px solid var(--border-color);
}

.home-section-head {
    max-width: 32rem;
    margin-bottom: 1.15rem;
}

.home-section-kicker {
    color: var(--text-tertiary);
}

.home-section-head h2 {
    margin: 0.5rem 0 0;
    font-size: clamp(1.9rem, 5vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.home-process-grid {
    display: grid;
    gap: 1rem;
}

.home-process-card {
    padding: 1.35rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--gradient-card);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.home-process-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.home-process-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.06rem;
}

.home-process-card p {
    margin: 0;
    color: var(--text-secondary);
}

.home-cta-panel {
    display: grid;
    gap: 0.85rem;
    align-items: center;
    padding: clamp(1.2rem, 4vw, 1.7rem);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: rgba(243, 238, 231, 0.02);
}

.home-cta-panel h2 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.home-cta-panel p {
    margin: 0;
    color: var(--text-secondary);
}

@media (min-width: 900px) {
    .home-hero {
        grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
        align-items: center;
    }

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

    .home-cta-panel {
        grid-template-columns: minmax(0, 1fr) auto;
        justify-content: space-between;
    }

    body.site-shell .site-footer-grid {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }
}

@media (max-width: 768px) {
    body.site-shell nav ul {
        top: 80px;
        background: rgba(19, 16, 13, 0.96);
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        gap: 0.35rem;
    }

    body.site-shell nav ul li a {
        width: 100%;
    }

    body.site-shell nav a.nav-cta,
    body.site-shell nav a.nav-dashboard {
        margin-top: 0.35rem;
    }
}

@media (max-width: 640px) {
    .home-title {
        max-width: 11ch;
    }

    .home-hero-panel,
    .home-process-card,
    .home-cta-panel {
        padding: 1.15rem;
    }

    .home-actions,
    .home-cta-actions {
        flex-direction: column;
    }

    .home-actions .btn,
    .home-actions .btn-outline,
    .home-cta-actions .btn,
    .home-cta-actions .btn-outline {
        width: 100%;
    }

    .guest-preview-messages {
        min-height: 220px;
    }

    .guest-preview-suggestions {
        grid-template-columns: 1fr;
    }

    .guest-preview-form {
        grid-template-columns: 1fr;
    }

    body.site-shell .site-footer-bottom {
        flex-direction: column;
    }
}

body.site-shell .public-page {
    padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(4rem, 8vw, 6rem);
}

body.site-shell .public-shell-narrow {
    max-width: 920px;
}

body.site-shell .public-shell-article {
    max-width: 860px;
}

body.site-shell .public-hero {
    padding: clamp(1rem, 3vw, 2rem) 0 clamp(1.8rem, 4vw, 3rem);
    border-bottom: 1px solid var(--border-color);
}

body.site-shell .public-kicker,
body.site-shell .public-section-kicker,
body.site-shell .public-card-kicker,
body.site-shell .public-meta-label,
body.site-shell .public-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.site-shell .public-kicker,
body.site-shell .public-pill {
    color: var(--accent-glow);
}

body.site-shell .public-pill {
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(156, 198, 91, 0.2);
    border-radius: 999px;
    background: rgba(156, 198, 91, 0.08);
}

body.site-shell .public-title {
    max-width: 14ch;
    margin: 0.75rem 0 1rem;
    font-size: clamp(2.8rem, 8vw, 5rem);
    line-height: 1.04;
}

body.site-shell .public-title--wide {
    max-width: 18ch;
}

body.site-shell .public-lead {
    max-width: 60ch;
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.75;
    color: var(--text-secondary);
}

body.site-shell .public-actions,
body.site-shell .public-footer-actions,
body.site-shell .public-inline-actions,
body.site-shell .public-anchor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

body.site-shell .public-hero-meta,
body.site-shell .public-stat-grid,
body.site-shell .public-grid,
body.site-shell .pricing-grid,
body.site-shell .public-post-list,
body.site-shell .public-flow {
    display: grid;
    gap: 1rem;
}

body.site-shell .public-hero-meta {
    margin-top: 1.25rem;
}

body.site-shell .public-stat,
body.site-shell .public-card,
body.site-shell .public-article-content,
body.site-shell .public-anchor-nav,
body.site-shell .public-form-panel,
body.site-shell .error-page-shell {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

body.site-shell .public-stat,
body.site-shell .public-card,
body.site-shell .public-form-panel,
body.site-shell .error-page-shell,
body.site-shell .public-anchor-nav,
body.site-shell .public-article-content {
    padding: 1.15rem;
}

body.site-shell .public-card:hover,
body.site-shell .public-stat:hover,
body.site-shell .public-post-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

body.site-shell .public-card--accent,
body.site-shell .pricing-card--featured {
    border-color: rgba(156, 198, 91, 0.22);
    background: linear-gradient(180deg, rgba(31, 28, 20, 0.98) 0%, rgba(20, 16, 13, 0.98) 100%);
}

body.site-shell .public-card-kicker,
body.site-shell .public-section-kicker,
body.site-shell .public-meta-label {
    color: var(--text-tertiary);
}

body.site-shell .public-card-title,
body.site-shell .public-stat strong,
body.site-shell .public-post-title,
body.site-shell .pricing-card h2,
body.site-shell .pricing-price,
body.site-shell .public-article-title,
body.site-shell .error-page-title {
    margin: 0;
    color: var(--text-primary);
}

body.site-shell .public-card-title,
body.site-shell .public-post-title {
    margin-top: 0.35rem;
    font-size: 1.2rem;
}

body.site-shell .public-section {
    padding: clamp(2.25rem, 6vw, 4rem) 0;
}

body.site-shell .public-section + .public-section {
    border-top: 1px solid var(--border-color);
}

body.site-shell .public-section-head {
    max-width: 52rem;
    margin-bottom: 1.4rem;
}

body.site-shell .public-section-title {
    margin: 0.45rem 0 0;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
}

body.site-shell .public-section-copy,
body.site-shell .public-card p,
body.site-shell .public-post-excerpt,
body.site-shell .public-empty,
body.site-shell .public-form-note,
body.site-shell .error-page-note {
    color: var(--text-secondary);
}

body.site-shell .public-stack {
    display: grid;
    gap: 1rem;
}

body.site-shell .public-list {
    display: grid;
    gap: 0.7rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.site-shell .public-list li {
    position: relative;
    padding-left: 1rem;
}

body.site-shell .public-list li::before {
    content: '';
    position: absolute;
    top: 0.7em;
    left: 0;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: rgba(156, 198, 91, 0.6);
}

body.site-shell .public-inline-code,
body.site-shell .public-table code,
body.site-shell .public-code-block code,
body.site-shell .public-anchor-nav code,
body.site-shell .public-article-content code {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.92em;
}

body.site-shell .public-inline-code,
body.site-shell .public-article-content :not(pre) > code {
    padding: 0.15rem 0.4rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(243, 238, 231, 0.04);
}

body.site-shell .public-code-block {
    margin: 0.85rem 0 0;
    padding: 0.95rem 1rem;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: rgba(243, 238, 231, 0.03);
}

body.site-shell .public-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: rgba(243, 238, 231, 0.015);
}

body.site-shell .public-table {
    width: 100%;
    border-collapse: collapse;
}

body.site-shell .public-table th,
body.site-shell .public-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
}

body.site-shell .public-table th {
    color: var(--text-tertiary);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(243, 238, 231, 0.03);
}

body.site-shell .public-table tr:last-child td {
    border-bottom: none;
}

body.site-shell .public-post-list {
    margin-top: 1.5rem;
}

body.site-shell .public-post-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--gradient-card);
    box-shadow: var(--shadow-sm);
}

body.site-shell .public-post-media {
    display: block;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: rgba(243, 238, 231, 0.03);
    aspect-ratio: 16 / 10;
}

body.site-shell .public-post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.site-shell .public-post-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 2rem;
}

body.site-shell .public-post-meta,
body.site-shell .public-pagination-link,
body.site-shell .public-article-meta {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

body.site-shell .public-post-title {
    display: inline-block;
    margin-top: 0.45rem;
    text-decoration: none;
}

body.site-shell .public-post-title:hover {
    color: var(--accent-glow);
}

body.site-shell .public-post-excerpt {
    margin: 0.55rem 0 0;
    line-height: 1.7;
}

body.site-shell .public-post-admin {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.85rem;
}

body.site-shell .public-admin-btn,
body.site-shell .public-pagination-link,
body.site-shell .public-chip-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(243, 238, 231, 0.03);
    color: var(--text-secondary);
    text-decoration: none;
}

body.site-shell .public-admin-btn:hover,
body.site-shell .public-pagination-link:hover,
body.site-shell .public-chip-link:hover {
    border-color: var(--border-color-hover);
    background: rgba(243, 238, 231, 0.05);
    color: var(--text-primary);
}

body.site-shell .public-admin-btn--danger {
    color: #ffb6b1;
    border-color: rgba(255, 117, 117, 0.26);
    background: rgba(255, 117, 117, 0.08);
}

body.site-shell .public-admin-btn--danger:hover {
    border-color: rgba(255, 117, 117, 0.42);
    color: #ffd4d0;
}

body.site-shell .public-inline-form {
    display: inline-flex;
}

body.site-shell .public-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

body.site-shell .public-pagination-current {
    color: var(--text-primary);
    border-color: rgba(156, 198, 91, 0.22);
    background: rgba(156, 198, 91, 0.08);
}

body.site-shell .public-pagination-disabled {
    opacity: 0.4;
    pointer-events: none;
}

body.site-shell .public-form-panel {
    max-width: 760px;
}

body.site-shell .public-form {
    display: grid;
    gap: 1rem;
}

body.site-shell .public-form-grid {
    display: grid;
    gap: 1rem;
}

body.site-shell .public-form-field {
    display: grid;
    gap: 0.45rem;
}

body.site-shell .public-form-field label {
    color: var(--text-tertiary);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.site-shell .public-char-count {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}

body.site-shell .public-captcha {
    display: grid;
    grid-template-columns: 120px 44px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}

body.site-shell .public-captcha img {
    width: 120px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    object-fit: contain;
}

body.site-shell .public-captcha button {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: var(--radius-md);
}

body.site-shell .public-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

body.site-shell .public-flow-card {
    position: relative;
    padding-left: 1.2rem;
}

body.site-shell .public-flow-card::before {
    content: '';
    position: absolute;
    top: 1.2rem;
    left: 0;
    width: 3px;
    height: calc(100% - 2.4rem);
    border-radius: 999px;
    background: rgba(156, 198, 91, 0.42);
}

body.site-shell .public-flow-card h3,
body.site-shell .public-flow-card h4 {
    margin: 0.35rem 0 0.55rem;
}

body.site-shell .pricing-grid {
    margin-top: 1.4rem;
}

body.site-shell .pricing-card {
    display: grid;
    gap: 1rem;
}

body.site-shell .pricing-badge {
    justify-self: start;
}

body.site-shell .pricing-price {
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 1;
}

body.site-shell .pricing-price span {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    font-weight: 500;
}

body.site-shell .pricing-card p {
    margin: 0;
}

body.site-shell .public-article {
    display: grid;
    gap: 1.25rem;
}

body.site-shell .public-article-feature {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: rgba(243, 238, 231, 0.03);
    box-shadow: var(--shadow-sm);
}

body.site-shell .public-article-feature img {
    display: block;
    width: 100%;
    height: auto;
}

body.site-shell .public-article-header {
    padding-bottom: 0.3rem;
}

body.site-shell .public-article-title {
    margin: 0.6rem 0 0;
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    line-height: 1.06;
}

body.site-shell .public-article-content > * {
    margin-top: 0;
    margin-bottom: 1rem;
}

body.site-shell .public-article-content > *:last-child {
    margin-bottom: 0;
}

body.site-shell .public-footer-actions {
    margin-top: 0.25rem;
}

body.site-shell .public-article-content h1,
body.site-shell .public-article-content h2,
body.site-shell .public-article-content h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

body.site-shell .public-article-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

body.site-shell .public-article-content h3 {
    font-size: 1.2rem;
}

body.site-shell .public-article-content ul,
body.site-shell .public-article-content ol {
    padding-left: 1.3rem;
}

body.site-shell .public-article-content li + li {
    margin-top: 0.45rem;
}

body.site-shell .public-article-content a {
    color: var(--accent-glow);
}

body.site-shell .public-article-content blockquote {
    margin: 1.25rem 0;
    padding: 0.95rem 1rem;
    border-left: 3px solid rgba(156, 198, 91, 0.42);
    border-radius: 0 14px 14px 0;
    background: rgba(243, 238, 231, 0.03);
    color: var(--text-primary);
}

body.site-shell .public-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

body.site-shell .public-article-content pre {
    margin: 1.1rem 0;
    padding: 1rem;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: rgba(243, 238, 231, 0.04);
}

body.site-shell .error-page {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
}

body.site-shell .error-page-shell {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    padding: clamp(1.4rem, 5vw, 2.4rem);
}

body.site-shell .error-page-code {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--accent-glow);
    font-size: clamp(4.5rem, 18vw, 8.5rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
}

body.site-shell .error-page-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

body.site-shell .error-page-copy {
    max-width: 52ch;
    margin: 1rem auto 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

body.site-shell .error-page-note {
    margin: 1.2rem auto 0;
    max-width: 54ch;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

body.site-shell .error-page-actions {
    justify-content: center;
    margin-top: 1.4rem;
}

body.site-shell .error-page-links {
    justify-content: center;
    margin-top: 1rem;
}

@media (min-width: 900px) {
    body.site-shell .public-grid--2,
    body.site-shell .public-hero-meta,
    body.site-shell .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    body.site-shell .public-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.site-shell .public-post-card {
        grid-template-columns: 240px minmax(0, 1fr);
        align-items: start;
    }
}

@media (max-width: 768px) {
    body.site-shell .public-actions,
    body.site-shell .public-footer-actions,
    body.site-shell .error-page-actions,
    body.site-shell .error-page-links {
        flex-direction: column;
    }

    body.site-shell .public-actions .btn,
    body.site-shell .public-actions .btn-outline,
    body.site-shell .public-footer-actions .btn,
    body.site-shell .public-footer-actions .btn-outline,
    body.site-shell .error-page-actions .btn,
    body.site-shell .error-page-actions .btn-outline {
        width: 100%;
    }

    body.site-shell .public-captcha {
        grid-template-columns: 1fr;
    }

    body.site-shell .public-captcha img {
        width: 100%;
    }
}
