/* Operator Compare UK — dashboard theme */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #F4F7FB;
  --slate: #1E293B;
  --slate-muted: #475569;
  --teal: #0D9488;
  --teal-dark: #0F766E;
  --coral: #F07167;
  --coral-dark: #E05A50;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --accent-bar: var(--teal);
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(30, 41, 59, 0.08);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--coral); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

/* Utility strip */
.utility-strip {
  background: var(--slate);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  padding: 0.4rem 1rem;
}

.utility-strip__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: center;
}

.utility-strip__badge {
  background: var(--coral);
  color: var(--white);
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--slate);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-link:hover { color: var(--teal); }
.brand-link img { width: 36px; height: 36px; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--slate-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--slate);
}

/* Hero band */
.hero-band {
  background: linear-gradient(135deg, var(--slate) 0%, #334155 100%);
  color: var(--white);
  padding: 3rem 1.25rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-band__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-band__brand {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-band__brand span { color: var(--coral); }

.hero-band__lead {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 32rem;
}

.hero-band__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.chip--teal { background: rgba(13, 148, 136, 0.35); border-color: var(--teal); }
.chip--coral { background: rgba(240, 113, 103, 0.35); border-color: var(--coral); }

.hero-band__visual {
  position: relative;
}

.hero-band__visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.hero-band__visual::before {
  content: '';
  position: absolute;
  inset: -12px -12px 12px 12px;
  background: var(--teal);
  border-radius: var(--radius-lg);
  opacity: 0.4;
  z-index: 1;
}

/* Layout with side rail */
.dashboard-layout {
  max-width: var(--max);
  margin: -2rem auto 0;
  padding: 0 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}

.dashboard-main { min-width: 0; }

.side-rail {
  background: var(--white);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--coral);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  position: sticky;
  top: 5.5rem;
}

.side-rail h3 {
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-muted);
  margin-bottom: 0.75rem;
}

.side-rail p {
  font-size: 0.875rem;
  color: var(--slate-muted);
  margin-bottom: 0.75rem;
}

.side-rail ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}

.side-rail li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

.side-rail li:last-child { border-bottom: none; }

/* Compare table */
.compare-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 2rem;
}

.compare-section__head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.compare-section__head h2 { margin: 0; }

.affiliate-note {
  font-size: 0.8125rem;
  color: var(--slate-muted);
  margin: 0;
}

.affiliate-note a { font-weight: 500; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table thead {
  background: var(--bg);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-muted);
}

.compare-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.compare-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.compare-table tbody tr:hover { background: rgba(13, 148, 136, 0.04); }

.compare-table tbody tr:last-child { border-bottom: none; }

.compare-table td {
  padding: 1rem;
  vertical-align: middle;
}

.compare-table .col-rank {
  width: 48px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal);
  font-size: 1.125rem;
}

.compare-table .col-operator {
  min-width: 180px;
}

.operator-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.operator-cell img {
  width: 64px;
  height: 40px;
  object-fit: contain;
  background: var(--bg);
  border-radius: 4px;
  padding: 4px;
}

.operator-cell__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--slate);
}

.metric-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.metric-chip {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--bg);
  color: var(--slate-muted);
  font-weight: 500;
  white-space: nowrap;
}

.metric-chip--highlight {
  background: rgba(13, 148, 136, 0.12);
  color: var(--teal-dark);
}

.rating-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--slate);
}

.rating-stars {
  color: var(--coral);
  font-size: 0.875rem;
  letter-spacing: 1px;
}

.btn-cta {
  display: inline-block;
  background: var(--teal);
  color: var(--white) !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}

.btn-cta:hover {
  background: var(--teal-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.btn-cta--coral { background: var(--coral); }
.btn-cta--coral:hover { background: var(--coral-dark); }

.btn-cta--outline {
  background: transparent;
  color: var(--teal) !important;
  border: 2px solid var(--teal);
}

.btn-cta--outline:hover {
  background: var(--teal);
  color: var(--white) !important;
}

/* Mobile table cards */
@media (max-width: 900px) {
  .compare-table thead { display: none; }

  .compare-table tbody tr {
    display: grid;
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 0.75rem;
  }

  .compare-table td {
    padding: 0;
    display: block;
  }

  .compare-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-muted);
    margin-bottom: 0.25rem;
    font-weight: 600;
  }

  .compare-table .col-rank::before { content: 'Rank'; }
  .compare-table .col-rank {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
  }
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--teal);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  text-align: center;
}

.stat-card:nth-child(2) { border-left-color: var(--coral); }
.stat-card:nth-child(3) { border-left-color: #6366F1; }
.stat-card:nth-child(4) { border-left-color: #F59E0B; }

.stat-card__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--slate);
  line-height: 1;
}

.stat-card__label {
  font-size: 0.8125rem;
  color: var(--slate-muted);
  margin-top: 0.35rem;
}

/* Content sections */
.content-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--teal);
}

.content-section--coral { border-left-color: var(--coral); }

.content-section h2 { margin-bottom: 1rem; }

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.review-step {
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius);
}

.review-step__num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal);
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

.operator-notes {
  display: grid;
  gap: 1rem;
}

.note-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius);
  align-items: start;
}

.note-row img {
  width: 100%;
  max-width: 100px;
  object-fit: contain;
  background: var(--white);
  border-radius: 4px;
  padding: 6px;
}

/* FAQ */
.faq-list { list-style: none; padding: 0; margin: 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--slate);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-trigger::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--teal);
  flex-shrink: 0;
}

.faq-item.is-open .faq-trigger::after { content: '−'; }

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item.is-open .faq-panel { max-height: 400px; }

.faq-panel p {
  padding-bottom: 1rem;
  color: var(--slate-muted);
  font-size: 0.9375rem;
}

/* Safer CTA */
.safer-cta {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.safer-cta h2 { color: var(--white); }

.safer-cta p { opacity: 0.9; max-width: 36rem; margin: 0 auto 1.25rem; }

.safer-cta .btn-cta {
  background: var(--white);
  color: var(--teal-dark) !important;
}

.safer-cta .btn-cta:hover { background: var(--bg); }

/* Page hero (inner pages) */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.25rem;
}

.page-hero__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero h1 { margin-bottom: 0.5rem; }

.page-hero p {
  color: var(--slate-muted);
  max-width: 40rem;
  margin: 0;
}

.page-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.page-content .content-section { border-left-width: 4px; }

.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

/* Footer */
.site-footer {
  background: var(--slate);
  color: rgba(255, 255, 255, 0.8);
  padding: 2.5rem 1.25rem 1.5rem;
}

.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: var(--coral); }

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}

.site-footer li { margin-bottom: 0.4rem; }

.site-footer__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  opacity: 0.7;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(30, 41, 59, 0.12);
  padding: 1rem 1.25rem;
  z-index: 1000;
}

.cookie-banner__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--slate-muted);
  flex: 1;
  min-width: 200px;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-banner .btn-cta { font-size: 0.8125rem; padding: 0.45rem 0.9rem; }

.btn-decline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--slate-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.btn-decline:hover { border-color: var(--slate-muted); color: var(--slate); }

/* Responsive */
@media (max-width: 900px) {
  .hero-band__inner { grid-template-columns: 1fr; }
  .hero-band__visual { order: -1; max-width: 420px; margin: 0 auto; }
  .dashboard-layout { grid-template-columns: 1fr; margin-top: -1rem; }
  .side-rail { position: static; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .note-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open { display: block; }

  .main-nav ul { flex-direction: column; gap: 0.5rem; }

  .site-header { position: relative; }

  .site-header__inner { position: relative; }
}

@media (max-width: 480px) {
  .stats-strip { grid-template-columns: 1fr; }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions { justify-content: stretch; }
  .cookie-banner__actions .btn-cta,
  .cookie-banner__actions .btn-decline { flex: 1; text-align: center; }
}
