/* ==========================================================================
   SEOWebChecker.com — AI Email Response Generator
   Design system: dark navy base, Outfit (display) + Inter (body)
   ========================================================================== */

:root {
    --navy-950: #060b18;
    --navy-900: #0a1224;
    --navy-800: #0f1a30;
    --navy-700: #17233f;
    --navy-600: #202f52;
    --border: #22304f;
    --border-soft: #1a2540;
    --text-primary: #eef2fb;
    --text-secondary: #9fadc9;
    --text-muted: #6c7ba1;
    --accent: #5b7fff;
    --accent-2: #22d3c9;
    --accent-3: #ffb454;
    --danger: #ff6b6b;
    --success: #2fd97a;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-lg: 0 20px 60px -20px rgba(0,0,0,0.55);
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-w: 1240px;
}

[data-theme="light"] {
    --navy-950: #f5f7fc;
    --navy-900: #ffffff;
    --navy-800: #f0f3fa;
    --navy-700: #e6eaf5;
    --navy-600: #d9e0f0;
    --border: #dce2f2;
    --border-soft: #e7ebf7;
    --text-primary: #101830;
    --text-secondary: #454f6e;
    --text-muted: #737f9e;
    --shadow-lg: 0 20px 60px -25px rgba(30,40,80,0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--navy-950);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, .display { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1rem; color: var(--text-secondary); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

::selection { background: var(--accent); color: #fff; }

/* ---------------- Skip link ---------------- */
.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff;
    padding: 0.75rem 1.25rem; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------------- Top utility bar ---------------- */
.topbar {
    background: var(--navy-900);
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.8rem;
    color: var(--text-muted);
    display: none;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 0.4rem; padding-bottom: 0.4rem; }
.topbar a:hover { color: var(--accent); }
@media (min-width: 900px) { .topbar { display: block; } }

/* ---------------- Navbar ---------------- */
.navbar {
    position: sticky; top: 0; z-index: 200;
    background: rgba(10,18,36,0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
}
[data-theme="light"] .navbar { background: rgba(255,255,255,0.85); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 0.95rem; }
.brand span { color: var(--accent-2); }

.nav-links { display: none; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button.nav-top-link {
    display: flex; align-items: center; gap: 0.3rem; padding: 0.7rem 0.85rem; font-size: 0.92rem; font-weight: 500;
    color: var(--text-secondary); border: none; background: none; cursor: pointer; border-radius: var(--radius-sm);
}
.nav-links > li > a:hover, .nav-links > li > button.nav-top-link:hover, .nav-links > li.open > button.nav-top-link { color: var(--text-primary); background: var(--navy-800); }
.caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform 0.2s; }
.nav-links > li.open .caret { transform: rotate(-135deg); margin-top: 3px; }

.mega-menu {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 320px;
    background: var(--navy-800); border: 1px solid var(--border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg); padding: 0.75rem; display: none; z-index: 50;
    grid-template-columns: repeat(2, 1fr); gap: 0.15rem;
}
.mega-menu::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius-md); backdrop-filter: blur(6px); z-index: -1; }
.nav-links > li.open .mega-menu { display: grid; }
.mega-menu a { display: block; padding: 0.55rem 0.7rem; font-size: 0.85rem; color: var(--text-secondary); border-radius: 8px; }
.mega-menu a:hover { background: var(--navy-700); color: var(--accent-2); }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.theme-toggle {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--navy-800);
    color: var(--text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.theme-toggle:hover { color: var(--accent-2); border-color: var(--accent-2); }
.theme-toggle svg { width: 19px; height: 19px; }
.icon-moon { display: block; }
.icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: block; }

.nav-cta {
    display: none; background: var(--accent); color: #fff; padding: 0.6rem 1.1rem; border-radius: 999px;
    font-weight: 600; font-size: 0.88rem; white-space: nowrap;
}
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }

.mobile-toggle {
    width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--navy-800);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.mobile-toggle span, .mobile-toggle::before, .mobile-toggle::after { content:""; }
.burger { width: 18px; height: 2px; background: var(--text-primary); position: relative; display: block; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text-primary); transition: 0.2s; }
.burger::before { top: -6px; } .burger::after { top: 6px; }

@media (min-width: 1080px) {
    .nav-links { display: flex; }
    .mobile-toggle { display: none; }
}

/* Mobile drawer */
.mobile-drawer {
    position: fixed; inset: 0; z-index: 300; background: var(--navy-950); transform: translateX(100%);
    transition: transform 0.3s ease; overflow-y: auto; padding: 1.25rem;
}
.mobile-drawer.active { transform: translateX(0); }
.mobile-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.mobile-drawer .close-drawer { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--navy-800); color: var(--text-primary); font-size: 1.2rem; cursor: pointer; }
.mobile-drawer details { border-bottom: 1px solid var(--border-soft); padding: 0.6rem 0; }
.mobile-drawer summary { font-weight: 600; padding: 0.5rem 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.mobile-drawer summary::-webkit-details-marker { display: none; }
.mobile-drawer a { display: block; padding: 0.55rem 0.25rem; color: var(--text-secondary); font-size: 0.92rem; }
.mobile-drawer > a { font-weight: 600; color: var(--text-primary); border-bottom: 1px solid var(--border-soft); padding: 0.75rem 0.25rem; }

/* ---------------- Breadcrumb ---------------- */
.breadcrumb-bar { padding: 0.9rem 0; border-bottom: 1px solid var(--border-soft); }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; font-size: 0.82rem; color: var(--text-muted); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--border); }
.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb li[aria-current] { color: var(--text-secondary); }

/* ---------------- Hero ---------------- */
.hero { padding: 3.2rem 0 2.5rem; position: relative; }
.hero::before {
    content: ""; position: absolute; top: -120px; right: -100px; width: 480px; height: 480px; border-radius: 50%;
    background: radial-gradient(circle, rgba(91,127,255,0.18), transparent 70%); pointer-events: none; z-index: -1;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.4rem; background: var(--navy-800); border: 1px solid var(--border);
    padding: 0.4rem 0.85rem; border-radius: 999px; font-size: 0.78rem; color: var(--accent-2); font-weight: 600; margin-bottom: 1.1rem;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(47,217,122,0.15); }
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); font-weight: 700; line-height: 1.12; max-width: 850px; }
.hero h1 .accent-word { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.08rem; max-width: 640px; margin-top: 1rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.6rem; }
.hero-stats .stat b { display: block; font-family: var(--font-display); font-size: 1.4rem; }
.hero-stats .stat span { font-size: 0.8rem; color: var(--text-muted); }

/* Quick tool links strip */
.tool-strip { padding: 1.2rem 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--navy-900); }
.tool-strip .strip-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.6rem; }
.strip-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.strip-links a { font-size: 0.8rem; background: var(--navy-800); border: 1px solid var(--border); padding: 0.4rem 0.75rem; border-radius: 999px; color: var(--text-secondary); }
.strip-links a:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* ---------------- App / Generator Card ---------------- */
.app-section { padding: 2.6rem 0; }
.app-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; align-items: start; }
@media (min-width: 980px) { .app-grid { grid-template-columns: 1.15fr 1fr; } }

.card {
    background: var(--navy-900); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 1.5rem; box-shadow: var(--shadow-lg);
}
.card h2 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.card .card-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.2rem; }

.field-row { display: grid; grid-template-columns: 1fr; gap: 0.9rem; margin-bottom: 0.9rem; }
@media (min-width: 560px) { .field-row.two { grid-template-columns: 1fr 1fr; } .field-row.three { grid-template-columns: 1fr 1fr 1fr; } }

label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.4rem; }
label .opt { color: var(--text-muted); font-weight: 400; }

textarea, input[type="text"], select {
    width: 100%; background: var(--navy-800); border: 1px solid var(--border); color: var(--text-primary);
    border-radius: var(--radius-sm); padding: 0.75rem 0.85rem; font-size: 0.92rem; font-family: inherit;
    transition: border-color 0.15s ease; resize: vertical;
}
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,127,255,0.18); }
textarea#originalEmail { min-height: 190px; }
textarea#instructions { min-height: 80px; }
.char-count { text-align: right; font-size: 0.72rem; color: var(--text-muted); margin-top: 0.3rem; }
.char-count.warn { color: var(--accent-3); }
.char-count.error { color: var(--danger); }

.field-error { display: none; color: var(--danger); font-size: 0.76rem; margin-top: 0.35rem; }
.field-error.show { display: block; }
.field-invalid { border-color: var(--danger) !important; }

.chip-select { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-select input { position: absolute; opacity: 0; pointer-events: none; }
.chip-select label {
    margin: 0; font-weight: 500; font-size: 0.82rem; padding: 0.5rem 0.9rem; border-radius: 999px;
    background: var(--navy-800); border: 1px solid var(--border); color: var(--text-secondary); cursor: pointer; transition: 0.15s;
}
.chip-select input:checked + label { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-select label:hover { border-color: var(--accent-2); }

.toggle-row { display: flex; align-items: center; justify-content: space-between; background: var(--navy-800); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.7rem 0.9rem; margin-bottom: 0.9rem; }
.toggle-row span { font-size: 0.85rem; font-weight: 500; }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: var(--navy-600); border-radius: 999px; cursor: pointer; transition: 0.2s; }
.slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.2s; }
input:checked + .slider { background: var(--accent); }
input:checked + .slider::before { transform: translateX(18px); }

.submit-btn {
    width: 100%; background: linear-gradient(90deg, var(--accent), #7a5bff); color: #fff; border: none;
    padding: 0.95rem; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.98rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.4rem; transition: filter 0.15s, transform 0.1s;
}
.submit-btn:hover:not(:disabled) { filter: brightness(1.1); }
.submit-btn:active:not(:disabled) { transform: scale(0.99); }
.submit-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; display: none; }
.submit-btn.loading .spinner { display: inline-block; }
.submit-btn.loading .btn-label { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-note { font-size: 0.74rem; color: var(--text-muted); margin-top: 0.7rem; display: flex; gap: 0.4rem; align-items: flex-start; }

/* ---------------- Result panel ---------------- */
.result-card { min-height: 260px; display: flex; flex-direction: column; }
.result-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--text-muted); padding: 2rem 1rem; }
.result-empty svg { width: 48px; height: 48px; opacity: 0.35; margin-bottom: 0.9rem; }
.result-empty p { color: var(--text-muted); font-size: 0.88rem; max-width: 280px; }

.result-body { display: none; }
.result-body.active { display: block; }
.result-body.active + .result-empty { display: none; }

.result-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.9rem; }
.tool-btn {
    display: inline-flex; align-items: center; gap: 0.4rem; background: var(--navy-800); border: 1px solid var(--border);
    color: var(--text-secondary); padding: 0.5rem 0.8rem; border-radius: var(--radius-sm); font-size: 0.8rem; cursor: pointer; font-weight: 600;
}
.tool-btn:hover { border-color: var(--accent-2); color: var(--accent-2); }
.tool-btn svg { width: 15px; height: 15px; }
.tool-btn.copied { color: var(--success); border-color: var(--success); }

.output-box {
    background: var(--navy-800); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 1.1rem; font-size: 0.93rem; white-space: pre-wrap; line-height: 1.7; max-height: 460px; overflow-y: auto;
}

.result-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.badge-pill { font-size: 0.72rem; background: var(--navy-700); border: 1px solid var(--border); padding: 0.25rem 0.65rem; border-radius: 999px; color: var(--text-muted); }

.error-box {
    display: none; background: rgba(255,107,107,0.08); border: 1px solid rgba(255,107,107,0.3); color: #ffb0b0;
    padding: 0.9rem 1rem; border-radius: var(--radius-sm); font-size: 0.85rem; margin-top: 1rem;
}
.error-box.show { display: block; }

/* ---------------- Reference tools strip (before Features) ---------------- */
.ref-strip { padding: 2.2rem 0; }
.ref-strip-head { margin-bottom: 1rem; }
.ref-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.55rem; }
@media (min-width: 700px) { .ref-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1000px) { .ref-grid { grid-template-columns: repeat(5,1fr); } }
.ref-grid a { font-size: 0.78rem; background: var(--navy-900); border: 1px solid var(--border); padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); color: var(--text-secondary); }
.ref-grid a:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* ---------------- Section shell ---------------- */
.section { padding: 3.4rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.2rem; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 0.6rem; display: block; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.section-head p { margin-top: 0.7rem; }
.alt-bg { background: var(--navy-900); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

/* Features grid */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 640px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .features-grid { grid-template-columns: repeat(3,1fr); } }
.feature-card { background: var(--navy-900); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.4rem; }
.feature-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--navy-800); display: flex; align-items: center; justify-content: center; margin-bottom: 0.9rem; color: var(--accent-2); }
.feature-icon svg { width: 21px; height: 21px; }
.feature-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.86rem; margin: 0; }

/* How it works */
.steps { display: grid; grid-template-columns: 1fr; gap: 1.1rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4,1fr); } }
.step { position: relative; padding: 1.5rem 1.2rem 1.2rem; background: var(--navy-900); border: 1px solid var(--border); border-radius: var(--radius-md); }
.step-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--accent); opacity: 0.5; margin-bottom: 0.6rem; }
.step h3 { font-size: 0.98rem; margin-bottom: 0.35rem; }
.step p { font-size: 0.84rem; margin: 0; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.7rem; }
.faq-item { background: var(--navy-900); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text-primary); padding: 1.05rem 1.2rem; font-weight: 600; font-size: 0.94rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-q .caret { transition: transform 0.2s; }
.faq-item.open .faq-q .caret { transform: rotate(-135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner { padding: 0 1.2rem 1.1rem; font-size: 0.87rem; color: var(--text-secondary); }

/* Editorial content */
.editorial { max-width: 780px; margin: 0 auto; }
.editorial h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.editorial p { font-size: 0.95rem; }
.editorial h3 { font-size: 1.1rem; margin: 1.4rem 0 0.6rem; }

/* CTA */
.cta-section { padding: 3.5rem 0; }
.cta-box {
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.6rem 1.6rem; text-align: center; position: relative; overflow: hidden;
}
.cta-box h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.7rem; }
.cta-box p { max-width: 520px; margin: 0 auto 1.5rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.btn { padding: 0.8rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { border: 1px solid var(--border); color: var(--text-primary); background: var(--navy-900); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-outline:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* Share / Feedback row */
.action-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.action-row button, .action-row a.tool-btn { }

/* ---------------- Footer ---------------- */
footer { background: var(--navy-900); border-top: 1px solid var(--border-soft); padding-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.2rem; padding-bottom: 2.4rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; } }
.footer-brand p { font-size: 0.85rem; max-width: 280px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { font-size: 0.83rem; color: var(--text-secondary); }
.footer-col a:hover { color: var(--accent-2); }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { border-color: var(--accent-2); color: var(--accent-2); }
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom { border-top: 1px solid var(--border-soft); padding: 1.4rem 0; display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--text-muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-legal a:hover { color: var(--accent-2); }
.disclaimer { font-size: 0.72rem; color: var(--text-muted); padding: 1rem 0; border-top: 1px dashed var(--border-soft); max-width: 900px; }

/* ---------------- Cookie banner ---------------- */
.cookie-banner {
    position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 400; background: var(--navy-800);
    border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.1rem 1.3rem; box-shadow: var(--shadow-lg);
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; max-width: 760px; margin: 0 auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 0.83rem; color: var(--text-secondary); flex: 1; min-width: 220px; }
.cookie-banner a { color: var(--accent-2); }
.cookie-actions { display: flex; gap: 0.6rem; }
.cookie-actions button { padding: 0.55rem 1.05rem; border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 700; cursor: pointer; border: 1px solid var(--border); }
.cookie-accept { background: var(--accent); color: #fff; border-color: var(--accent); }
.cookie-dismiss { background: transparent; color: var(--text-secondary); }

/* ---------------- Toast ---------------- */
.toast {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 500;
    background: var(--navy-800); border: 1px solid var(--border); color: var(--text-primary); padding: 0.75rem 1.2rem;
    border-radius: 999px; font-size: 0.85rem; opacity: 0; pointer-events: none; transition: 0.25s; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Feedback modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(6,11,24,0.7); z-index: 450; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.active { display: flex; }
.modal-box { background: var(--navy-900); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; max-width: 420px; width: 100%; }
.modal-box h3 { margin-bottom: 0.6rem; }
.modal-box p { font-size: 0.88rem; }
.modal-close { float: right; background: none; border: none; color: var(--text-muted); font-size: 1.3rem; cursor: pointer; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
