/* ==========================================================================
   CheapestLabs.com — production stylesheet
   Self-contained superset of the inline CRITICAL_CSS in src/templates.js.
   Loaded async (rel=preload onload), so it must render the page on its own.
   ========================================================================== */

:root {
  --brand: #0b6a63;
  --brand-2: #0e8f84;
  --brand-ink: #06423d;
  --ink: #14212b;
  --muted: #5b6b78;
  --line: #e3e9ee;
  --bg: #fff;
  --bg-soft: #f5f9f9;
  --warn: #b45309;
  --warn-bg: #fff7ed;
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1100px;
  --shadow: 0 1px 2px rgba(16, 32, 45, .06), 0 8px 24px rgba(16, 32, 45, .06);
  --focus: 0 0 0 3px rgba(14, 143, 132, .45);
}

/* --- base ---------------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
h1, h2, h3 { line-height: 1.25; color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* --- layout -------------------------------------------------------------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
.section-title { font-size: 1.35rem; margin: 0 0 12px; }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }

/* --- skip link ----------------------------------------------------------- */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 8px; top: 8px; background: #fff; padding: 8px 12px;
  z-index: 100; border-radius: 6px; box-shadow: var(--shadow);
}

/* --- header -------------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: relative; }
.site-header .container {
  display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap;
}
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; width: 132px; height: 32px; object-fit: contain; }
.nav { display: flex; gap: 14px; flex-wrap: wrap; margin-left: auto; }
.nav a { color: var(--ink); padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { text-decoration: none; border-bottom-color: var(--brand); }

/* --- hero ---------------------------------------------------------------- */
.hero { background: var(--bg-soft); padding: 32px 0; border-bottom: 1px solid var(--line); }
.hero-title { margin: 0 0 8px; font-size: 1.9rem; line-height: 1.2; }
.hero-sub { margin: 0; color: var(--muted); max-width: 60ch; }
.eyebrow {
  display: inline-block; margin: 0 0 10px; font-size: .78rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--brand);
  background: rgba(11, 106, 99, .08); padding: 4px 10px; border-radius: 999px;
}

/* --- cards --------------------------------------------------------------- */
.card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.card:hover { text-decoration: none; border-color: var(--brand-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.card-title { margin: 0 0 6px; font-size: 1.05rem; }
.card-meta { margin: 0; color: var(--muted); font-size: .9rem; }

/* --- CTA buttons --------------------------------------------------------- */
.cta {
  display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 600;
  min-height: 44px; line-height: 20px; text-align: center; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.cta-primary { background: var(--brand); color: #fff; }
.cta-primary:hover { background: var(--brand-2); text-decoration: none; color: #fff; }
.cta-secondary { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.cta-secondary:hover { background: var(--bg-soft); text-decoration: none; }
.cta-line { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }

/* --- price badge --------------------------------------------------------- */
.price-badge {
  display: inline-flex; flex-direction: column; gap: 2px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px;
}
.price-value { font-size: 1.4rem; font-weight: 700; color: var(--brand-ink); }
.price-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* --- breadcrumbs --------------------------------------------------------- */
.breadcrumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0;
  margin: 0; font-size: .85rem; color: var(--muted);
}
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }

/* --- callouts ------------------------------------------------------------ */
.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--brand);
  background: var(--bg-soft); padding: 12px 14px; border-radius: var(--radius-sm);
  margin: 16px 0;
}
.badge-restricted { border-left-color: var(--warn); background: var(--warn-bg); }
.badge-restricted strong { color: var(--warn); }

/* --- FAQ ----------------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: #fff; }
.faq-q { margin: 0 0 6px; font-size: 1rem; }
.faq-a { color: var(--ink); }
.faq-a p { margin: 0 0 8px; }
.faq-a p:last-child { margin-bottom: 0; }

/* --- steps --------------------------------------------------------------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { position: relative; padding: 4px 0 4px 52px; min-height: 40px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 36px; height: 36px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700;
}
.steps li strong { display: block; }

/* --- stats --------------------------------------------------------------- */
.stat-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.stat {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.stat strong { font-size: 1.5rem; color: var(--brand-ink); line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--muted); }

/* --- pagination ---------------------------------------------------------- */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap; padding: 20px 0;
}
.pagination a {
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--brand); background: #fff; min-height: 44px; display: inline-flex; align-items: center;
}
.pagination a:hover { text-decoration: none; border-color: var(--brand); background: var(--bg-soft); }
.page-count { color: var(--muted); font-size: .9rem; }
.disabled { color: var(--line); padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; }

/* --- prose --------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { margin: 1.4em 0 .5em; font-size: 1.3rem; }
.prose h3 { margin: 1.2em 0 .4em; font-size: 1.1rem; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin: 0 0 .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--bg-soft); }
.prose a { text-decoration: underline; }

/* --- footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .9rem; background: var(--bg-soft); }
.site-footer a { color: var(--brand); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 16px; }
.footer-grid h3 { margin: 0 0 8px; font-size: 1rem; color: var(--ink); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

/* --- disclaimers --------------------------------------------------------- */
.disclaimer, .affiliate-disclosure { font-size: .82rem; color: var(--muted); }
.affiliate-disclosure { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 16px; }

/* --- panel facts / review stamp ---------------------------------------- */
.facts { display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); margin: 14px 0; overflow: hidden; }
.facts .fact { display: flex; justify-content: space-between; gap: 12px; background: #fff; padding: 10px 14px; }
.facts dt { margin: 0; color: var(--muted); font-size: .85rem; }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.review-stamp { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }

/* --- responsive ---------------------------------------------------------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2.3rem; }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 44px 0; }
}

/* --- motion / print ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .nav, .cta-line, .pagination { display: none !important; }
  body { color: #000; }
}
