:root {
  --ink: #16242f;
  --muted: #5f6f7c;
  --line: #dbe5e9;
  --paper: #fbfdfc;
  --soft-blue: #eaf4f8;
  --sage: #e8f3ec;
  --mint: #1f8a70;
  --teal: #0f6b74;
  --gold: #c9872b;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(28, 54, 66, 0.14);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  background: rgba(251, 253, 252, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--mint));
  box-shadow: inset 0 -5px 0 rgba(255, 255, 255, 0.22);
}

.main-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a,
.site-footer a {
  text-decoration: none;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--teal);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 4vw, 64px) 48px;
  min-height: calc(100vh - 72px);
  background:
    linear-gradient(120deg, rgba(232, 243, 236, 0.88), rgba(234, 244, 248, 0.5) 48%, rgba(255, 255, 255, 0.85)),
    var(--paper);
}

.hero-copy,
.section,
.affiliate-disclosure-block,
.site-footer {
  max-width: 1180px;
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 3vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.hero-text {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 12px 26px rgba(15, 107, 116, 0.24);
}

.button.primary:hover {
  background: #0b5960;
}

.button.secondary {
  color: var(--teal);
  background: var(--white);
  border-color: var(--line);
}

.hero-visual {
  margin: 0;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #eef7f4);
  box-shadow: var(--shadow);
}

.bed-scene {
  position: relative;
  min-height: clamp(260px, 40vw, 430px);
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,255,255,0.32)),
    linear-gradient(135deg, #dcecf3 0%, #f7fbfa 48%, #d8eadf 100%);
}

.bed-scene::before {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -12%;
  height: 44%;
  border-radius: 50% 50% 0 0;
  background: #ffffff;
  box-shadow: 0 -18px 40px rgba(62, 102, 115, 0.1);
}

.pillow {
  position: absolute;
  display: block;
  background: #ffffff;
  border: 1px solid rgba(113, 141, 151, 0.2);
  box-shadow: 0 22px 42px rgba(59, 85, 96, 0.18);
}

.pillow-back {
  right: 12%;
  bottom: 31%;
  width: 62%;
  height: 25%;
  border-radius: 28px 40px 32px 34px;
  transform: rotate(-7deg);
}

.pillow-front {
  right: 10%;
  bottom: 22%;
  width: 68%;
  height: 26%;
  border-radius: 34px 48px 22px 34px;
  transform: rotate(-4deg);
}

.neck-curve {
  position: absolute;
  right: 34%;
  bottom: 31%;
  width: 24%;
  height: 10%;
  border-radius: 0 0 100px 100px;
  border-bottom: 12px solid #d8e5e8;
  opacity: 0.8;
}

.hero-visual figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.section {
  padding: clamp(56px, 8vw, 92px) clamp(20px, 4vw, 64px);
}

.problem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: center;
}

.section-copy p,
.section-heading p,
.card p,
.recommendation p,
.faq p,
.affiliate-disclosure-block p {
  color: var(--muted);
}

.insight-panel,
.recommendation-card,
.card,
.list-card,
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.insight-panel {
  padding: 26px;
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-height: 210px;
  padding: 22px;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--mint);
  font-size: 0.82rem;
  font-weight: 800;
}

.recommendation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 26px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, var(--soft-blue), var(--white));
}

.recommendation-copy {
  max-width: 760px;
}

.recommendation-copy .button {
  margin: 12px 0 14px;
}

.safety-note {
  max-width: 620px;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fff8ed;
  font-weight: 700;
}

.affiliate-note {
  max-width: 620px;
  font-size: 0.9rem;
}

.recommendation-card {
  padding: 26px;
  border-left: 5px solid var(--gold);
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.list-card {
  padding: 26px;
}

.list-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.list-card li + li {
  margin-top: 10px;
}

.positive {
  border-top: 5px solid var(--mint);
}

.caution {
  border-top: 5px solid var(--gold);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

details {
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 12px 0 0;
}

.affiliate-disclosure-block {
  margin-bottom: 56px;
  padding: 26px clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8ed;
}

.affiliate-disclosure-block h2 {
  font-size: 1.4rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 4vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .problem,
  .recommendation {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    gap: 10px 14px;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: 2.45rem;
  }

  .feature-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }

  .button {
    width: 100%;
  }
}
