/* Aux, aux.syavi.dev, palette "Paper and brass"
   Set like a printed manual with copy on the left, the car screen on the right, numbered sections and figures on paper mats
   Brass appears once on the page as the headline's closing period and once in the icon on the jack tip, and at 3.5:1 on paper it never carries small text */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f0ebde;     /* surface */
  --raised: #e5ddcb;    /* raised surface */
  --ink: #141412;       /* primary and text, 15.2:1 */
  --on-ink: #f0ebde;    /* button text */
  --brass: #9a7633;     /* large or decorative only, 3.5:1 */
  --dim: #55534c;       /* secondary text, 6.3:1 */
  --meta: #66635a;      /* small print, 4.9:1 */
  --rule: rgba(20, 20, 18, .16);
  --rule-2: rgba(20, 20, 18, .24);
  --bezel: #050505;
  --ink-hover: #2c2b27;
  --dark-brass: #765721;  /* section numbers, 5.6:1 on paper */
  --paper-edge: #cbbca0;  /* hairline around the screenshot mats */
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { background: var(--paper); color-scheme: light; -webkit-text-size-adjust: 100%; scrollbar-color: rgba(20, 20, 18, .38) var(--paper); }
body {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
main { overflow-x: clip; }
::selection { background: var(--ink); color: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
ol, ul { list-style: none; }
svg { fill: currentColor; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { display: block; }
.logo-mark { display: block; height: 40px; width: auto; }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--dim); }
.top nav a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; transition: color .12s ease; }
.top .nav-cta { min-height: 0; }
.top nav a:hover { color: var(--ink); }
.top .gh svg { width: 16px; height: 16px; }
.top .nav-cta {
  height: 34px; padding: 0 14px; border-radius: 8px;
  background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: 13.5px;
}
.top .nav-cta:hover { color: var(--on-ink); background: var(--ink-hover); }

/* Hero with the copy on the left and the car screen running off the right */
.hero {
  display: grid;
  grid-template-columns: 520px minmax(0, 1fr);
  column-gap: 52px;
  align-items: start;
  padding-top: 78px;
  padding-bottom: 160px;
}
.copy { padding-top: 6px; }
.hero { position: relative; }
/* On desktop the hero fills the first screen so the halftone sits on the bottom edge and section 01 starts below the fold */
@media (min-width: 901px) {
  .hero { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); align-content: center; padding-top: 40px; padding-bottom: 120px; }
}
.copy, .screen { position: relative; z-index: 1; }

/* Halftone field from field.js, ink dots rising from the bottom of the hero across the full width */
.field {
  position: absolute; z-index: 0; pointer-events: none;
  left: 50%; width: 100vw; margin-left: -50vw;
  top: 0; height: 100%;
  opacity: 0; transition: opacity .8s ease;
}
.field.on { opacity: 1; }

h1 {
  font-size: 68px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -.04em;
}
h1 .dot { color: var(--brass); }

.sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--dim);
  margin-top: 28px;
  max-width: 450px;
  text-wrap: pretty;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px 0 21px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: background-color .12s ease;
}
.hero .cta { margin-top: 38px; }
.cta svg { width: 18px; height: 18px; flex: none; fill: none; }
.cta:hover { background: var(--ink-hover); }
.cta:active { transform: translateY(1px); }
.cta:focus-visible { outline-offset: 4px; border-radius: 12px; }

.meta {
  font-size: 13px;
  line-height: 20px;
  margin-top: 14px;
  color: var(--meta);
  font-variant-numeric: tabular-nums;
}
code { font-family: var(--mono); font-size: .94em; color: var(--ink); }
.nw { white-space: nowrap; }

.more { display: flex; align-items: center; gap: 22px; margin-top: 20px; font-size: 14.5px; line-height: 22px; color: var(--dim); }
.more a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 0; margin: -11px 0; }
.src { color: var(--ink); }
.src .ghm { width: 16px; height: 16px; }
.src .arr { display: inline-block; margin-left: 2px; color: var(--meta); transition: transform .15s ease; }
.src:hover .arr { transform: translateX(2px); }
.rel { text-decoration: underline; text-decoration-color: var(--rule-2); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.src:hover, .rel:hover { text-decoration: underline; text-decoration-color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* The car screen, the real screenshot in a flat black bezel */
.screen { width: 1080px; }
.bezel {
  padding: 14px;
  background: var(--bezel);
  border-radius: 26px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 30px 60px -30px rgba(0, 0, 0, .35);
}
.bezel img { width: 100%; border-radius: 13px; }

@media (prefers-reduced-motion: no-preference) {
  .screen { animation: arrive .7s cubic-bezier(.2, .7, .2, 1) .12s both; }
  h1 .dot { animation: ink .2s ease-out .45s both; }
  @keyframes arrive { from { opacity: 0; transform: translateX(32px); } }
  @keyframes ink { from { opacity: 0; } }
}

/* Numbered sections set like a manual, a heavy ink rule and then columns split by hairlines */
.n { display: block; font-size: 13px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.features ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
}
.features li { padding: 28px 32px 0; border-left: 1px solid var(--rule); }
.features li:first-child { padding-left: 0; border-left: 0; }
.features li:last-child { padding-right: 0; }
.features h2 { margin-top: 0; font-size: 24px; line-height: 1.15; font-weight: 650; letter-spacing: -.03em; text-wrap: balance; }
.features p { margin-top: 10px; max-width: 320px; font-size: 16px; line-height: 1.55; color: var(--dim); text-wrap: pretty; }
.features { padding-bottom: 88px; }

/* 05, the phone remote with a big section headline beside a real phone screenshot */
.remote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 64px;
  align-items: center;
  padding-bottom: 120px;
}
.remote .text { border-top: 2px solid var(--ink); padding-top: 22px; align-self: start; }
.remote h2 { margin-top: 36px; font-size: 52px; line-height: 1.02; font-weight: 650; letter-spacing: -.04em; text-wrap: balance; }
.lede { margin-top: 18px; max-width: 460px; font-size: 18px; line-height: 1.6; color: var(--dim); text-wrap: pretty; }
.checks { display: grid; gap: 12px; margin-top: 28px; font-size: 15.5px; color: var(--dim); }
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks svg { width: 16px; height: 16px; flex: none; fill: none; color: var(--ink); transform: translateY(3px); }

.panel {
  position: relative;
  height: 380px;
  border-radius: 20px;
  background: var(--raised);
  box-shadow: 0 0 0 1px var(--rule);
  overflow: hidden;
}
/* The remote's controls sit at the bottom of the screenshot, so the panel shows the bottom of a phone large enough to read them and the feed runs off the top */
.panel picture { position: absolute; left: 50%; bottom: 40px; width: 440px; transform: translateX(-50%); }
.phone {
  width: 100%;
  padding: 10px;
  background: var(--bezel);
  border-radius: 54px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45);
}

/* Links from the summary to the sections that expand it */
.xref { white-space: nowrap; color: var(--ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; margin-left: 4px; text-decoration: underline; text-decoration-color: var(--rule-2); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.xref::after { content: " >"; }
.xref:hover { text-decoration-color: var(--ink); }

/* Shared section head with a heavy rule, a number and a big headline */
.head { border-top: 2px solid var(--ink); padding-top: 22px; }
.head h2, .leaf h2 { margin-top: 36px; font-size: 52px; line-height: 1.02; font-weight: 650; letter-spacing: -.04em; text-wrap: balance; }
.head .lede { margin-top: 16px; }

/* 04, plates with one large figure and two small ones sized so the columns end level */
.plates { padding-bottom: 120px; }
.plate-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.52fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 32px;
  margin-top: 48px;
}
.plate.big { grid-row: span 2; }
.bezel.sm { padding: 10px; border-radius: 18px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 20px 40px -26px rgba(0, 0, 0, .35); }
.bezel.sm img { border-radius: 9px; }

/* 03 and 04, a spread of two pages with a short text over a phone on each */
.spread { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding-bottom: 120px; }
.leaf { border-top: 2px solid var(--ink); padding: 22px 40px 0 0; }
.leaf + .leaf { padding: 22px 0 0 40px; border-left: 1px solid var(--rule); }
.leaf h2 { font-size: 40px; line-height: 1.05; }
.leaf > p { margin-top: 16px; max-width: 470px; min-height: 5.1em; font-size: 17px; line-height: 1.6; color: var(--dim); text-wrap: pretty; }
.leaf .phone-fig { margin-top: 32px; }
.panel.from-top { height: 420px; }
/* These settings pages start at the top of the phone, so the phone hangs from the top */
.panel.from-top picture { position: absolute; left: 50%; top: 36px; bottom: auto; width: 360px; transform: translateX(-50%); }
.panel.from-top .phone { border-radius: 46px; padding: 9px; }

/* 06, the sources as floating tiles, drawn like the buttons on Aux's own start page */
.sources { padding-bottom: 120px; }

/* 05, tested cars as a slow reel of cutouts, with the details on GitHub */
.cars { padding-bottom: 120px; }

/* Closing download, set like the last page of a manual */
.end {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: end;
  padding-top: 40px;
  padding-bottom: 120px;
  border-top: 2px solid var(--ink);
}
.end h2 { font-size: 88px; line-height: .95; font-weight: 650; letter-spacing: -.04em; }
.end .lede { margin-top: 0; max-width: 520px; text-wrap: balance; }
.end-actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.ghost {
  display: inline-flex; align-items: center; height: 52px; padding: 0 22px;
  border-radius: 10px; font-size: 16px; font-weight: 600; letter-spacing: -.01em;
  box-shadow: 0 0 0 1px var(--rule-2) inset; transition: background-color .12s ease;
}
.ghost:hover { background: var(--raised); }
.end .fine { margin-top: 22px; max-width: 520px; font-size: 13px; line-height: 20px; color: var(--meta); text-wrap: pretty; }


/* Narrower desktops */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 440px minmax(0, 1fr); column-gap: 44px; }
  .screen { width: 920px; }
  h1 { font-size: 58px; }
  .sub { font-size: 18px; }
  .features li { padding-left: 22px; padding-right: 22px; }
  .remote { grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; }
  .panel { height: 324px; }
  .panel picture { width: 376px; bottom: 34px; }
  .phone { border-radius: 46px; padding: 9px; }
  .end h2 { font-size: 72px; }
  .head h2 { font-size: 46px; }
  .leaf h2 { font-size: 34px; }
  .leaf { padding-right: 28px; } .leaf + .leaf { padding-left: 28px; }
  .panel.from-top picture { width: 320px; }
}

/* Stacked layout for tablets and phones */
@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .top { height: 64px; }
  .logo-mark { height: 32px; }
  .top nav { gap: 18px; }

  .hero { display: block; padding-top: 24px; padding-bottom: 110px; }
  .copy { padding-top: 0; }
  h1 { font-size: clamp(42px, 11.2vw, 64px); text-wrap: balance; }
  .sub { font-size: 16.5px; line-height: 1.5; margin-top: 18px; max-width: 520px; }
  .hero .cta { width: 100%; max-width: 420px; justify-content: center; height: 54px; margin-top: 26px; }
  .more { margin-top: 16px; }

  /* Full width, running off the right edge like on desktop */
  .screen { width: calc(100% + 48px); max-width: 860px; margin-top: 40px; }
  .bezel { padding: 9px; border-radius: 16px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 20px 40px -24px rgba(0, 0, 0, .35); }
  .bezel img { border-radius: 8px; }

  /* Tablets keep the three numbered columns, and they stack below 700px */
  .features li { padding: 20px 18px 0; }
  .features h2 { margin-top: 0; font-size: 21px; }
  .features p { font-size: 15.5px; }
  .features { padding-bottom: 72px; }

  .remote { grid-template-columns: 1fr; gap: 36px; padding-bottom: 72px; }
  .remote h2 { margin-top: 24px; font-size: 38px; }
  .lede { font-size: 16.5px; }
  .panel { height: 380px; }
  .panel picture { width: 440px; bottom: 40px; }
  .phone { border-radius: 54px; padding: 10px; }

  .head h2 { margin-top: 24px; font-size: 38px; }
  .plates, .sources, .cars { padding-bottom: 72px; }
  .plate-grid { grid-template-columns: 1fr 1fr; margin-top: 32px; gap: 24px 16px; }
  .plate.big { grid-row: auto; grid-column: 1 / -1; }
  .bezel.sm { padding: 7px; border-radius: 13px; }
  .bezel.sm img { border-radius: 7px; }

  .spread { grid-template-columns: 1fr; padding-bottom: 72px; gap: 56px; }
  .leaf, .leaf + .leaf { padding: 20px 0 0; border-left: 0; }
  .leaf h2 { margin-top: 24px; font-size: 32px; }
  .leaf > p { min-height: 0; font-size: 16.5px; }
  .leaf .phone-fig { margin-top: 24px; }
  .panel.from-top { height: 400px; }
  .panel.from-top picture { width: 340px; }


  /* The table becomes one block per car, each value labelled */

  .end { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; padding-bottom: 72px; }
  .end h2 { font-size: 56px; }
  .end-actions { flex-direction: column; align-items: stretch; max-width: 420px; }
  .end-actions .cta, .ghost { justify-content: center; height: 54px; }

}

@media (max-width: 700px) {
  .features ol { grid-template-columns: 1fr; }
  .features li, .features li:nth-child(n) { display: block; padding: 20px 0 24px; border-left: 0; }
  .features li + li { border-top: 1px solid var(--rule); }
  .features h2 { margin-top: 0; font-size: 22px; }
  .features p { margin-top: 8px; font-size: 16px; }
  .features { padding-bottom: 56px; }
}

@media (max-width: 560px) {
  /* The panel keeps its proportions, so the remote stays the same share of the frame */
  .panel { height: auto; aspect-ratio: 1 / .72; }
  .panel picture { width: 86%; bottom: 7%; }
  .phone { border-radius: 40px; padding: 8px; }

  .hide-s { display: none !important; }
  .plate-grid { grid-template-columns: 1fr; gap: 24px; }
  .panel.from-top { height: auto; aspect-ratio: 1 / 1.05; }
  .panel.from-top picture { width: 80%; top: 8%; }
  .panel.from-top .phone { border-radius: 38px; padding: 8px; }
}

/* Visually hidden text for screen readers */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Aux cable down the left margin, drawn in ink at the logo's stroke weight, with the jack tip in brass */
.cable { position: absolute; top: 0; left: 0; z-index: 2; pointer-events: none; overflow: visible; }
.cable .wire, .cable .taper path { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.cabled #left-jack { display: none; }
.cable .jack { fill: var(--ink); opacity: 0; transition: opacity .3s ease; }
.cable .jack .tip { fill: var(--brass); }
.cable .jack-in { transform: translateX(-4px); transition: transform .28s cubic-bezier(.3, 1.6, .5, 1); }
.cable.near .jack { opacity: 1; }
.cable.in .jack-in { transform: none; }

/* the hero car screen is a working copy of Aux, drawn at the car screen's own size by app.js and scaled to fit, and the real screenshot stays underneath for anyone without JavaScript */
.shot { position: relative; }
.shot img { aspect-ratio: 1160 / 690; object-fit: cover; object-position: top; }
.shot.live > picture { visibility: hidden; }
.callout { position: absolute; left: 14.8%; bottom: calc(100% + 14px); padding-bottom: 30px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); white-space: nowrap; pointer-events: none; }
.callout::after { content: ""; position: absolute; left: 0; bottom: 0; width: 1.5px; height: 26px; background: var(--ink); }
.callout::before { content: ""; position: absolute; left: -3px; bottom: -3px; width: 7.5px; height: 7.5px; border-radius: 50%; background: var(--ink); }
@media (max-width: 900px) {
  .callout { font-size: 12.5px; bottom: calc(100% + 9px); padding-bottom: 20px; }
  .callout::after { height: 17px; }
  .screen { margin-top: 72px; }
}

/* The app's own colours from colors.xml and its page CSS, kept inside the mock, and the red is the app's accent so it never reaches the paper */
.app {
  --app-red: #f03; --bg: #0f0f0f; --surf: #1c1c1c; --surf-hi: #2a2a2a; --on: #f1f1f1; --mute: #aaa;
  position: absolute; left: 0; top: 0; width: 1160px; height: 690px;
  transform: scale(var(--k, .5)); transform-origin: 0 0;
  border-radius: calc(13px / var(--k, .5)); overflow: hidden;
  background: var(--bg); color: var(--on);
  font-family: Roboto, "Segoe UI", system-ui, sans-serif; font-size: 16px; line-height: 1.3; letter-spacing: 0;
  -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.app button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
.app button:focus-visible, .app .seek:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff; }
.app svg { display: block; }
.app svg.s { fill: none; }
.app img { width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto; }

/* Toolbar from fragment_webview_car.xml, 46dp buttons with 12dp padding and the media group on a raised surface */
.app .bar { position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 72px; display: flex; align-items: center; padding: 0 11px; background: var(--bg); transition: filter .2s ease; }
.app .tb { flex: 1 1 0; min-width: 0; height: 64px; margin: 0 3px; border-radius: 19px; display: grid; place-items: center; }
.app .tb svg { width: 30px; height: 30px; }
.app .tb:hover { background: rgba(255, 255, 255, .08); }
.app .tb:active { background: rgba(255, 255, 255, .25); }
.app .tb.act { background: var(--surf-hi); }
.app .div { flex: none; width: 1px; height: 39px; margin: 0 11px; background: var(--surf-hi); }
.app .media { flex: 3.3 1 0; min-width: 0; display: flex; align-items: center; padding: 3px; border-radius: 25px; background: var(--surf); }
.app .media.off .tb { opacity: .35; pointer-events: none; }
.app[data-panel] .bar { filter: brightness(.4); pointer-events: none; }
.app .load { position: absolute; z-index: 4; left: 0; top: 72px; height: 4px; width: 0; background: var(--app-red); opacity: 0; }
.app .load.run { animation: appload .5s ease-out; }
@keyframes appload { 0% { width: 0; opacity: 1; } 75% { width: 100%; opacity: 1; } 100% { width: 100%; opacity: 0; } }

.app .view { position: absolute; left: 0; right: 0; top: 72px; bottom: 0; overflow-y: auto; scrollbar-width: none; transition: opacity .2s ease; }
.app .view::-webkit-scrollbar { display: none; }
.app .view.fade { opacity: .35; }
.app[data-view="player"] .view { top: 0; overflow: hidden; }
.app .toast { position: absolute; z-index: 5; left: 50%; top: 92px; transform: translate(-50%, -8px); padding: 11px 22px; border-radius: 25px; background: var(--on); color: var(--bg); font-size: 19px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.app .toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Pages the app serves to the car, written in its CSS pixels and shown at the 1.25 zoom the car screen uses */
.app .start, .app .results, .app .tabs, .app .chips, .app .view > .grid, .app .view > .empty { zoom: 1.25; }
.app .start { max-width: 1100px; margin: 0 auto; padding: 18px 16px 32px; }
.app .search { display: flex; align-items: center; gap: 14px; width: 100%; height: 60px; padding: 0 20px; margin-bottom: 14px; border-radius: 30px; background: #1f1f1f; color: var(--mute); font-size: 18px; }
.app .search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--on); font: inherit; outline: none; padding: 0; user-select: text; -webkit-user-select: text; }
.app .search input::placeholder { color: var(--mute); }
.app .search input::-webkit-search-cancel-button { display: none; }
.app .search:focus-within { box-shadow: 0 0 0 3px #fff; }
.app .search svg { flex: none; }
.app .places { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.app .place { display: flex; align-items: center; justify-content: center; height: 104px; border-radius: 20px; background: #1f1f1f; }
.app .place:hover { background: #262626; }
.app .place:active { background: #2c2c2c; }
.app .place svg { width: 58px; height: 58px; }
.app h2 { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: 0; margin: 12px 12px 10px; }
.app .start h2 { margin: 4px 4px 12px; }
.app .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px 12px; padding: 0 12px 28px; }
.app .start .grid { padding: 0; }
.app .card { display: flex; flex-direction: column; justify-content: flex-start; min-width: 0; border-radius: 12px; }
.app .card:focus-visible { box-shadow: none; }
.app .card:focus-visible .thumb { box-shadow: 0 0 0 3px #fff; }
.app .thumb { position: relative; aspect-ratio: 16 / 9; background: #222; border-radius: 12px; overflow: hidden; }
.app .thumb picture, .app .thumb img { position: absolute; inset: 0; object-fit: cover; }
.app .card:hover .thumb img { filter: brightness(1.08); }
.app .track { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .35); }
.app .barp { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--app-red); }
.app .dur { position: absolute; right: 6px; bottom: 8px; background: rgba(0, 0, 0, .8); font-size: 12px; font-weight: 500; padding: 1px 5px; border-radius: 4px; }
.app .svcm { position: absolute; left: 8px; bottom: 8px; width: 46px; height: 46px; border-radius: 12px; background: rgba(0, 0, 0, .82); display: flex; align-items: center; justify-content: center; }
.app .svcm svg { width: 34px; height: 34px; }
.app .t { font-size: 15px; line-height: 1.3; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app .m { font-size: 13px; color: var(--mute); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app .empty { padding: 48px 28px; text-align: center; color: var(--mute); font-size: 16px; line-height: 1.55; max-width: 640px; margin: 0 auto; }
.app .empty b { color: var(--on); font-size: 18px; }
.app .tabs { position: sticky; top: 0; z-index: 3; background: var(--bg); display: flex; gap: 8px; padding: 10px 12px 8px; }
.app .tab { flex: none; padding: 9px 18px; border-radius: 20px; background: #272727; font-size: 15px; font-weight: 500; white-space: nowrap; }
.app .tab.on { background: var(--on); color: var(--bg); }
.app .chips { display: flex; gap: 8px; padding: 2px 12px 12px; }
.app .chip { flex: none; padding: 6px 14px; border-radius: 16px; background: #1f1f1f; color: #ddd; font-size: 14px; white-space: nowrap; }
.app .chip.on { background: var(--on); color: var(--bg); }
.app .results { max-width: 1400px; margin: 0 auto; padding: 14px 0 28px; }
.app .results > .search { width: auto; margin: 0 12px 6px; cursor: text; }
.app .people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 0 12px 18px; }
.app .person { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: #1f1f1f; min-width: 0; }
.app .av { position: relative; flex: none; width: 64px; height: 64px; margin: 0 8px 8px 0; border-radius: 50%; background: #333; }
.app .svc { position: absolute; right: -10px; bottom: -10px; width: 38px; height: 38px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.app .svc svg { width: 28px; height: 28px; }
.app .pi { min-width: 0; }
.app .pi b { display: block; font-size: 18px; font-weight: 600; }
.app .pi span { display: block; color: var(--mute); font-size: 14px; margin-top: 2px; }

/* Bookmarks, the app's native screen with its own bar and a grid of cards */
.app .bm { min-height: 100%; }
.app .bmbar { display: flex; align-items: center; gap: 18px; height: 78px; padding: 0 11px; }
.app .bmbar .tb { flex: none; width: 64px; }
.app .bmbar h2 { margin: 0; font-size: 27px; font-weight: 500; }
.app .bmgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 8px; }
.app .bmc { display: flex; flex-direction: column; justify-content: flex-start; border-radius: 19px; padding: 8px; }
.app .bmc:hover { background: rgba(255, 255, 255, .06); }
.app .bmc .art { display: grid; place-items: center; height: 138px; border-radius: 14px; background: var(--surf-hi); }
.app .bmc .art svg { width: 64px; height: 64px; }
.app .bmc .bt { margin-top: 12px; padding: 0 4px; font-size: 22px; }
.app[data-view="marks"] .bar { display: none; }
.app[data-view="marks"] .view { top: 0; }

/* The player, the video under the toolbar with the corner pills and the control band, laid out from the real screenshot */
.app .player { position: absolute; inset: 0; background: #000; }
.app .frame { position: absolute; inset: 0; }
.app .frame picture, .app .frame img { position: absolute; inset: 0; object-fit: contain; }
.app .fit-stretch .frame img { object-fit: fill; }
.app .fit-fill .frame img { object-fit: cover; }
.app .ql { position: absolute; left: 30px; top: 76px; font-size: 18px; color: rgba(255, 255, 255, .8); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.app .pills { position: absolute; right: 20px; top: 266px; display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.app .pill { display: flex; align-items: center; justify-content: center; gap: 18px; height: 68px; min-width: 150px; padding: 0 28px 0 26px; border-radius: 34px; background: rgba(28, 28, 28, .94); font-size: 19px; font-weight: 700; }
.app .pill + .pill { min-width: 218px; }
.app .pill:hover { background: #2c2c2c; }
.app .pill:active { background: #3a3a3a; }
.app .pill svg { width: 28px; height: 28px; flex: none; }
.app .ctl { position: absolute; left: 0; right: 0; bottom: 0; height: 108px; background: rgba(0, 0, 0, .55); }
.app .ctl .row { position: absolute; left: 0; right: 0; top: 10px; display: flex; justify-content: center; gap: 33px; }
.app .cb { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; }
.app .cb svg { width: 32px; height: 32px; }
.app .cb.big svg { width: 38px; height: 38px; }
.app .cb:hover { background: rgba(255, 255, 255, .1); }
.app .cb:disabled { opacity: .35; cursor: default; background: none; }
.app .tm { position: absolute; bottom: 6px; font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.app .tm.cur { left: 14px; }  /* kept clear of the rounded corner, which clips it at phone sizes */
.app .tm.fin { right: 14px; }
.app .seek { position: absolute; left: 80px; right: 80px; bottom: 6px; height: 22px; cursor: pointer; border-radius: 4px; }
.app .seek span { position: absolute; left: 0; top: 9px; height: 4px; }
.app .rail { right: 0; background: rgba(255, 255, 255, .3); }
.app .buf { background: rgba(255, 255, 255, .45); }
.app .seek .done { background: var(--app-red); }
.app .seek .knob { top: 4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--app-red); }

/* Video settings over the player, from the real panel */
.app .scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.app .vs { position: absolute; left: 230px; top: 72px; width: 700px; height: 546px; padding: 22px 30px 0; border-radius: 22px; background: #232323; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.app .ph { display: flex; align-items: center; justify-content: space-between; height: 70px; margin-bottom: 15px; }
.app .ph h2 { margin: 0; font-size: 26px; font-weight: 700; }
.app .ph .done { width: 150px; height: 70px; border-radius: 35px; background: var(--on); color: #111; font-size: 19px; font-weight: 600; text-align: center; }
.app .seg { display: flex; align-items: center; height: 70px; margin-bottom: 15px; padding: 5px; border-radius: 35px; background: #2c2c2c; }
.app .opt { flex: 1 1 0; height: 60px; border-radius: 30px; font-size: 19px; font-weight: 600; text-align: center; }
.app .opt:hover { background: rgba(255, 255, 255, .06); }
.app .opt.on { background: var(--on); color: #111; }
.app .sync .opt { flex: 0 0 120px; font-size: 22px; }
.app .sync span { flex: 1; text-align: center; }
.app .sync small { display: block; font-size: 15px; color: var(--mute); }
.app .sync b { display: block; font-size: 19px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .cable .jack, .cable .jack-in { transition: none; }
  .app, .app * { transition: none !important; animation: none !important; }
}

/* Desktop hero sizes, the car screen ends inside the window so every button in the hero car screen can be reached, and shorter windows get a smaller headline so the hero still fits */
@media (min-width: 901px) {
  .screen { align-self: center; }
}
@media (min-width: 1181px) {
  .screen { width: min(1080px, 50vw - 44px, 100vw - 644px); }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .screen { width: calc(100vw - 556px); }
}
@media (min-width: 901px) and (max-height: 880px) {
  h1 { font-size: 56px; }
  .sub { font-size: 17.5px; margin-top: 22px; }
  .hero .cta { margin-top: 28px; }
  .hero { padding-bottom: 100px; }
}
@media (min-width: 901px) and (max-height: 780px) {
  h1 { font-size: 48px; }
  .sub { font-size: 16px; line-height: 1.5; margin-top: 18px; }
  .hero .cta { margin-top: 22px; }
  .more { margin-top: 14px; }
  .hero { padding-top: 24px; padding-bottom: 84px; }
}
@media (max-width: 900px) {
  .screen { width: 100%; }
}

/* The phone remote under the hero car screen, only on phones and tablets, drawn at the app's own size from CarRemoteBar so it fits the hand holding it */
.rbar, .cord { display: none; }
@media (max-width: 900px) {
  /* The copy leads straight into the car screen and remote, with a short band of dots under the remote */
  .hero { padding-top: 0; }
  .copy { padding: 32px 0 0; }
  .field { top: auto; bottom: 0; height: 64px; }
  .screen { margin-top: 64px; }
  .hero { padding-bottom: 64px; }

  .cord { display: block; height: 44px; margin: -2px 0; }
  .cord svg { display: block; width: 100%; height: 100%; overflow: visible; }
  .cord path { fill: none; stroke: var(--ink); stroke-width: 5px; stroke-linecap: round; vector-effect: non-scaling-stroke; }

  .rbar {
    --app-red: #f03; --surf: #1c1c1c; --surf-hi: #2a2a2a; --on: #f1f1f1; --mute: #aaa;
    display: block; max-width: 420px; margin: 0 auto; padding: 12px 12px 8px 16px;
    background: var(--surf); color: var(--on); border-radius: 20px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 20px 40px -24px rgba(0, 0, 0, .35);
    font-family: Roboto, "Segoe UI", system-ui, sans-serif; line-height: 1.3;
    -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  }
  .rbar button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; touch-action: manipulation; }
  .rbar svg { width: 100%; height: 100%; }
  .rbar svg.s { fill: none; }
  .rbar .rh { display: flex; align-items: center; min-height: 44px; }
  .rbar .rl { flex: 1; min-width: 0; }
  .rbar .rl small { display: block; font-size: 13px; color: var(--app-red); }
  .rbar .rl b { display: block; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rbar .rsp { height: 32px; min-width: 44px; padding: 0 12px; margin-left: 8px; border-radius: 16px; background: var(--surf-hi); font-size: 14px; font-weight: 600; }
  .rbar .rfs { width: 40px; height: 40px; padding: 10px; margin-left: 4px; }
  .rbar .rseek { position: relative; height: 28px; margin: 6px 4px 0; touch-action: none; cursor: pointer; }
  .rbar .rseek .rail, .rbar .rseek .done { position: absolute; left: 0; top: 12px; height: 4px; border-radius: 2px; }
  .rbar .rseek .rail { right: 0; background: rgba(255, 255, 255, .35); }
  .rbar .rseek .done { background: var(--app-red); }
  .rbar .rseek .knob { position: absolute; top: 7px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--app-red); }
  .rbar .rtimes { display: flex; justify-content: space-between; padding: 0 4px; font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
  .rbar .rtx { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 4px; }
  .rbar .rtx .ri { flex: 1; height: 48px; }
  .rbar .rtx .ri svg { width: 26px; height: 26px; }
  .rbar .rpp { width: 56px; height: 56px; flex: none; padding: 14px; border-radius: 50%; background: #fff; color: #000; }
  .rbar .rup { display: flex; align-items: center; gap: 8px; padding: 2px 0 0 4px; font-size: 13px; color: var(--mute); }
  .rbar .rup[hidden] { display: none; }
  .rbar .rup span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rbar .rup button { height: 30px; padding: 0 12px; border-radius: 15px; font-size: 12px; color: var(--on); }
  .rbar .rset { display: flex; align-items: center; padding: 8px 0 4px; }
  .rbar .rq { flex: 1; display: flex; height: 36px; padding: 3px; border-radius: 18px; background: var(--surf-hi); box-sizing: border-box; }
  .rbar .rq button { flex: 1; height: 30px; border-radius: 15px; font-size: 13px; font-weight: 600; }
  .rbar .rq button.on { background: var(--on); color: #000; }
  .rbar .rsy { display: flex; align-items: center; height: 36px; margin-left: 8px; border-radius: 18px; background: var(--surf-hi); }
  .rbar .rsy button { width: 34px; height: 36px; font-size: 18px; }
  .rbar .rsy span { min-width: 62px; text-align: center; font-size: 13px; }
  .rbar button:focus-visible, .rbar .rseek:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
  .rbar button:active { opacity: .7; }
}
@media (max-width: 360px) {
  .rbar { padding-left: 12px; }
  .rbar .rq button { font-size: 12px; }
}
/* Short phones get a smaller headline so more of the car screen shows on the first screen */
@media (max-width: 900px) and (max-height: 700px) {
  h1 { font-size: clamp(36px, 10vw, 44px); }
  .sub { font-size: 15.5px; margin-top: 14px; }
  .hero .cta { height: 50px; margin-top: 20px; }
}

/* One paper mat behind all three car screen plates, drawn like the phone panels */
.n { color: var(--dark-brass); }
.plate-grid {
  padding: 32px; border-radius: 20px; background: var(--raised);
  box-shadow: 0 0 0 1px var(--paper-edge), inset 0 1px 0 rgba(255, 255, 255, .5), 0 15px 30px -23px rgba(49, 36, 18, .28);
}
.plate { align-self: start; }
.plate:nth-child(3) { align-self: end; }
@media (max-width: 900px) {
  .plate-grid { padding: 16px; }
  .plate:nth-child(3) { align-self: start; }
}
.phone-fig .panel { box-shadow: 0 0 0 1px var(--paper-edge), inset 0 1px 0 rgba(255, 255, 255, .5), 0 15px 30px -23px rgba(49, 36, 18, .28); }
#s-car, #s-cars, #s-skip, #s-follow { scroll-margin-top: 22px; }

/* The three summary columns share rows, so every paragraph starts on one line even when a heading wraps */
@media (min-width: 701px) {
  .features ol { grid-template-rows: auto auto 1fr; }
  .features li { display: grid; grid-template-rows: subgrid; grid-row: span 3; align-content: start; }
}
/* The remote panel's top edge sits on the section's ink rule */
@media (min-width: 901px) {
  .remote .phone-fig { align-self: start; }
}
/* Phone crops end at a natural break, below a whole settings card and below the channel list */
@media (min-width: 1181px) { .panel.from-top { height: 500px; } }

/* Figures settle in as they scroll into view, from motion.js */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .plate, .phone-fig { transition: transform .52s cubic-bezier(.2, .7, .2, 1), opacity .42s ease-out; }
  .plate:nth-child(3) { transition-delay: 60ms; }
  [data-aux-reveal="waiting"] { transform: translateY(12px); opacity: .87; }
}

/* Hero links are siblings, split by a middle dot */
.more .sep { color: var(--meta); margin: 0 -10px; }

/* The usage note leads with what matters, the detail follows */
.end { align-items: start; }
.end .fine { margin-top: 20px; }
.end .fine + .fine { margin-top: 4px; }
.end .fine b { color: var(--ink); font-weight: 600; }

/* Tested cars reel, bleeds past the content edge so cars slide under the aux cable, and add a car by adding an li */
.aux-car-reel {
  --reel-gutter: max(40px, calc((100vw - 1200px) / 2 + 40px));
  display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; list-style: none;
  margin: 28px calc(-1 * var(--reel-gutter)) 0; padding: 0 var(--reel-gutter);
  cursor: grab; user-select: none; -webkit-user-select: none; overscroll-behavior-x: contain;
}
.aux-car-reel::-webkit-scrollbar { display: none; }
.aux-car-reel[data-dragging] { cursor: grabbing; }
.aux-car-reel:focus-visible { outline: 2px solid var(--dark-brass); outline-offset: -2px; }
.aux-vehicle { flex: 0 0 calc((100% - 48px) / 3); min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.aux-vehicle[hidden] { display: none; }
.vehicle-cutout { aspect-ratio: 500 / 310; }
.vehicle-cutout img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 0; pointer-events: none; }
.aux-vehicle b { font-size: clamp(18px, 2vw, 22px); line-height: 1.25; font-weight: 650; letter-spacing: -.02em; }
.carfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.carmore { display: inline-block; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 4px; }
.carmore:hover { text-decoration-color: var(--ink); }
.aux-car-hint { font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--dim); }
.aux-car-hint .touch { display: none; }
@media (max-width: 900px) { .aux-car-reel { --reel-gutter: 20px; margin-top: 24px; } }
@media (max-width: 760px) { .aux-car-reel { gap: 16px; } .aux-vehicle { flex-basis: 50%; } }
@media (pointer: coarse) { .aux-car-reel { cursor: auto; } .aux-car-hint .touch { display: inline; } }

/* Source tiles, six across on desktop with every other one dropped, three across on tablets and a sliding strip on phones */
.tiles { list-style: none; margin-top: 56px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; align-items: start; }
.tiles li { display: flex; flex-direction: column; align-items: center; gap: 16px; font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -.01em; text-align: center; }
.tiles li:nth-child(even) { margin-top: 40px; }
.tile { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 28px; background: var(--ink); color: var(--on-ink); box-shadow: 0 0 0 1px var(--bezel), 0 28px 48px -28px rgba(0, 0, 0, .55); }
.tile svg { width: 34%; height: 34%; fill: currentColor; }
.tile svg.wide { width: 52%; height: 52%; }
.tiles li[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .tile { animation: bob 6s ease-in-out infinite; }
  .tiles li:nth-child(2n) .tile { animation-delay: -1.5s; }
  .tiles li:nth-child(3n) .tile { animation-delay: -3s; }
  @keyframes bob { 50% { transform: translateY(-6.8px); } }
}
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; margin-top: 32px; }
  .tiles li:nth-child(even) { margin-top: 0; }
  .tiles li:nth-child(3n+2) { margin-top: 28px; }
  .tile { border-radius: 22px; }
  .tiles li { font-size: 15px; }
}
@media (max-width: 700px) {
  .tiles { display: flex; gap: 16px; margin: 20px -20px 0; padding: 12px 20px 36px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .tiles::-webkit-scrollbar { display: none; }
  .tiles:focus-visible { outline: 2px solid var(--dark-brass); outline-offset: -2px; }
  .tiles li, .tiles li:nth-child(n) { flex: 0 0 112px; gap: 14px; margin-top: 0; line-height: 22px; }
}

/* Section spacing on desktop as set in the Doop frame, tighter under the summary strip, the remote and the spread, looser under the car reel */
@media (min-width: 1181px) {
  .features { padding-bottom: 56px; }
  .remote { padding-bottom: 96px; }
  .spread { padding-bottom: 80px; }
  .cars { padding-bottom: 136px; }
}
