/* css/styles.css */
/* Continuity Direct is a SyCIS product: type, palette, spacing and components follow the
   dark theme of sycis.com, with Continuity Direct red as the product accent. */

/* Self-hosted Inter (SIL Open Font License, see /fonts/Inter-LICENSE.txt) */
@font-face {
    font-family: 'Inter Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}

/* --- 1. VARIABLES & RESET --- */
:root {
    --primary: #D32F2F;
    --primary-hover: #B71C1C;
    --primary-light: rgba(211, 47, 47, 0.12);
    --primary-ring: rgba(239, 83, 80, 0.3);
    --primary-text: #EF5350;      /* Red for text on dark backgrounds (4.5:1+) */
    --focus: #FF8A80;             /* Focus ring colour */
    --sycis-blue: #2563EB;        /* SyCIS shield (brand-600 on sycis.com) */
    --success: #2E7D32;
    --success-accent: #4CAF50;
    --essential: #3B82F6;
    --enterprise: #A855F7;
    --enterprise-text: #C084FC;
    --bg-dark: #020617;           /* slate-950 */
    --bg-panel: #0A1122;          /* slate-900 at 40% over slate-950 */
    --bg-elevated: #0F172A;       /* slate-900 */
    --text-main: #FFFFFF;
    --text-secondary: #CBD5E1;    /* slate-300 */
    --text-muted: #94A3B8;        /* slate-400 */
    --border: #1E293B;            /* slate-800 */
    --border-light: #334155;      /* slate-700 */
    --border-input: #64748B;      /* slate-500: form field boundary (3:1+) */
    --font-sans: 'Inter Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --nav-height: 64px;
    --radius: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--nav-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll { overflow: hidden; }

[hidden] { display: none !important; }

a { text-decoration: none; color: inherit; transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
ul { list-style: none; }
address { font-style: normal; }

/* IMAGE FIX: Ensures aspect ratio is preserved */
img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* --- ACCESSIBILITY HELPERS --- */
:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

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

.skip-link {
    position: absolute;
    top: 8px; left: 16px;
    z-index: 3000;
    padding: 8px 16px;
    background: var(--primary);
    color: #FFFFFF;
    font-weight: 500;
    border-radius: 8px;
    transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

/* --- 2. TYPOGRAPHY --- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-sans);
    color: var(--text-main);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

/* Small headings that sit inside cards, whatever their level */
.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-main);
    margin-bottom: 8px;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.75;
}

.lead-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.lead-narrow { max-width: 700px; margin-inline: auto; }
.lead-wide { max-width: 800px; margin-inline: auto; }

.text-primary { color: var(--primary-text); }
.text-center { text-align: center; }

/* --- 3. COMPONENTS --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.container-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    border: 1px solid transparent;
    text-align: center;
    white-space: nowrap;
}

.btn-block { width: 100%; }

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover { background-color: var(--primary-hover); }

/* Secondary button, as .btn-on-dark on sycis.com */
.btn-outline {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
    color: var(--text-main);
}

.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn:disabled { opacity: 0.7; cursor: progress; }
.btn[data-state="success"] { background-color: var(--success); }

/* SPINNER ANIMATION */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* SyCIS shield mark */
.sycis-shield { width: 1em; height: 1em; flex-shrink: 0; }
.sycis-shield .shield { fill: var(--sycis-blue); }

/* --- 4. NAVIGATION --- */
.site-header {
    height: var(--nav-height);
    background-color: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.site-header > .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

/* Logo lockup: product wordmark endorsed "by SyCIS" */
.logo {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-height: 44px;
    color: var(--text-main);
}
.logo-wordmark {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--text-main);
}
.logo-wordmark span { color: var(--primary-text); }
.logo-endorse {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-muted);
}
.logo-endorse strong { color: var(--text-secondary); font-weight: 600; }
.logo-endorse .sycis-shield { width: 12px; height: 12px; }

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}
.nav-links li:last-child { margin-left: 12px; }

.nav-link {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-link:hover {
    color: var(--text-main);
    background-color: var(--border);
}

.nav-link[aria-current="page"] { color: var(--primary-text); }

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001; /* Ensure button stays clickable */
}
.mobile-menu-toggle:hover { background-color: var(--border); color: var(--text-main); }
.mobile-menu-toggle .icon-close,
.mobile-menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.mobile-menu-toggle[aria-expanded="true"] .icon-close { display: inline; }

/* --- MOBILE MENU DRAWER --- */
.mobile-menu-container {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: var(--bg-dark);
    z-index: 999;
    padding: 16px 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto; /* Fix for scrolling on small screens */

    /* Slide Animation. Hidden (and unfocusable) once it has slid off-screen */
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease-in-out, visibility 0s linear 0.3s;

    /* Border to separate from header */
    border-top: 1px solid var(--border);
}

.mobile-menu-container.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s ease-in-out;
}

.mobile-nav-item {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 10px 12px;
    border-radius: 6px;
}

.mobile-nav-item:hover {
    color: var(--text-main);
    background-color: var(--border);
}

.mobile-nav-item[aria-current="page"] { color: var(--primary-text); }

.mobile-menu-container .btn { margin-top: 8px; }

/* Ensure mobile menu is hidden on desktop */
@media (min-width: 1200px) {
    .mobile-menu-container {
        display: none !important;
    }
}

/* --- 5. PAGE TRANSITIONS --- */
main {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Dark hero band with a faint engineering grid (.hero-dark on sycis.com) */
.hero, .features-hero, .compliance-hero, .pricing-hero, .faq-hero, .about-hero, .contact-hero {
    position: relative;
    isolation: isolate;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(60rem 30rem at 85% -10%, rgba(211, 47, 47, 0.22), transparent 60%),
        radial-gradient(40rem 24rem at 0% 110%, rgba(8, 145, 178, 0.12), transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: auto, auto, 48px 48px, 48px 48px;
    border-bottom: 1px solid var(--border);
}

/* --- 6. HOME PAGE --- */
.hero {
    padding: 96px 0 112px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

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

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8125rem;
    margin-bottom: 32px;
    border: 1px solid rgba(255,255,255,0.12);
    font-weight: 500;
    color: var(--text-secondary);
}

.hero-endorse {
    margin: 20px auto 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}
.hero-endorse .sycis-shield { width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; }
.hero-endorse strong { color: var(--text-main); font-weight: 600; }
.hero-endorse a {
    color: var(--text-main);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.hero-endorse a:hover { color: var(--primary-text); }

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-visual {
    margin-top: 72px;
    position: relative;
}

.hero-visual img {
    border-radius: var(--radius);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    background-color: var(--bg-elevated);
}

/* Trust Bar */
.trust-bar {
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
    background: var(--bg-panel);
}

.trust-content {
    text-align: center;
    margin-bottom: 20px;
}

.trust-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
    margin-bottom: 0;
}

.trust-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 40px;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-icon {
    color: var(--primary-text);
    font-size: 1.125rem;
}

/* Value Props */
.value-props { padding: 96px 0; }

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

/* Eyebrow label (.eyebrow on sycis.com) */
.section-tag {
    display: inline-block;
    color: var(--primary-text);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 12px;
}

.props-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Card (.card on sycis.com) */
.prop-card, .feature-card, .value-card {
    background: var(--bg-elevated);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease;
}

.prop-card:hover, .feature-card:hover { border-color: var(--border-light); }

/* Icon tile (.icon-tile on sycis.com) */
.prop-icon, .feature-icon {
    width: 44px; height: 44px;
    background: var(--primary-light);
    color: var(--primary-text);
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px var(--primary-ring);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.prop-card p { font-size: 0.9375rem; line-height: 1.7; margin: 0; }

/* Feature Spotlight */
.feature-spotlight {
    padding: 96px 0;
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.spotlight-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    margin-bottom: 112px;
}
.spotlight-row:last-child { margin-bottom: 0; }
.spotlight-row.reverse .spotlight-content { order: 2; }

.spotlight-list { list-style: none; margin-top: 24px; }
.spotlight-list li {
    padding: 10px 0 10px 32px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}
.spotlight-list li strong { color: var(--text-main); font-weight: 600; }
.spotlight-list li::before {
    content: "✓";
    position: absolute; left: 0; top: 9px;
    color: var(--primary-text);
    font-weight: 700;
    font-size: 1.125rem;
}

.spotlight-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    width: 100%;
}

/* Stats */
.stats-section {
    padding: 72px 0;
    border-bottom: 1px solid var(--border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}
.stat-item .stat-value {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--primary-text);
    margin-bottom: 8px;
}
.stat-item p { font-size: 0.9375rem; margin: 0; }

/* CTA */
.cta-section {
    padding: 96px 0;
    background-color: var(--bg-panel);
    background-image: radial-gradient(50rem 24rem at 50% 120%, rgba(211, 47, 47, 0.16), transparent 70%);
    border-top: 1px solid var(--border);
}
.cta-content { text-align: center; max-width: 680px; margin: 0 auto; }
.cta-content h2 { margin-bottom: 16px; }
.cta-content p { font-size: 1.125rem; margin-bottom: 32px; }

/* --- 7. FEATURES PAGE --- */
.features-hero { padding: 80px 0 64px; text-align: center; }
.features-hero h1 { margin-bottom: 20px; }
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 24px; padding: 80px 0;
}
.feature-card p { margin: 0; font-size: 0.9375rem; line-height: 1.7; }

/* --- 8. COMPLIANCE PAGE --- */
.compliance-hero { text-align: center; padding: 80px 0 64px; }
.compliance-content { padding: 64px 0 96px; }
.compliance-grid { display: grid; gap: 24px; }
.compliance-item {
    background: var(--bg-elevated); padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Badge (.badge on sycis.com) */
.compliance-badge {
    display: inline-flex; align-items: center;
    background: var(--primary-light);
    color: var(--primary-text);
    box-shadow: inset 0 0 0 1px var(--primary-ring);
    padding: 2px 10px;
    border-radius: 999px; font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.compliance-item .card-title { margin-bottom: 12px; }
.compliance-item p:last-child { margin: 0; }

/* --- 9. PRICING PAGE --- */
.pricing-hero { text-align: center; padding: 80px 0 64px; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 64px 0;
    align-items: start;
}
.pricing-card {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 36px 32px; text-align: left;
    position: relative; box-shadow: var(--shadow-md);
    display: flex; flex-direction: column; height: 100%;
}
.pricing-card.popular {
    border: 2px solid var(--success-accent);
    padding-top: 56px;
}
.popular-badge {
    position: absolute; top: 0; left: 0; width: 100%;
    background: var(--success); color: white; text-align: center;
    padding: 8px 0; margin: 0; font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    border-top-left-radius: 14px; border-top-right-radius: 14px;
}
.pricing-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.pricing-desc { font-size: 0.9375rem; min-height: 60px; margin-bottom: 16px; line-height: 1.6; }
.price-tag {
    font-size: 3rem; font-weight: 700; color: var(--text-main); letter-spacing: -0.03em;
    margin: 0 0 24px 0; line-height: 1.2;
    display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.price-tag span { font-size: 0.9375rem; color: var(--text-muted); font-weight: 400; letter-spacing: 0; }
.pricing-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.features-label {
    font-size: 0.75rem; font-weight: 600;
    color: var(--text-muted); letter-spacing: 0.16em; text-transform: uppercase;
    margin-bottom: 16px;
}
.benefit-list { text-align: left; margin: 0 0 8px 0; flex-grow: 1; list-style: none; }
.benefit-list li { margin-bottom: 14px; padding-left: 28px; position: relative; color: var(--text-secondary); font-size: 0.9375rem; }
.benefit-list li::before { content: "✓"; color: var(--primary-text); position: absolute; left: 0; font-weight: 700; font-size: 1.125rem; line-height: 1.4; }
.pricing-card.popular .benefit-list li::before { color: var(--success-accent); }
.pricing-card.enterprise { border-color: var(--enterprise); }
.pricing-card.enterprise .benefit-list li::before { color: var(--enterprise-text); }
.pricing-card.essential { border-color: var(--essential); }
.pricing-card.essential .benefit-list li::before { color: var(--essential); }

.btn-essential { border-color: var(--essential); color: #93C5FD; }
.btn-enterprise { border-color: var(--enterprise); color: var(--enterprise-text); }
.btn-business, .btn-business:hover { background-color: var(--success); box-shadow: none; }
.btn-business:hover { filter: brightness(1.1); }

.subscription-info { margin: 16px 0 96px; }
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 40px 48px;
}
.info-title {
    display: flex; align-items: center; gap: 12px;
    font-size: 1.125rem; letter-spacing: -0.01em;
    color: var(--text-main); margin-bottom: 0.75rem;
}
.info-icon { font-size: 1.375rem; }

/* --- 10. FAQ PAGE --- */
.faq-hero { text-align: center; padding: 80px 0 64px; }
.faq-container { max-width: 800px; margin: 0 auto; padding: 64px 32px 96px; }
.faq-group-title { font-size: 1.5rem; margin-bottom: 20px; }
.faq-group-title:not(:first-child) { margin-top: 48px; }

.accordion-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}
.accordion-header {
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    list-style: none;
    transition: background 0.2s;
}
.accordion-header::-webkit-details-marker { display: none; }
.accordion-header:hover { background: var(--border); }
.accordion-icon { color: var(--text-muted); transition: transform 0.3s; font-size: 0.875rem; flex-shrink: 0; }
.accordion-item[open] .accordion-icon { transform: rotate(180deg); color: var(--primary-text); }
.accordion-body {
    padding: 18px 24px 22px;
    border-top: 1px solid var(--border);
}
.accordion-body p { margin: 0; font-size: 0.9375rem; }

/* --- 11. ABOUT US PAGE --- */
.about-hero { text-align: center; padding: 80px 0 64px; }
.about-section { margin: 80px 0; }
.about-section h2 { font-size: 1.875rem; }
.about-mission { max-width: 800px; margin-inline: auto; }
.about-mission a { color: var(--primary-text); text-decoration: underline; text-underline-offset: 3px; }
.about-mission a:hover { color: var(--text-main); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.value-card { text-align: center; }
.value-card p { margin: 0; font-size: 0.9375rem; }
.value-icon { font-size: 2rem; margin-bottom: 16px; display: block; }

/* --- 12. TEXT PAGE (RESOURCE) --- */
.resource-content { font-size: 1.0625rem; }
.resource-content h1 { font-size: 2.5rem; }
.resource-content h2 { font-size: 1.5rem; margin-top: 40px; }
.resource-content ul { list-style: disc; margin-left: 20px; margin-bottom: 20px; color: var(--text-muted); }
.resource-content li { margin-bottom: 10px; }
.resource-content li strong { color: var(--text-secondary); }
.resource-content p a, .resource-content li a { color: var(--primary-text); text-decoration: underline; text-underline-offset: 2px; }
.resource-content .btn { margin-top: 16px; }

/* --- 13. CONTACT MODAL --- */
.modal {
    background: var(--bg-elevated); color: var(--text-secondary);
    width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 32px);
    margin: auto; padding: 40px; border-radius: var(--radius); border: 1px solid var(--border);
    overflow-y: auto; animation: slideUp 0.3s ease-out;
    box-shadow: var(--shadow-lg);
}
.modal::backdrop {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(6px);
}
.modal h2 { font-size: 1.5rem; padding-right: 40px; }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-modal {
    position: absolute; top: 16px; right: 16px; background: none;
    border: none; color: var(--text-muted); font-size: 1.5rem;
    cursor: pointer; width: 44px; height: 44px; display: flex;
    align-items: center; justify-content: center; border-radius: 8px;
    transition: all 0.2s ease;
}
.close-modal:hover { background: var(--border); color: var(--text-main); }

/* Form controls (.form-label / .form-control / .form-select on sycis.com) */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.875rem; color: var(--text-main); font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 10px 14px; background: var(--bg-dark);
    border: 1px solid var(--border-input); border-radius: 8px;
    color: var(--text-main); font-family: inherit; font-size: 1rem; line-height: 1.5;
    color-scheme: dark;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group select {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394a3b8'%3E%3Cpath fill-rule='evenodd' d='M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}
.form-group [aria-invalid="true"] { border-color: var(--primary-text); }
.field-error { margin: 8px 0 0; font-size: 0.875rem; color: var(--primary-text); }
.required-mark { color: var(--primary-text); }
.form-note, .form-hint, .form-privacy { font-size: 0.875rem; margin-bottom: 16px; }
.form-hint { margin: 8px 0 0; }
.form-privacy a { color: var(--primary-text); text-decoration: underline; text-underline-offset: 2px; }
.form-status { margin: 16px 0 0; font-size: 0.9375rem; color: var(--text-secondary); }
.form-status:empty { display: none; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- 14. CONTACT PAGE --- */
.contact-hero { padding: 80px 0 64px; }
.contact-hero h1 { max-width: 800px; }
.contact-hero .lead-text { max-width: 768px; margin-bottom: 0; }
.contact-section { padding: 80px 0 96px; }
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
    align-items: start;
}
.contact-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.contact-card:focus { outline: none; }
.contact-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.contact-status { margin: 0; font-size: 0.875rem; color: var(--text-secondary); }
.contact-details > div { margin-bottom: 40px; }
.contact-details h2 { font-size: 1.125rem; letter-spacing: -0.01em; margin-bottom: 8px; }
.contact-details p { margin: 0; }
.contact-details a { color: var(--primary-text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.contact-details address { color: var(--text-muted); line-height: 1.75; }
.company-facts {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    font-size: 0.875rem;
}
.company-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.company-facts dt { color: var(--text-muted); }
.company-facts dd { color: var(--text-main); font-weight: 500; text-align: right; }

/* --- FOOTER --- */
.site-footer { background-color: var(--bg-dark); padding: 64px 0 0; border-top: 1px solid var(--border); font-size: 0.875rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer-logo { margin-bottom: 16px; }
.footer-brand > p { font-size: 0.875rem; line-height: 1.7; max-width: 380px; }
.footer-brand > .footer-logo { font-size: 1.25rem; line-height: 1.1; }
.footer-contact p { font-size: 0.875rem; margin-bottom: 12px; }
.footer-contact strong { color: var(--text-main); font-weight: 600; }
.footer-contact-links a { color: var(--text-secondary); }
.footer-contact-links a:hover { color: var(--text-main); }
.footer-heading { color: var(--text-main); font-size: 0.875rem; letter-spacing: 0; margin-bottom: 16px; font-weight: 600; }
.footer-links a { color: var(--text-muted); display: inline-block; padding: 4px 0; margin-bottom: 6px; }
.footer-links a:hover { color: var(--text-main); }

/* "A SyCIS product" endorsement */
.sycis-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-bottom: 20px;
    padding: 6px 14px 6px 10px;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.sycis-badge .sycis-shield { width: 22px; height: 22px; }
.sycis-badge strong { color: var(--text-main); font-weight: 600; }
.sycis-badge:hover { border-color: var(--text-muted); color: var(--text-main); }

.footer-bottom { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-bottom p { color: var(--text-muted); font-size: 0.75rem; line-height: 1.6; margin: 0 0 8px; }
.footer-bottom p:last-child { margin-bottom: 0; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--text-main); }

/* --- RESPONSIVE --- */
@media (max-width: 1199px) {
    .nav-desktop { display: none; }
    .mobile-menu-toggle { display: block; }
}
@media (max-width: 1024px) {
    h1, .hero h1 { font-size: 2.75rem; }
    .contact-layout { grid-template-columns: 1fr; gap: 48px; }
    .spotlight-row { grid-template-columns: 1fr; gap: 40px; }
    .spotlight-row.reverse .spotlight-content { order: 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .values-grid { grid-template-columns: 1fr; }

    .pricing-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .pricing-card.popular { padding-top: 56px; }
}
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .mobile-menu-container { padding: 16px; }
    .faq-container { padding: 48px 16px 80px; }
    h1, .hero h1, .resource-content h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    .hero { padding: 64px 0 80px; }
    .props-grid, .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .prop-card, .feature-card, .compliance-item, .value-card { padding: 24px; }
    .modal { padding: 40px 24px 24px; }
    .contact-card { padding: 24px; }
    .form-grid { grid-template-columns: 1fr; }
    .btn { white-space: normal; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .price-tag { font-size: 2.5rem; }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- PRINT --- */
@media print {
    :root {
        --bg-dark: #FFFFFF; --bg-panel: #FFFFFF; --bg-elevated: #FFFFFF;
        --text-main: #000000; --text-secondary: #000000; --text-muted: #333333;
        --primary-text: #B71C1C; --border: #CCCCCC;
    }
    body { padding-top: 0; }
    .hero, .features-hero, .compliance-hero, .pricing-hero, .faq-hero, .about-hero, .contact-hero { background-image: none; }
    .site-header, .skip-link, .modal, .hero-buttons, .cta-section,
    .site-footer .footer-links, .resource-content .btn { display: none !important; }
    main { animation: none; }
    .prop-card, .feature-card, .compliance-item, .pricing-card, .accordion-item { box-shadow: none; break-inside: avoid; }
    .resource-content a[href^="http"]::after { content: " (" attr(href) ")"; }
}
