:root {
  --ink: #15304a;
  --muted: #56677a;
  --blue: #dceefb;
  --blue-strong: #2f74b5;
  --navy: #102c54;
  --yellow: #f7c84b;
  --yellow-dark: #d29a12;
  --sage: #e9f3ea;
  --coral: #fbefe8;
  --cream: #fbf7ed;
  --white: #ffffff;
  --line: #d9e1e8;
  --shadow: 0 18px 46px rgba(16, 44, 84, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.sale-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  color: var(--white);
  background: var(--blue-strong);
  font-weight: 800;
}

.sale-bar strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.utility-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 9px 18px;
  color: #24445f;
  background: #eef7fd;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 78px;
  padding: 0 42px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Inter, Arial, sans-serif;
  font-weight: 900;
  font-size: 20px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  font-size: 15px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-weight: 900;
  font-size: 14px;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--blue-strong);
}

.nav-cta {
  padding: 12px 18px;
  color: var(--navy);
  background: var(--yellow);
  border: 2px solid var(--yellow-dark);
  border-radius: 6px;
  font-weight: 900;
  box-shadow: 0 4px 0 var(--yellow-dark);
}

.menu-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(360px, 1.07fr);
  min-height: 640px;
  background: linear-gradient(90deg, #e8f5fe 0 52%, #f7fbfe 52% 100%);
  overflow: hidden;
}

.hero-copy {
  align-self: center;
  width: 100%;
  min-width: 0;
  max-width: 620px;
  padding: 72px 32px 72px clamp(24px, 7vw, 92px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-strong);
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.96;
  font-weight: 900;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.03;
}

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

.hero-text {
  max-width: 520px;
  color: #35506a;
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 22px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 6px;
  font-weight: 900;
}

.button-primary {
  color: var(--navy);
  background: var(--yellow);
  border: 2px solid var(--yellow-dark);
  box-shadow: 0 4px 0 var(--yellow-dark);
}

.button-secondary {
  background: var(--white);
  border: 2px solid var(--navy);
  box-shadow: 0 4px 0 var(--navy);
}

.rating {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.rating span:first-child {
  color: #f1ae2b;
}

.hero-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  padding: 70px 40px;
  background:
    radial-gradient(circle at 50% 50%, rgba(247, 200, 75, 0.28), transparent 32%),
    linear-gradient(145deg, #ffffff, #d6ecfb);
}

.hero-media::before {
  position: absolute;
  right: 7%;
  bottom: 12%;
  width: 72%;
  height: 25%;
  content: "";
  background: rgba(21, 48, 74, 0.12);
  border-radius: 50%;
  filter: blur(20px);
}

.hero-media img {
  position: relative;
  width: min(620px, 86vw);
  transform: rotate(-2deg);
  filter: drop-shadow(0 32px 24px rgba(21, 48, 74, 0.18));
}

.sale-badge {
  position: absolute;
  top: 62px;
  right: clamp(22px, 6vw, 82px);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  color: var(--navy);
  background: var(--yellow);
  border: 3px solid var(--yellow-dark);
  border-radius: 50%;
  box-shadow: var(--shadow);
  text-align: center;
}

.sale-badge span {
  font-size: 13px;
  font-weight: 900;
}

.sale-badge strong {
  font-family: Inter, Arial, sans-serif;
  font-size: 26px;
  line-height: 0.95;
}

.assurance {
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}

.ticker {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
}

.ticker-track {
  display: flex;
  min-width: max-content;
  animation: roll 26s linear infinite;
}

.ticker-track span {
  position: relative;
  padding: 0 42px;
  font-family: Inter, Arial, sans-serif;
  font-weight: 900;
  white-space: nowrap;
}

.ticker-track span::after {
  position: absolute;
  right: -4px;
  content: "•";
  color: var(--yellow);
}

@keyframes roll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.guarantee,
.collections,
.brand-section {
  padding: 78px clamp(20px, 5vw, 72px);
}

.guarantee {
  text-align: center;
  background: var(--white);
}

.guarantee > h2 {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 34px auto 0;
}

.promise-grid article {
  padding: 24px 20px;
  background: #f7fbfe;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.promise-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  color: var(--white);
  background: var(--blue-strong);
  border-radius: 50%;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.promise-grid p,
.product-content p,
.brand-card p,
.quiz p,
.site-footer p {
  color: var(--muted);
  line-height: 1.55;
}

.collections {
  background: var(--cream);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 30px;
}

.collection-grid,
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #d7d9d5;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(21, 48, 74, 0.06);
}

.product-image {
  display: grid;
  place-items: center;
  min-height: 245px;
  padding: 28px;
  background: linear-gradient(145deg, #eef7fd, #ffffff);
}

.product-image img {
  max-height: 205px;
  object-fit: contain;
}

.product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.tag {
  margin-bottom: 8px;
  color: var(--blue-strong) !important;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-content strong {
  margin-top: auto;
  margin-bottom: 18px;
}

.button-card {
  width: 100%;
  color: var(--white);
  background: var(--navy);
}

.quiz {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 54px clamp(20px, 5vw, 72px);
  background: var(--sage);
  border-top: 1px solid #d6e4d7;
  border-bottom: 1px solid #d6e4d7;
}

.quiz > div {
  max-width: 710px;
}

.quiz h2 {
  margin-bottom: 10px;
}

.brand-section {
  background: #f8fbfc;
}

.brand-card {
  min-height: 310px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.brand-card > span {
  display: inline-flex;
  margin-bottom: 42px;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(16, 44, 84, 0.84);
  border-radius: 4px;
  font-weight: 900;
}

.brand-card a {
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cloud-nine {
  background: linear-gradient(145deg, #f4fbff, #dfeff8);
}

.sealy {
  background: linear-gradient(145deg, #fff8e8, #f8e7b8);
}

.rest-assured {
  background: linear-gradient(145deg, #fff6ef, #f7dbcf);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  padding: 34px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: #0f243a;
}

.site-footer p {
  color: #c7d4df;
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-weight: 900;
}

.fine-print {
  grid-column: 1 / -1;
  font-size: 13px;
}

@media (max-width: 980px) {
  .utility-nav,
  .nav-cta {
    display: none;
  }

  .main-nav {
    grid-template-columns: 1fr auto;
    padding: 0 20px;
  }

  .menu-toggle {
    display: inline-grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
  }

  .nav-links {
    position: absolute;
    top: 78px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding: 54px 22px;
  }

  .hero-media {
    min-height: 390px;
    padding: 52px 20px;
  }

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

  .quiz {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .sale-bar {
    flex-direction: column;
    gap: 2px;
  }

  .brand {
    font-size: 17px;
  }

  h1 {
    font-size: 40px;
    line-height: 1.02;
  }

  .hero-text {
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .hero-actions .button,
  .quiz .button {
    width: 100%;
  }

  .hero-copy {
    max-width: 100%;
    padding-right: 18px;
    padding-left: 18px;
  }

  .promise-grid,
  .collection-grid,
  .brand-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
  }

  .sale-badge {
    top: 22px;
    right: 14px;
    width: 104px;
    height: 104px;
  }

  .sale-badge strong {
    font-size: 20px;
  }
}
