/* TesterCoder — software catalog
   Tokens: slate paper, ink, a "verified" teal signal; each app page adds its own --app colour. */
:root {
  --paper: #f2f4f8;
  --surface: #ffffff;
  --ink: #1a2133;
  --muted: #4e5870;
  --line: #d6dce7;
  --signal: #0e7c72;
  --warn-bg: #fff4dc;
  --warn-ink: #6b4a00;
  --app: var(--signal);
  --round: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161b29;
    --surface: #1e2436;
    --ink: #eceff6;
    --muted: #a6aec2;
    --line: #2e364b;
    --signal: #3cc3b4;
    --warn-bg: #3a2f12;
    --warn-ink: #ffd98a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--round); line-height: 1.15; margin: 0; }
h2 { font-size: 1.45rem; font-weight: 750; letter-spacing: -0.015em; margin: 2.2em 0 0.7em; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; }
code, pre { font-family: var(--mono); }

.frame { width: min(1120px, 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }
.draft-banner { margin: 0; padding: 10px 16px; text-align: center; background: var(--warn-bg); color: var(--warn-ink); font-weight: 600; }

/* Masthead & colophon */
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 22px 0; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 800 1.2rem/1 var(--round); letter-spacing: -0.02em; text-decoration: none; }
.wordmark-glyph { width: 24px; height: 24px; background: var(--signal);
  -webkit-mask: url("/mark.svg") center / contain no-repeat; mask: url("/mark.svg") center / contain no-repeat; }
.masthead nav { display: flex; gap: 22px; flex-wrap: wrap; }
.masthead nav a { text-decoration: none; color: var(--muted); font-weight: 550; }
.masthead nav a:hover { color: var(--ink); }
.colophon { margin-top: 96px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.colophon-row { display: flex; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap; padding: 28px 0 44px; }
.colophon-row p { margin: 0; }
.colophon-row a { margin-left: 14px; }
.colophon-row a:first-child { margin-left: 0; }

/* Display type */
.display { font-size: clamp(2.6rem, 7.2vw, 5.4rem); font-weight: 850; letter-spacing: -0.035em; line-height: 0.98; max-width: 15ch; }
.display-small { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.display-app { font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: none; }
.display-doc { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 20ch; margin-bottom: 0.4em; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 36em; margin: 0.8em 0 0; }
.crumbs { margin: 0 0 14px; font-size: 0.95rem; color: var(--muted); }

/* Home: intro and platform switch (the page's one loud element) */
.intro { padding: 56px 0 8px; }
.intro-compact { padding-top: 36px; }
.shelf { margin-top: 44px; }
.filter-input { position: absolute; opacity: 0; pointer-events: none; }
.filters { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.filters legend { padding: 0; margin-bottom: 12px; color: var(--muted); font-weight: 550; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-row label { display: inline-flex; align-items: baseline; gap: 8px; cursor: pointer; user-select: none;
  font: 750 clamp(1.05rem, 2.2vw, 1.35rem)/1 var(--round); letter-spacing: -0.01em;
  padding: 14px 20px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); }
.filter-row label:hover { border-color: var(--ink); }
.count { font: 600 0.8rem/1 var(--sans); color: inherit; opacity: 0.6; }

/* Catalog rows */
.catalog { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.app-row { border-bottom: 1px solid var(--line); }
.app-row-link { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 20px;
  padding: 20px 12px; text-decoration: none; border-radius: 4px; }
.app-row-link:hover { background: color-mix(in srgb, var(--app) 9%, transparent); }
.app-row-name { display: block; font: 800 1.4rem/1.2 var(--round); letter-spacing: -0.02em; }
.app-row-tagline { display: block; color: var(--muted); }
.icon { border-radius: 22.37%; flex: none; display: block; box-shadow: 0 1px 2px rgb(0 0 0 / 0.18); }
.empty { padding: 24px 12px; color: var(--muted); }
.platform-tags { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.platform-tags li { font-size: 0.85rem; font-weight: 600; padding: 3px 10px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 7%, transparent); }

/* Status & how-built tags */
.status, .built { display: inline-block; font-size: 0.85rem; font-weight: 650; padding: 3px 10px; border-radius: 6px; white-space: nowrap; }
.status { color: var(--signal); background: color-mix(in srgb, var(--signal) 13%, transparent); }
.status-coming-soon, .status-beta { color: var(--warn-ink); background: var(--warn-bg); }
.status-deprecated { color: var(--muted); background: color-mix(in srgb, var(--muted) 14%, transparent); }
.built { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); margin-left: 8px; }

/* Home: promises */
.promises { margin-top: 80px; padding-top: 8px; }
.promises ul { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 14px 40px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.promises li { padding-left: 18px; border-left: 3px solid var(--signal); color: var(--muted); }
.promises strong { color: var(--ink); }

/* App page */
.app-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: end; padding: 44px 0 32px;
  border-bottom: 2px solid var(--ink); }
.icon-hero { width: 112px; height: 112px; }
.head-meta { margin: 18px 0 0; }
.app-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 56px; align-items: start; padding-top: 36px; }
.app-main > section:first-child p:first-child { font-size: 1.15rem; }
.prose { max-width: 66ch; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px 32px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.features p { margin: 4px 0 0; color: var(--muted); }
.built-section { max-width: 66ch; }
.checks { list-style: none; padding: 0; margin: 16px 0 18px; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%; }
.check-yes::before { background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.check-no { color: var(--muted); }
.check-no::before { border: 2px solid var(--line); }
.releases { list-style: none; padding: 0; }
.releases > li { padding: 14px 0; border-top: 1px solid var(--line); }
.releases h3 { display: flex; gap: 12px; align-items: baseline; font-size: 1rem; }
.releases ul { margin: 8px 0 0; color: var(--muted); }
.version { font-family: var(--mono); font-size: 0.95rem; }

.app-side { position: sticky; top: 24px; display: grid; gap: 22px; min-width: 0; }
.get, .get-block, .files, .file { min-width: 0; }
.get { background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--app); border-radius: 14px; padding: 22px; }
.get h2 { margin: 0 0 14px; font-size: 1.3rem; }
.get-block + .get-block { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.get-block h3 { font-size: 1.05rem; }
.get-req { margin: 2px 0 12px; color: var(--muted); font-size: 0.92rem; }
.get-notes { margin: 10px 0 0; font-size: 0.92rem; color: var(--muted); }
.get-button { display: flex; justify-content: center; align-items: center; min-height: 48px; padding: 10px 18px; border-radius: 12px;
  background: var(--ink); color: var(--paper); font-weight: 650; text-decoration: none; text-align: center; }
.get-button:hover { background: color-mix(in srgb, var(--ink) 86%, var(--app)); }
.get-button-off { background: transparent; color: var(--muted); border: 2px dashed var(--line); }
.get-button-off:hover { background: transparent; }
.files { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.file-meta { margin: 8px 0 4px; font-size: 0.9rem; color: var(--muted); }
.arch { margin-left: 8px; }
.checksum { margin: 0; font-size: 0.82rem; color: var(--muted); }
.checksum span { display: block; font-weight: 600; }
.checksum code { word-break: break-all; color: var(--ink); }
.command { max-width: 100%; white-space: pre; margin: 0; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 7%, transparent); overflow-x: auto; font-size: 0.9rem; }
.signing { margin: 12px 0 0; font-size: 0.9rem; color: var(--muted); }
.signing-unsigned { color: var(--warn-ink); background: var(--warn-bg); padding: 8px 10px; border-radius: 8px; }
.facts { margin: 0; display: grid; gap: 8px; }
.facts div { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 550; }
.side-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; }
.privacy-short { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* Policy, support, standards */
.doc { max-width: 70ch; padding-top: 44px; }
.doc-meta { color: var(--muted); }
.summary { font-size: 1.2rem; line-height: 1.55; padding-bottom: 1.2em; border-bottom: 2px solid var(--ink); }
.doc ul { padding-left: 1.25em; }
.doc li { margin-bottom: 0.45em; }
.contact { margin-top: 28px; padding: 20px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.contact h2 { margin: 0 0 8px; font-size: 1.15rem; }
.mail { font: 750 1.25rem/1.3 var(--round); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 16px 32px 16px 0; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 1.3em; width: 9px; height: 9px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform 0.15s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.55em; }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 62ch; }

@media (max-width: 860px) {
  .app-body { grid-template-columns: 1fr; gap: 8px; }
  .app-side { position: static; grid-row: 1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .intro { padding-top: 28px; }
  .app-row-link { grid-template-columns: 52px minmax(0, 1fr); gap: 4px 14px; padding: 16px 4px; }
  .app-row-link .icon { width: 52px; height: 52px; grid-row: span 2; }
  .platform-tags { justify-content: flex-start; grid-column: 2; }
  .app-row-link .status { grid-column: 2; justify-self: start; }
  .app-head { grid-template-columns: 1fr; gap: 16px; padding-top: 28px; }
  .icon-hero { width: 88px; height: 88px; }
  .filter-row label { padding: 11px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* App awaiting its human review: pages are live for stores, not listed */
.review-notice { margin: 24px 0 0; padding: 14px 18px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-ink); font-weight: 550; max-width: 70ch; }
