/* ==========================================================================
   COMPONENTS
   Reusable pieces: header, buttons, cards, devices, dashboards, tables.
   Section-specific composition lives in sections.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Icons
   All icons come from the local sprite at assets/icons/icons.svg.
   -------------------------------------------------------------------------- */

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 1.75em; height: 1.75em; }

/* Neon square icon chip used on feature and problem cards */
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background: var(--color-accent-faint);
  color: var(--color-accent);
}

.icon-chip .icon {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: var(--tap-target);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color var(--transition-fast),
    border-color var(--transition-fast), color var(--transition-fast),
    box-shadow var(--transition-fast), transform var(--transition-fast);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Neon fill — the single strongest call to action on a screen */
.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-text-on-accent);
}

.btn--primary:hover {
  background-color: var(--color-accent-bright);
  box-shadow: var(--shadow-glow-strong);
}

/* Transparent with a thin light border */
.btn--secondary {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--secondary:hover {
  border-color: var(--color-accent-border);
  background-color: var(--color-accent-faint);
}

/* Text-only action with a trailing arrow */
.btn--ghost {
  padding-inline: 0.25rem;
  color: var(--color-text-muted);
}

.btn--ghost:hover {
  color: var(--color-accent);
}

.btn--sm {
  min-height: 36px;
  padding: 0.4rem 1rem;
  font-size: var(--text-xs);
}

.btn--block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Site header
   Floating translucent pill anchored over the hero.
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding-top: var(--header-inset);
  padding-inline: var(--gutter);
  pointer-events: none;
}

.site-header__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  min-height: var(--header-height);
  padding: 0.5rem 0.5rem 0.5rem 1.15rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: rgba(6, 16, 7, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background-color var(--transition-fast),
    border-color var(--transition-fast);
}

/* Applied by navigation.js once the page scrolls away from the hero */
.site-header.is-stuck .site-header__inner {
  background: rgba(3, 10, 5, 0.92);
  border-color: var(--color-border-strong);
}

/* Logo -------------------------------------------------------------------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.logo__mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.logo__word {
  color: var(--color-text);
}

/* Section drawer toggle — the header's only navigation control ------------ */

.deck-toggle {
  display: grid;
  place-items: center;
  width: var(--tap-target);
  height: var(--tap-target);
  flex: none;
  border: 1px solid var(--color-accent-border);
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.deck-toggle:hover {
  background: var(--color-accent);
  color: var(--color-text-on-accent);
}

.deck-toggle .icon {
  width: 18px;
  height: 18px;
}

/* Icon swaps on the button's own state, so it works wherever it is placed */
.deck-toggle__icon--close {
  display: none;
}

.deck-toggle[aria-expanded="true"] .deck-toggle__icon--open {
  display: none;
}

.deck-toggle[aria-expanded="true"] .deck-toggle__icon--close {
  display: block;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  transition: transform var(--transition-fast),
    border-color var(--transition-fast), background-color var(--transition-fast);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-strong);
  background-color: var(--color-surface-raised);
}

.card__label {
  font-size: var(--text-meta);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-accent);
}

.card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card__text {
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

/* Numbered variant: large translucent step number in the corner */
.card--numbered {
  padding-top: var(--space-lg);
  gap: var(--space-2xs);
}

.card__number {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(244, 247, 242, 0.09);
  font-variant-numeric: tabular-nums;
  transition: color var(--transition-fast);
}

.card--numbered:hover .card__number {
  color: var(--color-accent-soft);
}

/* Card header row that pairs a number with a badge */
.card__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Badges, chips and pills
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface-inset);
  font-size: var(--text-meta);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.badge--accent {
  border-color: var(--color-accent-border);
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

/* Live status chip with a pulsing dot */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: var(--color-accent-soft);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent);
}

.status-chip--muted {
  border-color: var(--color-border);
  background: var(--color-surface-inset);
  color: var(--color-text-subtle);
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* Selectable audience pill row (tab list) */
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tab {
  min-height: 38px;
  padding: 0.45rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.tab:hover {
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.tab[aria-selected="true"] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-on-accent);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.stat__value {
  display: block;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--text-meta);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

/* --------------------------------------------------------------------------
   Phone device mockup
   Built from real markup so the "screens" stay editable and accessible.
   -------------------------------------------------------------------------- */

.device-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  /* Definite width so percentage-sized device artwork has something to
     resolve against instead of shrink-to-fit */
  width: 100%;
  isolation: isolate;
}

/* Soft neon bloom behind the handset */
.device-glow {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(560px, 130%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(223, 255, 0, 0.16) 0%,
    rgba(223, 255, 0, 0.05) 38%,
    transparent 68%
  );
  pointer-events: none;
}

/* Supplied device artwork, used in place of a markup-built handset.
   Scales with its column and never exceeds the available height. */
/* width/height auto with both caps lets the browser fit the artwork inside
   the box while preserving its aspect ratio */
.device-art {
  width: auto;
  height: auto;
  max-width: min(100%, var(--device-art-width, 340px));
  max-height: var(--device-art-max-height, none);
}

.device-phone {
  position: relative;
  width: var(--phone-width);
  max-width: 100%;
  padding: 9px;
  border-radius: 42px;
  border: 1px solid rgba(223, 255, 0, 0.18);
  background: linear-gradient(165deg, #16211a 0%, #070d08 55%, #0b120c 100%);
  box-shadow: var(--shadow-panel), 0 0 60px rgba(223, 255, 0, 0.1);
}

.device-phone__screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 10px;
  border-radius: 34px;
  background: linear-gradient(180deg, #04120a 0%, #020a05 100%);
  overflow: hidden;
}

/* Status bar */
.device-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.5625rem;
  letter-spacing: 0.06em;
  color: var(--color-text-subtle);
}

.device-status__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.device-status__bars i {
  display: block;
  width: 2px;
  background: var(--color-text-subtle);
  border-radius: 1px;
}

.device-status__bars i:nth-child(1) { height: 4px; }
.device-status__bars i:nth-child(2) { height: 6px; }
.device-status__bars i:nth-child(3) { height: 8px; }
.device-status__bars i:nth-child(4) { height: 10px; background: var(--color-accent); }

/* In-app header */
.device-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-soft);
}

.device-header__title {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Score block ------------------------------------------------------------- */

.match-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.5625rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.score-display {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.02);
}

.score-display__side {
  text-align: center;
}

.score-display__points {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.score-display__side--serving .score-display__points {
  color: var(--color-accent);
}

.score-display__team {
  display: block;
  margin-top: 4px;
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.score-display__divider {
  width: 1px;
  height: 34px;
  background: var(--color-border);
}

/* Set-by-set strip */
.set-strip {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.set-strip__cell {
  min-width: 26px;
  padding: 3px 0;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  font-size: 0.5625rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
}

.set-strip__cell--won {
  border-color: var(--color-accent-border);
  color: var(--color-accent);
}

/* Player rows */
.player-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-soft);
  background: rgba(255, 255, 255, 0.015);
}

.player-row__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: none;
}

.player-row__name {
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.2;
}

.player-row__meta {
  font-size: 0.5625rem;
  color: var(--color-text-subtle);
}

.player-row__spacer {
  margin-left: auto;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: var(--color-accent-soft);
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

/* Compact in-app stat readout */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.stat-tile {
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-soft);
  background: rgba(255, 255, 255, 0.015);
}

.stat-tile__value {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat-tile__label {
  display: block;
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

/* Thin labelled progress meter */
.progress-bar {
  display: block;
}

.progress-bar__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.5625rem;
  color: var(--color-text-subtle);
  margin-bottom: 4px;
}

.progress-bar__track {
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: var(--color-accent);
  width: var(--meter, 0%);
}

/* --------------------------------------------------------------------------
   Meter scale
   Data-driven widths for .progress-bar__fill and .dial without inline CSS.
   Add a step here if you need a value between the 5% increments below.
   -------------------------------------------------------------------------- */

.meter-0   { --meter: 0%; }
.meter-5   { --meter: 5%; }
.meter-10  { --meter: 10%; }
.meter-15  { --meter: 15%; }
.meter-20  { --meter: 20%; }
.meter-25  { --meter: 25%; }
.meter-30  { --meter: 30%; }
.meter-35  { --meter: 35%; }
.meter-40  { --meter: 40%; }
.meter-45  { --meter: 45%; }
.meter-50  { --meter: 50%; }
.meter-55  { --meter: 55%; }
.meter-60  { --meter: 60%; }
.meter-61  { --meter: 61%; }
.meter-65  { --meter: 65%; }
.meter-68  { --meter: 68%; }
.meter-70  { --meter: 70%; }
.meter-72  { --meter: 72%; }
.meter-75  { --meter: 75%; }
.meter-80  { --meter: 80%; }
.meter-85  { --meter: 85%; }
.meter-90  { --meter: 90%; }
.meter-92  { --meter: 92%; }
.meter-95  { --meter: 95%; }
.meter-100 { --meter: 100%; }

/* --------------------------------------------------------------------------
   Small spacing utilities
   Used where a component needs one-off separation inside a mockup.
   -------------------------------------------------------------------------- */

.mb-sm { margin-bottom: var(--space-xs); }
.mb-md { margin-bottom: var(--space-sm); }

/* Bottom app navigation + floating action button */
.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--color-border-soft);
  color: var(--color-text-subtle);
}

.app-nav__item {
  display: flex;
  padding: 4px;
}

.app-nav__item .icon {
  width: 15px;
  height: 15px;
}

.app-nav__item--active {
  color: var(--color-accent);
}

.app-nav__fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  box-shadow: 0 0 18px rgba(223, 255, 0, 0.45);
}

.app-nav__fab .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

/* --------------------------------------------------------------------------
   Dashboard mockups
   -------------------------------------------------------------------------- */

.dashboard-frame {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    180deg,
    var(--color-surface-raised) 0%,
    var(--color-surface) 100%
  );
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--color-border-soft);
  background: rgba(255, 255, 255, 0.015);
}

.dashboard-header__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dashboard-header__title .icon {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
}

.dashboard-toolbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.dashboard-toolbar__item {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-border);
  font-size: 0.625rem;
  color: var(--color-text-subtle);
  white-space: nowrap;
}

/* --active is for static decoration; [aria-selected] drives real tab lists */
.dashboard-toolbar__item--active,
.dashboard-toolbar__item[aria-selected="true"] {
  border-color: var(--color-accent-border);
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

/* Window dots, purely decorative */
.dashboard-dots {
  display: flex;
  gap: 5px;
}

.dashboard-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-border);
}

.dashboard-dots i:first-child {
  background: var(--color-accent-border);
}

.dashboard-body {
  padding: 1.1rem;
}

.dashboard-grid {
  display: grid;
  gap: 0.85rem;
}

.dashboard-panel {
  padding: 0.9rem;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.015);
}

.dashboard-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.dashboard-panel__title {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

/* Metric readout */
.metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric__value {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.metric__label {
  font-size: 0.625rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.metric__delta {
  font-size: 0.625rem;
  color: var(--color-accent);
}

/* Dense data list inside a panel */
.data-list {
  display: flex;
  flex-direction: column;
}

.data-list__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--color-border-soft);
  font-size: 0.6875rem;
}

.data-list__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.data-list__label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-text-muted);
  min-width: 0;
}

.data-list__label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-list__value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

/* Rank index bubble */
.rank-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--color-text-subtle);
  font-variant-numeric: tabular-nums;
}

.data-list__row:first-child .rank-index {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

/* Bracket / draw visual */
.bracket {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.bracket__round {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.bracket__match {
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.5625rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.bracket__match--live {
  border-color: var(--color-accent-border);
  background: var(--color-accent-faint);
  color: var(--color-text);
}

.bracket__seed {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
}

.bracket__seed--winner {
  color: var(--color-accent);
  font-weight: 600;
}

/* Horizontally scrollable wrapper for dense mockups on small screens */
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-strong) transparent;
}

.scroll-x::-webkit-scrollbar {
  height: 6px;
}

.scroll-x::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   Comparison table
   -------------------------------------------------------------------------- */

.table-wrap {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-inset);
}

.table {
  width: 100%;
  min-width: 560px;
  font-size: var(--text-sm);
}

.table caption {
  padding: 0.9rem 1.25rem;
  text-align: left;
  font-size: var(--text-meta);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-subtle);
  border-bottom: 1px solid var(--color-border-soft);
}

.table th,
.table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border-soft);
  vertical-align: middle;
}

.table thead th {
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.table thead th:last-child {
  color: var(--color-accent);
}

.table tbody tr:last-child th,
.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody th {
  font-weight: 500;
  color: var(--color-text);
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

/* Cell state: text label plus icon so meaning never relies on colour alone */
.cell-state {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--text-xs);
}

.cell-state--yes {
  color: var(--color-accent);
  font-weight: 600;
}

.cell-state--no {
  color: var(--color-text-subtle);
}

.cell-state .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll
   JS adds .is-visible. Without JS the .reveal class is never applied, so
   content is always visible (see main.js).
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
