/* Deal Nexas — Mobile-first affiliate design
   Warm neutrals + teal primary + orange deal accent */

:root {
  --bg: #f7f4ef;
  --bg-card: #ffffff;
  --bg-soft: #efeae3;
  --text: #1c1917;
  --text-muted: #57534e;
  --border: #e7e0d6;
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-soft: #ccfbf1;
  --deal: #ea580c;
  --deal-dark: #c2410c;
  --deal-soft: #ffedd5;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.06), 0 8px 24px rgba(28, 25, 23, 0.06);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --container: 1120px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
h3 { font-size: 1.15rem; font-family: var(--font); font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.container.narrow { width: min(100% - 2rem, 760px); }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff;
  padding: 0.5rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: opacity .15s ease;
}
.logo:hover { color: inherit; opacity: 0.92; }
.logo__mark {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: block;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(15, 118, 110, 0.08),
    0 8px 20px rgba(13, 148, 136, 0.22);
  transition: transform .18s ease, box-shadow .18s ease;
}
.logo:hover .logo__mark {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(15, 118, 110, 0.1),
    0 10px 24px rgba(13, 148, 136, 0.28);
}
.logo__mark img {
  width: 42px;
  height: 42px;
  display: block;
}
.logo__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.08rem;
  line-height: 1.12;
  min-width: 0;
}
.logo__name {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: var(--text);
}
.logo__tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(12.5rem, 42vw);
}
@media (min-width: 860px) {
  .logo__mark { width: 44px; height: 44px; border-radius: 13px; }
  .logo__mark img { width: 44px; height: 44px; }
  .logo__name { font-size: 1.15rem; }
  .logo__tag { max-width: 15rem; }
}
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 1px solid var(--border); border-radius: 10px;
  padding: 0.55rem 0.65rem; cursor: pointer;
}
.nav-toggle__bar { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.site-nav { display: none; }
.site-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--bg); border-bottom: 1px solid var(--border); padding: 0.75rem 1rem 1.25rem; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.site-nav__list a {
  display: block; padding: 0.65rem 0.75rem; border-radius: 10px;
  text-decoration: none; color: var(--text); font-weight: 500;
}
.site-nav__list a:hover { background: var(--bg-soft); color: var(--primary-dark); }

/* Header CTA — slim, editorial, matches site (not a heavy black badge) */
.site-nav__cta { margin-top: 0.65rem; }
.btn-shop-ae {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 40px;
  padding: 0 0.95rem 0 0.85rem;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  color: #9a3412 !important;
  background: #fff;
  border: 1px solid #fdba74;
  box-shadow: 0 1px 2px rgba(234, 88, 12, 0.06);
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .12s ease;
  white-space: nowrap;
}
.btn-shop-ae:hover {
  color: #fff !important;
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  border-color: #ea580c;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.22);
  transform: translateY(-1px);
}
.btn-shop-ae:active { transform: translateY(0); }
.btn-shop-ae__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: inherit;
  opacity: 0.92;
}
.btn-shop-ae__copy {
  line-height: 1;
}
.btn-shop-ae__arrow {
  font-size: 0.78rem;
  line-height: 1;
  opacity: 0.7;
  margin-left: 0.05rem;
}
.btn-shop-ae:hover .btn-shop-ae__arrow { opacity: 1; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; position: static; background: none; border: 0; padding: 0; }
  .site-nav__list { flex-direction: row; align-items: center; gap: 0.15rem; }
  .site-nav__list a { padding: 0.45rem 0.75rem; }
  .site-nav__cta { margin-top: 0; margin-left: 0.55rem; }
  .site-nav__list > li:not(.site-nav__cta) > a { padding: 0.45rem 0.75rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.75rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--text-muted); color: var(--text); }
.btn--deal { background: var(--deal); color: #fff; border: 0; }
.btn--deal:hover { background: var(--deal-dark); color: #fff; }
.btn--sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

/* Hero */
.hero {
  padding: 2.5rem 0 2rem;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(13,148,136,.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(234,88,12,.08), transparent 50%),
    var(--bg);
}
.hero__grid {
  display: grid; gap: 2rem;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
}
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--primary-dark); margin-bottom: 0.75rem;
}
.hero h1 { margin-bottom: 0.75rem; }
.hero__lead { font-size: 1.125rem; color: var(--text-muted); max-width: 38rem; }
.hero__panel {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.hero__panel h2 { font-size: 1.1rem; font-family: var(--font); margin-bottom: 0.75rem; }
.hero__checklist { list-style: none; padding: 0; margin: 0; }
.hero__checklist li {
  padding: 0.55rem 0 0.55rem 1.75rem; position: relative; border-bottom: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.95rem;
}
.hero__checklist li:last-child { border-bottom: 0; }
.hero__checklist li::before {
  content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700;
}

/* Sections */
.section { padding: 3rem 0; }
.section--soft { background: var(--bg-soft); }
.section__head { margin-bottom: 1.5rem; max-width: 40rem; }
.section__head p { color: var(--text-muted); margin: 0; }
.section__actions { margin-top: 1.5rem; }

/* Cards grids */
.card-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
@media (min-width: 700px) {
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
.problem-card, .cat-card, .tool-card, .guide-card, .info-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.15rem; text-decoration: none; color: inherit;
  transition: box-shadow .15s, border-color .15s, transform .15s;
  display: block;
}
a.problem-card:hover, a.cat-card:hover, a.tool-card:hover, a.guide-card:hover {
  box-shadow: var(--shadow); border-color: #d6cfc3; transform: translateY(-2px);
}
.problem-card__icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.problem-card h3, .cat-card h3, .tool-card h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.problem-card p, .cat-card p, .tool-card p, .guide-card p {
  margin: 0; font-size: 0.9rem; color: var(--text-muted);
}
.guide-card { height: 100%; }
.guide-card__meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.guides-grid, .tools-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .guides-grid, .tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .guides-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Product cards */
.product-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
@media (min-width: 720px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
.pcard {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.pcard__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.pcard__img-wrap {
  aspect-ratio: 1;
  background: var(--bg-soft);
  overflow: hidden;
  position: relative;
}
.pcard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-soft);
  color: transparent; /* hide long alt text flash if image breaks before onerror */
}
.pcard__body { padding: 0.85rem 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.pcard__title {
  font-family: var(--font); font-size: 0.9rem; font-weight: 500; line-height: 1.35;
  margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; }
.pcard__sale { font-weight: 700; color: var(--deal); font-size: 1.05rem; }
.pcard__orig { text-decoration: line-through; color: var(--text-muted); font-size: 0.85rem; }
.pcard__disc {
  font-size: 0.75rem; font-weight: 600; color: var(--deal-dark);
  background: var(--deal-soft); padding: 0.1rem 0.4rem; border-radius: 999px;
}
.pcard__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.78rem; color: var(--text-muted); }
.pcard .btn { margin-top: auto; align-self: flex-start; }

/* Page chrome */
.page { padding: 2rem 0 3.5rem; min-height: 50vh; }
.page-hero { margin-bottom: 1.75rem; }
.page-hero p { color: var(--text-muted); max-width: 42rem; }
.breadcrumbs { margin-bottom: 1rem; font-size: 0.875rem; }
.breadcrumbs__list {
  list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem;
  color: var(--text-muted);
}
.breadcrumbs__item:not(:last-child)::after { content: "/"; margin-left: 0.35rem; opacity: 0.5; }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }

/* Content prose (guides, legal) */
.prose { max-width: 720px; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose .toc {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; margin: 1.5rem 0;
}
.prose .toc h2 { margin: 0 0 0.5rem; font-size: 1rem; font-family: var(--font); }
.prose .toc ol { margin: 0; }
.criteria-list, .mistake-list {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 2rem; margin: 1rem 0 1.5rem;
}
.callout {
  background: var(--primary-soft); border-left: 4px solid var(--primary);
  padding: 1rem 1.15rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.25rem 0;
}
.callout--warn { background: var(--deal-soft); border-left-color: var(--deal); }
.faq details {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.85rem 1rem; margin-bottom: 0.6rem;
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq details[open] summary { margin-bottom: 0.5rem; }
.faq p:last-child { margin-bottom: 0; }

/* Tools */
.tool-app {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow); margin: 1.25rem 0 2rem;
}
.tool-app label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.tool-app .field { margin-bottom: 1rem; }
.tool-app input[type="text"],
.tool-app input[type="number"],
.tool-app select,
.tool-app textarea {
  width: 100%; padding: 0.65rem 0.75rem; border: 1px solid var(--border);
  border-radius: 10px; font: inherit; background: #fff; color: var(--text);
}
.tool-app input:focus, .tool-app select:focus, .tool-app textarea:focus {
  outline: 2px solid var(--primary-soft); border-color: var(--primary);
}
.tool-app .field-row {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .tool-app .field-row { grid-template-columns: 1fr 1fr; }
}
.tool-app .check-grid {
  display: grid; gap: 0.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 500px) {
  .tool-app .check-grid { grid-template-columns: 1fr 1fr; }
}
.tool-app .check-item {
  display: flex; gap: 0.5rem; align-items: flex-start;
  padding: 0.5rem 0.65rem; background: var(--bg-soft); border-radius: 8px; font-size: 0.92rem;
}
.tool-app__lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.15rem;
}
.tool-result {
  margin-top: 1.25rem; padding: 1.15rem; border-radius: var(--radius-sm);
  background: var(--primary-soft); border: 1px solid #99f6e4;
  display: none;
}
.tool-result.is-visible { display: block; }
.tool-result h3 { margin-top: 0; }
.tool-result--plan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.tool-error { color: var(--deal-dark); font-size: 0.9rem; margin-top: 0.5rem; display: none; }
.tool-error.is-visible { display: block; }
.tool-seo { margin-top: 2.5rem; }
.plan-block { margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.plan-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.plan-block__title { margin: 0 0 0.35rem; font-size: 1.2rem; }
.plan-block__meta { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.plan-block h4 { margin: 0 0 0.55rem; font-size: 1rem; }
.plan-priority, .plan-checks, .plan-links { list-style: none; padding: 0; margin: 0; }
.plan-priority li, .plan-checks li, .plan-links li { padding: 0.35rem 0; }
.plan-stars { color: var(--deal); letter-spacing: 0.06em; font-size: 0.95rem; }
.plan-budget {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
}
.plan-note { margin: 0; font-size: 0.88rem; color: var(--text-muted); }
.plan-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.85rem 0 0; }

/* Priority progress bars */
.plan-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.plan-bar__head { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.3rem; font-size: 0.95rem; }
.plan-bar__track {
  height: 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  overflow: hidden;
}
.plan-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) 0%, #2dd4bf 55%, var(--deal) 100%);
  min-width: 4px;
  transition: width .35s ease;
}

/* Spending table */
.plan-spend {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.plan-spend th, .plan-spend td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.plan-spend th { font-weight: 600; background: #e7e0d6; }
.plan-spend__total td { border-bottom: 0; background: #fff; }

/* Shopping list cards */
.shop-cards {
  display: grid;
  gap: 0.75rem;
}
.shop-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
}
.shop-card__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-family: var(--font);
  font-weight: 600;
}
.shop-card__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.shop-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tool-extra { margin-top: 2rem; }

/* Quiz */
.quiz-grid { display: grid; gap: 0.85rem; margin-bottom: 1.25rem; }
.quiz-q {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}
.quiz-q legend {
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0 0.25rem;
}
.quiz-opts { display: grid; gap: 0.35rem; margin-top: 0.5rem; }
@media (min-width: 600px) {
  .quiz-opts { grid-template-columns: 1fr; }
}

/* Score + viral */
.score-hero { text-align: center; }
.score-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  margin: 0.25rem 0;
  color: var(--primary-dark);
  line-height: 1;
}
.score-number--sm { font-size: clamp(2rem, 5vw, 2.75rem); }
.score-denom { font-size: 0.45em; color: var(--text-muted); font-weight: 600; }
.score-stars { font-size: 1.35rem; margin: 0.35rem 0; }
.score-summary { margin: 0.5rem 0 0; font-size: 1.05rem; }
.plan-bar__pct { margin-left: auto; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.plan-weeks { margin: 0; padding-left: 1.2rem; }
.plan-weeks li { margin-bottom: 0.4rem; }

.viral-bar {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.viral-bar__label { margin: 0 0 0.55rem; }
.viral-bar__actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Before / After */
.ba-grid {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}
@media (min-width: 640px) {
  .ba-grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
  }
  .ba-arrow { display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary); }
}
.ba-arrow { text-align: center; font-size: 1.25rem; color: var(--primary); font-weight: 700; }
.ba-card {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
}
.ba-card h4 { margin: 0 0 0.5rem; font-size: 0.95rem; }
.ba-card--before { background: #fafaf9; }
.ba-card--after { background: var(--primary-soft); border-color: #99f6e4; }

/* Print / Save as PDF */
@media print {
  .site-header, .site-footer, .nav-toggle, .tool-app > .field,
  .tool-app > .field-row, .tool-app > .btn, .tool-app__lead,
  .tool-seo, .tool-extra, .faq, .related-grid, .skip-link,
  .breadcrumbs, .viral-bar__actions, .page-hero p {
    display: none !important;
  }
  body.print-tool-result .tool-app > .btn,
  body.print-tool-result .quiz-grid,
  body.print-tool-result form > :not(.tool-result) {
    display: none !important;
  }
  body.print-tool-result .tool-result,
  .tool-result.is-visible {
    display: block !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }
  .shop-card { break-inside: avoid; }
  a[href]::after { content: ""; }
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
table.compare {
  width: 100%; border-collapse: collapse; font-size: 0.92rem; background: var(--bg-card);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
}
table.compare th, table.compare td {
  padding: 0.75rem 0.9rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top;
}
table.compare th { background: var(--bg-soft); font-weight: 600; }
table.compare tr:last-child td { border-bottom: 0; }

/* Disclosure / notices */
.disclosure, .price-notice {
  font-size: 0.88rem; color: var(--text-muted); line-height: 1.5;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.85rem 1rem; margin: 1rem 0;
}
.empty-state {
  background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 1.5rem; color: var(--text-muted); text-align: center;
}
.api-note {
  font-size: 0.85rem; color: var(--text-muted); margin-top: 0.75rem;
}

/* How we choose */
.steps {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem;
}
.step__num {
  width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.75rem;
}

/* Footer */
.site-footer {
  background: #1c1917; color: #d6d3d1; padding: 3rem 0 1.5rem; margin-top: 2rem;
}
.site-footer a { color: #f5f5f4; text-decoration: none; }
.site-footer a:hover { color: #5eead4; }
.site-footer__grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.site-footer__name { font-family: var(--font-display); font-size: 1.25rem; color: #fff; margin: 0 0 0.35rem; }
.site-footer__tag { color: #a8a29e; font-size: 0.9rem; margin: 0 0 0.75rem; }
.site-footer__blurb { font-size: 0.9rem; color: #a8a29e; margin: 0; }
.site-footer__heading {
  font-family: var(--font); font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: #a8a29e; margin: 0 0 0.75rem;
}
.site-footer__links { list-style: none; padding: 0; margin: 0; font-size: 0.92rem; }
.site-footer__links li { margin-bottom: 0.4rem; }
.site-footer__bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #44403c; }
.site-footer .disclosure {
  background: #292524; border-color: #44403c; color: #a8a29e;
}
.site-footer .disclosure a { color: #5eead4; }
.site-footer__copy { font-size: 0.82rem; color: #78716c; margin: 1rem 0 0; }
.site-footer__email { margin-top: 1rem; font-size: 0.9rem; }

/* Legal / list helpers */
.link-list { line-height: 1.9; }
.related-grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .related-grid { grid-template-columns: 1fr 1fr; }
}
.related-grid a {
  display: block; padding: 0.85rem 1rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; color: inherit;
}
.related-grid a:hover { border-color: var(--primary); }
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 0.2rem 0.5rem; border-radius: 999px;
  background: var(--deal-soft); color: var(--deal-dark);
}
.two-col {
  display: grid; gap: 2rem;
}
@media (min-width: 860px) {
  .two-col { grid-template-columns: 1fr 320px; align-items: start; }
}
.sidebar-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.15rem; position: sticky; top: calc(var(--header-h) + 1rem);
}
.sidebar-box h2 { font-size: 1rem; font-family: var(--font); margin: 0 0 0.75rem; }
.sidebar-box ul { margin: 0; padding-left: 1.1rem; font-size: 0.92rem; }
.sidebar-box li { margin-bottom: 0.4rem; }

/* Deals index chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.chip {
  display: inline-flex; padding: 0.4rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text);
  text-decoration: none; font-size: 0.88rem; font-weight: 500;
}
.chip:hover, .chip.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Print */
@media print {
  .site-header, .site-footer, .nav-toggle, .btn { display: none !important; }
  body { background: #fff; }
}
