/* ==========================================================================
   CompliSey Marketing Website – Modern professional design
   ========================================================================== */

:root {
    --primary: #0f172a;
    --primary-hover: #1e293b;
    --accent: #0d9488;
    --accent-light: #14b8a6;
    --accent-muted: rgba(13, 148, 136, 0.12);
    --highlight: #d4a853;
    --text: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-muted: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --radius: 10px;
    --radius-sm: 8px;
    --radius-lg: 14px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 44px rgba(15, 23, 42, 0.1);
    --transition: 0.2s ease;
    --header-h: 116px;
    --logo-h: 88px;
    --logo-max-w: min(600px, 86vw);
    --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

/* Legacy variable names for compatibility */
:root {
    --primary-color: var(--primary);
    --primary-dark: #020617;
    --primary-light: #1e293b;
    --secondary-color: var(--accent);
    --accent-color: var(--accent);
    --text-dark: var(--text);
    --text-medium: var(--text-muted);
    --text-light: var(--text-light);
    --bg-light: var(--bg-subtle);
    --bg-white: var(--bg);
    --border-color: var(--border);
    --shadow-sm: var(--shadow-xs);
    --shadow-md: var(--shadow-sm);
    --shadow-lg: var(--shadow-md);
    --shadow-xl: var(--shadow-lg);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Skip link for keyboard/screen reader users */
/* Skip link: hidden off-screen until focused (keyboard/screen reader) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: left var(--transition), top var(--transition);
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.logo img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: var(--logo-h) !important;
    width: auto !important;
    max-width: var(--logo-max-w) !important;
    min-height: 0 !important;
    min-width: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: left center;
    flex-shrink: 0 !important;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
    letter-spacing: -0.02em;
}

h1, h2,
.section-title h2,
.hero h1 {
    font-family: var(--font-display);
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.375rem, 3vw, 1.75rem);
}

h3 {
    font-size: 1.125rem;
}

h4 {
    font-size: 1rem;
}

p {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-light);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header {
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
}

.header-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.875rem 1.5rem;
    min-height: var(--header-h);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
    max-width: var(--logo-max-w);
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
    background: var(--accent-muted);
}

.nav-links a.active {
    color: var(--accent);
    background: var(--accent-muted);
}

.nav-links a::after {
    display: none;
}

.nav-cta {
    min-width: auto !important;
    padding: 0.5rem 1rem !important;
    white-space: nowrap;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 1.25rem;
}

.menu-bar {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 1px;
    transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu-toggle.is-open .menu-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-open .menu-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-open .menu-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
    min-width: 120px;
    -webkit-appearance: none;
    appearance: none;
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--accent) !important;
    color: white !important;
    box-shadow: var(--shadow-xs);
}

.btn-primary:hover {
    background: var(--accent-light) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

.btn-secondary {
    background: var(--bg) !important;
    color: var(--accent) !important;
    border: 1.5px solid var(--accent) !important;
}

.btn-secondary:hover {
    background: var(--accent-muted) !important;
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    background: linear-gradient(165deg, #0a0f1a 0%, var(--primary) 42%, #1e293b 100%);
    color: white;
    padding: clamp(3rem, 8vw, 5rem) 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-home {
    text-align: center;
    padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
}

.hero-split {
    max-width: 42rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: none;
}

.hero-buttons-start {
    justify-content: center;
}

.hero-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 1.5rem;
    padding: 0;
    justify-content: center;
}

.hero-trust li {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    padding-left: 1rem;
    position: relative;
}

.hero-trust li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: var(--accent-light);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-screenshot {
    margin: 0;
    width: min(100%, 520px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.32);
    background: rgba(15, 23, 42, 0.4);
}

.hero-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(13, 148, 136, 0.18), transparent),
        radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: auto, 22px 22px;
    pointer-events: none;
}

.hero-em {
    font-style: italic;
    color: var(--highlight);
    font-weight: 700;
}

.hero-container {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-tagline {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.hero h1 {
    color: white;
    font-size: clamp(1.875rem, 4.5vw, 2.75rem);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 140px;
    padding: 0.75rem 1.5rem;
}

.hero-buttons .btn-primary {
    background: white !important;
    color: var(--primary) !important;
}

.hero-buttons .btn-primary:hover {
    background: var(--bg-subtle) !important;
    color: var(--primary) !important;
    box-shadow: var(--shadow-md);
}

.hero .hero-buttons .btn-secondary {
    background: transparent !important;
    border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
    color: white !important;
}

.hero .hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: white !important;
    color: white !important;
}

/* CTA sections (light background) */
.section .hero-buttons .btn-primary,
section.section .hero-buttons .btn-primary,
.section:not(.hero) .hero-buttons .btn-primary {
    background: var(--accent) !important;
    color: white !important;
}

.section .hero-buttons .btn-primary:hover,
section.section .hero-buttons .btn-primary:hover,
.section:not(.hero) .hero-buttons .btn-primary:hover {
    background: var(--accent-light) !important;
    color: white !important;
}

.section .hero-buttons .btn-secondary,
section.section .hero-buttons .btn-secondary,
.section:not(.hero) .hero-buttons .btn-secondary {
    background: var(--bg) !important;
    border: 1.5px solid var(--accent) !important;
    color: var(--accent) !important;
}

.section .hero-buttons .btn-secondary:hover,
section.section .hero-buttons .btn-secondary:hover,
.section:not(.hero) .hero-buttons .btn-secondary:hover {
    background: var(--accent-muted) !important;
    color: var(--accent) !important;
    border-color: var(--accent) !important;
}

/* ==========================================================================
   Stats Bar
   ========================================================================== */

.stats-bar {
    background: var(--primary);
    color: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: white;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.9);
}

.stat-detail {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
}

.stat-cta {
    justify-content: center;
}

.stat-cta .btn {
    margin-top: 0.25rem;
}

.stat-cta .btn-primary {
    background: var(--accent) !important;
    color: white !important;
    border: none !important;
}

.stat-cta .btn-primary:hover {
    background: var(--accent-light) !important;
    color: white !important;
}

/* ==========================================================================
   Solutions Grid (What We Do)
   ========================================================================== */

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.solution-card {
    background: var(--bg);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.solution-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.solution-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.375rem;
    color: var(--text);
}

.solution-subline {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.solution-card p:not(.solution-subline) {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.solution-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

.solution-link:hover {
    color: var(--accent-light);
}

.solution-link::after {
    content: ' →';
}

/* ==========================================================================
   Container & Sections
   ========================================================================== */

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: clamp(2rem, 4vw, 3rem) 0;
}

/* Inner-page hero: same as home but no tagline needed; consistent padding from .hero */
.page-content {
    min-height: 40vh;
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    margin-bottom: 0.5rem;
}

.section-title p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.section-cta-link {
    text-align: center;
    margin-top: 1.75rem;
    margin-bottom: 0;
}

.section-cta-link a {
    font-weight: 600;
    font-size: 0.9375rem;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.faq-item {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item[open] {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

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

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

.faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-muted);
    color: var(--accent);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1;
    transition: transform var(--transition), background var(--transition);
}

.faq-item[open] summary::after {
    content: '−';
    background: var(--accent);
    color: white;
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.faq-item p {
    padding: 0 1.25rem 1.125rem;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.faq-item p a {
    font-weight: 500;
}

/* ==========================================================================
   Services page (accordion scope)
   ========================================================================== */

.services-intro {
    max-width: 820px;
    margin: 0 auto 2rem;
}

.services-lead {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.7;
}

.services-accordion.faq-list {
    max-width: 820px;
}

.faq-item.services-division summary {
    font-size: 1rem;
    font-family: var(--font-display);
}

.services-panel {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid var(--border-light);
}

.services-panel > p:first-child {
    padding-top: 1rem;
}

.services-panel h3 {
    margin-top: 1.125rem;
    margin-bottom: 0.375rem;
    font-size: 0.9375rem;
    color: var(--text);
}

.services-panel ul,
.services-panel ol {
    margin: 0.375rem 0 0.75rem 1.25rem;
    padding: 0;
}

.services-panel li {
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.services-panel p {
    padding: 0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.services-panel-cta {
    margin-top: 0.75rem !important;
}

.services-panel-cta a {
    font-weight: 600;
}

.delivery-steps {
    margin: 0.5rem 0 0 1.25rem;
    padding: 0;
}

.delivery-steps li {
    margin-bottom: 0.65rem;
}

.services-cta {
    margin-top: 2.5rem;
}

/* ==========================================================================
   Features Grid
   ========================================================================== */

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

.feature-card {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.feature-icon {
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--accent-muted);
    color: var(--accent);
}

.feature-icon .icon {
    width: 1.375rem;
    height: 1.375rem;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 0;
}

/* ==========================================================================
   Pricing (legacy / contact-style pages)
   ========================================================================== */

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

.pricing-card {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    box-shadow: var(--shadow-xs);
}

.pricing-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.pricing-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.pricing-price {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.625rem 0;
}

.pricing-features {
    list-style: none;
    margin: 1.25rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */

.contact-form {
    max-width: 560px;
    margin: 0 auto;
    background: var(--bg);
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
}

.form-group {
    margin-bottom: 1.125rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    color: var(--text);
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Contact page layout and components (no inline styles) */
.contact-page-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}
.contact-form-heading {
    margin-bottom: 0.5rem;
}
.contact-form-intro {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.contact-form .btn[type="submit"] {
    width: 100%;
}
.contact-form-submit-bar {
    margin-top: 0.25rem;
}
.contact-form-submit-bar .form-message {
    margin-top: 0.75rem;
}
.contact-intent-fieldset {
    border: none;
    margin: 0 0 1.25rem;
    padding: 0;
}
.contact-intent-fieldset legend {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
    font-size: 0.875rem;
}
.contact-intent-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}
.contact-intent-option {
    position: relative;
    display: block;
    cursor: pointer;
}
.contact-intent-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.contact-intent-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    transition: border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}
.contact-intent-option:hover span {
    border-color: var(--accent);
}
.contact-intent-option input:checked + span {
    border-color: var(--accent);
    background: var(--accent-muted);
    color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}
.contact-intent-option input:focus-visible + span {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.contact-intent-hint {
    margin-top: 0.625rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.45;
}
@media (min-width: 481px) {
    .contact-intent-buttons {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.form-group[hidden] {
    display: none !important;
}
.form-message {
    margin-top: 1rem;
    display: none;
}
.form-message.visible {
    display: block;
}
.contact-info-heading {
    margin-bottom: 1.5rem;
}
.contact-info-card {
    margin-bottom: 1.5rem;
}
.contact-info-card:last-of-type {
    margin-bottom: 0;
}
.contact-email-line {
    margin-top: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--primary);
    color: white;
    padding: 2.5rem 0 1.25rem;
    margin-top: 2.5rem;
}

.footer-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.75fr) repeat(2, minmax(140px, 1fr));
    gap: 2rem 2.5rem;
    margin-bottom: 2rem;
    align-items: start;
}

@media (max-width: 960px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem 2rem;
    }

    .footer-grid > .footer-section:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-section h4 {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

/* Section background utilities (avoid inline styles) */
.section.bg-subtle {
    background: var(--bg-subtle);
}
.section.bg-light {
    background: var(--bg-light);
}

/* CTA section lead text */
.cta-lead {
    font-size: 0.9375rem;
    color: var(--text-muted);
}
.cta-lead--sm {
    font-size: 0.875rem;
    color: var(--text-medium);
}

/* Content section call-to-action spacing */
.content-cta {
    margin-top: 2rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.55;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    transition: color var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    margin: 0;
    line-height: 1.45;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-bottom a:hover {
    color: white;
}

.footer-legal-line {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.45;
}

.footer-copy {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

.legal-entity-list {
    margin: 0.5rem 0 1.25rem;
    padding-left: 1.25rem;
}

.contact-trial-notice {
    margin: 0 0 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 0.9rem;
    line-height: 1.55;
}

.contact-trial-notice ul {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
}

.contact-trial-notice li {
    margin: 0.35rem 0;
}

/* ==========================================================================
   Content Sections (features long-form, about, privacy)
   ========================================================================== */

.content-section {
    max-width: 680px;
    margin: 0 auto;
}

.content-section h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.content-section h3 {
    margin-top: 1.25rem;
    margin-bottom: 0.375rem;
}

.content-section ul,
.content-section ol {
    margin-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.content-section li {
    margin-bottom: 0.25rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

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

.mb-4 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --header-h: 100px;
        --logo-h: 72px;
        --logo-max-w: min(520px, 90vw);
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .nav-cta {
        display: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0;
        left: auto;
        min-width: 14rem;
        background: var(--bg);
        flex-direction: column;
        padding: 0.75rem;
        box-shadow: var(--shadow-lg);
        z-index: 999;
        border: 1px solid var(--border-light);
        border-radius: var(--radius);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 1rem;
        display: block;
    }

    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: none;
        order: 0;
    }

    .hero-buttons-start {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        order: 1;
    }

    .section {
        padding: 2rem 0;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .stat-cta {
        grid-column: 1 / -1;
    }

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

    .contact-page-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding-bottom: 0.5rem;
    }

    .contact-form-submit-bar {
        position: sticky;
        bottom: 0;
        z-index: 20;
        margin: 1rem -1.75rem 0;
        padding: 1rem 1.75rem calc(1rem + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(to top, var(--bg) 88%, rgba(255, 255, 255, 0));
        border-top: 1px solid var(--border-light);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
    }

    .container {
        padding: 0 1rem;
    }

    .header-container {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    :root {
        --header-h: 92px;
        --logo-h: 64px;
        --logo-max-w: min(460px, 94vw);
    }

    .hero {
        padding: 2.5rem 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        min-width: auto;
    }

    .feature-card,
    .pricing-card {
        padding: 1.25rem;
    }

    .contact-form {
        padding: 1.25rem;
        padding-bottom: 0.5rem;
    }

    .contact-form-submit-bar {
        margin-left: -1.25rem;
        margin-right: -1.25rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* ==========================================================================
   Legacy / fallbacks
   ========================================================================== */

@supports not (display: grid) {
    .features-grid,
    .pricing-grid,
    .footer-grid {
        display: block;
    }
    .features-grid > *,
    .pricing-grid > *,
    .footer-grid > * {
        margin-bottom: 1rem;
    }
}

/* Print */
@media print {
    .header,
    .footer,
    .hero-buttons,
    .btn {
        display: none !important;
    }
    .section {
        page-break-inside: avoid;
    }
}
