/* Cedric & Co — Shark Matrix Robot Vacuum affiliate mini-site
   Cream / terracotta / espresso. Simplified from Fall Kids tokens. */
:root {
  --cream: #f7f0e6;
  --cream-dark: #efe4d4;
  --cream-light: #fbf7f1;
  --terracotta: #c46a4a;
  --terracotta-dark: #a85438;
  --terracotta-soft: #e8b29a;
  --espresso: #2c211c;
  --charcoal: #3a322e;
  --muted: #6b5c54;
  --border: #e0d4c4;
  --white: #fffefb;
  --shadow: 0 12px 40px rgba(44, 33, 28, 0.08);
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max: 1080px;
  --buybar-h: 0px;
  --focus: 0 0 0 3px var(--cream), 0 0 0 5px var(--terracotta);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--espresso);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-bottom: var(--buybar-h);
}

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

a { color: var(--terracotta-dark); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--espresso); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
}

.btn:focus-visible,
.site-nav a:focus-visible,
.nav-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* —— Affiliate disclosure (FTC-visible, cream/terracotta) —— */
.affiliate-disclosure {
  background: var(--cream-dark);
  border-bottom: 2px solid var(--terracotta-soft);
  border-top: 1px solid var(--border);
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
  max-width: none;
}
.affiliate-disclosure strong { color: var(--espresso); font-weight: 700; }

/* —— Skip link —— */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 210;
  background: var(--espresso);
  color: var(--cream);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.skip-link:focus {
  top: 0.5rem;
  color: var(--cream);
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
}

/* —— Header + site nav —— */
.site-header {
  background: var(--cream-light);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  position: relative;
  z-index: 90;
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.wordmark {
  height: 28px;
  width: auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem 0.65rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--espresso);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  gap: 0.4rem;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: var(--espresso);
  border-radius: 1px;
}

.site-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  padding-top: 0.75rem;
}

.site-header-inner.nav-open .site-nav,
.site-nav.is-open {
  display: flex;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--terracotta-dark);
  background: var(--cream-dark);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--terracotta);
}

.header-buy {
  display: none;
}

.site-nav.is-open .header-buy,
.site-header-inner.nav-open .header-buy {
  display: inline-flex;
  width: 100%;
  margin: 0.35rem 0 0;
  justify-content: center;
}

/* —— Layout —— */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

.section { padding: 2.25rem 0; }

.section-alt { background: var(--cream-dark); }

.section h2 {
  font-size: clamp(1.3rem, 4.5vw, 1.75rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

/* —— Hero —— */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0 0.75rem;
}

.hero-media {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 0.65rem;
  max-width: 28rem;
  margin: 0 auto;
  width: 100%;
}

.hero-media img,
.pitch-media img {
  width: 100%;
  border-radius: calc(var(--radius) - 6px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.pitch-media {
  margin: 1rem 0 1.25rem;
  max-width: 28rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 0.65rem;
}

.img-credit {
  display: block;
  margin: 0.45rem 0.15rem 0.1rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.65rem;
}

.hero h1 {
  font-size: clamp(1.45rem, 5.5vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--espresso);
  letter-spacing: -0.02em;
}

.verdict {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--terracotta);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin: 0 0 1.25rem;
  max-width: 36rem;
}
.verdict strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.35rem;
}
.verdict p {
  margin: 0;
  color: var(--charcoal);
  font-size: 0.98rem;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin-bottom: 1rem;
}

.price-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.blurb {
  font-size: 1.05rem;
  color: var(--charcoal);
  margin: 0 0 1.35rem;
  max-width: 36rem;
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.chip {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--charcoal);
  background: var(--cream-dark);
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

/* —— CTAs —— */
.cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 1.25rem;
  min-height: 48px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  text-align: center;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--espresso);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--terracotta);
  color: var(--terracotta-dark);
}

.cta-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
  max-width: 28rem;
}

/* —— Sticky mobile buy bar —— */
.mobile-buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(251, 247, 241, 0.96);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(44, 33, 28, 0.08);
  backdrop-filter: blur(8px);
}

.mobile-buybar .btn {
  flex: 1;
  min-height: 48px;
  padding: 0.75rem 0.5rem;
  font-size: 0.875rem;
}

body.has-buybar { --buybar-h: 4.75rem; }

/* —— Problem → relief —— */
.problem-relief {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.pr-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem;
  box-shadow: 0 4px 16px rgba(44, 33, 28, 0.04);
}

.pr-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.pr-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.pr-card.problem { border-top: 3px solid var(--muted); }
.pr-card.relief { border-top: 3px solid var(--terracotta); }

/* —— Checklist / how it works —— */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.checklist li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 1.05rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: inset 0 0 0 3px var(--cream), 0 0 0 2px var(--terracotta);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.steps li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.15rem 1.15rem;
  position: relative;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.steps p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* —— Spec cards —— */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.spec-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem;
}

.spec-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--espresso);
}

.spec-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.sku-list {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--charcoal);
  font-size: 0.92rem;
}
.sku-list li { margin-bottom: 0.35rem; }

/* —— Who for / pros cons —— */
.two-col,
.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.panel ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--charcoal);
}

.panel li { margin-bottom: 0.4rem; }

.panel.not-for h3 { color: var(--muted); }

.pros-cons { margin: 1rem 0 0; }

.pros-cons > div {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
}

.pros-cons h3 {
  font-size: 1rem;
  margin: 0 0 0.65rem;
}

.pros-cons ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--charcoal);
}

.pros-cons li { margin-bottom: 0.4rem; font-size: 0.95rem; }

.page-hero {
  padding: 1.75rem 0 0.5rem;
}

.page-hero h1 {
  font-size: clamp(1.45rem, 5vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.page-hero .blurb { margin-bottom: 0; }

.article-lede {
  font-size: 1.05rem;
  color: var(--charcoal);
  max-width: 40rem;
  margin: 0 0 1.35rem;
}

.why-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.why-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
}

.why-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.why-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.compare-note {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  max-width: 40rem;
}
.compare-note p {
  margin: 0 0 0.75rem;
  color: var(--charcoal);
  font-size: 0.98rem;
}
.compare-note p:last-child { margin-bottom: 0; }

/* —— FAQ —— */
.faq-list {
  display: grid;
  gap: 0.65rem;
  max-width: 40rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--espresso);
  padding: 1rem 2.75rem 1rem 1.2rem;
  min-height: 48px;
  position: relative;
  display: flex;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item summary:focus-visible {
  outline: none;
  box-shadow: inset var(--focus);
}

.faq-item .faq-answer {
  margin: 0;
  padding: 0 1.2rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-item .faq-answer a { font-weight: 600; }

/* —— Buy band —— */
.shop-strip {
  background: var(--espresso);
  color: var(--cream);
  padding: 2rem 0;
  text-align: center;
}

.shop-strip h2 {
  color: var(--cream);
  margin: 0 0 0.5rem;
  font-size: clamp(1.3rem, 4.5vw, 1.75rem);
}

.shop-strip p {
  color: rgba(247, 240, 230, 0.78);
  margin: 0 auto 1.25rem;
  max-width: 32rem;
}

.shop-strip .btn-primary { background: var(--terracotta); }

.shop-strip .btn-secondary {
  color: var(--cream);
  border-color: rgba(247, 240, 230, 0.35);
}

.shop-strip .btn-secondary:hover {
  border-color: var(--terracotta-soft);
  color: var(--cream);
}

.shop-strip .cta-note {
  color: rgba(247, 240, 230, 0.55);
  margin-left: auto;
  margin-right: auto;
}

.shop-strip .cta-row { justify-content: center; }

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--cream-light);
  padding: 2rem 1rem 2.25rem;
  text-align: center;
}

.footer-mark {
  height: 40px;
  width: auto;
  margin: 0 auto 0.75rem;
  opacity: 0.85;
}

.footer-wordmark {
  height: 28px;
  width: auto;
  margin: 0 auto 0.65rem;
}

.site-footer p {
  margin: 0.25rem 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer .brand-name {
  font-weight: 700;
  color: var(--espresso);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin: 0.85rem 0 0.5rem;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover { color: var(--terracotta-dark); }

/* —— ≥520px —— */
@media (min-width: 520px) {
  .wrap { padding: 0 1.25rem; }
  .site-header { padding: 0.85rem 1.25rem; }
  .wordmark { height: 32px; }
  .cta-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .btn { width: auto; }
  .shop-strip .cta-row { justify-content: center; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
}

/* —— ≥720px —— */
@media (min-width: 720px) {
  body.has-buybar { --buybar-h: 0px; }
  .mobile-buybar { display: none; }

  .nav-toggle { display: none; }

  .site-header-inner {
    flex-wrap: nowrap;
  }

  .site-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
    padding-top: 0;
    gap: 0.25rem 0.35rem;
  }

  .site-nav a {
    padding: 0.45rem 0.75rem;
    min-height: 44px;
    border-radius: 999px;
  }

  .site-nav a[aria-current="page"] {
    box-shadow: none;
  }

  .header-buy {
    display: inline-flex;
    margin-left: 0.35rem;
    padding: 0.5rem 1rem;
    min-height: 44px;
    font-size: 0.85rem;
  }

  .wordmark { height: 36px; }
}

/* —— ≥860px —— */
@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0 1rem;
  }

  .hero-media {
    max-width: none;
    margin: 0;
  }

  .problem-relief,
  .two-col,
  .pros-cons {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .spec-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section { padding: 2.75rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}


/* —— Stub / secondary routes —— */
.coming-soon-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  background: var(--cream-dark);
  border: 1px dashed var(--terracotta);
  border-radius: 999px;
  color: var(--terracotta-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-related {
  margin-top: 0.35rem;
  opacity: 0.92;
}
.footer-related a {
  font-size: 0.85rem;
}

/* —— Product photos (hero + pitch) —— */
.hero-media {
  padding: 0.65rem;
}
.hero-media img,
.pitch-media img,
.product-gallery img,
.featured-pick .pick-media img {
  width: 100%;
  border-radius: calc(var(--radius) - 6px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--cream-light, #f7f1ea);
}
.hero-media figcaption,
.pitch-media figcaption,
.img-credit {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.pitch-media {
  margin: 1rem 0 1.25rem;
  max-width: 28rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.65rem;
  overflow: hidden;
}
.product-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.25rem 0 0;
}
.product-gallery figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  padding: 0.5rem;
  box-shadow: 0 4px 16px rgba(44, 33, 28, 0.04);
}
.product-gallery figcaption {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  padding: 0.45rem 0.35rem 0.25rem;
}
.featured-pick .pick-media {
  margin: 0 0 1rem;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  border: 1px solid var(--border);
}
.featured-pick .pick-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}
@media (min-width: 640px) {
  .product-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 860px) {
  .product-gallery.gallery-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .pitch-media {
    max-width: 32rem;
  }
}
