/* ============================================
   Feature comparisons — index + detail pages
   Dark Oriloq theme, scannable editorial layout.
   Prefix: fc-
   ============================================ */

/* ---------- Page scaffolding ---------- */

.fc-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

.fc-main {
  width: 100%;
  padding: var(--space-10) 0 var(--space-16);
}

.fc-section {
  width: 100%;
  padding: 0 var(--space-6);
  margin-top: var(--space-12);
}

.fc-shell {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.fc-hero {
  padding: var(--space-10) var(--space-6) 0;
}

.fc-section.fc-hero,
.fc-section.fc-index-hero {
  margin-top: 0;
}

.fc-index-hero {
  position: relative;
  padding: var(--space-12) var(--space-6) var(--space-8);
  text-align: center;
}

.fc-index-hero::before,
.fc-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -120px;
  left: 50%;
  width: min(900px, 100%);
  height: 520px;
  transform: translateX(-50%);
  background: var(--gradient-glow);
  opacity: 0.55;
  pointer-events: none;
}

.fc-hero {
  position: relative;
}

.fc-hero > *,
.fc-index-hero > * {
  position: relative;
  z-index: 1;
}

.fc-eyebrow {
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-accent);
}

.fc-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  text-wrap: balance;
}

.fc-hero .fc-title,
.fc-index-hero .fc-title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.08;
}

.fc-title > span {
  display: block;
}

.fc-index-hero .fc-title {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.fc-title .text-gradient {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fc-subtitle {
  max-width: 46rem;
  margin: var(--space-5) 0 0;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
}

.fc-index-hero .fc-subtitle,
.fc-index-hero .fc-prose {
  margin-left: auto;
  margin-right: auto;
}

.fc-index-hero .fc-meta {
  justify-content: center;
}

.fc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: var(--space-5) 0 0;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-subtle);
}

.fc-meta a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fc-meta a:hover {
  color: var(--color-text);
}

.fc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.fc-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.fc-download .icon-apple {
  width: 16px;
  height: 16px;
}

/* ---------- Anchor navigation ---------- */

.fc-anchor-nav {
  position: -webkit-sticky;
  position: sticky;
  top: var(--header-height);
  z-index: var(--z-sticky);
  width: 100%;
  margin-top: var(--space-8);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  background: var(--color-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* The detail hero reuses fc-anchor-nav on its action row. It is not a
   navigation bar there: keep it in flow and transparent. */
.fc-actions.fc-anchor-nav {
  position: static;
  display: flex;
  width: auto;
  margin-top: var(--space-6);
  border: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.fc-anchor-nav > ul,
.fc-anchor-nav > div {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  scrollbar-width: none;
}

.fc-anchor-nav > div > ul {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.fc-anchor-nav > ul::-webkit-scrollbar,
.fc-anchor-nav > div::-webkit-scrollbar,
.fc-anchor-nav > div > ul::-webkit-scrollbar {
  display: none;
}

.fc-anchor-nav li {
  flex: 0 0 auto;
}

.fc-page [id] {
  scroll-margin-top: calc(var(--header-height) + var(--space-14));
}

.fc-anchor-nav a:not(.btn-mac) {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.fc-anchor-nav a:not(.btn-mac):hover {
  color: var(--color-text);
  background: var(--color-surface-hover);
  border-color: var(--color-border-light);
}

.fc-anchor-nav a:not(.btn-mac):focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Section headings (index + detail) ---------- */

.fc-section > .fc-shell > h2,
.fc-section > h2,
.fc-category > h2,
.fc-category > h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

.fc-category > h2,
.fc-category > h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
}

.fc-section > .fc-shell > p,
.fc-category > p {
  max-width: 46rem;
  margin: var(--space-3) 0 0;
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ---------- Index: filters ---------- */

.fc-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  max-width: var(--container-max);
  margin: var(--space-8) auto 0;
  padding: 0 var(--space-6);
}

/* The class is also used on the outer <section>. */
.fc-section.fc-filters {
  display: block;
  max-width: none;
  margin-top: var(--space-8);
  padding: 0 var(--space-6);
}

.fc-filters > .fc-shell,
.fc-filters > ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.fc-filter-label {
  margin-right: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text-subtle);
}

.fc-filter {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.fc-filter:hover {
  color: var(--color-text);
  background: var(--color-surface-hover);
  border-color: var(--color-border-light);
}

.fc-filter:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.fc-filter[aria-pressed="true"],
.fc-filter.is-active {
  color: var(--color-bg-deep);
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.fc-filter[aria-pressed="true"]:hover,
.fc-filter.is-active:hover {
  color: var(--color-bg-deep);
  background: var(--color-text);
  border-color: var(--color-text);
}

/* ---------- Index: categories and cards ---------- */

.fc-category {
  margin-top: var(--space-12);
}

.fc-category:first-of-type {
  margin-top: var(--space-10);
}

.fc-category[hidden] {
  display: none;
}

.fc-category > h2,
.fc-category > h3 {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.fc-category > h2 svg,
.fc-category > h3 svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--color-accent);
}

.fc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--space-5);
  margin-top: var(--space-5);
  padding: 0;
  list-style: none;
}

.fc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  background: var(--color-bg-elevated);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-normal), background var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.fc-card[hidden] {
  display: none;
}

.fc-card:hover {
  border-color: var(--color-border-glow);
  background: var(--color-bg-light);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.fc-card:focus-within {
  border-color: var(--color-accent);
}

.fc-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.fc-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xl);
  background: var(--color-surface-glow);
  border: 1px solid var(--color-border-glow);
  color: var(--color-accent);
}

.fc-card__icon svg {
  width: 22px;
  height: 22px;
}

.fc-card__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Empty icon hook: show a subtle brand mark until an icon is injected. */
.fc-card__icon:empty::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
}

.fc-card h2,
.fc-card h3,
.fc-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--color-text);
}

.fc-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.fc-card__count {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.fc-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-accent);
}

.fc-card__cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.fc-card:hover .fc-card__cta svg,
.fc-card:focus-within .fc-card__cta svg {
  transform: translateX(3px);
}

/* Whole-card link without leaking underline */
a.fc-card {
  text-decoration: none;
}

a.fc-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ---------- Quick picks ---------- */

.fc-picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-5);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: fc-pick;
}

.fc-section.fc-picks {
  display: block;
  margin-top: var(--space-12);
  padding: 0 var(--space-6);
  counter-reset: none;
}

.fc-pick {
  position: relative;
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
}

.fc-pick::before {
  counter-increment: fc-pick;
  content: counter(fc-pick);
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-light);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: var(--color-text-subtle);
}

.fc-pick__label {
  display: block;
  margin: 0 0 var(--space-2);
  padding-right: var(--space-8);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-accent);
}

.fc-pick__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-text);
}

.fc-pick__reason {
  margin: var(--space-3) 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

a.fc-pick {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

a.fc-pick:hover {
  border-color: var(--color-border-glow);
  background: var(--color-surface-hover);
}

a.fc-pick:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ---------- Prose ---------- */

.fc-prose {
  max-width: 48rem;
  margin-top: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.fc-prose > :first-child {
  margin-top: 0;
}

.fc-prose p {
  margin: var(--space-4) 0 0;
}

.fc-prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fc-prose a:hover {
  color: var(--color-text);
}

.fc-prose strong {
  color: var(--color-text);
  font-weight: var(--font-semibold);
}

/* ---------- Matrix ---------- */

.fc-matrix-wrap {
  width: 100%;
  margin-top: var(--space-6);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-bg-elevated);
  scrollbar-color: var(--color-border-light) transparent;
}

.fc-matrix-wrap:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.fc-matrix {
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.fc-matrix caption {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border-subtle);
  background: var(--color-bg-light);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-align: left;
  color: var(--color-text);
}

.fc-matrix th,
.fc-matrix td {
  padding: var(--space-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border-subtle);
}

.fc-matrix tbody tr:last-child th,
.fc-matrix tbody tr:last-child td {
  border-bottom: none;
}

.fc-matrix thead th {
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-subtle);
  vertical-align: bottom;
}

/* Sticky first column — opaque, Safari-first */
.fc-matrix tr > :first-child {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--color-bg-elevated);
  box-shadow: 1px 0 0 var(--color-border);
}

.fc-matrix thead tr > :first-child {
  z-index: 3;
  background: var(--color-bg-light);
}

.fc-matrix__criterion {
  width: 26%;
  min-width: 210px;
  color: var(--color-text);
}

.fc-matrix thead th:first-child {
  width: 26%;
}

.fc-matrix__criterion-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  color: var(--color-text);
}

.fc-matrix tr.fc-matrix__group > th,
.fc-matrix tr.fc-matrix__group > td,
.fc-matrix th[scope="colgroup"],
.fc-matrix td[scope="colgroup"] {
  position: static;
  padding: var(--space-3) var(--space-5);
  background: var(--color-bg-lighter);
  border-bottom: 1px solid var(--color-border);
  box-shadow: none;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-muted);
}

.fc-competitor-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 92px;
}

/* The class sits on the header <th> itself; keep it a table-cell. */
.fc-matrix th.fc-competitor-head {
  display: table-cell;
  min-width: 92px;
}

.fc-matrix th.fc-competitor-head .fc-competitor-head__name {
  display: block;
}

.fc-competitor-head__name {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  letter-spacing: var(--tracking-normal);
  text-transform: none;
  color: var(--color-text);
}

/* Oriloq column highlight */
.fc-oriloq-col {
  background: var(--color-surface-glow);
}

.fc-matrix thead .fc-oriloq-col {
  background: var(--color-bg-lighter);
  color: var(--color-text);
}

.fc-matrix tr > .fc-oriloq-col:first-child {
  background: var(--color-bg-lighter);
}

/* ---------- Status ---------- */

.fc-status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  min-height: 24px;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  line-height: var(--leading-snug);
  color: var(--color-text-muted);
}

/* Status class is applied to the <td> itself in the matrix. Changing a
   table-cell to flex would collapse the column, so an inner wrapper
   lays the badges out with flex wrap and a real row gap. */
.fc-matrix td.fc-status {
  display: table-cell;
}

.fc-matrix td.fc-status > .fc-status__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.fc-status__icon {
  flex: 0 0 auto;
  display: -webkit-inline-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-light);
  background: var(--color-surface-highlight);
  color: var(--color-text);
  font-size: 11px;
  font-weight: var(--font-bold);
  line-height: 1;
}

.fc-status__icon svg {
  width: 12px;
  height: 12px;
}

.fc-status__label {
  min-width: 0;
}

.fc-status--available {
  color: var(--color-text);
}

.fc-status--available .fc-status__icon {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-bg-deep);
}

.fc-status--partial {
  color: var(--color-text);
}

.fc-status--partial .fc-status__icon {
  border-color: var(--color-secondary);
  background: transparent;
  color: var(--color-secondary);
}

.fc-status--unavailable {
  color: var(--color-text-muted);
}

.fc-status--unavailable .fc-status__icon {
  border-color: var(--color-border-lighter);
  background: transparent;
  color: var(--color-text-muted);
}

.fc-status--unknown {
  color: var(--color-text-subtle);
}

.fc-status--unknown .fc-status__icon {
  border-style: dashed;
  border-color: var(--color-border-lighter);
  background: transparent;
  color: var(--color-text-subtle);
}

.fc-plan {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  font-size: 10px;
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-text-subtle);
}

.fc-matrix td .fc-status {
  display: flex;
  align-items: flex-start;
}

/* ---------- Legend ---------- */

.fc-empty {
  margin-top: var(--space-10);
}

.fc-empty .fc-shell {
  padding: var(--space-6);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.fc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin: var(--space-4) 0 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  list-style: none;
}

.fc-legend__item {
  display: flex;
  flex: 1 1 260px;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  min-width: 0;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.fc-legend__item .fc-status__icon {
  width: 18px;
  height: 18px;
}

.fc-legend__title {
  margin: var(--space-4) 0 0;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-subtle);
}

/* ---------- Tests ---------- */

.fc-note {
  max-width: 46rem;
  margin: var(--space-5) 0 0;
  padding-left: var(--space-4);
  border-left: 2px solid var(--color-border-light);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-subtle);
}

/* ---------- Pricing table ---------- */

.fc-pricing-table {
  width: 100%;
  min-width: 520px;
  margin-top: var(--space-6);
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-elevated);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.fc-pricing-table tr > :first-child {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--color-bg-elevated);
  box-shadow: 1px 0 0 var(--color-border);
}

.fc-pricing-table thead tr > :first-child {
  z-index: 3;
  background: var(--color-bg-light);
}

.fc-matrix-wrap > .fc-pricing-table {
  margin-top: 0;
  border: 0;
  border-radius: 0;
}

.fc-pricing-table caption {
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  font-weight: var(--font-semibold);
  text-align: left;
  color: var(--color-text);
}

.fc-pricing-table th,
.fc-pricing-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border-subtle);
  border-right: 1px solid var(--color-border-subtle);
  overflow-wrap: anywhere;
}

.fc-pricing-table th:last-child,
.fc-pricing-table td:last-child {
  border-right: none;
}

.fc-pricing-table tr:last-child th,
.fc-pricing-table tr:last-child td {
  border-bottom: none;
}

.fc-pricing-table thead th {
  background: var(--color-bg-light);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-subtle);
}

.fc-pricing-table thead th:first-child {
  width: 24%;
}

.fc-pricing-table thead th:nth-child(2),
.fc-pricing-table thead th:nth-child(3),
.fc-pricing-table thead th:nth-child(4),
.fc-pricing-table thead th:nth-child(5) {
  width: 19%;
}

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

.fc-pricing-table tbody tr:hover {
  background: var(--color-surface);
}

/* ---------- FAQ ---------- */

.fc-faq__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.fc-faq__item {
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-elevated);
}

.fc-faq__item h3,
.fc-faq__item summary {
  margin: 0;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  color: var(--color-text);
}

.fc-faq__item summary {
  cursor: pointer;
}

.fc-faq__item summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.fc-faq__item p {
  margin: var(--space-3) 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* ---------- Final CTA ---------- */

.fc-section.fc-cta {
  margin-top: var(--space-12);
}

.fc-cta > .fc-shell {
  padding: var(--space-10) var(--space-6);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-3xl);
  background: var(--color-bg-elevated);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.fc-cta > .fc-shell > h2 {
  margin: 0 auto;
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-text);
  text-wrap: balance;
}

.fc-cta > .fc-shell > p {
  max-width: 40rem;
  margin: var(--space-4) auto 0;
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.fc-cta .fc-download {
  margin-top: var(--space-6);
}

/* ---------- Sources ---------- */

.fc-section.fc-sources {
  margin-top: var(--space-12);
}

.fc-sources {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.fc-sources li {
  margin-top: var(--space-3);
  padding-left: var(--space-1);
}

.fc-sources li::marker {
  color: var(--color-text-subtle);
  font-family: var(--font-mono);
}

.fc-sources a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.fc-sources a:hover {
  color: var(--color-text);
}

.fc-source__date {
  margin-left: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
}

.fc-section.fc-disclosure {
  margin-top: var(--space-8);
}

.fc-disclosure .fc-shell {
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
  color: var(--color-text-subtle);
}

.fc-disclosure p + p {
  margin-top: var(--space-2);
}

.fc-disclosure a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Shared focus visibility ---------- */

.fc-page a:focus-visible,
.fc-page button:focus-visible,
.fc-page summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .fc-faq__list {
    grid-template-columns: 1fr;
  }

  .fc-matrix {
    min-width: 700px;
  }
}

@media (max-width: 640px) {
  .fc-main {
    padding-top: var(--space-6);
  }

  .fc-hero,
  .fc-index-hero {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .fc-section {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
    margin-top: var(--space-10);
  }

  .fc-filters,
  .fc-section.fc-filters,
  .fc-section.fc-picks {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
    gap: var(--space-2);
  }

  .fc-filter {
    min-height: 38px;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
  }

  .fc-title {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
  }

  .fc-subtitle {
    font-size: var(--text-base);
  }

  .fc-anchor-nav > ul,
  .fc-anchor-nav > div {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .fc-card,
  .fc-pick,
  .fc-faq__item {
    padding: var(--space-5);
  }

  .fc-cta > .fc-shell {
    padding: var(--space-8) var(--space-5);
  }

  .fc-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .fc-actions > a,
  .fc-actions > .fc-download {
    justify-content: center;
  }

  .fc-matrix {
    min-width: 680px;
    font-size: var(--text-xs);
  }

  .fc-matrix th,
  .fc-matrix td {
    padding: var(--space-3);
  }

  .fc-matrix thead th:first-child,
  .fc-matrix__criterion {
    width: 32%;
    min-width: 0;
  }

  .fc-matrix tr > :first-child {
    max-width: 190px;
  }

  .fc-competitor-head {
    min-width: 78px;
  }

  .fc-pricing-table {
    table-layout: fixed;
  }

  .fc-pricing-table th:first-child,
  .fc-pricing-table td:first-child {
    width: 24%;
  }

  .fc-pricing-table th,
  .fc-pricing-table td {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    overflow-wrap: anywhere;
  }
}

/* ---------- Stacked matrix (below 700px) ---------- */

@media (max-width: 699px) {
  /* The same wrapper is reused by the pricing table, which keeps its own
     horizontal scroll. Only the feature matrix switches to cards. */
  .fc-matrix-wrap:has(> .fc-matrix) {
    margin-top: var(--space-5);
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .fc-matrix {
    display: block;
    width: 100%;
    min-width: 0;
    table-layout: auto;
    font-size: var(--text-sm);
  }

  .fc-matrix thead {
    display: none;
  }

  .fc-matrix tbody {
    display: block;
  }

  .fc-matrix tbody.fc-matrix__group > tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
    margin-top: var(--space-3);
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg-elevated);
  }

  /* Group label row, not a criterion card. */
  .fc-matrix tbody.fc-matrix__group > tr:first-child {
    display: block;
    margin-top: var(--space-6);
    padding: 0 0 var(--space-2);
    border: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    background: transparent;
  }

  .fc-matrix th,
  .fc-matrix td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  .fc-matrix tr > :first-child {
    position: static;
    left: auto;
    z-index: auto;
    background: transparent;
    box-shadow: none;
  }

  .fc-matrix th[scope="colgroup"] {
    grid-column: 1 / -1;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-text-muted);
  }

  .fc-matrix th.fc-matrix__criterion,
  .fc-matrix tbody.fc-matrix__group > tr > th.fc-matrix__criterion {
    grid-column: 1 / -1;
    width: auto;
    min-width: 0;
    padding: 0 0 var(--space-3);
    border-bottom: 1px solid var(--color-border-subtle);
  }

  /* Odd competitor counts: let the last card use the full row width. */
  .fc-matrix tbody.fc-matrix__group > tr > td:last-child:nth-child(even) {
    grid-column: 1 / -1;
  }

  .fc-matrix td.fc-status,
  .fc-matrix tbody tr:last-child td.fc-status {
    display: block;
    padding: var(--space-3);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    background: var(--color-surface);
  }

  .fc-matrix td.fc-status::before {
    content: attr(data-competitor);
    display: block;
    margin-bottom: var(--space-2);
    font-size: 10px;
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--color-text-subtle);
  }

  .fc-matrix .fc-plan {
    max-width: 100%;
    white-space: normal;
  }

  .fc-matrix td.fc-oriloq-col {
    border-color: var(--color-border-glow);
    background: var(--color-surface-glow);
  }

  .fc-matrix td.fc-oriloq-col::before {
    color: var(--color-accent);
  }

  .fc-matrix__criterion-label {
    font-size: var(--text-base);
  }
}

/* ---------- Motion preferences ---------- */

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

  .fc-card:hover {
    transform: none;
  }
}

/* ---------- Print ---------- */

@media print {
  .fc-filters,
  .fc-anchor-nav,
  .fc-actions,
  .fc-cta {
    display: none !important;
  }

  .fc-page,
  .fc-main {
    overflow: visible !important;
  }

  .fc-matrix-wrap,
  .fc-pricing-table {
    overflow: visible !important;
    border-color: #999;
  }

  .fc-matrix {
    min-width: 0;
  }

  .fc-matrix tr > :first-child {
    position: static;
    box-shadow: none;
  }

  .fc-card,
  .fc-faq__item,
  .fc-pick {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .fc-status__icon,
  .fc-status__label {
    color: #000 !important;
  }

  .fc-status__icon {
    border-color: #000 !important;
    background: transparent !important;
  }
}
