/* iDriveApps — "Live Cockpit": the site speaks the head unit's own screen language. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(/fonts/barlow-400.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(/fonts/barlow-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(/fonts/barlow-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url(/fonts/barlowcond-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(/fonts/barlowcond-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(/fonts/barlowcond-700.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  /* ground → screen → panel: three steps of black glass */
  --ground: #050608;
  --screen: #0a0c11;
  --panel: #10131a;
  --panel-2: #161a23;
  --seam: #232937;
  --seam-hi: #3a4252;
  --text: #eef1f5;
  --muted: #a3acba;
  --dim: #7d8697;
  /* data colours lifted from the apps */
  --blue: #3d9bff;
  --blue-2: #2a6fe0;
  --blue-3: #1b47a8;
  --violet: #8f7bff;
  --red: #e1001a;
  --red-text: #ff5a4c;
  --red-deep: #5c0a10;
  --amber: #ffc21a;
  --green: #2fe07a;
  --ok: #30c875;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --radius: 6px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--text);
  font: 400 17px/1.6 var(--body);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
::selection { background: var(--blue-2); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: #7cbcff; }
html { scrollbar-color: var(--seam-hi) var(--ground); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--seam-hi); border-radius: 10px; border: 2px solid var(--ground); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
code, .mono { font-family: var(--mono); font-size: .9em; }
code { background: var(--panel-2); border: 1px solid var(--seam); padding: 1px 5px; border-radius: 4px; color: #dfe6ef; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1; }
h3 { font-size: 24px; line-height: 1.15; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }

/* ───────── Title strip (the HMI header) ───────── */
.strip {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 6, 8, .82);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--seam);
}
.strip .wrap { display: flex; align-items: stretch; height: 60px; gap: 8px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; padding-right: 18px; }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font: 600 25px/1 var(--display); letter-spacing: .005em; }
.brand-name b { font-weight: 600; color: var(--red-text); }
.tabs { display: flex; align-items: stretch; margin-left: 8px; }
.tabs a {
  position: relative; display: flex; align-items: center; padding: 0 18px;
  font: 600 14px/1 var(--display); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .2s;
}
.tabs a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px;
  background: var(--red); transform: scaleX(0); transition: transform .35s var(--ease);
}
.tabs a:hover, .tabs a[aria-current] { color: var(--text); }
.tabs a:hover::after, .tabs a[aria-current]::after { transform: scaleX(1); }
.strip-end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
@media (max-width: 860px) { .tabs { display: none; } }

/* ───────── Buttons ───────── */
.btn {
  --b: var(--red);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--radius);
  font: 600 17px/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: var(--b); text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .2s var(--ease), box-shadow .2s, background-color .2s, color .2s;
}
.btn:hover { color: #fff; background: #c20017; transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255,255,255,.2); }
.btn:active { transform: translateY(0); }
.btn.secondary {
  background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--seam-hi);
}
.btn.secondary:hover { background: #1d2230; box-shadow: inset 0 0 0 1px #5a6478; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 15px; }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--panel); color: var(--dim); box-shadow: inset 0 0 0 1px var(--seam); cursor: not-allowed; transform: none;
}
.btn .arrow { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ───────── Hero ───────── */
.hero { padding: clamp(36px, 6vw, 72px) 0 0; position: relative; }
.hero::before { /* faint cabin light from above */
  content: ""; position: absolute; inset: -60px 0 auto; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 0%, rgba(61,155,255,.13), transparent 70%);
}
.lights { display: flex; gap: 6px; margin-bottom: 28px; }
.lights i {
  width: 34px; height: 12px; border-radius: 3px; background: #14171e; box-shadow: inset 0 0 0 1px #1d212b;
}
.lights i:nth-child(-n+4) { --on: var(--green); }
.lights i:nth-child(n+5):nth-child(-n+7) { --on: var(--amber); }
.lights i:nth-child(n+8) { --on: var(--red); }
.hero h1 {
  font-size: clamp(56px, 9.6vw, 96px); line-height: .94; font-weight: 700; letter-spacing: -.012em;
  max-width: 13ch;
}
.hero h1 .line { display: block; }
.hero h1 .hot { color: var(--red-text); }
.hero-lede { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; margin-top: 26px; }
.hero-lede p { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 58ch; }
.hero-lede p strong { color: var(--text); font-weight: 500; }
.byline { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.byline svg { width: 18px; height: 18px; flex: none; }
.byline a { color: var(--text); }
@media (max-width: 860px) { .hero-lede { grid-template-columns: 1fr; } .byline { white-space: normal; } }

/* the head unit: wide screen in a bezel, its soft-key bar is the call to action */
.unit { margin-top: clamp(32px, 4vw, 48px); }
.bezel {
  position: relative; padding: 10px; border-radius: 18px;
  background: linear-gradient(#1a1e27, #0c0e13 40%);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 18px 40px -20px rgba(42,111,224,.35), inset 0 1px 0 rgba(255,255,255,.08);
}
.screen {
  position: relative; aspect-ratio: 8 / 3; border-radius: 10px; overflow: hidden; background: #000;
}
.screen video, .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen::after { /* glass */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.07), transparent 32%, transparent 70%, rgba(255,255,255,.03));
}
.softkeys {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; margin-top: 10px; border-radius: 10px; overflow: hidden;
  background: var(--seam); gap: 1px; box-shadow: inset 0 0 0 1px var(--seam);
}
.softkeys > * {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 62px; padding: 0 16px;
  background: #0d1016; color: var(--text); text-decoration: none; border: 0; cursor: pointer;
  font: 600 18px/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
.softkeys > *:hover { background: #161b25; color: #fff; }
.softkeys .primary { background: var(--red); color: #fff; }
.softkeys .primary:hover { background: #c20017; }
.softkeys .primary .price { font-weight: 700; padding-left: 12px; margin-left: 2px; border-left: 1px solid rgba(255,255,255,.35); }
.softkeys .primary:disabled { background: var(--red-deep); color: #f3c2c5; cursor: progress; }
@media (max-width: 680px) {
  .softkeys { grid-template-columns: 1fr 1fr; }
  .softkeys .primary { grid-column: 1 / -1; }
  .softkeys > * { font-size: 16px; min-height: 56px; }
}
@media (max-width: 680px) { .unit .screen { aspect-ratio: 16 / 9; } .unit-caption { flex-direction: column; gap: 4px; } }
.unit-caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--dim); font-size: 14px; }
.unit-caption a { color: var(--muted); }

/* ───────── Ignition: the one authored moment ───────── */
@media (prefers-reduced-motion: no-preference) {
  .js .lights i { animation: led 2.4s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
  .js .hero h1 .line { animation: rise 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms + 600ms); }
  .js .hero-lede, .js .unit { animation: rise 1.1s var(--ease) both; animation-delay: 900ms; }
  .js .unit { animation-delay: 1050ms; }
  .js .unit .screen video { animation: power 1.4s var(--ease) both; animation-delay: 1250ms; }
}
@keyframes led {
  0% { background: #14171e; box-shadow: inset 0 0 0 1px #1d212b; }
  18%, 46% { background: var(--on); box-shadow: 0 0 14px -2px var(--on), inset 0 0 0 1px rgba(255,255,255,.4); }
  100% { background: color-mix(in srgb, var(--on) 22%, #0e1015); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on) 30%, #1d212b); }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 -20% 0); } }
@keyframes power { from { opacity: 0; filter: brightness(2.4) blur(14px); transform: scale(1.04); } to { opacity: 1; filter: none; transform: none; } }
/* without the animation the LEDs rest in their dim colours */
.lights i { background: color-mix(in srgb, var(--on) 22%, #0e1015); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on) 30%, #1d212b); }

/* ───────── Sections ───────── */
section { padding: clamp(80px, 10vw, 136px) 0 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px; align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head p { color: var(--muted); max-width: 54ch; font-size: 18px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* tach rule: the apps' slanted bar, used as a section divider */
.tach {
  display: flex; gap: 4px; height: 14px; margin-bottom: 26px; max-width: 420px;
}
.tach i { flex: 1; transform: skewX(-24deg); background: linear-gradient(var(--blue), var(--blue-2)); border-radius: 1px; }
.tach i:nth-child(n+6) { background: #1b1f29; }
.tach i:nth-child(n+8) { background: var(--red-deep); }

/* creator */
.creator { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.creator blockquote { margin: 0; }
.creator blockquote p { font: 600 clamp(30px, 3.6vw, 46px)/1.08 var(--display); letter-spacing: -.005em; text-wrap: balance; }
.creator blockquote p em { font-style: normal; color: var(--red-text); }
.creator .sig { display: flex; align-items: center; gap: 14px; margin-top: 26px; color: var(--muted); }
.creator .sig img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 1px var(--seam-hi); }
.creator .sig strong { color: var(--text); font-weight: 600; display: block; }
.creator .prose { display: grid; gap: 16px; color: var(--muted); font-size: 18px; }
.creator .prose strong { color: var(--text); font-weight: 500; }
@media (max-width: 860px) { .creator { grid-template-columns: 1fr; } }

.routes { margin-top: 28px; border: 1px solid var(--seam); border-radius: 10px; overflow: hidden; }
.routes div { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 20px; align-items: center; }
.routes div + div { border-top: 1px solid var(--seam); }
.routes div.ours { background: linear-gradient(90deg, rgba(42,111,224,.14), transparent 70%); }
.routes h3 { font-size: 21px; }
.routes p { grid-column: 1; color: var(--muted); font-size: 15px; }
.routes .cost { grid-row: 1 / span 2; grid-column: 2; font: 700 30px/1 var(--display); }
.routes .cost small { display: block; font: 500 13px/1.3 var(--body); color: var(--dim); text-align: right; }

/* ───────── Apps: HMI tab switcher ───────── */
.viewer .hmi-tabs {
  display: flex; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--seam); margin-bottom: 0;
  background: #0b0d12; border-radius: 12px 12px 0 0; box-shadow: inset 0 0 0 1px var(--seam);
}
.viewer .hmi-tabs::-webkit-scrollbar { display: none; }
.hmi-tabs button {
  position: relative; flex: none; padding: 0 22px; height: 54px; border: 0; background: none; cursor: pointer;
  font: 600 15px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.hmi-tabs button:hover { color: var(--text); background: rgba(255,255,255,.03); }
.hmi-tabs button[aria-selected="true"] { color: #fff; background: linear-gradient(rgba(225,0,26,.0), rgba(225,0,26,.14)); }
.hmi-tabs button::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--red);
  transform: scaleX(0); transition: transform .4s var(--ease);
}
.hmi-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.viewer .bezel { border-radius: 0 0 18px 18px; padding-top: 0; }
.viewer .screen { border-radius: 0 0 10px 10px; }
.viewer .screen [data-app] { opacity: 0; transform: scale(1.015); transition: opacity .5s var(--ease), transform .8s var(--ease); }
.viewer .screen [data-app].on { opacity: 1; transform: none; z-index: 1; }
.viewer-cap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; margin-top: 18px; min-height: 52px; }
.viewer-cap h3 { font-size: 28px; }
.viewer-cap p { color: var(--muted); max-width: 70ch; }

.app-list { list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--seam); }
.app-list li { display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 20px 20px 20px 0; border-bottom: 1px solid var(--seam); align-items: start; }
.app-list img { width: 56px; height: 56px; grid-row: 1 / span 2; border-radius: 12px; }
.app-list strong { font: 600 21px/1.1 var(--display); letter-spacing: .01em; padding-top: 4px; }
.app-list span { color: var(--muted); font-size: 15px; line-height: 1.45; }
@media (max-width: 1000px) { .app-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .app-list { grid-template-columns: 1fr; } }
.app-note { margin-top: 20px; color: var(--dim); font-size: 14px; }

/* ───────── How it works: seven segments ───────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 6px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; }
.steps .seg {
  height: 40px; transform: skewX(-22deg); border-radius: 2px; margin: 0 4px 22px;
  background: linear-gradient(#2f7ff0, var(--blue-3));
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.steps .seg b { transform: skewX(22deg); font: 700 22px/1 var(--display); color: #fff; }
.steps li.safe .seg { background: linear-gradient(#5ee89a, #2bbf6c); }
.steps li.safe .seg b { color: #042613; }
.steps li.go .seg { background: linear-gradient(#ff5e52, var(--red) 60%, #8a0010); }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; line-height: 1.5; padding-right: 10px; }
.steps .tag { display: inline-block; margin-top: 10px; font: 600 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.steps li.safe .tag { color: var(--green); }
.steps li.go .tag { color: var(--red-text); }
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 76px 1fr; gap: 0 18px; padding: 18px 0; border-top: 1px solid var(--seam); }
  .steps .seg { grid-row: 1 / span 3; margin: 2px 6px 0; height: 44px; }
}

/* need + risk */
.prep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: clamp(48px, 6vw, 72px); }
.prep > div { border: 1px solid var(--seam); border-radius: 12px; padding: clamp(22px, 3vw, 32px); background: var(--screen); }
.prep h3 { margin-bottom: 16px; }
.prep ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.prep li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--muted); }
.prep li strong { color: var(--text); font-weight: 500; }
.prep li svg { width: 20px; height: 20px; margin-top: 3px; }
.prep .risk { border-color: #4a3a12; background: linear-gradient(160deg, rgba(255,194,26,.07), transparent 60%), var(--screen); }
.prep .risk h3 { color: var(--amber); }
@media (max-width: 860px) { .prep { grid-template-columns: 1fr; } }

/* ───────── Pricing: a readout ───────── */
.readout {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 4vw, 48px); border-radius: 16px; background: var(--screen);
  box-shadow: inset 0 0 0 1px var(--seam), 0 30px 60px -40px rgba(42,111,224,.5);
}
.readout .big { display: flex; align-items: baseline; gap: 10px; }
.readout .big .num { font-size: clamp(88px, 11vw, 136px); line-height: .85; font-weight: 700; letter-spacing: -.02em; }
.readout .big .unit-l { font: 600 22px/1 var(--display); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.readout dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; }
.readout dt { font: 600 14px/1.6 var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.readout dd { margin: 0; color: var(--text); }
@media (max-width: 960px) { .readout { grid-template-columns: 1fr; } }

/* ───────── FAQ ───────── */
.faq { border-top: 1px solid var(--seam); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--seam); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font: 600 23px/1.2 var(--display); letter-spacing: .005em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); border-color: var(--red-text); }
.faq summary:hover { color: #fff; }
.faq .a { padding: 0 0 24px; color: var(--muted); max-width: 70ch; display: grid; gap: 12px; }

/* ───────── Closing + footer ───────── */
.closer { text-align: left; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; padding-bottom: 8px; }
.closer h2 { max-width: 16ch; }
footer { margin-top: clamp(80px, 10vw, 136px); border-top: 1px solid var(--seam); padding: 36px 0 48px; color: var(--dim); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px 48px; }
footer p + p { margin-top: 10px; }
footer a { color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-end; align-content: start; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } footer nav { justify-content: flex-start; } }

/* ───────── Forms ───────── */
input[type=text] {
  background: #07090c; border: 1px solid var(--seam-hi); color: var(--text); border-radius: var(--radius);
  min-height: 48px; padding: 0 16px; font: 500 18px/1 var(--mono); letter-spacing: .04em; min-width: 0; flex: 1;
  transition: border-color .2s, box-shadow .2s;
}
input[type=text]::placeholder { color: #7a8394; }
input[type=text]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61,155,255,.25); }
input[type=checkbox] { accent-color: var(--red); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }

.key {
  font: 600 clamp(20px, 3vw, 28px)/1.3 var(--mono); letter-spacing: .06em; padding: 18px 22px; word-break: break-all;
  background: #07090c; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--seam-hi), 0 0 0 4px rgba(61,155,255,.08);
}

/* ───────── Installer app ───────── */
.app { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; padding-top: 32px; padding-bottom: 64px; align-items: start; }
@media (max-width: 960px) { .app { grid-template-columns: 1fr; } }
.app-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; padding-bottom: 8px; }
.app-head h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1; }
.app-head p { color: var(--muted); max-width: 60ch; }

.card { background: var(--screen); border: 1px solid var(--seam); border-radius: 12px; padding: 24px; }
.card h2, .card h3 { margin: 0 0 6px; }
.card p { color: var(--muted); }
.card p + p, .card p + .row, .card .row + p { margin-top: 12px; }

.step { position: relative; margin-bottom: 12px; padding: 22px 24px 24px 84px; transition: opacity .3s, border-color .3s, background-color .3s; }
.step > h2 { display: flex; align-items: center; gap: 12px; font-size: 25px; margin-bottom: 10px; }
.step > h2 .n {
  position: absolute; left: 22px; top: 22px; width: 44px; height: 34px; display: grid; place-items: center;
  transform: skewX(-20deg); border-radius: 2px; background: linear-gradient(#2f7ff0, var(--blue-3));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.step > h2 .n b { transform: skewX(20deg); font: 700 20px/1 var(--display); color: #fff; }
.step.locked { opacity: .42; pointer-events: none; }
.step.locked > h2 .n { background: #1b1f29; box-shadow: inset 0 0 0 1px var(--seam-hi); }
.step:has(.dot.ok) { border-color: rgba(48,200,117,.35); }
.step:has(.dot.ok) > h2 .n { background: linear-gradient(#5ee89a, #2bbf6c); }
.step:has(.dot.ok) > h2 .n b { color: #042613; }
@media (max-width: 560px) {
  .step { padding: 20px 18px 20px; }
  .step > h2 .n { position: static; flex: none; width: 38px; height: 30px; }
}

.dot { width: 9px; height: 9px; border-radius: 50%; background: #2a3040; flex: none; margin-left: auto; order: 9; transition: background-color .3s, box-shadow .3s; }
.dot.ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot.warn { background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: blink 1.2s steps(2) infinite; }
.dot.err { background: var(--red); box-shadow: 0 0 10px var(--red); }
@keyframes blink { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .dot.warn { animation: none; } }

.banner {
  padding: 16px 18px; border-radius: 10px; font-size: 15px; line-height: 1.55; margin: 14px 0;
  background: linear-gradient(160deg, rgba(255,194,26,.08), rgba(255,194,26,.02)); color: #f2dfae;
  box-shadow: inset 0 0 0 1px #5a4614;
}
.banner strong { color: #ffe39a; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; cursor: pointer; }

.log-card { position: sticky; top: 84px; padding: 0; overflow: hidden; }
.log-card .log-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--seam); }
.log-card .log-head strong { font: 600 15px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
#busy { color: var(--amber); font-size: 14px; }
.log-tools { display: flex; align-items: center; gap: 12px; }
.log-tools .btn { padding: 5px 12px; font-size: 13px; }
.log { background: #050608; height: min(70vh, 640px); overflow-y: auto; padding: 14px 18px; font: 13px/1.6 var(--mono); color: #b9c3cd; }
.log-foot { margin: 0; padding: 12px 18px; border-top: 1px solid var(--seam); color: var(--muted); }
.log:empty::before { content: "Waiting for your license key…"; color: var(--dim); }
.log .warn { color: var(--amber); } .log .error { color: var(--red-text); } .log .info { color: #b9c3cd; }
@media (max-width: 960px) { .log-card { position: static; } .log { height: 320px; } }

pre.cmd { white-space: pre-wrap; word-break: break-all; background: #050608; border: 1px solid var(--seam); padding: 12px 14px; border-radius: 8px; font: 13px/1.5 var(--mono); margin: 8px 0 0; }
.result-ok { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: rgba(48,200,117,.08); box-shadow: inset 0 0 0 1px rgba(48,200,117,.35); }
.result-ok p { color: #c9f2d8; }

.backups { list-style: none; padding: 0; margin: 14px 0 0; font-size: 15px; }
.backups li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--seam); align-items: center; }
.backups li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 13px; }
.backups .btn { min-height: 34px; padding: 0 12px; font-size: 14px; }

/* order page */
.order { max-width: 720px; padding: clamp(56px, 8vw, 96px) var(--gutter) 40px; }
.order h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1; margin: 22px 0 14px; }
.order .lede { color: var(--muted); font-size: 18px; }
.pending { display: flex; gap: 6px; max-width: 260px; }
.pending i { flex: 1; height: 12px; transform: skewX(-22deg); background: #1b1f29; }
@media (prefers-reduced-motion: no-preference) {
  .pending i { animation: sweep 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * 110ms); }
}
@keyframes sweep { 0%, 100% { background: #1b1f29; } 30% { background: var(--blue); } }
.pending.done i { animation: none; background: var(--ok); }
.pending.fail i { animation: none; background: var(--red-deep); }

/* License-key gate: shown before payment so the buyer saves their key first */
.keygate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(3,4,6,.74); backdrop-filter: blur(4px); }
.keygate[hidden] { display: none; }
.keygate-card { max-width: 480px; width: 100%; }
.keygate-card h2 { font-size: 24px; margin-bottom: 10px; }
.keygate .key { margin: 16px 0 4px; padding: 14px 16px; border: 1px solid var(--seam-hi); border-radius: 10px;
  background: var(--panel); font-family: var(--mono); font-size: 22px; letter-spacing: .06em;
  color: var(--text); text-align: center; word-break: break-all; }
