/* LED Mask Score — ranking homepage (hifi design handoff 2026-07).
 * Beat Player design system, therapy-violet accent. All accent tints derive from
 * --gs-accent via color-mix — never hardcode a tint (see the handoff README). */

:root {
  --gs-accent: #6d3bd1;
  --gray-100: #f7f7f7; --gray-200: #efefef; --gray-300: #e7e7e7; --gray-400: #dfdfdf;
  --gray-600: #acacac; --gray-700: #818181; --gray-800: #565656; --gray-900: #2b2b2b;
  --green-100: #e1f4f1; --green-700: #3e776f;
  --amber-100: #fff7d6; --amber-800: #665513;
  --red-100: #fcdbd7; --red-700: #902e21;
  --bg: #f9f7f4; --card: #ffffff;
  --text: #2b2b2b; --text-2: #818181; --text-3: #acacac;
  --accent-soft: color-mix(in srgb, var(--gs-accent) 12%, #fff);
  --accent-line: color-mix(in srgb, var(--gs-accent) 22%, #fff);
  --accent-ink: color-mix(in srgb, var(--gs-accent) 62%, #000);
  --halo-outer: color-mix(in srgb, var(--gs-accent) 16%, #fff);
  --halo-inner: color-mix(in srgb, var(--gs-accent) 34%, #fff);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Helvetica Neue", Arial, sans-serif;
  --rowpad: 15px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.5; letter-spacing: -0.2px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--gs-accent); text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
::selection { background: #e7e7e7; }
h1, h2 { font-family: var(--font-display); font-weight: 800; margin: 0; }
h2 { font-size: 26px; letter-spacing: -0.6px; margin-bottom: 6px; }
.gs-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.gs-intro { color: var(--text-2); font-size: 15px; margin: 0 0 20px; max-width: 72ch; }

/* ===== Irradiance-glow logo (accent dot inside two concentric halo rings) ===== */
.gs-glow {
  position: relative; width: 26px; height: 26px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.gs-glow .outer { position: absolute; inset: 0; border-radius: 50%; background: var(--halo-outer); }
.gs-glow .inner { position: absolute; inset: 5px; border-radius: 50%; background: var(--halo-inner); }
.gs-glow .core { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--gs-accent); }
.gs-glow.small { width: 24px; height: 24px; }
.gs-glow.small .core { width: 8px; height: 8px; }

/* ===== Header ===== */
.gs-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249, 247, 244, 0.82);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid var(--gray-300);
}
.gs-header .gs-wrap {
  padding: 12px 20px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.gs-logo { display: flex; align-items: center; gap: 10px; color: var(--text); }
.gs-logo:hover { text-decoration: none; color: var(--text); }
.gs-word { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -0.4px; }
.gs-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.gs-nav a { padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.gs-nav a:hover { color: var(--text); text-decoration: none; }
.gs-nav .gs-navpill { padding: 7px 14px; font-weight: 700; color: #fff; background: var(--gray-900); }
.gs-nav .gs-navpill:hover { color: #fff; }

/* ===== Hero ===== */
.gs-hero { padding: 64px 20px 40px; }
.gs-hero-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px; align-items: center;
}
.gs-trustpill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 13px;
  border-radius: 9999px; background: var(--card); border: 0.5px solid var(--gray-300);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); margin-bottom: 22px;
}
.gs-trustpill .dot { position: relative; width: 8px; height: 8px; }
.gs-trustpill .dot span {
  position: absolute; inset: 0; border-radius: 50%; background: var(--gs-accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.gs-trustpill .t { font-size: 13px; color: var(--text-2); }
.gs-trustpill .t strong { color: var(--text); }
.gs-trustpill .tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
  padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink);
}
.gs-hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.04; letter-spacing: -1.4px; margin: 0 0 18px; }
.gs-hero .sub { font-size: 18px; line-height: 1.55; color: var(--text-2); margin: 0 0 28px; max-width: 48ch; text-wrap: pretty; }
.gs-hero .sub strong { color: var(--text); }
.gs-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.gs-btn {
  padding: 12px 22px; border-radius: 10px; background: var(--card);
  border: 0.5px solid var(--gray-400); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  color: var(--text); font-size: 15px; font-weight: 600;
}
.gs-btn:hover { text-decoration: none; }
.gs-btn.primary { background: var(--gs-accent); border-color: var(--gs-accent); color: #fff; font-weight: 700; }
.gs-btn.primary:hover { color: #fff; filter: brightness(1.05); }

/* Proof card */
.gs-proof {
  background: var(--card); border-radius: 16px; border: 0.5px solid var(--gray-200);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); overflow: hidden;
}
.gs-proof .head {
  padding: 13px 18px; border-bottom: 0.5px solid var(--gray-200);
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-2);
}
.gs-proof .row { padding: 20px 18px; border-bottom: 0.5px solid var(--gray-200); display: flex; align-items: center; gap: 16px; }
.gs-proof .row.last { border-bottom: none; }
.gs-proof .main { flex: 1; }
.gs-proof .label { font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.gs-proof .value { font-size: 16px; font-weight: 600; line-height: 1.3; }
.gs-proof .pill {
  display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600;
  padding: 3px 9px; border-radius: 7px;
}
.gs-proof .pill.gray { background: var(--gray-100); color: var(--text-2); }
.gs-proof .pill.accent { background: var(--accent-soft); color: var(--accent-ink); }
.gs-proof .word { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.5px; }
.gs-proof .word.muted { color: var(--text-3); }
.gs-proof .word.accent { color: var(--gs-accent); }

/* ===== What we measure ===== */
.gs-learn { padding: 36px 0 8px; scroll-margin-top: 72px; }
.gs-learn .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.gs-learn .card {
  background: var(--card); border-radius: 14px; border: 0.5px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); padding: 18px;
}
.gs-learn .badge {
  display: inline-block; padding: 4px 10px; border-radius: 8px;
  background: var(--gray-100); color: var(--text); font-size: 14px; font-weight: 700; margin-bottom: 10px;
}
.gs-learn .badge.accent { background: var(--accent-soft); border: 0.5px solid var(--accent-line); color: var(--accent-ink); }
.gs-learn .card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }

/* ===== Ranking ===== */
.gs-ranking { padding: 40px 0 8px; scroll-margin-top: 72px; }
.gs-count { color: var(--text-2); font-size: 14px; margin: 0 0 18px; }
.gs-count strong { color: var(--text); }

.gs-controls {
  position: sticky; top: 63px; z-index: 20;
  background: rgba(249, 247, 244, 0.82);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid var(--gray-300);
  padding: 10px 0; margin-bottom: 6px;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.gs-controls .lbl { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-2); }
.gs-chip {
  padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; white-space: nowrap;
  border: 0.5px solid var(--gray-400); background: var(--card); color: var(--text);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.gs-chip[aria-pressed="true"] { border-color: var(--gray-900); background: var(--gray-900); color: #fff; }

.gs-tablecard {
  background: var(--card); border-radius: 16px; border: 0.5px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); overflow: hidden;
}
.gs-tablecard table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.gs-tablecard thead tr { background: var(--gray-100); border-bottom: 0.5px solid var(--gray-300); }
.gs-tablecard th {
  text-align: left; padding: 13px 16px; font-size: 12px; font-weight: 600; color: var(--text-2);
  white-space: nowrap;
}
.gs-tablecard th.rankcol { width: 34px; }
.gs-tablecard th.right { text-align: right; }
.gs-tablecard th.center { text-align: center; }
.gs-tablecard th.sortable { cursor: pointer; }
.gs-tablecard th.sortable:hover { color: var(--text); }
.gs-tablecard th#s-irr { color: var(--text); }
.gs-tablecard td { padding: var(--rowpad) 16px; border-bottom: 0.5px solid var(--gray-200); font-size: 14px; }
.gs-tablecard tr:last-child td { border-bottom: none; }
td.rank { color: var(--text-3); }
td.right { text-align: right; }
td.center { text-align: center; }
td.ledcell { text-align: right; color: var(--text-3); font-size: 14px; }
.g-name { font-weight: 600; font-size: 15px; }
.g-sub { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.g-co { font-size: 12px; margin-top: 3px; }
.g-co a { color: var(--text-3); }
.g-co a:hover { color: var(--accent-ink); }
.cpw { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.4px; }
.cpwsub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.cpwbar { height: 5px; border-radius: 3px; background: var(--gray-200); margin-top: 6px; max-width: 130px; overflow: hidden; }
.cpwbar i { display: block; height: 100%; border-radius: 3px; background: var(--gs-accent); }
.pillbadge {
  display: inline-block; padding: 3px 10px; border-radius: 7px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.noise-green { background: var(--green-100); color: var(--green-700); }
.noise-amber { background: var(--amber-100); color: var(--amber-800); }
.noise-red { background: var(--red-100); color: var(--red-700); }
.pillbadge.neutral { background: var(--gray-100); color: var(--text-3); }
a.pill-link:hover { text-decoration: none; filter: brightness(0.97); }
.shoplink { font-size: 13px; font-weight: 600; white-space: nowrap; }

.gs-footnote { font-size: 13px; color: var(--text-2); margin: 16px 0 0; max-width: 82ch; line-height: 1.55; }

/* Mobile cards (<900px) */
.gs-cardlist { display: none; flex-direction: column; gap: 10px; }
.gs-card {
  background: var(--card); border-radius: 14px; border: 0.5px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); padding: 15px;
}
.gs-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.gs-card .rank { font-size: 12px; color: var(--text-3); }
.gs-card .cpw { font-size: 20px; font-weight: 800; }
.gs-card .cpwcap { font-size: 11px; color: var(--text-2); text-align: right; }
.gs-card .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.gs-card .chips .pillbadge.gray { background: var(--gray-100); color: var(--text-2); }
.gs-card .chips .runtime { margin-left: auto; font-size: 12.5px; color: var(--text-2); }
@media (max-width: 899px) {
  .gs-tablecard { display: none; }
  .gs-cardlist { display: flex; }
}

/* ===== Awaiting a cited measurement ===== */
.gs-excluded { padding: 40px 0 8px; }
.gs-excluded h2 { font-size: 22px; letter-spacing: -0.5px; }
.gs-excluded .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.gs-excluded .ex {
  background: var(--card); border-radius: 14px; border: 0.5px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); padding: 15px;
}
.gs-excluded .exhead { display: flex; align-items: flex-start; gap: 10px; }
.gs-excluded .sq { width: 12px; height: 12px; border-radius: 3px; background: var(--gray-200); border: 0.5px solid var(--gray-400); flex: none; margin-top: 4px; }
.gs-excluded .exname { font-weight: 600; font-size: 15px; flex: 1; }
.gs-excluded .exsub { font-size: 12.5px; color: var(--text-2); margin-top: 8px; line-height: 1.5; }
.gs-excluded .pillbadge { background: var(--gray-100); color: var(--text-2); flex: none; margin-top: 1px; }

/* ===== Guides ===== */
.gs-guides { padding: 40px 0 8px; scroll-margin-top: 72px; }
.gs-guides .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.gs-guides .tile {
  background: var(--card); border-radius: 12px; border: 0.5px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); padding: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--text);
}
.gs-guides .tile:hover { text-decoration: none; border-color: var(--gray-400); }
.gs-guides .tile span:first-child { font-weight: 600; font-size: 15px; }
.gs-guides .tile .arr { color: var(--gs-accent); font-weight: 700; }

/* ===== Footer ===== */
.gs-footer { border-top: 0.5px solid var(--gray-300); background: var(--gray-100); margin-top: 44px; scroll-margin-top: 72px; }
.gs-footer .gs-wrap { padding: 40px 20px; }
.gs-footer .lockup { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.gs-footer .gs-word { font-size: 16px; }
.gs-footer p { font-size: 13px; line-height: 1.65; color: var(--text-2); max-width: 82ch; margin: 0 0 10px; }
.gs-footer .fine { font-size: 12px; color: var(--text-3); margin: 0; }

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

/* item titles double as shop links */
.g-name a.g-titlelink{color:inherit;text-decoration:none}
.g-name a.g-titlelink:hover{text-decoration:underline}
