/* Sector landing pages (resources/views/components/landing). Extracted from the six
   landing-{sector}.blade.php files, which carried identical copies inline. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:        #F7F5F2;
    --bg-2:      #EFECE8;
    --slate:     #1C2B3A;
    --body:      #3D4F5F;
    --muted:     #556B7A;
    --subtle:    #9AACBA;
    --border:    #DDD9D3;
    --amber:     #D97706;
    --amber-l:   #F59E0B;
    --amber-bg:  #FEF3C7;
    --green:     #16A34A;
    --green-bg:  #DCFCE7;
    --red:       #DC2626;
    --red-bg:    #FEE2E2;
    --white:     #FFFFFF;
    --shadow:    0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 4px 6px rgba(0,0,0,0.07), 0 12px 30px rgba(0,0,0,0.10);
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg); color: var(--body);
    line-height: 1.6; -webkit-font-smoothing: antialiased;
}

/* Nav */
nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(247,245,242,0.95); backdrop-filter: blur(8px); transition: background 0.2s;
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.logo { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; color: var(--slate); }
.logo span { color: var(--amber); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--muted); text-decoration: none; padding: 0.4rem 0.75rem; border-radius: 6px; transition: color 0.15s, background 0.15s; }
.nav-links a:hover { color: var(--slate); background: var(--bg-2); }
.btn-demo-nav { color: var(--muted) !important; font-size: 0.875rem; font-weight: 500; text-decoration: none; padding: 0.4rem 0.75rem; border-radius: 6px; border: 1px solid var(--border); transition: color 0.15s, border-color 0.15s; }
.btn-demo-nav:hover { color: var(--amber) !important; border-color: var(--amber); }
.btn-nav { background: var(--amber) !important; color: var(--white) !important; font-weight: 600 !important; border-radius: 6px !important; padding: 0.45rem 1.1rem !important; }
.btn-nav:hover { background: var(--amber-l) !important; }
.hide-mobile { display: inline; }

/* Hero */
.hero-wrap { background: var(--white); border-bottom: 1px solid var(--border); }
.hero { max-width: 1100px; margin: 0 auto; padding: 5rem 1.5rem 4.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--amber-bg); color: var(--amber); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.75rem; border-radius: 4px; margin-bottom: 1.25rem; border: 1px solid rgba(217,119,6,0.2); }
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: var(--slate); margin-bottom: 1.25rem; }
h1 em { font-style: normal; color: var(--amber); }
.hero-sub { font-size: 1.0625rem; color: var(--body); line-height: 1.75; max-width: 480px; margin-bottom: 2rem; }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--amber); color: var(--white); font-weight: 700; font-size: 0.9375rem; padding: 0.8rem 1.75rem; border-radius: 8px; text-decoration: none; transition: background 0.15s, transform 0.1s; box-shadow: 0 2px 8px rgba(217,119,6,0.25); }
.btn-primary:hover { background: var(--amber-l); transform: translateY(-1px); }
.btn-ghost { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.9375rem; font-weight: 500; text-decoration: none; transition: color 0.15s; }
.btn-ghost:hover { color: var(--slate); }
.hero-note { margin-top: 1rem; font-size: 0.8125rem; color: var(--subtle); }
.hero-scorecard { display: inline-block; margin-top: 1.25rem; font-size: 0.9375rem; font-weight: 600; color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.hero-scorecard:hover { color: var(--slate); }

/* Compliance card */
.compliance-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; }
.card-header { background: var(--slate); padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.card-header-title { color: var(--white); font-size: 0.875rem; font-weight: 600; }
.card-header-sub { color: rgba(255,255,255,0.5); font-size: 0.75rem; margin-top: 0.1rem; }
.card-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); }
.card-stat { padding: 0.875rem 0.75rem; text-align: center; border-right: 1px solid var(--border); }
.card-stat:last-child { border-right: none; }
.card-stat-num { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.card-stat-label { font-size: 0.6875rem; color: var(--muted); margin-top: 0.25rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.num-green { color: var(--green); } .num-amber { color: var(--amber); } .num-red { color: var(--red); } .num-gray { color: var(--subtle); }
.card-row { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 1.25rem; border-bottom: 1px solid var(--border); font-size: 0.8125rem; }
.card-row:last-child { border-bottom: none; }
.card-row-name { font-weight: 600; color: var(--slate); }
.card-row-trade { color: var(--muted); font-size: 0.75rem; margin-top: 0.1rem; }
.badge { font-size: 0.6875rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.04em; flex-shrink: 0; }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-gray { background: var(--bg-2); color: var(--muted); }

/* Trust bar */
.trust-bar { background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 0.875rem 1.5rem; }
.trust-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.trust-item svg { color: var(--green); }

/* Sections */
.section-inner { max-width: 1000px; margin: 0 auto; padding: 5rem 1.5rem; }
.section-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber); margin-bottom: 0.75rem; display: block; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--slate); letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 0.75rem; }
.section-sub { font-size: 1rem; color: var(--body); line-height: 1.7; max-width: 560px; margin-bottom: 3rem; }

/* Problem */
.problem { background: var(--slate); }
.problem .section-label { color: var(--amber); }
.problem h2 { color: var(--white); }
.problem .section-sub { color: rgba(255,255,255,0.65); max-width: 580px; }
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.pain-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 1.5rem; }
.pain-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.pain-card h3 { font-size: 0.9375rem; font-weight: 700; color: #F0F4F8; margin-bottom: 0.5rem; }
.pain-card p { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.step-num { font-size: 0.75rem; font-weight: 700; color: var(--amber); letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.step h3 { font-size: 1rem; font-weight: 700; color: var(--slate); margin-bottom: 0.5rem; }
.step p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

/* Features */
.features-section { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; transition: box-shadow 0.15s; }
.feature-card:hover { box-shadow: var(--shadow); }
.feature-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--amber-bg); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 0.9375rem; font-weight: 700; color: var(--slate); margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
/* Feature card mockups */
.card-mockup { margin-top: 1.25rem; border-radius: 6px; overflow: hidden;
               border: 1px solid var(--border); background: var(--white);
               opacity: 0.92; }
.feature-card:hover .card-mockup { opacity: 1; }
/* Mockup lightbox */
.mockup-trigger { cursor: zoom-in; position: relative; }
.mockup-trigger::after { content: '🔍'; position: absolute; bottom: 6px; right: 8px;
                          font-size: 0.75rem; opacity: 0; transition: opacity 0.15s; }
.mockup-trigger:hover::after { opacity: 1; }
.mockup-overlay { display: none; position: fixed; inset: 0; z-index: 9999;
                  background: rgba(0,0,0,0.75); align-items: center; justify-content: center;
                  padding: 2rem; cursor: zoom-out; }
.mockup-overlay.open { display: flex; }
.mockup-overlay-inner { background: white; border-radius: 12px; padding: 1.5rem;
                         max-width: 760px; width: 100%; box-shadow: 0 24px 80px rgba(0,0,0,0.4); }
.mockup-overlay-inner svg { width: 100%; height: auto; }
.mockup-overlay-close { display: flex; justify-content: flex-end; margin-bottom: 0.75rem; }
.mockup-overlay-close button { background: none; border: none; font-size: 1.25rem;
                                cursor: pointer; color: #6b7280; line-height: 1; padding: 0.25rem; }



/* Doc chips */
.doc-chips { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.doc-chip { background: var(--white); border: 1px solid var(--border); color: var(--body); font-size: 0.8125rem; font-weight: 500; padding: 0.4rem 0.875rem; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }

/* Testimonial */
.testimonial-section { background: var(--amber-bg); border-top: 1px solid rgba(217,119,6,0.15); border-bottom: 1px solid rgba(217,119,6,0.15); }
.testimonial { max-width: 640px; margin: 0 auto; text-align: center; }
.testimonial blockquote { font-size: 1.125rem; font-weight: 500; color: var(--slate); line-height: 1.7; margin-bottom: 1rem; font-style: italic; }
.testimonial-attr { font-size: 0.875rem; color: var(--muted); font-weight: 600; }

/* Pricing */
.pricing-card { background: var(--white); border: 2px solid var(--border); border-radius: 14px; overflow: visible; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pricing-top { padding: 1.75rem; border-bottom: 1px solid var(--border); border-radius: 12px 12px 0 0; }
.pricing-label { font-size: 0.875rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.pricing-amount { display: flex; align-items: baseline; gap: 0.25rem; }
.price { font-size: 2.5rem; font-weight: 800; color: var(--slate); letter-spacing: -0.03em; }
.period { font-size: 0.9375rem; color: var(--muted); }
.pricing-trial { font-size: 0.8rem; color: var(--green); font-weight: 600; margin-top: 0.625rem; }
.pricing-features { padding: 1.5rem; flex: 1; }
.pricing-features ul { list-style: none; }
.pricing-features li { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.875rem; color: var(--body); margin-bottom: 0.625rem; }
.pricing-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.pricing-cta { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); margin-top: auto; }
.btn-full { display: block; width: 100%; text-align: center; background: var(--amber); color: var(--white); font-weight: 700; font-size: 0.9375rem; padding: 0.8rem; border-radius: 8px; text-decoration: none; transition: background 0.15s; }
.btn-full:hover { background: var(--amber-l); }
.pricing-note { font-size: 0.75rem; color: var(--subtle); text-align: center; margin-top: 0.625rem; }

/* Referral */
.referral-section { background: var(--green-bg); border-top: 1px solid #BBF7D0; border-bottom: 1px solid #BBF7D0; }
.referral-section h2 { color: #14532D; }
.referral-section .section-label { color: var(--green); }

/* CTA */
.cta-section { background: var(--slate); text-align: center; }
.cta-section .section-label { color: var(--amber); }
.cta-section h2 { color: var(--white); }
.btn-primary-lg { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--amber); color: var(--white); font-weight: 700; font-size: 1rem; padding: 0.9rem 2rem; border-radius: 8px; text-decoration: none; transition: background 0.15s; box-shadow: 0 2px 12px rgba(217,119,6,0.35); }
.btn-primary-lg:hover { background: var(--amber-l); }

/* Footer */
footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 1.5rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-inner p { font-size: 0.8125rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.8125rem; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--slate); }

@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 1.25rem; }
    .hide-mobile { display: none; }
    .trust-inner { gap: 1rem; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Dark mode CSS variables ─────────────────────────────── */
/* Applied via data-theme="dark" (manual) or prefers-color-scheme (auto) */
/* --slate is used for TEXT in dark mode (light colour on dark bg)        */
/* Dark sections (.problem, .cta-section) use hardcoded dark bg overrides */

[data-theme="dark"],
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }

[data-theme="dark"] {
    color-scheme: dark;
    --bg:        #0F1114;
    --bg-2:      #1C2128;
    --slate:     #E6EDF3;
    --body:      #B0C4D4;
    --muted:     #7B90A2;
    --subtle:    #3D5060;
    --border:    rgba(255,255,255,0.08);
    --amber:     #F59E0B;
    --amber-l:   #FBBF24;
    --amber-bg:  rgba(245,158,11,0.12);
    --green:     #22C55E;
    --green-bg:  rgba(34,197,94,0.10);
    --red:       #F87171;
    --red-bg:    rgba(248,113,113,0.10);
    --white:     #161B22;
    --shadow:    0 1px 3px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.35);
    --shadow-lg: 0 4px 6px rgba(0,0,0,0.5), 0 12px 30px rgba(0,0,0,0.45);
}

/* Dark sections that use var(--slate) as background colour need hardcoded bg */
/* because in dark mode --slate is light (used for text) */
[data-theme="dark"] .problem               { background: #080C10; }
[data-theme="dark"] .problem h2            { color: #E6EDF3; }
[data-theme="dark"] .problem .section-sub  { color: rgba(230,237,243,0.6); }
[data-theme="dark"] .cta-section           { background: #080C10; }
[data-theme="dark"] .cta-section h2        { color: #E6EDF3; }
[data-theme="dark"] .card-header           { background: #080C10; }
[data-theme="dark"] nav                    { background: rgba(15,17,20,0.95); }
[data-theme="dark"] .hero-wrap             { background: var(--bg-2); }
[data-theme="dark"] .trust-bar             { background: #0A0D11; }
[data-theme="dark"] .features-section      { background: var(--bg-2); }
[data-theme="dark"] .pain-card             { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .testimonial-section   { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.12); }
[data-theme="dark"] .referral-section      { background: rgba(34,197,94,0.06); border-color: rgba(34,197,94,0.12); }
[data-theme="dark"] .referral-section h2   { color: #86EFAC; }
[data-theme="dark"] .referral-section .section-label { color: #22C55E; }
[data-theme="dark"] .doc-chip              { background: var(--bg-2); }
[data-theme="dark"] .feature-card          { background: var(--bg); }
[data-theme="dark"] .pricing-card          { background: var(--bg-2); }
[data-theme="dark"] .pricing-top           { border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .pricing-cta           { border-color: rgba(255,255,255,0.08); }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg:        #0F1114;
        --bg-2:      #1C2128;
        --slate:     #E6EDF3;
        --body:      #B0C4D4;
        --muted:     #7B90A2;
        --subtle:    #3D5060;
        --border:    rgba(255,255,255,0.08);
        --amber:     #F59E0B;
        --amber-l:   #FBBF24;
        --amber-bg:  rgba(245,158,11,0.12);
        --green:     #22C55E;
        --green-bg:  rgba(34,197,94,0.10);
        --red:       #F87171;
        --red-bg:    rgba(248,113,113,0.10);
        --white:     #161B22;
        --shadow:    0 1px 3px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.35);
        --shadow-lg: 0 4px 6px rgba(0,0,0,0.5), 0 12px 30px rgba(0,0,0,0.45);
    }
    :root:not([data-theme="light"]) .problem              { background: #080C10; }
    :root:not([data-theme="light"]) .problem h2           { color: #E6EDF3; }
    :root:not([data-theme="light"]) .problem .section-sub { color: rgba(230,237,243,0.6); }
    :root:not([data-theme="light"]) .cta-section          { background: #080C10; }
    :root:not([data-theme="light"]) .cta-section h2       { color: #E6EDF3; }
    :root:not([data-theme="light"]) .card-header          { background: #080C10; }
    :root:not([data-theme="light"]) nav                   { background: rgba(15,17,20,0.95); }
    :root:not([data-theme="light"]) .hero-wrap            { background: var(--bg-2); }
    :root:not([data-theme="light"]) .trust-bar            { background: #0A0D11; }
    :root:not([data-theme="light"]) .features-section     { background: var(--bg-2); }
    :root:not([data-theme="light"]) .pain-card            { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
    :root:not([data-theme="light"]) .testimonial-section  { background: rgba(245,158,11,0.08); }
    :root:not([data-theme="light"]) .referral-section     { background: rgba(34,197,94,0.06); }
    :root:not([data-theme="light"]) .referral-section h2  { color: #86EFAC; }
    :root:not([data-theme="light"]) .doc-chip             { background: var(--bg-2); }
    :root:not([data-theme="light"]) .feature-card         { background: var(--bg); }
    :root:not([data-theme="light"]) .pricing-card         { background: var(--bg-2); }
}

/* Toggle button */
.theme-toggle {
    background: none; border: 1px solid var(--border);
    color: var(--muted); cursor: pointer;
    width: 32px; height: 32px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    transition: color 0.15s, background 0.15s; font-size: 0.875rem;
    flex-shrink: 0;
}
.theme-toggle:hover { background: var(--bg-2); color: var(--slate); }

/* Demo CTA section */
.demo-section { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.demo-inner { max-width: 680px; margin: 0 auto; padding: 3.5rem 1.5rem; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.demo-text h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 700; color: var(--slate); letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.demo-text p  { font-size: 0.9375rem; color: var(--muted); line-height: 1.65; }
.btn-demo { display: inline-flex; align-items: center; gap: 0.5rem; background: transparent; color: var(--amber); font-weight: 700; font-size: 0.9375rem; padding: 0.75rem 1.5rem; border-radius: 8px; text-decoration: none; border: 2px solid var(--amber); transition: background 0.15s, color 0.15s; white-space: nowrap; }
.btn-demo:hover { background: var(--amber); color: var(--white); }
[data-theme="dark"] .demo-section { background: var(--bg-2); }
@media (max-width: 600px) { .demo-inner { grid-template-columns: 1fr; text-align: center; } .btn-demo { width: 100%; justify-content: center; } }

/* FAQ (previously an inline <style> block after the FAQ section) */
.faq-item { border-bottom:1px solid var(--border); padding:0.9rem 0; }
.faq-item summary { cursor:pointer; font-weight:600; font-size:0.95rem; list-style:none; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after { content:'+'; float:right; color:var(--muted); font-weight:400; }
.faq-item[open] summary::after { content:'\2212'; }
.faq-item p { color:var(--muted); font-size:0.9rem; line-height:1.65; margin-top:0.6rem; }

/* Source references ([n] in the copy) and the Sources list */
sup.cite { font-size: 0.7em; line-height: 0; margin-left: 0.1em; }
sup.cite a { color: var(--amber); text-decoration: none; font-weight: 600; }
.problem sup.cite a { color: var(--amber-l); }
.sources-section { border-top: 1px solid var(--border); padding: 2rem 1.5rem; }
.sources-inner { max-width: 800px; margin: 0 auto; }
.sources-section h2 { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.75rem; }
.sources-section ol { padding-left: 1.25rem; font-size: 0.8125rem; color: var(--muted); line-height: 1.6; }
.sources-section li { margin-bottom: 0.35rem; scroll-margin-top: 80px; }
.sources-section a { color: var(--amber); }
