:root {
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --ink: #1b2430;
  --muted: #5c6b7a;
  --accent: #0d8b7f;
  --accent-ink: #043530;
  --line: #e2e8ee;
  --warn: #b7791f;
  --wash: rgba(13, 139, 127, 0.06);
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 2px;
  --shadow: 0 1px 0 rgba(27, 36, 48, 0.04);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  background: var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

.site-header,
main,
.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.35rem;
}

.site-header {
  display: grid;
  gap: 0.65rem;
  padding-top: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  animation: brand-in 0.55s ease both;
}

@keyframes brand-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none !important;
}

.brand-lockup .logo {
  width: 2.35rem;
  height: 2.35rem;
  color: var(--accent);
  flex-shrink: 0;
}

.brand-lockup .brand-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.lang-nav {
  display: flex;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lang-nav a[aria-current="true"] {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.thumb-logo,
.thumb img.logo-fallback {
  background: #f7fafb;
}

.thumb img.logo-fallback {
  object-fit: contain;
  padding: 18%;
  opacity: 1 !important;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

nav a {
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: 0.01em;
}

nav a:hover { color: var(--ink); }

.hero {
  padding: clamp(2.5rem, 8vh, 4.5rem) 0 2rem;
  max-width: 40rem;
}

.hero .hero-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.hero .hero-brand .logo {
  width: 3.5rem;
  height: 3.5rem;
  color: var(--accent);
}

.hero .hero-brand .brand-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

.hero p {
  color: var(--muted);
  margin: 0 0 1.4rem;
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-family: var(--font-display);
  padding: 0.55rem 1rem;
  text-decoration: none !important;
  border: none;
  border-radius: var(--radius);
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  text-decoration: none !important;
}

.btn-muted {
  background: transparent;
  color: var(--muted) !important;
  border: 1px solid var(--line);
  font-weight: 500;
}

.btn-muted:hover {
  filter: none;
  transform: none;
  border-color: var(--muted);
}

tr.offer-oos td {
  color: var(--muted);
}

.review-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.review-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.review-list li:last-child {
  border-bottom: none;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.media-item iframe {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--radius);
  background: #111;
}

.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: var(--muted); }

.section {
  margin: 2.75rem 0;
}

.section h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.section .lede {
  color: var(--muted);
  margin: 0 0 1.15rem;
}

.rail-section {
  margin: 2.25rem 0;
}

.rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.rail-head h2 {
  margin: 0;
  text-transform: capitalize;
}

.rail-more {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.65rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.rail::-webkit-scrollbar {
  height: 6px;
}

.rail::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

.rail .product-tile {
  flex: 0 0 168px;
  scroll-snap-align: start;
}

.rail .product-tile .title {
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.15rem;
}

.product-tile {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none !important;
  transition: transform 0.18s ease;
}

.product-tile:hover { transform: translateY(-2px); }

.product-tile .thumb,
.product-hero .thumb,
.vs-head .thumb {
  aspect-ratio: 1;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-tile .thumb img,
.product-hero .thumb img,
.vs-head .thumb img,
.cat-row .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.product-tile .thumb img.is-loaded,
.product-hero .thumb img.is-loaded,
.vs-head .thumb img.is-loaded,
.cat-row .thumb img.is-loaded {
  opacity: 1;
}

.thumb-placeholder {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-tile .title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.25;
}

.product-tile .price,
.cat-row .price {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.link-list a {
  color: var(--ink);
  font-weight: 600;
}

.cat-list {
  display: grid;
  gap: 0.75rem;
}

.cat-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none !important;
}

.cat-row .thumb {
  width: 88px;
  height: 88px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.cat-row .meta .title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

.cat-row .meta .sub {
  color: var(--muted);
  font-size: 0.92rem;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 1.75rem;
  align-items: start;
  margin: 1.25rem 0 2rem;
}

.product-hero .thumb {
  width: 100%;
  min-height: 280px;
}

.product h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  line-height: 1.15;
}

.product .meta {
  color: var(--muted);
  margin: 0 0 0.85rem;
}

.product .lead {
  margin: 0 0 1.15rem;
  max-width: 38rem;
}

.primary-buy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.25rem;
}

.primary-buy .amount {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.data th,
.data td {
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: middle;
}

.data tr:last-child th,
.data tr:last-child td { border-bottom: none; }

.data th { color: var(--muted); font-weight: 550; width: 30%; }

.data tbody tr {
  transition: background 0.15s ease;
}

.data tbody tr:hover {
  background: color-mix(in srgb, var(--wash) 55%, var(--bg-elev));
}

.muted { color: var(--muted); }

.badge {
  background: color-mix(in srgb, var(--warn) 22%, white);
  color: #5c3d08;
  padding: 0.1rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 650;
}

.spark {
  width: 200px;
  height: 40px;
  color: var(--accent);
  display: block;
}

.price-history { margin-bottom: 1rem; }

.specs span {
  display: inline-block;
  margin: 0.15rem 0.35rem 0.15rem 0;
  padding: 0.12rem 0.4rem;
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.vs-heads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.vs-head {
  display: grid;
  gap: 0.55rem;
}

.vs-head .thumb {
  max-width: 200px;
  aspect-ratio: 1;
}

.vs-head a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

.compare-page .lede {
  max-width: 42rem;
}

.rail-head-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.85rem;
}

.compare-rail {
  display: grid;
  grid-template-columns: repeat(var(--compare-cols, 2), minmax(11.5rem, 1fr));
  gap: 0 1rem;
  overflow-x: auto;
  padding-bottom: 0.85rem;
  align-items: stretch;
  -webkit-overflow-scrolling: touch;
}

.compare-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span var(--compare-rows, 8);
  gap: 0.45rem 0;
  min-width: 11.5rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 0.85rem;
  box-shadow: var(--shadow);
}

.compare-card-media,
.compare-card-title {
  color: inherit;
  text-decoration: none !important;
}

.compare-card .thumb {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.compare-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.55rem;
}

.compare-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  align-self: end;
}

.compare-card-brand {
  margin: 0;
  font-size: 0.88rem;
  align-self: start;
}

.compare-spec {
  display: grid;
  gap: 0.12rem;
  align-content: start;
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
  padding-top: 0.35rem;
  margin: 0;
}

.compare-spec-k {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.25;
}

.compare-spec-v {
  margin: 0;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.compare-price {
  display: grid;
  gap: 0.15rem;
  align-content: start;
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
  min-height: 3.1rem;
}

.compare-price .amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.compare-retailer {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
  font-size: 0.8rem;
}

.compare-buy-btn {
  align-self: end;
  justify-self: stretch;
  text-align: center;
}

@supports not (grid-template-rows: subgrid) {
  .compare-rail {
    display: flex;
    gap: 1.1rem;
  }

  .compare-card {
    flex: 0 0 240px;
    display: flex;
    flex-direction: column;
    grid-row: auto;
  }

  .compare-card-title {
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .compare-buy-btn {
    margin-top: auto;
  }
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 3.5rem;
  padding-bottom: 2rem;
}

.site-footer a { color: var(--muted); }

.legal {
  max-width: 42rem;
  line-height: 1.55;
}

.legal h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.legal h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal p,
.legal li {
  color: var(--text);
}

.legal-list {
  padding-left: 1.2rem;
  margin: 0.5rem 0 0;
}

.legal-list li {
  margin-bottom: 0.55rem;
}

@media (max-width: 760px) {
  .product-hero {
    grid-template-columns: 1fr;
  }
  .cat-row {
    grid-template-columns: 72px 1fr;
  }
  .cat-row .price {
    grid-column: 2;
  }
}
