/* Robot Lab — mobile-first, Canada Amazon.ca affiliate */
:root {
  --bg: #0f1419;
  --surface: #1a222d;
  --surface-2: #243041;
  --text: #e8eef4;
  --muted: #9aabbc;
  --accent: #3d9cf0;
  --accent-hover: #5aaff7;
  --cta: #ff9900;
  --cta-hover: #ffb84d;
  --cta-text: #111;
  --border: #2e3d4f;
  --ok: #3dd68c;
  --warn: #f5a623;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0,0,0,.35);
  --max: 960px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,20,25,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0; flex-wrap: wrap;
}
.logo {
  font-weight: 800; font-size: 1.15rem; color: var(--text);
  letter-spacing: -.02em; text-decoration: none;
}
.logo:hover { color: var(--accent); text-decoration: none; }
.logo span { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: .35rem .85rem; font-size: .9rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero {
  padding: 2.25rem 0 1.75rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.hero h1 {
  margin: 0 0 .65rem; font-size: clamp(1.55rem, 4.5vw, 2.15rem);
  line-height: 1.2; letter-spacing: -.02em;
}
.hero .lede { color: var(--muted); margin: 0 0 1.25rem; max-width: 42rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: .5rem .75rem;
  margin-bottom: 1.25rem; font-size: .85rem; color: var(--muted);
}
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: .25rem .7rem; color: var(--text);
}
.badge.prime { border-color: #3d7eff; color: #8eb6ff; }
.badge.ship { border-color: var(--ok); color: var(--ok); }

.cta-row { display: flex; flex-wrap: wrap; gap: .65rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .7rem 1.15rem; border-radius: 8px;
  font-weight: 700; font-size: .95rem; border: none; cursor: pointer;
  text-decoration: none; transition: background .15s, transform .1s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-cta { background: var(--cta); color: var(--cta-text); }
.btn-cta:hover { background: var(--cta-hover); color: var(--cta-text); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .45rem .85rem; font-size: .85rem; }

/* Layout */
main { padding: 1.75rem 0 3rem; }
.section { margin-bottom: 2.25rem; }
.section h2 {
  margin: 0 0 1rem; font-size: 1.35rem; letter-spacing: -.01em;
}
.section h3 { margin: 1.25rem 0 .5rem; font-size: 1.1rem; }
.muted { color: var(--muted); }
.note {
  font-size: .85rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .75rem 1rem; margin: 1rem 0;
}

/* Category grid (home) */
.grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 800px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow); transition: border-color .15s;
}
.card:hover { border-color: var(--accent); }
a.card { color: inherit; text-decoration: none; display: block; }
a.card:hover { color: inherit; }
.card h3 { margin: 0 0 .4rem; font-size: 1.05rem; color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }
.card .tag {
  display: inline-block; margin-top: .75rem;
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--accent);
}

/* Verdict */
.verdict {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--ok); border-radius: var(--radius);
  padding: 1.15rem 1.25rem; margin-bottom: 1.5rem;
}
.verdict h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
.verdict p { margin: 0; color: var(--muted); }

/* Product / pick cards */
.pick {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1rem;
}
.pick-header {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: .5rem; margin-bottom: .65rem;
}
.pick-header h3 { margin: 0; font-size: 1.1rem; }
.pick-rank {
  font-size: .75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; color: var(--cta);
}
.pick ul { margin: .5rem 0 1rem; padding-left: 1.15rem; color: var(--muted); }
.pick li { margin-bottom: .25rem; }
.who {
  font-size: .9rem; color: var(--muted);
  border-top: 1px solid var(--border); padding-top: .75rem; margin-top: .5rem;
}
.who strong { color: var(--text); }

/* Comparison table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0; }
table {
  width: 100%; border-collapse: collapse; font-size: .9rem;
  min-width: 520px;
}
th, td {
  text-align: left; padding: .65rem .75rem;
  border-bottom: 1px solid var(--border);
}
th { background: var(--surface-2); color: var(--text); font-weight: 700; }
td { color: var(--muted); }
tr:hover td { background: rgba(61,156,240,.06); }

/* Pros/cons */
.pros-cons {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .pros-cons { grid-template-columns: 1fr 1fr; }
}
.pros, .cons {
  background: var(--surface); border-radius: var(--radius);
  padding: 1rem 1.1rem; border: 1px solid var(--border);
}
.pros { border-top: 3px solid var(--ok); }
.cons { border-top: 3px solid var(--warn); }
.pros h3, .cons h3 { margin: 0 0 .5rem; font-size: 1rem; }
.pros ul, .cons ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }

/* Footer / disclosure */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.75rem 0 2.25rem;
  font-size: .85rem; color: var(--muted);
}
.site-footer .disclosure {
  margin-bottom: 1rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: .75rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .copy { margin: 0; }

/* Utility */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.todo-asin {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem; color: var(--warn);
}


/* Pass 2 — post-verdict conversion CTA */
.cta-after-verdict {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  margin: -0.5rem 0 1.75rem;
  padding: 1rem 1.15rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.cta-after-verdict .cta-label {
  margin: 0; flex: 1 1 12rem; color: var(--muted); font-size: .92rem;
}
.cta-after-verdict .cta-label strong { color: var(--text); }

/* Canada notes block */
.canada-notes {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}
.canada-notes h2 { margin-top: 0; }
.canada-notes p { color: var(--muted); margin: 0 0 .85rem; }
.canada-notes p:last-child { margin-bottom: 0; }
.canada-notes strong { color: var(--text); }

/* FAQ teaser (home) */
.faq-teaser ul { margin: .5rem 0 0; padding-left: 1.15rem; color: var(--muted); }
.faq-teaser li { margin-bottom: .35rem; }
.faq-teaser a { font-weight: 600; }
