@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root {
  --bg: #0f172a;
  --bg-alt: #111b2e;
  --surface: rgba(15, 23, 42, 0.98);
  --card: rgba(15, 23, 42, 0.95);
  --text: #f8fafc;
  --muted: #cbd5f5;
  --accent: #7dd3fc;
  --accent-strong: #38bdf8;
  --card-border: rgba(148, 163, 184, 0.15);
  --shadow: 0 20px 35px rgba(2, 6, 23, 0.45);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.25), transparent 45%),
    linear-gradient(180deg, #020617 0%, #060b18 40%, #0b1325 100%);
  color: var(--text);
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}
.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  background: rgba(8, 8, 15, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  backdrop-filter: blur(14px);
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.nav nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.nav a:hover {
  color: var(--accent-strong);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.brand-logo,
.brand-logo-footer {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.3);
}
.hero {
  padding: 80px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.hero-visual img,
.feature-media-card img,
.compat-hero-card img {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: block;
}
.hero-visual img {
  max-height: 520px;
  object-fit: contain;
}
.hero-copy h1 {
  font-size: clamp(2.7rem, 4vw, 4.3rem);
  margin-bottom: 18px;
}
.hero-copy .lede {
  color: var(--muted);
  font-size: 1rem;
  max-width: 60ch;
}
.hero-points,
.cta-row,
.trust-items,
.mini-grid,
.feature-grid,
.compatibility-box,
.feature-media-grid,
.payment-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-points span,
.chip,
.compat-chip {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--card-border);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.btn {
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: linear-gradient(120deg, #38bdf8, #0ea5e9 60%);
  color: #fff;
  box-shadow: 0 15px 30px rgba(14, 165, 233, 0.35);
}
.btn-paypal {
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text);
}
.btn-ebay {
  background: #111827;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.promo-strip,
.hero-payment-buttons,
.feature-card,
.mini-card,
.review-card,
.quote-card,
.payment-panel,
.compat-card,
.spec-row,
.metric-card,
.note,
.faq-list details,
.success-card,
.cancel-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.section {
  padding: 60px 0;
}
.section-alt,
.section.alt-section {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
}
.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 12px;
}
.feature-grid,
.compat-grid,
.review-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 24px;
}
.feature-card,
.compat-card,
.review-card,
.metric-card {
  padding: 24px;
}
.feature-card h3,
.compat-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.feature-media-grid,
.payment-buttons,
.payment-panel,
.stats-grid {
  margin-top: 24px;
}
.feature-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.feature-media-card img,
.compat-hero-card img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}
.faq-list details summary {
  cursor: pointer;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}
.faq-list details[open] summary {
  background: rgba(56, 189, 248, 0.1);
}
.payment-buttons .btn {
  flex: 1 1 auto;
  justify-content: center;
  text-align: center;
}
.payment-status {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.3);
}
.trust-items div,
.spec-row span,
.spec-row strong {
  font-weight: 700;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.spec-row {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(148, 163, 184, 0.15);
}
.site-footer {
  padding: 40px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.site-footer a {
  color: var(--muted);
}
@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .buy-box,
  .feature-grid,
  .compatibility-box {
    grid-template-columns: 1fr;
  }
  .nav {
    flex-wrap: wrap;
  }
}

/* --- Checkout page layout fixes --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.checkout-page {
  padding: 36px 0 72px;
}

.checkout-page-shell {
  margin-top: 16px;
}

.checkout-page-card {
  background: var(--surface, rgba(255, 255, 255, 0.9));
  border: 1px solid var(--card-border, var(--line, rgba(148, 163, 184, 0.18)));
  border-radius: var(--radius, 22px);
  box-shadow: var(--shadow, 0 20px 40px rgba(2, 6, 23, 0.18));
  padding: clamp(18px, 2.4vw, 30px);
}

.checkout-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(18px, 2.2vw, 30px);
  align-items: start;
}

.checkout-main-column,
.checkout-sidebar-card,
.checkout-product-card,
.checkout-totals-card,
.checkout-mode-card,
.checkout-quantity-card {
  min-width: 0;
}

.checkout-page-title {
  margin-bottom: 10px;
  max-width: none;
}

.checkout-page-lede {
  color: var(--muted);
  margin-bottom: 20px;
}

.checkout-product-card {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--card-border, var(--line));
  border-radius: 20px;
  background: var(--card, rgba(255, 255, 255, 0.92));
  padding: 14px;
}

.checkout-product-media img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.summary-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.checkout-product-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
}

.checkout-product-copy p {
  color: var(--muted);
  margin-bottom: 12px;
}

.checkout-product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkout-sidebar-card {
  border: 1px solid var(--card-border, var(--line));
  border-radius: 20px;
  background: var(--card, rgba(255, 255, 255, 0.95));
  padding: 16px;
}

.checkout-sidebar-top h3 {
  margin: 0;
}

.checkout-line-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border, var(--line));
}

.checkout-line-item p {
  color: var(--muted);
  margin: 4px 0 0;
}

.checkout-quantity-card {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.checkout-quantity-copy {
  color: var(--muted);
  margin: 6px 0 0;
}

.quantity-stepper {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--card-border, var(--line));
  background: color-mix(in srgb, var(--card, #fff) 92%, #000 8%);
}

.quantity-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--card-border, var(--line));
  background: transparent;
  color: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.quantity-display {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.checkout-totals-card,
.checkout-mode-card {
  margin-top: 12px;
  border: 1px solid var(--card-border, var(--line));
  border-radius: 16px;
  padding: 12px;
  background: color-mix(in srgb, var(--card, #fff) 94%, #000 6%);
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.checkout-total-row-final {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--card-border, var(--line));
}

.checkout-provider-buttons,
.checkout-page-links {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.checkout-provider-btn,
.checkout-page-links .btn {
  width: 100%;
}

.payment-status {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .checkout-page-grid {
    grid-template-columns: 1fr;
  }

  .checkout-product-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .checkout-page {
    padding-top: 22px;
  }

  .checkout-page-card,
  .checkout-sidebar-card {
    padding: 14px;
    border-radius: 16px;
  }

  .quantity-stepper {
    width: 100%;
    justify-content: space-between;
  }

  .quantity-btn {
    width: 38px;
    height: 38px;
  }
}
