:root {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --brand-primary: #15803d;
  --brand-primary-hover: #166534;
  --brand-accent: #dcfce7;
  --border-color: #e2e8f0;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Mandatory Compliance Top Bar */
.compliance-topbar {
  background-color: #0f172a;
  color: #f8fafc;
  font-size: 0.8rem;
  padding: 8px 0;
  border-bottom: 1px solid #1e293b;
}

.compliance-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.badge-advertorial {
  background-color: #f59e0b;
  color: #0f172a;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

.compliance-topbar__text {
  color: #cbd5e1;
}

/* Site Header */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--brand-accent);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.brand__name {
  display: block;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
}

.brand__tag {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a:not(.btn) {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.site-nav a:not(.btn):hover {
  color: var(--text-main);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  padding: 12px 20px;
  font-size: 0.95rem;
}

.btn--small {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn--large {
  padding: 15px 28px;
  font-size: 1.05rem;
}

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

.btn--primary {
  background-color: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.25);
}

.btn--primary:hover {
  background-color: var(--brand-primary-hover);
  transform: translateY(-1px);
}

.btn--outline {
  background-color: transparent;
  border-color: #cbd5e1;
  color: var(--text-main);
}

.btn--outline:hover {
  background-color: var(--bg-subtle);
}

/* Main Grid */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 40px;
  padding-top: 36px;
  padding-bottom: 64px;
  align-items: start;
}

/* Article Typography */
.article-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.article-meta__category {
  color: var(--brand-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 2.15rem;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 16px;
}

.article-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Hero Product Card */
.hero-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 36px;
}

.hero-card__grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: center;
}

.hero-card__image-wrap {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card__img {
  max-width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
}

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-primary);
  background: var(--brand-accent);
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 8px;
}

.hero-card__summary h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.check-list {
  list-style: none;
  margin-bottom: 20px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  font-size: 0.94rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-primary);
  font-weight: 700;
}

.micro-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

/* Editorial Sections */
.editorial-section {
  margin-bottom: 40px;
}

.editorial-section h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: var(--text-main);
}

.editorial-section p {
  margin-bottom: 16px;
  color: #334155;
}

/* Illustrative Scenario Box */
.scenario-callout {
  background-color: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-left: 5px solid #f59e0b;
  padding: 24px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.scenario-badge {
  display: inline-block;
  background: #fef3c7;
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.scenario-callout h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

/* Editorial Figures & Before/After Gallery */
.editorial-figure {
  margin: 22px 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.editorial-figure__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.editorial-figure__caption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  line-height: 1.5;
}

.before-after-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 20px 0 24px;
}

.before-after-gallery .editorial-figure {
  margin: 0;
}

/* Visual Side-by-Side Comparison Cards (Without vs With) */
.vs-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0 28px;
}

.vs-card {
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.vs-card--without {
  background-color: #fff1f2;
  border-color: #fecdd3;
}

.vs-card--with {
  background-color: #f0fdf4;
  border-color: #86efac;
  box-shadow: 0 6px 18px rgba(21, 128, 61, 0.08);
}

.vs-card__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.vs-card__badge--without {
  background-color: #ffe4e6;
  color: #be123c;
}

.vs-card__badge--with {
  background-color: #dcfce7;
  color: #15803d;
}

.vs-card__title {
  font-size: 1.18rem;
  margin-bottom: 4px;
  color: var(--text-main);
}

.vs-card__sub {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 16px !important;
}

.vs-card__price-box {
  background: #ffffff;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
  text-align: center;
}

.vs-card__price-box--highlight {
  border-color: #86efac;
}

.vs-card__price-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.vs-card__price-val {
  display: block;
  font-size: 1.85rem;
  font-weight: 700;
  color: #be123c;
  line-height: 1.25;
  margin: 4px 0;
}

.vs-card__price-box--highlight .vs-card__price-val {
  color: var(--brand-primary);
}

.vs-card__price-val small {
  font-size: 0.95rem;
  font-weight: 500;
}

.vs-card__annual {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.vs-card__list {
  list-style: none;
  font-size: 0.88rem;
}

.vs-card__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}

.vs-card__list--negative li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0;
  color: #e11d48;
  font-weight: 700;
}

.vs-card__list--positive li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-primary);
  font-weight: 700;
}

.result-value--muted {
  color: #be123c !important;
  text-decoration: line-through;
  font-size: 1.25rem !important;
}

/* Comparison Table */
.table-responsive {
  overflow-x: auto;
  margin: 20px 0 12px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid var(--border-color);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background-color: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-main);
}

.comparison-table .highlight-cell {
  background-color: #f0fdf4;
  font-weight: 600;
  color: var(--brand-primary);
}

.table-footnote {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  line-height: 1.5;
}

/* Calculator */
.calculator-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
}

.control-group {
  margin-bottom: 18px;
}

.control-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.control-group input[type="range"] {
  width: 100%;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.calculator-results {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.result-item--primary {
  border-bottom: none;
  padding-top: 14px;
}

.result-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.result-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.result-item--primary .result-value {
  font-size: 1.75rem;
  color: var(--brand-primary);
}

.calculator-note {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  margin-top: 12px;
  margin-bottom: 0 !important;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 22px 0;
}

.feature-box {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  background: #fafafa;
}

.feature-box__num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.feature-box h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 18px;
  background: #ffffff;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main);
}

.faq-item p {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 0.92rem;
}

/* Bottom CTA Banner */
.cta-banner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: center;
  background: #0f172a;
  color: #ffffff;
  padding: 32px;
  border-radius: var(--radius-md);
  margin-top: 24px;
}

.cta-banner__img-col {
  background: #ffffff;
  padding: 14px;
  border-radius: var(--radius-md);
  text-align: center;
}

.cta-banner__img {
  max-width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
}

.badge-stock {
  display: inline-block;
  background: #22c55e;
  color: #052e16;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.cta-banner__text-col h2 {
  font-size: 1.45rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.cta-banner__text-col p {
  color: #cbd5e1;
  margin-bottom: 18px;
}

.cta-banner__sub {
  font-size: 0.78rem !important;
  color: #94a3b8 !important;
  margin-top: 10px;
  margin-bottom: 0 !important;
}

/* Sticky Sidebar */
.sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--brand-accent);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.sidebar-card__img {
  display: block;
  max-width: 150px;
  margin: 0 auto 16px;
  height: auto;
}

.sidebar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.sidebar-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.sidebar-specs {
  list-style: none;
  border-top: 1px solid var(--border-color);
  margin-bottom: 18px;
}

.sidebar-specs li {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-card--muted {
  background: var(--bg-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.sidebar-card--muted h4 {
  color: var(--text-main);
  margin-bottom: 6px;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 48px 0 32px;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.5fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #1e293b;
}

.site-footer h4 {
  color: #ffffff;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.site-footer a {
  color: #86efac;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.link-btn {
  background: none;
  border: none;
  color: #cbd5e1;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.88rem;
  padding: 0;
}

.link-btn:hover {
  color: #ffffff;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.55;
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

/* Legal Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  background: #ffffff;
  max-width: 680px;
  width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.9rem;
}

.modal-body h4 {
  margin: 14px 0 6px;
}

.modal-body p {
  margin-bottom: 10px;
}

/* UK GDPR Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 2px solid var(--brand-primary);
  box-shadow: 0 -10px 25px rgba(15, 23, 42, 0.12);
  padding: 20px 0;
  z-index: 150;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner__text h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.cookie-banner__text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cookie-preferences {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cookie-preferences[hidden] {
  display: none;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
}

.cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

/* Responsive */
@media (max-width: 960px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .hero-card__grid,
  .vs-cards-grid,
  .calculator-grid,
  .features-grid,
  .footer-grid,
  .cta-banner {
    grid-template-columns: 1fr;
  }
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner__actions {
    flex-wrap: wrap;
  }
  .site-nav a:not(.btn) {
    display: none;
  }
}
