/* ==========================================================================
   Printer Test Print — style.css
   Vanilla CSS. No frameworks, no external fonts, no CDN files.
   Contents:
     1. Variables & reset
     2. Layout & typography
     3. Buttons & badges
     4. Header & navigation
     5. Hero & preview sheet
     6. Cards, sections, checklists, steps
     7. FAQ accordion
     8. Ad placeholders
     9. Print panel & A4 sheet preview
    10. Printable test elements (bars, gradients, grids, rulers…)
    11. Forms (contact page)
    12. Footer & back-to-top
    13. Responsive
    14. Print CSS
   ========================================================================== */

/* 1. Variables & reset
   ========================================================================== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #dbeafe;
    --accent: #06b6d4;
    --text: #0f172a;
    --muted: #64748b;
    --bg: #ffffff;
    --soft-bg: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;

    --radius: 14px;
    --radius-sm: 9px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 16px 44px rgba(15, 23, 42, 0.12);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img, svg { vertical-align: middle; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

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

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

/* 2. Layout & typography
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}
.container-narrow { max-width: 860px; }

h1, h2, h3, h4 {
    line-height: 1.25;
    color: var(--text);
    margin: 0 0 0.6em;
    letter-spacing: -0.015em;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; }
.lead { font-size: 1.12rem; color: var(--muted); }

.section { padding: 56px 0; }
.section-soft { background: var(--soft-bg); }
.section-blue {
    background: linear-gradient(180deg, var(--primary-soft) 0%, #eaf2fe 100%);
}
.section-head { max-width: 720px; margin: 0 auto 34px; text-align: center; }
.section-head p { color: var(--muted); }

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.breadcrumbs { background: var(--soft-bg); border-bottom: 1px solid var(--border); }
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    font-size: 0.86rem;
    color: var(--muted);
}
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border); }

/* 3. Buttons & badges
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font: inherit;
    font-weight: 650;
    font-size: 0.98rem;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-outline {
    background: var(--bg);
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-soft); color: var(--primary-dark); }

.btn-ghost {
    background: rgba(255, 255, 255, 0.85);
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-lg { padding: 14px 28px; font-size: 1.06rem; }

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    box-shadow: var(--shadow-sm);
}
.trust-badge svg { color: var(--success); }

/* 4. Header & navigation
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 1.12rem;
    white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 120%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.brand-text strong { font-weight: 800; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav a,
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font: inherit;
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--muted);
    padding: 9px 13px;
    border-radius: var(--radius-sm);
    border: 0;
    background: none;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover,
.nav-dropdown-toggle:hover { color: var(--primary); background: var(--primary-soft); }
.main-nav a.active { color: var(--primary); background: var(--primary-soft); }

.header-cta { margin-left: 10px; padding: 9px 18px; font-size: 0.92rem; }

.has-dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 250px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    list-style: none;
    margin: 0;
    padding: 8px;
    display: none;
    z-index: 110;
}
.has-dropdown.open .dropdown-menu { display: block; }
.has-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-toggle svg { transition: transform 0.18s ease; }
.dropdown-menu a {
    display: block;
    width: 100%;
    padding: 9px 12px;
    font-size: 0.92rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 11px;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.menu-bar {
    display: block;
    height: 2.5px;
    width: 100%;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.22s ease, opacity 0.22s ease;
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* 5. Hero & preview sheet
   ========================================================================== */
.hero {
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(6, 182, 212, 0.14), transparent 60%),
        linear-gradient(180deg, #f0f6ff 0%, var(--bg) 100%);
    padding: 64px 0 70px;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero .lead { max-width: 560px; }
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

/* CSS-only mini test sheet in the hero */
.preview-sheet-wrap { position: relative; display: flex; justify-content: center; }
.preview-sheet {
    position: relative;
    width: min(340px, 100%);
    aspect-ratio: 210 / 260;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 22px 20px;
    transform: rotate(1.5deg);
}
.preview-sheet::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px dashed #dbe4f0;
    border-radius: 6px;
    pointer-events: none;
}
.preview-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 3px;
}
.preview-sub { font-size: 0.6rem; color: var(--muted); margin-bottom: 12px; }
.preview-label {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 10px 0 4px;
}
.preview-colors { display: flex; gap: 4px; height: 24px; border-radius: 4px; overflow: hidden; }
.preview-colors span { flex: 1; }
.preview-cmyk { display: flex; gap: 4px; height: 16px; border-radius: 4px; overflow: hidden; }
.preview-cmyk span { flex: 1; }
.preview-gradient {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #dc2626, #f59e0b, #16a34a, #06b6d4, #2563eb, #7c3aed);
}
.preview-lines { display: grid; gap: 4px; }
.preview-lines span { display: block; background: #0f172a; border-radius: 1px; }
.preview-lines span:nth-child(1) { height: 1px; }
.preview-lines span:nth-child(2) { height: 2px; width: 85%; }
.preview-lines span:nth-child(3) { height: 3px; width: 70%; }
.preview-text {
    font-size: 0.55rem;
    line-height: 1.5;
    color: var(--text);
    margin: 4px 0 0;
    font-family: var(--font-mono);
}
.preview-badge {
    position: absolute;
    top: -14px;
    right: -12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--success);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
    transform: rotate(-2deg);
}
.preview-float {
    position: absolute;
    bottom: -16px;
    left: -6px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow);
    font-size: 0.76rem;
    font-weight: 650;
    color: var(--muted);
    padding: 7px 14px;
    transform: rotate(-1deg);
}

/* 6. Cards, sections, checklists, steps
   ========================================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary-soft);
    color: var(--text);
}
.tool-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
}
.tool-card-title { display: block; font-weight: 750; font-size: 1.05rem; margin-bottom: 4px; }
.tool-card-desc { display: block; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.tool-card-cta {
    margin-top: auto;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
}
.tool-card:hover .tool-card-cta { color: var(--primary-dark); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}
.feature-card h3 { display: flex; align-items: center; gap: 10px; }
.feature-card h3 svg { color: var(--primary); flex-shrink: 0; }
.feature-card p { margin: 0; font-size: 0.94rem; color: var(--muted); }

.step-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    counter-reset: step;
}
.step-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    counter-increment: step;
}
.step-card::before {
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.step-card h3 { font-size: 1.02rem; }
.step-card p { margin: 0; font-size: 0.92rem; color: var(--muted); }

.checklist {
    list-style: none;
    margin: 0 0 1em;
    padding: 0;
    display: grid;
    gap: 10px;
}
.checklist li {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px 12px 44px;
    box-shadow: var(--shadow-sm);
}
.checklist li::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 17px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--success);
    -webkit-mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="12" cy="12" r="10" fill="black" stroke="none"/%3E%3C/svg%3E') center / contain no-repeat;
            mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="12" cy="12" r="10" fill="black" stroke="none"/%3E%3C/svg%3E') center / contain no-repeat;
}
.checklist li::after {
    content: "";
    position: absolute;
    left: 19px;
    top: 21px;
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}
.checklist li strong { color: var(--text); }

.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

.brand-disclaimer {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    font-size: 0.9rem;
    color: #92400e;
}

.notice-success, .notice-error {
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    font-size: 0.95rem;
    margin-bottom: 18px;
}
.notice-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.notice-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* 7. FAQ accordion
   ========================================================================== */
.faq-list { display: grid; gap: 12px; }
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.faq-question { margin: 0; }
.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    font: inherit;
    font-weight: 650;
    font-size: 1rem;
    text-align: left;
    color: var(--text);
    background: none;
    border: 0;
    padding: 17px 20px;
    cursor: pointer;
}
.faq-toggle:hover { color: var(--primary); }
.faq-icon {
    position: relative;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-soft);
}
.faq-icon::before, .faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-toggle[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 20px 18px; color: var(--muted); }
.faq-answer p { margin: 0; }

/* 8. Ad placeholders
   ========================================================================== */
.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    margin: 30px auto;
    max-width: 860px;
    background: var(--soft-bg);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
}
.ad-placeholder span {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9aa8bd;
}

/* 9. Print panel & A4 sheet preview
   ========================================================================== */
.page-hero {
    background: linear-gradient(180deg, #f0f6ff 0%, var(--bg) 100%);
    padding: 44px 0 34px;
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero .lead { max-width: 760px; }

.print-panel {
    display: grid;
    gap: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    margin: 26px 0;
}
.print-panel-main { display: flex; flex-wrap: wrap; gap: 12px; }
.print-panel-hint {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    background: var(--soft-bg);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
}

/* On-screen A4-style sheet */
.print-area {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 40px 44px;
    color: #0f172a;
}
.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 10px;
    margin-bottom: 22px;
}
.sheet-title { font-size: 1.25rem; font-weight: 800; margin: 0; letter-spacing: 0.01em; }
.sheet-meta { font-size: 0.72rem; color: #475569; font-family: var(--font-mono); }
.sheet-section { margin-bottom: 24px; break-inside: avoid; page-break-inside: avoid; }
.sheet-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #334155;
    margin: 0 0 8px;
}
.sheet-note { font-size: 0.76rem; color: #475569; margin: 6px 0 0; }
.sheet-footer {
    border-top: 1px solid #cbd5e1;
    padding-top: 10px;
    margin-top: 8px;
    font-size: 0.7rem;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

/* 10. Printable test elements
   ========================================================================== */
/* Everything inside .print-area must keep exact colors when printed */
.print-area, .print-area * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.bar-row { display: flex; gap: 6px; }
.bar-row .bar { flex: 1; height: 46px; border: 1px solid rgba(15,23,42,0.15); }
.bar-row .bar-label {
    display: block;
    text-align: center;
    font-size: 0.62rem;
    font-family: var(--font-mono);
    color: #475569;
    margin-top: 3px;
}
.bar-cell { flex: 1; text-align: center; }
.bar-slim .bar { height: 30px; }

.grad-strip { height: 26px; border: 1px solid rgba(15,23,42,0.15); margin-bottom: 6px; }

.swatch-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.swatch-grid .sw { height: 40px; border: 1px solid rgba(15,23,42,0.12); }

.line-test { display: grid; gap: 7px; }
.line-test .ln { background: #000; }
.line-test .ln-025 { height: 0.25pt; }
.line-test .ln-05 { height: 0.5pt; }
.line-test .ln-075 { height: 0.75pt; }
.line-test .ln-1 { height: 1px; }
.line-test .ln-2 { height: 2px; }
.line-test .ln-3 { height: 3px; }
.line-test .ln-4 { height: 4px; }

.text-scale p { margin: 0 0 4px; line-height: 1.35; }
.ts-6  { font-size: 6px; }
.ts-8  { font-size: 8px; }
.ts-10 { font-size: 10px; }
.ts-12 { font-size: 12px; }
.ts-14 { font-size: 14px; }
.ts-18 { font-size: 18px; }
.ts-24 { font-size: 24px; font-weight: 700; }

.inverse-block {
    background: #000;
    color: #fff;
    padding: 14px 18px;
    font-weight: 600;
}

.density-row { display: flex; gap: 0; }
.density-row .dn { flex: 1; height: 42px; }
.density-row .dn-label {
    display: block;
    text-align: center;
    font-size: 0.6rem;
    font-family: var(--font-mono);
    color: #475569;
    margin-top: 3px;
}
.density-cell { flex: 1; text-align: center; }

.nozzle-block { display: grid; gap: 3px; }
.nozzle-block .nz { height: 3px; }
.nozzle-group { margin-bottom: 10px; }

.coverage-row { display: flex; gap: 8px; }
.coverage-row .cov { flex: 1; height: 64px; border: 1px solid rgba(15,23,42,0.12); }

.photo-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-blocks .ph { height: 72px; border: 1px solid rgba(15,23,42,0.12); }

.align-grid-wrap { display: flex; justify-content: center; }
.crosshair-row { display: flex; justify-content: space-between; margin-bottom: 8px; }

.ruler-svg, .grid-svg, .reg-svg { display: block; width: 100%; height: auto; }

.check-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; font-size: 0.8rem; }
.check-cols span::before { content: "☐ "; }

.mono-sample { font-family: var(--font-mono); font-size: 0.78rem; margin: 0; }

/* 11. Forms (contact page)
   ========================================================================== */
.form-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    max-width: 640px;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 650; margin-bottom: 6px; font-size: 0.95rem; }
.form-control {
    width: 100%;
    font: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
textarea.form-control { min-height: 150px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 12. Footer & back-to-top
   ========================================================================== */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 54px 0 30px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
    gap: 34px;
    margin-bottom: 34px;
}
.brand-footer, .brand-footer:hover { color: #fff; }
.footer-brand p { font-size: 0.92rem; color: #94a3b8; margin-top: 14px; }
.footer-heading {
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #e2e8f0;
    margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: #94a3b8; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 22px; }
.footer-disclaimer { font-size: 0.82rem; color: #64748b; max-width: 820px; }
.footer-copy { font-size: 0.82rem; color: #64748b; margin: 0; }

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: background 0.15s ease, transform 0.15s ease;
}
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* 13. Responsive
   ========================================================================== */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .preview-sheet-wrap { order: -1; }
    .card-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .step-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    .menu-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: var(--card-bg);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 14px 20px 20px;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .main-nav.open { display: flex; }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .main-nav a, .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 12px 14px; }
    .dropdown-menu {
        position: static;
        display: none;
        border: 0;
        box-shadow: none;
        padding: 0 0 0 14px;
        min-width: 0;
    }
    .has-dropdown.open .dropdown-menu { display: block; }
    .header-cta { margin: 10px 0 0; width: 100%; }
}

@media (max-width: 620px) {
    .section { padding: 42px 0; }
    .hero { padding: 44px 0 54px; }
    .card-grid, .feature-grid, .step-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .print-area { padding: 26px 20px; }
    .swatch-grid { grid-template-columns: repeat(3, 1fr); }
    .check-cols { grid-template-columns: 1fr; }
    .hero-ctas .btn { width: 100%; }
    .print-panel-main .btn { width: 100%; }
}

/* 14. Print CSS
   ==========================================================================
   When printing, only the .print-area test sheet is output.
   Header, footer, nav, buttons, ads, articles, FAQs and related links
   are all hidden. */
@page { margin: 12mm; }

@media print {
    body * { visibility: hidden; }

    .print-area, .print-area * { visibility: visible; }

    .print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: #fff;
    }

    .no-print,
    .site-header,
    .site-footer,
    .breadcrumbs,
    .ad-placeholder,
    .print-panel,
    .faq-section,
    .related-section,
    .back-to-top,
    .skip-link,
    .menu-toggle {
        display: none !important;
    }

    .sheet-section { page-break-inside: avoid; break-inside: avoid; }

    /* Preserve backgrounds inside test blocks — the whole point of the sheet */
    .print-area, .print-area * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body { background: #fff; }
}

/* 15. Premium upgrades: hero stats, diagnosis helper, contact layout
   ========================================================================== */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 560px;
    margin-top: 24px;
}
.hero-stats div {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
}
.hero-stats strong {
    display: block;
    font-size: 1.4rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--primary);
}
.hero-stats span {
    display: block;
    margin-top: 5px;
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--muted);
}

.diagnosis-section {
    position: relative;
    padding-top: 42px;
    padding-bottom: 42px;
}
.diagnosis-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 24px;
    align-items: stretch;
    background:
        radial-gradient(520px 260px at 16% 0%, rgba(37, 99, 235, 0.14), transparent 70%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 28px;
}
.diagnosis-copy p { color: var(--muted); max-width: 720px; }
.diagnosis-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.diagnosis-choice {
    font: inherit;
    font-weight: 700;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 14px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.12s ease;
}
.diagnosis-choice:hover { transform: translateY(-1px); border-color: var(--primary); color: var(--primary); }
.diagnosis-choice.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.diagnosis-result {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 310px;
    overflow: hidden;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 20px;
    padding: 28px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.diagnosis-result::before {
    content: "";
    position: absolute;
    inset: -80px -80px auto auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.22);
}
.diagnosis-kicker {
    display: inline-flex;
    width: max-content;
    margin-bottom: 10px;
    color: #93c5fd;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.diagnosis-result h3 { color: #fff; font-size: 1.45rem; margin-bottom: 10px; }
.diagnosis-result p { color: #cbd5e1; margin-bottom: 20px; }
.diagnosis-result .btn { width: max-content; }
.diagnosis-mini-sheet {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    width: 100%;
    max-width: 220px;
    margin-top: 24px;
}
.diagnosis-mini-sheet span {
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #dbeafe);
    opacity: 0.92;
}
.diagnosis-mini-sheet span:nth-child(1) { background: #dc2626; }
.diagnosis-mini-sheet span:nth-child(2) { background: #f59e0b; }
.diagnosis-mini-sheet span:nth-child(3) { background: #16a34a; }
.diagnosis-mini-sheet span:nth-child(4) { background: #2563eb; }
.diagnosis-mini-sheet span:nth-child(5) { background: #0f172a; border: 1px solid rgba(255,255,255,0.28); }

.print-panel-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: -4px 0 0;
    padding: 0;
}
.print-panel-checks li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 0.8rem;
    font-weight: 700;
}
.print-panel-checks li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
    gap: 34px;
    align-items: start;
}
.contact-intro {
    background: var(--soft-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}
.contact-intro p { color: var(--muted); }
.contact-points {
    list-style: none;
    margin: 18px 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.contact-points li {
    position: relative;
    padding-left: 28px;
    color: var(--text);
    font-weight: 650;
    font-size: 0.92rem;
}
.contact-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success);
    font-weight: 900;
}
.contact-form-column .form-card { max-width: none; }
.muted-small { color: var(--muted); font-size: 0.92rem; }
.compact-ctas { margin-top: 22px; }

@media (max-width: 980px) {
    .diagnosis-wrap,
    .contact-layout { grid-template-columns: 1fr; }
    .diagnosis-result { min-height: auto; }
}

@media (max-width: 620px) {
    .hero-stats { grid-template-columns: 1fr; }
    .diagnosis-wrap { padding: 20px; border-radius: 18px; }
    .diagnosis-choice { width: 100%; border-radius: var(--radius-sm); }
    .diagnosis-result .btn { width: 100%; }
}
