/* ============================================================
   AgentForms — Combined Stylesheet (landing pages)
   Dark theme · All inline <style> blocks extracted here
   ============================================================ */

/* ---- RESET + :root (dark theme) ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0a0a;
    --bg-card: #111111;
    --bg-elevated: #1a1a1a;
    --text: #e5e5e5;
    --text-muted: #888888;
    --text-dim: #6b6b6b;
    --accent: #10b981;
    --accent-bright: #059669;
    --accent-dim: rgba(16, 185, 129, 0.1);
    --accent-glow: rgba(16, 185, 129, 0.15);
    --border: #222222;
    --border-light: #333333;
    --success: #22c55e;
    --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mono: 'SF Mono', 'Cascadia Code', 'Fira Code', Consolas, monospace;
}

html { scroll-behavior: smooth; }
html, body { height: 100%; }

body {
    font-family: var(--font);
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---- SKIP LINK (C3) ---- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}
.skip-link:focus {
    left: 0;
    background: #10b981;
    color: #fff;
    padding: 8px 16px;
    z-index: 1000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 0;
}

/* ---- VISUALLY HIDDEN (W1) ---- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- LINE WRAP (W6) ---- */
.line-wrap { display: inline; }
@media (max-width: 768px) {
    .line-wrap { display: block; }
}

/* ---- LAYOUT ---- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.main-wrapper { flex: 1 0 auto; display: flex; flex-direction: column; min-height: calc(100vh - 60px); }

/* ---- NAV (from nav.html) ---- */
nav {
    position: sticky;
    top: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    z-index: 50;
    width: 100%;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}
.logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    font-family: var(--font);
}
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a:not(.btn):not(.logo) {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
    font-family: var(--font);
}
.nav-links > a:not(.btn):not(.logo):hover { color: var(--text); }
.btn-logout {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 7px 16px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-family: var(--font);
}
.btn-logout:hover { background: var(--bg-elevated); border-color: var(--accent); color: var(--accent); }
.user-email { font-size: 13px; color: var(--text-muted); }

/* Hamburger */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    line-height: 0;
}
.nav-hamburger svg { display: block; }
.nav-hamburger svg path { stroke: var(--text); stroke-width: 2; stroke-linecap: round; }

@media (max-width: 640px) {
    .nav-hamburger { display: block; }
    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        z-index: 101;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        padding: 8px 0;
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links > a:not(.btn):not(.logo),
    .nav-links .btn-sm {
        padding: 12px 24px;
        font-size: 15px;
        width: 100%;
        text-align: left;
        box-sizing: border-box;
    }
    .nav-links .btn-sm {
        border-radius: 0;
        margin: 4px 12px;
        width: calc(100% - 24px);
        justify-content: center;
    }
    .nav-links .btn-logout {
        border-radius: 0;
        margin: 4px 12px;
        width: calc(100% - 24px);
        display: inline-flex;
        justify-content: center;
    }
    .nav-links .user-email { padding: 8px 24px; font-size: 13px; }
    .nav-links form { display: block; }
}

@media (max-width: 640px) {
    .hide-mobile { display: none !important; }
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 24px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    font-family: var(--font);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.btn:hover {
    background: var(--accent-bright);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 8px;
}
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-light);
    color: var(--text);
    box-shadow: none;
}
.btn-outline:hover {
    border-color: #555;
    color: var(--text);
    background: rgba(255,255,255,0.03);
}
.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    line-height: 1.4;
}
.btn-danger { background: #dc3545; }
.btn-danger:hover { background: #bb2d3b; }

/* ---- HERO ---- */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.06) 0%, transparent 60%);
    pointer-events: none;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 32px;
    font-family: var(--mono);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.hero h1 {
    font-size: clamp(36px, 7vw, 68px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--text);
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.hero-note { font-size: 13px; color: var(--text-dim); }

/* ---- CODE PREVIEW ---- */
.code-preview {
    max-width: 640px;
    margin: 60px auto 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
}
.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}
.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }
.code-title {
    font-size: 12px;
    color: var(--text-dim);
    margin-left: 8px;
    font-family: var(--mono);
}
.code-body {
    padding: 20px;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-muted);
    overflow-x: auto;
}
.code-body .comment { color: var(--text-dim); }
.code-body .keyword { color: #c678dd; }
.code-body .string { color: var(--accent); }
.code-body .method { color: #61afef; }
.code-body .param { color: #e5c07b; }

/* ---- SECTION ---- */
section { padding: 80px 0; }
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin-bottom: 16px;
    font-family: var(--font);
}
.section-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.5;
}
.section-title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.15;
}
.section-sub {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.5;
}
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header.center .section-label { justify-content: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* Alternating section background */
.section-alt-bg {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ---- PROBLEM ---- */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.problem {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px 24px;
}
.problem h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.problem p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.problem-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
    color: #ef4444;
}

/* ---- FEATURES GRID ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px 24px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.feature:hover {
    border-color: var(--border-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}
.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 18px;
    color: var(--accent);
}
.feature h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.feature-tag {
    display: inline-block;
    font-size: 11px;
    font-family: var(--mono);
    color: var(--accent);
    background: var(--accent-dim);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}

/* ---- USE CASES ---- */
.use-case-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 60px;
}
.use-case-row:last-child { margin-bottom: 0; }
.use-case-text h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.use-case-text p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.use-case-text ul { list-style: none; padding: 0; margin-top: 16px; }
.use-case-text ul li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.use-case-text ul li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.use-case-visual {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
}
.use-case-visual .code-body { padding: 0; }

/* ---- ARCHITECTURE ---- */
.arch-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 48px auto 0;
    max-width: 800px;
}
.arch-node {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px 28px;
    text-align: center;
    min-width: 160px;
    transition: border-color 0.2s;
}
.arch-node:hover { border-color: var(--accent); }
.arch-node h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.arch-node p { font-size: 12px; color: var(--text-dim); margin: 0; }
.arch-arrow {
    color: var(--accent);
    font-size: 20px;
    opacity: 0.6;
}

/* ---- PRICING GRID (W12: responsive) ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.pricing-grid .feature { text-align: center; }
.pricing-grid .feature h3 {
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 8px;
    font-family: var(--font);
}
.pricing-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.pricing-period {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}
.pricing-features-list {
    text-align: left;
    font-size: 13px;
    line-height: 2;
    margin-bottom: 20px;
}
.pricing-features-list .disabled { color: var(--text-dim); }
.pricing-popular { border-color: var(--accent); }
.pricing-popular h3 { color: var(--accent); }

/* Pricing page — "What's included" */
.pricing-included {
    padding: 60px 0 80px;
    border-top: 1px solid var(--border);
}
.pricing-included .container { max-width: 700px; }
.pricing-included h3 { color: var(--text); margin-bottom: 24px; }
.included-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: left;
}
.included-item-title {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
}
.included-item-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* Pricing page — FAQ */
.pricing-faq { padding: 60px 0 80px; }
.pricing-faq .container { max-width: 700px; }
.pricing-faq-list { text-align: left; }
.faq-item {
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
}
.faq-item p {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ---- CTA ---- */
.cta { text-align: center; padding: 80px 0 100px; }
.cta-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.cta h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.cta p { color: var(--text-muted); margin-bottom: 28px; font-size: 16px; }

/* ---- FEATURES PAGE — Inline style → classes (W10/W11) ---- */
.feature-section {
    max-width: 900px;
    margin: 0 auto 48px;
}
.feature-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 32px;
}
.feature-detail-visual { display: flex; align-items: center; }
.feature-detail h3 {
    font-size: 20px;
    margin-bottom: 8px;
}
.feature-detail p { margin-bottom: 16px; }
.feature-detail ul {
    list-style: none;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 2;
}
.template-preview {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-dim);
    width: 100%;
    overflow-x: auto;
}
.template-preview-title {
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 600;
}
.template-preview-line { margin-bottom: 4px; }
.template-preview-indent { margin-left: 16px; margin-bottom: 2px; }
.template-preview-brace { color: #c678dd; }
.template-preview-value { color: var(--accent); }
.template-preview-divider {
    border-top: 1px solid var(--border);
    padding-top: 8px;
    margin-top: 8px;
}
.template-preview-note {
    margin-top: 12px;
    color: var(--text-dim);
    font-size: 11px;
}
.feature-table-wrap {
    text-align: center;
    margin-top: 12px;
}
.feature-table {
    margin: 0 auto;
    font-size: 13px;
    border-collapse: collapse;
}
.feature-table caption {
    caption-side: top;
    text-align: left;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-style: italic;
}
.feature-table thead tr { border-bottom: 1px solid var(--border); }
.feature-table th {
    text-align: left;
    padding: 8px 16px;
    color: var(--text-dim);
    font-weight: 600;
}
.feature-table th:last-child { text-align: center; }
.feature-table td { padding: 6px 16px; }
.feature-table td:last-child { text-align: center; }
.feature-table .unlimited { color: var(--accent); }

/* ---- COOKIE BANNER (C1, W8, W10/W11) ---- */
#cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    border-top: 1px solid #27272a;
    padding: 16px 24px;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.4);
}
.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.cookie-banner-text {
    flex: 1;
    min-width: 200px;
}
.cookie-banner-text span {
    color: #e4e4e7;
    font-size: 14px;
}
.cookie-banner-text a {
    color: #00ff41;
    text-decoration: underline;
}
.cookie-banner-actions {
    display: flex;
    gap: 8px;
}
.cookie-banner-actions button {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font);
}
.cookie-btn-decline {
    background: transparent;
    color: #a1a1aa;
    border: 1px solid #27272a;
}
.cookie-btn-decline:hover {
    background: rgba(255,255,255,0.05);
    color: #e4e4e7;
}
.cookie-btn-accept {
    background: #00ff41;
    color: #0a0a0b;
    border: none;
    font-weight: 600;
}
.cookie-btn-accept:hover {
    background: #00dd3b;
}

/* ---- FOOTER ---- */
footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    flex-shrink: 0;
    margin-top: auto;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-copy { font-size: 13px; color: var(--text-dim); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--text-muted); }

/* ---- DASHBOARD SPECIFIC (from base.html) ---- */
.card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); }
th { background: var(--bg-elevated); font-weight: 600; }
.token {
    font-family: var(--mono);
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
    box-sizing: border-box;
}
td.text-trunc {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stats { display: flex; gap: 16px; margin-bottom: 20px; }
.stat {
    flex: 1;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.stat-value { font-size: 2em; font-weight: bold; color: var(--text); }
.stat-label { color: var(--text-muted); margin-top: 4px; }
form input, form textarea { width: 100%; padding: 10px; margin: 8px 0; border: 1px solid var(--border); border-radius: 4px; }
form button { margin-top: 12px; }
.success { background: var(--accent-dim); color: var(--accent-bright); padding: 12px; border-radius: 4px; margin-bottom: 16px; }
.error { background: #fef2f2; color: #991b1b; padding: 12px; border-radius: 4px; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---- FORM INPUTS (from _shared.css.html) ---- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="date"],
input[type="search"],
input[type="tel"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
select,
textarea,
.form-control {
    margin: 0;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    background: var(--bg-elevated);
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    min-height: 42px;
    box-sizing: border-box;
    font-family: var(--font);
    width: 100%;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
select:focus,
textarea:focus,
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder,
input[type="url"]::placeholder,
input[type="date"]::placeholder,
input[type="search"]::placeholder,
input[type="tel"]::placeholder,
input[type="time"]::placeholder,
input[type="datetime-local"]::placeholder,
input[type="month"]::placeholder,
input[type="week"]::placeholder,
textarea::placeholder,
.form-control::placeholder {
    color: var(--text-dim);
    opacity: 1;
}
input[type="color"] {
    padding: 2px;
    height: 42px;
    width: 42px;
    cursor: pointer;
    border-radius: 6px;
}
input[type="file"] {
    padding: 8px 12px;
    font-size: 14px;
    font-family: var(--font);
    border: 1.5px dashed var(--border);
    border-radius: 6px;
    background: var(--bg-elevated);
    min-height: 42px;
    cursor: pointer;
}
input[type="file"]:hover { border-color: var(--accent); background: var(--accent-dim); }
input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border);
    border-radius: 3px;
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--bg-card);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
input:disabled,
select:disabled,
textarea:disabled,
input[readonly] {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-elevated);
}
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--accent);
    flex-shrink: 0;
}
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.5L1 3.5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
textarea { min-height: 80px; resize: vertical; }
label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
    cursor: pointer;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}
.form-group .form-hint {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 4px;
}
.form-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}
.form-inline .form-group { margin-bottom: 0; flex: 1; }

/* Code block (from _shared.css.html) */
.code-section { padding: 60px 0; }
.code-block {
    background: #1e1e2e;
    border: 1px solid #313244;
    border-radius: 10px;
    overflow: hidden;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.code-lang {
    font-size: 12px;
    color: #89b4fa;
    font-family: var(--mono);
    font-weight: 500;
}
pre {
    padding: 24px;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 13.5px;
    line-height: 1.65;
    color: #cdd6f4;
}
pre .kw { color: #cba6f7; }
pre .str { color: #a6e3a1; }
pre .cm { color: #6c7086; }
pre .fn { color: #89b4fa; }
pre .num { color: #f9e2af; }

/* Landing page override */
.landing-page .container { max-width: 100% !important; }

/* ---- MOBILE ---- */
@media (max-width: 768px) {
    .nav-links { gap: 16px; }
    .nav-links a.hide-mobile { display: none; }
    .hero { padding: 120px 0 80px; }
    .features-grid, .problem-grid { grid-template-columns: 1fr; }
    .use-case-row { grid-template-columns: 1fr; gap: 24px; }
    .use-case-row .use-case-visual { order: -1; }
    .cta-box { padding: 40px 24px; }
    .footer-inner { flex-direction: column; gap: 12px; }
    .arch-flow { flex-direction: column; }
    .arch-arrow { transform: rotate(90deg); }
    .code-preview { margin: 40px -24px 0; border-radius: 0; }
    .included-grid { grid-template-columns: 1fr; }
    .feature-detail { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .container { padding: 12px; }
    .stats { flex-wrap: wrap; }
    .stat { flex: 1 1 calc(50% - 8px); min-width: 140px; }
    th, td { padding: 8px 6px; font-size: 13px; }
    .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    form input, form textarea { min-height: 44px; }
    .pricing-grid { grid-template-columns: 1fr; }
}
