/* ==========================================================================
   Target Trakker | Pre-launch site styles
   V1 design (31 July 2026) + ecosystem and accessibility pass (10 October 2026)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #0e1013;
  --panel: #171a1f;
  --panel2: #20242a;
  --text: #f4f6f7;
  --muted: #a9b0b8;
  --subtle: #9aa1a9;          /* secondary text, 7:1 on dark panels */
  --red: #e7373f;             /* brand accent: headings, icons, outlines */
  --red2: #ff5960;            /* small red text on dark */
  --red-button: #d42a33;      /* button fill: white text at 5:1 */
  --red-button-hover: #b8222a;
  --on-red: #100304;          /* text on the red band */
  --line: #2c3138;
  --focus: #ff5960;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1180px;
  --radius: 20px;
  --header: 80px;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
main section[id], main[id] { scroll-margin-top: calc(var(--header) + 12px); }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 20px; top: 20px; z-index: 999; background: #fff; color: #000; padding: 12px 16px; border-radius: 6px; font-weight: 700; }

/* ---------- Header and navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14, 16, 19, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.nav-wrap { min-height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: block; flex: none; }
.brand img { width: 300px; }
.primary-nav { display: flex; align-items: center; gap: 28px; font-weight: 600; }
.primary-nav a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; }
.primary-nav a:not(.button):hover { color: var(--red2); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; border-radius: 8px; }

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 8px; border: 1px solid var(--red-button); background: var(--red-button); color: #fff; font-weight: 800; letter-spacing: .02em; text-align: center; cursor: pointer; transition: transform .2s, background-color .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); background: var(--red-button-hover); border-color: var(--red-button-hover); }
.button:disabled { opacity: .7; cursor: progress; transform: none; }
.button-small { min-height: 44px; padding: 0 18px; }
.button-ghost { background: transparent; border-color: #6a727c; }
.button-ghost:hover { border-color: var(--red); background: rgba(231, 55, 63, .12); }

/* ---------- Shared type ---------- */
.eyebrow { margin: 0 0 12px; color: var(--red2); font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1, .section h2, .page-title { font-family: var(--display); text-transform: uppercase; line-height: .94; margin: 0; overflow-wrap: break-word; }
.section { padding: 105px 0; }
.section h2 { font-size: clamp(2.6rem, 5vw, 5.2rem); }
.section-heading { max-width: 720px; margin-bottom: 52px; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 760px; display: flex; align-items: center; background: radial-gradient(circle at 75% 42%, rgba(231, 55, 63, .17), transparent 32%), linear-gradient(135deg, #0e1013 0%, #11151a 55%, #0d0f12 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(to right, transparent, #000); mask-image: linear-gradient(to right, transparent, #000); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 60px; align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(4rem, 7vw, 7.2rem); max-width: 760px; }
.hero h1 span { color: var(--red); }
.hero-lead { font-size: 1.18rem; color: #c4cad0; max-width: 660px; margin: 28px 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.platform-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 30px 0 0; padding: 0; list-style: none; color: #8e969f; font-size: .86rem; }
.platform-row li { line-height: 1.3; }
.platform-row li + li { color: #dfe3e7; font-size: .82rem; font-weight: 700; border-left: 1px solid #3a4048; padding-left: 18px; }

/* Hero illustration (decorative; described by its caption) */
.hero-figure { margin: 0; min-width: 0; }
.hero-visual { position: relative; min-height: 560px; }
.visual-note { margin: 6px 0 0; font-size: .8rem; color: var(--subtle); }
.scope-ring { position: absolute; border: 1px solid rgba(255, 255, 255, .13); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ring-1 { width: 530px; height: 530px; }
.ring-2 { width: 390px; height: 390px; border-color: rgba(231, 55, 63, .35); }
.scope-crosshair { position: absolute; background: rgba(231, 55, 63, .3); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.crosshair-h { width: 570px; height: 1px; }
.crosshair-v { height: 570px; width: 1px; }
.device.phone { position: absolute; width: 245px; height: 500px; border: 8px solid #252a31; background: #0a0b0d; border-radius: 36px; box-shadow: 0 35px 65px rgba(0, 0, 0, .45); padding: 9px; }
.phone::before { content: ""; position: absolute; z-index: 2; width: 80px; height: 20px; border-radius: 0 0 12px 12px; background: #252a31; left: 50%; top: 0; transform: translateX(-50%); }
.phone-back { right: 20px; top: 10px; transform: rotate(8deg); opacity: .84; }
.phone-front { left: 55px; top: 58px; transform: rotate(-5deg); }
.phone-screen { height: 100%; border-radius: 23px; overflow: hidden; background: #14171b; padding: 24px 14px 16px; }
.phone-screen small { font-family: var(--display); font-weight: 800; letter-spacing: .08em; }
.screen-target { background: linear-gradient(#151a1e, #0d0f12); }
.target-preview { position: relative; margin-top: 25px; height: 310px; border-radius: 13px; background: radial-gradient(circle, #171717 0 7%, #f8f8f8 7.5% 15%, #191919 15.5% 23%, #f7f7f7 23.5% 32%, #1b1b1b 32.5% 43%, #e7ded1 43.5%); box-shadow: inset 0 0 40px rgba(0, 0, 0, .45); }
.shot, .hit { position: absolute; width: 14px; height: 14px; border: 3px solid var(--red); border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.s1 { left: 52%; top: 47%; } .s2 { left: 47%; top: 51%; } .s3 { left: 55%; top: 55%; } .s4 { left: 43%; top: 45%; }
.camera-controls { display: flex; justify-content: space-between; margin-top: 14px; font-size: .6rem; color: #bfc5cb; }
.camera-controls span:first-child { color: var(--red2); }
.dial { width: 170px; height: 170px; border: 18px solid #303741; border-top-color: var(--red); border-right-color: var(--red); border-radius: 50%; margin: 42px auto 25px; position: relative; }
.dial::after { content: "642"; position: absolute; inset: 0; display: grid; place-items: center; font: 800 3.2rem var(--display); }
.metric-row { display: flex; justify-content: space-between; border-bottom: 1px solid #31363e; padding: 12px 0; }
.metric-row b { color: var(--red2); }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 14px; }
.metric-grid span { background: #20242a; padding: 12px; border-radius: 8px; font-weight: 700; }
.metric-grid small { color: #949ca5; font-family: var(--body); }
.range-card { position: absolute; right: 10px; bottom: 18px; width: 200px; padding: 18px; background: rgba(29, 33, 39, .94); border: 1px solid #3a4048; border-radius: 14px; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.range-card span, .range-card small { display: block; color: #929aa3; font-size: .67rem; }
.range-card strong { display: block; font: 800 2rem var(--display); color: var(--red2); }

/* ---------- Intro strip ---------- */
.intro-strip { padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #121519; }
.intro-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.intro-grid div { padding: 28px 34px; border-right: 1px solid var(--line); }
.intro-grid div:last-child { border-right: 0; }
.intro-grid strong, .intro-grid span { display: block; }
.intro-grid span { font-size: .9rem; color: var(--muted); margin-top: 4px; }

/* ---------- Ecosystem ---------- */
.eco-flow { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #121519; counter-reset: flow; }
.eco-flow li { padding: 18px 22px; border-right: 1px solid var(--line); counter-increment: flow; min-width: 0; }
.eco-flow li:last-child { border-right: 0; }
.eco-flow b { display: block; font: 800 1.5rem/1 var(--display); text-transform: uppercase; }
.eco-flow b::before { content: counter(flow) " "; color: var(--red); }
.eco-flow span { display: block; margin-top: 6px; font-size: .86rem; color: var(--muted); }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.product-card { position: relative; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, #191c21, #14171b); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.product-card::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(231, 55, 63, .08); right: -100px; top: -100px; transition: transform .3s; pointer-events: none; }
.product-card:hover::before { transform: scale(1.25); }
.product-card.featured { grid-row: span 2; background: linear-gradient(160deg, #23171a, #171a1f); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; position: relative; flex-wrap: wrap; }
.product-icon { width: 58px; height: 58px; padding: 13px; border-radius: 14px; background: #242930; border: 1px solid #333942; }
.product-icon img { width: 100%; height: 100%; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid #4a515a; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #d4d8dc; white-space: nowrap; background: #171a1f; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.status-live { border-color: rgba(231, 55, 63, .6); color: var(--red2); background: rgba(231, 55, 63, .1); }
.status-live::before { background: var(--red); border-color: var(--red); }
.product-type { color: var(--red2); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 24px 0 8px; }
.product-card h3 { font: 800 2.2rem/1 var(--display); text-transform: uppercase; margin: 0 0 14px; overflow-wrap: break-word; }
.product-card p:not(.product-type), .product-card li { color: var(--muted); }
.product-card ul { list-style: none; padding: 0; margin: 22px 0 28px; }
.product-card li { padding: 7px 0 7px 24px; position: relative; }
.product-card li::before { content: "+"; position: absolute; left: 0; color: var(--red); font-weight: 800; }
.text-link { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; color: #fff; font-weight: 800; cursor: pointer; }
.text-link:hover { color: var(--red2); }
.text-link span[aria-hidden] { color: var(--red2); margin-left: 6px; }

/* ---------- Camera showcase ---------- */
.showcase { background: #121519; }
.showcase-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 80px; align-items: center; }
.showcase-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; }
.camera-steps { list-style: none; counter-reset: step; margin: 28px 0 30px; padding: 0; display: grid; gap: 12px; }
.camera-steps li { counter-increment: step; position: relative; padding-left: 44px; color: var(--muted); min-height: 30px; }
.camera-steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--red); color: var(--red2); display: grid; place-items: center; font: 800 1rem/1 var(--display); }
.camera-steps b { color: var(--text); }
.target-stage { min-height: 500px; position: relative; display: grid; place-items: center; }
.target-board { width: 340px; height: 340px; background: #d7d1c5; box-shadow: 0 30px 70px rgba(0, 0, 0, .42); position: relative; display: grid; place-items: center; }
.target-circle { border-radius: 50%; display: grid; place-items: center; }
.c1 { width: 285px; height: 285px; background: #222; }
.c2 { width: 220px; height: 220px; background: #eee; }
.c3 { width: 145px; height: 145px; background: #242424; }
.c4 { width: 65px; height: 65px; background: #e9e9e9; }
.hit { width: 16px; height: 16px; }
.h1 { left: 50%; top: 46%; } .h2 { left: 46%; top: 51%; } .h3 { left: 55%; top: 54%; } .h4 { left: 42%; top: 44%; } .h5 { left: 51%; top: 58%; }
.camera-unit { position: absolute; right: 0; bottom: 52px; width: 210px; height: 105px; border-radius: 18px; background: linear-gradient(#363c44, #1c2025); border: 1px solid #4d5560; box-shadow: 0 20px 35px rgba(0, 0, 0, .45); display: flex; align-items: center; gap: 20px; padding: 18px; }
.lens { flex: none; width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle, #111 0 25%, #24405b 28%, #111 38%, #434a52 50%, #15181c 55%); border: 4px solid #111; }
.camera-label { font: 700 1rem var(--display); line-height: 1; color: #bfc5ca; }
.camera-label b { font-size: 1.45rem; color: #fff; }
.distance-line { position: absolute; left: 0; bottom: 0; width: 100%; display: flex; justify-content: space-between; color: var(--subtle); font-size: .75rem; letter-spacing: .11em; }
.distance-line b { color: var(--red2); }

/* ---------- Apps band ---------- */
.app-band { background: var(--red); padding: 64px 0; color: var(--on-red); }
.app-band .eyebrow { color: var(--on-red); }
.app-band h2 { font-size: clamp(2.6rem, 5vw, 3.5rem); }
.app-band p { color: var(--on-red); font-weight: 500; }
.app-band-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr) auto; gap: 45px; align-items: center; }
.store-badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.store-badges li { display: flex; flex-direction: column; justify-content: center; min-height: 52px; background: #0d0f12; color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 9px; padding: 8px 16px; line-height: 1.2; }
.store-badges small { font-size: .8rem; color: #c8cdd2; }
.store-badges b { font-size: 1rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 90px; }
.about-copy { font-size: 1.12rem; color: var(--muted); }

/* ---------- Launch-updates form ---------- */
.contact { background: linear-gradient(145deg, #15181d, #0e1013); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; }
.contact-copy p:not(.eyebrow) { color: var(--muted); }
.contact-note { padding: 14px; border-left: 3px solid var(--red); background: #171a1f; font-size: .9rem; }
.contact-note a, .form-small a, .prose a { text-decoration: underline; text-underline-offset: 3px; color: var(--text); }
.contact-note a:hover, .form-small a:hover, .prose a:hover { color: var(--red2); }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 30px; border: 1px solid var(--line); background: #171a1f; border-radius: var(--radius); align-content: start; }
.contact-form > label { font-size: .86rem; font-weight: 700; color: #d0d5da; min-width: 0; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 48px; margin-top: 7px; background: #0f1114; border: 1px solid #5a626c; color: #fff; border-radius: 8px; padding: 12px 13px; }
.contact-form input:focus-visible, .contact-form select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.contact-form input[aria-invalid="true"] { border-color: var(--red2); }
.contact-form .consent, .contact-form .form-error, .contact-form .form-small, .contact-form .form-success { grid-column: 1 / -1; }
.contact-form .consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: .92rem; color: var(--muted); cursor: pointer; }
.contact-form .consent input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; flex: none; accent-color: var(--red-button); cursor: pointer; }
.contact-form button { justify-self: start; }
.form-error { margin: 0; color: var(--red2); font-size: .92rem; font-weight: 600; }
.form-small { margin: 0; font-size: .85rem; color: var(--subtle); }
.form-success h3 { font: 800 2rem/1 var(--display); text-transform: uppercase; margin: 0 0 10px; }
.form-success p { color: var(--muted); margin: 0; }
.form-success:focus { outline: none; }

/* ---------- Footer ---------- */
.site-footer { padding: 65px 0 24px; background: #090a0c; border-top: 1px solid #24282e; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 50px; }
.footer-grid img { width: 280px; }
.footer-grid h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 8px; font-family: var(--body); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid p, .footer-grid li { color: #9aa1a9; font-size: .9rem; margin: 8px 0; }
.footer-grid a { display: inline-flex; align-items: center; min-height: 28px; }
.footer-grid a:hover { color: var(--red2); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; border-top: 1px solid #22262b; margin-top: 45px; padding-top: 20px; color: #8f979f; font-size: .82rem; }

/* ---------- Product dialog ---------- */
.product-dialog { width: min(660px, calc(100% - 30px)); max-height: calc(100dvh - 40px); overflow-y: auto; background: #171a1f; color: #fff; border: 1px solid #3a4048; border-radius: 18px; padding: 38px; box-shadow: 0 30px 100px #000; }
.product-dialog::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 10px; top: 8px; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.dialog-close:hover { color: var(--red2); }
.product-dialog h2 { font: 800 3rem/1 var(--display); text-transform: uppercase; margin: 0 0 15px; padding-right: 36px; overflow-wrap: break-word; }
.product-dialog > p:not(.eyebrow) { color: var(--muted); }
.dialog-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 25px 0; padding: 0; list-style: none; }
.dialog-features li { background: #22272d; padding: 12px; border-radius: 8px; color: #cbd0d5; font-size: .9rem; }
.dialog-status { color: var(--red2); font-weight: 700; font-size: .92rem; }

/* ---------- Secondary pages (privacy, support) ---------- */
.page-title { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 20px; }
.prose { max-width: 760px; color: #c4cad0; }
.prose h2 { font-size: 1.3rem; color: var(--text); margin: 36px 0 8px; }
.prose p { margin: 0 0 14px; }

/* ---------- Reveal animation (content stays visible without JavaScript) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */

/* Large tablets and small laptops */
@media (max-width: 1100px) {
  .primary-nav { gap: 20px; }
  .brand img { width: 260px; }
  .hero-grid { gap: 40px; }
}

/* Tablets: single column, burger menu */
@media (max-width: 980px) {
  .hero-grid, .showcase-grid, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; padding: 90px 0 70px; }
  .hero-figure { max-width: 650px; width: 100%; margin-inline: auto; }
  .app-band-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .showcase-grid { gap: 45px; }
  .about-grid { gap: 30px; }
  .contact-grid { gap: 35px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product-card.featured { grid-row: auto; }
  .eco-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eco-flow li:nth-child(2) { border-right: 0; }
  .eco-flow li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .intro-grid { grid-template-columns: minmax(0, 1fr); }
  .intro-grid div { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0; }
  .intro-grid div:last-child { border-bottom: 0; }

  .nav-toggle { display: grid; place-content: center; width: 48px; height: 48px; }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 3px 0; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .primary-nav { position: fixed; inset: var(--header) 0 auto 0; max-height: calc(100dvh - var(--header)); overflow-y: auto; background: #111419; padding: 12px 20px 24px; display: none; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); }
  .primary-nav.open { display: flex; }
  .primary-nav a:not(.button) { min-height: 52px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .primary-nav .button { margin-top: 18px; min-height: 50px; }
}

/* Large phones */
@media (max-width: 620px) {
  :root { --header: 72px; }
  .container { width: min(var(--max), calc(100% - 32px)); }
  .brand img { width: 210px; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.2rem); }
  .hero-lead { font-size: 1.05rem; margin: 22px 0; }
  .hero-actions .button { flex: 1 1 220px; }
  .section { padding: 72px 0; }
  .section h2 { font-size: clamp(2.5rem, 12vw, 3.2rem); }
  .section-heading { margin-bottom: 36px; }
  .product-card { padding: 26px 22px; }
  .product-card h3 { font-size: 2rem; }
  .contact-form { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .contact-form button { justify-self: stretch; }
  .dialog-features { grid-template-columns: minmax(0, 1fr); }
  .product-dialog { padding: 30px 22px 24px; }
  .product-dialog h2 { font-size: 2.4rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .app-band { padding: 52px 0; }

  /* Hero illustration: keep its proportions and scale it to the screen */
  .hero-figure { --s: 1; overflow: visible; }
  .hero-visual { width: 520px; min-height: 560px; left: 50%; margin-left: -260px; transform: scale(var(--s)); transform-origin: top center; margin-bottom: calc(560px * (var(--s) - 1)); }
  .visual-note { text-align: center; }

  /* Camera illustration: smaller parts rather than transforms */
  .target-stage { min-height: 400px; }
  .target-board { width: 270px; height: 270px; }
  .c1 { width: 226px; height: 226px; } .c2 { width: 174px; height: 174px; } .c3 { width: 115px; height: 115px; } .c4 { width: 52px; height: 52px; }
  .camera-unit { width: 168px; height: 86px; bottom: 40px; gap: 14px; padding: 12px; }
  .lens { width: 56px; height: 56px; }
  .camera-label b { font-size: 1.2rem; }
}
@media (max-width: 543px) { .hero-figure { --s: .88; } }
@media (max-width: 479px) { .hero-figure { --s: .76; } }
@media (max-width: 413px) { .hero-figure { --s: .7; } }
@media (max-width: 389px) { .hero-figure { --s: .67; } }
@media (max-width: 374px) { .hero-figure { --s: .63; } }
@media (max-width: 340px) { .hero-figure { --s: .57; } }

/* Small phones */
@media (max-width: 400px) {
  .container { width: calc(100% - 28px); }
  .brand img { width: 180px; }
  .eco-flow li { padding: 14px 14px; }
  .eco-flow b { font-size: 1.3rem; }
  .target-board { width: 230px; height: 230px; }
  .c1 { width: 192px; height: 192px; } .c2 { width: 148px; height: 148px; } .c3 { width: 98px; height: 98px; } .c4 { width: 44px; height: 44px; }
  .camera-unit { width: 160px; height: 78px; right: 0; gap: 10px; padding: 10px 12px; overflow: hidden; }
  .camera-label { font-size: .85rem; }
  .camera-label b { font-size: 1.05rem; }
  .lens { width: 48px; height: 48px; }
  .distance-line { font-size: .7rem; letter-spacing: .06em; }
}

/* Very wide screens */
@media (min-width: 1700px) {
  .hero { min-height: 820px; }
}

/* ---------- User preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .button:hover { transform: none; }
  .product-card:hover::before { transform: none; }
}
@media (forced-colors: active) {
  .button, .status, .store-badges li, .contact-form input, .contact-form select { border: 1px solid CanvasText; }
  .shot, .hit { forced-color-adjust: none; }
}
@media print {
  .site-header, .hero-figure, .target-stage, .nav-toggle, .product-dialog { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Agency credit */
.footer-credit a { color: #d0d5da; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footer-credit a:hover { color: var(--red2); }
