:root {
  --red: #e2001a;
  --red-dark: #c4001a;
  --ink: #373737;
  --grey-900: #1f1f1f;
  --grey-600: #555;
  --grey-400: #8a8a8a;
  --grey-200: #e6e6e6;
  --grey-100: #f4f4f4;
  --panel: #fafafa;
  --navy: #12213c;
  --blue: #005b9c;
  --blue-dark: #005b9c;
  --radius: 10px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: lato;
  color: var(--ink);
  background: #fff;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Page hero */
.hero {
  padding: 48px 24px 8px;
  text-align: center;
}
.hero h1 {
  font-size: 44px;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero p {
  font-size: 17px;
  color: var(--grey-600);
  margin: 0 auto;
  max-width: 650px;
  line-height: 1.5em;
}

/* Calculator panel */
.calc-panel {
  background: var(--panel);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  max-width: 1140px;
  margin: 32px auto 0;
  padding: 32px;
}
.toggle {
  display: flex;
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: 30px;
  padding: 5px;
  max-width: 620px;
  margin: 0 auto 32px;
}
.toggle button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 18px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--grey-600);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.toggle button.active {
  background: var(--ink);
  color: #fff;
}
.toggle button svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.field-row label {
  font-weight: 700;
  font-size: 16px;
}
.field-row select {
  font-size: 16px;
  padding: 12px 16px;
  border: 1px solid var(--grey-200);
  border-radius: 8px;
  background: #fff;
  min-width: 160px;
  font-weight: 600;
  color: var(--ink);
}

.calc-btn {
  font-family: lato;
  display: block;
  margin: 0 auto 32px;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 16px 40px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.calc-btn:hover {
  background: var(--red-dark);
}

.results {
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.results-heading {
  text-align: center;
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 24px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  border: 1px solid var(--grey-200);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}
.card.recommended {
  border-color: var(--red);
}
.card .tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.5px;
  height: 16px;
  margin-bottom: 6px;
}
.card .cycle-label {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 8px;
}
.card .time {
  font-size: 28px;
  font-weight: 800;
  padding: 18px 8px 4px;
}
.card .duration {
  font-size: 13px;
  color: var(--grey-600);
  padding-bottom: 16px;
}

/* Content rows */
.content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1140px;
  margin: 56px auto;
  padding: 0 24px;
}
.content-row.reverse {
  grid-template-columns: 1fr 1fr;
}
.photo {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
}
.photo.bedroom {
  background-image: url("https://hnuk.blob.core.windows.net/hnuk-assets/Bedding images/go-to-bed.png");
  background-size: cover;
  background-position: center;
}
.photo.sleeping {
  background-image: url("https://hnuk.blob.core.windows.net/hnuk-assets/Bedding images/how-much-sleep.png");
  background-size: cover;
  background-position: center;
}
.content-row h2 {
  font-size: 26px;
  margin: 0 0 14px;
  font-weight: 800;
}
.content-row p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--grey-600);
  margin: 0 0 12px;
}
.content-row a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  font-size: 14px;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--grey-200);
  max-width: 1140px;
  margin: 0 auto;
}

/* Shop essentials */
.essentials {
  max-width: 1140px;
  margin: 56px auto;
  padding: 0 24px;
  text-align: center;
}
.essentials h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 28px;
}
.essential-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.essential-item {
}
.essential-item .thumb {
  background: #f3f4f5;
  border-radius: var(--radius);
  aspect-ratio: 1/1;
  margin-bottom: 14px;
}

.essential-item .thumb {
  border-radius: var(--radius);
  aspect-ratio: 1/1;
  margin-bottom: 14px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.essential-item .name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
}
.essential-item .shop {
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

/* Hero Banner */
.hero-banner {
  width: 100%;
  margin: 0;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 860px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-row,
  .setup,
  .promo {
    grid-template-columns: 1fr;
  }
  .essential-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h1 {
    font-size: 32px;
  }
  .icon-row {
    flex-wrap: wrap;
    row-gap: 20px;
  }
}
