/* CoreLogicLabs — one stylesheet for every page.
   The base is MCEqual Ultra's design: dressed like the app itself, deep navy
   cabin, blue panels with corner screws, one bright blue key per screen.
   The site-wide pieces (navigation, product cards, feature panels, the
   preset grid, phone and portrait screenshots) follow it below. */
/* Layout: dressed like the app itself — deep navy cabin, blue panels with corner screws,
   one bright blue key per screen (the MCEqual logo's blue). Screenshots carry the page; text sits beside them. Single dark theme by choice. */
:root {
  --bg: #0a1220;
  --bg-2: #0e1829;
  --panel: #13223a;
  --panel-hi: #1b2f4f;
  --edge: #263d60;
  --fg: #e9f1fb;
  --muted: #9fb3cc;
  --accent: #2196f3;
  --accent-hi: #6cc0ff;
  --accent-deep: #1565c0;
  --ink: #03121f;
  --bad: #ff8a6b;
  --well: #070e1a;
  --placeholder: #5f7592;
  --glow: rgba(170,210,255,.07);
  --sheen: rgba(200,225,255,.08);
  --screw-hi: #8199b8;
  --screw-lo: #1f2e45;
  --header: rgba(10,18,32,.94);
  --backdrop: rgba(3,7,14,.9);
  --key-shadow: rgba(33,150,243,.55);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, input, select, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
body { background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--font); font-stretch: 100%; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { margin: 0; line-height: 1.08; text-wrap: balance; font-stretch: 78%; font-weight: 800; }
h1 { font-size: clamp(3rem, 8vw, 5.4rem); letter-spacing: -.01em; }
.title-row { display: flex; align-items: center; gap: clamp(16px, 2vw, 24px); min-width: 0; }
.app-icon { width: clamp(58px, 8.5vw, 96px); height: auto; aspect-ratio: 1; flex: none; border-radius: 22%; box-shadow: 0 0 0 1px var(--edge), 0 10px 24px -10px rgba(0,0,0,.8); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.35rem; font-stretch: 85%; font-weight: 700; }
p { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; color: var(--muted); }

/* Bronze panel, as in the app */
.plate {
  position: relative;
  background:
    radial-gradient(120% 80% at 20% 0%, var(--glow), transparent 60%),
    linear-gradient(180deg, var(--panel-hi), var(--panel));
  border: 1px solid var(--edge);
  border-radius: 18px;
  box-shadow: 0 1px 0 var(--sheen) inset, 0 18px 40px -22px rgba(0,0,0,.9);
}
.plate::before, .plate::after {
  content: ""; position: absolute; top: 9px; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--screw-hi), var(--screw-lo) 70%);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.plate::before { left: 9px; }
.plate::after { right: 9px; }

.key {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; border-radius: 12px; border: 0; cursor: pointer; text-decoration: none;
  font: 700 1rem/1 var(--font); color: var(--ink);
  background: linear-gradient(180deg, var(--accent-hi), var(--accent) 45%, var(--accent-deep));
  box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 -2px 0 rgba(0,0,0,.18) inset, 0 6px 16px -6px var(--key-shadow);
}
.key:active { transform: translateY(1px); }
.soon {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px; border-radius: 12px; border: 1px solid var(--accent);
  color: var(--accent-hi); font: 700 1rem/1 var(--font); letter-spacing: .02em;
  background: var(--well); box-shadow: inset 0 2px 4px rgba(0,0,0,.5);
}
.key:disabled { opacity: .5; cursor: not-allowed; }
.key-quiet {
  background: linear-gradient(180deg, var(--panel-hi), var(--panel)); color: var(--fg);
  box-shadow: 0 1px 0 var(--sheen) inset, 0 4px 12px -6px rgba(0,0,0,.8); border: 1px solid var(--edge);
}

/* Header */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--header); backdrop-filter: blur(8px); border-bottom: 1px solid var(--edge); }
header.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; font: 500 1.3rem/1 var(--font); font-stretch: 85%; }
.brand b { font-weight: 800; }
.brand i { font-style: normal; font-weight: 800; color: var(--accent-hi); }
.mark { width: 34px; height: 34px; flex: none; }
nav.links { display: flex; gap: 20px; }
nav.links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding-block: 4px; border-bottom: 2px solid transparent; }
nav.links a[aria-current="page"] { color: var(--fg); border-color: var(--accent); }
.region { margin-left: auto; font-size: .85rem; color: var(--muted); }
@media (max-width: 560px) { .region { margin-left: 0; flex-basis: 100%; } }

/* Hero */
.hero { padding-block: 56px 28px; display: grid; gap: 32px; }
.hero-top { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 880px) { .hero-top { grid-template-columns: 1.3fr 1fr; } }
.hero-top .lead { font-size: 1.2rem; color: var(--muted); max-width: 32em; }
.buy { display: grid; gap: 12px; justify-items: start; }
@media (min-width: 880px) { .buy { justify-items: end; text-align: right; } }
.price { font: 800 2.2rem/1 var(--font); font-stretch: 78%; font-variant-numeric: tabular-nums; }
.screen { padding: 24px 16px 16px; }
.screen img { display: block; width: 100%; height: auto; aspect-ratio: 1804 / 748; border-radius: 10px; background: #000; }

/* Feature rows */
.rows { display: grid; gap: 64px; padding-block: 48px; }
.row { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) {
  .row { grid-template-columns: 1.65fr 1fr; gap: 40px; }
  .row.flip { grid-template-columns: 1fr 1.65fr; }
  .row.flip .row-shot { order: 2; }
}
.row-shot { min-width: 0; }
.row-text { display: grid; gap: 12px; min-width: 0; max-width: 30em; }
.row-text p { color: var(--muted); }
.row-text ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 4px; }

/* More screenshots */
.more { padding-block: 24px 56px; display: grid; gap: 24px; }
.thumbs { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.thumbs figure { margin: 0; display: grid; gap: 8px; }
.thumbs button { padding: 0; border: 1px solid var(--edge); border-radius: 12px; overflow: hidden; background: #000; cursor: zoom-in; }
.thumbs img { display: block; width: 100%; height: auto; aspect-ratio: 1804 / 748; transition: transform .25s; }
.thumbs button:hover { border-color: var(--accent); }
.thumbs figcaption { font-size: .9rem; color: var(--muted); }
dialog#zoom { padding: 0; border: 0; background: transparent; max-width: min(1400px, 96vw); }
dialog#zoom::backdrop { background: var(--backdrop); }
dialog#zoom img { display: block; width: 100%; height: auto; border-radius: 10px; }
dialog#zoom form { text-align: right; margin-top: 12px; }

/* Compatibility */
.compat { display: grid; gap: 24px; grid-template-columns: 1fr; padding-block: 24px 64px; }
@media (min-width: 900px) { .compat { grid-template-columns: 1fr 1fr; align-items: start; } }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: 12px 0; border-bottom: 1px solid var(--edge); }
th { width: 38%; font-weight: 600; color: var(--muted); padding-right: 16px; }
.where { padding: 32px 28px 28px; display: grid; gap: 16px; }
.where h3 { font-size: 1.6rem; }

footer { border-top: 1px solid var(--edge); padding-block: 28px 44px; font-size: .85rem; color: var(--muted); }
footer .wrap { display: flex; gap: 12px 24px; justify-content: space-between; flex-wrap: wrap; }

/* Order */
.order { padding-block: 44px 64px; display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 940px) { .order { grid-template-columns: 1.4fr 1fr; } }
.order-main { display: grid; gap: 24px; min-width: 0; }
.order-main > header { display: grid; gap: 12px; }
.order-main h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
fieldset { border: 0; border-top: 1px solid var(--edge); padding: 24px 0 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
legend { padding: 0 12px 0 0; font: 700 1.25rem/1 var(--font); font-stretch: 85%; }
.grid2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.grid3 { display: grid; gap: 16px; grid-template-columns: 2fr 1.3fr 1fr; }
@media (max-width: 620px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; }
.hint { font-size: .8rem; color: var(--muted); }
input, select { width: 100%; font: 400 1rem/1.3 var(--font); color: var(--fg); background: var(--well); border: 1px solid var(--edge); border-radius: 10px; padding: 12px 12px; box-shadow: inset 0 2px 4px rgba(0,0,0,.5); }
input::placeholder { color: var(--placeholder); }
.field.bad input, .field.bad select { border-color: var(--bad); }
.err { color: var(--bad); font-size: .82rem; }
.err:empty { display: none; }
.countries { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.countries label { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border: 1px solid var(--edge); border-radius: 12px; background: var(--panel); cursor: pointer; font-weight: 600; }
.countries input { width: auto; box-shadow: none; accent-color: var(--accent); }
.countries label:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.product { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; }
.product svg { width: 72px; height: 72px; }

aside.summary { padding: 32px 24px 24px; display: grid; gap: 16px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); }
aside.summary h2 { font-size: 1.5rem; }
.lines { display: grid; gap: 8px; font-variant-numeric: tabular-nums; }
.line { display: flex; justify-content: space-between; gap: 12px; }
.line.total { border-top: 1px solid var(--edge); padding-top: 12px; font: 800 1.5rem/1.2 var(--font); font-stretch: 78%; }
#placeBtn { width: 100%; }
.status { font-size: .88rem; color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* "Notify me" sign-up while ordering is closed */
.notify { display: grid; gap: 8px; width: 100%; max-width: 400px; text-align: left; }
.notify label { font-weight: 600; font-size: .95rem; }
.notify-row { display: flex; gap: 8px; }
.notify-row input { flex: 1; min-width: 0; }
.notify-row .key { padding: 12px 20px; white-space: nowrap; }
.notify-done { max-width: 400px; text-align: left; padding: 16px 16px; border: 1px solid var(--accent); border-radius: 12px; background: var(--well); }
.privacy { display: grid; gap: 12px; padding-block: 8px 40px; max-width: 46em; }
.privacy h2 { font-size: 1.5rem; }
.privacy p { color: var(--muted); font-size: .95rem; }
.status:empty { display: none; }

.done { padding: 36px 28px 28px; display: grid; gap: 16px; max-width: 640px; }
.done .ref { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }

/* Screenshots open full size when tapped */
.screen img { cursor: zoom-in; }
.zoom-hint { display: none; }
#zoomScroll { overflow: auto; border-radius: 10px; }

/* Mobile order bar, shown once the hero's Order button has scrolled away */
.buybar { display: none; }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }

  header.top .wrap { flex-wrap: nowrap; gap: 8px; padding-block: 4px; }
  .brand { font-size: 1.15rem; gap: 8px; min-height: 44px; }
  .mark { width: 30px; height: 30px; }
  .region { display: none; }
  nav.links { margin-left: auto; gap: 0; }
  nav.links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-bottom-width: 0; box-shadow: inset 0 -2px 0 transparent; }
  nav.links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

  .hero { padding-block: 28px 16px; gap: 24px; }
  .hero-top { gap: 20px; }
  .hero-top .lead { font-size: 1.05rem; }
  .title-row h1 { font-size: min(2.6rem, 10.4vw); }
  .buy { justify-items: stretch; }
  .buy .key, .where .key, .done .key, #payBtn, .soon { width: 100%; }
  .notify, .notify-done { max-width: none; }
  .notify-row { flex-direction: column; }
  .notify-row .key { width: 100%; padding: 16px 20px; }

  /* Whole screenshots, run edge to edge so they're as large as the phone allows; tap for full size */
  .screen { margin-inline: -16px; padding: 16px 0 0; border-radius: 0; border-inline: 0; }
  .screen img { border-radius: 0; }
  .thumbs button { margin-inline: -16px; border-radius: 0; border-inline: 0; }
  .zoom-hint { display: block; font-size: .85rem; color: var(--muted); margin-top: -10px; }
  .thumbs figcaption { padding-top: 2px; }

  .rows { gap: 44px; padding-block: 28px; }
  .row { gap: 16px; }
  .more { padding-block: 16px 40px; }
  .thumbs { grid-template-columns: 1fr; gap: 24px; }
  .compat { padding-block: 16px 44px; }
  th { width: 42%; }

  .order { padding-block: 28px 40px; gap: 24px; }
  aside.summary { position: static; padding: 24px 20px 20px; }
  .countries label { min-height: 50px; }
  .done { padding: 28px 20px 20px; }

  dialog#zoom { width: 100vw; max-width: 100vw; max-height: 100dvh; margin: auto 0; }
  #zoomScroll { border-radius: 0; }
  dialog#zoom #zoomScroll img { height: min(64vh, 748px); width: auto; max-width: none; border-radius: 0; }
  dialog#zoom form { padding: 0 16px; }
  dialog#zoom .key { width: 100%; }

  .buybar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
    align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--header); backdrop-filter: blur(8px); border-top: 1px solid var(--edge);
    transform: translateY(110%); transition: transform .2s ease;
  }
  .buybar.show { transform: none; }
  .buybar .price { font-size: 1.5rem; }
  .buybar .key { padding: 12px 24px; }
  footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .thumbs img, .buybar { transition: none; } }

/* ======================================================================
   Site-wide additions, in the same dress
   ====================================================================== */

/* The products, in every page's header */
.site-nav { display: flex; gap: 20px; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding-block: 4px; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a:hover { color: var(--fg); }
.site-nav a[aria-current="page"] { color: var(--fg); border-color: var(--accent); }
header.top .region + .site-nav, .site-nav + .region { margin-left: 0; }
img.mark { display: block; }

/* Google Play: Google's own badge. Its image carries clear space of its
   own; the negative margin lines its visible edge up with the keys. */
.play-badge { display: inline-block; line-height: 0; margin: -9px -8px; }
.play-badge img { height: 62px; width: auto; display: block; }
.buy .play-badge { margin-right: -8px; }

/* Screenshots that are not the adapter's ultra-wide car screens */
.screen.fit img, .thumbs.fit img { aspect-ratio: auto; }
.screen.duo { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; padding: 24px 16px 16px; }
.screen.duo img { aspect-ratio: auto; }
.phones { display: flex; gap: 16px; justify-content: center; padding: 28px 20px 20px; }
.phones img { flex: none; width: auto; height: auto; max-width: 46%; max-height: min(560px, 62vh); aspect-ratio: auto; border-radius: 26px; border: 1px solid var(--edge); }
.phones.one img { max-width: 70%; }
.portraits { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); padding: 24px 16px 16px; }
.portraits img { width: 100%; height: auto; aspect-ratio: auto; border-radius: 10px; }
.row-shot.empty { display: none; }
.row.text-only { grid-template-columns: 1fr; }

/* Home: the products */
.products { display: grid; gap: 24px; grid-template-columns: 1fr; padding-block: 8px 64px; }
.product-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.product-card .shot { margin: 24px 16px 0; border-radius: 10px; overflow: hidden; }
.product-card .shot img { width: 100%; height: auto; display: block; }
.product-card .body { display: grid; gap: 16px; padding: 20px 24px 24px; align-content: start; }
.product-card .head { display: flex; align-items: center; gap: 16px; }
.product-card .head img { width: 56px; height: 56px; border-radius: 22%; box-shadow: 0 0 0 1px var(--edge); flex: none; }
.product-card .head h2 { font-size: 1.7rem; }
.product-card .kind { font-size: .85rem; color: var(--accent-hi); font-weight: 700; letter-spacing: .02em; }
.product-card .body > p { color: var(--muted); }
.product-card .acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.product-card .soon { padding: 12px 20px; }
.product-card .key { padding: 12px 20px; }

/* Feature panels */
.panels { display: grid; gap: 20px; grid-template-columns: 1fr; padding-block: 8px 64px; }
@media (min-width: 700px) { .panels { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .panels { grid-template-columns: repeat(3, 1fr); } }
.panel { padding: 32px 24px 24px; display: grid; gap: 12px; align-content: start; }
.panel .glyph { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--accent-hi); background: var(--well); box-shadow: inset 0 2px 4px rgba(0,0,0,.5); border: 1px solid var(--edge); }
.panel .glyph svg { width: 22px; height: 22px; }
.panel p { color: var(--muted); font-size: .97rem; }
.section-head { display: grid; gap: 12px; max-width: 46em; padding-top: 24px; margin-bottom: 24px; }
.section-head p { color: var(--muted); }

/* Presets: each one's own icon and colour, as in the apps */
.preset-groups { display: grid; gap: 32px; padding-block: 8px 64px; }
.preset-group h3 { font-size: 1.1rem; color: var(--muted); margin-bottom: 12px; }
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.preset { display: grid; justify-items: center; gap: 8px; padding: 16px 8px 16px; border-radius: 12px; background: var(--well); border: 1px solid var(--edge); font-size: .85rem; font-weight: 600; text-align: center; box-shadow: inset 0 2px 4px rgba(0,0,0,.4); }
.preset img { width: 40px; height: 40px; }

/* The other app, offered at the bottom of each page */
.crossover { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 32px 28px 28px; margin-bottom: 64px; }
.crossover > img { width: 64px; height: 64px; border-radius: 22%; box-shadow: 0 0 0 1px var(--edge); }
.crossover p { color: var(--muted); }
@media (max-width: 700px) { .crossover { grid-template-columns: 1fr; } }

/* Footer: the same on every page */
footer .wrap { align-items: center; }
footer .foot-brand { display: flex; align-items: center; gap: 8px; color: var(--fg); text-decoration: none; font-stretch: 85%; font-size: 1.05rem; }
footer .foot-brand b { font-weight: 800; }
footer .foot-brand i { font-style: normal; font-weight: 800; color: var(--accent-hi); }
footer .foot-brand .mark { width: 26px; height: 26px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
footer nav a:hover { color: var(--fg); }
footer .legal { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (max-width: 640px) {
  header.top .region + .site-nav { margin-left: auto; }
  .site-nav { gap: 0; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; border-bottom-width: 0; box-shadow: inset 0 -2px 0 transparent; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
  .site-nav .long { display: none; }
  .screen.duo { grid-template-columns: 1fr; margin-inline: -16px; padding: 16px 0 0; border-radius: 0; border-inline: 0; }
  .screen.duo img { border-radius: 0; }
  .phones { gap: 12px; padding: 20px 12px 12px; }
  .phones img { height: auto; max-width: 48%; }
  .phones.one img { max-width: 72%; }
  .portraits { gap: 8px; padding: 16px 12px 12px; }
  .product-card .shot { margin: 20px 12px 0; }
  .panels, .preset-groups { padding-block: 4px 44px; }
  .presets { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
  .buy .play-badge { margin: -9px -8px; }
}
@media (max-width: 380px) {
  .brand .word { display: none; }
}

/* A tall screenshot opened full size fits the screen's height instead */
dialog#zoom.tall { max-width: min(560px, 96vw); }
dialog#zoom.tall img { width: auto; max-height: 82vh; margin-inline: auto; }

/* Small helpers the pages share */
.stack { display: grid; gap: 20px; min-width: 0; }
.app-icon.logo-plate { background: linear-gradient(180deg, var(--panel-hi), var(--panel)); padding: clamp(8px, 1.3vw, 12px); }
.row-text a, .where a:not(.key) { color: var(--accent-hi); }

/* The product's name runs the page's full width; the description and the
   way to get it (Google Play, or the adapter's price and sign-up) sit side
   by side beneath it. Names are never split with a dash. */
h1, h2, h3 { hyphens: manual; -webkit-hyphens: manual; }
@media (min-width: 880px) {
  .hero-top { align-items: start; }
  .hero-top > .stack { display: contents; }
  .hero-top .title-row { grid-column: 1 / -1; }
  .hero-top > .stack > .lead { grid-column: 1; grid-row: 2; }
  .hero-top > .buy { grid-column: 2; grid-row: 2; }
}

/* Too narrow for the adapter's region note and the products on one line:
   the note gives way (the page says it again by the price). */
@media (max-width: 900px) {
  header.top .region { display: none; }
  header.top .region + .site-nav { margin-left: auto; }
}

/* A long product name, a little smaller, so it fits the page's width on
   one line on a desktop; narrower screens wrap it between words. */
.title-row h1.long { font-size: clamp(2.6rem, 6.4vw, 4.9rem); }
@media (max-width: 640px) { .title-row h1.long { font-size: min(2.4rem, 9vw); } }

/* The app's price beside its Google Play badge */
.buy-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ======================================================================
   Languages
   ====================================================================== */

/* The language menu, under the footer's links */
footer .langs { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .88rem; }
footer .langs a { color: var(--muted); text-decoration: none; font-weight: 600; }
footer .langs a:hover { color: var(--fg); }
footer .langs a[aria-current] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--accent); }

/* Scripts Archivo doesn't draw: Archivo still sets the Latin names, and a
   font made for the script sets the rest. Taller lines for scripts with
   marks above and below. */
html[lang="ja"] { --font: "Archivo", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif; }
html[lang="zh-Hans"] { --font: "Archivo", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
html[lang="hi"] { --font: "Archivo", "Kohinoor Devanagari", "Noto Sans Devanagari", "Nirmala UI", "Mangal", sans-serif; }
html[lang="ar"] { --font: "Archivo", "Geeza Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.35; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3,
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3 { line-height: 1.25; }

/* Arabic reads right to left: the layout mirrors, and these follow it */
[dir="rtl"] .row-text ul { padding-left: 0; padding-right: 1.1em; }
[dir="rtl"] th, [dir="rtl"] td { text-align: right; }
[dir="rtl"] th { padding-right: 0; padding-left: 16px; }
[dir="rtl"] dialog#zoom form { text-align: left; }
@media (min-width: 880px) { [dir="rtl"] .buy { text-align: left; } }

/* Screenshots are always shown whole and at their own shape: never trimmed
   to fill a frame, and never sat in one with bars around them. Opened full
   size, one fits the screen's width and height (the adapter's wide shots
   used to open taller than a phone and scroll sideways). */
dialog#zoom img { width: auto; max-width: 100%; height: auto; max-height: 84vh; margin-inline: auto; }
@media (max-width: 640px) {
  dialog#zoom #zoomScroll img, dialog#zoom.tall img { width: auto; height: auto; max-width: 100%; max-height: 84vh; }
  dialog#zoom #zoomScroll { overflow: hidden; }
}

/* Home: four ways in */
.product-card .shot img { aspect-ratio: 2 / 1; object-fit: cover; object-position: top; }

/* ---- Home ---- */
.home-hero { padding-block: 96px 32px; }
.home-hero .hero-top { grid-template-columns: 1fr; gap: 24px; }
.home-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); letter-spacing: -.02em; max-width: 16em; }
.home-hero .lead { max-width: 36rem; }
@media (max-width: 640px) { .home-hero { padding-block: 48px 16px; } .home-hero h1 { font-size: 2.4rem; } }

/* The products: the adapter leads, wide; the three apps sit in a row under it. */
.products { gap: 20px; }
.product-card .head h2 { font-size: 1.5rem; }
.product-card .shot { margin: 8px 8px 0; border-radius: 8px; }
.product-card:not(:last-child) .key { background: var(--panel-hi); color: var(--fg); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.product-card:not(:last-child) .key:hover { background: #202a3d; }
.product-card .soon { min-height: 0; padding: 0; border: 0; color: var(--muted); font-size: .9rem; }
.product-card:last-child { order: -1; }
@media (min-width: 900px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .product-card:last-child { grid-column: 1 / -1; grid-template-rows: auto; grid-template-columns: 1.7fr 1fr; align-items: center; }
  .product-card:last-child .shot { margin: 8px 0 8px 8px; }
  .product-card:last-child .shot img { aspect-ratio: 1804 / 748; }
  .product-card:last-child .head h2 { font-size: 2rem; }
  .product-card:last-child .body { padding: 24px 32px; }
}

/* "Which one is for me?": a short list, not four boxes */
.panels.four { gap: 0; grid-template-columns: 1fr; max-width: 52rem; border-top: 1px solid var(--edge); }
.panels.four .panel { background: none; border: 0; border-bottom: 1px solid var(--edge); border-radius: 0; padding: 16px 0; display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; row-gap: 4px; align-items: center; }
.panels.four .panel .glyph { grid-row: span 2; align-self: start; background: none; border: 0; box-shadow: none; color: var(--muted); }
.panels.four .panel h3 { font-size: 1.1rem; font-stretch: 100%; }
.panel { padding: 24px 20px 20px; }
.panel .glyph { box-shadow: none; }
.where, .done { padding: 24px; }
.product-card:not(:last-child) .body { grid-template-rows: auto 1fr auto; }
