/* GeoTrack landing page. Tokens follow the console (apps/web/src/theme.css); light, dark or the device's choice. */
:root {
  --bg: #ffffff; --bg-alt: #f6f7f9; --surface: #ffffff; --surface-2: #f1f3f5;
  --ink: #141a22; --muted: #566270; --faint: #8a939d; --line: #e3e7eb;
  --accent: #2f62d6; --accent-2: #1f4fbf; --accent-ink: #ffffff; --accent-soft: #e8eefc;
  --teal: #0f8a7a; --ok: #1b7a43; --ok-soft: #e3f4ea; --bad: #b3261e; --bad-soft: #fbe4e2; --info-soft: #e6eefc;
  --band: #0f1724; --band-ink: #e6ebf1; --band-muted: #9ba7b5; --band-line: #253042;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow: 0 12px 32px rgba(16, 24, 40, .12);
  --shadow-lg: 0 30px 60px -12px rgba(16, 24, 40, .25);
  --radius: 10px; --radius-lg: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1219; --bg-alt: #121922; --surface: #171e27; --surface-2: #1f2833;
    --ink: #e8edf3; --muted: #a2adba; --faint: #7b8794; --line: #263140;
    --accent: #5b86f2; --accent-2: #7a9df5; --accent-soft: #1b2a47; --teal: #3cc2ad;
    --ok: #5ccf8c; --ok-soft: #15301f; --bad: #ff8a80; --bad-soft: #3b1b19; --info-soft: #1b2a47;
    --band: #0a0f15; --band-line: #1e2836;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 12px 32px rgba(0, 0, 0, .45); --shadow-lg: 0 30px 60px -12px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1219; --bg-alt: #121922; --surface: #171e27; --surface-2: #1f2833;
  --ink: #e8edf3; --muted: #a2adba; --faint: #7b8794; --line: #263140;
  --accent: #5b86f2; --accent-2: #7a9df5; --accent-soft: #1b2a47; --teal: #3cc2ad;
  --ok: #5ccf8c; --ok-soft: #15301f; --bad: #ff8a80; --bad-soft: #3b1b19; --info-soft: #1b2a47;
  --band: #0a0f15; --band-line: #1e2836;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 12px 32px rgba(0, 0, 0, .45); --shadow-lg: 0 30px 60px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: background .15s, border-color .15s, transform .15s; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--faint); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
#theme-btn .moon { display: none; }
:root[data-theme="dark"] #theme-btn .sun { display: none; }
:root[data-theme="dark"] #theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #theme-btn .sun { display: none; } :root:not([data-theme="light"]) #theme-btn .moon { display: block; } }

/* ─── Navigation and mega menus ─── */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none !important; letter-spacing: -.02em; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--teal)); color: #fff; }
.brand-mark svg { width: 18px; height: 18px; stroke-width: 2.2; }
.menu { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.menu-btn, .menu-link { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; border-radius: 999px; border: 0; background: none; color: var(--muted); font: 500 15px var(--font); cursor: pointer; text-decoration: none !important; }
.menu-btn:hover, .menu-link:hover, .menu-btn[aria-expanded="true"] { color: var(--ink); background: var(--surface-2); }
.chev { width: 16px; height: 16px; transition: transform .2s; }
.menu-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.menu-item { position: relative; }
.mega { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-40%) translateY(6px); width: min(980px, 92vw); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 20px; opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s; }
#mega-industries { width: min(860px, 92vw); transform: translateX(-50%) translateY(6px); }
.menu-item.open .mega { opacity: 1; visibility: visible; transform: translateX(-40%) translateY(0); }
.menu-item.open #mega-industries { transform: translateX(-50%) translateY(0); }
.mega::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; } /* keeps hover across the gap */
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.05fr; gap: 6px 14px; }
.mega-grid-ind { grid-template-columns: repeat(3, 1fr); }
.mega-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 4px 10px 8px; }
.mega-link { display: flex; gap: 12px; padding: 10px; border-radius: var(--radius); color: var(--ink); text-decoration: none !important; }
.mega-link:hover { background: var(--surface-2); }
.mega-link > svg { margin-top: 2px; color: var(--accent); width: 22px; height: 22px; padding: 3px; border-radius: 7px; background: var(--accent-soft); box-sizing: content-box; }
.mega-link b { display: block; font-size: 14.5px; font-weight: 600; }
.mega-link small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.mega-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--radius); background: linear-gradient(160deg, var(--accent-soft), var(--surface-2)); color: var(--ink); text-decoration: none !important; border: 1px solid var(--line); }
.mega-card small { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.mega-card-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.mega-card-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14px; }
.mega-card-cta svg { width: 16px; height: 16px; }
.mega-foot { display: flex; align-items: center; gap: 6px; margin: 12px -20px -20px; padding: 14px 30px; border-top: 1px solid var(--line); background: var(--bg-alt); border-radius: 0 0 var(--radius-lg) var(--radius-lg); font-weight: 600; font-size: 14px; }
.mega-foot svg { width: 16px; height: 16px; }
.nav-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.seg button { border: 0; background: none; color: var(--muted); font: 600 12.5px var(--font); padding: 5px 9px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.burger { display: none; }

/* ─── Hero ─── */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; background:
  radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
  radial-gradient(700px 380px at -10% 110%, color-mix(in srgb, var(--teal) 12%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: .9fr 1.25fr; gap: 48px; align-items: center; }
.hero .wrap { width: min(1320px, 100% - 32px); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); box-shadow: var(--shadow-sm); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; margin: 22px 0 18px; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18.5px; color: var(--muted); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.facts { display: flex; flex-wrap: wrap; gap: 18px 32px; list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; flex-direction: column; }
.facts b { font-size: 20px; font-weight: 800; }
.facts span { color: var(--muted); font-size: 13.5px; }
.hero-visual { position: relative; }
.browser { border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-bar i:nth-child(1) { background: #ff5f57; } .browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar span { margin-left: 10px; font: 12px var(--mono); color: var(--faint); background: var(--surface); padding: 3px 10px; border-radius: 6px; }
.float { position: absolute; display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); font-size: 13px; animation: bob 6s ease-in-out infinite; }
.float b { display: block; font-size: 13.5px; }
.float small { color: var(--muted); }
.float-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.float-icon.bad { background: var(--bad-soft); color: var(--bad); }
.float-icon.ok { background: var(--ok-soft); color: var(--ok); }
.float-alert { left: -28px; bottom: 54px; }
.float-ok { right: -10px; top: -22px; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.phone { position: absolute; right: -34px; bottom: -48px; width: 136px; height: 262px; border-radius: 28px; background: var(--ink); padding: 8px; box-shadow: var(--shadow-lg); }
.phone-screen { height: 100%; border-radius: 21px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px; text-align: center; }
.phone-sos { width: 78px; height: 78px; border-radius: 50%; background: var(--bad); display: grid; place-items: center; color: #fff; font-weight: 800; letter-spacing: .05em; box-shadow: 0 0 0 8px var(--bad-soft); margin-bottom: 10px; }
.phone-title { font-weight: 700; font-size: 13px; }
.phone-sub { color: var(--muted); font-size: 11px; line-height: 1.3; }
.phone-btn { margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--ok); background: var(--ok-soft); padding: 6px 12px; border-radius: 999px; }

/* ─── Strip ─── */
.strip { border-block: 1px solid var(--line); background: var(--bg-alt); }
.strip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 0; }
.strip-label { font-size: 13px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; margin-right: 6px; }
.chip { font-size: 14px; font-weight: 600; color: var(--muted); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }

/* ─── Sections ─── */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 12px; text-align: center; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; text-align: center; }
.sub { color: var(--muted); font-size: 18px; max-width: 680px; margin: 16px auto 0; text-align: center; }
.split .eyebrow, .split h2, .sub.left { text-align: left; margin-left: 0; }

.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { position: relative; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step-n { font: 800 14px var(--mono); color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.steps h3 { font-size: 19px; margin: 16px 0 8px; }
.steps p { color: var(--muted); font-size: 15px; }

/* Feature tabs */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 40px auto 32px; padding: 5px; width: fit-content; max-width: 100%; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tabs button { border: 0; background: none; color: var(--muted); font: 600 14.5px var(--font); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.panel { display: grid; grid-template-columns: .8fr 1.6fr; gap: 40px; align-items: center; }
.panel[hidden] { display: none; }
.panel-copy h3 { font-size: 26px; margin-bottom: 12px; }
.panel-copy > p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b7a43' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }

/* Module cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.card { position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-core { grid-column: span 3; display: grid; grid-template-columns: auto 1fr auto; gap: 6px 18px; align-items: center; background: linear-gradient(120deg, var(--accent-soft), var(--surface) 60%); }
.card-core p { grid-column: 2 / 4; }
.card-icon, .ind-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.card-core .card-icon { grid-row: span 2; margin: 0; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card-core h3 { margin: 0; }
.card p { color: var(--muted); font-size: 14.5px; }
.tag { position: absolute; top: 20px; right: 20px; font-size: 12px; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 3px 10px; border-radius: 999px; }
.card-core .tag { position: static; }
.tag.soft { color: var(--accent); background: var(--accent-soft); }
.note { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 28px; }

/* Industries */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.ind { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 90px; display: flex; flex-direction: column; }
.ind:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ind h3 { font-size: 18px; margin-bottom: 8px; }
.ind > p { color: var(--muted); font-size: 14.5px; }
.mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto !important; padding-top: 16px; }
.mods span { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; }

/* Trust band */
.dark { background: var(--band); color: var(--band-ink); }
.dark .eyebrow { color: #8fb1ff; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.trust > div { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--band-line); background: rgba(255, 255, 255, .03); }
.trust svg { width: 26px; height: 26px; color: #8fb1ff; }
.trust h3 { font-size: 17px; margin: 14px 0 8px; }
.trust p { color: var(--band-muted); font-size: 14.5px; }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.local { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.local li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.local svg { color: var(--accent); width: 24px; height: 24px; margin-top: 2px; }
.local b { display: block; }
.local small { color: var(--muted); font-size: 14px; }

/* Devices */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.tier { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.tier p { color: var(--muted); font-size: 14.5px; margin-top: 12px; }
.tier-badge { font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.tier-badge.ok { background: var(--ok-soft); color: var(--ok); }
.tier-badge.info { background: var(--info-soft); color: var(--accent); }
.tier-badge.muted { background: var(--surface-2); color: var(--muted); }
.devices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
.devices > div { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius-lg); border: 1px dashed var(--line); }
.devices svg { color: var(--teal); width: 26px; height: 26px; margin-bottom: 6px; }
.devices small { color: var(--muted); font-size: 14px; }

/* Code */
.code { margin: 0; padding: 24px; border-radius: var(--radius-lg); background: #0f1724; color: #d6deea; font: 13.5px/1.7 var(--mono); overflow-x: auto; box-shadow: var(--shadow-lg); border: 1px solid #1e2836; }
.code .c { color: #7e8b9c; } .code .k { color: #8fb1ff; } .code .s { color: #7fd4b0; }
#programadores .btn { margin-top: 26px; }

/* FAQ */
.faq { margin-top: 44px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* Demo request */
.cta-band { background: linear-gradient(135deg, #1d3f99, #2f62d6 45%, #0f8a7a); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band .sub { color: rgba(255, 255, 255, .85); }
.eyebrow.light { color: rgba(255, 255, 255, .8); }
.ticks.light li::before { background-color: rgba(255, 255, 255, .9); }
.signin-note { margin-top: 26px; color: rgba(255, 255, 255, .85); }
.signin-note a { color: #fff; font-weight: 700; text-decoration: underline; }
.form { background: var(--surface); color: var(--ink); padding: 28px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; font: 15px var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.form-msg { font-weight: 600; text-align: center; min-height: 1px; }
.form-msg.ok { color: var(--ok); } .form-msg.bad { color: var(--bad); }

/* Footer */
.foot { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 56px 0 24px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-brand p { color: var(--muted); margin-top: 12px; max-width: 320px; }
.foot-title { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 10px; }
.foot-grid a:not(.brand) { display: block; color: var(--muted); padding: 4px 0; }
.foot-grid a:not(.brand):hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13.5px; }
.foot-bottom a { color: var(--muted); }

/* ─── Tablets ─── */
@media (max-width: 1080px) {
  .menu { display: none; position: fixed; inset: 64px 0 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 12px 16px 32px; overflow-y: auto; border-top: 1px solid var(--line); }
  .nav.open .menu { display: flex; }
  .nav.open { backdrop-filter: none; background: var(--bg); } /* a backdrop filter would make the fixed menu size itself to the header */
  .menu-btn, .menu-link { height: 50px; justify-content: space-between; font-size: 17px; color: var(--ink); border-radius: 10px; width: 100%; }
  .mega, #mega-industries { position: static; width: auto; transform: none !important; box-shadow: none; border: 0; padding: 0 0 8px; display: none; opacity: 1; visibility: visible; background: none; }
  .menu-item.open .mega { display: block; }
  .mega::before { display: none; }
  .mega-grid, .mega-grid-ind { grid-template-columns: 1fr; }
  .mega-card { margin-top: 8px; }
  .mega-foot { margin: 6px 0 0; border-radius: var(--radius); border: 1px solid var(--line); padding: 12px 14px; }
  .burger { display: inline-grid; }
  .nav-cta { display: none; }
  .hero-grid, .split, .panel { grid-template-columns: 1fr; }
  .hero-visual { margin: 10px 18px 40px; }
  .browser { transform: none; }
  .cards, .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .card-core { grid-column: span 2; }
  .trust, .devices { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
/* ─── Phones ─── */
@media (max-width: 640px) {
  .nav-row { gap: 8px; }
  .nav-tools .btn-ghost { display: none; }
  .hero { padding: 40px 0 32px; }
  .lead { font-size: 17px; }
  .cta-row .btn { flex: 1 1 100%; }
  .section { padding: 64px 0; }
  .steps, .cards, .ind-grid, .trust, .tiers, .devices { grid-template-columns: 1fr; }
  .card-core { grid-column: auto; grid-template-columns: 1fr; }
  .card-core p { grid-column: auto; }
  .card-core .card-icon { grid-row: auto; }
  .tabs { border-radius: var(--radius); justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .phone { display: none; }
  .float-alert { left: -8px; bottom: 18px; } .float-ok { right: 4px; top: -26px; }
  .float small { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; }
  .form { padding: 20px; }
}
