/* GridSight landing page.
   1. The brand's tokens: the :root block start.mjs brand printed for the client's own colours, then the
      client's own faces (Plus Jakarta Sans Bold for headings, Inter for text) in place of the dealt pairing.
   2. Page CSS that sits inside visuals: the hero diorama, the app window, the phones, the plan picker. */

:root {
  --p-bg: #f7f8fa; --p-surface: #ebecee; --p-ink: #1e2226; --p-muted: #5e656c;
  --p-accent: #48c76a; --p-accent-ink: #111111; --p-action: #1e2226; --p-action-ink: #f7f8fa;
  --p-inv-bg: #1e2226; --p-inv-surface: #2a2e32; --p-inv-ink: #f7f8fa; --p-inv-muted: #9d9fa2;
  --p-inv-accent: #48c76a; --p-inv-accent-ink: #111111; --p-inv-action: #48c76a; --p-inv-action-ink: #111111;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 700;
  --display-tracking: -0.03em;
  --display-tracking-xl: -0.036em;
  --ly-scale: 0.98;
  /* brand accents used inside the visuals */
  --gs-cobalt: #2563eb; --gs-crimson: #ef4444; --gs-cyan: #06b6d4; --gs-emerald-text: #23803f;
  --gs-night: #15181b;
}

/* the wordmark: "Grid" in charcoal, "Sight" in emerald (a deeper step of Signal Emerald on the light ground, for contrast) */
.nav__logo { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.nav__logo img { width: 28px; height: 28px; }
.wordmark > span { color: var(--gs-emerald-text); }
.ground-inverse .wordmark > span, .footer--dark .wordmark > span { color: var(--p-accent); }
.hero .hero__lead, .t-lead { font-weight: 500; }
.hero__kicker s, .price__was s { text-decoration-thickness: 1px; }

/* ---------------------------------------------------------------- hero: the telemetry diorama */
.gs-frame { background: radial-gradient(120% 80% at 55% 38%, #262b31 0%, var(--gs-night) 62%); isolation: isolate; }
.gs-frame > .gs-diorama { position: absolute; inset: 4% 3% 18% 3%; width: 94%; height: 78%; display: block; }
.gs-route__glow { fill: none; stroke: var(--gs-cobalt); stroke-width: 14; stroke-linejoin: round; stroke-linecap: round; opacity: .85; }
.gs-route__base { fill: none; stroke: #1d4ed8; stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; opacity: .55; }
.gs-route__trail { fill: none; stroke: #60a5fa; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; transition: opacity 600ms ease; }
.gs-route__core { fill: none; stroke: #dbeafe; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; opacity: .9; }
.gs-ping { fill: var(--gs-cyan); stroke: #e0faff; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: gs-ping-in 480ms cubic-bezier(.22, 1, .36, 1) both; transition: opacity 600ms ease; }
@keyframes gs-ping-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
[data-telemetry].is-fading .gs-route__trail, [data-telemetry].is-fading .gs-ping { opacity: 0; }
.gs-ring { fill: none; stroke: var(--gs-crimson); stroke-width: 2; opacity: .7; transform-box: fill-box; transform-origin: center; }
.gs-beacon.is-arrived .gs-ring { animation: gs-ring 2.2s cubic-bezier(.22, 1, .36, 1) infinite; }
.gs-beacon.is-arrived .gs-ring--2 { animation-delay: .7s; }
@keyframes gs-ring { from { opacity: .85; transform: scale(.35); } to { opacity: 0; transform: scale(1.35); } }
.gs-pin { transform-box: fill-box; transform-origin: 50% 100%; }
.gs-beacon.is-arrived .gs-pin { animation: gs-pin 520ms cubic-bezier(.22, 1, .36, 1); }
@keyframes gs-pin { 0% { transform: translateY(0); } 40% { transform: translateY(-6px); } 100% { transform: none; } }
[data-telemetry].is-paused .gs-ring, [data-telemetry].is-paused .gs-pin { animation-play-state: paused; }
.gs-toggle { position: absolute; z-index: 2; top: var(--s-4); right: var(--s-4); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgb(255 255 255 / .16); background: rgb(30 34 38 / .92); color: #f7f8fa; cursor: pointer; }
.gs-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.gs-toggle .gs-toggle__play { fill: currentColor; stroke: none; display: none; }
.gs-toggle[aria-pressed="true"] .gs-toggle__play { display: block; }
.gs-toggle[aria-pressed="true"] .gs-toggle__pause { display: none; }
[data-telemetry]:not(.is-live) .gs-toggle { display: none; }
.gs-frame .ly-live::before { background: var(--p-accent); }
@media (prefers-reduced-motion: reduce) {
  .gs-ring, .gs-pin, .gs-ping { animation: none !important; }
  [data-telemetry] .gs-toggle { display: none; }
}

/* ---------------------------------------------------------------- the live map: one app window across the wrap */
#map .app-frame { margin-top: var(--s-7); display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgb(30 34 38 / .06), 0 24px 48px -24px rgb(30 34 38 / .22); }
.app-frame__bar { flex: none; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 var(--s-4); border-bottom: 1px solid var(--line); background: #f1f2f4; }
.app-frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4d7db; }
.app-frame__bar span { margin: 0 auto; padding: 2px var(--s-4); border-radius: 6px; background: #fff; font-size: 13px; color: var(--muted); }
.app-frame__screen { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.app-frame__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }


/* ---------------------------------------------------------------- the brand line */
#accuracy .mo-lt__type { max-width: 13ch; font-family: var(--font-display); font-weight: 700; }
#accuracy .accuracy__line { max-width: 52ch; }
.accuracy__facts { margin: var(--s-8) 0 0; row-gap: var(--s-5); }
.accuracy__facts dt { font: 700 var(--t-lead)/1.3 var(--font-display); letter-spacing: -0.01em; }
.accuracy__facts dd { margin: var(--s-2) 0 0; color: var(--muted); }

/* ---------------------------------------------------------------- feature cards */
#features .panel { --p-h: 300px; }
#features .panel--shot > .frame__img { object-fit: cover; }
#coding .panel--shot > .frame__img { object-position: 30% 100%; }
#history .panel--shot > .frame__img { object-position: 50% 40%; }
.ui-note__ico--sos { color: var(--gs-crimson); }
@media (min-width: 1024px) and (max-width: 1279px) { #features .panel { --p-h: 236px; } }
@media (max-width: 639px) { #features .panel { --p-h: 170px; } #apps:not(.is-live) { min-height: 200lvh; } }

/* ---------------------------------------------------------------- phones (the apps section) */
.devices { display: flex; justify-content: center; align-items: center; gap: clamp(12px, 3vw, 32px); height: 100%; width: 100%; }
/* Current phones: a thin black bezel inside a titanium edge, big screen corners, and the camera cut-out
   where the real one sits (iPhone: the Dynamic Island between the clock and the icons of the screenshot's own
   status bar; Android: a small centred punch-hole, over map tiles only). Percent tops are of the height, sizes of the width. */
.device { position: relative; height: 100%; aspect-ratio: 600 / 1274; /* the screen inside the bezel at the screenshots' own 600:1305 */ flex: none; padding: 2.2%; border-radius: 15.5% / 7.1%; background: #050607;
  box-shadow: 0 0 0 1.5px #4a4e53, 0 0 0 2.5px #24272a, inset 0 0 0 1px rgb(255 255 255 / .08), 0 22px 44px -18px rgb(0 0 0 / .55); }
.device img { width: 100%; height: 100%; display: block; border-radius: 13.4% / 6.15%; object-fit: cover; object-position: 50% 0; }
.device::before { content: ""; position: absolute; z-index: 1; left: 50%; transform: translateX(-50%); background: #000; pointer-events: none; }
.device--ios::before { top: 2.35%; width: 30.5%; height: 4.1%; border-radius: 999px; }
.device--android { aspect-ratio: 600 / 1253; border-radius: 13% / 6.1%; }
.device--android img { border-radius: 11% / 5.15%; }
.device--android::before { top: 2.3%; width: 4.6%; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
/* the side key: power on the right */
.device::after { content: ""; position: absolute; right: -1.6%; top: 25%; width: 1.4%; height: 10%; border-radius: 0 2px 2px 0; background: #3a3e42; }
#apps .mo-pc__visual--lit { aspect-ratio: 4 / 3; padding: var(--s-6); }
/* live: the lit panel fills the whole frame (no ratio of its own fighting the frame's, so no dark band shows
   through at the right whatever the frame's height), and the frame itself carries the same lit ground */
#apps.is-live .mo-pc__visuals { background: var(--ground-bg); border-radius: var(--r-md); overflow: hidden; }
#apps.is-live .mo-pc__visual--lit { aspect-ratio: auto; width: auto; height: auto; inset: 0; border-radius: inherit; }
#apps:not(.is-live) .mo-pc__visual--lit { height: 30svh; aspect-ratio: auto; padding: var(--s-4); }
@media (max-width: 639px) { #apps:not(.is-live) .mo-pc__visual--lit { height: 38svh; } }

/* ---------------------------------------------------------------- fuel and engine */
.facts { display: grid; gap: var(--s-4); margin: var(--s-5) 0 0; padding: 0; list-style: none; }
.facts { gap: 0; }
.facts > li { padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.shot-window { width: 1000px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 20px 40px -20px rgb(30 34 38 / .3); }
.shot-window img { display: block; width: 100%; height: auto; }

/* ---------------------------------------------------------------- prices */
.card--plan .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-2); margin: 0; }
.price__now { color: var(--ink); font: 700 var(--t-stat)/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price__was { color: var(--muted); }
.plan__lines { display: grid; gap: var(--s-2); margin: 0; padding: var(--s-4) 0 0; border-top: 1px solid var(--line); list-style: none; }
.plan__first strong { color: var(--ink); font-weight: 500; }
.billing { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin: 0; padding: 2px; border: 1px solid var(--line); border-radius: var(--r-sm); min-width: 0; }
.billing label { position: relative; display: grid; }
.billing input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.billing span { display: grid; place-items: center; min-height: 44px; padding: 0 var(--s-1); border-radius: calc(var(--r-sm) - 2px); font-size: 14px; font-weight: 500; text-align: center; color: var(--muted); transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.billing input:checked + span { background: var(--ink); color: var(--bg); }
.billing input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .billing input:not(:checked):hover + span { color: var(--ink); background: color-mix(in oklab, var(--ink) 6%, transparent); } }

/* ---------------------------------------------------------------- the request form */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#inquiry textarea { min-height: 96px; }
.sent { display: grid; gap: var(--s-4); justify-items: start; padding: var(--s-6); border-radius: var(--r-lg); background: var(--g-alt, var(--surface)); }
.sent[hidden], .contacts[hidden] { display: none; }
/* What happens next: the three steps after a request, one card beside the form, numbered on a rail */
.next { --c-pad: clamp(20px, 2.4vw, 32px); }
.next > h3 { margin: 0; }
.next__steps { display: grid; gap: 0; margin: var(--s-5) 0 0; padding: 0; list-style: none; }
.next__steps > li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: var(--s-4); padding-bottom: var(--s-5); }
.next__steps > li:last-child { padding-bottom: 0; }
.next__steps > li:not(:last-child)::before { content: ""; position: absolute; left: 15.5px; top: 36px; bottom: 4px; width: 1px; background: var(--line); }
.next__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 14px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.next__steps > li:last-child .next__n { background: var(--p-accent); color: var(--p-accent-ink); }
.next__steps strong { display: block; padding-top: 5px; font-weight: 500; color: var(--ink); }
.next__steps p { margin: var(--s-1) 0 0; color: color-mix(in oklab, var(--ink) 84%, var(--card)); max-width: 46ch; }
.next__steps s { text-decoration-thickness: 1px; }
.next__ask { margin: var(--s-2) 0 0; }
/* ---------------------------------------------------------------- the close */
.close__word { font-size: min(19.6vw, 300px); line-height: 1; padding-bottom: .04em; white-space: nowrap; }
.close__word > span { color: var(--p-accent); }
@media (max-width: 639px) { .close__word { font-size: 18.5vw; } }

/* ---------------------------------------------------------------- 404 */
.notfound { min-height: 100svh; display: grid; align-content: center; padding: var(--s-8) 0; }
.notfound h1 { font: var(--display-weight) clamp(40px, 5vw, 64px)/1.05 var(--font-display); letter-spacing: var(--display-tracking); }

/* the kicker: the dot and one run of text (the struck price inline) */
.hero__kicker { display: block; }
.hero__kicker .dot { display: inline-block; vertical-align: middle; margin: -2px var(--s-2) 0 0; }
/* prices: both cards as tall as the row */
#pricing .plans > * { align-self: stretch; }
.platforms { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); margin: var(--s-5) 0 0; padding: 0; list-style: none; }
.platforms li { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 500; }
.platforms .ic { height: 24px; width: auto; }
.faq__head { font-weight: 500; }
#more .frame--split { --ratio: 100%; }
.app-icon { width: 96px; height: 96px; margin-top: var(--s-5); border-radius: 22px; box-shadow: 0 1px 2px rgb(30 34 38 / .08), 0 12px 24px -12px rgb(30 34 38 / .25); }
@media (max-width: 639px) { .gs-frame .ly-float__title { display: none; } .gs-frame > .gs-diorama { inset: 2% 2% 22% 2%; height: 76%; } }
@media (max-width: 1023px) { .gs-frame .ly-float__title { display: none; } }

/* Call, Viber, Messenger and Facebook: a tidy 2x2 grid beside the form; one full-width column on a phone. */
.avail__side { align-self: start; display: flex; flex-direction: column; gap: var(--s-3); }
.contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.contacts .btn { width: 100%; justify-content: center; }
/* On a phone the kit shows secondary buttons as underlined links: start them all on one left edge. */
@media (max-width: 639px) { .contacts { grid-template-columns: 1fr; } .contacts .btn { justify-content: flex-start; text-align: left; } }

/* Number coding card: the app's own coding notice and the warning it sends (no screenshot crop). */
.panel.coding { display: grid; align-content: center; gap: var(--s-4); padding: clamp(var(--s-5), 4vw, var(--s-7)); background: linear-gradient(160deg, #f3f5f8, #e3e8ef); }
.coding__card, .coding__alert { background: #fff; border-radius: var(--r-md, 14px); box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px -12px rgb(30 34 38 / .25); }
.coding__card { padding: var(--s-5); max-width: 420px; justify-self: center; width: 100%; }
.coding__head { display: flex; justify-content: space-between; align-items: center; margin: 0; font-size: 14px; color: var(--muted, #646B73); }
.coding__badge { background: #FEF3C7; color: #92400E; padding: 4px 10px; border-radius: 999px; font-weight: 500; }
.coding__plate { margin: var(--s-3) 0 4px; font: 700 clamp(28px, 3vw, 36px)/1.1 'Plus Jakarta Sans', sans-serif; letter-spacing: .02em; color: #1E2226; }
.coding__rule { margin: 0; font-size: 15px; color: #3f454b; }
.coding__alert { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-3); align-items: center; padding: var(--s-4) var(--s-5); max-width: 420px; justify-self: center; width: 100%; font-size: 15px; }
.coding__alert strong { display: block; color: #1E2226; font-weight: 500; }
.coding__sub { display: block; color: var(--muted, #646B73); }
.coding__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #FEE2E2; color: #EF4444; font-weight: 700; }
.coding__when { align-self: start; font-size: 14px; color: var(--muted, #646B73); }
/* Room for all three alarm notifications on a phone. */
@media (max-width: 639px) { #alarms > .panel { --p-h: 236px; } }
/* A phone: the coding card and the next steps a little tighter, so Features and the request each stay within two screens. */
@media (max-width: 639px) {
  .panel.coding { padding: var(--s-4); gap: var(--s-3); }
  .coding__card { padding: var(--s-4); }
  .coding__alert { padding: var(--s-3) var(--s-4); }
  .coding__plate { margin-top: var(--s-2); font-size: 24px; }
  .next__steps { margin-top: var(--s-4); }
  .next__steps > li { padding-bottom: var(--s-4); }
}
