:root {
  color-scheme: light;
  --white-diamond: #f7f8f5;
  --red-diamond: #d71920;
  --graphite-gray: #3d454b;
  --ink: #0d171f;
  --ink-soft: #35454f;
  --muted: #6f7d86;
  --line: rgba(91, 111, 121, 0.2);
  --line-strong: rgba(75, 96, 107, 0.34);
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.84);
  --surface-soft: #f0f4f5;
  --surface-raised: #ffffff;
  --canvas: #eaf0f2;
  --canvas-glow: rgba(255, 255, 255, 0.88);
  --deep: #10232d;
  --deep-soft: #1d3540;
  --red: var(--red-diamond);
  --red-dark: #a80f1a;
  --green: #16805e;
  --green-soft: #e1f5ed;
  --amber: #ad6818;
  --amber-soft: #fff1dc;
  --danger-soft: #fce9eb;
  --chart-wifi: #d72b3a;
  --chart-mobile: #247fae;
  --chart-battery: #208965;
  --chart-grid: rgba(83, 104, 114, 0.15);
  --chart-text: #718087;
  --chart-zero: rgba(62, 80, 89, 0.48);
  --chart-point-outline: #ffffff;
  --map-accent: #d72b3a;
  --map-marker-outline: #ffffff;
  --shadow: 0 22px 70px rgba(16, 36, 47, 0.09);
  --shadow-soft: 0 10px 34px rgba(16, 36, 47, 0.07);
  --radius: 22px;
  --radius-small: 14px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: "Avenir Next", Avenir, "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --white-diamond: #f5f7f4;
  --red-diamond: #ff525d;
  --graphite-gray: #394148;
  --ink: #f3f7f8;
  --ink-soft: #c1cdd2;
  --muted: #82939c;
  --line: rgba(161, 184, 194, 0.16);
  --line-strong: rgba(161, 184, 194, 0.28);
  --surface: #111c22;
  --surface-glass: rgba(16, 27, 33, 0.84);
  --surface-soft: #17252c;
  --surface-raised: #1a2930;
  --canvas: #081116;
  --canvas-glow: rgba(40, 64, 74, 0.28);
  --deep: #0b171d;
  --deep-soft: #172a33;
  --red: #f04451;
  --red-dark: #d72c3a;
  --green: #53d5a1;
  --green-soft: rgba(59, 194, 143, 0.14);
  --amber: #f1ad55;
  --amber-soft: rgba(220, 149, 58, 0.15);
  --danger-soft: rgba(240, 68, 81, 0.14);
  --chart-wifi: #ff6571;
  --chart-mobile: #55b8e9;
  --chart-battery: #5bd5a7;
  --chart-grid: rgba(171, 195, 205, 0.12);
  --chart-text: #8da0a9;
  --chart-zero: rgba(193, 211, 219, 0.44);
  --chart-point-outline: #101c22;
  --map-accent: #ff5d69;
  --map-marker-outline: #ffffff;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 12px 44px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.9), transparent 26rem),
    var(--canvas);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled,
fieldset:disabled button,
fieldset:disabled select {
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: 10px;
  padding: 10px 14px;
  color: #ffffff;
  background: #07131a;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(-140% - env(safe-area-inset-top, 0px)));
}

.skip-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(216, 41, 47, 0.35);
  outline-offset: 3px;
}

.page-shell {
  min-height: 100vh;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.login-view {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
}

.login-brand {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 650px;
  padding: clamp(42px, 7vw, 100px);
  color: white;
  background:
    linear-gradient(135deg, rgba(16, 24, 32, 0.8), rgba(16, 24, 32, 0.98)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, 0.045) 80px),
    var(--deep);
}

.login-brand::after {
  position: absolute;
  right: -20%;
  bottom: -35%;
  width: 65vw;
  height: 65vw;
  min-width: 620px;
  min-height: 620px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025), 0 0 0 140px rgba(255, 255, 255, 0.02);
}

.login-brand > * {
  position: relative;
  z-index: 1;
}

.brand-orbit {
  position: absolute;
  z-index: 0;
  top: clamp(50px, 8vw, 105px);
  left: clamp(42px, 7vw, 100px);
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.brand-monogram {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  color: white;
  background: var(--red);
  border-radius: 18px;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  transform: rotate(-8deg);
}

.orbit-line {
  position: absolute;
  width: 190px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.orbit-line-one {
  transform: rotate(38deg);
}

.orbit-line-two {
  transform: rotate(-38deg);
}

.login-brand .eyebrow {
  color: #aebcc4;
}

.login-brand h1 {
  max-width: 720px;
  margin: 16px 0 22px;
  font-size: clamp(3.6rem, 8vw, 7.8rem);
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.login-intro {
  max-width: 580px;
  margin: 0;
  color: #cbd4d9;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.65;
}

.login-path {
  display: flex;
  align-items: center;
  max-width: 520px;
  margin-top: 44px;
  color: #aebcc4;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-path i {
  height: 1px;
  margin: 0 14px;
  background: rgba(255, 255, 255, 0.25);
  flex: 1;
}

.login-panel {
  display: grid;
  min-height: 650px;
  padding: clamp(28px, 5vw, 76px);
  place-items: center;
  background: #f5f5f2;
}

.login-card {
  width: min(100%, 440px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.wordmark-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  background: var(--red);
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.wordmark > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.wordmark strong {
  font-size: 0.95rem;
}

.wordmark small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-card > .eyebrow {
  margin-top: clamp(58px, 9vh, 105px);
}

.login-card h2 {
  margin: 8px 0 8px;
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  font-weight: 650;
  letter-spacing: -0.055em;
}

.form-intro {
  margin: 0 0 30px;
  color: var(--muted);
  line-height: 1.55;
}

label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 750;
}

input,
select {
  width: 100%;
  min-height: 50px;
  color: var(--ink);
  background: white;
  border: 1px solid #cfd5d7;
  border-radius: 11px;
}

input {
  margin: 7px 0 18px;
  padding: 0 14px;
}

select {
  margin-top: 7px;
  padding: 0 42px 0 14px;
}

input:focus,
select:focus {
  border-color: var(--ink-soft);
  outline: 3px solid rgba(21, 38, 49, 0.09);
}

.form-error {
  min-height: 20px;
  margin: 0 0 10px;
  color: var(--red-dark);
  font-size: 0.82rem;
  font-weight: 650;
}

.form-success {
  margin: 0 0 14px;
  padding: 12px 14px;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 9%, var(--surface-raised));
  border: 1px solid color-mix(in srgb, var(--green) 25%, var(--line));
  border-radius: 11px;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.5;
}

.forgot-password-link {
  display: block;
  width: max-content;
  margin: -8px 0 15px auto;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-decoration-color: color-mix(in srgb, var(--red) 55%, transparent);
  text-underline-offset: 4px;
}

.forgot-password-link:hover {
  color: var(--red);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  gap: 22px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 800;
  transition: transform 180ms var(--ease), background 180ms ease, border-color 180ms ease;
}

.button:not(:disabled):hover {
  transform: translateY(-1px);
}

.button-primary {
  color: white;
  background: var(--red);
}

.button-primary:not(:disabled):hover {
  background: var(--red-dark);
}

.button-secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.button-secondary:not(:disabled):hover {
  border-color: #aeb7bb;
}

.button-quiet {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}

.button-wide {
  width: 100%;
}

.button:disabled,
fieldset:disabled .button {
  color: #8e999e;
  background: #e3e7e7;
  border-color: #e3e7e7;
  transform: none;
}

.security-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.security-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(32, 133, 99, 0.1);
  flex: none;
}

.dashboard-view {
  min-height: 100vh;
  padding-bottom: 64px;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 max(24px, calc((100vw - 1420px) / 2));
  color: white;
  background: rgba(16, 24, 32, 0.96);
  backdrop-filter: blur(18px);
}

.wordmark-light small {
  color: #9eabb3;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 16px;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #bec7cc;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}

.live-badge span {
  width: 8px;
  height: 8px;
  background: #77848b;
  border-radius: 50%;
}

.live-badge.online {
  color: white;
}

.live-badge.online span {
  background: #49c795;
  box-shadow: 0 0 0 5px rgba(73, 199, 149, 0.12);
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: white;
  background: var(--deep-soft);
  border: 1px solid #40525c;
  border-radius: 50%;
  font-weight: 800;
}

main {
  width: min(1420px, calc(100% - 48px));
  margin: 0 auto;
}

.hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: clamp(46px, 7vw, 82px) 0 32px;
  gap: 32px;
}

.hero-row h1 {
  margin: 7px 0 9px;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.hero-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: right;
}

.hero-actions strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
}

.signal-rail {
  display: grid;
  align-items: center;
  margin-bottom: 22px;
  padding: 16px 18px;
  background: var(--deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  grid-template-columns: 1fr minmax(40px, 0.3fr) 1fr minmax(40px, 0.3fr) 1fr;
}

.signal-node {
  display: grid;
  align-items: center;
  min-width: 0;
  color: #afbbc1;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
}

.signal-index {
  color: #71818a;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.66rem;
}

.signal-node div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.signal-node strong {
  overflow: hidden;
  color: #f5f8f9;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-node small {
  overflow: hidden;
  margin-top: 3px;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-node > i {
  width: 9px;
  height: 9px;
  background: #68777f;
  border: 2px solid var(--deep);
  border-radius: 50%;
  box-shadow: 0 0 0 1px #68777f;
}

.signal-node.online > i {
  background: #49c795;
  box-shadow: 0 0 0 1px #49c795, 0 0 16px rgba(73, 199, 149, 0.55);
}

.signal-node.phone-online strong,
.signal-node.phone-online small {
  color: #63d8aa;
}

.signal-connector {
  height: 1px;
  padding: 0 14px;
}

.signal-connector span {
  display: block;
  height: 1px;
  background: repeating-linear-gradient(90deg, #566871 0 4px, transparent 4px 9px);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.8fr);
  gap: 22px;
}

.panel {
  overflow: hidden;
  padding: 26px;
  background: var(--surface);
  border: 1px solid rgba(169, 178, 181, 0.48);
  border-radius: var(--radius);
  box-shadow: 0 12px 38px rgba(25, 39, 46, 0.055);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 20px;
}

.panel-header.compact {
  margin-bottom: 14px;
}

.panel-header h2 {
  margin: 5px 0 0;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.vehicle-header-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.paint-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  gap: 7px;
  color: var(--ink-soft);
  background: #eef0ef;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 750;
}

.paint-pill i {
  width: 11px;
  height: 11px;
  background: #a50724;
  border: 1px solid rgba(16, 24, 32, 0.18);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.state-pill,
.controls-lock {
  padding: 7px 11px;
  color: #6f7b81;
  background: #eef0ef;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.state-pill.online,
.controls-lock.online {
  color: #176a4f;
  background: #e5f5ee;
}

.vehicle-stage {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 430px;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.11), transparent 44%),
    #d8dcda;
  border-radius: 14px;
}

.vehicle-stage-grid {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(54, 72, 80, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 72, 80, 0.13) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle, black, transparent 72%);
}

.vehicle-stage canvas {
  position: relative;
  z-index: 1;
  width: min(68%, 270px);
  height: auto;
  filter: drop-shadow(0 26px 24px rgba(23, 33, 38, 0.22));
  mix-blend-mode: multiply;
}

.visual-live-state {
  display: flex;
  align-items: center;
  margin-top: 10px;
  gap: 8px;
  flex-wrap: wrap;
}

.visual-live-state span {
  padding: 7px 10px;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 700;
}

.visual-live-state span.alert {
  color: #9a2a2e;
  background: #fae9e9;
}

.visual-live-state span.active {
  color: #8a520e;
  background: #fcf0dc;
}

.stage-label {
  position: absolute;
  left: 50%;
  color: #7a8589;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  transform: translateX(-50%);
}

.stage-label-front {
  top: 16px;
}

.stage-label-rear {
  bottom: 16px;
}

.vehicle-facts {
  display: grid;
  margin-top: 16px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 10px;
}

.vehicle-facts article {
  min-width: 0;
  padding: 15px;
  background: var(--surface-soft);
  border-radius: 12px;
}

.vehicle-facts article:not(.battery-fact) {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fact-label,
.metric-heading span {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vehicle-facts strong {
  overflow: hidden;
  margin-top: 7px;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-facts small,
.battery-fact p {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.metric-heading strong {
  margin: 0;
  font-size: 1.55rem;
}

meter {
  width: 100%;
  height: 8px;
  margin: 10px 0 0;
  border: 0;
  border-radius: 99px;
}

meter::-webkit-meter-bar {
  background: #d2d8d7;
  border: 0;
  border-radius: 99px;
}

meter::-webkit-meter-optimum-value {
  background: var(--green);
  border-radius: 99px;
}

.control-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.control-group legend {
  margin-bottom: 10px;
  padding: 0;
  font-size: 0.76rem;
  font-weight: 800;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-row label span {
  display: block;
}

.button-row {
  display: grid;
  margin-top: 12px;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 9px;
}

.control-divider {
  height: 1px;
  margin: 25px 0 20px;
  background: var(--line);
}

.toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.toggle-command {
  display: grid;
  align-items: center;
  min-height: 82px;
  padding: 13px;
  color: var(--ink);
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
}

.toggle-command:hover:not(:disabled) {
  border-color: #aeb7bb;
}

.toggle-command > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.toggle-command strong {
  font-size: 0.78rem;
}

.toggle-command small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.67rem;
}

.toggle-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #55646c;
  background: var(--surface-soft);
  border-radius: 9px;
}

.toggle-command i {
  width: 24px;
  height: 14px;
  background: #d5dada;
  border-radius: 99px;
}

.toggle-command.active i {
  background: var(--green);
}

.toggle-command:disabled {
  opacity: 0.62;
}

.text-command {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 12px;
  padding: 14px 0 4px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  font-size: 0.76rem;
  font-weight: 750;
}

.offline-explanation {
  margin-top: 18px;
  padding: 13px 14px;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 10px;
  font-size: 0.73rem;
  line-height: 1.5;
}

.detail-list {
  margin: 0;
}

.detail-list div {
  display: grid;
  padding: 13px 0;
  border-top: 1px solid #e4e7e6;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 18px;
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.73rem;
}

.detail-list dd {
  overflow: hidden;
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.72rem;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-count {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
}

.history-list {
  max-height: 340px;
  overflow-y: auto;
}

.history-item {
  display: grid;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid #e4e7e6;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
}

.history-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink-soft);
  background: var(--surface-soft);
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 900;
}

.history-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.history-copy strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.65rem;
}

.command-status {
  padding: 5px 8px;
  color: #657177;
  background: #eef0ef;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.command-status.succeeded {
  color: #176a4f;
  background: #e5f5ee;
}

.command-status.failed,
.command-status.rejected,
.command-status.unknown {
  color: #9a2a2e;
  background: #fae9e9;
}

.command-status.delivered,
.command-status.accepted,
.command-status.executing {
  color: #8a520e;
  background: #fcf0dc;
}

.empty-state {
  margin: 0;
  padding: 24px 0 12px;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.account-panel {
  position: fixed;
  z-index: 50;
  inset: 0;
}

.account-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 19, 0.54);
  backdrop-filter: blur(3px);
}

.account-sheet {
  position: absolute;
  top: 0;
  right: 0;
  width: min(440px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 34px;
  background: #f7f7f4;
  box-shadow: -24px 0 80px rgba(12, 22, 28, 0.2);
  animation: slide-in 280ms var(--ease) both;
}

.account-sheet header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.account-sheet h2 {
  margin: 5px 0 0;
  font-size: 2rem;
  letter-spacing: -0.045em;
}

.account-sheet > p {
  margin: 28px 0;
  color: var(--muted);
}

.account-sheet form {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.provisioning-card {
  margin-bottom: 16px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.provisioning-card h3 {
  margin: 6px 0 8px;
  font-size: 1rem;
}

.provisioning-intro {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.provisioning-values {
  margin: 0 0 16px;
}

.provisioning-values div {
  display: grid;
  padding: 9px 0;
  border-top: 1px solid #e4e7e6;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
}

.provisioning-values dt {
  color: var(--muted);
  font-size: 0.7rem;
}

.provisioning-values dd {
  overflow-wrap: anywhere;
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.68rem;
  text-align: right;
}

#device-token {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.72rem;
}

.credential-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.credential-actions .button {
  width: 100%;
}

.provisioning-card .form-error {
  margin: 10px 0 0;
}

.account-sheet form h3 {
  margin: 0 0 18px;
  font-size: 1rem;
}

.account-sheet form small {
  display: block;
  margin: -10px 0 12px;
  color: var(--muted);
  font-size: 0.7rem;
}

.close-button {
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.4rem;
}

.account-sheet > .button-quiet {
  margin-top: 14px;
}

.command-dialog {
  width: min(500px, calc(100% - 32px));
  padding: 0;
  color: var(--ink);
  background: white;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 36px 100px rgba(9, 18, 23, 0.3);
}

.command-dialog::backdrop {
  background: rgba(8, 15, 19, 0.64);
  backdrop-filter: blur(4px);
}

.command-dialog form {
  padding: 30px;
}

.dialog-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  place-items: center;
  color: white;
  background: var(--red);
  border-radius: 13px;
  font-size: 1.3rem;
}

.command-dialog h2 {
  margin: 7px 0 9px;
  font-size: 2rem;
  letter-spacing: -0.045em;
}

.command-dialog > form > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.dialog-summary {
  margin: 22px 0;
  padding: 14px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  border-radius: 11px;
  font-size: 0.8rem;
  font-weight: 700;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 9px;
}

.toast {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 22px;
  max-width: min(400px, calc(100% - 44px));
  padding: 14px 17px;
  color: white;
  background: var(--ink);
  border-radius: 11px;
  box-shadow: 0 18px 50px rgba(9, 18, 23, 0.25);
  font-size: 0.78rem;
  font-weight: 700;
  animation: toast-in 240ms var(--ease) both;
}

.telemetry-panel,
.telemetry-history-panel {
  grid-column: 1 / -1;
}

.telemetry-layout {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(310px, 0.72fr) minmax(480px, 1.28fr);
  gap: 18px;
}

.telemetry-live-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.telemetry-live-grid article {
  display: flex;
  min-height: 132px;
  padding: 18px;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface-soft);
  border-radius: 13px;
}

.telemetry-live-grid article > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.telemetry-live-grid strong {
  margin: 10px 0 5px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: -0.04em;
}

.telemetry-live-grid small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.map-card {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  background: #dce2df;
  border-radius: 14px;
}

#telemetry-map {
  position: absolute;
  inset: 0 0 42px;
  background: #dce2df;
}

.map-empty {
  position: absolute;
  z-index: 500;
  top: 50%;
  left: 50%;
  width: min(320px, calc(100% - 40px));
  padding: 13px 15px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(25, 39, 46, 0.14);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
  transform: translate(-50%, -50%);
}

.map-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 14px;
  color: var(--muted);
  background: white;
  gap: 12px;
  font-size: 0.63rem;
}

.map-caption span:first-child {
  overflow: hidden;
  color: var(--ink-soft);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaflet-control-attribution {
  font-size: 9px;
}

.history-header {
  align-items: flex-end;
}

.range-switcher {
  display: flex;
  padding: 3px;
  background: var(--surface-soft);
  border-radius: 10px;
  gap: 2px;
}

.range-switcher button {
  min-width: 42px;
  min-height: 36px;
  padding: 0 9px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 0.69rem;
  font-weight: 800;
}

.range-switcher button.active {
  color: white;
  background: var(--deep);
  box-shadow: 0 5px 14px rgba(16, 24, 32, 0.15);
}

.chart-toolbar {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}

.chart-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 750;
}

.chart-legend i {
  width: 18px;
  height: 3px;
  border-radius: 999px;
}

.legend-wifi { background: #b51f2e; }
.legend-mobile { background: #2878a5; }
.legend-battery { background: #2d8d68; }

.chart-toolbar > span {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.66rem;
}

.chart-shell {
  position: relative;
  min-height: 300px;
  padding: 4px 0 0;
  background: linear-gradient(180deg, #fbfcfb, #f4f6f5);
  border: 1px solid #e2e5e4;
  border-radius: 13px;
}

#history-chart {
  display: block;
  width: 100%;
  height: 300px;
}

.chart-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  padding: 12px 15px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 9px;
  font-size: 0.75rem;
  transform: translate(-50%, -50%);
}

.chart-summary {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.5;
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .login-view {
    grid-template-columns: 1fr 480px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-panel,
  .controls-panel {
    grid-column: auto;
  }

  .detail-panel,
  .history-panel {
    grid-row: auto;
  }

  .telemetry-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .login-view {
    display: block;
  }

  .login-brand {
    min-height: 440px;
    padding: 38px 28px;
  }

  .brand-orbit {
    top: 38px;
    left: 28px;
    width: 110px;
    height: 110px;
  }

  .login-brand h1 {
    font-size: clamp(3.3rem, 14vw, 5.5rem);
  }

  .login-panel {
    min-height: auto;
    padding: 48px 24px 64px;
  }

  .login-card > .eyebrow {
    margin-top: 56px;
  }

  .topbar {
    padding: 0 18px;
  }

  main {
    width: min(100% - 28px, 1420px);
  }

  .hero-row {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 38px;
  }

  .hero-actions {
    width: 100%;
    justify-content: space-between;
  }

  .signal-rail {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .signal-connector {
    display: none;
  }

  .vehicle-facts {
    grid-template-columns: 1fr 1fr;
  }

  .history-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .range-switcher {
    width: 100%;
    overflow-x: auto;
  }

  .range-switcher button {
    flex: 1 0 auto;
  }
}

@media (max-width: 560px) {
  .wordmark small {
    display: none;
  }

  .live-badge b {
    display: none;
  }

  .hero-row h1 {
    font-size: 2.8rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions p {
    text-align: left;
  }

  .hero-actions .button {
    width: 100%;
  }

  .panel {
    padding: 20px;
    border-radius: 15px;
  }

  .vehicle-stage {
    min-height: 330px;
  }

  .vehicle-stage canvas {
    width: min(72%, 215px);
  }

  .vehicle-facts,
  .form-row,
  .toggle-grid {
    grid-template-columns: 1fr;
  }

  .telemetry-live-grid {
    grid-template-columns: 1fr;
  }

  .telemetry-live-grid article {
    min-height: 112px;
  }

  .map-card {
    min-height: 310px;
  }

  .map-caption {
    align-items: flex-start;
    padding: 7px 10px;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }

  .chart-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .chart-toolbar > span {
    margin-left: 0;
  }

  .button-row {
    grid-template-columns: 1fr 0.7fr;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .detail-list dd {
    text-align: left;
  }

  .account-sheet {
    padding: 24px;
  }
}

.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--red) 10%, transparent), transparent 28rem),
    var(--canvas);
}

.legal-topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 12px max(24px, calc((100vw - 1320px) / 2));
  background: color-mix(in srgb, var(--surface-glass) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(24px) saturate(1.1);
}

.legal-topbar .button {
  min-height: 42px;
  text-decoration: none;
}

.legal-page main {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.legal-hero {
  padding: clamp(70px, 10vw, 140px) 0 clamp(46px, 6vw, 78px);
}

.legal-hero h1 {
  max-width: 1000px;
  margin: 12px 0 22px;
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  font-weight: 640;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.legal-hero > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.legal-layout {
  display: grid;
  align-items: start;
  padding-bottom: 100px;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(34px, 7vw, 100px);
}

.legal-summary {
  position: sticky;
  top: 108px;
  padding: 24px;
  color: white;
  background:
    radial-gradient(circle at 90% 0%, rgba(240, 68, 81, 0.2), transparent 13rem),
    linear-gradient(150deg, #142c37, #0a171d);
  border: 1px solid rgba(160, 188, 199, 0.13);
  border-radius: 22px;
  box-shadow: 0 20px 62px rgba(5, 18, 24, 0.2);
}

.legal-summary .eyebrow {
  color: #96aab4;
}

.legal-summary ul {
  display: grid;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  gap: 18px;
}

.legal-summary li {
  position: relative;
  padding-left: 20px;
  color: #c2cfd5;
  font-size: 0.76rem;
  line-height: 1.55;
}

.legal-summary li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: #63d8aa;
  border-radius: 50%;
  box-shadow: 0 0 13px rgba(99, 216, 170, 0.45);
}

.legal-document {
  overflow: hidden;
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

.legal-document section {
  padding: clamp(28px, 5vw, 52px);
  border-bottom: 1px solid var(--line);
}

.legal-document section:last-child {
  border-bottom: 0;
}

.legal-document h2 {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  letter-spacing: -0.04em;
}

.legal-document p,
.legal-document li {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.78;
}

.legal-document p {
  margin: 0 0 16px;
}

.legal-document p:last-child {
  margin-bottom: 0;
}

.legal-document ul {
  display: grid;
  margin: 0;
  padding-left: 22px;
  gap: 9px;
}

.legal-document .legal-warning {
  background: color-mix(in srgb, var(--danger-soft) 64%, transparent);
}

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  gap: 22px;
  font-size: 0.72rem;
}

.legal-footer nav {
  display: flex;
  gap: 20px;
}

@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-summary {
    position: static;
  }
}

@media (max-width: 560px) {
  .legal-topbar {
    min-height: 68px;
    padding: 10px 14px;
  }

  .legal-topbar .wordmark small,
  .legal-topbar .button {
    display: none;
  }

  .legal-page main,
  .legal-footer {
    width: min(100% - 24px, 1320px);
  }

  .legal-hero {
    padding: 56px 0 38px;
  }

  .legal-hero h1 {
    font-size: 3.2rem;
  }

  .legal-document,
  .legal-summary {
    border-radius: 19px;
  }

  .legal-document section {
    padding: 26px 21px;
  }

  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Private trip intelligence ------------------------------------------------ */

.cockpit-switcher {
  display: flex;
  align-items: center;
  padding: 4px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  gap: 3px;
}

.cockpit-switcher button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 15px;
  color: #9eabb3;
  background: transparent;
  border: 0;
  border-radius: 999px;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.cockpit-switcher button span {
  color: #76868f;
  font-size: 0.65rem;
}

.cockpit-switcher button.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cockpit-switcher button.active span { color: var(--red-diamond); }

.trips-cockpit {
  padding: clamp(34px, 5vw, 64px) 0 30px;
}

.trips-hero {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 220px;
  align-items: flex-end;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 48px);
  color: white;
  background:
    linear-gradient(110deg, rgba(4, 13, 18, 0.98) 0%, rgba(13, 35, 43, 0.95) 56%, rgba(23, 50, 59, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: 0 26px 80px rgba(5, 15, 20, 0.2);
  gap: 30px;
}

.trips-hero::before,
.trips-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.trips-hero::before {
  right: -8%;
  bottom: -155%;
  width: min(680px, 62vw);
  height: min(680px, 62vw);
  background:
    radial-gradient(circle, transparent 0 37%, rgba(73, 199, 149, 0.13) 37.2% 37.7%, transparent 38% 49%, rgba(53, 169, 244, 0.1) 49.2% 49.7%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(240, 68, 81, 0.23), transparent 48%);
  border-radius: 50%;
}

.trips-hero::after {
  top: 0;
  right: 0;
  width: 48%;
  height: 100%;
  background:
    linear-gradient(145deg, transparent 0 48%, rgba(255, 255, 255, 0.04) 48.2% 48.7%, transparent 49%),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(255, 255, 255, 0.025) 59px 60px);
  mask-image: linear-gradient(to left, #000, transparent);
}

.trips-hero > * { position: relative; z-index: 1; }
.trips-hero .eyebrow { color: #ff6571; }
.trips-hero h1 {
  max-width: 800px;
  margin: 8px 0 12px;
  font-size: clamp(2.45rem, 5vw, 5rem);
  font-weight: 620;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.trips-hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 0;
  color: #9fb0b8;
  line-height: 1.55;
}

.trips-hero-actions {
  display: grid;
  min-width: 190px;
  justify-items: stretch;
  gap: 10px;
}

.trips-hero-actions .state-pill {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  color: #b8c4c9;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  gap: 8px;
}

.trips-hero-actions .state-pill i {
  width: 7px;
  height: 7px;
  background: #74838a;
  border-radius: 50%;
}

.trips-hero-actions .state-pill.online { color: #7ce0b7; }
.trips-hero-actions .state-pill.online i { background: #53d5a1; box-shadow: 0 0 0 5px rgba(83, 213, 161, 0.12); }
.trips-hero-actions .state-pill.error { color: #ff8791; }
.trips-hero-actions .state-pill.error i { background: #ff6571; }
.trips-hero-actions .button { min-height: 44px; color: white; border-color: rgba(255, 255, 255, 0.18); }
.trips-hero-actions .trip-refresh { justify-self: end; }

.journey-totals {
  display: grid;
  margin: 18px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.journey-totals article {
  position: relative;
  min-width: 0;
  padding: 20px 22px;
}

.journey-totals article + article::before {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;
  width: 1px;
  background: var(--line);
  content: "";
}

.journey-totals span,
.trip-metric-grid span,
.trip-list-copy small,
.trip-list-values small {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 780;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.journey-totals strong {
  display: block;
  overflow: hidden;
  margin: 5px 0 2px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-totals small,
.trip-metric-grid small {
  color: var(--muted);
  font-size: 0.67rem;
}

.journey-workspace {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
}

.trip-library {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  padding: 20px;
}

.trip-list {
  display: grid;
  overflow: auto;
  max-height: calc(100vh - 210px);
  margin: 0 -7px;
  padding: 0 7px 8px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  gap: 7px;
}

.trip-list-item {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 76px;
  align-items: center;
  padding: 12px 12px 12px 8px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}

.trip-list-item:hover { background: var(--surface-soft); }
.trip-list-item:active { transform: translateY(1px); }
.trip-list-item.active {
  background: linear-gradient(100deg, var(--danger-soft), transparent 90%);
  border-color: rgba(215, 25, 32, 0.22);
}

.trip-list-timeline {
  position: relative;
  display: flex;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.trip-list-timeline::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 10px;
  width: 1px;
  background: linear-gradient(var(--green), var(--red));
  content: "";
}

.trip-list-timeline i {
  z-index: 1;
  width: 7px;
  height: 7px;
  background: var(--surface);
  border: 2px solid var(--green);
  border-radius: 50%;
}

.trip-list-timeline i:last-child { border-color: var(--red); }
.trip-list-copy,
.trip-list-values { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.trip-list-copy strong { overflow: hidden; font-size: 0.81rem; text-overflow: ellipsis; white-space: nowrap; }
.trip-list-copy small,
.trip-list-values small { font-size: 0.56rem; letter-spacing: 0.045em; }
.trip-list-values { align-items: flex-end; }
.trip-list-values strong { color: var(--red); font-size: 0.88rem; }
.trip-load-more { width: 100%; min-height: 44px; margin-top: 10px; }

.trip-empty,
.trip-detail-empty {
  color: var(--muted);
  text-align: center;
}

.trip-empty { padding: 42px 18px; line-height: 1.55; }
.trip-insight { min-width: 0; padding: 0; }
.trip-detail-empty { display: grid; min-height: 540px; place-content: center; padding: 40px; }
.trip-detail-empty h2 { margin: 20px 0 8px; color: var(--ink); font-size: 1.6rem; letter-spacing: -0.04em; }
.trip-detail-empty p { max-width: 390px; margin: 0; line-height: 1.55; }

.route-mark {
  position: relative;
  display: flex;
  width: 112px;
  height: 44px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.route-mark::before {
  position: absolute;
  right: 9px;
  left: 9px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), #35a9f4, var(--red));
  content: "";
}

.route-mark i { z-index: 1; width: 14px; height: 14px; background: var(--surface); border: 3px solid var(--green); border-radius: 50%; }
.route-mark i:nth-child(2) { width: 10px; height: 10px; border-color: #35a9f4; }
.route-mark i:last-child { border-color: var(--red); }

.trip-detail-content { padding: clamp(20px, 3vw, 34px); }
.trip-detail-header,
.trip-route-card > header,
.trip-chart-card > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.trip-detail-header h2 { margin: 5px 0 4px; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -0.055em; }
.trip-detail-header > div:first-child > p:last-child { margin: 0; color: var(--muted); }
.export-actions { display: flex; gap: 8px; }
.export-actions .button { min-width: 74px; min-height: 42px; }

.trip-metric-grid {
  display: grid;
  overflow: hidden;
  margin: 24px 0 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trip-metric-grid article { position: relative; min-width: 0; padding: 18px; }
.trip-metric-grid article:not(:nth-child(4n + 1))::before { position: absolute; top: 16px; bottom: 16px; left: 0; width: 1px; background: var(--line); content: ""; }
.trip-metric-grid article:nth-child(n + 5)::after { position: absolute; top: 0; right: 16px; left: 16px; height: 1px; background: var(--line); content: ""; }
.trip-metric-grid strong { display: block; overflow: hidden; margin: 5px 0 2px; font-size: clamp(1.3rem, 2.1vw, 1.9rem); font-weight: 650; letter-spacing: -0.045em; text-overflow: ellipsis; white-space: nowrap; }
.trip-metric-grid .metric-primary strong { color: var(--red); }

.trip-readout {
  display: grid;
  align-items: start;
  margin: 18px 0;
  padding: 20px;
  color: #edf3f5;
  background:
    radial-gradient(circle at 92% 0%, rgba(53, 169, 244, 0.13), transparent 34%),
    linear-gradient(120deg, #0d1d25, #142b34);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  grid-template-columns: minmax(150px, 0.6fr) minmax(0, 1.4fr);
  gap: 20px;
}

.trip-readout header { padding: 3px 0 0; }
.trip-readout .eyebrow { color: #ff6b75; }
.trip-readout h3 { margin: 5px 0 0; font-size: 1.3rem; letter-spacing: -0.035em; }
.trip-readout-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trip-readout-grid article { position: relative; min-width: 0; padding: 3px 16px 3px 18px; }
.trip-readout-grid article::before { position: absolute; top: 2px; bottom: 2px; left: 0; width: 2px; background: linear-gradient(#35a9f4, #31bf88); border-radius: 2px; content: ""; }
.trip-readout-grid span { color: #8fa3ac; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.trip-readout-grid strong { display: block; margin: 5px 0 3px; overflow: hidden; font-size: clamp(1.15rem, 2vw, 1.65rem); font-variant-numeric: tabular-nums; letter-spacing: -0.04em; text-overflow: ellipsis; white-space: nowrap; }
.trip-readout-grid small { display: block; color: #9fb0b8; font-size: 0.64rem; line-height: 1.45; text-wrap: pretty; }

.trip-route-card,
.trip-chart-card {
  margin-top: 18px;
  padding: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.trip-route-card h3,
.trip-chart-card h3 { margin: 4px 0 0; font-size: 1.25rem; letter-spacing: -0.03em; }
.trip-mode-switch { display: flex; overflow: auto; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.trip-mode-switch button { min-height: 40px; padding: 0 12px; color: var(--muted); background: transparent; border: 0; border-radius: 999px; font-size: 0.65rem; font-weight: 800; transition: color 180ms var(--ease), background 180ms var(--ease), transform 180ms var(--ease); }
.trip-mode-switch button:active { transform: scale(0.98); }
.trip-mode-switch button.active { color: white; background: var(--deep); box-shadow: 0 4px 16px rgba(7, 19, 25, 0.14); }

.trip-map-shell { position: relative; overflow: hidden; margin-top: 16px; background: var(--canvas); border: 1px solid var(--line); border-radius: 14px; }
#trip-map { width: 100%; height: min(48vw, 460px); min-height: 350px; }
.trip-map-empty { position: absolute; z-index: 500; inset: 0; display: grid; place-items: center; padding: 30px; color: var(--muted); text-align: center; background: var(--surface-soft); }
.trip-map-legend { position: absolute; z-index: 500; right: 12px; bottom: 12px; display: flex; padding: 8px 10px; color: #edf3f5; background: rgba(9, 22, 28, 0.9); border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 999px; backdrop-filter: blur(14px); gap: 10px; font-size: 0.58rem; font-weight: 750; }
.trip-map-legend span { display: flex; align-items: center; gap: 5px; }
.trip-map-legend b { font: inherit; white-space: nowrap; }
.trip-map-legend i { width: 13px; height: 3px; border-radius: 999px; }
.trip-map-legend .route-low { background: #35a9f4; }
.trip-map-legend .route-mid { background: #31bf88; }
.trip-map-legend .route-high { background: #ef4053; }

.trip-chart-shell { position: relative; overflow: hidden; min-height: 210px; margin-top: 16px; }
.trip-chart-shell canvas { display: block; width: 100%; }
.trip-chart-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); text-align: center; }
.trip-chart-summary { margin-top: 8px; color: var(--muted); font-size: 0.72rem; line-height: 1.5; }

.trip-data-notes {
  display: flex;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.67rem;
}

.trip-data-notes span { display: flex; align-items: center; gap: 6px; }
.trip-data-notes span:last-child { margin-left: auto; }
.trip-data-notes i { width: 8px; height: 8px; border-radius: 50%; }
.trip-data-notes .data-measured { background: #35a9f4; }
.trip-data-notes .data-derived { background: #31bf88; }

.telemetry-pair-dialog .dialog-card { max-width: 520px; }
.telemetry-pair-dialog .dialog-card > p:not(.eyebrow):not(.form-error) { color: var(--muted); line-height: 1.55; }
.trip-pair-code { margin: 22px 0 8px; font-size: clamp(1.9rem, 6vw, 3rem); letter-spacing: 0.12em; }
#trip-pair-expiry { margin: 0 0 16px; color: var(--muted); text-align: center; font-size: 0.74rem; }

.diagnostic-cloud {
  margin-top: 28px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.diagnostic-cloud-header,
.diagnostic-report-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.diagnostic-cloud-header h2,
.diagnostic-report-detail-header h3 { margin: 5px 0 7px; letter-spacing: -0.035em; }
.diagnostic-cloud-header p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.5; }
.diagnostic-cloud-actions { display: flex; align-items: center; gap: 10px; }
.diagnostic-cloud-actions .state-pill { display: flex; min-height: 38px; align-items: center; gap: 8px; white-space: nowrap; }
.diagnostic-cloud-actions .state-pill i { width: 7px; height: 7px; background: var(--muted); border-radius: 50%; }
.diagnostic-cloud-actions .state-pill.online i { background: var(--green); }
.diagnostic-cloud-actions .state-pill.error i { background: var(--red); }

.diagnostic-cloud-workspace {
  display: grid;
  grid-template-columns: minmax(250px, 0.36fr) minmax(0, 1fr);
  overflow: hidden;
  margin-top: 22px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.diagnostic-report-library { min-width: 0; padding: 18px; border-right: 1px solid var(--line); }
.diagnostic-report-library h3 { margin: 4px 0 0; font-size: 1.05rem; }
.diagnostic-report-list { display: grid; max-height: 520px; margin-top: 14px; overflow: auto; gap: 8px; }
.diagnostic-report-item {
  display: grid;
  width: 100%;
  min-height: 74px;
  padding: 13px 14px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 13px;
  gap: 4px;
}
.diagnostic-report-item:hover { background: var(--surface); }
.diagnostic-report-item.active { background: var(--surface); border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.diagnostic-report-item strong { overflow: hidden; font-size: 0.8rem; text-overflow: ellipsis; white-space: nowrap; }
.diagnostic-report-item span { color: var(--muted); font-size: 0.66rem; }
.diagnostic-report-item small { color: var(--muted); font-size: 0.62rem; font-variant-numeric: tabular-nums; }

.diagnostic-report-detail { min-width: 0; min-height: 430px; padding: clamp(18px, 3vw, 28px); background: var(--surface); }
.diagnostic-mark { display: grid; width: 54px; height: 54px; place-items: center; margin: 0 auto 12px; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 50%; font-size: 1.4rem; }
.diagnostic-report-detail-header .export-actions { flex-wrap: wrap; }
.diagnostic-report-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 20px 0 14px; border: 1px solid var(--line); border-radius: 14px; }
.diagnostic-report-metrics div { min-width: 0; padding: 13px 15px; }
.diagnostic-report-metrics div + div { border-left: 1px solid var(--line); }
.diagnostic-report-metrics dt { color: var(--muted); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.diagnostic-report-metrics dd { margin: 5px 0 0; font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.diagnostic-report-text {
  width: 100%;
  min-height: 330px;
  max-height: 58vh;
  resize: vertical;
  padding: 16px;
  color: var(--ink-soft);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 14px;
  font: 0.7rem/1.6 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: pre;
}
.diagnostic-report-digest { overflow: hidden; margin: 10px 0 0; color: var(--muted); font-size: 0.64rem; text-overflow: ellipsis; white-space: nowrap; }
.diagnostic-report-digest code { color: var(--ink-soft); }

:root[data-theme="dark"] .journey-totals,
:root[data-theme="dark"] .trip-insight,
:root[data-theme="dark"] .trip-library,
:root[data-theme="dark"] .diagnostic-cloud { border-color: rgba(161, 184, 194, 0.16); }
:root[data-theme="dark"] .trip-list-item.active { border-color: rgba(255, 82, 93, 0.27); }

@media (max-width: 1080px) {
  .topbar { flex-wrap: wrap; padding-block: 10px; gap: 8px 16px; }
  .cockpit-switcher { order: 3; width: 100%; justify-content: center; }
  .cockpit-switcher button { flex: 1; justify-content: center; }
  .trips-cockpit { padding-top: 28px; }
  .journey-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .journey-totals article:nth-child(4)::before { display: none; }
  .journey-totals article:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .journey-workspace { grid-template-columns: 1fr; }
  .trip-library { position: static; max-height: none; }
  .trip-list { max-height: 330px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diagnostic-cloud-workspace { grid-template-columns: 1fr; }
  .diagnostic-report-library { border-right: 0; border-bottom: 1px solid var(--line); }
  .diagnostic-report-list { max-height: 280px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 740px) {
  .trips-hero { min-height: 0; align-items: stretch; flex-direction: column; padding: 28px 22px; }
  .trips-hero h1 { font-size: clamp(2.4rem, 12vw, 3.7rem); }
  .trips-hero-actions { width: 100%; grid-template-columns: 1fr auto; }
  .trips-hero-actions .state-pill { grid-column: 1 / -1; }
  .trips-hero-actions .trip-refresh { justify-self: stretch; }
  .journey-totals { overflow-x: auto; grid-template-columns: repeat(5, minmax(145px, 1fr)); scroll-snap-type: x proximity; }
  .journey-totals article { scroll-snap-align: start; }
  .journey-totals article:nth-child(n + 4) { border-top: 0; }
  .journey-totals article:nth-child(4)::before { display: block; }
  .trip-list { display: grid; grid-template-columns: 1fr; }
  .diagnostic-cloud-header,
  .diagnostic-report-detail-header { align-items: stretch; flex-direction: column; }
  .diagnostic-cloud-actions { justify-content: space-between; }
  .diagnostic-report-list { grid-template-columns: 1fr; }
  .diagnostic-report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diagnostic-report-metrics div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .diagnostic-report-metrics div:nth-child(4) { border-top: 1px solid var(--line); }
  .trip-detail-content { padding: 18px; }
  .trip-detail-header,
  .trip-route-card > header,
  .trip-chart-card > header { align-items: stretch; flex-direction: column; }
  .export-actions { width: 100%; }
  .export-actions .button { flex: 1; }
  .trip-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trip-metric-grid article:not(:nth-child(4n + 1))::before { display: none; }
  .trip-metric-grid article:nth-child(even)::before { position: absolute; display: block; top: 16px; bottom: 16px; left: 0; width: 1px; background: var(--line); content: ""; }
  .trip-metric-grid article:nth-child(n + 3)::after { position: absolute; display: block; top: 0; right: 14px; left: 14px; height: 1px; background: var(--line); content: ""; }
  .trip-readout { grid-template-columns: 1fr; }
  .trip-mode-switch { width: 100%; }
  .trip-mode-switch button { min-height: 44px; flex: 1; }
  #trip-map { min-height: 310px; }
  .trip-map-legend { right: 8px; bottom: 8px; left: 8px; justify-content: center; }
  .trip-data-notes { align-items: flex-start; flex-direction: column; gap: 9px; }
  .trip-data-notes span:last-child { margin-left: 0; }
}

@media (max-width: 520px) {
  .topbar-status { gap: 8px; }
  .topbar .live-badge { display: none; }
  .topbar-theme-control .theme-label { display: none; }
  .trip-library { padding: 16px; }
  .trip-route-card,
  .trip-chart-card { padding: 14px; }
  .trip-readout { padding: 16px; }
  .trip-readout-grid { grid-template-columns: 1fr; gap: 15px; }
  .trip-readout-grid article { padding-block: 1px; }
  .trip-mode-switch button { padding-inline: 7px; font-size: 0.58rem; }
  .trip-map-legend { border-radius: 12px; flex-wrap: wrap; }
}

/* EV Connected public experience */

.button,
.text-link,
.public-nav a,
.public-footer a {
  text-decoration: none;
}

.login-view {
  display: block;
  min-height: 100vh;
  background: var(--canvas);
}

.public-topbar {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1520px, calc(100% - 64px));
  min-height: calc(86px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
}

.public-wordmark small,
.public-footer .wordmark small {
  color: #91a5af;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
}

.public-nav a {
  color: #b8c5cb;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  transition: color 180ms ease;
}

.public-nav a:hover {
  color: white;
}

.public-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.public-auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.public-theme-control {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.public-theme-control button,
.public-theme-control button:hover,
.public-theme-control button.active {
  color: white;
}

.public-theme-control button.active {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2);
}

.public-signin,
.public-register {
  min-height: 42px;
  padding-inline: 17px;
  font-size: 0.74rem;
}

.public-signin {
  color: white;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.2);
}

.public-signin:hover {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.public-main {
  width: 100%;
  max-width: none;
  margin: 0;
}

.landing-hero {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: min(940px, 100vh);
  padding: clamp(145px, 14vh, 190px) max(32px, calc((100vw - 1520px) / 2)) 90px;
  color: white;
  background:
    radial-gradient(circle at 78% 40%, rgba(231, 48, 62, 0.2), transparent 29rem),
    radial-gradient(circle at 20% 18%, rgba(72, 130, 151, 0.16), transparent 27rem),
    repeating-linear-gradient(90deg, transparent 0 99px, rgba(255, 255, 255, 0.025) 100px),
    linear-gradient(145deg, #0d2029 0%, #081319 54%, #050c10 100%);
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(34px, 5vw, 86px);
}

.landing-hero::before {
  position: absolute;
  right: -14vw;
  bottom: -26vw;
  width: 64vw;
  height: 64vw;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.018), 0 0 0 160px rgba(255, 255, 255, 0.012);
}

.landing-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 720px;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  margin: 0 0 clamp(42px, 7vh, 72px);
  padding: 9px 13px;
  color: #c4d0d6;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  gap: 9px;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.availability-pill span {
  width: 7px;
  height: 7px;
  background: #58d6a5;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(88, 214, 165, 0.7);
  animation: live-breathe 2.8s ease-in-out infinite;
}

.landing-copy > .eyebrow {
  color: #9caeb7;
}

.landing-copy h1 {
  max-width: 820px;
  margin: 15px 0 26px;
  font-size: clamp(4rem, 6.8vw, 7.4rem);
  font-weight: 610;
  letter-spacing: -0.078em;
  line-height: 0.87;
}

.landing-copy h1 em {
  color: #ff5663;
  font-style: normal;
}

.landing-intro {
  max-width: 650px;
  margin: 0;
  color: #b7c4ca;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.7;
}

.landing-actions {
  display: flex;
  align-items: center;
  margin-top: 34px;
  gap: 26px;
}

.landing-actions .button {
  min-height: 54px;
  padding-inline: 24px;
}

.landing-signin {
  color: white;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.22);
}

.landing-signin:hover {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
}

.text-link {
  color: #d4dde1;
  font-size: 0.82rem;
  font-weight: 760;
}

.text-link span {
  display: inline-block;
  margin-left: 6px;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateY(3px);
}

.landing-trust {
  display: flex;
  margin: clamp(50px, 8vh, 82px) 0 0;
  gap: 0;
}

.landing-trust div {
  min-width: 120px;
  padding-right: 28px;
}

.landing-trust div + div {
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.landing-trust dt {
  color: white;
  font-size: 1.1rem;
  font-weight: 820;
}

.landing-trust dd {
  margin: 5px 0 0;
  color: #7f939d;
  font-size: 0.65rem;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing-visual {
  position: relative;
  z-index: 2;
  align-self: center;
  overflow: hidden;
  min-height: 650px;
  background:
    radial-gradient(circle at 50% 49%, rgba(223, 47, 60, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(28, 53, 64, 0.72), rgba(9, 24, 31, 0.78));
  border: 1px solid rgba(172, 197, 207, 0.14);
  border-radius: 38px;
  box-shadow: 0 45px 120px rgba(0, 0, 0, 0.4), inset 0 1px rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

.visual-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.52;
  background-image:
    linear-gradient(rgba(151, 180, 192, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 180, 192, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}

.visual-topline {
  position: absolute;
  z-index: 5;
  top: 28px;
  right: 30px;
  left: 30px;
  display: flex;
  justify-content: space-between;
  color: #8ea2ac;
  font-size: 0.64rem;
  font-weight: 820;
  letter-spacing: 0.12em;
}

.visual-topline span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.visual-topline i {
  width: 7px;
  height: 7px;
  background: #58d6a5;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(88, 214, 165, 0.74);
}

.visual-topline b {
  color: #d7e0e4;
}

.visual-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(166, 191, 201, 0.13);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-a {
  width: 430px;
  height: 430px;
}

.orbit-b {
  width: 560px;
  height: 560px;
  border-style: dashed;
  animation: orbit-spin 45s linear infinite;
}

.landing-car {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(51%, 370px);
  max-height: 500px;
  object-fit: contain;
  filter: drop-shadow(0 35px 30px rgba(0, 0, 0, 0.52));
  transform: translate(-50%, -51%);
}

.visual-chip {
  position: absolute;
  z-index: 4;
  min-width: 150px;
  padding: 15px 17px;
  background: rgba(9, 23, 30, 0.82);
  border: 1px solid rgba(177, 203, 213, 0.15);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.visual-chip > span {
  display: block;
  color: #758c97;
  font-size: 0.57rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.visual-chip > strong {
  display: block;
  margin-top: 6px;
  color: white;
  font-size: 1.28rem;
}

.visual-chip > small {
  display: block;
  margin-top: 4px;
  color: #91a4ad;
  font-size: 0.65rem;
}

.battery-chip {
  top: 17%;
  left: 5%;
}

.battery-chip > i {
  display: block;
  overflow: hidden;
  height: 4px;
  margin-top: 11px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
}

.battery-chip > i b {
  display: block;
  width: 78%;
  height: 100%;
  background: #58d6a5;
  box-shadow: 0 0 12px rgba(88, 214, 165, 0.6);
}

.lock-chip {
  top: 21%;
  right: 4%;
}

.climate-chip {
  right: 6%;
  bottom: 24%;
}

.visual-location {
  position: absolute;
  z-index: 4;
  bottom: 25%;
  left: 5%;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  color: white;
  background: rgba(9, 23, 30, 0.78);
  border: 1px solid rgba(177, 203, 213, 0.14);
  border-radius: 15px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  gap: 10px;
  backdrop-filter: blur(16px);
}

.visual-location > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: white;
  background: var(--red);
  border-radius: 9px;
}

.visual-location div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.visual-location b {
  font-size: 0.7rem;
}

.visual-location small {
  color: #8fa2ab;
  font-size: 0.6rem;
}

.visual-route {
  position: absolute;
  z-index: 5;
  right: 30px;
  bottom: 25px;
  left: 30px;
  display: flex;
  align-items: center;
  padding: 15px 18px;
  background: rgba(4, 13, 17, 0.72);
  border: 1px solid rgba(177, 203, 213, 0.12);
  border-radius: 15px;
  backdrop-filter: blur(18px);
}

.route-node {
  display: flex;
  align-items: center;
  color: #8499a3;
  gap: 7px;
  font-size: 0.61rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-node i {
  width: 7px;
  height: 7px;
  background: #58d6a5;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(88, 214, 165, 0.5);
}

.visual-route > b {
  height: 1px;
  margin: 0 13px;
  background: repeating-linear-gradient(90deg, rgba(88, 214, 165, 0.6) 0 4px, transparent 4px 9px);
  background-size: 18px 1px;
  animation: signal-flow 1.6s linear infinite;
  flex: 1;
}

.platform-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 18px max(24px, calc((100vw - 1420px) / 2));
  color: var(--muted);
  background: var(--surface-raised);
  border-bottom: 1px solid var(--line);
  gap: 20px;
  font-size: 0.62rem;
  font-weight: 820;
  letter-spacing: 0.11em;
}

.platform-proof i {
  width: 4px;
  height: 4px;
  background: var(--red);
  border-radius: 50%;
}

.feature-showcase,
.product-gallery,
.compatibility-section,
.beta-commitment,
.account-stage {
  width: min(1420px, calc(100% - 48px));
  margin-inline: auto;
}

.feature-showcase {
  padding: clamp(100px, 12vw, 170px) 0;
}

.section-intro {
  display: grid;
  align-items: end;
  margin-bottom: 54px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  column-gap: 60px;
}

.section-intro .eyebrow {
  grid-column: 1 / -1;
}

.section-intro h2,
.product-gallery-intro h2,
.compatibility-copy h2,
.account-stage-copy h2 {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: clamp(3rem, 5.3vw, 5.8rem);
  font-weight: 620;
  letter-spacing: -0.07em;
  line-height: 0.94;
}

.section-intro > p:last-child,
.product-gallery-intro > p,
.compatibility-copy > p:last-child,
.account-stage-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.feature-card::after {
  position: absolute;
  right: -90px;
  bottom: -100px;
  width: 240px;
  height: 240px;
  content: "";
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 0 42px color-mix(in srgb, var(--line) 35%, transparent);
}

.feature-card-large {
  min-height: 430px;
  grid-row: span 2;
}

.feature-card-dark {
  color: white;
  background:
    radial-gradient(circle at 80% 10%, rgba(239, 51, 64, 0.23), transparent 17rem),
    linear-gradient(145deg, #122a34, #071319);
  border-color: rgba(153, 184, 196, 0.13);
  grid-column: 1 / -1;
}

.feature-card-dark .eyebrow,
.feature-card-dark > p {
  color: #91a5af;
}

.feature-index {
  position: absolute;
  top: 28px;
  right: 30px;
  color: color-mix(in srgb, var(--muted) 65%, transparent);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.feature-card h3 {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 20px 0 14px;
  font-size: clamp(1.9rem, 3vw, 3.15rem);
  font-weight: 630;
  letter-spacing: -0.055em;
  line-height: 1;
}

.feature-card > p:last-of-type {
  position: relative;
  z-index: 1;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
}

.mini-status-board {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 560px;
  margin-top: 48px;
  padding: 8px 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.mini-status-board span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
}

.mini-status-board span:last-child {
  border: 0;
}

.mini-status-board b {
  color: var(--ink);
}

.mini-status-board i {
  width: 8px;
  height: 8px;
  margin-right: auto;
  margin-left: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 13px color-mix(in srgb, var(--green) 55%, transparent);
}

.privacy-mark {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin-top: 40px;
}

.privacy-mark span,
.privacy-mark b {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.privacy-mark span {
  color: #5fe0ad;
}

.privacy-mark b {
  color: white;
  font-size: 0.72rem;
}

.privacy-mark i {
  width: 100px;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(95, 224, 173, 0.7) 0 4px, transparent 4px 9px);
}

.product-gallery {
  padding: 0 0 clamp(100px, 12vw, 170px);
}

.product-gallery-intro {
  display: grid;
  align-items: end;
  margin-bottom: 50px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  gap: 60px;
}

.product-gallery-intro h2 {
  margin-top: 14px;
}

.product-gallery-intro > p {
  max-width: 500px;
  justify-self: end;
}

.product-gallery-board {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  padding: clamp(24px, 4vw, 58px);
  background:
    radial-gradient(circle at 86% 16%, rgba(239, 51, 64, 0.2), transparent 25rem),
    radial-gradient(circle at 8% 100%, rgba(55, 173, 177, 0.13), transparent 28rem),
    linear-gradient(145deg, #10242d, #071319 62%, #111319);
  border: 1px solid rgba(151, 181, 193, 0.16);
  border-radius: 38px;
  box-shadow: 0 42px 110px rgba(3, 15, 21, 0.24);
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.36fr);
  gap: clamp(22px, 3vw, 38px);
}

.product-gallery-board::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(157, 190, 202, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 190, 202, 0.16) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(120deg, black, transparent 72%);
}

.product-shot {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin: 0;
}

.product-shot-overview {
  grid-column: 1;
  grid-row: 1;
}

.product-shot-signals {
  grid-column: 1;
  grid-row: 2;
}

.product-shot-mobile {
  align-self: center;
  width: min(100%, 330px);
  justify-self: center;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.capture-window {
  overflow: hidden;
  background: #09161c;
  border: 1px solid rgba(170, 200, 211, 0.2);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 5, 8, 0.42);
  transition: border-color 220ms ease, transform 220ms var(--ease);
}

.product-shot:hover .capture-window {
  border-color: rgba(170, 200, 211, 0.36);
  transform: translateY(-3px);
}

.capture-bar {
  display: grid;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  color: #8297a1;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(170, 200, 211, 0.12);
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.capture-bar > span {
  display: flex;
  gap: 6px;
}

.capture-bar i {
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.19);
  border-radius: 50%;
}

.capture-bar i:first-child {
  background: #ef3340;
}

.capture-bar b {
  color: #9aadb6;
  font-weight: 700;
  white-space: nowrap;
}

.capture-bar em {
  justify-self: end;
  color: #5fe0ad;
  font-style: normal;
}

.capture-window img,
.capture-phone img {
  display: block;
  width: 100%;
  height: auto;
}

.capture-window-compact {
  border-radius: 18px;
}

.capture-phone {
  position: relative;
  overflow: hidden;
  padding: 8px;
  background: linear-gradient(145deg, #33444b, #0b1418 34%, #25353c);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 38px;
  box-shadow: 0 34px 90px rgba(0, 4, 7, 0.58);
  transition: transform 220ms var(--ease);
}

.product-shot-mobile:hover .capture-phone {
  transform: translateY(-5px) rotate(0.5deg);
}

.capture-phone img {
  border-radius: 30px;
}

.capture-speaker {
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 50%;
  width: 54px;
  height: 5px;
  background: rgba(3, 8, 10, 0.9);
  border-radius: 999px;
  transform: translateX(-50%);
}

.product-shot figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 15px 3px 0;
  color: #8ba0aa;
  gap: 14px;
}

.product-shot figcaption span {
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.product-shot figcaption strong {
  color: #eef5f7;
  font-size: 0.75rem;
  font-weight: 650;
  text-align: right;
}

.product-shot-mobile figcaption {
  align-items: flex-start;
  flex-direction: column;
  padding-inline: 8px;
  gap: 6px;
}

.product-shot-mobile figcaption strong {
  text-align: left;
}

.product-gallery-note {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 18px 4px 0;
  color: var(--muted);
  gap: 9px;
  font-size: 0.7rem;
  line-height: 1.5;
  text-align: right;
}

.product-gallery-note span {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 12px color-mix(in srgb, var(--green) 50%, transparent);
}

.compatibility-section {
  display: grid;
  align-items: center;
  padding: clamp(88px, 11vw, 150px) clamp(28px, 5vw, 72px);
  background:
    radial-gradient(circle at 15% 0%, rgba(239, 51, 64, 0.14), transparent 23rem),
    linear-gradient(145deg, #102631, #08151b);
  border: 1px solid rgba(151, 181, 193, 0.14);
  border-radius: 38px;
  box-shadow: 0 40px 110px rgba(3, 15, 21, 0.22);
  grid-template-columns: minmax(0, 0.85fr) minmax(520px, 1.15fr);
  gap: clamp(48px, 7vw, 100px);
}

.compatibility-copy .eyebrow,
.compatibility-copy > p:last-child {
  color: #91a6b0;
}

.compatibility-copy h2 {
  color: white;
  font-size: clamp(3.1rem, 5vw, 5.5rem);
}

.compatibility-copy > p:last-child {
  margin-top: 30px;
}

.vehicle-roadmap {
  display: grid;
  gap: 12px;
}

.vehicle-profile {
  position: relative;
  padding: 24px 26px;
  color: white;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  transition: transform 220ms var(--ease), background 220ms ease, border-color 220ms ease;
}

.vehicle-profile:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.17);
  transform: translateX(-6px);
}

.vehicle-profile > span {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 6px 9px;
  color: #94a7b0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.vehicle-profile.active {
  background: linear-gradient(135deg, rgba(239, 51, 64, 0.18), rgba(255, 255, 255, 0.055));
  border-color: rgba(239, 83, 96, 0.35);
}

.vehicle-profile.active > span {
  color: #62dcae;
}

.vehicle-profile > strong {
  display: block;
  color: #8ca0aa;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vehicle-profile h3 {
  margin: 7px 0 5px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  letter-spacing: -0.035em;
}

.vehicle-profile small {
  color: #7f949e;
}

.beta-commitment {
  display: grid;
  align-items: center;
  margin-top: 30px;
  padding: clamp(36px, 5vw, 64px);
  color: white;
  background:
    radial-gradient(circle at 0% 100%, rgba(95, 224, 173, 0.13), transparent 19rem),
    radial-gradient(circle at 100% 0%, rgba(239, 51, 64, 0.22), transparent 22rem),
    linear-gradient(125deg, #112a34, #0b171d 62%, #1b1116);
  border: 1px solid rgba(151, 181, 193, 0.15);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(3, 15, 21, 0.18);
  grid-template-columns: minmax(0, 0.75fr) minmax(380px, 1fr);
  gap: clamp(38px, 7vw, 90px);
}

.beta-lockup {
  display: grid;
  align-items: start;
  grid-template-columns: 13px minmax(0, 1fr);
  gap: 18px;
}

.beta-signal {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  background: #5fe0ad;
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(95, 224, 173, 0.1), 0 0 28px rgba(95, 224, 173, 0.35);
}

.beta-commitment .eyebrow {
  color: #8ea6b0;
}

.beta-commitment h2 {
  margin: 10px 0 0;
  color: white;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.beta-copy {
  display: grid;
  gap: 17px;
}

.beta-copy p {
  margin: 0;
  color: #a7bac2;
  font-size: clamp(0.78rem, 1.2vw, 0.94rem);
  line-height: 1.75;
}

.beta-copy strong {
  color: white;
}

.account-stage {
  display: grid;
  align-items: center;
  padding: clamp(120px, 14vw, 190px) clamp(0px, 3vw, 40px);
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 0.72fr);
  gap: clamp(60px, 9vw, 140px);
}

.account-stage-copy > p {
  max-width: 610px;
  margin-top: 24px;
}

.account-stage-copy ol {
  display: grid;
  max-width: 620px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  gap: 12px;
}

.account-stage-copy li {
  display: grid;
  align-items: center;
  min-height: 74px;
  padding: 14px 17px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
}

.account-stage-copy li > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: var(--deep);
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 850;
}

.account-stage-copy li div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-stage-copy li strong {
  font-size: 0.83rem;
}

.account-stage-copy li small {
  color: var(--muted);
  font-size: 0.7rem;
}

.account-stage .login-panel {
  min-height: auto;
  padding: 0;
  background: transparent;
}

.account-stage .login-card {
  width: 100%;
}

.account-stage .login-card > .eyebrow {
  margin-top: 52px;
}

.public-footer {
  display: grid;
  align-items: center;
  min-height: 150px;
  padding: 34px max(32px, calc((100vw - 1420px) / 2));
  color: white;
  background: #071319;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
}

.public-footer p {
  margin: 0;
  color: #6f858f;
  font-size: 0.7rem;
  text-align: center;
}

.public-footer nav {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
}

.public-footer nav a {
  color: #8da1aa;
  font-size: 0.7rem;
  font-weight: 750;
}

/* Secure account recovery */

.recovery-page {
  min-height: 100vh;
}

.recovery-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, 1420px);
  min-height: 92px;
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}

.recovery-main {
  display: grid;
  align-items: center;
  width: min(1240px, calc(100% - 48px));
  min-height: calc(100vh - 184px);
  padding: clamp(64px, 9vw, 120px) 0;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.72fr);
  gap: clamp(70px, 10vw, 150px);
}

.recovery-copy {
  position: relative;
}

.recovery-copy::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 18%;
  width: 430px;
  height: 430px;
  content: "";
  background: radial-gradient(circle, color-mix(in srgb, var(--red) 12%, transparent), transparent 68%);
  transform: translate(-50%, -50%);
}

.recovery-copy h1 {
  max-width: 760px;
  margin: 18px 0 28px;
  color: var(--ink);
  font-size: clamp(3.8rem, 7.2vw, 7rem);
  font-weight: 620;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.recovery-copy > p:last-of-type {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.75;
}

.recovery-trust {
  display: flex;
  margin-top: 40px;
  color: var(--muted);
  gap: 12px;
  flex-wrap: wrap;
}

.recovery-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  gap: 8px;
  font-size: 0.65rem;
  font-weight: 780;
}

.recovery-trust i {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px color-mix(in srgb, var(--green) 55%, transparent);
}

.recovery-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: clamp(28px, 4vw, 46px);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--red) 10%, transparent), transparent 18rem),
    var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.08);
}

.recovery-card::after {
  position: absolute;
  right: -100px;
  bottom: -120px;
  width: 250px;
  height: 250px;
  pointer-events: none;
  content: "";
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 0 42px color-mix(in srgb, var(--line) 32%, transparent);
}

.recovery-card > div {
  position: relative;
  z-index: 1;
}

.recovery-card-mark {
  display: flex;
  align-items: center;
  margin-bottom: 52px;
  gap: 12px;
}

.recovery-card-mark span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #f13a47, var(--red-dark));
  border-radius: 11px;
  box-shadow: 0 10px 26px rgba(216, 40, 55, 0.28);
  font-size: 0.82rem;
  font-weight: 900;
}

.recovery-card-mark p {
  margin: 0;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.recovery-card h2 {
  margin: 9px 0 12px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.05rem);
  font-weight: 640;
  letter-spacing: -0.055em;
  line-height: 1;
}

.recovery-card .form-intro {
  font-size: 0.84rem;
}

.recovery-card-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  gap: 18px;
}

.recovery-card-footer a {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
}

.recovery-success-view > span {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  place-items: center;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 10%, var(--surface-soft));
  border: 1px solid color-mix(in srgb, var(--green) 26%, var(--line));
  border-radius: 50%;
  font-size: 1.25rem;
}

.recovery-success-view > p:not(.eyebrow) {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.65;
}

.recovery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, 1420px);
  min-height: 92px;
  margin-inline: auto;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.66rem;
}

.recovery-footer nav {
  display: flex;
  gap: 20px;
}

.recovery-footer a {
  color: var(--muted);
  font-weight: 750;
}

@media (max-width: 900px) {
  .recovery-main {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .recovery-copy {
    max-width: 760px;
  }

  .recovery-card {
    width: min(100%, 560px);
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .recovery-topbar,
  .recovery-footer {
    width: calc(100% - 28px);
  }

  .recovery-topbar {
    min-height: 76px;
  }

  .recovery-topbar .wordmark small,
  .recovery-topbar .theme-label {
    display: none;
  }

  .recovery-topbar .theme-control button {
    width: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
  }

  .recovery-main {
    width: calc(100% - 28px);
    padding: 64px 0 80px;
    gap: 48px;
  }

  .recovery-copy h1 {
    font-size: clamp(3.15rem, 16vw, 4.6rem);
  }

  .recovery-card {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .recovery-card-mark {
    margin-bottom: 44px;
  }

  .recovery-card-footer,
  .recovery-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .recovery-footer {
    justify-content: center;
    padding-block: 24px;
    gap: 12px;
  }
}

/* Authenticated Android release card */

.app-download-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 20px;
  color: white;
  background:
    radial-gradient(circle at 100% 0%, rgba(239, 51, 64, 0.25), transparent 13rem),
    linear-gradient(145deg, #16303b, #0b1a21);
  border: 1px solid rgba(147, 181, 194, 0.16);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(4, 16, 22, 0.2);
}

.app-download-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.android-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #071c14;
  background: #5ddd9f;
  border-radius: 13px;
  font-size: 0.83rem;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(93, 221, 159, 0.2);
}

.app-download-card .eyebrow {
  color: #81a0ad;
  font-size: 0.57rem;
}

.app-download-card h3 {
  margin: 5px 0 0;
  color: white;
  font-size: 1rem;
}

.app-download-card > p {
  margin: 16px 0;
  color: #9eb0b8;
  font-size: 0.72rem;
  line-height: 1.6;
}

.app-release-line {
  display: grid;
  align-items: end;
  margin: 0 0 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
}

.app-release-line span,
.app-release-line small {
  color: #78909b;
  font-size: 0.62rem;
}

.app-release-line strong {
  color: white;
  font-size: 0.76rem;
}

.app-release-line small {
  grid-column: 2;
  text-align: right;
}

.install-guide {
  margin-top: 13px;
  color: #9fb1b9;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.install-guide summary {
  padding: 14px 0 2px;
  color: #d8e1e5;
  cursor: pointer;
  font-size: 0.69rem;
  font-weight: 780;
}

.install-guide ol {
  margin: 13px 0 0;
  padding-left: 20px;
  font-size: 0.68rem;
  line-height: 1.55;
}

.install-guide li + li {
  margin-top: 7px;
}

.install-guide p {
  margin: 12px 0 0;
  color: #728994;
  font-size: 0.63rem;
  line-height: 1.5;
}

/* Authenticated installable web app */

.pwa-install-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 20px;
  color: var(--ink);
  background:
    radial-gradient(circle at 105% -5%, color-mix(in srgb, var(--blue) 20%, transparent), transparent 12rem),
    linear-gradient(145deg, var(--surface-raised), color-mix(in srgb, var(--surface-soft) 72%, var(--canvas)));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.pwa-install-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  background: linear-gradient(145deg, #2586b9, #174b69);
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(37, 134, 185, 0.22);
}

.pwa-mark::before {
  position: absolute;
  width: 20px;
  height: 15px;
  border: 2px solid white;
  border-radius: 4px;
  content: "";
  inset: 12px auto auto 10px;
}

.pwa-mark::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border-top: 2px solid white;
  border-right: 2px solid white;
  content: "";
  inset: 8px 8px auto auto;
}

.pwa-mark span::before {
  position: absolute;
  width: 11px;
  height: 2px;
  background: white;
  content: "";
  transform: rotate(-45deg);
  transform-origin: center;
  inset: 12px 8px auto auto;
}

.pwa-install-card .eyebrow {
  color: var(--blue);
  font-size: 0.57rem;
}

.pwa-install-card h3 {
  margin: 5px 0 0;
  font-size: 1rem;
}

.pwa-install-card > p {
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.6;
}

.pwa-status-line {
  display: flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 12px 0;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  gap: 9px;
  font-size: 0.67rem;
  line-height: 1.4;
}

.pwa-status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--green-soft);
}

.pwa-install-card .install-guide {
  color: var(--muted);
  border-color: var(--line);
}

.pwa-install-card .install-guide summary {
  color: var(--ink-soft);
}

.pwa-platform-guide {
  display: grid;
  margin-top: 12px;
  gap: 10px;
}

.pwa-platform-guide p {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 11px;
}

.pwa-platform-guide strong {
  color: var(--ink);
}

@keyframes orbit-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 1180px) {
  .public-topbar {
    width: min(100% - 40px, 1520px);
  }

  .public-nav {
    display: none;
  }

  .landing-hero {
    min-height: auto;
    grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  }

  .landing-visual {
    min-height: 590px;
  }

  .compatibility-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .public-topbar {
    position: absolute;
  }

  .public-theme-control .theme-label {
    display: none;
  }

  .public-theme-control button {
    width: 34px;
    min-width: 34px;
    padding: 0;
  }

  .landing-hero {
    padding-top: calc(128px + env(safe-area-inset-top, 0px));
    grid-template-columns: 1fr;
  }

  .landing-copy {
    max-width: 760px;
  }

  .landing-visual {
    width: 100%;
    min-height: 650px;
  }

  .section-intro,
  .product-gallery-intro,
  .beta-commitment,
  .account-stage {
    grid-template-columns: 1fr;
  }

  .section-intro > p:last-child,
  .product-gallery-intro > p {
    max-width: 620px;
    margin-top: 24px;
    justify-self: start;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card-large {
    min-height: 410px;
    grid-row: auto;
  }

  .product-gallery-board {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  }

  .account-stage {
    gap: 64px;
  }

  .beta-commitment {
    grid-template-columns: 1fr;
  }

  .account-stage .login-panel {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .public-footer {
    grid-template-columns: 1fr;
  }

  .public-footer .wordmark,
  .public-footer nav {
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .public-topbar {
    display: grid;
    align-content: center;
    width: calc(100% - 28px);
    min-height: calc(134px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 48px 46px;
    column-gap: 12px;
    row-gap: 8px;
  }

  .public-topbar .wordmark small,
  .public-topbar .theme-label {
    display: none;
  }

  .public-topbar .wordmark-icon {
    width: 39px;
    height: 39px;
  }

  .public-actions {
    display: contents;
  }

  .public-theme-control {
    grid-column: 2;
    grid-row: 1;
  }

  .public-auth-actions {
    display: grid;
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .public-auth-actions .button {
    min-height: 44px;
    padding-inline: 12px;
    font-size: 0.72rem;
  }

  .landing-hero {
    padding: calc(164px + env(safe-area-inset-top, 0px)) 18px 56px;
  }

  .availability-pill {
    margin-bottom: 26px;
    font-size: 0.58rem;
  }

  .landing-copy h1 {
    font-size: clamp(3rem, 13.5vw, 4rem);
    line-height: 0.91;
  }

  .landing-intro {
    line-height: 1.58;
  }

  .landing-actions {
    display: grid;
    align-items: stretch;
    margin-top: 26px;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr);
    gap: 10px;
  }

  .landing-actions .button {
    width: 100%;
    min-height: 52px;
    padding-inline: 12px;
    gap: 8px;
    font-size: 0.76rem;
  }

  .landing-actions .text-link {
    padding: 8px 2px 0;
    grid-column: 1 / -1;
  }

  .landing-trust {
    margin-top: 38px;
    justify-content: space-between;
  }

  .landing-trust div {
    min-width: 0;
    padding-right: 12px;
  }

  .landing-trust div + div {
    padding-left: 12px;
  }

  .landing-trust dt {
    font-size: 0.95rem;
  }

  .landing-trust dd {
    font-size: 0.52rem;
  }

  .landing-visual {
    min-height: 520px;
    border-radius: 26px;
  }

  .landing-car {
    width: 58%;
  }

  .orbit-a {
    width: 300px;
    height: 300px;
  }

  .orbit-b {
    width: 390px;
    height: 390px;
  }

  .visual-chip {
    min-width: 124px;
    padding: 12px 13px;
  }

  .visual-chip > strong {
    font-size: 1.02rem;
  }

  .battery-chip {
    top: 17%;
    left: 3%;
  }

  .lock-chip {
    top: 20%;
    right: 3%;
  }

  .climate-chip,
  .visual-location {
    display: none;
  }

  .visual-route {
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding-inline: 13px;
  }

  .route-node {
    font-size: 0.53rem;
  }

  .platform-proof {
    overflow: visible;
    justify-content: center;
    min-height: auto;
    padding-block: 20px;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 0.54rem;
    text-align: center;
    white-space: normal;
  }

  .feature-showcase,
  .product-gallery,
  .compatibility-section,
  .beta-commitment,
  .account-stage {
    width: min(100% - 28px, 1420px);
  }

  .feature-showcase {
    padding-block: 92px;
  }

  .section-intro h2,
  .product-gallery-intro h2,
  .compatibility-copy h2,
  .account-stage-copy h2 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .feature-card {
    min-height: 300px;
    padding: 27px 23px;
    border-radius: 22px;
  }

  .feature-card-large {
    min-height: 430px;
  }

  .product-gallery {
    padding-bottom: 92px;
  }

  .product-gallery-intro {
    margin-bottom: 34px;
    gap: 0;
  }

  .product-gallery-board {
    padding: 14px;
    border-radius: 27px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-shot-overview,
  .product-shot-mobile,
  .product-shot-signals {
    width: 100%;
    grid-column: 1;
    grid-row: auto;
  }

  .product-shot-mobile {
    width: min(88%, 330px);
  }

  .capture-bar {
    min-height: 40px;
    padding-inline: 12px;
  }

  .capture-bar b {
    overflow: hidden;
    max-width: 150px;
    text-overflow: ellipsis;
  }

  .product-shot figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .product-shot figcaption strong {
    text-align: left;
  }

  .product-gallery-note {
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 16px;
    text-align: left;
  }

  .compatibility-section {
    padding: 70px 20px 20px;
    border-radius: 27px;
    gap: 42px;
  }

  .beta-commitment {
    margin-top: 18px;
    padding: 32px 24px;
    border-radius: 24px;
    gap: 30px;
  }

  .vehicle-profile {
    padding: 22px 18px;
  }

  .vehicle-profile > span {
    top: 18px;
    right: 16px;
  }

  .account-stage {
    padding-block: 100px;
  }

  .account-stage .login-card > .eyebrow {
    margin-top: 48px;
  }

  .public-footer {
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .availability-pill span,
  .orbit-b,
  .visual-route > b {
    animation: none !important;
  }

  .product-shot:hover .capture-window,
  .product-shot-mobile:hover .capture-phone {
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Account, onboarding and pairing experience */

.auth-tabs {
  display: grid;
  margin: 0 0 24px;
  padding: 4px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 15px;
  grid-template-columns: 1fr 1fr;
}

.auth-tabs button {
  min-height: 40px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 11px;
  font-size: 0.76rem;
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.auth-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: var(--surface-raised);
  box-shadow: 0 6px 18px rgba(18, 37, 47, 0.1);
}

.field-hint {
  display: block;
  margin: -10px 0 18px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.legal-consent {
  display: grid;
  align-items: start;
  margin: 4px 0 18px;
  color: var(--muted);
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.55;
}

.legal-consent input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--red);
}

.legal-consent a,
.auth-legal a,
.account-legal a,
.legal-page a {
  color: var(--ink);
  text-decoration-color: color-mix(in srgb, var(--red) 55%, transparent);
  text-underline-offset: 3px;
}

.auth-legal,
.account-legal {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  gap: 18px;
  font-size: 0.7rem;
  font-weight: 750;
}

.auth-legal a,
.account-legal a {
  color: var(--muted);
}

.dashboard-view.gateway-unpaired .hero-row,
.dashboard-view.gateway-unpaired .dashboard-grid {
  display: none;
}

.onboarding-panel {
  display: grid;
  overflow: hidden;
  min-height: min(720px, calc(100vh - 130px));
  margin: clamp(28px, 5vw, 62px) 0;
  background:
    radial-gradient(circle at 90% 8%, color-mix(in srgb, var(--red) 16%, transparent), transparent 26rem),
    var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  backdrop-filter: blur(24px);
  animation: panel-rise 520ms var(--ease) both;
}

.onboarding-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 7vw, 94px);
}

.onboarding-copy h1 {
  max-width: 700px;
  margin: 12px 0 20px;
  font-size: clamp(3rem, 5.5vw, 5.8rem);
  font-weight: 640;
  letter-spacing: -0.07em;
  line-height: 0.94;
}

.onboarding-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.onboarding-steps {
  display: grid;
  max-width: 680px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  gap: 14px;
}

.onboarding-steps li {
  display: grid;
  align-items: center;
  padding: 15px 16px;
  background: color-mix(in srgb, var(--surface-raised) 72%, transparent);
  border: 1px solid var(--line);
  border-radius: 16px;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
}

.onboarding-steps li > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: white;
  background: var(--deep);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 900;
}

.onboarding-steps div {
  display: grid;
  gap: 3px;
}

.onboarding-steps strong {
  font-size: 0.82rem;
}

.onboarding-steps small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.pairing-stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(34px, 5vw, 72px);
  color: white;
  background:
    radial-gradient(circle at 50% 24%, rgba(240, 68, 81, 0.21), transparent 17rem),
    repeating-linear-gradient(90deg, transparent 0 55px, rgba(255, 255, 255, 0.025) 56px),
    linear-gradient(155deg, #132a35, #08151c);
}

.pairing-stage-top {
  display: flex;
  align-items: center;
  color: #a9bbc4;
  gap: 9px;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.pulse-mark {
  width: 8px;
  height: 8px;
  background: #63d8aa;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(99, 216, 170, 0.1), 0 0 22px rgba(99, 216, 170, 0.45);
}

.pairing-code {
  margin: 42px 0 10px;
  color: white;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.pairing-stage > p {
  min-height: 22px;
  margin: 0 0 34px;
  color: #9fb0b9;
  font-size: 0.78rem;
}

.pairing-stage .button + .button {
  margin-top: 10px;
}

.pairing-stage .button-secondary {
  color: white;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.17);
}

.pairing-stage .form-error {
  margin-top: 12px;
  color: #ffabb2;
}

.pairing-privacy {
  display: grid;
  align-items: start;
  margin-top: 36px;
  padding: 16px;
  color: #aec0c8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.7rem;
  line-height: 1.55;
}

.pairing-privacy > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #08151c;
  background: #63d8aa;
  border-radius: 50%;
  font-weight: 900;
}

.pairing-privacy p {
  margin: 0;
}

.pairing-privacy strong {
  color: white;
}

.account-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-identity small {
  color: var(--muted);
  font-size: 0.72rem;
}

.provisioning-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.gateway-pair-status {
  padding: 7px 10px;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 850;
  white-space: nowrap;
}

.gateway-pair-status.paired {
  color: var(--green);
  background: var(--green-soft);
}

.account-pairing-code {
  display: grid;
  margin: 4px 0 12px;
  padding: 17px;
  background: var(--deep);
  border-radius: 14px;
  gap: 5px;
}

.account-pairing-code span,
.account-pairing-code small {
  color: #91a6b0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.account-pairing-code strong {
  color: white;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 1.55rem;
  letter-spacing: 0.08em;
}

.credential-actions {
  grid-template-columns: 1fr;
}

.button-danger {
  color: var(--red);
  background: var(--danger-soft);
  border-color: color-mix(in srgb, var(--red) 24%, transparent);
}

.button-danger:not(:disabled):hover {
  color: white;
  background: var(--red);
}

.terms-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: min(780px, calc(100vh - 28px));
  padding: 0;
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 42px 140px rgba(0, 0, 0, 0.48);
}

.terms-dialog::backdrop {
  background: rgba(3, 9, 12, 0.76);
  backdrop-filter: blur(12px);
}

.terms-dialog form {
  padding: clamp(28px, 6vw, 48px);
}

.terms-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 28px;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #f13a47, var(--red-dark));
  border-radius: 16px;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--red) 26%, transparent);
  font-weight: 900;
}

.terms-dialog h2 {
  margin: 8px 0 14px;
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.055em;
}

.terms-dialog p:not(.eyebrow),
.terms-dialog li {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.terms-dialog ul {
  display: grid;
  margin: 22px 0;
  padding-left: 22px;
  gap: 8px;
}

.terms-dialog .legal-consent {
  margin-top: 22px;
  padding: 16px;
  background: var(--surface-soft);
  border-radius: 14px;
}

.terms-dialog .button-quiet {
  margin-top: 8px;
}

.dialog-mark.warning {
  background: var(--red);
}

@media (max-width: 980px) {
  .onboarding-panel {
    grid-template-columns: 1fr;
  }

  .pairing-stage {
    min-height: 480px;
  }
}

@media (max-width: 560px) {
  .auth-tabs {
    margin-bottom: 20px;
  }

  .onboarding-panel {
    min-height: auto;
    margin: 20px 0;
    border-radius: 22px;
  }

  .onboarding-copy,
  .pairing-stage {
    padding: 28px 22px;
  }

  .onboarding-copy h1 {
    font-size: 2.75rem;
  }

  .onboarding-steps {
    margin-top: 30px;
  }

  .onboarding-steps li {
    align-items: start;
  }

  .pairing-stage {
    min-height: 410px;
  }

  .pairing-code {
    font-size: clamp(1.55rem, 9vw, 2.2rem);
  }

  .terms-dialog form {
    padding: 26px 22px;
  }
}

/* 2026 adaptive cockpit layer */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 4%, var(--canvas-glow), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(215, 43, 58, 0.055), transparent 25rem),
    var(--canvas);
  transition: color 260ms ease, background-color 260ms ease;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.32;
  background-image: radial-gradient(rgba(87, 108, 118, 0.2) 0.65px, transparent 0.65px);
  background-size: 7px 7px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.page-shell {
  isolation: isolate;
}

.theme-control {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: color-mix(in srgb, var(--surface-soft) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  gap: 2px;
}

.theme-control button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms var(--ease);
}

.theme-control button:hover {
  color: var(--ink);
}

.theme-control button:active {
  transform: scale(0.96);
}

.theme-control button.active {
  color: var(--ink);
  background: var(--surface-raised);
  box-shadow: 0 4px 13px rgba(18, 37, 47, 0.12);
}

.login-panel {
  position: relative;
  background:
    radial-gradient(circle at 90% 8%, rgba(220, 40, 56, 0.08), transparent 18rem),
    var(--canvas);
}

.login-theme-control {
  position: absolute;
  z-index: 3;
  top: 28px;
  right: 30px;
}

.login-card {
  padding: clamp(30px, 4vw, 46px);
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.08);
}

.login-card > .eyebrow {
  margin-top: clamp(48px, 7vh, 76px);
}

.login-brand {
  background:
    radial-gradient(circle at 23% 18%, rgba(220, 40, 56, 0.24), transparent 22rem),
    linear-gradient(145deg, rgba(8, 18, 24, 0.72), rgba(8, 17, 23, 0.98)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, 0.035) 80px),
    #0a171d;
}

.brand-monogram,
.wordmark-icon {
  background: linear-gradient(145deg, #f13a47, var(--red-dark));
  box-shadow: 0 10px 26px rgba(216, 40, 55, 0.28), inset 0 1px rgba(255, 255, 255, 0.28);
}

input,
select {
  color: var(--ink);
  background: var(--surface-raised);
  border-color: var(--line-strong);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input:hover,
select:hover {
  border-color: color-mix(in srgb, var(--line-strong) 70%, var(--ink-soft));
}

input:focus,
select:focus {
  border-color: var(--red);
  outline: 0;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 16%, transparent);
}

.button {
  min-height: 48px;
  border-radius: 13px;
  box-shadow: none;
  transition: transform 180ms var(--ease), background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:not(:disabled):hover {
  transform: translateY(-2px);
}

.button:not(:disabled):active {
  transform: translateY(0) scale(0.985);
}

.button-primary {
  background: linear-gradient(135deg, var(--red), color-mix(in srgb, var(--red-dark) 86%, #6d0d18));
  box-shadow: 0 9px 24px color-mix(in srgb, var(--red) 24%, transparent);
}

.button-primary:not(:disabled):hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--red) 88%, white), var(--red-dark));
  box-shadow: 0 12px 30px color-mix(in srgb, var(--red) 30%, transparent);
}

.button-secondary {
  color: var(--ink);
  background: var(--surface-raised);
  border-color: var(--line-strong);
}

.button-secondary:not(:disabled):hover {
  border-color: color-mix(in srgb, var(--line-strong) 50%, var(--ink-soft));
  box-shadow: var(--shadow-soft);
}

.topbar {
  min-height: 78px;
  padding-inline: max(24px, calc((100vw - 1480px) / 2));
  background: rgba(8, 17, 22, 0.88);
  border-bottom: 1px solid rgba(157, 183, 194, 0.14);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(24px) saturate(1.15);
}

.topbar-theme-control {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
}

.topbar-theme-control button {
  color: #8fa0a8;
}

.topbar-theme-control button:hover {
  color: white;
}

.topbar-theme-control button.active {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18);
}

.topbar-status {
  gap: 12px;
}

.live-badge.online span {
  background: #53d5a1;
  box-shadow: 0 0 0 5px rgba(83, 213, 161, 0.12), 0 0 20px rgba(83, 213, 161, 0.36);
  animation: live-breathe 2.8s ease-in-out infinite;
}

.icon-button {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  transition: transform 180ms var(--ease), background 180ms ease, border-color 180ms ease;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

main {
  width: min(1480px, calc(100% - 48px));
}

.hero-row {
  padding: clamp(52px, 7vw, 92px) 2px 34px;
}

.hero-row h1 {
  max-width: 900px;
  font-size: clamp(3rem, 5.3vw, 5.6rem);
  font-weight: 640;
  letter-spacing: -0.07em;
}

.hero-subtitle {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.3vw, 1.08rem);
}

.hero-actions p {
  padding-right: 2px;
}

.signal-rail {
  position: relative;
  overflow: hidden;
  min-height: 76px;
  padding: 17px 20px;
  background:
    radial-gradient(circle at 50% -80%, rgba(83, 213, 161, 0.15), transparent 55%),
    linear-gradient(135deg, #10242e, #0d1e27);
  border: 1px solid rgba(138, 170, 184, 0.12);
  box-shadow: 0 18px 50px rgba(5, 20, 28, 0.18);
}

.signal-rail::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.035), transparent 78%);
  transform: translateX(-100%);
  animation: rail-scan 8s ease-in-out infinite;
}

.signal-node,
.signal-connector {
  position: relative;
  z-index: 1;
}

.signal-node > i {
  width: 10px;
  height: 10px;
  border-color: #10242e;
}

.signal-node.online > i {
  background: #53d5a1;
  box-shadow: 0 0 0 1px #53d5a1, 0 0 20px rgba(83, 213, 161, 0.58);
}

.signal-node.phone-online strong,
.signal-node.phone-online small {
  color: #63d8aa;
}

.signal-connector span {
  background: repeating-linear-gradient(90deg, rgba(112, 143, 157, 0.72) 0 4px, transparent 4px 10px);
  background-size: 20px 1px;
  animation: signal-flow 1.6s linear infinite;
}

.dashboard-grid {
  gap: 24px;
}

.dashboard-view:not([hidden]) .panel {
  animation: panel-rise 520ms var(--ease) both;
}

.dashboard-view:not([hidden]) .panel:nth-child(2) { animation-delay: 45ms; }
.dashboard-view:not([hidden]) .panel:nth-child(3) { animation-delay: 90ms; }
.dashboard-view:not([hidden]) .panel:nth-child(4) { animation-delay: 135ms; }

.panel {
  padding: 28px;
  background: var(--surface-glass);
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px) saturate(1.08);
  transition: background-color 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.panel-header h2 {
  font-weight: 690;
  letter-spacing: -0.045em;
}

.paint-pill,
.state-pill,
.controls-lock,
.history-count,
.command-status {
  background: var(--surface-soft);
}

.paint-pill {
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.state-pill.online,
.controls-lock.online,
.command-status.succeeded {
  color: color-mix(in srgb, var(--green) 86%, var(--ink));
  background: var(--green-soft);
}

.state-pill.stale,
.controls-lock.stale {
  color: var(--amber);
  background: var(--amber-soft);
}

.freshness-banner {
  display: flex;
  align-items: center;
  margin: -4px 0 18px;
  padding: 14px 16px;
  color: var(--ink-soft);
  background: var(--amber-soft);
  border: 1px solid color-mix(in srgb, var(--amber) 22%, transparent);
  border-radius: var(--radius-small);
  gap: 12px;
}

.freshness-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--amber);
  background: color-mix(in srgb, var(--amber) 13%, transparent);
  border-radius: 12px;
  font-size: 1.25rem;
  flex: none;
}

.freshness-banner div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.freshness-banner strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.freshness-banner small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.vehicle-stage {
  isolation: isolate;
  min-height: 450px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.38), transparent 26%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface-soft) 78%, #cbd4d6), color-mix(in srgb, var(--surface-soft) 94%, white));
  border: 1px solid var(--line);
  border-radius: 18px;
}

.vehicle-stage::before {
  position: absolute;
  z-index: 0;
  width: 56%;
  height: 72%;
  content: "";
  opacity: 0.5;
  background: radial-gradient(ellipse, rgba(49, 120, 154, 0.18), transparent 68%);
  filter: blur(16px);
}

.vehicle-stage-grid {
  opacity: 0.4;
  background-size: 52px 52px;
}

.vehicle-stage canvas {
  width: min(69%, 285px);
  mix-blend-mode: normal;
  transition: opacity 300ms ease, filter 300ms ease;
}

.vehicle-panel.long-disconnected .vehicle-stage canvas {
  opacity: 0.34;
  filter: grayscale(0.84) drop-shadow(0 20px 22px rgba(23, 33, 38, 0.14));
}

.vehicle-panel.long-disconnected .vehicle-stage::after {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 40px);
  padding: 9px 13px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface-raised) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  content: "Waiting for the next vehicle connection";
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(12px);
}

.visual-live-state span,
.vehicle-facts article,
.offline-explanation,
.telemetry-live-grid article,
.history-icon {
  background: var(--surface-soft);
}

.visual-live-state span.alert,
.command-status.failed,
.command-status.rejected,
.command-status.unknown {
  color: color-mix(in srgb, var(--red) 76%, var(--ink));
  background: var(--danger-soft);
}

.visual-live-state span.active,
.command-status.delivered,
.command-status.accepted,
.command-status.executing {
  color: var(--amber);
  background: var(--amber-soft);
}

meter::-webkit-meter-bar {
  background: color-mix(in srgb, var(--line-strong) 62%, transparent);
}

meter::-webkit-meter-optimum-value {
  background: linear-gradient(90deg, var(--green), color-mix(in srgb, var(--green) 72%, #7be6bb));
}

.toggle-command {
  color: var(--ink);
  background: var(--surface-raised);
  border-color: var(--line-strong);
  transition: transform 180ms var(--ease), border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.toggle-command:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--line-strong) 45%, var(--ink-soft));
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.toggle-icon {
  color: var(--ink-soft);
  background: var(--surface-soft);
}

.toggle-command i {
  background: color-mix(in srgb, var(--line-strong) 70%, transparent);
}

.toggle-command.active i {
  background: var(--green);
  box-shadow: 0 0 16px color-mix(in srgb, var(--green) 25%, transparent);
}

.detail-list div,
.history-item,
.provisioning-values div {
  border-color: var(--line);
}

.account-backdrop,
.command-dialog::backdrop {
  background: rgba(3, 9, 12, 0.68);
  backdrop-filter: blur(8px);
}

.account-sheet {
  background: var(--canvas);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 100px rgba(0, 0, 0, 0.24);
}

.account-sheet form,
.provisioning-card,
.close-button,
.command-dialog {
  color: var(--ink);
  background: var(--surface-raised);
  border-color: var(--line);
}

.command-dialog {
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.4);
}

.dialog-summary {
  color: var(--ink-soft);
  background: var(--surface-soft);
}

.toast {
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.telemetry-live-grid article {
  min-height: 138px;
  border: 1px solid transparent;
  transition: border-color 180ms ease, transform 180ms var(--ease), background 180ms ease;
}

.telemetry-live-grid article:hover {
  border-color: var(--line);
  transform: translateY(-2px);
}

.map-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

#telemetry-map {
  background: var(--surface-soft);
}

.map-caption {
  color: var(--muted);
  background: var(--surface-raised);
  border-top: 1px solid var(--line);
}

.map-empty,
.chart-empty {
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface-raised) 92%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

:root[data-theme="dark"] .leaflet-tile-pane {
  filter: grayscale(0.24) invert(0.91) hue-rotate(180deg) brightness(0.72) contrast(1.15) saturate(0.68);
}

:root[data-theme="dark"] .leaflet-control-zoom a,
:root[data-theme="dark"] .leaflet-control-attribution {
  color: var(--ink-soft);
  background: rgba(16, 28, 34, 0.92);
  border-color: var(--line);
}

:root[data-theme="dark"] .leaflet-control-attribution a {
  color: #76c7ee;
}

.range-switcher {
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.range-switcher button.active {
  color: white;
  background: var(--deep);
  box-shadow: 0 7px 20px rgba(7, 24, 32, 0.22);
}

.legend-wifi { background: var(--chart-wifi); }
.legend-mobile { background: var(--chart-mobile); }
.legend-battery { background: var(--chart-battery); }

.chart-shell {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-raised) 88%, transparent), var(--surface-soft));
  border-color: var(--line);
  border-radius: 17px;
}

:root[data-theme="dark"] .vehicle-stage {
  background:
    radial-gradient(circle at 50% 44%, rgba(91, 160, 190, 0.14), transparent 28%),
    linear-gradient(145deg, #101d23, #0c181e);
}

:root[data-theme="dark"] .vehicle-stage-grid {
  opacity: 0.34;
  filter: invert(1);
}

:root[data-theme="dark"] .vehicle-stage canvas {
  filter: brightness(1.08) drop-shadow(0 28px 30px rgba(0, 0, 0, 0.52));
  mix-blend-mode: normal;
}

:root[data-theme="dark"] .vehicle-panel.long-disconnected .vehicle-stage canvas {
  filter: grayscale(0.88) brightness(0.72) drop-shadow(0 22px 24px rgba(0, 0, 0, 0.4));
}

:root[data-theme="dark"] .wordmark:not(.wordmark-light) small {
  color: var(--muted);
}

@keyframes panel-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes live-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

@keyframes signal-flow {
  to { background-position: 20px 0; }
}

@keyframes rail-scan {
  0%, 28% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

@media (max-width: 820px) {
  .topbar {
    min-height: 72px;
  }

  .topbar-theme-control .theme-label {
    display: none;
  }

  .topbar-theme-control button {
    width: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
  }

  .hero-row {
    padding-top: 42px;
  }

  .signal-rail {
    padding: 18px;
  }

  .panel {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .login-theme-control {
    top: 18px;
    right: 18px;
  }

  .login-card {
    padding: 26px 22px;
    border-radius: 24px;
  }

  .login-card > .eyebrow {
    margin-top: 52px;
  }

  .topbar {
    padding-inline: 14px;
  }

  .topbar-status {
    gap: 8px;
  }

  .topbar .wordmark-icon {
    width: 40px;
    height: 40px;
  }

  .live-badge {
    gap: 0;
  }

  main {
    width: min(100% - 24px, 1480px);
  }

  .hero-row h1 {
    font-size: clamp(2.7rem, 13vw, 3.35rem);
  }

  .panel {
    padding: 20px;
    border-radius: 18px;
  }

  .panel-header {
    align-items: flex-start;
  }

  .vehicle-header-status {
    max-width: 58%;
  }

  .vehicle-stage {
    min-height: 340px;
  }

  .freshness-banner {
    align-items: flex-start;
  }

  .freshness-icon {
    width: 34px;
    height: 34px;
  }

  .chart-shell,
  #history-chart {
    min-height: 320px;
    height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-view:not([hidden]) .panel,
  .live-badge.online span,
  .signal-connector span,
  .signal-rail::after {
    animation: none !important;
  }
}

/* Redline automotive studio — public presentation */

.login-view {
  --studio-red: var(--red-diamond);
  --studio-red-bright: color-mix(in srgb, var(--red-diamond) 88%, var(--white-diamond));
  --studio-panel: #0b1116;
  --studio-panel-soft: #111a21;
  --studio-line: rgba(218, 229, 235, 0.14);
  --studio-copy: #a9b6bd;
  background:
    radial-gradient(circle at 78% 7%, rgba(255, 255, 255, 0.84), transparent 26rem),
    linear-gradient(145deg, #eef2f4 0%, #dbe2e7 52%, #cbd4db 100%);
}

:root[data-theme="dark"] .login-view {
  background:
    radial-gradient(circle at 80% 7%, rgba(96, 111, 121, 0.15), transparent 29rem),
    linear-gradient(145deg, #10161b 0%, #080c10 55%, #040608 100%);
}

.public-topbar {
  min-height: calc(94px + env(safe-area-inset-top, 0px));
  border-color: rgba(255, 255, 255, 0.13);
}

.public-topbar::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 84px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--studio-red-bright), transparent);
  box-shadow: 0 0 18px rgba(242, 53, 69, 0.62);
}

.public-nav a {
  position: relative;
}

.public-nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--studio-red-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}

.public-nav a:hover::after,
.public-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.landing-hero {
  min-height: min(980px, 100vh);
  background:
    radial-gradient(circle at var(--hero-pointer-x, 77%) var(--hero-pointer-y, 38%), rgba(242, 53, 69, 0.25), transparent 24rem),
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.085), transparent 25rem),
    linear-gradient(112deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 96px),
    linear-gradient(145deg, #26333d 0%, #11181e 35%, #070a0d 75%, #030405 100%);
  grid-template-columns: minmax(420px, 0.78fr) minmax(650px, 1.22fr);
  gap: clamp(44px, 5vw, 92px);
}

.landing-hero::before {
  right: -11vw;
  bottom: -31vw;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 80px rgba(255, 255, 255, 0.018),
    0 0 0 160px rgba(255, 255, 255, 0.011),
    0 0 170px rgba(242, 53, 69, 0.07);
}

.landing-hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.36;
  background-image:
    radial-gradient(circle at 22% 26%, rgba(255, 255, 255, 0.3) 0 0.5px, transparent 0.8px),
    radial-gradient(circle at 72% 66%, rgba(255, 255, 255, 0.22) 0 0.5px, transparent 0.8px);
  background-position: 0 0, 12px 12px;
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, black, transparent 45%, black);
}

.availability-pill {
  margin-bottom: clamp(36px, 6vh, 64px);
  color: #d1d9dd;
  background: rgba(6, 10, 13, 0.28);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(16px);
}

.landing-copy h1 {
  font-size: clamp(4.25rem, 6.55vw, 7.2rem);
  font-weight: 640;
  letter-spacing: -0.082em;
  text-wrap: balance;
}

.landing-copy h1 em {
  color: var(--studio-red-bright);
  text-shadow: 0 0 38px rgba(242, 53, 69, 0.21);
}

.landing-intro {
  color: #bdc8cd;
}

.landing-actions .button-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ff4d5c, #d91f32);
  box-shadow: 0 18px 42px rgba(217, 31, 50, 0.25), inset 0 1px rgba(255, 255, 255, 0.24);
}

.landing-actions .button-primary::before {
  position: absolute;
  top: -150%;
  left: -40%;
  width: 32%;
  height: 400%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: rotate(22deg);
  animation: action-sheen 5.8s ease-in-out infinite;
}

.landing-actions .button-primary > span {
  position: relative;
  z-index: 1;
}

.landing-visual {
  --device-side-width: min(29%, 230px);
  --device-center-width: min(32%, 252px);
  overflow: hidden;
  min-height: 700px;
  background:
    radial-gradient(circle at var(--visual-pointer-x, 50%) var(--visual-pointer-y, 42%), rgba(255, 78, 92, 0.17), transparent 21rem),
    radial-gradient(circle at 50% 44%, rgba(154, 174, 184, 0.14), transparent 25rem),
    linear-gradient(145deg, rgba(72, 87, 98, 0.82), rgba(18, 25, 30, 0.94) 45%, rgba(5, 8, 10, 0.98));
  border-color: rgba(208, 221, 228, 0.22);
  border-radius: 46px;
  box-shadow:
    0 52px 140px rgba(0, 0, 0, 0.46),
    inset 0 1px rgba(255, 255, 255, 0.13),
    inset 0 -1px rgba(255, 255, 255, 0.035);
  perspective: 1200px;
}

.landing-visual::before,
.landing-visual::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
  border-radius: 50%;
}

.landing-visual::before {
  top: 15%;
  left: 50%;
  width: 76%;
  aspect-ratio: 1;
  border: 1px solid rgba(236, 244, 247, 0.09);
  box-shadow: 0 0 0 68px rgba(255, 255, 255, 0.016), 0 0 0 136px rgba(255, 255, 255, 0.009);
  transform: translateX(-50%);
}

.landing-visual::after {
  right: 7%;
  bottom: 14%;
  width: 180px;
  height: 180px;
  background: rgba(242, 53, 69, 0.12);
  filter: blur(74px);
  animation: ambient-breathe 6s ease-in-out infinite;
}

.landing-visual .visual-grid {
  opacity: 0.5;
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 44%, black, transparent 80%);
}

.landing-visual .visual-topline {
  top: 26px;
  right: 28px;
  left: 28px;
  color: #9cabb3;
}

.landing-visual .visual-topline i,
.real-ui-badge i {
  background: #57d9a5;
  box-shadow: 0 0 14px rgba(87, 217, 165, 0.76);
}

.constellation-halo {
  position: absolute;
  z-index: 0;
  top: 45%;
  left: 50%;
  width: 66%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: inset 0 0 90px rgba(242, 53, 69, 0.06), 0 0 90px rgba(242, 53, 69, 0.05);
  transform: translate(-50%, -50%);
}

.constellation-trace {
  position: absolute;
  z-index: 0;
  right: 9%;
  bottom: 69px;
  left: 9%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 74, 89, 0.85) 16%, rgba(255, 74, 89, 0.85) 84%, transparent);
  box-shadow: 0 0 14px rgba(242, 53, 69, 0.52);
}

.constellation-trace::after {
  position: absolute;
  top: -2px;
  left: 0;
  width: 46px;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, transparent, #ff6673, transparent);
  filter: blur(1px);
  animation: trace-run 3.2s linear infinite;
}

.constellation-trace i,
.constellation-trace span,
.constellation-trace b {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  background: #ff4b5a;
  border: 2px solid #351016;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(242, 53, 69, 0.12), 0 0 16px rgba(242, 53, 69, 0.8);
  transform: translate(-50%, -50%);
}

.constellation-trace i { left: 9%; }
.constellation-trace span { left: 50%; }
.constellation-trace b { left: 91%; }

.hero-handset {
  position: absolute;
  z-index: 2;
  bottom: 78px;
  margin: 0;
  opacity: 0;
  animation: handset-arrive-side 900ms var(--ease) forwards;
}

.hero-handset-status {
  left: 2.5%;
  width: var(--device-side-width);
  --device-rotation: -1.35deg;
  animation-delay: 180ms;
}

.hero-handset-cockpit {
  z-index: 4;
  left: 50%;
  width: var(--device-center-width);
  --device-rotation: 0deg;
  transform: translateX(-50%);
  animation-name: handset-arrive-center;
  animation-delay: 40ms;
}

.hero-handset-route {
  right: 2.5%;
  width: var(--device-side-width);
  --device-rotation: 1.35deg;
  animation-delay: 320ms;
}

.handset-shell {
  position: relative;
  height: 510px;
  padding: 7px;
  background: linear-gradient(145deg, #77868e 0%, #263139 15%, #070a0d 42%, #3e4c54 100%);
  border: 1px solid rgba(229, 239, 243, 0.3);
  border-radius: 35px;
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(0, 0, 0, 0.72),
    inset 0 1px rgba(255, 255, 255, 0.27);
  transform: rotate(var(--device-rotation));
  transform-style: preserve-3d;
  animation: handset-float 7s ease-in-out infinite;
  transition: border-color 240ms ease, box-shadow 240ms ease;
}

.hero-handset-cockpit .handset-shell {
  height: 580px;
  border-color: rgba(255, 93, 106, 0.44);
  box-shadow:
    0 45px 98px rgba(0, 0, 0, 0.66),
    0 0 0 1px rgba(0, 0, 0, 0.72),
    0 0 52px rgba(242, 53, 69, 0.15),
    inset 0 1px rgba(255, 255, 255, 0.29);
  animation-delay: -2.3s;
}

.hero-handset-route .handset-shell {
  animation-delay: -4.7s;
}

.hero-handset:hover .handset-shell {
  border-color: rgba(255, 98, 111, 0.6);
  box-shadow:
    0 42px 90px rgba(0, 0, 0, 0.66),
    0 0 0 1px rgba(0, 0, 0, 0.72),
    0 0 42px rgba(242, 53, 69, 0.18),
    inset 0 1px rgba(255, 255, 255, 0.3);
}

.handset-speaker {
  position: absolute;
  z-index: 8;
  top: 14px;
  left: 50%;
  width: 42px;
  height: 5px;
  background: rgba(0, 0, 0, 0.88);
  border-radius: 999px;
  box-shadow: 0 1px rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
}

.handset-screen {
  position: relative;
  overflow: hidden;
  height: 100%;
  color: white;
  background: #071015;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 29px;
}

.handset-screen::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.08), transparent 18%, transparent 74%, rgba(255, 255, 255, 0.025));
  mix-blend-mode: screen;
}

.status-screen,
.route-screen {
  padding: 30px 14px 15px;
  background:
    radial-gradient(circle at 50% 33%, rgba(242, 53, 69, 0.14), transparent 10rem),
    linear-gradient(155deg, #111c22, #060b0e 68%);
}

.handset-nav {
  position: relative;
  z-index: 3;
  display: grid;
  align-items: center;
  min-height: 24px;
  color: #87969d;
  grid-template-columns: 24px 1fr 24px;
  font-size: 0.58rem;
  text-align: center;
}

.handset-nav strong {
  color: #f5f7f8;
  font-size: 0.61rem;
  letter-spacing: 0.02em;
}

.handset-nav > i {
  justify-self: end;
  width: 7px;
  height: 7px;
  background: #58d9a5;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(88, 217, 165, 0.64);
}

.grid-mark {
  letter-spacing: 1px;
  line-height: 4px;
}

.handset-kicker {
  position: relative;
  z-index: 3;
  margin: 19px 0 4px;
  color: #72838b;
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-align: center;
}

.handset-car-stage {
  position: relative;
  z-index: 2;
  display: grid;
  height: 188px;
  place-items: center;
}

.handset-car-stage::after {
  position: absolute;
  right: 11%;
  bottom: 10%;
  left: 11%;
  height: 10px;
  content: "";
  background: rgba(242, 53, 69, 0.28);
  border-radius: 50%;
  filter: blur(12px);
}

.handset-car-stage img {
  position: relative;
  z-index: 2;
  width: 82%;
  filter: drop-shadow(0 18px 16px rgba(0, 0, 0, 0.62));
  transform: rotate(90deg);
}

.scan-ring {
  position: absolute;
  inset: 18px 10px;
  border: 1px solid rgba(255, 72, 87, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 17px rgba(242, 53, 69, 0.025), inset 0 0 30px rgba(242, 53, 69, 0.04);
  animation: scan-ring 3.6s ease-in-out infinite;
}

.car-lock {
  position: absolute;
  z-index: 4;
  right: 8px;
  bottom: 18px;
  display: flex;
  align-items: center;
  padding: 5px 7px;
  color: #d9e2e6;
  background: rgba(5, 11, 14, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  gap: 5px;
  font-size: 0.41rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  backdrop-filter: blur(8px);
}

.car-lock i {
  width: 5px;
  height: 5px;
  background: #58d9a5;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(88, 217, 165, 0.68);
}

.energy-dial {
  position: relative;
  z-index: 3;
  display: grid;
  width: 112px;
  height: 112px;
  margin: -8px auto 0;
  place-items: center;
  background: conic-gradient(var(--studio-red-bright) 0 78%, rgba(255, 255, 255, 0.08) 78% 100%);
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(242, 53, 69, 0.21), inset 0 0 18px rgba(255, 255, 255, 0.05);
}

.energy-dial::before {
  position: absolute;
  inset: 8px;
  content: "";
  background: radial-gradient(circle at 50% 40%, #15232a, #070d11 72%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.energy-dial div {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.energy-dial strong {
  font-size: 1.23rem;
  letter-spacing: -0.05em;
}

.energy-dial span {
  margin-top: 2px;
  color: #84959d;
  font-size: 0.42rem;
  font-weight: 750;
}

.handset-facts,
.signal-pills {
  position: relative;
  z-index: 3;
  display: grid;
  margin-top: 13px;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.handset-facts span,
.signal-pills span {
  display: flex;
  min-width: 0;
  padding: 9px 7px;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  gap: 3px;
}

.handset-facts small,
.signal-pills small,
.route-summary small {
  color: #71828a;
  font-size: 0.39rem;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.handset-facts b,
.signal-pills b {
  overflow: hidden;
  color: #e9eff1;
  font-size: 0.54rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cockpit-screen {
  background: #091319;
}

.cockpit-screen > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.real-ui-badge {
  position: absolute;
  z-index: 5;
  top: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  padding: 7px 9px;
  color: #e9f1f3;
  background: rgba(4, 10, 13, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  gap: 6px;
  font-size: 0.43rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  transform: translateX(-50%);
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.real-ui-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.route-screen {
  padding-inline: 12px;
}

.route-map {
  position: relative;
  overflow: hidden;
  height: 305px;
  margin: 13px -12px 0;
  background:
    radial-gradient(circle at 65% 18%, rgba(242, 53, 69, 0.17), transparent 9rem),
    linear-gradient(145deg, #111a20, #05090c);
}

.map-grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(28deg, transparent 46%, rgba(171, 191, 200, 0.14) 47% 48%, transparent 49%),
    linear-gradient(118deg, transparent 46%, rgba(171, 191, 200, 0.1) 47% 48%, transparent 49%);
  background-size: 58px 62px;
  transform: scale(1.35) rotate(7deg);
}

.route-map svg {
  position: absolute;
  z-index: 2;
  inset: 9% 6% 8%;
  width: 88%;
  height: 83%;
  overflow: visible;
  fill: none;
}

.route-shadow,
.route-line {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-shadow {
  stroke: rgba(242, 53, 69, 0.35);
  stroke-width: 11;
  filter: blur(7px);
}

.route-line {
  stroke: #ff4a5a;
  stroke-width: 3;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  filter: drop-shadow(0 0 5px rgba(255, 74, 90, 0.9));
  animation: route-draw 2.4s 900ms var(--ease) forwards;
}

.route-pin {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  color: white;
  background: #f23a4a;
  border: 3px solid #351117;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(242, 53, 69, 0.13), 0 0 20px rgba(242, 53, 69, 0.62);
  font-size: 0.5rem;
}

.route-pin-start {
  top: 9%;
  right: 15%;
}

.route-pin-end {
  bottom: 10%;
  left: 13%;
}

.route-summary {
  position: relative;
  z-index: 5;
  display: grid;
  align-items: center;
  margin: -38px 5px 0;
  padding: 10px;
  background: rgba(5, 11, 14, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.34);
  grid-template-columns: 27px 1fr;
  gap: 8px;
  backdrop-filter: blur(14px);
}

.route-summary-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #ff4f5e, #c91d30);
  border-radius: 8px;
  font-size: 0.72rem;
}

.route-summary div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.route-summary strong {
  overflow: hidden;
  font-size: 0.52rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-pills {
  margin: 9px 4px 0;
}

.handset-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 13px 0 0;
  color: #96a6ae;
  gap: 7px;
  font-size: 0.5rem;
  font-weight: 820;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.handset-caption span {
  color: #ff5664;
}

.constellation-foot {
  position: absolute;
  z-index: 5;
  right: 11%;
  bottom: 23px;
  left: 11%;
  display: flex;
  align-items: center;
  color: #72838b;
  font-size: 0.45rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.constellation-foot i {
  height: 1px;
  margin: 0 10px;
  background: repeating-linear-gradient(90deg, rgba(255, 76, 91, 0.66) 0 4px, transparent 4px 9px);
  background-size: 18px 1px;
  animation: signal-flow 1.6s linear infinite;
  flex: 1;
}

.platform-proof {
  min-height: 82px;
  color: #8999a1;
  background:
    linear-gradient(90deg, rgba(242, 53, 69, 0.06), transparent 28%, transparent 72%, rgba(242, 53, 69, 0.06)),
    #090d10;
  border-color: rgba(255, 255, 255, 0.08);
}

.feature-showcase {
  position: relative;
  overflow: hidden;
  overflow: clip;
}

.feature-showcase::before {
  position: absolute;
  z-index: -1;
  top: 11%;
  right: -8%;
  width: 420px;
  height: 420px;
  content: "";
  background: radial-gradient(circle, rgba(242, 53, 69, 0.11), transparent 69%);
  filter: blur(10px);
}

.feature-card {
  color: #eef3f5;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 53, 69, 0.09), transparent 16rem),
    linear-gradient(145deg, rgba(23, 33, 40, 0.98), rgba(8, 13, 17, 0.99));
  border-color: rgba(203, 219, 227, 0.14);
  box-shadow: 0 28px 74px rgba(9, 17, 22, 0.18), inset 0 1px rgba(255, 255, 255, 0.035);
  transition: transform 280ms var(--ease), border-color 280ms ease, box-shadow 280ms ease;
}

.feature-card::before {
  position: absolute;
  top: 0;
  left: 34px;
  width: 68px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, #ff5060, transparent);
  box-shadow: 0 0 14px rgba(242, 53, 69, 0.5);
}

.feature-card:hover {
  border-color: rgba(255, 90, 104, 0.32);
  box-shadow: 0 34px 88px rgba(7, 14, 18, 0.26), 0 0 42px rgba(242, 53, 69, 0.05), inset 0 1px rgba(255, 255, 255, 0.05);
  transform: translateY(-6px);
}

.feature-card .eyebrow,
.feature-card > p:last-of-type,
.feature-card-dark .eyebrow,
.feature-card-dark > p {
  color: #8fa0a8;
}

.feature-card h3,
.mini-status-board b {
  color: #f3f7f8;
}

.feature-index {
  color: rgba(255, 91, 104, 0.6);
}

.mini-status-board {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.09);
}

.mini-status-board span {
  color: #8fa0a8;
  border-color: rgba(255, 255, 255, 0.08);
}

.feature-card::after {
  border-color: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.017);
}

.product-gallery-board {
  background:
    radial-gradient(circle at 86% 16%, rgba(242, 53, 69, 0.24), transparent 25rem),
    radial-gradient(circle at 7% 100%, rgba(255, 255, 255, 0.055), transparent 28rem),
    linear-gradient(145deg, #222e36, #080d11 62%, #130a0d);
  border-color: rgba(213, 227, 233, 0.19);
}

.capture-window,
.capture-phone {
  border-color: rgba(255, 85, 99, 0.22);
}

.product-shot:hover .capture-window,
.product-shot-mobile:hover .capture-phone {
  border-color: rgba(255, 91, 105, 0.52);
  box-shadow: 0 30px 82px rgba(0, 5, 8, 0.5), 0 0 38px rgba(242, 53, 69, 0.1);
}

.capture-bar em {
  color: #ff6673;
}

.compatibility-section {
  background:
    radial-gradient(circle at 13% 0%, rgba(242, 53, 69, 0.2), transparent 25rem),
    radial-gradient(circle at 90% 100%, rgba(255, 255, 255, 0.045), transparent 28rem),
    linear-gradient(145deg, #202d35, #080d11 67%, #13090c);
  border-color: rgba(211, 226, 233, 0.17);
}

.vehicle-profile.active > span {
  color: #ff8b95;
}

.beta-commitment {
  background:
    radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.045), transparent 19rem),
    radial-gradient(circle at 100% 0%, rgba(242, 53, 69, 0.28), transparent 24rem),
    linear-gradient(125deg, #202e35, #0a1014 62%, #210b11);
}

.beta-signal {
  background: #ff5665;
  box-shadow: 0 0 0 7px rgba(242, 53, 69, 0.1), 0 0 28px rgba(242, 53, 69, 0.42);
}

.account-stage-copy li {
  position: relative;
  overflow: hidden;
}

.account-stage-copy li::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  content: "";
  background: linear-gradient(#ff5a69, rgba(242, 53, 69, 0.08));
}

.account-stage-copy li > span {
  background: linear-gradient(145deg, #ff4d5d, #bd1b2c);
  box-shadow: 0 10px 24px rgba(217, 31, 50, 0.18);
}

.account-stage .login-card {
  border-color: color-mix(in srgb, var(--red) 28%, var(--line));
  box-shadow: 0 34px 100px rgba(12, 21, 27, 0.16), 0 0 0 1px color-mix(in srgb, var(--red) 5%, transparent);
}

.pwa-install-card {
  background:
    radial-gradient(circle at 105% -5%, color-mix(in srgb, var(--red) 20%, transparent), transparent 12rem),
    linear-gradient(145deg, var(--surface-raised), color-mix(in srgb, var(--surface-soft) 72%, var(--canvas)));
}

.pwa-mark {
  background: linear-gradient(145deg, #ff4d5d, #a91427);
  box-shadow: 0 10px 24px rgba(217, 31, 50, 0.24);
}

.pwa-install-card .eyebrow {
  color: var(--red);
}

.js-public-motion .public-reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.99);
  transition:
    opacity 720ms var(--ease) var(--reveal-delay, 0ms),
    transform 720ms var(--ease) var(--reveal-delay, 0ms);
}

.js-public-motion .public-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes handset-arrive-side {
  from { opacity: 0; transform: translateY(48px) scale(0.96); filter: blur(7px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes handset-arrive-center {
  from { opacity: 0; transform: translate(-50%, 54px) scale(0.94); filter: blur(8px); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); filter: blur(0); }
}

@keyframes handset-float {
  0%, 100% { transform: translateY(0) rotate(var(--device-rotation)); }
  50% { transform: translateY(-8px) rotate(var(--device-rotation)); }
}

@keyframes route-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes scan-ring {
  0%, 100% { opacity: 0.55; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes trace-run {
  from { left: 0; transform: translateX(-45px); }
  to { left: 100%; transform: translateX(0); }
}

@keyframes ambient-breathe {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.16); }
}

@keyframes action-sheen {
  0%, 68% { transform: translateX(-240%) rotate(22deg); }
  88%, 100% { transform: translateX(560%) rotate(22deg); }
}

@media (max-width: 1360px) {
  .landing-hero {
    grid-template-columns: minmax(380px, 0.76fr) minmax(590px, 1.24fr);
  }

  .landing-visual {
    --device-side-width: min(30%, 205px);
    --device-center-width: min(33%, 226px);
    min-height: 650px;
  }

  .handset-shell { height: 465px; }
  .hero-handset-cockpit .handset-shell { height: 535px; }
  .handset-car-stage { height: 162px; }
  .energy-dial { width: 100px; height: 100px; }
  .route-map { height: 270px; }
}

@media (max-width: 1180px) {
  .landing-hero {
    grid-template-columns: minmax(0, 0.82fr) minmax(470px, 1.18fr);
  }

  .landing-visual {
    --device-side-width: 30%;
    --device-center-width: 35%;
    min-height: 610px;
  }

  .handset-shell { height: 425px; }
  .hero-handset-cockpit .handset-shell { height: 490px; }
  .hero-handset { bottom: 76px; }
  .handset-car-stage { height: 146px; }
  .energy-dial { width: 90px; height: 90px; }
  .energy-dial strong { font-size: 1.05rem; }
  .handset-facts { margin-top: 9px; }
  .route-map { height: 244px; }
  .route-summary { margin-top: -34px; }
}

@media (max-width: 900px) {
  .landing-hero {
    min-height: auto;
    padding-bottom: 74px;
    grid-template-columns: 1fr;
  }

  .landing-copy {
    max-width: 820px;
  }

  .landing-visual {
    --device-side-width: min(29%, 220px);
    --device-center-width: min(33%, 250px);
    min-height: 680px;
  }

  .handset-shell { height: 500px; }
  .hero-handset-cockpit .handset-shell { height: 570px; }
  .handset-car-stage { height: 180px; }
  .energy-dial { width: 108px; height: 108px; }
  .route-map { height: 296px; }
}

@media (max-width: 620px) {
  .public-topbar {
    min-height: calc(134px + env(safe-area-inset-top, 0px));
  }

  .landing-hero {
    padding-top: calc(164px + env(safe-area-inset-top, 0px));
    background:
      radial-gradient(circle at 72% 31%, rgba(242, 53, 69, 0.24), transparent 18rem),
      linear-gradient(145deg, #222e36 0%, #0c1115 48%, #030405 100%);
  }

  .landing-copy h1 {
    font-size: clamp(3rem, 13.5vw, 4rem);
    line-height: 0.91;
  }

  .landing-visual {
    --device-side-width: 31%;
    --device-center-width: 39%;
    min-height: 540px;
    border-radius: 29px;
  }

  .landing-visual .visual-topline {
    top: 18px;
    right: 16px;
    left: 16px;
    font-size: 0.49rem;
  }

  .hero-handset {
    bottom: 59px;
  }

  .hero-handset-status { left: 1%; }
  .hero-handset-route { right: 1%; }
  .handset-shell { height: 360px; padding: 4px; border-radius: 25px; }
  .hero-handset-cockpit .handset-shell { height: 435px; }
  .handset-screen { border-radius: 21px; }
  .handset-speaker { top: 10px; width: 30px; height: 4px; }
  .status-screen,
  .route-screen { padding: 23px 7px 8px; }
  .handset-nav { grid-template-columns: 15px 1fr 15px; font-size: 0.4rem; }
  .handset-nav strong { font-size: 0.45rem; }
  .handset-kicker { margin-top: 11px; font-size: 0.34rem; }
  .handset-car-stage { height: 112px; }
  .scan-ring { inset: 12px 4px; }
  .car-lock { display: none; }
  .energy-dial { width: 70px; height: 70px; margin-top: -3px; }
  .energy-dial::before { inset: 6px; }
  .energy-dial strong { font-size: 0.78rem; }
  .energy-dial span { font-size: 0.29rem; }
  .handset-facts { margin-top: 7px; gap: 4px; }
  .handset-facts span,
  .signal-pills span { padding: 6px 4px; border-radius: 7px; }
  .handset-facts small,
  .signal-pills small,
  .route-summary small { font-size: 0.26rem; }
  .handset-facts b,
  .signal-pills b { font-size: 0.36rem; }
  .real-ui-badge { top: 20px; padding: 5px 6px; font-size: 0.3rem; }
  .route-map { height: 217px; margin-inline: -7px; }
  .route-summary { margin: -29px 2px 0; padding: 6px; grid-template-columns: 20px 1fr; gap: 5px; }
  .route-summary-icon { width: 20px; height: 20px; border-radius: 6px; font-size: 0.5rem; }
  .route-summary strong { font-size: 0.36rem; }
  .signal-pills { margin: 6px 2px 0; gap: 4px; }
  .route-pin { width: 14px; height: 14px; border-width: 2px; }
  .handset-caption { display: none; }
  .constellation-trace { right: 7%; bottom: 49px; left: 7%; }
  .constellation-foot { right: 8%; bottom: 17px; left: 8%; font-size: 0.34rem; }
  .constellation-foot i { margin-inline: 6px; }

  .feature-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-handset,
  .handset-shell,
  .route-line,
  .scan-ring,
  .constellation-trace::after,
  .landing-visual::after,
  .constellation-foot i,
  .landing-actions .button-primary::before {
    animation: none !important;
  }

  .hero-handset {
    opacity: 1;
  }

  .hero-handset-cockpit {
    transform: translateX(-50%);
  }

  .route-line {
    stroke-dashoffset: 0;
  }

  .js-public-motion .public-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
