/* Cartnapped — mobile-first vanilla CSS. No frameworks, no build step. */
:root {
  --navy: #0b1f3a;
  --navy-deep: #071426;
  --navy-soft: #16294a;
  --orange: #ff6b1a;
  --orange-dark: #d9560a;
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #14243f;
  --muted: #5b6b85;
  --line: #e3e8f2;
  --green: #0f9d58;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 8px 28px rgba(11, 31, 58, 0.14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--navy); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  margin-right: auto;
}
.brand .logo { width: 44px; height: 44px; flex: none; }
.brand-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-name em { font-style: normal; color: var(--orange); }
.nav-toggle {
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 10px;
  font-size: 1.15rem;
  padding: 4px 12px;
  cursor: pointer;
}
.main-nav { display: none; }
.main-nav.open { display: block; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.main-nav a {
  display: block;
  color: #dfe7f5;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.08); }
.main-nav a.active { background: var(--orange); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.28), transparent 70%);
}
.hero h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--orange); }
.hero .sub {
  color: #c6d2e8;
  font-size: 1.05rem;
  margin: 0 0 24px;
  max-width: 34em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--orange-dark); }
.btn.ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn.ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn.big { font-size: 1.15rem; padding: 15px 34px; }

/* ---------- Category pills ---------- */
.cat-nav { padding: 26px 0 6px; }
.cat-nav .pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.pill {
  flex: none;
  background: var(--card);
  border: 2px solid var(--line);
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.pill:hover { border-color: var(--orange); }
.pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Sections & grids ---------- */
.section { padding: 28px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.section-head h2 { margin: 0; font-size: 1.45rem; letter-spacing: -0.01em; }
.section-head a { font-weight: 700; color: var(--orange-dark); text-decoration: none; }
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* ---------- Deal cards ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card > a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.card-media {
  background: linear-gradient(135deg, var(--navy-soft), var(--navy));
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.card-media .logo { width: 72px; height: 72px; opacity: 0.95; }
.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(255, 107, 26, 0.45);
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.retailer-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: #e8eefb;
  padding: 3px 10px;
  border-radius: 999px;
}
.card-body h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.prices { display: flex; align-items: baseline; gap: 10px; }
.price { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.list-price { color: var(--muted); font-size: 0.95rem; }
.verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
}
.verified svg { width: 15px; height: 15px; }
.excerpt { margin: 0; color: var(--muted); font-size: 0.92rem; flex: 1; }
.card-cta {
  margin-top: 6px;
  font-weight: 700;
  color: var(--orange-dark);
}

/* ---------- Trust section ---------- */
.trust {
  background: var(--navy);
  color: #fff;
  padding: 44px 0;
  margin-top: 20px;
}
.trust h2 { margin: 0 0 6px; font-size: 1.6rem; }
.trust .lede { color: #c6d2e8; margin: 0 0 24px; max-width: 40em; }
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.trust-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 18px;
}
.trust-item h3 { margin: 0 0 6px; color: var(--orange); font-size: 1.05rem; }
.trust-item p { margin: 0; color: #dbe4f4; font-size: 0.95rem; }

/* ---------- Deal detail page ---------- */
.deal-page { padding: 28px 0 40px; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.deal-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.deal-head h1 { margin: 0; font-size: 1.6rem; line-height: 1.25; letter-spacing: -0.01em; }
.deal-badge {
  flex: none;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(255, 107, 26, 0.45);
}
.price-panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 20px;
}
.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-row .price { font-size: 2.2rem; }
.save-line { color: var(--green); font-weight: 700; }
.meta-list { list-style: none; margin: 16px 0 0; padding: 0; font-size: 0.95rem; }
.meta-list li { padding: 6px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.meta-list .k { font-weight: 700; color: var(--navy); min-width: 92px; }
.deal-section {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 20px;
}
.deal-section h2 { margin: 0 0 10px; font-size: 1.2rem; color: var(--navy); }
.deal-section p { margin: 0 0 12px; }
.deal-section p:last-child { margin-bottom: 0; }
.buy-box { text-align: center; padding: 28px 22px; }
.buy-box .fine { font-size: 0.82rem; color: var(--muted); margin: 12px 0 0; }
.notes { font-size: 0.85rem; color: var(--muted); }

/* ---------- About ---------- */
.about-page { padding: 28px 0 40px; }
.about-page h1 { font-size: 1.9rem; margin: 0 0 12px; }
.prose { max-width: 42em; }
.prose h2 { font-size: 1.3rem; margin: 28px 0 10px; color: var(--navy); }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.disclosure-box {
  background: #fff8f1;
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 24px;
  font-weight: 600;
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 80px 0; }
.notfound .logo { width: 120px; height: 120px; }
.notfound h1 { font-size: 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #aebdd6;
  padding: 36px 0 28px;
  font-size: 0.92rem;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 1rem; }
.site-footer a { color: #d7e1f2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.legal { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 18px; }
.legal p { margin: 6px 0; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.6rem; }
  .site-footer .cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .nav-toggle { display: none; }
  .main-nav { display: block; }
  .main-nav ul { flex-direction: row; padding: 0; gap: 2px; }
  .main-nav a { padding: 8px 12px; }
  .site-header .wrap { gap: 24px; }
}
