/* `sa-btn` is used by pages on this shell too (the forms-coverage
 * report), which loads style.css rather than the app bundle — without
 * this its "Download CSV" renders as bare underlined link text. */
@import url('_sa_buttons.css');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --primary-50: #eff6ff;
    --secondary: #0f172a;
    --text: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #6366f1;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Always reserve the vertical-scrollbar gutter so navigating
       between a short page (no scrollbar) and a tall page (with
       scrollbar) doesn't shift the centered content by ~15px.
       ``scrollbar-gutter: stable`` is the modern way (reserves
       the gutter without forcing the scrollbar to render); the
       fallback ``overflow-y: scroll`` covers older browsers by
       always showing the scrollbar. Both together = no layout
       jitter on route changes, regardless of browser. */
    overflow-y: scroll;
    scrollbar-gutter: stable;
    /* Match body background so inter-page paint doesn't flash white. */
    background: #f5f4f1;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

img { max-width: 100%; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.938rem;
    line-height: 1;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

/* Tertiary button — borderless, sits next to primary/outline without
   competing for attention. Used for the "View the platform" preview
   link in the landing hero. */
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: transparent;
    padding-left: 4px;
    padding-right: 4px;
}
.btn-ghost:hover {
    color: var(--primary);
    background: transparent;
    transform: translateY(-1px);
}

.btn-white {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}
.btn-white:hover {
    background: var(--primary-50);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ===== NAVBAR ===== */
.navbar {
    /* Sticky, not fixed: sticky occupies its own space in normal flow,
       so nothing below it is clipped, while still pinning to the top on
       scroll. As `fixed` it overlapped the first element of every page
       that didn't hand-pad itself — the AP, admin, super-admin and
       vendor surfaces all lost their <h1> underneath it.
       The landing hero *wants* the overlay (it pads 140px for exactly
       that) and opts back in via .navbar--overlay. */
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar--overlay {
    position: fixed;
    left: 0;
    right: 0;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--secondary);
}

.brand-icon {
    color: var(--primary);
    display: flex;
}

.brand-text {
    letter-spacing: -0.02em;
}

.brand-accent {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-links a {
    display: block;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--primary-50);
}

.btn-nav {
    margin-left: 12px;
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* Sign-in dropdown (CSS-only via <details>/<summary>) */
.nav-signin-dropdown {
    position: relative;
    margin-left: 12px;
}

.nav-signin-dropdown summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 0;
}

.nav-signin-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-signin-chevron {
    transition: transform 0.15s ease;
}

.nav-signin-dropdown[open] .nav-signin-chevron {
    transform: rotate(180deg);
}

.nav-signin-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 280px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    z-index: 100;
}

.nav-signin-option {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
    text-decoration: none;
}

.nav-signin-option:hover {
    background: var(--primary-50);
}

.nav-signin-option-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: 2px;
}

.nav-signin-option-desc {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.4;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 140px 0 100px;
    background: linear-gradient(135deg, var(--primary-50) 0%, #fff 50%, #f0f4ff 100%);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--info);
    bottom: -150px;
    left: -100px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--primary);
    top: 50%;
    left: 40%;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.813rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--secondary);
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.188rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-sub-4c {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-proof {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.proof-icon {
    display: flex;
    color: var(--success);
}

/* ===== HERO DASHBOARD MOCK ===== */
.hero-dashboard {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border);
}

.dash-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.dash-dots {
    display: flex;
    gap: 6px;
}

.dash-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dash-dots span:nth-child(1) { background: #ef4444; }
.dash-dots span:nth-child(2) { background: #f59e0b; }
.dash-dots span:nth-child(3) { background: #10b981; }

.dash-title {
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--text-light);
}

.dash-body {
    padding: 20px;
}

.dash-stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.dash-stat {
    text-align: center;
    padding: 16px 8px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
}

.dash-stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.dash-stat-label {
    display: block;
    font-size: 0.688rem;
    color: var(--text-lighter);
    font-weight: 500;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dash-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.dash-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.688rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.badge-review {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-correction {
    background: #fef3c7;
    color: #b45309;
}

.badge-sign {
    background: #ede9fe;
    color: #6d28d9;
}

.badge-complete {
    background: #d1fae5;
    color: #047857;
}

.dash-name {
    flex: 1;
    font-weight: 500;
    color: var(--text);
}

.dash-tag {
    font-size: 0.75rem;
    color: var(--text-lighter);
    font-weight: 500;
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--secondary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-desc {
    font-size: 1.063rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== PAIN CARDS ===== */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pain-card {
    padding: 32px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.pain-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.pain-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: #fef2f2;
    color: var(--danger);
    margin-bottom: 20px;
}

.pain-card h3 {
    font-size: 1.063rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--secondary);
}

.pain-card p {
    font-size: 0.938rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== PILLAR CARDS ===== */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pillar-card {
    position: relative;
    padding: 36px 32px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    overflow: hidden;
}

.pillar-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.pillar-num {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--border-light);
    line-height: 1;
}

.pillar-card:hover .pillar-num {
    color: var(--primary-light);
}

.pillar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--primary-50);
    color: var(--primary);
    margin-bottom: 20px;
}

.pillar-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary);
}

.pillar-card p {
    font-size: 0.938rem;
    color: var(--text-light);
    line-height: 1.6;
}

.pillar-card-accent {
    background: linear-gradient(135deg, var(--primary-50) 0%, #fff 100%);
    border-color: var(--primary-light);
}

/* ===== WORKFLOW TIMELINE ===== */
.workflow-timeline {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.workflow-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--info));
    border-radius: 2px;
}

.workflow-step {
    display: flex;
    gap: 24px;
    padding: 20px 0;
    position: relative;
}

.step-marker {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 0 0 6px var(--bg-alt), 0 0 0 8px var(--primary-light);
}

.step-content {
    flex: 1;
    padding-top: 12px;
}

.step-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 6px;
}

.step-content p {
    font-size: 0.938rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== ROLES ===== */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.role-card {
    text-align: center;
    padding: 36px 20px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.role-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.role-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-50);
    color: var(--primary);
    margin: 0 auto 20px;
}

.role-card h3 {
    font-size: 0.938rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.role-card p {
    font-size: 0.813rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== OUTCOMES ===== */
.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.outcome-card {
    padding: 32px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.outcome-card:hover {
    border-color: var(--success);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.outcome-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: #ecfdf5;
    color: var(--success);
    margin-bottom: 20px;
}

.outcome-card h3 {
    font-size: 1.063rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--secondary);
}

.outcome-card p {
    font-size: 0.938rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== INTEGRATIONS ===== */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.integration-card {
    text-align: center;
    padding: 36px 20px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.integration-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.integration-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--primary-50);
    color: var(--primary);
    margin: 0 auto 20px;
}

.integration-card h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.integration-card p {
    font-size: 0.813rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ===== ABOUT ===== */
.about-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-content p {
    font-size: 1.063rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ===== CTA SECTION ===== */
.section-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #1e3a8a 100%);
    padding: 100px 0;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--secondary);
    padding: 64px 0 32px;
    color: rgba(255,255,255,0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.15s ease;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 0.813rem;
    color: rgba(255,255,255,0.4);
}

.footer-brand .brand-text {
    font-size: 1.125rem;
    font-weight: 800;
    color: #fff;
}

.footer-brand .brand-accent {
    color: var(--primary-light);
}

/* ===== PROOF STRIP ===== */
.proof-strip {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 28px 0;
}

.proof-strip-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.proof-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.proof-metric-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.proof-metric-label {
    font-size: 0.813rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ===== FOUR C's GRID ===== */
.four-cs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.four-cs-card {
    position: relative;
    padding: 36px 32px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    transition: all 0.2s ease;
}

.four-cs-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.four-cs-card[data-c="compliance"] { border-top-color: var(--primary); }
.four-cs-card[data-c="service"]    { border-top-color: var(--success); }
.four-cs-card[data-c="communications"] { border-top-color: var(--info); }
.four-cs-card[data-c="cost"]       { border-top-color: var(--warning); }

.four-cs-card[data-c="compliance"]:hover { border-color: var(--primary); border-top-color: var(--primary); }
.four-cs-card[data-c="service"]:hover    { border-color: var(--success); border-top-color: var(--success); }
.four-cs-card[data-c="communications"]:hover { border-color: var(--info); border-top-color: var(--info); }
.four-cs-card[data-c="cost"]:hover       { border-color: var(--warning); border-top-color: var(--warning); }

.four-cs-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.four-cs-card[data-c="compliance"] .four-cs-icon { background: var(--primary-50); color: var(--primary); }
.four-cs-card[data-c="service"]    .four-cs-icon { background: #ecfdf5; color: var(--success); }
.four-cs-card[data-c="communications"] .four-cs-icon { background: #eef2ff; color: var(--info); }
.four-cs-card[data-c="cost"]       .four-cs-icon { background: #fffbeb; color: var(--warning); }

.four-cs-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary);
}

.four-cs-card p {
    font-size: 0.938rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== PAIN ICONS (color-coded) ===== */
.pain-grid-2col {
    grid-template-columns: repeat(2, 1fr);
}

.pain-icon-compliance { background: var(--primary-50); color: var(--primary); }
.pain-icon-service    { background: #ecfdf5; color: var(--success); }
.pain-icon-comms      { background: #eef2ff; color: var(--info); }
.pain-icon-cost       { background: #fffbeb; color: var(--warning); }

/* ===== PLATFORM BLOCKS ===== */
.platform-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.platform-block {
    position: relative;
    padding: 40px 36px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    transition: all 0.2s ease;
}

.platform-block:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.platform-block[data-c="compliance"] { border-top-color: var(--primary); }
.platform-block[data-c="service"]    { border-top-color: var(--success); }
.platform-block[data-c="communications"] { border-top-color: var(--info); }
.platform-block[data-c="cost"]       { border-top-color: var(--warning); }

.platform-block[data-c="compliance"]:hover { border-color: var(--primary); border-top-color: var(--primary); }
.platform-block[data-c="service"]:hover    { border-color: var(--success); border-top-color: var(--success); }
.platform-block[data-c="communications"]:hover { border-color: var(--info); border-top-color: var(--info); }
.platform-block[data-c="cost"]:hover       { border-color: var(--warning); border-top-color: var(--warning); }

.platform-block-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.platform-block-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.platform-block[data-c="compliance"] .platform-block-icon { background: var(--primary-50); color: var(--primary); }
.platform-block[data-c="service"]    .platform-block-icon { background: #ecfdf5; color: var(--success); }
.platform-block[data-c="communications"] .platform-block-icon { background: #eef2ff; color: var(--info); }
.platform-block[data-c="cost"]       .platform-block-icon { background: #fffbeb; color: var(--warning); }

.platform-block-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
}

.platform-block > p {
    font-size: 0.938rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.platform-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.platform-features li {
    position: relative;
    padding: 5px 0 5px 24px;
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
}

.platform-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10L8.5 13.5L15 7' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

/* ===== ROLE TAGS ===== */
.role-tags {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
    flex-wrap: wrap;
}

.role-tag {
    display: inline-block;
    font-size: 0.688rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.role-tag-compliance { background: var(--primary-50); color: var(--primary); }
.role-tag-service    { background: #ecfdf5; color: var(--success); }
.role-tag-comms      { background: #eef2ff; color: var(--info); }
.role-tag-cost       { background: #fffbeb; color: var(--warning); }

/* ===== OUTCOMES (2-col variant) ===== */
.outcomes-grid-2col {
    grid-template-columns: repeat(2, 1fr);
}

.outcome-icon-compliance { background: var(--primary-50); color: var(--primary); }
.outcome-icon-service    { background: #ecfdf5; color: var(--success); }
.outcome-icon-comms      { background: #eef2ff; color: var(--info); }
.outcome-icon-cost       { background: #fffbeb; color: var(--warning); }

/* ===== ABOUT GRID ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text .section-tag {
    display: inline-block;
    margin-bottom: 16px;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-text strong {
    color: var(--secondary);
}

.about-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.about-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.about-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-50);
    color: var(--primary);
    flex-shrink: 0;
}

.about-badge strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--secondary);
}

.about-badge span {
    font-size: 0.813rem;
    color: var(--text-light);
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    list-style: none;
}

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

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
    color: var(--text-lighter);
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-item p {
    padding: 0 0 20px;
    font-size: 0.938rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== DEMO FORM ===== */
.demo-form {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
}

.demo-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.demo-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.demo-field-full {
    margin-bottom: 20px;
}

.demo-field label {
    font-size: 0.813rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.demo-optional {
    font-weight: 400;
    color: rgba(255,255,255,0.5);
}

.demo-field input,
.demo-field select,
.demo-field textarea {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.938rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.demo-field input::placeholder,
.demo-field textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.demo-field input:focus,
.demo-field select:focus,
.demo-field textarea:focus {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
}

.demo-field select option {
    color: var(--text);
    background: #fff;
}

.demo-field textarea {
    resize: vertical;
    min-height: 60px;
}

.demo-field input.field-error,
.demo-field select.field-error {
    border-color: #fca5a5;
    background: rgba(239,68,68,0.1);
}

.demo-submit {
    width: 100%;
    margin-top: 4px;
    font-size: 1rem;
}

.demo-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.demo-status {
    text-align: center;
    margin-top: 12px;
    font-size: 0.875rem;
    min-height: 24px;
}

.demo-status.success {
    color: #86efac;
}

.demo-status.error {
    color: #fca5a5;
}

/* ===== DASHBOARD ANIMATIONS ===== */
.dash-row-anim {
    opacity: 0;
    transform: translateX(20px);
}

.dash-row-anim.dash-visible {
    animation: slideInRow 0.4s ease forwards;
}

.dash-row-anim:nth-child(1) { animation-delay: 0.1s; }
.dash-row-anim:nth-child(2) { animation-delay: 0.25s; }
.dash-row-anim:nth-child(3) { animation-delay: 0.4s; }
.dash-row-anim:nth-child(4) { animation-delay: 0.55s; }

@keyframes slideInRow {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dash-badge {
    transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .four-cs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .about-text {
        text-align: center;
    }

    .about-badges {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 16px 24px 24px;
        flex-direction: column;
        gap: 16px;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
    }

    .nav-links a {
        padding: 12px 14px;
    }

    .btn-nav {
        margin-left: 0;
        width: 100%;
    }

    /* Sign-in dropdown — stack inline on mobile, no absolute popover */
    .nav-signin-dropdown {
        margin-left: 0;
        width: 100%;
    }

    .nav-signin-dropdown summary {
        width: 100%;
        justify-content: center;
    }

    .nav-signin-menu {
        position: static;
        right: auto;
        margin-top: 8px;
        box-shadow: none;
        min-width: 0;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .section {
        padding: 72px 0;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .pain-grid,
    .pain-grid-2col,
    .pillars-grid,
    .outcomes-grid,
    .outcomes-grid-2col {
        grid-template-columns: 1fr;
    }

    .four-cs-grid {
        grid-template-columns: 1fr;
    }

    .platform-blocks {
        grid-template-columns: 1fr;
    }

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

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

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

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

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-badges {
        grid-template-columns: 1fr;
    }

    .about-text {
        text-align: center;
    }

    .demo-form-row {
        grid-template-columns: 1fr;
    }

    .proof-strip-inner {
        gap: 24px;
    }

    .dash-stat-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .roles-grid {
        grid-template-columns: 1fr;
    }

    .integrations-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Redesign 9-grammar — report pages lead with the sentence. */
.report-headline {
  background: var(--bg-white, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text, #111827);
  margin: 0 0 1rem;
}
.report-headline strong { font-size: 1.05rem; }
.report-headline .is-danger { color: var(--danger, #dc2626); font-weight: 700; }
.report-headline .is-warn { color: #b45309; font-weight: 600; }
.report-headline-sub { display: block; margin-top: 4px; font-size: 0.82rem; color: var(--text-light, #6b7280); }
