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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: #1e293b;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 2px;
}

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

/* ============================================================
   Container
   ============================================================ */
.container {
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ============================================================
   Site Header (sticky brand bar — all pages)
   ============================================================ */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
}

.site-header-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  line-height: 1.2;
}

.site-brand:hover,
.site-brand:focus {
  text-decoration: none;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.125rem;
}

/* ============================================================
   Hero (homepage only)
   ============================================================ */
.hero {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  padding: 2.5rem 0 1.5rem;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
}

.hero-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.hero-lead {
  font-size: 1rem;
  color: #475569;
  max-width: 32rem;
  margin: 0 auto;
  line-height: 1.55;
}

@media (min-width: 480px) {
  .hero {
    padding: 3rem 0 2rem;
  }
  .hero-title {
    font-size: 2.25rem;
  }
}

/* ============================================================
   Trust Strip (homepage)
   ============================================================ */
.trust-strip {
  background-color: #ffffff;
  padding: 1.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #475569;
}

.trust-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #dcfce7;
  color: #15803d;
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.125rem;
}

.trust-text strong {
  display: block;
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 0.125rem;
}

/* ============================================================
   Categories section (homepage)
   ============================================================ */
.categories {
  padding: 2rem 0 1.5rem;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

/* ============================================================
   Featured Brands strip (homepage)
   ============================================================ */
.featured-brands {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid #f1f5f9;
}

.featured-brands-label {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 1rem;
  font-weight: 600;
}

.featured-brands-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

.featured-brands-list span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ============================================================
   Back Link
   ============================================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #2563eb;
  margin-bottom: 1.25rem;
  padding: 0.25rem 0;
}

.back-link::before {
  content: "\2190"; /* left arrow */
  font-size: 1.1em;
  line-height: 1;
}

.back-link:hover,
.back-link:focus {
  text-decoration: underline;
}

/* ============================================================
   Body Grid (2x3 icon grid)
   ============================================================ */
.body-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

/* ============================================================
   Body Tile
   ============================================================ */
.body-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem 0.75rem;
  text-decoration: none;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
  cursor: pointer;
}

.body-tile:hover,
.body-tile:focus {
  background-color: #eff6ff;
  border-color: #93c5fd;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
  text-decoration: none;
  color: #1e293b;
}

.body-tile:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.body-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #eff6ff;
  margin-bottom: 0.625rem;
  transition: background-color 0.15s ease;
}

.body-tile-icon img {
  width: 32px;
  height: 32px;
  display: block;
}

/* Emoji rendering inside the icon badge — keep emoji bigger so it reads clearly */
.body-tile-icon-emoji {
  font-size: 1.875rem;
  line-height: 1;
}

/* Product-image variant of the body-tile icon (when emoji doesn't read clinically) */
.body-tile-icon-img {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  padding: 0;
}

.body-tile-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.body-tile:hover .body-tile-icon,
.body-tile:focus .body-tile-icon {
  background-color: #dbeafe;
}

.body-tile-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
}

/* Desktop: tiles grow slightly, grid stays 2 columns */
@media (min-width: 480px) {
  .body-tile {
    padding: 1.5rem 1rem;
  }

  .body-tile-icon {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }
}

/* ============================================================
   Page Title (body part pages)
   ============================================================ */
.page-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

/* ============================================================
   Product Card
   ============================================================ */
.product-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  border-color: #cbd5e1;
}

.product-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.product-card .use-case {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.5;
}

.product-card .section-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.product-card .section-label .section-icon {
  font-size: 1rem;
  line-height: 1;
}

.product-card .section-content {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.6;
}

.product-card .section-content ul {
  padding-left: 1.25rem;
  margin-top: 0.25rem;
}

.product-card .section-content ul li {
  margin-bottom: 0.25rem;
}

/* Amazon button — full width, pinned to bottom of card */
.product-card .amazon-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  margin-top: auto;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.product-card .amazon-btn:hover,
.product-card .amazon-btn:focus {
  background-color: #1d4ed8;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  text-decoration: none;
  color: #ffffff;
}

.product-card .amazon-btn:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.product-card .amazon-btn:active {
  background-color: #1e40af;
}

/* ============================================================
   Coming Soon
   ============================================================ */
.coming-soon {
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
  font-size: 1rem;
}

.coming-soon .coming-soon-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.coming-soon p {
  font-size: 1rem;
  line-height: 1.5;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  margin-top: auto;
  padding: 1.75rem 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-disclosure {
  max-width: 38rem;
  margin: 0 auto 0.75rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.footer a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover,
.footer a:focus {
  color: #2563eb;
  text-decoration: underline;
}

.footer-nav span {
  color: #cbd5e1;
}

/* ============================================================
   Content pages (About, Privacy, Disclosure)
   ============================================================ */
.content-page {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  max-width: 720px;
}

.content-page h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 1rem 0 0.75rem;
}

.content-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.5rem;
}

.content-page h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 1.25rem 0 0.5rem;
}

.content-page p {
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 0.875rem;
}

.content-page ul {
  margin: 0 0 1rem 1.5rem;
}

.content-page li {
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.content-page strong {
  color: #0f172a;
}

.content-page blockquote {
  border-left: 3px solid #cbd5e1;
  padding: 0.25rem 0 0.25rem 1rem;
  margin: 0.75rem 0;
  color: #475569;
  font-style: italic;
}

.content-page .muted {
  color: #94a3b8;
  font-size: 0.875rem;
}

.content-page .updated {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

/* ============================================================
   Product gallery — horizontal swipe-through for multiple product
   images per card. Uses native CSS scroll-snap so it works on
   touch (mobile swipe) and trackpad without any JavaScript.
   Single-image cards still use the .product-img pattern below.
   ============================================================ */
.product-card .product-gallery {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  width: 100%;
  max-width: 300px;
  margin: 0 auto 1rem;
  border-radius: 0.5rem;
  background: #f8fafc;
  gap: 0;
  scroll-padding: 0;
}

.product-card .product-gallery::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

.product-card .product-gallery img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  display: block;
  scroll-snap-align: start;
  object-fit: contain;
  background: #f8fafc;
}

.product-card .gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
  margin: -0.5rem auto 1rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.product-card .gallery-dots::before {
  content: "← swipe →";
  letter-spacing: 0.05em;
}

/* ============================================================
   Product image — medium product photo at top of each card
   (single-image cards; gallery above is for multi-image cards)
   onerror in HTML swaps to placeholder.svg if URL doesn't resolve.
   ============================================================ */
.product-card .product-img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto 1rem;
  border-radius: 0.5rem;
  background: #f8fafc;
}

/* ============================================================
   Amazon button alt — outlined secondary for budget alternative
   ============================================================ */
.product-card .amazon-btn-alt {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: #2563eb;
  border: 1px solid #2563eb;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  border-radius: 0.5rem;
  text-decoration: none;
}

.product-card .amazon-btn-alt:hover,
.product-card .amazon-btn-alt:focus {
  background: #eff6ff;
  text-decoration: none;
}

/* ============================================================
   Report-a-Problem button — small secondary button under Amazon link
   ============================================================ */
.report-btn {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  color: #64748b;
  font-size: 0.8125rem;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
}

.report-btn:hover,
.report-btn:focus {
  background: #f8fafc;
  color: #475569;
}

.report-btn.reported {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
  cursor: default;
}

