/* =============================================================================
   iDMAa — shared stylesheet
   List-led download directory. System sans, hairline rules, heritage yellow
   (#fdd500) as the single signature accent (wordmark dot + Download button).
   ============================================================================= */

:root {
  --bg:           #ffffff;
  --bg-2:         #faf9f4;          /* warm tint for alt rows / section bands */
  --bg-3:         #f3f1e9;          /* deeper tint, for code blocks etc */
  --ink:          #111111;
  --ink-2:        #2a2a2a;
  --muted:        #5e5e5e;
  --meta:         #8a8a8a;
  --rule:         #e4e1d9;
  --rule-strong:  #c9c5bb;
  --yellow:       #fdd500;          /* heritage signature */
  --yellow-deep:  #d9b400;
  --yellow-soft:  #fff7c4;          /* page-head tint */
  --maroon:       #8b1a1a;          /* heritage secondary, used sparingly */
  --link:         #1a73e8;          /* Google blue per brief */
  --link-hover:   #1558b8;

  /* category hues — soft pastels for the chip row index */
  --c-photo:   #ffd3c0;             /* warm coral */
  --c-video:   #c9e4ff;             /* sky */
  --c-music:   #d6f0d0;             /* sage */
  --c-design:  #f3d4f7;             /* lilac */
  --c-read:    #ffe9b3;             /* honey */
  --c-prod:    #d5e3d0;             /* moss */
  --verified:     #0a7f3b;
  --warn:         #b54708;
  --danger:       #b91c1c;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 48px; --s-9: 64px;

  --col-max: 1120px;
  --col-read: 720px;                /* narrow text column for prose blocks */
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--link); outline-offset: 2px;
}
h1, h2, h3, h4 { font-family: var(--sans); margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--bg-3); padding: 1px 5px; border-radius: 3px; }

.wrap { max-width: var(--col-max); margin: 0 auto; padding: 0 var(--s-5); }
@media (max-width: 540px) { .wrap { padding: 0 12px; } }

/* =============================================================================
   site header — wordmark, tagline rail, nav. Bottom yellow bar.
   ============================================================================= */
.siteheader {
  background: var(--bg);
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 1px 0 var(--rule);
}
.siteheader__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); padding: var(--s-5) 0; flex-wrap: wrap;
}
.wordmark {
  font: 700 28px/1 var(--sans);
  color: var(--ink); text-decoration: none;
  letter-spacing: -0.025em;
  display: inline-flex; align-items: center;
}
.wordmark__i { font-style: italic; font-weight: 600; }
.wordmark__dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--yellow); margin-left: 5px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
}
.siteheader__sub {
  display: block; margin-top: 3px;
  font: 11px/1.4 var(--mono); color: var(--muted);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.siteheader__rail {
  background: var(--ink); color: #d6d2c6;
  font: 12px/1 var(--mono); letter-spacing: 0.05em;
}
.siteheader__rail .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--s-4); min-height: 34px; flex-wrap: wrap;
}
.siteheader__rail b { color: #fff; font-weight: 600; }
.siteheader__rail .yellow-tick {
  display: inline-block; width: 6px; height: 6px; background: var(--yellow);
  margin-right: 8px; vertical-align: 1px;
}
.siteheader__rail span + span { margin-left: var(--s-4); }
@media (max-width: 640px) {
  .siteheader__rail .wrap { padding-top: 6px; padding-bottom: 6px; }
  .siteheader__rail span + span { margin-left: 0; }
}

/* hero — two-column block: lede + numbered promise card. */
.hero {
  padding: var(--s-9) 0 var(--s-8);
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(800px 200px at 90% 10%, rgba(253,213,0,0.20), transparent 60%),
    var(--bg);
  position: relative;
}
.hero::after {
  /* hairline corner mark, top-right — a tiny editorial flourish */
  content: ""; position: absolute; top: var(--s-5); right: var(--s-5);
  width: 28px; height: 28px;
  border-top: 2px solid var(--yellow); border-right: 2px solid var(--yellow);
  opacity: 0.8;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: end;
}
@media (max-width: 880px) {
  .hero { padding: var(--s-8) 0 var(--s-7); }
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-6); align-items: start; }
}
.hero__eyebrow {
  font: 600 11px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--s-4);
  display: inline-flex; align-items: center; gap: var(--s-3);
}
.hero__eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--maroon); }
.hero__eyebrow b { color: var(--maroon); font-weight: 700; }
.hero h1 {
  font-size: clamp(32px, 5vw, 48px); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.025em;
  margin: 0 0 var(--s-4); text-wrap: balance;
  max-width: 16ch;
}
.hero h1 mark { background: var(--yellow); color: var(--ink); padding: 0 8px; border-radius: 2px; }
.hero__lede {
  font-size: 17px; line-height: 1.55; color: var(--ink-2);
  max-width: 50ch; margin: 0; text-wrap: pretty;
}
.hero__panel {
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: var(--s-5);
  position: relative;
  box-shadow: 6px 6px 0 0 var(--yellow);
}
.article-figure {
  margin: var(--s-6) 0;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 0 var(--yellow);
  overflow: hidden;
}
.article-figure img { display: block; width: 100%; height: auto; }
.hero__panel-title {
  font: 600 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--s-4);
  padding-bottom: var(--s-3); border-bottom: 1px solid var(--rule);
}
.hero__panel-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); counter-reset: promise; }
.hero__panel-list li {
  counter-increment: promise;
  display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3);
  font-size: 14px; line-height: 1.4; color: var(--ink-2);
}
.hero__panel-list li::before {
  content: counter(promise, decimal-leading-zero);
  font: 700 12px/24px var(--mono); color: var(--ink);
  background: var(--yellow); border: 1px solid var(--yellow-deep);
  width: 24px; height: 24px; border-radius: 50%; text-align: center;
}
.hero__panel-list li b { color: var(--ink); display: block; margin-bottom: 2px; font-weight: 600; }

/* stats strip — small data band */
.stats {
  background: var(--ink); color: #e6e2d6;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.stats__row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: var(--s-5) 0;
  gap: var(--s-4);
}
@media (max-width: 720px) { .stats__row { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-5); } }
.stats__cell { display: grid; gap: 4px; }
.stats__cell b {
  font: 700 28px/1 var(--sans); letter-spacing: -0.02em; color: #fff;
  font-feature-settings: "tnum";
}
.stats__cell b sup { color: var(--yellow); font-size: 14px; vertical-align: 8px; margin-left: 2px; }
.stats__cell span {
  font: 11px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: #a09a8c;
}

/* category tiles — home-page version (replaces chips on home only) */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}
@media (max-width: 720px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-tile {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
  position: relative; overflow: hidden;
}
.cat-tile::before {
  /* color flag on left edge */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--chip, var(--rule-strong));
}
.cat-tile:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: 0 6px 0 -2px rgba(0,0,0,0.06);
  color: var(--ink);
}
.cat-tile__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--chip-soft, var(--bg-2));
  border: 1px solid var(--chip, var(--rule));
  display: grid; place-items: center;
  font: 700 18px/1 var(--mono); color: var(--ink);
  letter-spacing: -0.02em;
}
.cat-tile__body { min-width: 0; }
.cat-tile__name { font: 600 16px/1.2 var(--sans); margin: 0 0 2px; }
.cat-tile__sub  { font: 12px/1.4 var(--sans); color: var(--muted); }
.cat-tile__count {
  font: 600 11px/1 var(--mono); letter-spacing: 0.08em;
  padding: 4px 8px; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--bg-2); color: var(--ink-2); white-space: nowrap;
}

/* =============================================================================
   site header — nav unchanged below
   ============================================================================= */
.sitenav {
  display: flex; gap: var(--s-5);
  list-style: none; padding: 0; margin: 0; flex-wrap: wrap;
}
.sitenav a {
  color: var(--ink); text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: var(--s-2) 0;
  min-height: 44px;
  display: inline-flex; align-items: center;
  border-bottom: 2px solid transparent;
}
.sitenav a:hover { border-bottom-color: var(--ink); }
.sitenav a[aria-current="page"] { border-bottom-color: var(--yellow); }
@media (max-width: 480px) {
  .siteheader__row { padding: var(--s-4) 0; }
  .sitenav { gap: var(--s-4); }
  .sitenav a { font-size: 13px; }
}

/* =============================================================================
   page heading + breadcrumb
   ============================================================================= */
.pagehead {
  padding: var(--s-8) 0 var(--s-6);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: relative;
}
.pagehead::before {
  /* a thin yellow accent on the left edge — visual interest without a tint */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--yellow);
}
.pagehead--compact { padding: var(--s-7) 0 var(--s-5); }
.pagehead__eyebrow {
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-3);
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.pagehead__eyebrow::before {
  content: ""; width: 24px; height: 2px; background: var(--yellow);
}
.pagehead h1 {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em; margin: 0; text-wrap: balance;
}
.pagehead__dek {
  margin: var(--s-4) 0 0;
  font-size: 17px; line-height: 1.55; color: var(--ink-2);
  max-width: 60ch; text-wrap: pretty;
}
.breadcrumb {
  font: 13px/1.4 var(--mono); color: var(--muted);
  margin-bottom: var(--s-4);
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); }
.breadcrumb__sep { color: var(--rule-strong); }

/* =============================================================================
   applist — primary repeating pattern
   ============================================================================= */
.applist {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5);
}
@media (max-width: 720px) { .applist { grid-template-columns: 1fr; gap: var(--s-4); } }
.applist__item {
  padding: var(--s-5);
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fff;
}
.applist__row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: var(--s-4);
  align-items: center;
}
.applist__icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--rule);
  object-fit: cover;
}
.applist__icon--ph {
  background:
    repeating-linear-gradient(45deg, var(--bg-2) 0 6px, transparent 6px 12px),
    var(--bg);
}
.applist__body { min-width: 0; }
.applist__title {
  font-size: 18px; font-weight: 600; line-height: 1.25;
  margin: 0 0 4px; overflow-wrap: anywhere;
}
.applist__title a { color: var(--ink); text-decoration: none; }
.applist__title a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.applist__meta {
  display: flex; gap: var(--s-3); flex-wrap: wrap;
  font: 12px/1.4 var(--mono); color: var(--muted);
}
.applist__meta b { color: var(--ink-2); font-weight: 600; }
.applist__meta .star::before { content: "★"; color: var(--maroon); margin-right: 3px; }
.applist__dek {
  margin-top: var(--s-3);
  color: var(--ink-2); font-size: 15px; line-height: 1.55;
  max-width: 70ch; text-wrap: pretty;
}
.applist__dek--ph { color: var(--meta); font-family: var(--mono); font-size: 13px; }

/* download button family */
.download {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--yellow); color: var(--ink);
  font: 600 14px/1 var(--sans);
  padding: 12px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  min-height: 44px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.08);
  transition: background .15s, transform .1s;
  border: 1px solid var(--yellow-deep);
  white-space: nowrap;
  cursor: pointer;
}
.download:hover { background: var(--yellow-deep); color: var(--ink); }
.download:active { transform: translateY(1px); }
.download--lg { font-size: 16px; padding: 16px 24px; min-height: 52px; }
.download--secondary {
  background: var(--bg); color: var(--ink); border-color: var(--rule-strong);
  box-shadow: none;
}
.download--secondary:hover { background: var(--bg-2); border-color: var(--ink); color: var(--ink); }
.download--blue {
  background: var(--link); color: #fff; border-color: var(--link);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.18);
}
.download--blue:hover { background: var(--link-hover); color: #fff; }
.download--ph {
  background: var(--bg); color: var(--meta);
  border: 1px dashed var(--rule-strong);
  box-shadow: none; font-family: var(--mono); font-size: 12px;
}

@media (max-width: 540px) {
  .applist__row {
    grid-template-columns: 48px 1fr;
    grid-template-areas:
      "icon body"
      "cta cta";
    row-gap: var(--s-3);
  }
  .applist__icon { grid-area: icon; width: 48px; height: 48px; border-radius: 10px; }
  .applist__body { grid-area: body; }
  .download--in-list { grid-area: cta; width: 100%; }
}

/* =============================================================================
   section scaffolding
   ============================================================================= */
.section { padding: var(--s-7) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section--alt { background: var(--bg); border-top: 1px solid var(--rule); }
.section__title {
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-5);
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.section__title::before {
  content: ""; width: 18px; height: 2px; background: var(--yellow);
}
.section__title b { color: var(--ink); font-weight: 700; }
.section__title__more {
  margin-left: auto;
  font: 13px/1 var(--sans); color: var(--ink);
  text-transform: none; letter-spacing: 0; font-weight: 500;
}

/* category chips — colour-coded left edge */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chips a {
  display: inline-flex; align-items: center;
  padding: 8px 14px 8px 12px;
  background: var(--bg); border: 1px solid var(--rule);
  border-left: 4px solid var(--chip, var(--rule-strong));
  border-radius: 4px;
  font-size: 13px; color: var(--ink); text-decoration: none;
  min-height: 36px;
  transition: background .15s, border-color .15s, transform .1s;
}
.chips a:hover { background: var(--chip-soft, var(--bg-2)); color: var(--ink); transform: translateY(-1px); }
.chips a[aria-current="page"] {
  background: var(--chip, var(--yellow));
  border-left-color: rgba(0,0,0,0.45);
  color: var(--ink);
}
.chips a[aria-current="page"] span { border-left-color: rgba(0,0,0,0.18); }
.chips a b { font-weight: 600; }
.chips a span {
  font: 11px/1 var(--mono); color: var(--muted);
  margin-left: 6px; padding-left: 6px; border-left: 1px solid var(--rule);
}
/* hue mapping */
.chip-photo  { --chip: var(--c-photo);  --chip-soft: #fff0e9; }
.chip-video  { --chip: var(--c-video);  --chip-soft: #eaf3ff; }
.chip-music  { --chip: var(--c-music);  --chip-soft: #ecf5e8; }
.chip-design { --chip: var(--c-design); --chip-soft: #faecfc; }
.chip-read   { --chip: var(--c-read);   --chip-soft: #fff5d9; }
.chip-prod   { --chip: var(--c-prod);   --chip-soft: #ecf2e8; }

/* about strip */
.about-text {
  max-width: 64ch;
  font-size: 15px; color: var(--ink-2); line-height: 1.6;
}
.about-text a { font-weight: 500; }

/* =============================================================================
   body-layout — two-column for guide/review pages with sidebar
   ============================================================================= */
.body-layout-wrap { padding-top: var(--s-7); }
.body-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 980px) {
  .body-layout { grid-template-columns: 1fr; gap: var(--s-6); }
}
.body-layout__main { min-width: 0; }
/* sections inside the layout already have their own .wrap; flatten its
   padding/max-width so the layout grid controls width instead. */
.body-layout__main > section > .wrap,
.body-layout__main > .section > .wrap {
  padding: 0;
  max-width: none;
}
.body-layout__main > .section { padding-top: var(--s-6); padding-bottom: var(--s-6); }
.body-layout__main > .section:first-child { padding-top: 0; }

.body-layout__side {
  display: grid; gap: var(--s-5);
  font: 14px/1.5 var(--sans);
}
/* Byline link inside .appmast__dev */
.appmast__dev a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
}
.appmast__dev a:hover {
  border-bottom-color: var(--yellow-deep);
  color: var(--ink);
}

/* Sticky positioning on desktop only — purely visual, no content change.
   The sidebar HTML is identical at every viewport; on screens wide enough
   to show the two-column layout the sidebar tracks the viewport as the
   main column scrolls. Below 981px the columns stack normally and sticky
   would have no useful effect, so it's left off. */
@media (min-width: 981px) {
  .body-layout__side {
    position: sticky;
    top: var(--s-5);
    align-self: start;
  }
}
.widget {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-5);
}
.widget__title {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  padding-bottom: var(--s-3);
  margin: 0 0 var(--s-4);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: var(--s-2);
}
.widget__title::before {
  content: ""; width: 14px; height: 2px; background: var(--yellow);
}

/* "Similar apps" — small icon + title + meta rows */
.side-apps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
.side-apps li {
  display: grid; grid-template-columns: 40px 1fr; gap: var(--s-3); align-items: center;
}
.side-apps__icon {
  width: 40px; height: 40px; border-radius: 9px;
  background: var(--bg-2); border: 1px solid var(--rule);
}
.side-apps__icon--ph {
  background:
    repeating-linear-gradient(45deg, var(--bg-2) 0 6px, transparent 6px 12px),
    var(--bg);
}
.side-apps__title { font: 600 13px/1.3 var(--sans); margin: 0 0 2px; overflow-wrap: anywhere; }
.side-apps__title a { color: var(--ink); text-decoration: none; }
.side-apps__title a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.side-apps__meta { font: 11px/1.3 var(--mono); color: var(--muted); }
.side-apps__meta .star::before { content: "★"; color: var(--maroon); margin-right: 3px; }

/* "Related coverage" — link list with kicker */
.side-links { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.side-links li { padding-bottom: var(--s-3); border-bottom: 1px dashed var(--rule); }
.side-links li:last-child { border-bottom: 0; padding-bottom: 0; }
.side-links a { color: var(--ink); text-decoration: none; font: 500 14px/1.4 var(--sans); }
.side-links a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.side-links small {
  display: block; font: 10px/1.3 var(--mono); color: var(--muted);
  margin-bottom: 2px; letter-spacing: 0.1em; text-transform: uppercase;
}

/* sidebar ad slot (smaller margins so it fits in the column) */
.adslot--side { margin: 0; padding: var(--s-5) var(--s-3); }

/* ad slot */
.adslot {
  border: 1px dashed var(--rule-strong);
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(0,0,0,0.015) 10px 20px);
  padding: var(--s-6);
  text-align: center;
  font: 11px/1 var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--meta);
  margin: var(--s-7) 0;
  border-radius: var(--radius);
}

/* beefier footer with brand block + columns */
.footer {
  border-top: 4px solid var(--yellow);
  background: var(--ink); color: #c9c5bb;
  padding: var(--s-8) 0 var(--s-5);
  margin-top: var(--s-8);
}
.footer a { color: #e6e3da; }
.footer a:hover { color: var(--yellow); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: var(--s-7);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
  .footer__brandcol { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brandcol .wordmark { color: #fff; font-size: 22px; }
.footer__about { font-size: 14px; max-width: 38ch; margin: var(--s-3) 0 0; line-height: 1.55; color: #b8b3a8; }
.footer__copy { font: 12px/1.4 var(--mono); color: #8a857c; margin: var(--s-4) 0 0; }
.footer__col h4 {
  font: 600 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--yellow); margin: 0 0 var(--s-3);
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.footer__col a { font-size: 14px; line-height: 1.4; min-height: 28px; display: inline-block; text-decoration: none; }
.footer__row {
  margin-top: var(--s-5); padding-top: var(--s-4);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--s-4); flex-wrap: wrap;
  font: 12px/1.5 var(--mono); color: #8a857c;
}
.footer__row a { color: #8a857c; text-decoration: none; }
.footer__row a:hover { color: var(--yellow); }
.footer__brand { display: flex; align-items: center; gap: var(--s-3); }
.footer__brand .wordmark { font-size: 18px; }
.footer__nav { display: flex; gap: var(--s-5); flex-wrap: wrap; }
.footer__nav a { color: var(--ink); text-decoration: none; font-size: 13px; }
.footer__nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal {
  margin-top: var(--s-4); padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  font: 12px/1.5 var(--mono); color: var(--meta);
  display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap;
}
.footer__legal a { color: var(--meta); }
.footer__legal a:hover { color: var(--ink); }

/* =============================================================================
   app page — masthead block (icon + title + meta + CTAs)
   ============================================================================= */
.appmast {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--s-5);
  align-items: start;
}
.appmast__icon {
  width: 96px; height: 96px; border-radius: 20px;
  background: var(--bg-2); border: 1px solid var(--rule);
  object-fit: cover;
}
.appmast__cat {
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  margin-bottom: var(--s-2);
}
.appmast__cat a { color: var(--muted); text-decoration: none; }
.appmast__cat a:hover { color: var(--ink); }
.appmast h1 {
  font-size: clamp(26px, 3.6vw, 34px);
  line-height: 1.15; font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 var(--s-2); text-wrap: balance;
}
.appmast__dev {
  font-size: 15px; color: var(--muted); margin: 0 0 var(--s-3);
}
.appmast__dev a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule); }
.appmast__dev a:hover { border-bottom-color: var(--ink); }
.appmast__meta {
  display: flex; gap: var(--s-3) var(--s-4); flex-wrap: wrap;
  font: 12px/1.4 var(--mono); color: var(--muted);
}
.appmast__meta b { color: var(--ink); font-weight: 600; }
.appmast__meta .star::before { content: "★"; color: var(--maroon); margin-right: 3px; }
@media (max-width: 540px) {
  .appmast { grid-template-columns: 64px 1fr; gap: var(--s-4); }
  .appmast__icon { width: 64px; height: 64px; border-radius: 14px; }
}

/* CTA stack for app pages — primary CTA + optional inline text link */
.cta-row {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  align-items: center; justify-content: center;
  margin-top: var(--s-5);
}

/* "also available" inline cross-link */
.also {
  font: 13px/1.5 var(--sans); color: var(--muted);
  margin-top: var(--s-3);
}
.also a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-strong); }
.also a:hover { color: var(--link); text-decoration-color: var(--link); }

/* =============================================================================
   prose blocks — install guide, body copy
   ============================================================================= */
.prose {
  max-width: var(--col-read);
  font-size: 16px; line-height: 1.65; color: var(--ink-2);
}
.prose h2 {
  font-size: 22px; line-height: 1.2; font-weight: 700;
  color: var(--ink); letter-spacing: -0.015em;
  margin: var(--s-7) 0 var(--s-3);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 17px; line-height: 1.3; font-weight: 600;
  color: var(--ink); margin: var(--s-5) 0 var(--s-2);
}
.prose p { margin: 0 0 var(--s-3); }
.prose ul, .prose ol { margin: 0 0 var(--s-4); padding-left: 22px; }
.prose li { margin-bottom: var(--s-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--link); }

/* numbered install steps */
.steps {
  list-style: none; padding: 0; margin: 0 0 var(--s-5);
  counter-reset: step;
}
.steps > li {
  counter-increment: step;
  padding: var(--s-4) 0 var(--s-4) 56px;
  position: relative;
  border-bottom: 1px solid var(--rule);
}
.steps > li:first-child { padding-top: var(--s-3); }
.steps > li:last-child { border-bottom: 0; }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: var(--s-4);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  font: 700 14px/40px var(--mono); text-align: center;
  box-shadow: inset 0 0 0 1px var(--yellow-deep);
}
.steps h3 {
  margin: 0 0 6px;
  font-size: 17px; font-weight: 600; color: var(--ink);
}
.steps p { margin: 0; font-size: 15px; color: var(--ink-2); }
.steps p + p { margin-top: 6px; }
.steps small {
  display: block; margin-top: 6px;
  font: 12px/1.4 var(--mono); color: var(--muted);
}

/* spec table */
.spec {
  width: 100%; border-collapse: collapse;
  font-size: 14px; margin: 0 0 var(--s-4);
  background: var(--bg);
  border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden;
}
.spec th, .spec td {
  text-align: left; padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th {
  font: 500 12px/1.4 var(--mono);
  color: var(--muted); letter-spacing: 0.04em;
  width: 38%; background: var(--bg-2);
  font-weight: 500;
}
.spec td { color: var(--ink-2); font-family: var(--mono); font-size: 13px; word-break: break-word; }
.spec td b { color: var(--ink); font-weight: 600; }
.spec td.verified { color: var(--verified); }
.spec td.verified::before { content: "✓ "; }

/* requirements list */
.reqs {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.reqs li {
  background: var(--bg-2);
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--s-3) var(--s-4);
}
.reqs li b {
  display: block;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.reqs li span { font-size: 14px; color: var(--ink); font-weight: 500; }

/* version list (APK page) */
.versions {
  list-style: none; padding: 0; margin: 0;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}
.versions li {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: var(--s-3) var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--rule);
  font: 13px/1.4 var(--mono); color: var(--ink-2);
  align-items: center;
}
.versions li:last-child { border-bottom: 0; }
.versions li.latest { background: var(--bg-2); }
.versions li b { font-weight: 600; color: var(--ink); }
.versions li .latest-pill {
  font-size: 10px; padding: 2px 6px; border-radius: 3px;
  background: var(--yellow); color: var(--ink); font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.versions li .size, .versions li .date { color: var(--muted); }
.versions li a.download--in-row {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  padding: 8px 14px; min-height: 36px;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--yellow-deep);
  border-radius: 4px;
  background: var(--yellow); color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.08);
}
.versions li a.download--in-row:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); }
.versions li a.download--in-row:active { transform: translateY(1px); }
@media (max-width: 540px) {
  .versions li { grid-template-columns: 1fr auto; row-gap: 4px; }
  .versions li .size { grid-column: 1; }
  .versions li a.download--in-row { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* download page download card */
.dl-card {
  background: var(--bg);
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--s-6);
  display: grid; gap: var(--s-4);
  margin-bottom: var(--s-6);
}
.dl-card--primary {
  border-color: var(--yellow-deep);
  box-shadow: 0 0 0 3px rgba(253,213,0,0.18);
}
.dl-card__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s-3); flex-wrap: wrap;
}
.dl-card__head h3 {
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  margin: 0;
}
.dl-card__pill {
  font: 600 10px/1 var(--mono); letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px; border-radius: 3px;
  background: var(--bg-2); border: 1px solid var(--rule); color: var(--ink-2);
}
.dl-card__pill--verified { background: #e7f5ec; color: var(--verified); border-color: #c4e5d0; }
.dl-card__pill--yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow-deep); }
.dl-card__lede { font-size: 15px; color: var(--ink-2); margin: 0; line-height: 1.55; max-width: 60ch; }
.dl-card__rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s-3) var(--s-4);
  padding: var(--s-3) 0;
  border-top: 1px dashed var(--rule);
  border-bottom: 1px dashed var(--rule);
}
.dl-card__rows div b {
  display: block;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 4px;
}
.dl-card__rows div span { font: 14px/1.4 var(--sans); color: var(--ink); font-weight: 500; }
.dl-card__rows div span.mono { font-family: var(--mono); font-size: 12px; }

/* notice block */
.notice {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--yellow);
  padding: var(--s-4) var(--s-5);
  border-radius: 3px;
  font-size: 14px; color: var(--ink-2); line-height: 1.55;
  margin: var(--s-5) 0;
}
.notice b { color: var(--ink); font-weight: 600; }
.notice--warn { border-left-color: var(--warn); }
.notice--warn b { color: var(--warn); }

/* screenshot strip */
.shots {
  display: flex; gap: var(--s-3);
  overflow-x: auto;
  padding: 0 0 var(--s-3);
  margin: 0 calc(-1 * var(--s-5)) var(--s-5);
  padding-left: var(--s-5); padding-right: var(--s-5);
  scrollbar-width: thin;
}
.shots__item {
  flex: 0 0 auto;
  width: 200px; height: 360px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(45deg, var(--bg-2) 0 8px, transparent 8px 16px),
    var(--bg);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  font: 11px/1 var(--mono); color: var(--meta);
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* faq */
.faq { list-style: none; padding: 0; margin: 0; }
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: var(--s-4) 0;
}
.faq details[open] summary { color: var(--ink); }
.faq summary {
  cursor: pointer; font: 600 16px/1.4 var(--sans); color: var(--ink-2);
  list-style: none; padding-right: 28px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: -2px;
  font: 400 22px/1 var(--sans); color: var(--muted);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: var(--s-3) 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.6; max-width: 70ch; }

/* utility */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
