:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --card: #ffffff;
    --card-strong: #f0f4ff;
    --card-alt: #f8fafc;
    --primary: #2b59c3;
    --primary-strong: #1f3f82;
    --accent: #22b8cf;
    --highlight: #0ea5e9;
    --amber: #f59e0b;
    --magenta: #ec4899;
    --success: #16a34a;
    --text: #0f172a;
    --muted: #4b5563;
    --border: #e5e7eb;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --frost: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.grid { display: grid; gap: 1.25rem; }
.col-1 { grid-template-columns: 1fr; }
.col-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.col-2-tight { grid-template-columns: 1.2fr 0.8fr; }

@media (max-width: 960px) {
    .col-2, .col-3, .col-4, .col-2-tight { grid-template-columns: 1fr; }
}

p, li { color: var(--muted); max-width: 72ch; }

.eyebrow, .metric-value, h1, h2, h3 { color: var(--text); }

.site-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-wrap: wrap;
}

.brand a {
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    background: #ffffff;
}

.brand-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--primary-strong);
    font-weight: 700;
    letter-spacing: 0.01em;
    font-size: 0.85rem;
    border: 1px solid var(--border);
}

.nav-toggle { display: none; }

.nav-toggle-button {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #ffffff;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.nav-toggle-button span {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 4px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex: 1;
}

.nav-links, .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.site-nav a,
.link-button {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.ghost-pill {
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
}

.subtle-pill {
    border: 1px solid var(--border);
    background: #f8fafc;
}

.site-nav a:hover,
.link-button:hover {
    border-color: var(--border);
    background: #eef2ff;
    color: var(--primary-strong);
}

.inline-form { display: inline; margin: 0; }

.nav-cta {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    box-shadow: 0 12px 24px rgba(43, 89, 195, 0.18);
}

.nav-text {
    padding: 0.45rem 0.7rem;
    font-weight: 700;
}

.content {
    padding: 2.8rem 2rem 4rem;
    max-width: 1180px;
    margin: 0 auto;
}

.section { margin: 3.4rem 0; }

.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.25rem;
    align-items: center;
    padding: 1.6rem;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-copy h1 {
    font-size: clamp(2.25rem, 3vw + 1.2rem, 3.1rem);
    margin: 0.35rem 0 0.6rem;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.hero .lead { color: var(--muted); margin-bottom: 1.35rem; font-size: 1.02rem; }
.hero .eyebrow { letter-spacing: 0.08em; text-transform: uppercase; font-weight: 800; }

.accent-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.65rem; }

.spark {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #eef2ff;
    border: 1px solid var(--border);
    color: var(--primary-strong);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.spark .dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem 1rem;
    min-height: 2.4rem;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--primary-strong);
    border: 1px solid var(--border);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.pill.note {
    background: #f0f9ff;
    color: var(--highlight);
    border-color: #dbeafe;
    width: 100%;
    justify-content: center;
}

.card {
    background: var(--card);
    padding: 1.85rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.highlight-card {
    border: 1px solid #dbeafe;
    background: var(--card-strong);
    box-shadow: 0 18px 36px rgba(59, 130, 246, 0.15);
}

.badge-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.95rem; }

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 12px;
    background: #eef2ff;
    color: var(--primary-strong);
    font-weight: 600;
    border: 1px solid var(--border);
    letter-spacing: 0.01em;
}

.tag.accent { background: #f0fdf4; color: var(--success); border-color: #dcfce7; }
.tag.alt { background: #fffbeb; color: var(--amber); border-color: #fde68a; }

.cta-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.primary, .ghost, .secondary, button.primary {
    display: inline-block;
    padding: 0.95rem 1.45rem;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    transition: transform 0.1s ease, box-shadow 0.15s ease, opacity 0.2s ease;
}

.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(43, 89, 195, 0.25);
}

.primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(43, 89, 195, 0.32); }

.ghost {
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    box-shadow: none;
}

.ghost:hover { border-color: var(--primary); color: var(--primary-strong); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08); }

.secondary { border: 1px solid var(--border); color: var(--text); background: transparent; }

.hero-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-top: 1.35rem; }

.metric {
    padding: 0.95rem 1.1rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.metric-value { display: block; font-size: 1.5rem; font-weight: 800; color: var(--primary-strong); }
.metric-label { color: var(--muted); font-size: 0.95rem; }

.section-heading h2 { margin: 0.3rem 0 0.5rem; font-size: clamp(1.6rem, 2vw + 1rem, 2.05rem); }
.section-heading .subtle { color: var(--muted); max-width: 680px; }
.section-heading.compact h2 { font-size: 1.4rem; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }

.feature-grid.compact-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.35rem 1.4rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover { transform: translateY(-4px); border-color: #cbd5e1; box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12); }
.feature-card .icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.feature-card h3 { margin: 0.2rem 0 0.5rem; }
.feature-card p { color: var(--muted); }

.checklist { padding-left: 1.1rem; color: var(--text); }
.checklist li { margin-bottom: 0.4rem; }

.section.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.6rem; align-items: start; }

.steps { padding-left: 1.2rem; color: var(--text); }
.steps li { margin-bottom: 0.65rem; }
.steps strong { color: var(--primary-strong); }

.pricing-card {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 2rem;
    display: grid;
    gap: 1.2rem;
}

.pricing-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.pricing-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.95rem 1.05rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: transform 0.1s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pricing-list li:hover { transform: translateY(-2px); border-color: #cbd5e1; box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08); }
.price { font-weight: 800; color: var(--primary-strong); font-size: 1.05rem; }

.pricing-card .cta-row { margin-top: 0.3rem; }
.pricing-card .cta-row a { flex: 1; text-align: center; min-width: 220px; }

.form-card { max-width: 520px; margin: 0 auto; }

form { display: flex; flex-direction: column; gap: 0.75rem; }
label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 600; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"] {
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43, 89, 195, 0.15); }

.checkbox { flex-direction: row; align-items: center; gap: 0.5rem; }

.validation { color: #dc2626; }
.notice { color: var(--success); }
.muted { color: var(--muted); }

.portal-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1rem; }

.portal-hero .card { padding: 1.2rem 1.3rem; position: relative; overflow: hidden; }

.portal-hero .card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(34, 197, 235, 0.12), transparent 40%);
    pointer-events: none;
}

.stat-label { color: var(--muted); font-size: 0.92rem; }
.stat-value { font-size: 1.35rem; font-weight: 800; margin-top: 0.2rem; color: var(--primary-strong); }
.stat-hint { color: var(--muted); font-weight: 600; font-size: 0.95rem; }

.portal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.15rem; margin-bottom: 1.3rem; }
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1.2rem; }
.summary dt { color: var(--muted); font-size: 0.9rem; }
.summary dd { margin: 0; font-weight: 700; color: var(--text); }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.4rem 0 0.7rem; }
.chip {
    padding: 0.35rem 0.75rem;
    background: #f1f5f9;
    color: var(--muted);
    border-radius: 999px;
    border: 1px solid var(--border);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; }

.clips { width: 100%; border-collapse: collapse; }
.clips th, .clips td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--border); text-align: left; }
.clips th { color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }
.clips tbody tr:hover { background: #f8fafc; }

.clip-status { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.55rem; border-radius: 999px; background: #eef2ff; border: 1px solid #dbeafe; font-weight: 700; color: var(--primary-strong); }
.clip-status.ready { background: #f0fdf4; border-color: #bbf7d0; color: var(--success); }
.clip-status.queued { background: #fffbeb; border-color: #fde68a; color: var(--amber); }

.table-card { padding: 1.1rem 1.2rem; border-radius: 18px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); }

.table-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.8rem; }
.table-head h2 { margin: 0; }
.table-actions { display: flex; gap: 0.6rem; align-items: center; }

.list-card { display: block; }

.resource-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.resource-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
}

.resource-title { margin: 0; color: var(--text); font-weight: 700; }
.resource-meta { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.95rem; }

.quick-links { margin-top: 2.2rem; }

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.quick-link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.1s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-link:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.quick-link .icon { font-size: 1.4rem; }
.link-caret { font-weight: 800; color: var(--primary-strong); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1rem 0 1.4rem; }
.contact-grid .resource-title { font-size: 1rem; }

.faq-list { display: grid; gap: 0.6rem; }
.faq-list details {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    background: var(--card);
}

.faq-list summary { cursor: pointer; font-weight: 700; color: var(--text); }
.faq-list p { margin: 0.55rem 0 0; }

.callout {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    background: #ecfeff;
    border: 1px solid #bae6fd;
    border-radius: 14px;
    color: var(--text);
}

.callout strong { color: var(--primary-strong); }

.site-footer { text-align: center; color: var(--muted); padding: 1.5rem 0; border-top: 1px solid var(--border); margin-top: 2rem; }

@media (max-width: 900px) {
    .site-header { align-items: center; }
    .nav-toggle-button { display: inline-flex; }
    .site-nav {
        width: 100%;
        border-radius: 14px;
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
        padding: 0.75rem 0.9rem;
        display: none;
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    .nav-links, .nav-actions { flex-direction: column; align-items: stretch; gap: 0.4rem; }
    .nav-links a { width: 100%; background: transparent; border: none; padding: 0.45rem 0.6rem; }
    .nav-actions { padding-top: 0.35rem; border-top: 1px solid var(--border); width: 100%; }
    .nav-actions a, .nav-actions .link-button { width: 100%; text-align: center; justify-content: center; }
    .nav-actions .link-button { border: none; background: transparent; }
    .nav-cta { width: 100%; text-align: center; box-shadow: none; }
    .nav-toggle:checked ~ .nav-toggle-button { border-color: var(--primary); }
    .nav-toggle:checked ~ .site-nav { display: flex; }
    .hero { grid-template-columns: 1fr; padding: 1rem; }
    .cta-row { width: 100%; }
    .cta-row a, .cta-row button { width: auto; }
}

@media (max-width: 640px) {
    .content { padding: 2rem 1.25rem 3rem; }
    .section { margin: 2.5rem 0; }
    .table-head { flex-direction: column; align-items: flex-start; }
    .site-header { padding: 0.9rem 1.25rem; }
    .brand-tag { display: none; }
}
