/* P2P Germany · "Paper & Ink" — light-only editorial finance system
 *
 * Type:
 *   Fraunces        — display: headlines, big numbers, brand wordmark
 *   Instrument Sans — body, UI, labels (tabular figures for data)
 *
 * Colour:
 *   --bg       #FAF8F4  warm paper
 *   --surface  #FFFFFF  cards
 *   --sand     #F3EEE5  tinted bands, nested surfaces
 *   --ink      #121826  navy-black text and dark UI
 *   --accent   #D9480F  burnt orange — CTAs, emphasis (AA on white)
 *   --gold     #F2A900  rating stars / meters
 *
 * The site ships a single light theme; there is no theme switch.
 */

:root {
  color-scheme: light;

  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --elevated: #F3EEE5;
  --sand: #F3EEE5;
  --sand-deep: #EAE3D6;
  --line: #E8E2D7;
  --line-strong: #D6CEBF;
  --ink: #121826;
  --ink-2: #2A3242;
  --muted: #586070;
  --dim: #8A8F99;
  --accent: #D9480F;
  --accent-hover: #B93A08;
  --accent-soft: #FDEDE4;
  --accent-line: #F6C9B3;
  --accent-2: #1F3A8A;
  --gold: #F2A900;
  --gold-soft: #FFF4D6;
  --success: #16803C;
  --success-soft: #E5F4EA;
  --danger: #C62D2D;
  --danger-soft: #FCEAEA;

  --on-accent: #FFFFFF;
  --ink-soft: #2E3545;
  --selection-bg: #FFD9C4;
  --selection-fg: #121826;
  --code-bg: #F3EEE5;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(18, 24, 38, 0.05);
  --shadow: 0 1px 2px rgba(18, 24, 38, 0.04), 0 8px 24px -12px rgba(18, 24, 38, 0.12);
  --shadow-lg: 0 2px 4px rgba(18, 24, 38, 0.04), 0 24px 48px -24px rgba(18, 24, 38, 0.22);

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; background: var(--bg); scroll-padding-top: 96px; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
}

::selection { background: var(--selection-bg); color: var(--selection-fg); }

/* ---------- container ---------- */
.container-page {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) { .container-page { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container-page { padding-inline: 2rem; } }

/* ---------- type ---------- */
.font-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 72;
}
.headline {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.headline em,
.headline-mark {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.text-gradient { color: var(--accent); }

.lead { font-size: 1.125rem; line-height: 1.65; color: var(--muted); }
@media (min-width: 640px) { .lead { font-size: 1.2rem; } }

.num {
  font-family: var(--font-display);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Small UI label (replaces the old mono eyebrow everywhere). */
.label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- kicker (section eyebrow) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.eyebrow--muted { color: var(--muted); }
.eyebrow--plain::before { display: none; }

/* Pill-shaped kicker for heroes. */
.kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem 0.35rem 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.kicker-pill__dot {
  display: inline-grid;
  place-items: center;
  height: 1.4rem;
  padding-inline: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------- card ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.card-hover:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.card-hover:hover .arrow-cta { color: var(--accent); }
.card-hover:hover .arrow-cta svg { transform: translateX(3px); }
.card-pad { padding: 1.25rem; }
@media (min-width: 768px) { .card-pad { padding: 1.75rem; } }
.card--sand { background: var(--sand); border-color: transparent; box-shadow: none; }

/* Whole-card click target without wrapping the card in <a>: the name link's
   ::after covers the card, and .card-cta lifts a second link above that layer. */
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-cta { position: relative; z-index: 1; }

/* ---------- chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-2);
  background: var(--sand);
  border: 1px solid transparent;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
a.chip:hover { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.chip--accent { color: var(--accent-hover); background: var(--accent-soft); }
.chip--success { color: var(--success); background: var(--success-soft); }
.chip--danger { color: var(--danger); background: var(--danger-soft); }
.chip--ink { color: #fff; background: var(--ink); }
.chip--outline { background: var(--surface); border-color: var(--line); }
.chip .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { transition: transform 0.15s ease; }
.btn:hover svg { transform: translateX(2px); }
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 6px 16px -8px rgba(217, 72, 15, 0.55);
}
.btn--primary:hover { background: var(--accent-hover); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--secondary:hover { border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--muted); }
.btn--ghost:hover { color: var(--ink); background: var(--sand); }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.86rem; }
.btn--lg { padding: 1rem 1.6rem; font-size: 1rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.95rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 999px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-link:hover { color: var(--ink); background: var(--sand); }
.nav-link--active { color: #fff; background: var(--ink); }
.nav-link--active:hover { color: #fff; background: var(--ink-2); }

.nav-menu {
  min-width: 300px;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.nav-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.nav-menu a:hover { background: var(--sand); color: var(--accent); }

.mobile-menu a, .mobile-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu .mobile-menu__sub { padding-left: 1rem; font-size: 0.93rem; color: var(--muted); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); }
.logo__mark { width: 38px; height: 38px; flex-shrink: 0; display: block; }
.logo__word {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variation-settings: "opsz" 48;
}
.logo__word i { font-style: italic; font-weight: 450; color: var(--accent); }
.logo__sub {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- hero backdrop ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 80% at 70% 0%, #000 0%, transparent 70%);
  opacity: 0.7;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 38rem;
  height: 38rem;
  right: -10rem;
  top: -16rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 140, 80, 0.22), transparent 65%);
}
.hero--sand { background: var(--sand); }
.hero--sand::before { opacity: 0.5; }

/* Hand-drawn underline under one word of a headline. */
.scribble {
  position: relative;
  white-space: nowrap;
}
.scribble svg {
  position: absolute;
  left: -2%;
  bottom: -0.12em;
  width: 104%;
  height: 0.32em;
  color: var(--gold);
  z-index: -1;
}

/* ---------- monogram (platform avatar) ---------- */
.monogram {
  --mono: var(--accent);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--mono) 14%, #fff);
  color: color-mix(in srgb, var(--mono) 62%, #121826);
  border: 1px solid color-mix(in srgb, var(--mono) 22%, #fff);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  overflow: hidden;
}
.monogram img { width: 100%; height: 100%; object-fit: cover; }
.monogram--sm { width: 2.5rem; height: 2.5rem; border-radius: 11px; font-size: 1.1rem; }
.monogram--lg { width: 4.5rem; height: 4.5rem; border-radius: 20px; font-size: 2.1rem; }

/* ---------- score ---------- */
.score { display: inline-flex; align-items: baseline; gap: 0.3rem; line-height: 1; }
.score__value {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}
.score__max { font-size: 1rem; font-weight: 600; color: var(--dim); }

/* Five-segment meter that fills to the rating. --v is the rating (0–5). */
.meter {
  --v: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  width: 100%;
  max-width: 120px;
  height: 6px;
}
.meter > i {
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
  position: relative;
}
.meter > i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(clamp(0, calc(var(--v) - var(--i)), 1));
}
.meter > i:nth-child(1) { --i: 0; }
.meter > i:nth-child(2) { --i: 1; }
.meter > i:nth-child(3) { --i: 2; }
.meter > i:nth-child(4) { --i: 3; }
.meter > i:nth-child(5) { --i: 4; }
.meter--lg { max-width: 200px; height: 8px; gap: 4px; }

/* Compact score badge used on cards and rows. */
.score-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.score-badge__num {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}
.score-badge__num small { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; color: var(--dim); letter-spacing: 0; }

/* Back-compat for templates still using the pill. */
.score-pill { display: inline-flex; align-items: baseline; gap: 0.15rem; padding: 0.3rem 0.65rem; border-radius: 8px; background: var(--gold-soft); }
.score-pill__value { font-family: var(--font-display); font-weight: 650; font-size: 1.05rem; color: var(--ink); }
.score-pill__max { font-size: 0.72rem; color: var(--muted); }

/* ---------- stars ---------- */
.stars { display: inline-flex; gap: 2px; line-height: 1; }
.stars .star { width: 14px; height: 14px; display: inline-block; }
.stars--lg .star { width: 18px; height: 18px; }
.stars .star--filled { fill: var(--gold); }
.stars .star--empty  { fill: var(--line-strong); }

/* ---------- home: top-3 board ---------- */
.board {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.board__head {
  padding: 1.25rem 1.4rem 1rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(18rem 8rem at 100% 0%, var(--accent-soft), transparent 70%),
    var(--surface);
}
.board__list { display: grid; }
.board__item {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.4rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.15s ease;
}
.board__item:hover { background: var(--bg); }
.board__item:hover .board__name { color: var(--accent); }
.board__rank {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--dim);
  width: 1.4rem;
  text-align: center;
}
.board__item--lead .board__rank { color: var(--accent); }
.board__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.board__meta { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 0.15rem; }
.board__score { text-align: right; }
.board__foot { padding: 0.9rem 1.4rem; background: var(--bg); }

/* ---------- category tiles ---------- */
.tile-grid { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.2s ease, color 0.15s ease;
}
.tile svg { color: var(--dim); flex-shrink: 0; transition: transform 0.15s ease, color 0.15s ease; }
.tile:hover { border-color: var(--accent-line); box-shadow: var(--shadow); color: var(--accent-hover); }
.tile:hover svg { color: var(--accent); transform: translateX(3px); }

/* ---------- trust row ---------- */
.trust-row { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .trust-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust-row__item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.92rem; font-weight: 500; color: var(--ink-2); }
.trust-row__icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- platform card (home) ---------- */
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.2s ease;
}
.pcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--line-strong); }
.pcard:hover .pcard__name { color: var(--accent); }
.pcard__rank {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--sand-deep);
  pointer-events: none;
}
.pcard__head { display: flex; align-items: center; gap: 0.85rem; min-width: 0; padding-right: 3rem; }
.pcard__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  transition: color 0.15s ease;
}
.pcard__sub { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; }
.pcard__tagline { font-size: 0.93rem; line-height: 1.55; color: var(--muted); }
.pcard__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.pcard__stats > div { padding: 0.65rem 0.75rem; min-width: 0; }
.pcard__stats > div + div { border-left: 1px solid var(--line); }
.pcard__stats dt { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__stats dd {
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.pcard__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ---------- ranking rows (platform list, tag pages, finder) ---------- */
.ranking { display: grid; gap: 0.6rem; }
.ranking__head {
  display: none;
  padding: 0 1.25rem 0.4rem;
}
@media (min-width: 900px) {
  .ranking__head {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) 7rem 7rem 8.5rem 1.5rem;
    gap: 1.25rem;
  }
}
.rank-row {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.rank-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.rank-row:hover .rank-row__name { color: var(--accent); }
.rank-row:hover .rank-row__go { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (min-width: 900px) {
  .rank-row {
    grid-template-columns: 3rem minmax(0, 1fr) 7rem 7rem 8.5rem 1.5rem;
    gap: 1.25rem;
    padding: 1.1rem 1.25rem;
  }
}
.rank-row__rank {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: var(--sand);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-2);
  font-variant-numeric: lining-nums tabular-nums;
}
@media (min-width: 900px) { .rank-row__rank { width: 2.6rem; height: 2.6rem; font-size: 1.05rem; } }
.rank-row--top .rank-row__rank { background: var(--ink); color: #fff; }
.rank-row__main { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.rank-row__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
  transition: color 0.15s ease;
}
.rank-row__meta { margin-top: 0.3rem; display: flex; flex-wrap: wrap; gap: 0.3rem 0.4rem; font-size: 0.8rem; color: var(--muted); }
.rank-row__meta .chip { font-size: 0.72rem; padding: 0.15rem 0.5rem; }
.rank-row__stat { display: none; }
.rank-row__stat dt { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--dim); }
.rank-row__stat dd {
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.rank-row__score { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; }
.rank-row__score .meter { width: 84px; }
.rank-row__go {
  display: none;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
@media (min-width: 900px) {
  .rank-row__stat { display: block; }
  .rank-row__score { align-items: flex-start; }
  .rank-row__go { display: grid; }
}
@media (max-width: 899px) {
  .rank-row__meta-extra { display: none; }
}

/* ---------- arrow cta ---------- */
.arrow-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.arrow-cta svg { transition: transform 0.15s ease; }
.arrow-cta:hover { color: var(--accent); }
.arrow-cta:hover svg { transform: translateX(3px); }

/* ---------- dividers ---------- */
.hr-soft { border: 0; border-top: 1px solid var(--line); }

/* ---------- section scaffolding ---------- */
.band { background: var(--sand); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }

/* Numbered list of methodology points on the home page. */
.pillars { display: grid; gap: 0; counter-reset: pillar; }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pillar {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-strong);
}
@media (min-width: 640px) {
  .pillar { padding: 1.75rem 1.75rem 1.75rem 0; }
  .pillar:nth-child(2n) { padding-left: 1.75rem; padding-right: 0; border-left: 1px solid var(--line-strong); }
}
.pillar__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
}

/* Numbered guide list. */
.guide-list { display: grid; gap: 0; }
@media (min-width: 768px) { .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; } }
.guide-list a {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.guide-list a:hover .guide-list__title { color: var(--accent); }
.guide-list a:hover svg { transform: translateX(3px); color: var(--accent); }
.guide-list svg { color: var(--dim); transition: transform 0.15s ease, color 0.15s ease; }
.guide-list__num { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--dim); }
.guide-list__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 550; line-height: 1.3; letter-spacing: -0.01em; transition: color 0.15s ease; }

/* ---------- article cards ---------- */
.acard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.2s ease;
  overflow: hidden;
}
.acard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--line-strong); }
.acard:hover .acard__title { color: var(--accent); }
.acard__cover {
  margin: -1.5rem -1.5rem 0.25rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sand);
}
.acard__cover img { width: 100%; height: 100%; object-fit: cover; }
.acard__meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--dim); }
.acard__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 0.15s ease;
}
.acard__excerpt { font-size: 0.93rem; line-height: 1.6; color: var(--muted); }
.acard--feature { background: var(--ink); border-color: var(--ink); color: #fff; }
.acard--feature .acard__title { color: #fff; font-size: 1.8rem; }
@media (min-width: 768px) { .acard--feature .acard__title { font-size: 2.2rem; } }
.acard--feature .acard__excerpt, .acard--feature .acard__meta { color: rgba(255, 255, 255, 0.7); }
.acard--feature .chip { background: rgba(255, 255, 255, 0.12); color: #fff; }
.acard--feature .arrow-cta { color: #fff; }
.acard--feature:hover .acard__title { color: #FFB089; }
.acard--feature::after {
  content: "";
  position: absolute;
  width: 22rem;
  height: 22rem;
  right: -8rem;
  bottom: -10rem;
  border-radius: 999px;
  border: 46px solid rgba(217, 72, 15, 0.55);
  pointer-events: none;
}

/* ---------- prose ---------- */
.prose-crypto {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.prose-crypto > :first-child { margin-top: 0; }
.prose-crypto h2 {
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
  font-variation-settings: "opsz" 96;
}
.prose-crypto h3 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.prose-crypto h4 { margin-top: 1.6rem; margin-bottom: 0.5rem; font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.prose-crypto p { margin-bottom: 1.15rem; }
.prose-crypto a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
.prose-crypto a:hover { text-decoration-color: var(--accent); }
.prose-crypto ul, .prose-crypto ol { margin: 0.5rem 0 1.25rem 1.3rem; padding-left: 0.4rem; }
.prose-crypto ul { list-style: disc; }
.prose-crypto ul ul { list-style: circle; }
.prose-crypto ol { list-style: decimal; }
.prose-crypto li { margin-bottom: 0.45rem; padding-left: 0.2rem; }
.prose-crypto li::marker { color: var(--accent); font-weight: 600; }
.prose-crypto li > p { margin-bottom: 0.4rem; }

.prose-crypto table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  font-size: 0.93rem;
  line-height: 1.5;
  -webkit-overflow-scrolling: touch;
}
.prose-crypto table thead { background: var(--sand); }
.prose-crypto table th,
.prose-crypto table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--ink-soft);
}
.prose-crypto table th {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.prose-crypto table tbody tr:last-child td { border-bottom: 0; }
.prose-crypto table tbody tr:nth-child(even) td { background: #FCFBF8; }

.prose-crypto img { display: block; max-width: 100%; height: auto; margin: 1.75rem auto; border-radius: 14px; }
.prose-crypto figure { margin: 1.75rem 0; }
.prose-crypto figure img { margin: 0 auto; }
.prose-crypto figcaption { margin-top: 0.6rem; text-align: center; font-size: 0.85rem; color: var(--muted); }
.prose-crypto hr { border: 0; height: 1px; background: var(--line-strong); margin: 2.5rem 0; }
.prose-crypto blockquote {
  margin: 1.75rem 0;
  padding: 1.1rem 1.4rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--accent-soft);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink);
}
.prose-crypto blockquote p:last-child { margin-bottom: 0; }
.prose-crypto code {
  background: var(--code-bg);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  color: var(--ink);
}
.prose-crypto strong { color: var(--ink); font-weight: 650; }

/* ---------- spec list ---------- */
.spec-list dt { color: var(--muted); font-size: 0.86rem; }
.spec-list dd { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }

.spec-grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 2.5rem; }
.spec-grid > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.8rem;
  border-top: 1px dashed var(--line-strong);
}
.spec-grid > div:first-child { border-top: 0; padding-top: 0; }
.spec-grid dd { text-align: right; }
@media (min-width: 640px) {
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-grid > div:nth-child(2) { border-top: 0; padding-top: 0; }
}

/* ---------- platform page ---------- */
.phero { position: relative; }
.phero__grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .phero__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 3rem; align-items: start; } }

.scorecard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.scorecard__top { padding: 1.5rem; }
.scorecard__row { padding: 1.1rem 1.5rem; border-top: 1px solid var(--line); }
.scorecard__cta { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--line); background: var(--bg); }

.fact-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 640px) { .fact-strip { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); } }
.fact-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 -1px -1px 0;
}
.fact-tile dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--dim); line-height: 1.35; }
.fact-tile dd {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}
.fact-tile:first-child dd { color: var(--accent); }
.fact-tile dd small,
.cta-final__stats dd small { font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }

/* Two-column page body: sticky contents rail + article column. */
.pbody { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .pbody { grid-template-columns: 230px minmax(0, 1fr); gap: 4rem; } }
.pbody__rail { display: none; }
@media (min-width: 1024px) { .pbody__rail { display: block; } }
.pbody__rail-inner { position: sticky; top: 100px; }

.toc { display: grid; gap: 0.1rem; border-left: 2px solid var(--line); }
.toc a {
  display: block;
  margin-left: -2px;
  padding: 0.4rem 0 0.4rem 1rem;
  border-left: 2px solid transparent;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.toc a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

.toc-strip {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.toc-strip::-webkit-scrollbar { display: none; }
.toc-strip a { flex-shrink: 0; }
@media (min-width: 1024px) { .toc-strip { display: none; } }

.dsec { scroll-margin-top: 96px; }
.dsec + .dsec { margin-top: 4rem; padding-top: 3.5rem; border-top: 1px solid var(--line); }
.cta-band + .dsec { margin-top: 4rem; }
.dsec__kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.dsec__kicker::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dsec__title {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--ink);
  font-variation-settings: "opsz" 120;
}
@media (min-width: 640px) { .dsec__title { font-size: 2.3rem; } }
.dsec__title em { font-style: italic; font-weight: 500; color: var(--accent); }

.proscons { display: grid; gap: 1rem; }
@media (min-width: 640px) { .proscons--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.proscons__col {
  padding: 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.proscons__col--pro { border-top: 4px solid var(--success); }
.proscons__col--con { border-top: 4px solid var(--danger); }
.proscons__list { display: grid; gap: 0.75rem; margin-top: 1rem; }
.proscons__list li { display: grid; grid-template-columns: 1.3rem minmax(0, 1fr); gap: 0.6rem; font-size: 0.95rem; line-height: 1.55; color: var(--ink-2); }
.proscons__icon { display: grid; place-items: center; width: 1.3rem; height: 1.3rem; margin-top: 0.12rem; border-radius: 999px; }
.proscons__col--pro .proscons__icon { background: var(--success-soft); color: var(--success); }
.proscons__col--con .proscons__icon { background: var(--danger-soft); color: var(--danger); }

.steps { display: grid; gap: 0.75rem; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}

.callout {
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--gold-soft);
  border: 1px solid #F3DC9B;
}
.callout--danger { background: var(--danger-soft); border-color: #F2C4C4; }

.faq { display: grid; gap: 0.6rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.15s ease, box-shadow 0.2s ease;
}
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary > :first-child { font: inherit; color: inherit; }
.faq__icon {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  transition: transform 0.2s ease, background-color 0.15s ease, color 0.15s ease;
}
.faq details[open] .faq__icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq__body { padding: 0 1.25rem 1.2rem; color: var(--muted); line-height: 1.7; }
.faq__body p + p { margin-top: 0.75rem; }

/* ---------- links to the official site ---------- */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.cta-band > .min-w-0 { flex: 1 1 18rem; }
.cta-final {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
  border: 0;
}
@media (min-width: 768px) { .cta-final { padding: 2.5rem; } }
.cta-final::after {
  content: "";
  position: absolute;
  width: 26rem;
  height: 26rem;
  right: -9rem;
  top: -13rem;
  border-radius: 999px;
  border: 56px solid rgba(217, 72, 15, 0.5);
  pointer-events: none;
}
.cta-final .headline { color: #fff; }
.cta-final .headline em { color: #FF9A66; }
.cta-final .eyebrow { color: #FF9A66; }
.cta-final p, .cta-final .spec-list dt { color: rgba(255, 255, 255, 0.68); }
.cta-final .spec-list dd { color: #fff; }
.cta-final dd small { color: rgba(255, 255, 255, 0.6) !important; }
.cta-final > * { position: relative; z-index: 1; }
@media (min-width: 1024px) {
  .cta-final__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4rem; align-items: end; }
  .cta-final__grid .cta-final__stats { margin-top: 0; }
}
.cta-final__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.cta-final__stats dd { margin-top: 0.35rem; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- Trustpilot badge ---------- */
/* Trustpilot's own badge, redrawn inline — see apps/exchanges/trustpilot_badge.py.
   The tile colours come from the markup (they are Trustpilot's, not ours). */
.tp-badge { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; }
.tp-badge__label { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.tp-badge__stars { display: block; width: 140px; height: 26.88px; }
.tp-badge__meta { font-size: 0.82rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.tp-badge__brand { display: inline-flex; align-items: center; gap: 0.3rem; }
.tp-badge__brand-star { width: 15px; height: 15px; display: block; }
.tp-badge__wordmark { font-weight: 700; font-size: 0.9rem; letter-spacing: -0.01em; color: var(--ink); }
a.tp-badge__wordmark:hover { color: #00B67A; }

/* ---------- review digest ---------- */
.sentiment-bar { height: 6px; border-radius: 999px; background: var(--sand-deep); overflow: hidden; }
.sentiment-bar__fill { display: block; height: 100%; border-radius: inherit; background: var(--success); }
.sentiment-bar--mixed .sentiment-bar__fill { background: var(--gold); }
.sentiment-bar--weak .sentiment-bar__fill { background: var(--danger); }

.insight-list { display: grid; gap: 0.55rem; }
.insight-list__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-2);
  padding-left: 1rem;
  position: relative;
}
.insight-list__item::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 2px; transform: rotate(45deg); }
.insight-list--pros .insight-list__item::before { background: var(--success); }
.insight-list--cons .insight-list__item::before { background: var(--danger); }
.insight-list__count {
  flex-shrink: 0;
  min-width: 1.6rem;
  padding: 0.05rem 0.4rem;
  border-radius: 6px;
  background: var(--sand);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- footer ---------- */
.site-footer { background: var(--sand); border-top: 1px solid var(--line); }
.site-footer h3 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); margin-bottom: 1rem; }
.site-footer ul a { color: var(--muted); font-size: 0.93rem; transition: color 0.15s ease; }
.site-footer ul a:hover { color: var(--accent); }

/* ---------- breadcrumbs ---------- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; color: var(--dim); }
.crumbs a { color: var(--muted); transition: color 0.15s ease; }
.crumbs a:hover { color: var(--accent); }
.crumbs__sep { color: var(--line-strong); }
.crumbs__here { color: var(--ink); font-weight: 500; }

/* ---------- segmented filter ---------- */
.segmented { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.segmented a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.15s ease;
}
.segmented a:hover { color: var(--ink); border-color: var(--line-strong); }
.segmented a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- stat row (list page hero) ---------- */
.stat-row { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; }
.stat-row dt { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.stat-row dd {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}

/* ---------- entrance animation ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.fade-in--1 { animation-delay: 0.04s; }
.fade-in--2 { animation-delay: 0.12s; }
.fade-in--3 { animation-delay: 0.2s; }
.fade-in--4 { animation-delay: 0.28s; }
.fade-in--5 { animation-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1; }
}

/* ---------- focus ring ---------- */
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- utility ---------- */
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- forms ---------- */
.card-pad input[type="text"],
.card-pad input[type="email"],
.card-pad input[type="password"],
.card-pad textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card-pad input:focus,
.card-pad textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.card-pad textarea { resize: vertical; min-height: 110px; }
.card-pad input::placeholder,
.card-pad textarea::placeholder { color: var(--dim); }

/* ---------- review rating stars (form) ---------- */
.review-rating { gap: 0.15rem; flex-direction: row-reverse; justify-content: flex-end; }
.review-rating__star { position: relative; cursor: pointer; color: var(--line-strong); transition: color 0.12s ease; padding: 2px; }
.review-rating__star input { position: absolute; opacity: 0; pointer-events: none; }
.review-rating__star:hover,
.review-rating__star:hover ~ .review-rating__star,
.review-rating__star:has(input:checked),
.review-rating__star:has(input:checked) ~ .review-rating__star { color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 640px) {
  .score__value { font-size: 2.8rem; }
}
