/* ==========================================================================
   NileDesk marketing site — design system
   Brand colours follow the product UI (indigo/violet actions, green "publish").
   ========================================================================== */

:root {
    --nd-primary: #4f3bd6;
    --nd-primary-600: #4130bd;
    --nd-primary-700: #33259a;
    --nd-primary-50: #f2f0ff;
    --nd-primary-100: #e4e0ff;
    --nd-accent: #10a37f;
    --nd-accent-50: #e8f7f2;
    --nd-sky: #2196f3;
    --nd-amber: #f59e0b;
    --nd-rose: #e5484d;

    --nd-ink: #0f172a;
    --nd-body: #334155;
    --nd-muted: #64748b;
    --nd-line: #e5e7f0;
    --nd-bg: #ffffff;
    --nd-bg-soft: #f7f8fc;
    --nd-bg-tint: #f4f2ff;
    --nd-dark: #12102e;
    --nd-dark-2: #1c1945;

    --nd-radius: 14px;
    --nd-radius-lg: 20px;
    --nd-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
    --nd-shadow: 0 10px 30px -12px rgba(30, 27, 75, .18), 0 2px 6px rgba(15, 23, 42, .05);
    --nd-shadow-lg: 0 30px 60px -20px rgba(30, 27, 75, .30), 0 8px 20px -8px rgba(15, 23, 42, .12);

    --nd-header-h: 68px;
    --nd-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --bs-primary: var(--nd-primary);
    --bs-primary-rgb: 79, 59, 214;
    --bs-link-color: var(--nd-primary);
    --bs-link-color-rgb: 79, 59, 214;
    --bs-link-hover-color: var(--nd-primary-700);
    --bs-body-font-family: var(--nd-font);
    --bs-body-color: var(--nd-body);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nd-header-h) + 16px); }
[tabindex="-1"]:focus { outline: none; }

body {
    font-family: var(--nd-font);
    color: var(--nd-body);
    background: var(--nd-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { color: var(--nd-ink); font-family: var(--nd-font); letter-spacing: -.015em; }

a { color: var(--nd-primary); }
a:hover { color: var(--nd-primary-700); }

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

:focus-visible { outline: 3px solid rgba(79, 59, 214, .45); outline-offset: 2px; border-radius: 6px; }

.skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: 2000;
    background: var(--nd-ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.nd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-weight: 700; font-size: .95rem; line-height: 1;
    padding: .85rem 1.3rem; border-radius: 12px; border: 1.5px solid transparent;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.nd-btn:active { transform: translateY(1px); }
.nd-btn-lg { padding: 1rem 1.55rem; font-size: 1.02rem; border-radius: 14px; }
.nd-btn-sm { padding: .6rem .95rem; font-size: .88rem; border-radius: 10px; }
.nd-btn-primary { background: var(--nd-primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(79, 59, 214, .65); }
.nd-btn-primary:hover { background: var(--nd-primary-600); color: #fff; }
.nd-btn-outline { background: #fff; color: var(--nd-ink); border-color: var(--nd-line); }
.nd-btn-outline:hover { border-color: var(--nd-primary); color: var(--nd-primary); }
.nd-btn-ghost { background: transparent; color: var(--nd-ink); }
.nd-btn-ghost:hover { color: var(--nd-primary); background: var(--nd-primary-50); }
.nd-btn-light { background: #fff; color: var(--nd-primary-700); }
.nd-btn-light:hover { background: var(--nd-primary-50); color: var(--nd-primary-700); }
.nd-btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.nd-btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.nd-btn:disabled, .nd-btn[disabled] { opacity: .65; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    height: var(--nd-header-h);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--nd-line); box-shadow: 0 6px 20px -16px rgba(15,23,42,.35); }
.site-header .nd-container { height: 100%; display: flex; align-items: center; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; flex-shrink: 0; }
.brand img { width: 30px; height: 30px; }
.brand span { font-weight: 800; font-size: 1.3rem; color: var(--nd-ink); letter-spacing: -.02em; }
.brand:hover span { color: var(--nd-ink); }

.main-nav { display: flex; align-items: center; gap: .15rem; margin-left: .5rem; }
.main-nav > a, .nav-drop > button {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .55rem .8rem; border-radius: 10px;
    font-weight: 600; font-size: .94rem; color: var(--nd-body);
    text-decoration: none; background: none; border: 0;
}
.main-nav > a:hover, .nav-drop > button:hover, .nav-drop.open > button { color: var(--nd-ink); background: var(--nd-bg-soft); }
.main-nav > a.active { color: var(--nd-primary); }
.nav-drop { position: relative; }
.nav-drop > button .bi { font-size: .75rem; transition: transform .2s ease; }
.nav-drop.open > button .bi { transform: rotate(180deg); }

.mega {
    position: absolute; top: calc(100% + 10px); left: -1rem;
    width: 640px; padding: 1.25rem;
    background: #fff; border: 1px solid var(--nd-line); border-radius: var(--nd-radius-lg);
    box-shadow: var(--nd-shadow-lg);
    display: none; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
.nav-drop.open .mega { display: grid; }
.mega h6 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--nd-muted); margin: 0 0 .5rem .6rem; font-weight: 700; }
.mega a {
    display: flex; align-items: center; gap: .65rem; padding: .5rem .6rem; border-radius: 10px;
    color: var(--nd-ink); font-weight: 600; font-size: .92rem; text-decoration: none;
}
.mega a:hover { background: var(--nd-bg-tint); color: var(--nd-primary); }
.mega a .bi { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--nd-bg-soft); color: var(--nd-primary); font-size: 1rem; flex-shrink: 0; }
.mega .mega-foot { grid-column: 1 / -1; border-top: 1px solid var(--nd-line); padding-top: .85rem; display: flex; justify-content: space-between; align-items: center; font-size: .88rem; color: var(--nd-muted); }
.mega .mega-foot a { display: inline-flex; padding: 0; color: var(--nd-primary); }
.mega .mega-foot a:hover { background: none; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 1.7rem; color: var(--nd-ink); padding: .25rem .4rem; border-radius: 8px; }

@media (max-width: 1199.98px) {
    .main-nav, .header-actions { display: none; }
    .nav-toggle { display: inline-flex; }
}

/* Mobile drawer */
.mobile-nav {
    position: fixed; inset: var(--nd-header-h) 0 0 0; z-index: 1029;
    background: #fff; overflow-y: auto; padding: 1rem 1.25rem 2rem;
    display: none;
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: .8rem .25rem; font-weight: 600; color: var(--nd-ink); text-decoration: none; border-bottom: 1px solid var(--nd-line); }
.mobile-nav details summary { list-style: none; padding: .8rem .25rem; font-weight: 600; color: var(--nd-ink); border-bottom: 1px solid var(--nd-line); cursor: pointer; display: flex; justify-content: space-between; }
.mobile-nav details summary::-webkit-details-marker { display: none; }
.mobile-nav details a { padding-left: 1rem; font-weight: 500; color: var(--nd-body); }
.mobile-nav .mobile-actions { display: grid; gap: .6rem; margin-top: 1.25rem; }
.mobile-nav .mobile-actions a { border: none; }
body.nav-open { overflow: hidden; }

/* ---------- Layout ---------- */
.nd-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 575.98px) { .nd-container { padding: 0 16px; } }

.nd-section { padding: 96px 0; }
.nd-section-sm { padding: 64px 0; }
@media (max-width: 767.98px) { .nd-section { padding: 64px 0; } .nd-section-sm { padding: 48px 0; } }
.bg-soft { background: var(--nd-bg-soft); }
.bg-tint { background: linear-gradient(180deg, var(--nd-bg-tint), #fff); }

.eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
    color: var(--nd-primary); margin-bottom: .9rem;
}
.eyebrow.pill { background: var(--nd-primary-50); padding: .4rem .8rem; border-radius: 999px; text-transform: none; letter-spacing: 0; font-size: .85rem; }

.section-head { max-width: 760px; margin: 0 auto 3.25rem; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; margin-bottom: .9rem; line-height: 1.15; }
.section-head p { font-size: 1.1rem; color: var(--nd-muted); margin: 0; line-height: 1.65; }

.lead-lg { font-size: 1.15rem; line-height: 1.7; color: var(--nd-body); }
.text-muted-nd { color: var(--nd-muted) !important; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: 72px 0 96px;
    background:
        radial-gradient(1100px 500px at 85% -10%, rgba(79, 59, 214, .14), transparent 60%),
        radial-gradient(800px 400px at -10% 10%, rgba(33, 150, 243, .10), transparent 60%),
        #fff;
}
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.15rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; margin-bottom: 1.25rem; }
.hero h1 .hl { background: linear-gradient(90deg, var(--nd-primary), var(--nd-sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { font-size: 1.18rem; line-height: 1.7; color: var(--nd-body); max-width: 560px; margin-bottom: 2rem; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .cta-note { margin-top: 1rem; font-size: .9rem; color: var(--nd-muted); display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.hero .cta-note span { display: inline-flex; align-items: center; gap: .35rem; }
.hero .cta-note .bi { color: var(--nd-accent); }

.page-hero { padding: 64px 0 56px; background: radial-gradient(900px 380px at 80% -20%, rgba(79,59,214,.12), transparent 60%), var(--nd-bg-soft); border-bottom: 1px solid var(--nd-line); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; margin-bottom: 1rem; }
.page-hero p.sub { font-size: 1.15rem; color: var(--nd-body); max-width: 720px; line-height: 1.7; margin-bottom: 0; }
.page-hero.center { text-align: center; }
.page-hero.center p.sub { margin-left: auto; margin-right: auto; }

.crumbs { font-size: .85rem; color: var(--nd-muted); margin-bottom: 1rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.crumbs a { color: var(--nd-muted); text-decoration: none; }
.crumbs a:hover { color: var(--nd-primary); }

/* ---------- Product shots ---------- */
.shot-stage { position: relative; }
.browser {
    background: #fff; border-radius: 14px; overflow: hidden;
    border: 1px solid #dfe2ee; box-shadow: var(--nd-shadow-lg);
}
.browser .bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #f3f4f9; border-bottom: 1px solid #e6e8f1; }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #d7dae6; display: block; }
.browser .bar i:nth-child(1) { background: #ff6058; } .browser .bar i:nth-child(2) { background: #ffbd2e; } .browser .bar i:nth-child(3) { background: #28c940; }
.browser .bar .url { margin-left: 10px; font-size: .72rem; color: var(--nd-muted); background: #fff; border: 1px solid #e6e8f1; padding: 2px 10px; border-radius: 6px; }
.browser img { display: block; width: 100%; height: auto; }

.phone {
    position: absolute; width: 30%; max-width: 210px; right: -4%; bottom: -10%;
    border-radius: 26px; border: 7px solid #15132f; background: #15132f; overflow: hidden;
    box-shadow: var(--nd-shadow-lg);
}
.phone img { display: block; width: 100%; border-radius: 18px; }
@media (max-width: 991.98px) { .phone { right: 2%; bottom: -8%; width: 28%; } }

.hero-visual picture { display: block; }
.hero-visual img {
    display: block; width: 100%; height: auto; aspect-ratio: 1671 / 941;
    border-radius: 20px; border: 1px solid #dfe2ee; background: #eef0f6;
    box-shadow: var(--nd-shadow-lg);
}
@media (max-width: 991.98px) { .hero-visual { max-width: 720px; margin: 0 auto; } }
@media (max-width: 575.98px) { .hero-visual img { border-radius: 14px; } }

.shot-caption { font-size: .85rem; color: var(--nd-muted); margin-top: .75rem; text-align: center; }

.float-chip {
    position: absolute; display: inline-flex; align-items: center; gap: .5rem;
    background: #fff; border: 1px solid var(--nd-line); border-radius: 12px;
    padding: .55rem .8rem; font-size: .82rem; font-weight: 600; color: var(--nd-ink);
    box-shadow: var(--nd-shadow);
}
.float-chip .bi { color: var(--nd-accent); font-size: 1rem; }
@media (max-width: 767.98px) { .float-chip { display: none; } }

/* ---------- Cards ---------- */
.nd-card {
    background: #fff; border: 1px solid var(--nd-line); border-radius: var(--nd-radius);
    padding: 1.6rem; height: 100%;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
a.nd-card { display: block; text-decoration: none; color: inherit; }
a.nd-card:hover { border-color: rgba(79,59,214,.45); box-shadow: var(--nd-shadow); transform: translateY(-2px); }
.nd-card h3, .nd-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.nd-card p { color: var(--nd-muted); margin-bottom: 0; line-height: 1.6; font-size: .97rem; }
.nd-card .more { display: inline-flex; align-items: center; gap: .3rem; margin-top: .9rem; font-weight: 700; font-size: .9rem; color: var(--nd-primary); }

.ico {
    width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 1rem; background: var(--nd-primary-50); color: var(--nd-primary);
}
.ico.green { background: var(--nd-accent-50); color: var(--nd-accent); }
.ico.sky { background: #e8f3fe; color: #1677d2; }
.ico.amber { background: #fff4e0; color: #c47a00; }
.ico.rose { background: #ffecec; color: #c9363b; }
.ico.slate { background: #eef1f6; color: #475569; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.75rem; margin-bottom: .65rem; line-height: 1.55; }
.check-list li::before {
    content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .05rem;
    color: var(--nd-accent); font-size: 1.05rem;
}
.check-list.sm li { font-size: .95rem; margin-bottom: .45rem; }

/* Problem → solution rows */
.pain {
    display: flex; gap: .9rem; align-items: flex-start;
    padding: 1.1rem 1.2rem; border-radius: 12px; background: #fff; border: 1px solid var(--nd-line);
}
.pain .bi { color: var(--nd-rose); font-size: 1.15rem; margin-top: .1rem; }
.pain strong { color: var(--nd-ink); display: block; margin-bottom: .15rem; }
.pain span { color: var(--nd-muted); font-size: .95rem; }

/* Feature rows (alternating text + screenshot) */
.feature-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: center; }
.feature-row.reverse > :first-child { order: 2; }
.feature-row + .feature-row { margin-top: 6rem; }
.feature-row h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.feature-row p { font-size: 1.05rem; line-height: 1.7; }
@media (max-width: 991.98px) {
    .feature-row { grid-template-columns: 1fr; gap: 2rem; }
    .feature-row.reverse > :first-child { order: 0; }
    .feature-row + .feature-row { margin-top: 4rem; }
}

/* Steps */
.step-num {
    width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--nd-primary); color: #fff; font-weight: 800; font-size: .95rem; margin-bottom: 1rem;
}
.step-card { background: #fff; border: 1px solid var(--nd-line); border-radius: var(--nd-radius-lg); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.step-card .body { padding: 1.5rem 1.5rem 1.25rem; }
.step-card .body h3 { font-size: 1.15rem; font-weight: 700; }
.step-card .body p { color: var(--nd-muted); margin: 0; }
.step-card .pic { margin-top: auto; background: var(--nd-bg-soft); border-top: 1px solid var(--nd-line); padding: 1rem 1rem 0; }
.step-card .pic img { display: block; width: 100%; border-radius: 10px 10px 0 0; border: 1px solid var(--nd-line); border-bottom: 0; box-shadow: var(--nd-shadow-sm); }

/* Template chips */
.tpl {
    display: flex; gap: .85rem; align-items: flex-start; height: 100%;
    background: #fff; border: 1px solid var(--nd-line); border-radius: 12px; padding: 1rem 1.1rem;
}
.tpl .bi { color: var(--nd-accent); font-size: 1.25rem; }
.tpl strong { display: block; color: var(--nd-ink); font-size: .98rem; }
.tpl span { color: var(--nd-muted); font-size: .9rem; line-height: 1.5; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 6px; background: var(--nd-bg-soft); color: var(--nd-muted); margin-bottom: .35rem; }

/* Dark band */
.dark-band { background: radial-gradient(900px 400px at 85% 0%, rgba(79,59,214,.55), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(33,150,243,.25), transparent 60%), var(--nd-dark); color: #c9c8e6; }
.dark-band h2, .dark-band h3, .dark-band h4 { color: #fff; }
.dark-band .section-head p { color: #b9b7dc; }
.dark-band .eyebrow { color: #b4a9ff; }
.dark-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--nd-radius); padding: 1.6rem; height: 100%; }
.dark-card p { color: #b9b7dc; margin: 0; line-height: 1.6; }
.dark-card .ico { background: rgba(180,169,255,.15); color: #c9c0ff; }
.dark-band .check-list li::before { color: #5eead4; }

/* Code-ish snippet */
.mcp-demo { background: #0b0a22; border: 1px solid rgba(255,255,255,.1); border-radius: var(--nd-radius); padding: 1.25rem 1.35rem; font-size: .92rem; line-height: 1.6; color: #d8d6f4; }
.mcp-demo .who { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: #8f8ac7; margin-bottom: .25rem; }
.mcp-demo .msg { background: rgba(255,255,255,.06); border-radius: 10px; padding: .7rem .9rem; margin-bottom: .9rem; }
.mcp-demo .msg.ai { background: rgba(79,59,214,.25); }
.mcp-demo code { color: #5eead4; background: none; font-size: .85rem; }

/* Deployment comparison */
.deploy-card { border: 1px solid var(--nd-line); border-radius: var(--nd-radius-lg); padding: 2rem; background: #fff; height: 100%; }
.deploy-card.featured { border-color: rgba(79,59,214,.45); box-shadow: 0 0 0 4px var(--nd-primary-50); }
.deploy-card h3 { font-size: 1.35rem; font-weight: 800; }
.deploy-card .tagline { color: var(--nd-muted); margin-bottom: 1.25rem; }

/* Pricing */
.price-card { border: 1px solid var(--nd-line); border-radius: var(--nd-radius-lg); background: #fff; padding: 2rem; height: 100%; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--nd-primary); box-shadow: var(--nd-shadow); position: relative; }
.price-card .badge-top { position: absolute; top: -13px; left: 2rem; background: var(--nd-primary); color: #fff; font-size: .75rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; }
.price-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: .25rem; }
.price-card .for { color: var(--nd-muted); font-size: .95rem; min-height: 3em; }
.price-card .price { font-size: 2.2rem; font-weight: 800; color: var(--nd-ink); letter-spacing: -.02em; margin: .75rem 0 .1rem; }
.price-card .price small { font-size: .95rem; font-weight: 600; color: var(--nd-muted); letter-spacing: 0; }
.price-card .basis { font-size: .9rem; color: var(--nd-muted); margin-bottom: 1.25rem; }
.price-card .check-list { margin-bottom: 1.5rem; }
.price-card .nd-btn { margin-top: auto; width: 100%; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--nd-line); border-radius: var(--nd-radius); overflow: hidden; font-size: .95rem; }
.compare th, .compare td { padding: .85rem 1rem; border-bottom: 1px solid var(--nd-line); vertical-align: middle; }
.compare thead th { background: var(--nd-bg-soft); color: var(--nd-ink); font-weight: 700; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare tr.group td { background: var(--nd-bg-tint); font-weight: 700; color: var(--nd-ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--nd-accent); font-size: 1.15rem; }
.compare .no { color: #b8bccb; font-size: 1.15rem; }
.compare .note { font-size: .82rem; color: var(--nd-muted); }
@media (max-width: 767.98px) {
    .compare { font-size: .85rem; }
    .compare th, .compare td { padding: .6rem .5rem; }
}

/* FAQ */
.faq details { border: 1px solid var(--nd-line); border-radius: 12px; background: #fff; margin-bottom: .75rem; }
.faq details[open] { border-color: rgba(79,59,214,.35); box-shadow: var(--nd-shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 1.25rem; font-weight: 700; color: var(--nd-ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\F4FE"; font-family: "bootstrap-icons"; color: var(--nd-primary); transition: transform .2s ease; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 1.25rem 1.2rem; color: var(--nd-body); line-height: 1.7; }
.faq .answer p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { border-radius: 28px; padding: 4rem 2rem; text-align: center; color: #fff; background: radial-gradient(700px 300px at 90% 0%, rgba(33,150,243,.45), transparent 60%), linear-gradient(135deg, var(--nd-primary-700), var(--nd-primary)); }
.cta-band h2 { color: #fff; font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .9rem; }
.cta-band p { color: #e3defe; font-size: 1.1rem; max-width: 640px; margin: 0 auto 2rem; }
.cta-band .cta-row { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.cta-band .fine { margin-top: 1.1rem; font-size: .9rem; color: #d3ccfd; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--nd-line); border-radius: var(--nd-radius-lg); padding: 2rem; box-shadow: var(--nd-shadow-sm); }
@media (max-width: 575.98px) { .form-card { padding: 1.35rem; } }
.form-card .form-label { font-weight: 600; color: var(--nd-ink); font-size: .92rem; margin-bottom: .35rem; }
.form-card .form-control, .form-card .form-select { border-radius: 10px; border-color: #d9dcea; padding: .7rem .9rem; font-size: .95rem; }
.form-card .form-control:focus, .form-card .form-select:focus { border-color: var(--nd-primary); box-shadow: 0 0 0 4px rgba(79,59,214,.12); }
.form-card .form-text { color: var(--nd-muted); font-size: .82rem; }
.form-card .is-invalid { border-color: var(--nd-rose) !important; }
.field-error { color: var(--nd-rose); font-size: .82rem; margin-top: .3rem; }
.form-section { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--nd-primary); margin: 1.75rem 0 1rem; padding-top: 1.25rem; border-top: 1px solid var(--nd-line); }
.form-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form-msg { margin-top: 1rem; font-size: .92rem; }
.form-msg.err { color: var(--nd-rose); }
.form-msg.warn { color: #b45309; }

.side-panel { background: var(--nd-bg-soft); border: 1px solid var(--nd-line); border-radius: var(--nd-radius-lg); padding: 1.75rem; }
.side-panel h3 { font-size: 1.05rem; font-weight: 800; }
.side-panel .contact-line { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.side-panel .contact-line .bi { color: var(--nd-primary); }

.result-card { max-width: 640px; margin: 0 auto; text-align: center; }
.result-card .big-ico { width: 72px; height: 72px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 1.25rem; background: var(--nd-accent-50); color: var(--nd-accent); }
.result-card .big-ico.warn { background: #fff4e0; color: #c47a00; }

/* Prose (legal) */
.prose { max-width: 820px; margin: 0 auto; font-size: 1rem; line-height: 1.8; color: var(--nd-body); }
.prose h2, .prose h3, .prose h4, .prose h5 { margin-top: 2rem; margin-bottom: .75rem; font-weight: 800; }
.prose h2 { font-size: 1.45rem; } .prose h3 { font-size: 1.2rem; } .prose h4, .prose h5 { font-size: 1.05rem; }

/* Footer */
.site-footer { background: var(--nd-dark); color: #a9a7cc; padding: 72px 0 28px; margin-top: 0; }
.site-footer a { color: #d6d4ef; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h6 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; font-size: .93rem; }
.site-footer .brand span { color: #fff; }
.site-footer .about { font-size: .93rem; line-height: 1.7; max-width: 320px; margin: 1rem 0 1.25rem; }
.site-footer .loc { font-size: .88rem; display: flex; gap: .5rem; margin-bottom: .4rem; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.site-footer .bottom .links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

.doc-footer { border-top: 1px solid var(--nd-line); padding: 1.25rem 0; font-size: .88rem; color: var(--nd-muted); text-align: center; background: #fff; }
.doc-footer a { color: var(--nd-muted); text-decoration: none; margin: 0 .5rem; }
.doc-footer a:hover { color: var(--nd-primary); }

/* Video modal */
.video-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 8, 30, .82); display: none; align-items: center; justify-content: center; padding: 16px; }
.video-modal.open { display: flex; }
.video-modal .frame { width: min(1000px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; box-shadow: var(--nd-shadow-lg); }
.video-modal iframe { width: 100%; height: 100%; border: 0; }
.video-modal .close { position: absolute; top: 16px; right: 20px; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; }

.play-link { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--nd-ink); text-decoration: none; background: none; border: 0; padding: 0; }
.play-link .bi { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--nd-line); display: inline-flex; align-items: center; justify-content: center; color: var(--nd-primary); font-size: 1.1rem; box-shadow: var(--nd-shadow-sm); }
.play-link:hover { color: var(--nd-primary); }

/* Utilities */
.gap-grid { row-gap: 1.5rem; }
.max-640 { max-width: 640px; }
.small-caps { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--nd-muted); }
.divider-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--nd-muted); vertical-align: middle; margin: 0 .5rem; }
.note-box { background: var(--nd-bg-tint); border: 1px solid var(--nd-primary-100); border-radius: 12px; padding: 1rem 1.2rem; font-size: .95rem; color: var(--nd-body); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
