/* Unfret's website: one calm design for every page. One typeface, Figtree (SIL Open Font License, fonts/), served
   from here like everything else: the pages' CSP loads nothing from elsewhere. */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Tokens ──────────────────────────────────────────────────────────────────────────────────────────────────── */

:root {
  color-scheme: light dark;

  --bg: #f3f8f5;
  --bg-glow: #e3f1ea;
  --surface: #ffffff;
  --surface-2: #f6faf8;
  --ink: #12302a;
  --ink-2: #3c5a52;
  --muted: #5e776f;
  --line: #d9e6df;
  --line-strong: #c3d6cc;

  --brand: #1f8a70;
  --brand-strong: #17705b;
  --brand-ink: #0f5c4a;
  --brand-soft: #e1f1ea;
  --on-brand: #ffffff;
  --accent: #17705b; /* links */

  /* Result tones: calm, never alarming. Each verdict always has a word and a symbol too, never colour alone. */
  --good: #1f7a55;
  --good-soft: #e3f3ea;
  --note: #9a6510;
  --note-soft: #fbf1df;
  --care: #b0562a;
  --care-soft: #fbeae1;
  --stop: #a8402f;
  --stop-soft: #f8e5e0;
  --ok: var(--good);
  --error: #a8402f;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(18 48 42 / 6%);
  --shadow: 0 1px 2px rgb(18 48 42 / 5%), 0 10px 30px -8px rgb(18 48 42 / 14%);
  --shadow-lg: 0 2px 4px rgb(18 48 42 / 5%), 0 24px 60px -12px rgb(18 48 42 / 22%);

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --page: 70rem;
  --text: 40rem;

  /* Icons, drawn rather than typed: a symbol character (a tick, a warning sign) looks different on every phone, and
     Android may turn it into a colour emoji. Each is a mask, painted in the element's colour (see .i and .symbol). */
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-bang: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M12 5.5v8'/%3E%3Ccircle cx='12' cy='18.5' r='0.6' fill='%23000'/%3E%3C/svg%3E");
  --i-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 2.8 19.5h18.4z'/%3E%3Cpath d='M12 9.8v4.4'/%3E%3Ccircle cx='12' cy='17' r='0.4' fill='%23000'/%3E%3C/svg%3E");
  --i-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E");
  --i-dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E");
  --i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --i-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8.5' y='8.5' width='12' height='12' rx='2.5'/%3E%3Cpath d='M15.5 8.5V6a2.5 2.5 0 0 0-2.5-2.5H6A2.5 2.5 0 0 0 3.5 6v7A2.5 2.5 0 0 0 6 15.5h2.5'/%3E%3C/svg%3E");
  --i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6.5' y='2.5' width='11' height='19' rx='2.5'/%3E%3Cpath d='M10.5 18.5h3'/%3E%3C/svg%3E");
  --i-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1613;
    --bg-glow: #12261f;
    --surface: #13201c;
    --surface-2: #172823;
    --ink: #e5f1ec;
    --ink-2: #b9cec6;
    --muted: #8ea89f;
    --line: #22372f;
    --line-strong: #2e473e;

    --brand: #34b08f;
    --brand-strong: #49c4a2;
    --brand-ink: #7fdcbf;
    --brand-soft: #173a30;
    --on-brand: #06231b;
    --accent: #7fdcbf;

    --good: #6fd3a0;
    --good-soft: #163327;
    --note: #e8b45e;
    --note-soft: #33291a;
    --care: #ec9a6e;
    --care-soft: #35231a;
    --stop: #ee8f7d;
    --stop-soft: #37201c;
    --error: #ee8f7d;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 30%);
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px -10px rgb(0 0 0 / 55%);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 30%), 0 28px 64px -14px rgb(0 0 0 / 65%);
  }
}

/* ── Base ────────────────────────────────────────────────────────────────────────────────────────────────────── */

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

/* Hidden means hidden, whatever display a component's style gives (buttons are inline-flex). */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60rem 30rem at 15% -10%, var(--bg-glow), transparent 70%),
    radial-gradient(50rem 28rem at 100% 0%, var(--bg-glow), transparent 65%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--text);
  margin: 0 auto;
  padding: 2rem 1rem 3.5rem;
}

h1, h2, h3 { color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.01em; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.02rem; line-height: 1.35; margin: 1.5rem 0 0.4rem; }
p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
code { font-family: var(--mono); font-size: 0.9em; }
pre {
  overflow-x: auto;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  white-space: pre-wrap;
  word-break: break-all;
}
/* Fold-outs: a chevron that turns, never the browser's own triangle. */
details > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 0.45rem; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
  content: "";
  flex: none;
  width: 0.8em;
  height: 0.8em;
  background: currentColor;
  -webkit-mask: var(--i-chevron) center / contain no-repeat;
  mask: var(--i-chevron) center / contain no-repeat;
  transform: rotate(-90deg);
  transition: transform 0.15s;
}
details[open] > summary::before { transform: none; }

/* An icon in running text or a button: <span class="i i-check" aria-hidden="true"></span>. */
.i {
  display: inline-block;
  flex: none;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.16em;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.i-check { --icon: var(--i-check); }
.i-arrow { --icon: var(--i-arrow); }
.i-copy { --icon: var(--i-copy); }
.i-phone { --icon: var(--i-phone); }
.i-lock { --icon: var(--i-lock); }
.i-bang { --icon: var(--i-bang); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── Header and footer (every page) ──────────────────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0.7rem 1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark svg { flex: none; border-radius: 9px; }
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.95rem;
  text-decoration: none;
}
.site-nav a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.site-nav a[aria-current="page"] { color: var(--brand-ink); font-weight: 600; }
.site-nav .cta {
  margin-left: 0.35rem;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
}
.site-nav .cta:hover { background: var(--brand-strong); color: var(--on-brand); }
.site-nav .cta[aria-current="page"] { color: var(--on-brand); }
@media (max-width: 34rem) {
  .site-nav .optional { display: none; }
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer .inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.5rem 2rem;
  max-width: var(--page);
  margin: 0 auto;
  padding: 2.25rem 1rem 2.5rem;
}
.site-footer h2 { margin: 0 0 0.6rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--brand-ink); text-decoration: underline; }
.site-footer .about p { margin: 0.6rem 0 0; max-width: 22rem; }
.site-footer .made { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.85rem; }
@media (max-width: 40rem) {
  .site-footer .inner { grid-template-columns: 1fr 1fr; }
  .site-footer .about { grid-column: 1 / -1; }
}

/* ── Buttons and fields ──────────────────────────────────────────────────────────────────────────────────────── */

.button, button, .app button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.button:hover, button:hover:not(:disabled) { border-color: var(--brand); text-decoration: none; }
.button.primary, button.primary, .app button.primary, .app .button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
}
.button.primary:hover, button.primary:hover:not(:disabled) { background: var(--brand-strong); border-color: var(--brand-strong); }
.button.large { min-height: 3.25rem; padding: 0.8rem 1.4rem; font-size: 1.05rem; border-radius: 14px; }
.button.quiet { background: transparent; box-shadow: none; }
button:disabled, .app button:disabled { opacity: 0.5; cursor: default; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .button.primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
}
.app button.link, button.link {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--accent);
  font-weight: 400;
  text-decoration: underline;
}
.buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; }

input, select, textarea { font: inherit; color: inherit; }
input[type="text"], input[type="url"], input[type="email"], input[type="password"], input:not([type]), select, textarea {
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: max(1rem, 16px); /* 16px or more: iOS doesn't zoom in on focus */
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 0; border-color: var(--brand); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--brand); width: 1.05rem; height: 1.05rem; }
label { color: var(--ink-2); }

/* ── Surfaces ────────────────────────────────────────────────────────────────────────────────────────────────── */

.panel, .pairing {
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.panel h2:first-child, .pairing h2 { margin-top: 0; }
.notice { border-left: 4px solid var(--note); }

#status:empty { display: none; }
#status {
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
#status[data-kind="ok"] { border-left-color: var(--ok); }
#status[data-kind="error"] { border-left-color: var(--error); }
[data-kind="error"] { color: var(--error); }

/* ── Home page ───────────────────────────────────────────────────────────────────────────────────────────────── */

.landing main { max-width: none; padding: 0; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 1rem; }
.section { padding: 4.5rem 0; }
.section + .section { padding-top: 1rem; }
.section-head { max-width: 38rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0 0 0.6rem; font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; }
.section-head p { margin: 0; color: var(--ink-2); font-size: 1.08rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero { padding: 3.5rem 0 3rem; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero h1 .soft { color: var(--brand); }
.hero .lead { max-width: 33rem; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); margin-bottom: 1.75rem; }
.hero .buttons { gap: 0.75rem; }
@media (max-width: 56rem) {
  .hero { padding-top: 2.25rem; }
  .hero .wrap { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* The product, drawn in HTML: a shop page sketch with the Unfret popup on top. */
.demo { position: relative; padding: 0 0 2rem; }
.demo .shop {
  margin-right: 4.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.demo .bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.demo .bar i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--line-strong); }
.demo .bar span {
  flex: 1;
  margin-left: 0.6rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.demo .bar b {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 7px;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.demo .page { display: grid; gap: 1rem; width: 52%; min-height: 23rem; padding: 1.4rem; align-content: start; }
.demo .photo { aspect-ratio: 4 / 3; border-radius: 12px; background: linear-gradient(135deg, var(--brand-soft), var(--line)); }
.demo .lines { display: grid; gap: 0.55rem; align-content: start; }
.demo .lines i { height: 0.7rem; border-radius: 6px; background: var(--line); }
.demo .lines i:nth-child(1) { width: 85%; height: 1rem; }
.demo .lines i:nth-child(2) { width: 60%; }
.demo .lines i:nth-child(3) { width: 40%; height: 1.2rem; background: var(--line-strong); margin: 0.4rem 0; }
.demo .lines i:nth-child(4) { width: 92%; }
.demo .lines i:nth-child(5) { width: 78%; }
.demo .lines i:nth-child(6) { width: 55%; height: 2.2rem; border-radius: 10px; margin-top: 0.5rem; background: var(--line-strong); }
.demo .popup {
  position: absolute;
  top: 3.4rem;
  right: 0;
  width: min(19.5rem, 66%);
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.popup .top { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.85rem; font-weight: 700; font-size: 0.95rem; }
.popup .top svg { border-radius: 6px; }
.popup .badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  background: var(--good-soft);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
}
.popup .badge .symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--good);
  color: var(--surface);
  font-size: 0.95rem;
}
.popup .said { margin: 0.7rem 0 0.75rem; font-size: 0.95rem; color: var(--ink-2); }
.popup h3 { margin: 0 0 0.45rem; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.popup ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.popup li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.4rem; font-size: 0.9rem; line-height: 1.35; }
.popup li::before {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.12rem;
  background: var(--good);
  -webkit-mask: var(--i-check) center / contain no-repeat;
  mask: var(--i-check) center / contain no-repeat;
}
.popup li b { display: block; color: var(--ink); }
.popup li span { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .demo .popup { animation: float-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
  @keyframes float-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
}
@media (max-width: 34rem) {
  /* On a phone the answer itself is the picture. */
  .demo { padding: 0; }
  .demo .shop { display: none; margin: 0; }
  .demo .popup { position: static; width: 100%; }
}

/* Tiles: ads and tradespeople, lower on the home page. */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.tile {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.tile svg { width: 2.75rem; height: 2.75rem; padding: 0.6rem; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); }
.tile h3 { margin: 0.1rem 0 0.3rem; }
.tile p { margin: 0; color: var(--ink-2); }
@media (max-width: 48rem) { .tiles { grid-template-columns: 1fr; } }
.aside-note { margin: 1.5rem 0 0; color: var(--ink-2); max-width: 40rem; }

/* The tricks Unfret catches: one card each, with a made-up example of how the trick looks on a shop. */
.patterns { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.pattern {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.pattern h3 { margin: 0.9rem 0 0.3rem; font-size: 1.05rem; line-height: 1.3; }
.pattern p { margin: 0; color: var(--ink-2); }
.pattern .how { margin-top: auto; padding-top: 0.7rem; color: var(--brand-ink); font-size: 0.95rem; }
.mock {
  display: flex;
  align-items: center;
  min-height: 3.4rem;
  padding: 0.6rem 0.75rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.92rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.mock-timer b { padding: 0.1rem 0.4rem; border-radius: 6px; background: var(--stop); color: var(--surface); font-variant-numeric: tabular-nums; }
.mock-banner { font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--stop); }
.mock-banner.quiet { text-transform: none; letter-spacing: 0; font-weight: 600; font-style: italic; color: var(--ink-2); }
.mock-price s { color: var(--muted); }
.mock-price b { font-size: 1.1rem; }
.mock-price i { font-style: normal; font-weight: 700; color: var(--stop); }
.mock-small small, .mock-reviews small { font-size: 0.72rem; color: var(--muted); }
.mock-reviews { color: var(--note); }

/* Pricing. */
.pricing { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem; align-items: stretch; }
.price-list { display: flex; flex-direction: column; gap: 0.5rem; }
.price-list .prices { flex: 1; }
.price-note { margin: 0; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.prices li { display: flex; }
.prices a {
  flex: 1;
  display: grid;
  gap: 0;
  align-content: center;
  padding: 1.1rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.prices a:hover { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
@media (prefers-reduced-motion: no-preference) { .prices a:hover { transform: translateY(-2px); } }
.prices .choose { margin-top: 0.7rem; color: var(--brand-ink); font-weight: 650; font-size: 0.9rem; }
.prices .choose { display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; }
.prices .choose::after {
  content: "";
  width: 0.9em;
  height: 0.9em;
  background: currentColor;
  -webkit-mask: var(--i-arrow) center / contain no-repeat;
  mask: var(--i-arrow) center / contain no-repeat;
}
.prices .n { font-size: 1.6rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; }
.prices .unit { color: var(--muted); font-size: 0.85rem; }
.prices .card-price { margin-top: 0.75rem; font-weight: 650; font-size: 1.1rem; }
.prices .gift { margin-top: 0.3rem; color: var(--brand-ink); font-size: 0.8rem; line-height: 1.3; }
.prices li.featured a { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow-sm); }
.code-box {
  padding: 1.35rem 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--brand-soft), var(--surface) 70%);
}
.code-box h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.code-box p { margin: 0 0 0.9rem; color: var(--ink-2); }
.code-form { display: flex; gap: 0.5rem; }
.code-form input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 0.04em; }
.code-form input::placeholder { text-transform: none; letter-spacing: 0; }
@media (max-width: 56rem) { .pricing { grid-template-columns: 1fr; } }
@media (max-width: 30rem) { .prices { gap: 0.5rem; } .prices a { padding: 0.9rem 0.5rem; } }

/* For developers and agents. */
.dev {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.dev h2 { margin: 0 0 0.6rem; font-size: 1.5rem; letter-spacing: -0.02em; }
.dev p { color: var(--ink-2); }
.dev ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; }
.terminal {
  margin: 0;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: #0f1f1b;
  color: #cfe9df;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid #1d332c;
}
.terminal .c { color: #7f9d93; }
.terminal .k { color: #7fdcbf; }
@media (max-width: 52rem) { .dev { grid-template-columns: 1fr; padding: 1.5rem; } }

/* The home page's start (and /nl's): a paste-a-link field in the hero, a real result for the test shop beside it. */
.hero-start .wrap { align-items: start; }
.start-check { display: grid; gap: 0.5rem; max-width: 34rem; }
.start-check .field-row input { flex: 1; min-width: 0; min-height: 3.25rem; }
.start-check .field-row button { flex: none; }
.start-hint { margin: 0; color: var(--muted); font-size: 0.95rem; }
.start-hint button.link { font-size: inherit; }
.get-buttons { margin-top: 1.5rem; }
.sample {
  margin: 0;
  padding: 1.25rem 1.25rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.sample-page { display: flex; align-items: center; gap: 0.4rem; margin: 0; color: var(--muted); font-size: 0.88rem; overflow-wrap: anywhere; }
.sample .verdict { margin-top: 0.75rem; }
.sample .headline { margin-bottom: 1rem; }
.card .detail { margin: 0.2rem 0 0; color: var(--ink-2); }
.sample figcaption { margin-top: 0.9rem; color: var(--muted); font-size: 0.88rem; }

/* What Unfret stands for, in one strip under the hero. */
.proof-band { border-block: 1px solid var(--line); background: var(--surface-2); }
.proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.75rem; margin: 0 auto; padding-block: 1rem; list-style: none; color: var(--ink-2); font-weight: 600; font-size: 0.95rem; }
.proof li { display: inline-flex; align-items: center; gap: 0.45rem; }
.proof li::before, .checklist li::before {
  content: "";
  flex: none;
  width: 1em;
  height: 1em;
  background: var(--brand);
  -webkit-mask: var(--i-check) center / contain no-repeat;
  mask: var(--i-check) center / contain no-repeat;
}
.proof a { color: inherit; }
@media (max-width: 40rem) { .proof { justify-content: flex-start; } }

.mock-seller small { font-size: 0.72rem; color: var(--muted); }

/* Questions: one fold-out each. */
.faq { max-width: var(--text); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; min-height: 3rem; padding: 0.75rem 0; font-weight: 650; color: var(--ink); }
.faq details p { margin: 0 0 1rem; padding-left: 1.25rem; color: var(--ink-2); }

/* The page's last line: where developers go. */
.dev-line { margin: 0 auto; padding-top: 1rem; padding-bottom: 4rem; color: var(--ink-2); }

/* /nl: the Marktplaats example beside the field, and where the rest is. */
.nl-example { padding: 1.4rem 1.4rem 1.2rem; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.nl-example h2 { margin: 0 0 0.6rem; font-size: 1.25rem; }
.nl-example p { color: var(--ink-2); }
.checklist { display: grid; gap: 0.45rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: baseline; gap: 0.55rem; }
.checklist li::before { transform: translateY(0.15em); }
.nl-more { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.nl-more h2 { margin: 0 0 0.6rem; font-size: 1.35rem; }
.nl-more p { color: var(--ink-2); }
.section-head + #prices + .price-note { margin-top: 0.75rem; }
.en-links { margin: 0 0 1rem; padding-left: 1.2rem; }
.en-links li { margin: 0.3rem 0; }
@media (max-width: 48rem) { .nl-more { grid-template-columns: 1fr; gap: 1rem; } }

/* ── Checkout and sign-in ────────────────────────────────────────────────────────────────────────────────────── */

.wallets { display: grid; gap: 0.6rem; }
button.wallet, .app button.wallet {
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.1rem;
  padding: 0.6rem 1rem;
  font-weight: 600;
  text-align: left;
}
button.wallet:disabled { opacity: 0.6; cursor: progress; }
button.wallet img { border-radius: 0.35rem; }

.packs { display: grid; gap: 0.6rem; border: 0; padding: 0; margin: 0; }
/* A pack: the radio, its name and its price on one line, what comes with it below the name. */
.pack {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 0.7rem;
  row-gap: 0.1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pack:hover { border-color: var(--line-strong); }
.pack:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow-sm); }
.pack input { grid-column: 1; margin: 0; }
.pack strong { grid-column: 2; font-size: 1.05rem; }
.pack .price { grid-column: 3; grid-row: 1; font-weight: 700; font-size: 1.05rem; }
.pack .crypto, .pack .gift { grid-column: 2 / -1; display: block; font-size: 0.9rem; color: var(--muted); }
.pack .gift { color: var(--brand-ink); }

#shop > section > h2 { padding-bottom: 0.4rem; border-bottom: 1px solid var(--line); }
.choices { border: 0; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.choices > label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.7rem;
  margin: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.choices > label:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.choices .muted { grid-column: 2; display: block; font-size: 0.9rem; }
.custom { display: block; margin-top: 0.9rem; }
.custom select { margin-left: 0.4rem; }
.custom input { margin-left: 0.4rem; }
#key-input, #recovery-input { display: block; width: 100%; max-width: 32rem; margin: 0.35rem 0 0; }
/* SOL or USDC: a two-way switch. */
fieldset.currency { border: 0; padding: 0; margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
fieldset.currency legend { padding: 0; margin-bottom: 0.4rem; width: 100%; color: var(--ink-2); }
fieldset.currency label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
fieldset.currency label:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
fieldset.currency label:has(input:disabled) { opacity: 0.5; cursor: default; }
#card { margin-bottom: 0.5rem; }
#card h3:first-child { margin-top: 0; }
#card h3:last-child { margin: 1.4rem 0 -0.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }

#qr:not([hidden]) { display: block; margin-top: 0.5rem; background: #fff; padding: 0.6rem; border-radius: 12px; }

/* The checkout's payment progress: waiting, received, still settling, or an error, in place of the choices. */
.pay-panel {
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 5rem;
}
.pay-panel:focus { outline: none; }
.pay-panel[data-state="ok"], .pay-panel[data-state="thanks"] { border-left-color: var(--ok); }
.pay-panel[data-state="error"] { border-left-color: var(--error); }
.pay-panel p { margin: 0 0 0.6rem; }
.pay-panel .headline { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; font-size: 1.15rem; font-weight: 650; }
.pay-panel[data-state="ok"] .headline, .pay-panel[data-state="thanks"] .headline { color: var(--ok); }
.pay-panel[data-state="error"] .headline, .pay-panel[data-state="info"] .headline { font-size: 1rem; font-weight: 400; }
.pay-panel[data-state="error"] .headline { color: var(--error); }
.pay-panel code, #key-reveal code { word-break: break-all; }
.pay-panel button { margin-top: 0.2rem; }
.pay-panel #qr:not([hidden]) { margin: 0 auto 1rem; max-width: 100%; height: auto; }
.spinner {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.5s; } }

/* Phone pairing: the confirmation code the user compares with the computer's screen. */
.pairing { border: 2px solid var(--brand); }
.code { display: inline-block; font-family: var(--mono); font-size: 1.6em; letter-spacing: 0.12em; padding: 0 0.35em; border-radius: 8px; background: var(--brand-soft); color: var(--brand-ink); }
#pair-error { color: var(--error); }

/* Invites: the codes a pack comes with (shown once), and the "Have an invite?" fields. */
.invites { list-style: none; padding: 0; margin: 0 0 0.6rem; }
.invites li { margin: 0.3rem 0; }
.invites code { word-break: break-all; }
details.invite {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
details.invite[open] { border-style: solid; }
details.invite summary { font-weight: 600; color: var(--brand-ink); }
details.invite input { display: block; width: 100%; max-width: 24rem; margin: 0.35rem 0 0.6rem; }

/* ── The link checker and shared results (.app) ──────────────────────────────────────────────────────────────── */

.app main { padding-top: max(1.75rem, env(safe-area-inset-top)); padding-bottom: max(2.5rem, env(safe-area-inset-bottom)); }
.app [hidden] { display: none !important; }
.app h1 { margin-top: 0.25rem; }

.check-form { display: grid; gap: 0.6rem; }
.check-form label { font-weight: 650; color: var(--ink); }
.field-row { display: flex; gap: 0.5rem; }
.app input[type="url"], .app input[type="password"], .app textarea { flex: 1; min-width: 0; width: 100%; min-height: 3rem; }
.check-form button.primary { width: 100%; font-size: 1.08rem; min-height: 3.2rem; }
.error-text { margin: 0; color: var(--error); }

.account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem 1rem;
  margin-bottom: 1rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.account p { margin: 0; }
.checks { font-weight: 650; white-space: nowrap; color: var(--brand-ink); }

.choice { border-top: 1px solid var(--line); padding: 0.85rem 0; }
.choice summary { font-weight: 650; min-height: 2rem; color: var(--ink); }
.choice input { margin: 0.35rem 0 0.6rem; }
.choice-link { border-top: 1px solid var(--line); padding-top: 0.85rem; margin-bottom: 0.5rem; }

.steps { list-style: none; padding: 0; margin: 0.5rem 0 1rem; }
.steps li { display: flex; gap: 0.6rem; align-items: center; padding: 0.25rem 0; color: var(--muted); }
.steps li.done { color: var(--ink); }
.steps .tick {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 0.8rem;
  line-height: 1.25rem;
}
.steps li.done .tick { border-color: var(--good); background: var(--good-soft); color: var(--good); }
.steps li.done .tick::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  margin: auto;
  background: currentColor;
  -webkit-mask: var(--i-check) center / contain no-repeat;
  mask: var(--i-check) center / contain no-repeat;
}

/* The verdict: a word and a symbol, never colour alone. */
.verdict {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.verdict .symbol {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--muted);
  color: var(--surface);
  font-weight: 700;
}
.verdict .symbol { width: 2.6rem; height: 2.6rem; font-size: 1.3rem; }
/* The band's sign, drawn: the character in the HTML stays for text-only readers and is hidden here. */
.verdict .symbol, .popup .badge .symbol { font-size: 0 !important; color: var(--surface); }
.verdict .symbol::before, .popup .badge .symbol::before {
  content: "";
  width: 58%;
  height: 58%;
  background: currentColor;
  -webkit-mask: var(--sym, var(--i-dash)) center / contain no-repeat;
  mask: var(--sym, var(--i-dash)) center / contain no-repeat;
}
.reliable .symbol, .popup .badge .symbol { --sym: var(--i-check); }
.concerns .symbol { --sym: var(--i-bang); }
.careful .symbol { --sym: var(--i-warn); }
.junk_or_scam .symbol, .warning .symbol { --sym: var(--i-cross); }
.verdict .label { margin: 0; font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
.verdict.reliable { background: var(--good-soft); border-color: transparent; }
.verdict.reliable .symbol { background: var(--good); }
.verdict.concerns { background: var(--note-soft); border-color: transparent; }
.verdict.concerns .symbol { background: var(--note); }
.verdict.careful { background: var(--care-soft); border-color: transparent; }
.verdict.careful .symbol { background: var(--care); }
.verdict.junk_or_scam, .verdict.warning { background: var(--stop-soft); border-color: transparent; }
.verdict.junk_or_scam .symbol, .verdict.warning .symbol { background: var(--stop); }
.headline { font-size: 1.05rem; margin: 0.8rem 0 0; color: var(--ink-2); }
.source-note { margin-top: 0.75rem; }

.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.card {
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.card.high { border-left-color: var(--stop); }
.card.medium { border-left-color: var(--care); }
.card.low { border-left-color: var(--note); }
.card.good { border-left-color: var(--good); }
.card .title { display: block; font-weight: 650; }
.card details { margin-top: 0.35rem; }
.card summary { color: var(--accent); font-size: 0.95rem; }
.card details p { margin: 0.35rem 0 0; }
.thumbs { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.thumbs img { border-radius: 0.4rem; object-fit: cover; }
.details ul { padding-left: 1.2rem; }
#again-row { margin-top: 1.5rem; }
#again { width: 100%; }

/* A shared result's page (/r/{id}). */
.kicker { margin: 0; font-weight: 650; color: var(--brand-ink); font-size: 0.9rem; }
.case-title { font-size: 1.35rem; overflow-wrap: anywhere; }
.case-meta { margin: 0 0 0.2rem; overflow-wrap: anywhere; }
.case-meta .host { font-weight: 650; }
.case + .buttons { margin-top: 1.5rem; }

/* "Share this result" on /check, and a shared result's page (/r/{id}). */
#share-area { margin-top: 1rem; }
.share-preview .case-title { font-size: 1.15rem; margin: 0 0 0.3rem; }
.share-link, #share-code { overflow-wrap: anywhere; }
.case .choice textarea, .case .choice input { margin: 0.3rem 0 0.5rem; }

@media (min-width: 40rem) {
  .check-form button.primary, #again { width: auto; min-width: 12rem; justify-self: start; }
}

/* Plain content pages (privacy, install): comfortable reading. */
.prose h2 { margin-top: 2.25rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.3rem 0; }
.page-intro { margin-bottom: 1.5rem; }
.page-intro p { color: var(--ink-2); font-size: 1.08rem; }
.app main > p.muted.small:last-child { margin-top: 1.5rem; }

/* The install page: the steps next to the answer. */
.install { max-width: var(--page); }
.install-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: start; padding-top: 1rem; }
.install h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); letter-spacing: -0.03em; margin-top: 0; }
.howto { margin: 0 0 1.5rem; padding: 0; list-style: none; counter-reset: howto; display: grid; gap: 0.85rem; }
.howto li { position: relative; padding-left: 2.6rem; color: var(--ink-2); }
.howto li::before {
  counter-increment: howto;
  content: counter(howto);
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 0.9rem;
}
.howto b { color: var(--ink); }
.demo.solo { padding: 2.5rem 0 0; }
.demo.solo .popup { position: static; width: 100%; max-width: 22rem; margin-left: auto; }
@media (max-width: 52rem) {
  .install-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .demo.solo { padding-top: 0; }
  .demo.solo .popup { margin: 0 auto; }
}

/* ── Buy checks: three tabs, one short path each; crypto behind a quiet link ──────────────────────────────────── */

.checkout .lead { margin-bottom: 1.5rem; }
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
  margin: 0 0 1.5rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.tabs [role="tab"] {
  min-height: 2.6rem;
  padding: 0.45rem 0.5rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}
.tabs [role="tab"]:hover:not([aria-selected="true"]) { background: var(--brand-soft); color: var(--brand-ink); }
.tabs [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
@media (max-width: 30rem) { .tabs [role="tab"] { font-size: 0.88rem; padding: 0.45rem 0.3rem; } }
.set-aside { display: none !important; }

h2.step { margin: 1.5rem 0 0.75rem; font-size: 1.1rem; border: 0; padding: 0; }
#pack-section h2.step { margin-top: 0; }
.checkout .pack .crypto-only { display: none; }
.checkout[data-mode="crypto"] .pack .crypto-only { display: inline; }
.checkout[data-mode="crypto"] .pack .crypto { display: block; }
.checkout[data-mode="crypto"] .pack .card-only { display: none; }
#panel-new, #panel-topup, #panel-code, #panel-crypto { margin-top: 1.25rem; }
#panel-code { margin-top: 0; }
#panel-code h2.step { margin-top: 0; }
button.wide { width: 100%; }
.pay-buttons { display: grid; gap: 0.6rem; }
.pay-country { margin: 0 0 0.75rem; }
.pay-country p { margin: 0 0 0.4rem; }
.pay-country button.link { margin-left: 0.25rem; font-size: inherit; }
.pay-country-box { display: grid; gap: 0.3rem; font-size: 0.9rem; }
.pay-country-box select { width: 100%; max-width: 22rem; }
.reassure-line { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.92rem; text-align: center; }
label.field { display: grid; gap: 0.15rem; margin-bottom: 0.4rem; color: var(--ink); font-weight: 600; }
label.field .small { font-weight: 400; }
.wide-input { display: block; width: 100%; margin-bottom: 0.6rem; }
#topup-pay { margin-top: 0.4rem; }
#panel-topup details.invite { margin-top: 1.25rem; }

/* A key shown once: the key and its recovery code, each with a Copy button. */
.key-card {
  display: grid;
  gap: 0.9rem;
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.secret-label { display: grid; gap: 0.1rem; margin: 0 0 0.35rem; }
.secret-value { display: flex; gap: 0.5rem; align-items: center; }
.secret-value code {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  word-break: break-all;
  font-size: 0.88rem;
}
.secret-value button { flex: none; min-height: 2.5rem; }
.key-card > p { margin: 0; }
.result-actions { margin-top: 1.25rem; }

/* The new key handed to the extension: signed in, a question before switching accounts, or how to get it. */
.handoff {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.handoff[data-kind="ok"] { border-left-color: var(--ok); background: var(--good-soft); }
.handoff[data-kind="ask"] { border-left-color: var(--note); }
.handoff p { margin: 0 0 0.4rem; }
.handoff p:last-child { margin-bottom: 0; }
.pay-panel .handoff .handoff-ok { margin: 0; color: var(--good); font-weight: 650; }
.handoff-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.topup-for { margin: 0 0 0.6rem; }
.topup-for button.link { font-size: inherit; }

/* /welcome: the first page after installing, three ways in. */
.welcome { max-width: var(--page); }
.welcome h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); letter-spacing: -0.03em; margin: 0.5rem 0 0.5rem; }
.paths { list-style: none; margin: 1.75rem 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.paths li {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.35rem 1.25rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.paths li.main { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow-sm); }
.paths h2 { margin: 0; font-size: 1.15rem; }
.paths p { margin: 0; color: var(--ink-2); }
.paths .button { margin-top: auto; align-self: flex-start; }
@media (max-width: 48rem) { .paths { grid-template-columns: 1fr; } }
.pay-panel .howto { margin-top: 0.5rem; }
.tax-note { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.9rem; text-align: center; }
.pay-note { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.9rem; text-align: center; }

/* ── Installed on a phone (the web app, display-mode standalone) ─────────────────────────────────────────────────
   It opens at /check. The site's menu, its "Get Unfret" button and the footer (source code, API reference) are the
   website's, not the app's: only what a shopper needs stays. */
@media (display-mode: standalone) {
  .site-footer { display: none; }
  .site-nav .cta, .site-nav .optional { display: none; }
  .site-header { padding-top: env(safe-area-inset-top); }
  .install-app { display: none !important; }
}

/* Under the main button: the other ways to get Unfret, in one quiet line. */
.also { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.95rem; }

/* /extension: the phone app, with a code to scan on a computer and a button on a phone. */
.phone-get { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: start; }
.phone-get .qr { padding: 0.5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
/* Grid columns may shrink below their longest word (a heading, the link to /check), or a phone scrolls sideways. */
.install-grid > *, .phone-get > * { min-width: 0; }
.howto a { overflow-wrap: anywhere; }
@media (max-width: 30rem) { .phone-get { grid-template-columns: 1fr; } }
.on-phone { display: none; }
@media (pointer: coarse) and (max-width: 48rem) {
  .on-computer { display: none; }
  .on-phone { display: flex; }
  .phone-get { grid-template-columns: 1fr; }
}
.install h2 { margin-top: 2.25rem; }

/* /check in a phone's browser: install it as an app. */
.install-app { margin-top: 2rem; border-color: var(--brand); background: linear-gradient(160deg, var(--brand-soft), var(--surface) 70%); }
.install-app h2 { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.4rem; font-size: 1.1rem; }
.install-app h2 .i { color: var(--brand-ink); }
.install-app p { margin: 0 0 0.6rem; }

/* /check without checks yet: get some, or use a pass you have. */
.get-started .buttons { margin: 0.25rem 0 0.5rem; }
.get-started .choice:first-of-type { margin-top: 0.75rem; }
.pass-added { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 1rem; padding: 0.6rem 0.9rem; border-radius: var(--radius-sm); background: var(--good-soft); color: var(--good); font-weight: 600; }
.account .checks { font-size: 1.02rem; }

/* ── My checks: the pass as a card ─────────────────────────────────────────────────────────────────────────── */

.pass-card {
  position: relative;
  overflow: hidden;
  margin: 0.5rem 0 1rem;
  padding: 1.15rem 1.25rem 1.25rem;
  border-radius: 18px;
  background:
    radial-gradient(20rem 10rem at 110% -20%, rgb(255 255 255 / 22%), transparent 70%),
    linear-gradient(135deg, #1f8a70, #145c4b);
  color: #fff;
  box-shadow: var(--shadow);
}
.pass-top { display: flex; align-items: center; gap: 0.55rem; font-weight: 650; }
.pass-top svg { flex: none; }
.pass-name { letter-spacing: 0.01em; }
.pass-id { margin-left: auto; font-family: var(--mono); font-size: 0.95rem; letter-spacing: 0.08em; opacity: 0.9; }
.pass-card .pass-checks { margin: 1.4rem 0 0; }
.pass-checks strong { font-size: 2.4rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.pass-checks span { margin-left: 0.3rem; font-size: 1.05rem; opacity: 0.9; }
#mine-wallet .pass-checks strong { color: var(--brand-ink); }
.pass-actions { margin-bottom: 0.5rem; }
.pass-actions button .i, .copy .i { margin-right: 0.1rem; }
.mine-remove { margin-top: 1rem; }
.mine .lead { margin-bottom: 1.25rem; }

/* The QR code that puts the pass on a phone: shown only on request. */
.qr-box { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; }
.qr-box img { display: block; width: 220px; height: 220px; padding: 0.5rem; border-radius: 12px; background: #fff; }
.qr-box h2 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.qr-box p { margin: 0 0 0.6rem; }
@media (max-width: 34rem) { .qr-box { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

.paths.two { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
.paths li .buttons { margin: auto 0 0; }
.paths input { width: 100%; }
@media (max-width: 40rem) { .paths.two { grid-template-columns: 1fr; } }
.restore { margin-top: 2rem; }
.restore h2 { margin-top: 0; }
/* A backup code is long: on a phone the field takes the whole row and the button goes under it. */
.restore .code-form { flex-wrap: wrap; }
.restore .code-form input { flex: 1 1 14rem; }
.save-backup { border-left: 4px solid var(--note); margin-bottom: 1.5rem; }
.save-backup h2 { margin-top: 0; }
.save-backup .secret-value, #pass-value-row { margin: 0.6rem 0; }
.quiet-choice { margin-top: 1.5rem; color: var(--muted); }
.quiet-choice summary { font-weight: 600; color: var(--ink-2); }
button.copy { min-height: 2.5rem; padding: 0.45rem 0.8rem; font-size: 0.92rem; }

/* /checkout after paying: the pass as a small card, then the backup code to save. */
.key-card { gap: 1rem; }
.small-pass { margin: 0; padding: 0.9rem 1.05rem; border-radius: 14px; }
.small-pass .pass-note { margin: 0.6rem 0 0; font-size: 0.9rem; opacity: 0.9; }
.key-card .backup { padding-top: 0.25rem; }
.key-card .choice { padding-bottom: 0; }
.pay-panel[data-state="ok"] > #pay-message > .headline::before {
  content: "";
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  background: currentColor;
  -webkit-mask: var(--i-check) center / contain no-repeat;
  mask: var(--i-check) center / contain no-repeat;
}
.handoff-ok .i { color: var(--good); }
.topup-lost { margin-top: 1rem; }
.invites li.secret-value { margin: 0.4rem 0; }
.card .detail { margin: 0.25rem 0 0; color: var(--ink-2); font-size: 0.95rem; }

/* Crypto at checkout: a quiet way in under the card buttons, and a way back. */
.crypto-way { margin: 0.9rem 0 0; text-align: center; font-size: 0.92rem; }
.crypto-way button.link { color: var(--muted); }
.crypto-head { margin: 0 0 1rem; }
.crypto-head .back .i { transform: rotate(180deg); margin-right: 0.2rem; }
.checkout[data-mode="crypto"] .tabs { display: none; }
.crypto-head h2 { margin: 0.25rem 0 0.4rem; font-size: 1.3rem; }
.crypto-head p { margin: 0 0 0.6rem; }

/* ── /developers ────────────────────────────────────────────────────────────────────────────────────────────── */

.dev-hero .wrap { grid-template-columns: 1.1fr 1fr; }
.dev-hero h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.3rem); }
.dev-page code { padding: 0.05rem 0.3rem; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.86em; }
.dev-page .terminal code, .dev-page pre code { padding: 0; border: 0; background: none; }
.wrap.narrow > * { max-width: 46rem; }
.wrap.narrow h2 { margin-top: 0; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); letter-spacing: -0.02em; }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.ways li { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.ways h3 { margin: 0 0 0.4rem; }
.ways h3 a { color: var(--ink); text-decoration: none; }
.ways h3 a:hover { color: var(--brand-ink); text-decoration: underline; }
.ways p { margin: 0; color: var(--ink-2); }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tier { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.tier.featured { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow-sm); }
.tier-name { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 0.5rem; font-family: var(--mono); font-weight: 700; font-size: 1.05rem; }
.tier-price { font-family: var(--font); font-size: 1.5rem; font-weight: 750; letter-spacing: -0.02em; color: var(--brand-ink); }
.tier p:last-child { margin: 0; color: var(--ink-2); }
.code-block { position: relative; margin: 1rem 0 0.6rem; }
.code-block .terminal { padding-right: 5.5rem; white-space: pre; overflow-x: auto; word-break: normal; }
.code-block .copy { position: absolute; top: 0.6rem; right: 0.6rem; background: #1a2f29; color: #cfe9df; border-color: #2b4840; box-shadow: none; }
.code-block .copy:hover { border-color: #7fdcbf; }
.dev-pass { margin: 1.5rem 0 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.dev-pass h3 { margin: 0 0 0.4rem; }
.dev-pass #dev-pass-result { margin: 0.6rem 0; }
.code-block .terminal.sample-json { max-height: 28rem; overflow-y: auto; }
table.settings { width: 100%; margin: 1rem 0; border-collapse: collapse; font-size: 0.92rem; }
table.settings th, table.settings td { padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.settings th { color: var(--muted); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
.dev-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 1.75rem; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.dev-links h2 { margin: 0 0 0.75rem; font-size: 1.2rem; }
.dev-links ul { margin: 0 0 0.75rem; padding-left: 1.1rem; display: grid; gap: 0.4rem; color: var(--ink-2); }
.dev-page .section { padding: 3.5rem 0; }
/* /developers/http: what's on the page, as a row of links under the lead; field tables keep long names on one line. */
.dev-toc { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin: 0; font-size: 0.95rem; }
.dev-toc a { color: var(--brand-ink); }
table.fields td:first-child code { white-space: nowrap; }
.code-block .terminal { tab-size: 4; }
.dev-page .eyebrow a { color: inherit; }
.dev-page .section + .section { padding-top: 0.5rem; }
@media (max-width: 56rem) { .dev-hero .wrap, .tiers, .dev-links { grid-template-columns: 1fr; } }
@media (max-width: 48rem) { .ways { grid-template-columns: 1fr; } }
.site-nav .quiet-link { color: var(--muted); }
@media (max-width: 60rem) { .site-nav .quiet-link { display: none; } }
@media (max-width: 40rem) {
  table.settings thead { display: none; }
  table.settings tr { display: grid; grid-template-columns: 1fr auto; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
  table.settings td { border: 0; padding: 0.15rem 0.2rem; }
  table.settings td:nth-child(3) { grid-column: 1 / -1; color: var(--ink-2); }
}

/* The accuracy page: three headline numbers, verdict tables, the scorer's changelog. */
.prose .acc-stats { list-style: none; margin: 1.5rem 0 0.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.prose .acc-stats li { margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink-2); font-size: 0.92rem; line-height: 1.4; }
.acc-stat { display: block; margin-bottom: 0.3rem; color: var(--brand-ink); font-size: 1.9rem; font-weight: 750; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.acc-table-wrap { margin: 1rem 0; overflow-x: auto; }
.acc-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.acc-table th, .acc-table td { padding: 0.5rem 0.5rem; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.acc-table th:first-child { text-align: left; }
.acc-table thead th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; vertical-align: bottom; }
.acc-table tbody th { font-weight: 600; color: var(--ink); }
.acc-table .band-cell { white-space: nowrap; }
.band-dot { display: inline-block; width: 0.7em; height: 0.7em; margin-right: 0.45em; border-radius: 50%; background: var(--muted); }
.band-dot.reliable { background: var(--good); }
.band-dot.concerns { background: var(--note); }
.band-dot.careful { background: var(--care); }
.band-dot.junk_or_scam { background: var(--stop); }
.acc-scorer-meta { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.acc-scorers thead th { color: var(--ink); font-size: 0.92rem; font-weight: 650; text-transform: none; letter-spacing: 0; }
.acc-scorers thead th:first-child { color: var(--muted); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.acc-scorers thead th code { display: block; margin-top: 0.15rem; font-size: 0.8rem; overflow-wrap: anywhere; }
.acc-scorers tbody th, .acc-history { margin: 1rem 0; border-top: 1px solid var(--line); }
.acc-history-item { border-bottom: 1px solid var(--line); }
.acc-history-item > summary { display: flex; align-items: baseline; min-height: 2.75rem; padding: 0.7rem 0; font-weight: 650; color: var(--ink); }
.acc-history-item > summary::before { align-self: center; }
.acc-history-item > summary code { overflow-wrap: anywhere; }
.acc-history-item > p, .acc-history-item > .acc-table-wrap { margin-left: 1.25rem; }
.acc-history-item > p { margin-top: 0; }
.acc-history-table { max-width: 32rem; }
.acc-history-empty { color: var(--ink-2); }
.acc-changelog dt { margin-top: 1.1rem; font-weight: 650; color: var(--ink); }
.acc-changelog dd { margin: 0.3rem 0 0; color: var(--ink-2); }
@media (max-width: 40rem) {
  .prose .acc-stats { grid-template-columns: 1fr; }
  .acc-stat { font-size: 1.6rem; }
  .acc-table { font-size: 0.85rem; }
  .acc-table th, .acc-table td { padding: 0.45rem 0.2rem; }
  .acc-table th:first-child { padding-left: 0; }
  .acc-table th:last-child, .acc-table td:last-child { padding-right: 0; }
  .acc-table thead th { font-size: 0.7rem; letter-spacing: 0.02em; }
  .acc-scorers thead th { font-size: 0.85rem; }
}
@media (max-width: 26rem) { .acc-table td .muted { display: none; } }
/* /check: example links under the form */
.examples { margin-top: 1.25rem; }
.examples h2 { font-size: 1rem; margin: 0 0 0.25rem; }
.example-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.example-links button.link { text-align: left; }
/* /check: the shops whose pages only the extension and the Android app can read */
.browser-only { margin-top: 1rem; }
.browser-only summary { font-weight: 600; color: var(--ink-2); min-height: 2rem; }
.browser-only p { margin: 0.5rem 0; }
.shop-list { list-style: none; padding: 0; margin: 0.5rem 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.shop-list li {
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
}

/* Checkout: the bonus code under the packs, and the note an old intro-code link gets. */
.bonus-code { margin-top: 1rem; }
.bonus-code label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.note { border-left: 4px solid var(--ok); background: var(--good-soft); padding: 0.9rem 1rem; border-radius: 8px; margin: 1rem 0; }
.note p { margin: 0 0 0.6rem; }
.note .buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Affiliates: the program page and an affiliate's own stats. */
.stats-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.stats-table th, .stats-table td { padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--line, #ddd); text-align: right; }
.stats-table th:first-child, .stats-table td:first-child { text-align: left; }
.table-scroll { overflow-x: auto; }

/* ── About, money, press, terms and the shop owners' page ────────────────────────────────────────────────────── */
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--brand); }
.facts { display: grid; grid-template-columns: minmax(7rem, auto) 1fr; gap: 0.6rem 1.25rem; margin: 0 0 1rem; }
.facts dt { font-weight: 650; color: var(--ink); }
.facts dd { margin: 0; color: var(--ink-2); }
@media (max-width: 34rem) { .facts { grid-template-columns: 1fr; gap: 0.15rem; } .facts dd { margin-bottom: 0.6rem; } }
.prose ul.press-logos, .prose ul.press-shots { list-style: none; padding: 0; display: grid; gap: 1rem; }
.press-logos li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.press-logos img { width: 4rem; height: 4rem; border-radius: 16px; }
.press-shots img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.press-shots li:nth-child(2) img { max-width: 16rem; }
.press-shots p { margin: 0.4rem 0 0; }
mark.placeholder { padding: 0 0.2rem; border-radius: 4px; background: var(--note-soft); color: var(--note); font-weight: 600; }
.draft-note { margin-bottom: 1.5rem; background: var(--note-soft); }
.draft-note p { margin: 0; }
.objection-form fieldset { margin-bottom: 1rem; }
.objection-form legend { margin-bottom: 0.5rem; font-weight: 600; color: var(--ink); }
.objection-form p > label { display: block; margin-bottom: 0.3rem; }
.objection-form input[type="text"], .objection-form input[type="email"], .objection-form textarea { width: 100%; box-sizing: border-box; }
.result-links { margin: 1rem 0 0; }

/* The result card (/check, /r/{id}): the same product elsewhere first, sources, the next step, what was checked. */
.same-product {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--note);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.same-product .title { margin: 0; font-weight: 650; }
.same-product .pair { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.6rem 0; }
.same-product figure { margin: 0; max-width: 120px; }
.same-product img { display: block; width: 120px; height: 120px; border-radius: 0.5rem; object-fit: cover; background: var(--surface-2); }
.same-product figcaption { margin-top: 0.25rem; font-size: 0.85rem; color: var(--muted); overflow-wrap: anywhere; }
.same-product .detail { margin: 0; }
.clean { margin: 0.8rem 0 0; font-weight: 600; color: var(--good); }
.card .source { margin: 0.3rem 0 0; font-size: 0.85rem; color: var(--muted); }
.next-step { margin-top: 1rem; padding: 0.8rem 0.95rem; border-radius: var(--radius-sm); background: var(--surface-2); }
/* "Why Unfret?": questions to ask any checker, then the alternatives and Unfret side by side. */
main.why { max-width: 54rem; }
.why > p, .why > h1, .why > h2, .why-questions { max-width: var(--text); }
.why-questions { margin: 0 0 1rem; }
.why-questions dt { margin-top: 0.9rem; font-weight: 650; color: var(--ink); }
.why-questions dd { margin: 0.2rem 0 0; color: var(--ink-2); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0 0.5rem; }
.compare-col { padding: 1.1rem 1.25rem 0.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.compare-col.unfret { border-color: var(--brand); background: var(--surface); box-shadow: var(--shadow-sm); }
.compare-col h3 { margin: 0 0 0.6rem; }
.compare-col.unfret h3 { color: var(--brand-ink); }
.compare-col ul { margin: 0; }
.compare-col li { color: var(--ink-2); }
@media (max-width: 44rem) { .compare { grid-template-columns: 1fr; } }
.next-step h2 { margin: 0 0 0.25rem; font-size: 1rem; }
.next-step p { margin: 0; }
/* Under a quick result: what a deep check would add for this page, its cost and one button. Plain: no colour of its
   own, no timer; quieter still when the quick result looks fine. */
.deep-hint { margin-top: 1rem; padding: 0.8rem 0.95rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.deep-hint p { margin: 0 0 0.35rem; }
.deep-hint .cost { font-size: 0.9rem; color: var(--muted); }
.deep-hint .buttons { margin-top: 0.5rem; }
.deep-hint.quiet { border-style: dashed; }
.deep-hint.quiet p:first-child { color: var(--ink-2); font-size: 0.95rem; }
h2 .count { font-weight: 400; color: var(--muted); font-size: 0.9em; }
.checked-list { list-style: none; padding: 0; margin: 0.4rem 0 0; display: grid; gap: 0.35rem; }
.checked-list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.checked-list .mark {
  flex: none;
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}
.checked-list .mark::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  margin: auto;
  background: currentColor;
  -webkit-mask: var(--sym, var(--i-dash)) center / contain no-repeat;
  mask: var(--sym, var(--i-dash)) center / contain no-repeat;
}
.checked-list .checked .mark { --sym: var(--i-check); border-color: var(--good); background: var(--good-soft); color: var(--good); }
.checked-list .concern .mark { --sym: var(--i-bang); border-color: var(--care); background: var(--care-soft); color: var(--care); }
.checked-list .not_checked { color: var(--muted); }
.checked-list .why { display: block; font-size: 0.88rem; color: var(--muted); }
.result-links button.link { font-size: inherit; }
#report-area { margin-top: 1rem; }

/* ── Unfret for Android (/android) ───────────────────────────────────────────────────────────────────────────── */
.android .apk-download { margin: 1.5rem 0 0.5rem; }
.android .apk-download .buttons { margin: 0.25rem 0 1rem; }
.android .apk-download .button { max-width: 100%; white-space: normal; text-align: center; }
.android .apk-download .facts { margin-bottom: 0; }
.android .hashes { grid-template-columns: minmax(7rem, 14rem) 1fr; }
.android code { overflow-wrap: anywhere; }
.android code.hash { word-break: break-all; font-size: 0.85em; line-height: 1.5; }
@media (max-width: 34rem) { .android .hashes { grid-template-columns: 1fr; } }
