/* =========================================================================
   iAssist Pro — style.css
   Independent iOS technical support. Mobile-first, no frameworks.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
    --brand:        #2563eb;
    --brand-dark:   #1d4ed8;
    --brand-darker: #1e40af;
    --brand-soft:   #eff4ff;
    --brand-soft-2: #dbe6ff;

    --ink:          #0f172a;
    --ink-2:        #334155;
    --muted:        #64748b;
    --line:         #e2e8f0;

    --bg:           #ffffff;
    --bg-soft:      #f5f7fa;
    --bg-soft-2:    #eef2f7;

    --success:      #16a34a;
    --warn:         #d97706;
    --danger:       #dc2626;

    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
    --shadow:    0 6px 24px rgba(15,23,42,.08);
    --shadow-lg: 0 18px 48px rgba(15,23,42,.14);

    --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
    --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
    --space-9: 88px;

    --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    --maxw: 1160px;
    --header-h: 68px;

    --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink-2);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--brand-darker); }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 var(--space-4); font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 var(--space-4); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--brand); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-5); }
.section { padding: var(--space-9) 0; }
.section-soft { background: var(--bg-soft); }
.section-brand { background: linear-gradient(160deg, var(--brand-darker), var(--brand)); color: #fff; }
.section-tight { padding: var(--space-7) 0; }
.narrow { max-width: 760px; margin-inline: auto; }

.section-head { max-width: 720px; margin: 0 auto var(--space-7); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.eyebrow {
    display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--brand-dark); background: var(--brand-soft);
    padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: var(--space-4);
}
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer;
    padding: 15px 26px; border-radius: var(--radius-pill); border: 2px solid transparent;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
    text-align: center; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-lg { padding: 17px 32px; font-size: 1.06rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--brand-dark); border-color: var(--brand-soft-2); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-darker); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--brand-darker); }
.btn-white:hover { background: var(--brand-soft); color: var(--brand-darker); transform: translateY(-2px); }
.btn-ghost-white { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-white:hover { background: rgba(255,255,255,.22); color: #fff; transform: translateY(-2px); }
.btn-block { display: flex; width: 100%; }

/* ---------- Disclaimer bar ---------- */
.disclaimer-bar {
    background: var(--ink); color: #cbd5e1; font-size: .82rem; text-align: center;
    padding: 8px 0; letter-spacing: .01em;
}
.disclaimer-bar strong { color: #fff; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { display: inline-flex; }
.brand-text { font-size: 1.28rem; letter-spacing: -.02em; color: var(--ink); }
.brand-accent { color: var(--brand); }

.primary-nav ul { display: flex; align-items: center; gap: var(--space-2); list-style: none; }
.primary-nav a:not(.btn) {
    display: inline-flex; align-items: center; padding: 10px 14px; border-radius: var(--radius-sm);
    font-weight: 600; color: var(--ink-2); font-size: .98rem;
}
.primary-nav a:not(.btn):hover, .primary-nav a:not(.btn)[aria-current="page"] { color: var(--brand-darker); background: var(--brand-soft); }
.nav-cta { margin-left: var(--space-2); }
.nav-cta .btn { color: #fff; }
.nav-cta .btn:hover { color: #fff; }

.has-dropdown { position: relative; }
.has-dropdown > a[aria-haspopup]::after {
    content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg); opacity: .6;
}
.dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow); padding: 8px; list-style: none;
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s var(--ease); z-index: 20;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { width: 100%; }

/* Drawer-only chrome — hidden on desktop, shown inside the mobile drawer */
.drawer-head, .nav-close, .submenu-toggle { display: none; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; background: none; border: 0;
    padding: 10px; cursor: pointer; border-radius: var(--radius-sm);
}
.nav-toggle-bar { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: var(--space-9) 0; overflow: hidden; background: radial-gradient(1100px 480px at 78% -8%, var(--brand-soft), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--space-8); align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700;
    color: var(--brand-dark); background: var(--brand-soft); padding: 7px 15px; border-radius: var(--radius-pill);
    margin-bottom: var(--space-5);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.hero h1 { margin-bottom: var(--space-5); }
.hero-lead { font-size: 1.18rem; color: var(--ink-2); max-width: 560px; margin-bottom: var(--space-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--space-5); color: var(--muted); font-size: .92rem; font-weight: 600; }
.hero-trust li { display: flex; align-items: center; gap: 8px; list-style: none; }
.hero-trust svg { color: var(--success); width: 18px; height: 18px; flex: none; }
.hero-visual { position: relative; }
.hero-art { width: 100%; height: auto; filter: drop-shadow(var(--shadow-lg)); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: var(--space-6); box-shadow: var(--shadow-sm);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-soft-2); }
.card h3 { margin-bottom: var(--space-2); }
.card p { color: var(--muted); margin-bottom: 0; font-size: .98rem; }

.card-icon {
    width: 54px; height: 54px; border-radius: var(--radius-sm); display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand-dark); margin-bottom: var(--space-4);
}
.card-icon svg { width: 28px; height: 28px; }

.service-card { display: block; }
.service-card .card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .95rem; margin-top: var(--space-4); color: var(--brand-dark); }
.service-card:hover .card-link { gap: 10px; }

/* Chips (services / problems list) */
.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--space-3); }
.chip {
    display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 600; color: var(--ink-2); font-size: .96rem;
    transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.chip:hover { border-color: var(--brand-soft-2); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.chip .chip-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; flex: none; }
.chip .chip-ico svg { width: 19px; height: 19px; }

/* Problem grid uses a subtle warning accent */
.problem-grid .chip .chip-ico { background: #fff4e6; color: var(--warn); }

/* ---------- Feature list (why choose / values) ---------- */
.feature { display: flex; gap: var(--space-4); }
.feature .feature-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; flex: none; }
.feature .feature-ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 4px; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- Steps (how it works) ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: var(--space-6); }
.step .step-num {
    width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff;
    font-weight: 800; display: grid; place-items: center; margin-bottom: var(--space-4); font-size: 1.15rem;
    box-shadow: 0 6px 16px rgba(37,99,235,.35);
}
.step h3 { font-size: 1.14rem; }
.step p { color: var(--muted); margin: 0; font-size: .97rem; }
.steps.grid-4 .step:not(:last-child)::after {
    content: ""; position: absolute; top: calc(var(--space-6) + 23px); left: 58px; right: -12px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--brand-soft-2) 0 8px, transparent 8px 16px);
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); text-align: center; }
.stat .stat-num { font-size: 2.4rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.stat .stat-label { color: rgba(255,255,255,.82); font-size: .95rem; font-weight: 600; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: var(--space-3); overflow: hidden; }
.faq-q {
    width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
    padding: 20px 22px; font-size: 1.04rem; font-weight: 700; color: var(--ink);
    display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: inherit;
}
.faq-q .faq-icon { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; transition: transform .25s var(--ease), background .2s; }
.faq-q .faq-icon svg { width: 16px; height: 16px; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a-inner { padding: 0 22px 20px; color: var(--muted); }
.faq-a-inner p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 620px; margin: 0 auto var(--space-6); }
.cta-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: linear-gradient(160deg, var(--brand-darker), var(--brand)); color: #fff; padding: var(--space-8) 0 var(--space-9); }
.page-hero h1 { color: #fff; margin-bottom: var(--space-4); }
.page-hero p { color: rgba(255,255,255,.9); font-size: 1.12rem; max-width: 640px; margin: 0; }
.breadcrumb { margin-bottom: var(--space-5); font-size: .9rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; align-items: center; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 8px; color: rgba(255,255,255,.6); }
.breadcrumb [aria-current="page"] { color: #fff; font-weight: 600; }

/* ---------- Content / prose (support + legal) ---------- */
.prose { max-width: 820px; }
.prose h2 { margin-top: var(--space-7); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--space-5); }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 var(--space-4); }
.prose li { margin-bottom: 8px; }
.prose ul.check { list-style: none; padding-left: 0; }
.prose ul.check li { position: relative; padding-left: 32px; }
.prose ul.check li::before {
    content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232563eb'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/13px no-repeat;
}
.legal-updated { color: var(--muted); font-size: .95rem; margin-bottom: var(--space-6); }

/* Two-column layout with sticky sidebar (support pages) */
.layout-2col { display: grid; grid-template-columns: 1fr 300px; gap: var(--space-8); align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.sidebar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow-sm); margin-bottom: var(--space-5); }
.sidebar-card h3 { font-size: 1.05rem; }
.toc { list-style: none; }
.toc li { margin-bottom: 2px; }
.toc a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: .94rem; }
.toc a:hover { background: var(--brand-soft); color: var(--brand-darker); }

.topic-block { border-top: 1px solid var(--line); padding-top: var(--space-6); margin-top: var(--space-6); }
.topic-block:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.topic-block h2 { display: flex; align-items: center; gap: 12px; }
.topic-block h2 .t-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; flex: none; }
.topic-block h2 .t-ico svg { width: 23px; height: 23px; }

.callout { background: var(--brand-soft); border: 1px solid var(--brand-soft-2); border-radius: var(--radius); padding: var(--space-5); margin: var(--space-5) 0; }
.callout p:last-child { margin-bottom: 0; }
.callout-warn { background: #fff8ef; border-color: #fde3c0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-7); box-shadow: var(--shadow); }
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.field label .req { color: var(--danger); }
.field input, .field textarea, .field select {
    width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field textarea { resize: vertical; min-height: 140px; }
.field .error-text { color: var(--danger); font-size: .85rem; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .error-text { display: block; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: var(--space-3); }
.form-success { display: none; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: var(--space-5); font-weight: 600; }
.form-success.show { display: block; }

.info-list { list-style: none; display: grid; gap: var(--space-4); }
.info-list li { display: flex; gap: var(--space-4); align-items: flex-start; }
.info-list .info-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; flex: none; }
.info-list .info-ico svg { width: 23px; height: 23px; }
.info-list h3 { font-size: 1.05rem; margin-bottom: 2px; }
.info-list p, .info-list a { margin: 0; color: var(--muted); }
.info-list a:hover { color: var(--brand-dark); }

.map-placeholder {
    margin-top: var(--space-5); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(37,99,235,.06), rgba(37,99,235,.02)),
        repeating-linear-gradient(0deg, var(--bg-soft) 0 39px, var(--line) 39px 40px),
        repeating-linear-gradient(90deg, var(--bg-soft) 0 39px, var(--line) 39px 40px);
    height: 260px; display: grid; place-items: center; text-align: center; color: var(--muted); position: relative;
}
.map-placeholder .map-pin { color: var(--brand); }
.map-placeholder .map-pin svg { width: 40px; height: 40px; margin: 0 auto 8px; }

/* ---------- About specifics ---------- */
.mv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.mv-card .card-icon { margin-bottom: var(--space-4); }
.about-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }

/* ---------- Footer ---------- */
.site-footer { background: #0b1220; color: #94a3b8; padding-top: var(--space-8); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: var(--space-6); padding-bottom: var(--space-7); }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: var(--space-4); letter-spacing: .01em; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: #94a3b8; }
.footer-col a:hover { color: #fff; }
.footer-about p { color: #94a3b8; margin: var(--space-4) 0; max-width: 340px; }
.brand-footer .brand-text { color: #fff; }
.social-icons { display: flex; gap: 10px; }
.social-icons a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); color: #cbd5e1; display: grid; place-items: center; }
.social-icons a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.footer-contact { gap: 12px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { color: var(--brand); flex: none; margin-top: 3px; }
.footer-hours { color: #64748b; font-size: .88rem; }

.footer-disclaimer { border-top: 1px solid rgba(255,255,255,.08); padding: var(--space-5) 0; }
.footer-disclaimer p { color: #64748b; font-size: .84rem; margin: 0; max-width: 900px; }
.footer-disclaimer strong { color: #cbd5e1; font-weight: 600; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: var(--space-4) 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
.footer-bottom p { margin: 0; font-size: .86rem; color: #64748b; }
.footer-bottom-links a { color: #94a3b8; margin-left: var(--space-4); }
.footer-bottom-links a:hover { color: #fff; }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
    background: var(--brand); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center;
    box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .25s var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brand-dark); transform: translateY(-2px); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: var(--space-6); }
    .hero-visual { order: -1; max-width: 460px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; gap: var(--space-6); }
    .layout-2col { grid-template-columns: 1fr; }
    .sidebar { position: static; display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .steps.grid-4 .step::after { display: none; }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }

    /* A backdrop-filter on the header would trap position:fixed descendants
       (making the header their containing block). Drop it on mobile so the
       drawer anchors to the viewport, not the 68px header. */
    .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }

    /* Off-canvas drawer */
    .primary-nav {
        position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
        background: #fff; display: flex; flex-direction: column; padding: 0;
        transform: translateX(100%); transition: transform .3s var(--ease);
        box-shadow: var(--shadow-lg); z-index: 200; overscroll-behavior: contain;
    }
    .primary-nav.open { transform: translateX(0); }

    /* Drawer header: brand + close */
    .drawer-head {
        display: flex; align-items: center; justify-content: space-between;
        padding: 16px 18px; border-bottom: 1px solid var(--line); flex: none;
    }
    .drawer-head .brand-text { font-size: 1.18rem; }
    .nav-close {
        display: grid; place-items: center; width: 42px; height: 42px; border: 0; cursor: pointer;
        background: var(--bg-soft); color: var(--ink); border-radius: 12px; transition: background .18s var(--ease), color .18s var(--ease);
    }
    .nav-close:hover { background: var(--brand-soft); color: var(--brand-dark); }

    /* Scrollable link list */
    .primary-nav ul {
        flex-direction: column; align-items: stretch; gap: 2px;
        padding: 12px; overflow-y: auto; flex: 1 1 auto;
        scrollbar-width: none; /* Firefox */
    }
    .primary-nav ul::-webkit-scrollbar { display: none; } /* WebKit */
    .primary-nav a:not(.btn) {
        width: 100%; padding: 14px 16px; border-radius: 12px; font-size: 1.03rem; color: var(--ink);
    }

    /* Support Topics: row with expand toggle + collapsible submenu */
    .has-dropdown { display: flex; flex-wrap: wrap; align-items: center; }
    .primary-nav .has-dropdown > a { flex: 1 1 auto; width: auto; }
    .has-dropdown > a[aria-haspopup]::after { display: none; }
    .submenu-toggle {
        display: grid; place-items: center; width: 44px; height: 44px; flex: none;
        background: none; border: 0; cursor: pointer; color: var(--muted); border-radius: 12px;
    }
    .submenu-toggle:hover { background: var(--bg-soft); color: var(--brand-dark); }
    .submenu-toggle svg { transition: transform .25s var(--ease); }
    .has-dropdown.open .submenu-toggle { color: var(--brand-dark); }
    .has-dropdown.open .submenu-toggle svg { transform: rotate(180deg); }

    .dropdown {
        position: static; flex-basis: 100%; width: 100%; min-width: 0;
        opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
        padding: 0 0 0 8px; margin: 0; background: transparent;
        max-height: 0; overflow: hidden; transition: max-height .3s var(--ease);
    }
    .has-dropdown.open .dropdown { max-height: 360px; }
    .dropdown a { padding: 12px 16px; font-size: .98rem; color: var(--muted); border-radius: 10px; }
    .dropdown a:hover { color: var(--brand-dark); background: var(--brand-soft); }

    /* CTA pinned to the bottom of the drawer */
    .nav-cta { margin-top: auto; padding: 16px 12px 22px; border-top: 1px solid var(--line); }
    .nav-cta .btn { width: 100%; padding: 15px 18px; font-size: 1.02rem; }

    body.nav-open { overflow: hidden; }
    /* The drawer is trapped inside .site-header's stacking context (sticky,
       z-index:100), so the backdrop MUST sit below 100 — otherwise it paints
       over the drawer and greys it out. */
    .nav-backdrop {
        position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 90;
        opacity: 0; visibility: hidden; transition: opacity .25s var(--ease);
        -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    }
    .nav-backdrop.show { opacity: 1; visibility: visible; }
}

@media (max-width: 720px) {
    :root { --space-9: 60px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .footer-bottom-links a { margin: 0 var(--space-3); }
}

@media (max-width: 460px) {
    body { font-size: 16px; }
    .container { padding: 0 var(--space-4); }
    .hero-actions .btn, .cta-actions .btn { width: 100%; }
    .stats { grid-template-columns: 1fr; }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
@media print {
    .site-header, .disclaimer-bar, .back-to-top, .nav-toggle, .cta-band, .hero-actions { display: none !important; }
    body { color: #000; }
    a { color: #000; text-decoration: underline; }
}
