/* ============================================================
   Yu Sleep — Review Landing Page
   Structure modeled on the CitrusBurn/Red Boost advertorial page
   (sticky header -> hero -> intro -> CTA banners -> ingredients ->
   bonuses -> pros/cons -> guarantee -> footer). Palette pulled from
   Yu Sleep's OWN brand colors (getyusleep.com), not CitrusBurn's:
   deep purple #5A2B86 primary, green #6FA939 for CTAs/checks.
   ============================================================ */

:root {
  --maroon: #4f2378;      /* header / CTA banner background (brand purple) */
  --maroon-deep: #341556; /* footer background (deeper purple) */
  --red-accent: #6d2f9e;  /* headings / price accent (brighter purple) */
  --yellow: #6fa939;      /* CTA button background (brand green) */
  --yellow-dark: #598a2c; /* CTA button hover */
  --cream-bg: #fffdfb;
  --bg-alt: #f5f0fa;
  --text-dark: #201a2b;
  --text-muted: #5c5468;
  --check-green: #6fa939;
  --cross-red: #c24b3a;
  --border-soft: #e8dff2;
  --btn-text: #ffffff;
  --font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Century Gothic", Verdana, Helvetica, Arial, sans-serif;
  --font-head: var(--font-body);
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 17px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream-bg);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

strong { color: var(--text-dark); }

/* ---------- Header ---------- */
.site-header {
  background: var(--maroon);
  color: #fff;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.2px;
  color: #fff;
}

.brand .moon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  position: relative;
  flex: none;
}
.brand .moon::after {
  content: "";
  position: absolute;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--maroon);
  top: 4px;
  left: 10px;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: #f2d9cd;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 18px 32px;
  font-size: 1.12rem;
  line-height: 1.2;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.btn-primary {
  background: var(--yellow);
  color: var(--btn-text);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,0.24); background: var(--yellow-dark); }

.btn-primary::before {
  content: "\00bb";
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 800;
}

.btn-header {
  padding: 12px 22px;
  font-size: 1rem;
}

.btn-block { width: 100%; }

.cta-caption {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 10px 0 0;
}

/* ---------- Hero ---------- */
.hero {
  background: #ffffff;
  color: var(--text-dark);
  padding: 30px 0 24px;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  line-height: 1.32;
  margin: 0 0 14px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-dark);
}

.hero h1 strong { font-weight: 700; }

.hero p.kicker {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 780px;
  margin: 0 auto;
}

/* ---------- Generic section ---------- */
section { padding: 44px 0; }
section:first-of-type,
.hero + section { padding-top: 28px; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  text-align: center;
  color: var(--red-accent);
  margin: 0 0 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 40px;
  font-size: 1.12rem;
}

/* ---------- Image + text split ---------- */
.split {
  display: flex;
  align-items: center;
  gap: 52px;
  flex-wrap: wrap;
}

.split.reverse { flex-direction: row-reverse; }

.split .split-media,
.split .split-copy {
  flex: 1 1 380px;
  min-width: 300px;
}

.split-media img {
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(74, 24, 9, 0.16);
}

.split-copy h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  color: var(--red-accent);
  margin-top: 0;
}

.split-copy p { font-size: 1.08rem; }

.price-tag {
  display: block;
  color: var(--red-accent);
  font-weight: 700;
  padding: 6px 0 22px;
  font-size: 1.3rem;
  text-align: left;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--maroon);
  padding: 44px 0;
  text-align: center;
}
.cta-banner .btn-primary {
  font-size: 1.18rem;
  padding: 20px 36px;
}
.cta-banner p {
  color: #e3d3f2;
  margin-top: 16px;
  font-size: 1.02rem;
}
.cta-banner .banner-subtitle {
  margin-top: 26px;
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
}

/* ---------- Long-form copy block ---------- */
.copy-block {
  max-width: 860px;
  margin: 0 auto;
  font-size: 1.12rem;
}
.copy-block p { margin: 0 0 22px; }

/* ---------- Ingredients ---------- */
.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 12px;
}

.ingredient-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 22px;
  position: relative;
  box-shadow: 0 8px 24px rgba(74,24,9,0.06);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ingredient-card .thumb {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--yellow);
}
.ingredient-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.ingredient-card .num {
  position: absolute;
  top: -12px;
  left: 16px;
  background: var(--yellow);
  color: var(--btn-text);
  font-weight: 800;
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ingredient-card .body h3 {
  margin: 0 0 8px;
  color: var(--maroon);
  font-size: 1.15rem;
}

.ingredient-card .body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ---------- Bonuses ---------- */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  margin-top: 12px;
}

.bonus-card {
  background: #fff;
  border: 2px solid var(--yellow);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(74,24,9,0.08);
  display: flex;
  flex-direction: column;
}

.bonus-card .bonus-tag {
  background: var(--maroon);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 16px;
  text-align: center;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.bonus-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }

.bonus-card .bonus-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.bonus-card h3 {
  margin: 0 0 10px;
  color: var(--red-accent);
  font-size: 1.2rem;
}

.bonus-card p { color: var(--text-muted); font-size: 1rem; margin: 0 0 12px; flex: 1; }

.bonus-value {
  font-weight: 700;
  color: var(--maroon);
  font-size: 1rem;
}

/* ---------- Pros / Cons ---------- */
.list-check, .list-cross {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-check li, .list-cross li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-soft);
  font-size: 1.08rem;
}
.list-check li:last-child, .list-cross li:last-child { border-bottom: none; }

.list-check li::before {
  content: "\2713";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--check-green);
  color: #fff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.list-cross li::before {
  content: "\2715";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cross-red);
  color: #fff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ---------- Guarantee ---------- */
.guarantee {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 8px 24px rgba(74,24,9,0.06);
}

.seal {
  flex: none;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--yellow) 0%, var(--yellow-dark) 100%);
  color: var(--btn-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  font-weight: 800;
  line-height: 1.15;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
  font-size: 0.9rem;
}
.seal .big { font-size: 1.9rem; display: block; }

.guarantee-copy { flex: 1 1 420px; min-width: 280px; }
.guarantee-copy h2 { margin-top: 0; font-family: var(--font-head); color: var(--red-accent); font-size: 1.5rem; }
.guarantee-copy p { font-size: 1.08rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--maroon-deep);
  color: #d7c3ea;
  padding: 44px 0 26px;
  font-size: 0.92rem;
  text-align: center;
}

.site-footer p { max-width: 920px; margin: 0 auto 18px; color: #c1a8d9; }

.footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  padding: 0;
  margin: 0 0 16px;
}

.footer-nav a { text-decoration: none; color: #ecdff8; }
.footer-nav a:hover { color: var(--yellow); }

.copyright { color: #9678b3; font-size: 0.85rem; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--red-accent);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(52, 21, 86, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
  z-index: 60;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--maroon); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  html { font-size: 16px; }
  section { padding: 34px 0; }
  .split { gap: 30px; }
  .guarantee { padding: 26px; text-align: center; }
  .guarantee { flex-direction: column; }
  .ingredient-card { flex-direction: column; }
  .back-to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; font-size: 1.2rem; }
}
