/* Palette lifted from the rentamac.io marketing components (Misc/html/rentamac-pricing.html). */
:root {
  --bg: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-hover: rgba(255, 255, 255, 0.15);
  --text: #f0f2f5;
  --text-secondary: #8b919e;
  --text-muted: #5c6370;
  --accent-blue: #3b82f6;
  --accent-green: #22c55e;
  --gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 14px;
  --wrap: 1140px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

a { color: var(--accent-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); letter-spacing: -0.01em; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--accent-blue);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; }

/* ---------- chrome ---------- */

.disclosure-bar {
  background: rgba(59, 130, 246, 0.09);
  border-bottom: 1px solid var(--stroke);
  color: var(--text-secondary);
  font-size: 0.82rem;
  padding: 0.55rem 1.25rem;
  text-align: center;
}
.disclosure-bar a { margin-left: 0.35rem; white-space: nowrap; }

.site-header { border-bottom: 1px solid var(--stroke); position: sticky; top: 0; z-index: 5; background: rgba(10, 10, 15, 0.9); backdrop-filter: blur(12px); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; padding: 0.9rem 0; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand img { display: block; height: 26px; width: auto; filter: invert(1) brightness(2.4); }
.brand span { color: var(--text-secondary); font-weight: 500; }

.site-header nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem; margin-left: auto; font-size: 0.92rem; }
.site-header nav a { color: var(--text-secondary); }
.site-header nav a:hover { color: var(--text); text-decoration: none; }
.site-header nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

main { padding: 3rem 0 4.5rem; }

.site-footer {
  border-top: 1px solid var(--stroke);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 2.5rem 0 3.5rem;
}
.site-footer p { margin: 0 0 0.9rem; max-width: 72ch; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 1.4rem; }

/* ---------- hero ---------- */

.hero, .page-head { text-align: center; margin-bottom: 3rem; }
.page-head { max-width: 68ch; margin-inline: auto; }
.page-head p { color: var(--text-secondary); text-align: left; }

.eyebrow { color: var(--accent-blue); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.6rem; }

.hero-score { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin: 0.5rem 0 0.75rem; }
.hero-rating { font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--text-secondary); margin: 0 auto; max-width: 58ch; }

.stars { display: inline-flex; gap: 2px; vertical-align: middle; }

.source-mark { width: 32px; height: 32px; flex-shrink: 0; }

/* ---------- source cards ---------- */

.source-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; margin-bottom: 3.5rem; }

.source-card {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  text-align: center;
}
.source-card h2 { font-size: 1rem; color: var(--text-secondary); font-weight: 500; margin: 0.7rem 0 0.2rem; }
.source-score { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.02em; }
.source-count { color: var(--text-muted); font-size: 0.85rem; margin: 0.5rem 0 0.9rem; }
.source-card a { font-size: 0.88rem; }

/* ---------- distribution ---------- */

.distribution { margin-bottom: 3.5rem; max-width: 560px; }
.section-note { color: var(--text-muted); font-size: 0.87rem; margin: -0.2em 0 1.4rem; }

.dist-row { display: grid; grid-template-columns: 4.5rem 1fr 2rem; align-items: center; gap: 0.85rem; margin-bottom: 0.55rem; }
.dist-label { color: var(--text-secondary); font-size: 0.85rem; }
.dist-track { background: rgba(255, 255, 255, 0.06); border-radius: 999px; height: 8px; overflow: hidden; }
.dist-fill { display: block; height: 100%; background: #FBBC04; border-radius: 999px; }
.dist-count { color: var(--text-muted); font-size: 0.85rem; text-align: right; }

/* ---------- filters ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.75rem; }

.chip {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  padding: 0.45rem 1rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.chip:hover { background: var(--bg-card-hover); border-color: var(--stroke-hover); color: var(--text); }
.chip.is-active { background: rgba(59, 130, 246, 0.16); border-color: var(--accent-blue); color: var(--text); }
.chip-count { color: var(--text-muted); font-size: 0.8rem; margin-left: 0.15rem; }

/* ---------- review cards ---------- */

.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; align-items: start; }

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.review-card:hover { background: var(--bg-card-hover); border-color: var(--stroke-hover); transform: translateY(-2px); }
.review-card[hidden] { display: none; }

.review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.7rem; }
.review-head .source-mark { width: 20px; height: 20px; }
.review-author { display: block; font-weight: 600; font-size: 0.95rem; }
.review-meta { display: block; color: var(--text-muted); font-size: 0.8rem; }

.review-title { font-size: 1rem; margin: 0.7rem 0 0.35rem; }
.review-body { color: var(--text-secondary); font-size: 0.93rem; margin: 0.5rem 0 0; }
.review-source-link { display: inline-block; font-size: 0.82rem; margin-top: 0.9rem; }

.empty-state { color: var(--text-muted); background: var(--bg-card); border: 1px dashed var(--stroke); border-radius: var(--radius); padding: 1.75rem; max-width: 70ch; }

/* ---------- prose + buttons ---------- */

.prose { max-width: 70ch; margin-inline: auto; }
.prose h2 { margin-top: 2.4rem; }
.prose p, .prose li { color: var(--text-secondary); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }

.button {
  background: var(--gradient-primary);
  border: 1px solid transparent;
  border-radius: 10px;
  color: #fff;
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
}
.button:hover { text-decoration: none; opacity: 0.92; }
.button-ghost { background: transparent; border-color: var(--stroke-hover); color: var(--text); }

@media (max-width: 620px) {
  .header-inner { justify-content: center; }
  .site-header nav { margin-left: 0; justify-content: center; }
  .review-grid, .source-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- review id, preview only ---------- */

.head-right { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.copy-id { display: none; }

.is-preview .copy-id {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  gap: 0.3rem;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.is-preview .copy-id:hover { background: var(--bg-card-hover); border-color: var(--stroke-hover); color: var(--text); }
.is-preview .copy-id svg { width: 12px; height: 12px; flex-shrink: 0; }
.is-preview .copy-id code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; letter-spacing: 0.02em; }

.is-preview .copy-id.is-copied { background: rgba(34, 197, 94, 0.18); border-color: var(--accent-green); color: var(--accent-green); }
.is-preview .copy-id.is-failed { background: rgba(249, 115, 22, 0.18); border-color: var(--accent-orange); color: var(--accent-orange); }
