/* ============================================================
   CalcTap — Design System v2
   Modern, clean, professional overrides
   Loaded AFTER tools.css to enhance without breaking
   ============================================================ */

/* ── 1. Design Tokens ──────────────────────────────────── */
:root {
    /* Brand */
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --brand-extralight: #eff6ff;
    --brand-light: #dbeafe;
    --brand-mid: #3b82f6;

    /* CTA (indigo) */
    --cta: #4f46e5;
    --cta-dark: #4338ca;
    --cta-light: #e0e7ff;

    /* Neutrals */
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    /* Glass / input */
    --glass-bg: #ffffff;
    --glass-border: #e2e8f0;
    --input-bg: #f8fafc;

    /* Text */
    --text-heading: #0f172a;
    --text-main: #0f172a;
    --text-body: #1e293b;
    --text-muted: #64748b;
    --text-faint: #94a3b8;

    /* Semantic */
    --success: #059669;
    --warning: #d97706;
    --error: #dc2626;

    /* Gradients */
    --grad-brand: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    --grad-page: linear-gradient(160deg, #f8fafc 0%, #eff6ff 55%, #eef2ff 100%);
    --bg-gradient: linear-gradient(
        160deg,
        #f8fafc 0%,
        #eff6ff 55%,
        #eef2ff 100%
    );
    --grad-subtle: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
    --accent-grad: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    --accent-grad-hover: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);

    /* Shadows */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm:
        0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-md:
        0 10px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg:
        0 24px 48px -12px rgba(0, 0, 0, 0.12),
        0 8px 16px -4px rgba(0, 0, 0, 0.06);
    --shadow-brand: 0 8px 24px -6px rgba(37, 99, 235, 0.35);

    /* Radii */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --r-2xl: 24px;
    --r-pill: 999px;

    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;

    /* Typography */
    --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", "Fira Code", monospace;

    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* ── 2. Base & Typography ──────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    height: 100%;
    margin: 0;
    font-family: var(--font-sans);
    background: var(--grad-page);
    color: var(--text-body);
    line-height: 1.65;
    font-size: 16px;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-sans);
    color: var(--text-heading);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0;
}

h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.03em;
}
h2 {
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 700;
}
h3 {
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 600;
}
h4 {
    font-size: 16px;
    font-weight: 600;
}

p {
    margin: 0 0 1em;
    color: var(--text-body);
    line-height: 1.72;
}
p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--brand);
    transition: color 0.15s;
}
a:hover {
    color: var(--brand-dark);
}

ul,
ol {
    padding-left: 1.4em;
}
li {
    line-height: 1.8;
    margin-bottom: 4px;
}

strong {
    font-weight: 600;
    color: var(--text-heading);
}

/* ── 3. Site Header ─────────────────────────────────────── */
header,
header.site-header {
    height: 76px;
}
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    transition:
        box-shadow 0.2s,
        background 0.2s;
}
.site-header.scrolled {
    box-shadow: 0 2px 16px -4px rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.97);
}

/* Nav links */
.desktop-nav ul li a,
.nav-dropdown-trigger {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--r-md);
    padding: 7px 13px;
    transition:
        background 0.15s,
        color 0.15s;
}
.desktop-nav ul li a:hover,
.nav-dropdown-trigger:hover {
    background: var(--brand-extralight);
    color: var(--brand);
}
.desktop-nav ul li a.active,
.nav-dropdown-trigger.active {
    color: var(--brand);
    font-weight: 600;
    background: var(--brand-extralight);
}

/* CTA button in header */
.header-cta {
    background: var(--brand);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: var(--r-md);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition:
        background 0.15s,
        box-shadow 0.15s,
        transform 0.15s;
    box-shadow: 0 2px 8px -2px rgba(37, 99, 235, 0.4);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.header-cta:hover {
    background: var(--brand-dark);
    box-shadow: var(--shadow-brand);
    transform: translateY(-1px);
}

/* ── 4. Buttons ─────────────────────────────────────────── */
.calculate-btn {
    background: var(--grad-brand);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 16px -4px rgba(79, 70, 229, 0.45);
    border-radius: var(--r-md);
    border: none;
    transition:
        opacity 0.15s,
        transform 0.15s,
        box-shadow 0.15s;
    position: relative;
    overflow: hidden;
}
.calculate-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.15s;
}
.calculate-btn:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(79, 70, 229, 0.55);
}
.calculate-btn:hover::after {
    background: rgba(255, 255, 255, 0.06);
}
.calculate-btn:active {
    transform: translateY(0);
}

.clear-btn {
    background: var(--surface);
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-weight: 500;
    transition:
        background 0.15s,
        border-color 0.15s,
        color 0.15s,
        transform 0.15s;
}
.clear-btn:hover {
    background: var(--surface-2);
    border-color: #cbd5e1;
    color: var(--text-heading);
    transform: translateY(-1px);
}

/* Hero buttons */
.hero-btn-primary {
    background: var(--grad-brand);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--r-md);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 3px 14px -4px rgba(79, 70, 229, 0.4);
    transition:
        transform 0.15s,
        box-shadow 0.15s;
}
.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px -5px rgba(79, 70, 229, 0.5);
    color: #fff;
}

.hero-btn-secondary {
    background: var(--surface);
    color: var(--text-heading);
    padding: 10px 20px;
    border-radius: var(--r-md);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1.5px solid var(--border);
    transition:
        background 0.15s,
        border-color 0.15s,
        transform 0.15s;
}
.hero-btn-secondary:hover {
    background: var(--surface-2);
    border-color: #cbd5e1;
    transform: translateY(-1px);
    color: var(--text-heading);
}

/* ── 5. Tool Cards ──────────────────────────────────────── */
.tool-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 22px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition:
        transform 0.2s var(--ease),
        box-shadow 0.2s var(--ease),
        border-color 0.2s;
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
}
.tool-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad-subtle);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.2);
}
.tool-card:hover::before {
    opacity: 1;
}

.tool-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.35;
    margin: 0;
}
.tool-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}
.tool-card-kicker {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-faint);
    background: var(--surface-2);
    padding: 3px 8px;
    border-radius: var(--r-pill);
}
.tool-card-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand);
    background: var(--brand-extralight);
    padding: 3px 8px;
    border-radius: var(--r-pill);
}
.tool-card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.15s;
}
.tool-card:hover .tool-card-link {
    gap: 8px;
}

/* Featured card */
.tool-card--featured {
    background: linear-gradient(135deg, #fff 0%, #f8faff 100%);
    border-color: rgba(37, 99, 235, 0.12);
    box-shadow: 0 2px 12px -4px rgba(37, 99, 235, 0.1);
}
.tool-card--featured:hover {
    box-shadow: 0 12px 32px -8px rgba(37, 99, 235, 0.18);
    border-color: rgba(37, 99, 235, 0.25);
}

/* ── 6. Main Calculator Container ───────────────────────── */
.container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-2xl);
    box-shadow: var(--shadow-sm);
    padding: 36px 32px;
    max-width: 1240px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    animation: slideUp 0.5s var(--ease) both;
}
.container h1 {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    margin: 0 0 28px;
    text-align: center;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 20px;
}
.container h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: var(--grad-brand);
    border-radius: var(--r-pill);
}

/* ── 7. Form Elements ───────────────────────────────────── */
label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: block;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select {
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--text-heading);
    padding: 11px 14px;
    min-height: 48px;
    transition:
        border-color 0.15s,
        box-shadow 0.15s,
        background 0.15s;
}
input:focus,
select:focus {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}
input::placeholder {
    color: var(--text-faint);
}

/* ── 8. Result Sections ─────────────────────────────────── */
.result-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-subtle);
    border: 1.5px solid rgba(37, 99, 235, 0.1);
    border-radius: var(--r-xl);
    min-height: 160px;
    padding: 24px;
    text-align: center;
}
.result-placeholder {
    font-size: 14px;
    color: var(--text-faint);
    font-style: italic;
}

/* ── 9. Info Cards (tool page content) ──────────────────── */
.info-section {
    width: 100%;
    max-width: 1240px;
    margin: 24px auto 0;
    padding: 0 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 28px 32px;
    box-shadow: var(--shadow-xs);
}
.info-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    letter-spacing: -0.01em;
}
.info-card p {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.75;
}
.info-card ul,
.info-card ol {
    margin: 10px 0;
    padding-left: 1.4em;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.info-card li {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.7;
}

/* Example box */
.example-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand);
    border-radius: var(--r-md);
    padding: 18px 20px;
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--text-body);
    font-family: var(--font-mono), var(--font-sans);
    margin: 16px 0;
}

/* FAQ items */
.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: 4px 0;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-heading);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    text-align: left;
    min-height: auto;
    border-radius: 0;
    transition: color 0.15s;
}
.faq-question:hover {
    color: var(--brand);
}
.faq-icon {
    font-size: 20px;
    font-weight: 400;
    color: var(--brand);
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s var(--ease);
}
.faq-answer {
    display: none;
    font-size: 14.5px;
    color: var(--text-body);
    line-height: 1.75;
    padding: 0 0 14px;
}
.faq-answer.open {
    display: block;
}

/* FAQ CTA card */
.faq-cta-card {
    background: var(--grad-subtle);
    border-color: rgba(37, 99, 235, 0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-muted);
}
.faq-cta-card svg {
    color: var(--brand);
    flex-shrink: 0;
}
.faq-cta-card a {
    margin-left: auto;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.faq-cta-card a:hover {
    text-decoration: underline;
}

/* ── 10. Page Banner (static pages) ─────────────────────── */
.page-banner {
    width: 100%;
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 60%, #f0f9ff 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    padding: 52px 24px 44px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-banner::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grad-brand);
    opacity: 0.35;
}
.page-banner-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}
.page-banner-icon {
    width: 60px;
    height: 60px;
    background: var(--grad-brand);
    border-radius: var(--r-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.4);
    margin-bottom: 4px;
    flex-shrink: 0;
}
.page-banner h1 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.03em;
    margin: 0;
}
.page-banner p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Page content wrapper */
.page-content {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 36px 18px 64px;
}

/* Policy grid */
.policy-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.policy-section {
    display: flex;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: flex-start;
}
.policy-section:last-child {
    border-bottom: none;
}
.policy-num {
    width: 32px;
    height: 32px;
    background: var(--grad-brand);
    color: #fff;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}
.policy-body h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-heading);
}
.policy-body p {
    font-size: 14.5px;
    margin: 0 0 8px;
}

/* ── 11. Section Headings ───────────────────────────────── */
.eyebrow-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(239, 246, 255, 0.92);
    border: 1px solid rgba(37, 99, 235, 0.12);
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.section-heading {
    margin-bottom: 28px;
}
.section-heading h2 {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    margin: 6px 0 8px;
    letter-spacing: -0.02em;
}
.section-heading p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.65;
    margin: 0;
}
.section-heading--between {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}
.section-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: var(--r-pill);
    white-space: nowrap;
    align-self: flex-start;
}

/* ── 12. Tools Section Layout ───────────────────────────── */
.tools-section {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 18px 40px;
}
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.tools-grid--featured {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

/* ── 13. Hero (home page) ───────────────────────────────── */
.hero-shell {
    width: 100%;
    padding: 32px 18px 0;
}
.hero-panel {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
    gap: 28px;
    align-items: stretch;
    padding: 42px 34px 28px;
    border-radius: 30px;
    background:
        radial-gradient(
            circle at top right,
            rgba(14, 165, 233, 0.12),
            transparent 28%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(99, 102, 241, 0.12),
            transparent 30%
        ),
        rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.82);
    box-shadow: 0 18px 45px -24px rgba(37, 99, 235, 0.22);
    overflow: hidden;
}
.hero-copy {
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
}

.hero-copy .hero-badge {
    margin-bottom: 18px;
}

.hero-copy h1 {
    max-width: none;
    font-size: clamp(2.05rem, 4vw, 3.12rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.06;
    margin: 0 0 18px;
    color: #0f172a;
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-heading-line {
    display: block;
    white-space: nowrap;
}

.hero-heading-accent {
    color: #4f46e5;
    text-shadow: 0 10px 24px rgba(79, 70, 229, 0.12);
}

.hero-copy > p {
    max-width: 540px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 24px;
}

/* Hero trust perks — pushed to bottom via margin-top: auto */
.hero-perks {
    margin-top: 18px;
    padding-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    border-top: 1px solid rgba(226, 232, 240, 0.7);
}

.hero-perk {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
}

.hero-perk__icon {
    width: 15px;
    height: 15px;
    color: #22c55e;
    flex-shrink: 0;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.95),
        rgba(240, 244, 255, 0.96)
    );
    border: 1px solid rgba(224, 231, 255, 0.95);
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px -18px rgba(79, 70, 229, 0.45);
    margin-bottom: 18px;
}

.hero-copy-art {
    position: absolute;
    right: 6px;
    top: 118px;
    width: 128px;
    height: 168px;
    pointer-events: none;
    opacity: 0.58;
}

.hero-copy-art__dot {
    position: absolute;
    border-radius: 999px;
    background: rgba(191, 219, 254, 0.32);
}

.hero-copy-art__dot--one {
    width: 26px;
    height: 26px;
    top: 10px;
    right: 18px;
}

.hero-copy-art__dot--two {
    width: 14px;
    height: 14px;
    right: 0;
    bottom: 48px;
}

.hero-copy-art__plus {
    position: absolute;
    color: rgba(148, 163, 184, 0.55);
    font-size: 28px;
    line-height: 1;
    font-weight: 300;
}

.hero-copy-art__plus--one {
    top: 42px;
    right: 100px;
}

.hero-copy-art__plus--two {
    right: 20px;
    bottom: 72px;
}

.hero-copy-art__card {
    position: absolute;
    left: 18px;
    top: 70px;
    width: 92px;
    height: 118px;
    padding: 14px 12px;
    border-radius: 20px;
    background: linear-gradient(
        180deg,
        rgba(234, 242, 255, 0.95),
        rgba(219, 234, 254, 0.75)
    );
    border: 1px solid rgba(191, 219, 254, 0.95);
    box-shadow: 0 20px 28px -18px rgba(37, 99, 235, 0.35);
    transform: rotate(20deg);
}

.hero-copy-art__screen {
    height: 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.hero-copy-art__keys {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.hero-copy-art__keys span {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
}

.hero-copy-art__keys .hero-copy-art__key-wide {
    grid-column: span 2;
}

/* ── 14. Breadcrumbs ───────────────────────────────────── */
.breadcrumbs-wrap {
    width: 100%;
    max-width: 1240px;
    margin: 12px auto 0;
    padding: 0 18px;
}
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12.5px;
}
.breadcrumbs a {
    color: var(--text-faint);
    text-decoration: none;
    transition: color 0.15s;
}
.breadcrumbs a:hover {
    color: var(--brand);
}
.breadcrumbs .bc-sep {
    color: var(--border);
}
.breadcrumbs .bc-current {
    color: var(--text-muted);
    font-weight: 500;
}

/* ── 15. Related Tools ──────────────────────────────────── */
.related-tools-section {
    width: 100%;
    max-width: 1240px;
    margin: 24px auto 0;
    padding: 28px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xs);
}
.related-tools-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-heading);
}
.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.related-tool-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px;
    text-decoration: none;
    transition:
        background 0.15s,
        border-color 0.15s,
        transform 0.15s;
}
.related-tool-card:hover {
    background: var(--brand-extralight);
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}
.related-tool-card strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 4px;
}
.related-tool-card span {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── 16. Blog cards ─────────────────────────────────────── */
.blog-card {
    border-radius: var(--r-xl) !important;
    overflow: hidden;
    transition:
        transform 0.2s var(--ease),
        box-shadow 0.2s var(--ease),
        border-color 0.2s;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.18);
}

/* ── 17. Footer ─────────────────────────────────────────── */
footer {
    background: #0f172a;
    padding: 60px 48px 32px;
    margin-top: 0;
    border-top: none;
}
.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px 28px;
    padding-bottom: 40px;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer-brand .site-logo {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}
.footer-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-brand-copy p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    max-width: 300px;
    margin: 0;
}
.footer-brand-copy a[href^="mailto"] {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-brand-copy a[href^="mailto"]:hover {
    color: #bfdbfe;
}
.footer-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    padding: 7px 14px;
    background: rgba(10, 102, 194, 0.2);
    color: #fff !important;
    border: 1px solid rgba(10, 102, 194, 0.35);
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s;
    width: fit-content;
}
.footer-linkedin:hover {
    background: rgba(10, 102, 194, 0.35) !important;
    color: #bfdbfe !important;
}
.footer-column h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #e2e8f0;
    margin: 0 0 16px;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-column ul li a {
    color: #64748b;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    display: block;
    transition: color 0.15s;
    line-height: 1.4;
}
.footer-column ul li a:hover {
    color: #cbd5e1;
}
.footer-bottom {
    max-width: 1240px;
    margin: 24px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #475569;
}
.footer-bottom p {
    color: #475569;
    margin: 0;
}
.footer-bottom strong {
    color: #64748b;
    font-weight: 500;
}
.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.footer-legal-links a {
    color: #475569;
    text-decoration: none;
    transition: color 0.15s;
    font-size: 13px;
}
.footer-legal-links a:hover {
    color: #94a3b8;
}
.footer-legal-links span {
    color: #334155;
}

/* ── 18. Newsletter Strip ───────────────────────────────── */
.newsletter-strip {
    background: var(--grad-brand);
    padding: 52px 48px;
}
.newsletter-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}
.newsletter-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 8px !important;
}
.newsletter-copy {
    flex: 1;
    min-width: 220px;
}
.newsletter-copy h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}
.newsletter-copy p {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}
.newsletter-form {
    flex: 1;
    min-width: 300px;
    max-width: 440px;
}
.newsletter-fields {
    display: flex;
    gap: 8px;
}
.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid #fff;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    transition:
        border-color 0.15s,
        background 0.15s;
}
.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
.newsletter-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}
.newsletter-btn {
    padding: 12px 22px;
    background: #fff;
    color: #1d4ed8;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition:
        background 0.15s,
        transform 0.15s;
    min-height: auto;
}
.newsletter-btn:hover {
    background: #eff6ff;
    transform: translateY(-1px);
}
.newsletter-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 8px 0 0 !important;
}
.newsletter-note a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: underline;
}

/* ── 19. Scroll-to-top button ───────────────────────────── */
.scroll-top-btn {
    background: var(--grad-brand);
    border-radius: var(--r-md);
    box-shadow: 0 4px 16px -4px rgba(37, 99, 235, 0.5);
    width: 42px;
    height: 42px;
    transition:
        transform 0.2s var(--ease),
        box-shadow 0.2s,
        opacity 0.25s;
}
.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}
.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.6);
}

/* ── 20. Ad Slots ───────────────────────────────────────── */
.content-band {
    width: 100%;
    max-width: 1240px;
    margin: 8px auto 32px;
    padding: 0 18px;
}
.ad-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 100px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 12px 20px;
    text-align: center;
}
.ad-slot-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #94a3b8;
    line-height: 1;
}
.ad-slot-box {
    display: none;
}

/* ── 21. About / Contact stat cards ─────────────────────── */
.about-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 22px;
    text-align: center;
    box-shadow: var(--shadow-xs);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.about-stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ── 22. Hero stats (home) ──────────────────────────────── */
.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.hero-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 20px;
    box-shadow: var(--shadow-xs);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.hero-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.hero-stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 4px;
    display: block;
}
.hero-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── 23. Content review note ────────────────────────────── */
.content-review-note {
    background: var(--surface-2) !important;
    border: 1px solid var(--border) !important;
    border-left: 3px solid var(--success) !important;
    border-radius: var(--r-lg) !important;
}

/* ── 24. Page main layout ───────────────────────────────── */
main {
    gap: 20px;
}
/* Tool pages (use-case containers) */
main.main-content,
main.main-home {
    padding: 0;
    align-items: stretch;
}
/* Generic inner pages that still need centred flex */
main:not(.main-content):not(.main-home) {
    padding: 40px 24px 64px;
}

/* ── 25. Nav Dropdown (compact calculator menu) ─────────── */
.nav-dropdown--compact {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    background: #fff;
    border: 1px solid var(--glass-border, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.13);
    padding: 20px;
    width: 580px;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(-6px);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s;
}
.has-dropdown:hover .nav-dropdown--compact,
.has-dropdown:focus-within .nav-dropdown--compact {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.ndc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 8px;
}
.ndc-col {
    display: flex;
    flex-direction: column;
}
.ndc-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted, #64748b);
    padding: 0 8px 6px;
    margin: 0 0 4px;
    border-bottom: 1px solid var(--glass-border, #e2e8f0);
}
.ndc-link {
    display: block;
    padding: 7px 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-main, #0f172a);
    text-decoration: none;
    border-radius: 8px;
    transition:
        background 0.12s,
        color 0.12s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ndc-link:hover {
    background: var(--brand-extralight, #eff6ff);
    color: var(--brand, #2563eb);
}
.ndc-link--active {
    color: var(--brand, #2563eb);
    font-weight: 600;
}
.ndc-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--glass-border, #e2e8f0);
    text-align: center;
}
.ndc-all-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand, #2563eb);
    text-decoration: none;
    transition: color 0.15s;
}
.ndc-all-link:hover {
    color: var(--brand-dark, #1d4ed8);
    text-decoration: underline;
}

/* ── 26. Hero Search — clean field ──────────────────────── */
.hero-search {
    max-width: 570px;
    margin: 0 0 24px;
}

.hero-copy .hero-actions {
    margin: 0;
    justify-content: flex-start;
    gap: 14px;
}

.hero-copy .hero-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-copy .hero-actions a svg {
    width: 16px;
    height: 16px;
}

.hero-search__wrap {
    position: relative;
}

.hero-search__field {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 18px 0 52px;
    background: #fff;
    border: 1.5px solid rgba(201, 214, 232, 0.95);
    border-radius: 14px;
    box-shadow: none;
    transition:
        border-color 0.18s,
        box-shadow 0.18s;
}

.hero-search__field:focus-within {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.07);
}

.hero-search__icon-shell {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    flex-shrink: 0;
}

.hero-search__icon {
    width: 18px;
    height: 18px;
    color: #7487a6;
}

.hero-search__input {
    flex: 1;
    width: 100%;
    border: none !important;
    outline: none;
    background: transparent !important;
    font-size: 15px;
    font-family: inherit;
    color: #64748b;
    padding: 13px 12px 13px 0;
    min-width: 0;
    border-radius: 0;
    box-shadow: none !important;
}

.hero-search__input::placeholder {
    color: #6b84a6;
    opacity: 1;
}

.hero-search__quick {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 14px;
}

.hero-search__quick-label {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-search__quick-list {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-search-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(217, 226, 237, 0.95);
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 24px -24px rgba(15, 23, 42, 0.3);
    cursor: pointer;
    transition:
        border-color 0.15s,
        box-shadow 0.15s,
        transform 0.15s;
}

.hero-search-tag__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    color: #64748b;
    font-size: 11px;
    line-height: 1;
    border: 1px solid rgba(226, 232, 240, 0.92);
}

.hero-search-tag__icon svg {
    width: 12px;
    height: 12px;
}

.hero-search-tag:hover {
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 14px 28px -24px rgba(37, 99, 235, 0.26);
    transform: translateY(-1px);
}

.home-category-strip {
    max-width: 1240px;
    margin: 18px auto 0;
    padding: 0 18px 22px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
}

.home-category-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 20px 22px;
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    border-right: 1px solid rgba(226, 232, 240, 0.85);
    text-decoration: none;
    transition:
        background 0.18s,
        transform 0.18s,
        box-shadow 0.18s;
    box-shadow: 0 16px 32px -30px rgba(15, 23, 42, 0.3);
}

.home-category-card:first-child {
    border-left: 1px solid rgba(226, 232, 240, 0.85);
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.home-category-card:last-child {
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
}

.home-category-card:hover {
    background: #fff;
    transform: translateY(-1px);
}

.home-category-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    flex-shrink: 0;
}

.home-category-card__icon svg {
    width: 24px;
    height: 24px;
}

.home-category-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
}

.home-category-card__body strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.home-category-card__body span {
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--text-muted);
}

.home-category-card--blue .home-category-card__icon {
    background: rgba(239, 246, 255, 0.98);
    color: #2563eb;
}

.home-category-card--green .home-category-card__icon {
    background: rgba(236, 253, 245, 0.98);
    color: #16a34a;
}

.home-category-card--pink .home-category-card__icon {
    background: rgba(253, 242, 248, 0.98);
    color: #ec4899;
}

.home-category-card--violet .home-category-card__icon {
    background: rgba(245, 243, 255, 0.98);
    color: #7c3aed;
}

.home-category-card--all .home-category-card__icon {
    background: rgba(239, 246, 255, 0.98);
    color: #2563eb;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hero-stat-card,
.hero-preview-card {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 14px 28px -24px rgba(15, 23, 42, 0.26);
}

.hero-stat-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.hero-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    flex-shrink: 0;
}

.hero-stat-icon svg {
    width: 22px;
    height: 22px;
}

.hero-stat-card--blue .hero-stat-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.hero-stat-card--green .hero-stat-icon {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.hero-stat-card--amber .hero-stat-icon {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.hero-stat-card--violet .hero-stat-icon {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.hero-stat-value {
    display: block;
    margin-bottom: 4px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    color: var(--text-main);
}

.hero-stat-label {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    color: var(--text-main);
}

.hero-stat-meta {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
}

.hero-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.hero-preview-head a {
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.hero-preview-list {
    display: grid;
    gap: 10px;
}

.hero-preview-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.9);
    text-decoration: none;
}

.hero-preview-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(239, 246, 255, 0.95);
    color: #2563eb;
}

.hero-preview-item__icon svg,
.hero-preview-item__arrow svg {
    width: 20px;
    height: 20px;
}

.hero-preview-item__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hero-preview-item strong {
    display: block;
    color: var(--text-main);
    font-size: 15px;
    margin-bottom: 4px;
}

.hero-preview-item__body span {
    color: var(--text-muted);
    font-size: 13px;
}

.hero-preview-item__arrow {
    color: #94a3b8;
}

@media (max-width: 1180px) {
    .hero-copy-art {
        opacity: 0.55;
        right: -10px;
        top: 132px;
        transform: scale(0.92);
        transform-origin: top right;
    }

    .hero-copy h1 {
        font-size: clamp(1.9rem, 4vw, 2.7rem);
    }
}

/* ── 27. Header Search Bar ──────────────────────────────── */
.header-search-bar {
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 400px;
    display: flex;
    align-items: center;
    background: var(--input-bg, #f8fafc);
    border-radius: 12px;
    padding: 0 12px;
    gap: 8px;
    transition:
        border-color 0.18s,
        box-shadow 0.18s,
        background 0.18s;
}
.header-search-bar:focus-within {
    border-color: var(--brand, #2563eb);
    background: #fff;
}
.header-search-bar__input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13.5px;
    font-family: inherit;
    color: var(--text-main, #0f172a);
    padding: 10px 0;
    min-width: 0;
}
.header-search-bar__input::placeholder {
    color: #94a3b8;
}
.header-search-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--glass-border, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 12px 32px -6px rgba(0, 0, 0, 0.13);
    list-style: none;
    margin: 0;
    padding: 6px;
    z-index: 2100;
    overflow: hidden;
}
.header-search-suggestions.active {
    display: block;
}
.header-search-suggestions li a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 12px;
    border-radius: 9px;
    text-decoration: none;
    transition: background 0.12s;
}
.header-search-suggestions li a:hover,
.header-search-suggestions li a:focus {
    background: var(--brand-extralight, #eff6ff);
    outline: none;
}
.header-search-suggestions li a strong {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main, #0f172a);
}
.header-search-suggestions li a span {
    font-size: 12px;
    color: var(--text-muted, #64748b);
}
.header-search-suggestions .hs-no-results {
    padding: 12px;
    font-size: 13px;
    color: var(--text-muted, #64748b);
    text-align: center;
}

/* ── 28. Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
    }
    footer {
        padding: 48px 24px 28px;
    }
    .newsletter-strip {
        padding: 40px 24px;
    }
    .header-search-bar {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-panel {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }
    .hero-copy-art {
        display: none;
    }
    .hero-copy h1,
    .hero-copy > p,
    .hero-search {
        max-width: none;
    }
    .hero-heading-line {
        white-space: normal;
    }
    .hero-perks {
        gap: 10px 16px;
    }
    .home-category-strip {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding-bottom: 18px;
    }
    .home-category-card,
    .home-category-card:first-child,
    .home-category-card:last-child {
        border: 1px solid rgba(226, 232, 240, 0.85);
        border-radius: 18px;
    }
    .container {
        padding: 24px 20px;
        border-radius: var(--r-xl);
    }
    .info-card {
        padding: 22px 20px;
    }
    .page-banner {
        padding: 40px 20px 36px;
    }
    .tools-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    main:not(.main-content):not(.main-home) {
        padding: 28px 16px 48px;
    }
}

@media (max-width: 640px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .newsletter-fields {
        flex-direction: column;
    }
    .newsletter-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 20px 16px;
    }
    h1 {
        font-size: 26px;
    }
    .newsletter-inner {
        flex-direction: column;
        gap: 20px;
    }
    .home-category-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* ── 29. Utility classes ────────────────────────────────── */
.text-brand {
    color: var(--brand);
}
.text-muted {
    color: var(--text-muted);
}
.text-small {
    font-size: 13px;
}
.bg-surface {
    background: var(--surface);
}
.rounded-xl {
    border-radius: var(--r-xl);
}
.shadow-sm {
    box-shadow: var(--shadow-sm);
}

/* ── 30. Focus accessibility ───────────────────────────── */
:focus-visible {
    outline: 2.5px solid var(--brand);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

/* ── 31. Smooth page load animation ───────────────────── */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
