/* ============================================================
   BiciElettricaQualeScegliere – Design System v2
   Premium Italian e-mobility review site
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Core palette */
  --ink: #141c24;
  --ink-secondary: #4a5568;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-subtle: #f1f5f9;
  --paper: #ffffff;
  --mist: #f0faf5;
  --surface: #f8fafc;

  /* Brand colors */
  --aqua: #0891b2;
  --aqua-dark: #0e7490;
  --aqua-light: #22d3ee;
  --aqua-subtle: #ecfeff;
  --green: #059669;
  --green-light: #34d399;
  --green-subtle: #d1fae5;
  --sun: #f59e0b;
  --sun-light: #fbbf24;
  --brick: #ef4444;

  /* Surfaces */
  --night: #0f172a;
  --night-card: #1e293b;
  --night-line: rgba(255, 255, 255, 0.08);
  --night-text: #cbd5e1;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 12px 24px -4px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.06);

  /* Layout */
  --max: 1200px;
  --header-h: 72px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 8px;
  --radius-xl: 8px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.25s;
  --duration-slow: 0.4s;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--aqua);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover {
  color: var(--aqua-dark);
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--aqua-subtle);
  color: var(--aqua-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
}

/* --- Header --- */
.site-header {
  height: var(--header-h);
  padding: 0 clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow var(--duration) var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.brand {
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--aqua), var(--green));
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  flex-shrink: 0;
}

/* Hamburger menu for mobile */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: background var(--duration) var(--ease);
}

.nav-toggle:hover {
  background: var(--line-subtle);
}

.nav-toggle svg {
  display: block;
  width: 24px;
  height: 24px;
}

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

.site-nav a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  position: relative;
}

.site-nav a:hover {
  color: var(--aqua);
  background: var(--aqua-subtle);
}

.site-nav a[aria-current="page"] {
  color: var(--aqua);
  background: var(--aqua-subtle);
}

/* --- Hero --- */
.hero {
  min-height: min(75vh, 680px);
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--night);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  transition: transform 12s var(--ease);
}

.hero:hover .hero-media img {
  transform: scale(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.55) 60%, rgba(15, 23, 42, 0.88) 100%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.6) 0%, transparent 50%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: clamp(32px, 6vh, 64px);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--aqua-light);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--aqua-light);
  border-radius: 2px;
}

.dark-band .eyebrow {
  color: var(--aqua-light);
}

h1, h2, h3, h4 {
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 800;
  color: var(--ink);
}

.hero-copy h1,
.dark-band h2,
.dark-band h3 {
  color: #fff;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0 0 20px;
  font-size: 56px;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy > p {
  max-width: 580px;
  margin: 0 0 28px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
}

/* --- Buttons --- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--aqua);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--duration) var(--ease);
}

.button:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.35);
}

.button:hover::after {
  background: rgba(255, 255, 255, 0.1);
}

.button:active {
  transform: translateY(0);
  box-shadow: none;
}

.button.secondary {
  background: var(--sun);
  color: var(--ink);
}

.button.secondary:hover {
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.button.outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button.outline:hover {
  color: var(--aqua);
  border-color: var(--aqua);
  background: var(--aqua-subtle);
  box-shadow: none;
}

/* --- Sections / Bands --- */
.band {
  padding: clamp(56px, 8vw, 100px) clamp(16px, 4vw, 48px);
}

.dark-band {
  background: var(--night);
  color: #fff;
}

.mist-band {
  background: var(--mist);
}

.surface-band {
  background: var(--surface);
}

.section-inner {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 0 0 14px;
  font-size: 40px;
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.dark-band .section-head p {
  color: var(--night-text);
}

/* --- Card Grid --- */
.category-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --- Card --- */
.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: all var(--duration-slow) var(--ease);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: rgba(8, 145, 178, 0.15);
}

.dark-band .card {
  background: var(--night-card);
  border-color: var(--night-line);
  box-shadow: none;
}

.dark-band .card:hover {
  border-color: rgba(8, 145, 178, 0.3);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.card-media {
  display: block;
  overflow: hidden;
  background: var(--surface);
  position: relative;
}

.card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.05);
}

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h2,
.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: 0;
}

.card h2 a,
.card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.card h2 a:hover,
.card h3 a:hover {
  color: var(--aqua);
}

.card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
}

.dark-band .card p {
  color: var(--night-text);
}

/* --- Meta Row (tag pills) --- */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.meta-row li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--aqua-subtle);
  color: var(--aqua-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  transition: background var(--duration) var(--ease);
}

.card:hover .meta-row li {
  background: #cffafe;
}

.meta-row li.rating-item {
  background: linear-gradient(135deg, var(--sun-light), var(--sun)) !important;
  color: var(--ink) !important;
  font-weight: 800;
}

/* --- Text Link --- */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--aqua);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  text-decoration: none;
  transition: gap var(--duration) var(--ease), color var(--duration) var(--ease);
  margin-top: auto;
}

.text-link::after {
  content: "→";
  font-size: 15px;
  transition: transform var(--duration) var(--ease);
}

.text-link:hover {
  color: var(--aqua-dark);
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* --- Page Hero (category/product pages) --- */
.page-hero {
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding: clamp(42px, 7vw, 90px) clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.page-hero h1 {
  margin: 0 0 18px;
  font-size: 48px;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.page-hero p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.feature-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.feature-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 8s var(--ease);
}

.feature-image:hover img {
  transform: scale(1.03);
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 14px clamp(16px, 4vw, 48px);
  background: var(--surface);
  border-bottom: 1px solid var(--line-subtle);
}

.breadcrumb-inner {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb li + li::before {
  content: "›";
  color: var(--line);
  font-size: 16px;
  margin-right: 2px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.breadcrumb a:hover {
  color: var(--aqua);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* --- Article Layout --- */
.article-layout {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) 0 clamp(56px, 8vw, 100px);
}

.article-image {
  overflow: hidden;
  margin: 0 0 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.article-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body {
  max-width: 780px;
  margin: 0 auto;
}

.article-body > * + * {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.article-body h2 {
  margin: 48px 0 18px;
  font-size: 34px;
  padding-top: 12px;
  border-top: 2px solid var(--line-subtle);
}

.article-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-body h3 {
  margin: 32px 0 14px;
  font-size: 24px;
}

.article-body p {
  margin: 0 0 18px;
  color: var(--ink-secondary);
  line-height: 1.75;
}

.article-body strong {
  color: var(--ink);
  font-weight: 800;
}

.article-body ul {
  margin: 0 0 24px;
  padding-left: 24px;
}

.article-body li {
  margin: 0 0 10px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

.article-body li::marker {
  color: var(--aqua);
}

/* --- Specs Table --- */
.article-body table {
  width: 100%;
  margin: 24px 0 32px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  background: #fff;
}

.article-body th,
.article-body td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-body tr:last-child th,
.article-body tr:last-child td {
  border-bottom: none;
}

.article-body th {
  background: #eef7fa;
  font-weight: 700;
  color: var(--ink);
  width: 35%;
}

.article-body td {
  color: var(--ink-secondary);
}

.article-body tbody tr:nth-child(even) td,
.article-body tbody tr:nth-child(even) th {
  background: #fbfdff;
}

.article-body tbody td:first-child {
  color: var(--ink);
  font-weight: 700;
}

.article-body .spec-table th:first-child,
.article-body .spec-table td:first-child {
  width: 34%;
}

.article-body .pros-cons-table th:first-child,
.article-body .pros-cons-table td:first-child {
  border-left: 4px solid rgba(5, 150, 105, 0.45);
}

.article-body .pros-cons-table th:last-child,
.article-body .pros-cons-table td:last-child {
  border-left: 4px solid rgba(239, 68, 68, 0.32);
}

.article-body .decision-table td:nth-child(2) {
  color: var(--ink);
  font-weight: 800;
}

.article-body .scenario-table td:first-child {
  width: 32%;
}

/* --- Compare Grid --- */
.compare {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.compare > div {
  padding: 24px;
  background: var(--night-card);
  border: 1px solid var(--night-line);
  border-radius: var(--radius-lg);
  color: #fff;
  transition: all var(--duration-slow) var(--ease);
}

.compare > div:hover {
  border-color: rgba(8, 145, 178, 0.25);
  transform: translateY(-2px);
}

.compare strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 17px;
  color: #fff;
}

.compare p,
.compare > div > :not(strong) {
  color: var(--night-text);
  font-size: 14px;
  line-height: 1.65;
}

/* --- Rating Badge --- */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--green), #047857);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.rating-stars {
  display: flex;
  gap: 2px;
  color: var(--sun);
}

/* --- Trust Bar --- */
.trust-bar {
  padding: 24px clamp(16px, 4vw, 48px);
  background: var(--surface);
  border-bottom: 1px solid var(--line-subtle);
}

.trust-inner {
  width: min(var(--max), 100%);
  margin-inline: auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 48px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--aqua-subtle);
  color: var(--aqua);
  font-size: 16px;
  flex-shrink: 0;
}

/* --- Newsletter CTA --- */
.newsletter {
  padding: clamp(48px, 7vw, 80px) clamp(16px, 4vw, 48px);
  background: linear-gradient(135deg, var(--aqua), #0e7490, #065f46);
  color: #fff;
  text-align: center;
}

.newsletter-inner {
  width: min(600px, 100%);
  margin-inline: auto;
}

.newsletter h2 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 34px;
}

.newsletter p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin-inline: auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  backdrop-filter: blur(8px);
  transition: all var(--duration) var(--ease);
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.18);
}

.newsletter-form button {
  min-height: 48px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  background: #fff;
  color: var(--aqua-dark);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration) var(--ease);
}

.newsletter-form button:hover {
  background: var(--sun-light);
  color: var(--ink);
  transform: translateY(-1px);
}

/* --- Footer --- */
.site-footer {
  padding: 48px clamp(16px, 4vw, 48px) 32px;
  background: var(--night);
  color: var(--night-text);
  font-size: 14px;
}

.footer-inner {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--night-line);
}

.footer-brand {
  font-weight: 800;
  color: #fff;
  font-size: 17px;
  margin-bottom: 12px;
  letter-spacing: 0;
}

.footer-desc {
  color: var(--night-text);
  line-height: 1.7;
  margin: 0;
}

.footer-heading {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--night-text);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--aqua-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.footer-bottom a {
  color: #64748b;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--aqua-light);
}

/* --- Editorial trust elements --- */
.article-summary,
.legal-note,
.source-list,
.toc,
.info-panel {
  margin: 0 0 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.article-summary {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-left: 5px solid var(--aqua);
  background: linear-gradient(135deg, #f4fbfd 0%, #ffffff 100%);
  box-shadow: var(--shadow-sm);
}

.article-summary p,
.legal-note p,
.info-panel p {
  margin-bottom: 10px;
}

.article-summary p:last-child,
.legal-note p:last-child,
.info-panel p:last-child {
  margin-bottom: 0;
}

.article-summary p {
  color: var(--ink-secondary);
  font-size: 16px;
  line-height: 1.65;
}

.article-summary strong {
  display: inline-block;
  margin-right: 4px;
}

.article-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 30px;
}

.quick-card {
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.quick-card p {
  margin: 0;
}

.quick-label {
  margin-bottom: 8px !important;
  color: var(--aqua-dark) !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25 !important;
  text-transform: uppercase;
  letter-spacing: 0;
}

.quick-card p:last-child {
  color: var(--ink-secondary);
  line-height: 1.6;
}

.article-callout {
  margin: 24px 0 30px;
  padding: 20px;
  border: 1px solid rgba(8, 145, 178, 0.25);
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
  background: #f4fbf7;
}

.article-callout p {
  margin-bottom: 0;
}

.source-list ul,
.toc ol {
  margin-bottom: 0;
}

.toc {
  background: #fff;
}

.toc h2 {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font-size: 20px;
}

.toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  padding-left: 22px;
}

.toc a {
  color: var(--ink-secondary);
  font-weight: 650;
}

.toc a:hover {
  color: var(--aqua);
}

.source-list h2 {
  margin-top: 0;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 30px;
}

.faq-item {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.faq-question {
  margin: 0 0 8px !important;
  color: var(--ink) !important;
  font-weight: 800;
  line-height: 1.45 !important;
}

.faq-answer {
  margin: 0 !important;
  color: var(--ink-secondary);
  line-height: 1.7;
}

.update-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.method-grid > div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.method-grid h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.method-grid p {
  margin: 0;
  color: var(--ink-secondary);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 1;
  transform: none;
  transition: none;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 980px) {
  .site-header {
    height: auto;
    min-height: var(--header-h);
    flex-wrap: wrap;
    padding: 14px clamp(16px, 4vw, 48px);
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--line-subtle);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 14px;
    font-size: 15px;
    border-radius: var(--radius-sm);
  }

  .category-grid,
  .product-grid,
  .product-grid.three,
  .compare,
  .method-grid,
  .article-quick-grid,
  .toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: min(580px, calc(100vh - 122px));
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy > p {
    font-size: 17px;
  }

  .page-hero h1 {
    font-size: 38px;
  }

  .section-head h2 {
    font-size: 34px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .hero {
    min-height: min(520px, calc(100vh - 132px));
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.85) 100%);
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .category-grid,
  .product-grid,
  .product-grid.three,
  .compare,
  .method-grid,
  .article-quick-grid,
  .toc ol {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 16px;
    max-width: calc(100% - 56px);
    white-space: normal;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .section-head h2,
  .article-body h2,
  .newsletter h2 {
    font-size: 28px;
  }

  .article-body h3 {
    font-size: 22px;
  }

  .article-body table {
    display: block;
    overflow: hidden;
    font-size: 14px;
  }

  .article-body table thead {
    display: none;
  }

  .article-body table tbody,
  .article-body table tr,
  .article-body th,
  .article-body td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .article-body table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .article-body table tr:last-child {
    border-bottom: none;
  }

  .article-body th,
  .article-body td {
    padding: 7px 14px;
    border-bottom: none;
  }

  .article-body th::before,
  .article-body td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--aqua-dark);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .article-body .spec-table {
    display: grid;
    gap: 10px;
    border: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    background: transparent;
  }

  .article-body .spec-table tbody {
    display: grid;
    gap: 10px;
  }

  .article-body .spec-table tr {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-left: 4px solid rgba(8, 145, 178, 0.45);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-xs);
  }

  .article-body .spec-table tr:nth-child(even) {
    background: #fbfdff;
  }

  .article-body .spec-table th,
  .article-body .spec-table td {
    padding: 0;
    border: 0;
    background: transparent !important;
  }

  .article-body .spec-table th::before,
  .article-body .spec-table td::before {
    content: none;
  }

  .article-body .spec-table td:first-child {
    width: 100%;
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
  }

  .article-body .spec-table td:last-child {
    color: var(--ink-secondary);
    font-size: 14px;
    line-height: 1.55;
  }

  .article-summary,
  .legal-note,
  .source-list,
  .toc,
  .info-panel,
  .quick-card,
  .faq-item {
    padding: 16px;
  }

  .button {
    width: 100%;
  }

  .card-body {
    padding: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .trust-inner {
    gap: 16px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Print Styles --- */
@media print {
  .site-header,
  .site-footer,
  .newsletter,
  .trust-bar,
  .nav-toggle {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
