:root {
  --primary: #305456;
  --primary-light: #578b91;
  --primary-dark: #253e42;
  --accent: #b67140;
  --highlight: #8fc8c8;
  --text: #000;
  --text-light: #999;
  --bg-light: #c3d1d0;
  --white: #fff;
  --serif: "Zilla Slab", serif;
  --sans:
    "Interstate", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--serif);
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.our-promise-section,
.footer-section {
  font-family: var(--sans);
}

/* Main */
main {
  padding-top: 0;
}

/* Mobile header logo (hidden on desktop; inline .product-logo used there) */
.site-header {
  text-align: center;
}

.site-header img {
  padding: 15px;
  display: block;
  margin: 75px auto 20px;
  height: 75px;
}

.product-logo {
  display: none;
}

/* Typography */
h1 {
  font-family: "Zilla Slab", serif;
  font-weight: 600;
  font-size: 35px;
  line-height: 1.2em;
  margin-bottom: 1em;
}

.intro h1 {
  font-family: "Zilla Slab", serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.2em;
  text-wrap-style: pretty;
}

h2 {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 35px;
  line-height: 1em;
  margin-bottom: 1em;
}

.product-info h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2em;
  color: #000;
  margin-bottom: 0.25em;
}
.product-info input[type="checkbox"] {
  accent-color: rgba(48, 84, 86, 1);
  transform: scale(1.2);
  cursor: pointer;
}

p {
  font-size: 18px;
  line-height: 1.56em;
  margin-bottom: 1em;
}

a {
  color: var(--primary-light);
  text-decoration: underline;
}

.intro a {
  color: var(--primary-light);
  text-decoration: underline;
}

strong u {
  color: var(--accent);
  text-decoration: underline;
}

.intro strong u {
  color: var(--accent);
  text-decoration: underline;
  font-weight: normal;
}

/* Sections */
section {
  width: 100%;
  padding: 54px 25px;
}

/* Intro Section */
.intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro p {
  max-width: 620px;
  font-family: "Zilla Slab", serif;
  font-weight: 300;
  font-size: 21px;
  text-wrap: pretty;
  line-height: 1.2em;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* Product Section */
.product {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 0 !important;
  margin-top: -40px;
}

.product img {
  width: 100%;
  max-width: 375px;
  height: auto;
  margin: 0 auto;
}

.product-info {
  display: flex;
  flex-direction: column;
  /* gap: 20px; */
  text-align: left;
  align-items: flex-start;
}
.product-info .add-to-cart-button {
  margin-top: 20px;
}

.price-checkbox-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 auto 0.5em;
}

.price-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.price {
  font-size: 28px;
  font-weight: bold;
  line-height: 1.2em;
  font-family: var(--serif);
  color: #000;
  display: inline-block;
  position: relative;
  transition: color 0.3s ease;
}

.price.strikethrough {
  color: #999;
}

.price.strikethrough::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 2px;
  background-color: #999;
  animation: strikeThrough 0.5s ease-in-out forwards;
}

@keyframes strikeThrough {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 18px;
}

label span {
  color: #2d5016;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.product-info .add-to-cart-button {
  font-family: "Roboto", sans-serif;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  background-color: #305456;
  border: none;
  border-radius: 6px;
  padding: 14px 16px;
  cursor: pointer;
  width: 400px;
  align-self: flex-start;
  transition: background 0.2s;
  vertical-align: middle;
  float: left;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  font-weight: 600;
  max-width: 100%;
  min-height: 80px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

.product-info .add-to-cart-button .guarantee-text {
  display: inline;
  font-size: 15px;
  color: #e8bc69;
  letter-spacing: normal;
  line-height: 1.2;
}

.product-info button.free-trial-text {
  font-size: 18px;
  letter-spacing: 0.6px;
  line-height: 1.2;
  white-space: nowrap;
}

.product-info .add-to-cart-button:hover {
  background-color: var(--primary-dark);
}

.product-info h3 {
  font-family: "Zilla Slab", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 32px;
  line-height: 1.2em;
  letter-spacing: 0;
  margin-top: 30px;
  margin-bottom: 10px;
}

.fc-lightbox p > button {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--primary);
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  cursor: pointer;
  transition: background 0.2s;
}

.fc-lightbox p > button:hover {
  background: var(--primary-dark);
}

/* Offer Explanation */
.explanation {
  background: #ccc;
  width: 100%;
  text-align: center;
  margin-top: -150px;
  padding: 80px 0 !important;
}
@media (max-width: 768px) {
  .explanation {
    margin-top: -400px;
    padding: 440px 0 80px !important;
  }
}

.explanation h2 {
  text-align: center;
  font-family: var(--serif);
  font-weight: 650;
  font-size: 35px;
  margin-bottom: 1em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.explanation p {
  font-family: "Zilla Slab", serif;
  font-weight: 400;
  font-size: 21px;
  text-wrap: pretty;
  line-height: 1.2em;
  margin-bottom: 1em;
  text-align: center;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.explanation a {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Founder Section */
.founder {
  background: #ccc;
  display: flex;
  flex-direction: column;
  gap: 30px;
  /* max-width: 1200px; */
  margin: 0 auto;
  justify-content: center;
}

.founder-text {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.founder-text p {
  font-family: "Zilla Slab", serif;
  font-weight: 300;
  font-size: 21px;
  text-wrap: pretty;
  line-height: 1.2em;
  margin-bottom: 1em;
  text-align: left;
}

.founder-text strong u {
  color: var(--accent);
  text-decoration: underline;
  font-style: italic;
}

.founder-text img {
  width: 300px;
  height: auto;
}

.founder > img:last-of-type {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 10px;
  margin: 0 auto;
  order: -1;
}

/* Footer - Shared with its-natural page */
.our-promise-section {
  width: 100%;
  padding: 80px 25px 50px;
  background: #2f5455;
  border-radius: 20px 20px 0 0;
}

.our-promise-content-wrapper {
  width: 100%;
  margin: 0 auto;
}

.footer-logo-desktop {
  display: none;
}

.footer-logo-mobile {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto 28px;
}

.footer-content-desktop {
  display: none;
}

.footer-content-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 32px;
}

.our-promise-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.our-promise-section .footer-logo-mobile {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto 28px;
}

.our-promise-section .footer-logo-desktop {
  display: none;
}

.our-promise-content-row {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;
  align-items: center;
}

.our-promise-left {
  width: 100%;
}

.our-promise-label {
  font-family: var(--sans), sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin: 28px 0 28px;
}

.our-promise-heading {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 45px;
  line-height: 1.2em;
  color: #c1dbc5;
  margin: 0;
}

.our-promise-right {
  width: 100%;
  text-align: center;
}

.our-promise-text {
  color: var(--white);
  margin: 0;
  font-weight: 200;
  line-height: 1.3em;
  font-family: "Interstate", Sans-serif;
}

.our-promise-badges {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  flex: 1;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.our-promise-badge {
  max-height: 75px;
  height: auto;
  width: auto;
  flex-shrink: 1;
}

@media (max-width: 767px) {
  .our-promise-section {
    padding-top: 40px;
  }

  .our-promise-badges {
    gap: 10px;
    max-width: 100%;
  }

  .our-promise-badge {
    max-height: 85px;
  }

  .our-promise-heading {
    font-size: 21px;
    text-align: center;
  }

  .our-promise-label {
    text-align: center;
  }

  .our-promise-left {
    text-align: center;
  }
}

.footer-section {
  display: none;
  width: 100%;
  margin-top: 60px;
  padding: 25px 25px 50px;
  background: var(--primary);
  border-radius: 20px 20px 0 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: row;
  gap: 40px;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.89em;
  line-height: 1.5em;
  color: var(--white);
  text-decoration: underline;
}

.footer-link:hover {
  opacity: 0.8;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--white);
  margin: 0 auto 20px;
}

.footer-disclaimer {
  font-size: 0.78em;
  line-height: 1.5em;
  color: var(--white);
  width: 100%;
}

/* Desktop Styles */
@media (min-width: 768px) {
  main {
    padding-top: 75px;
  }

  .site-header {
    display: none;
  }

  .product-logo {
    display: block;
    margin: 0 auto 20px;
    max-width: 280px;
  }

  h1 {
    font-size: 45px;
  }

  .jdgm-rev-widg__title {
    font-size: 38px;
  }

  .intro h1 {
    font-size: 64px;
    line-height: 72px;
  }

  h2 {
    font-size: 45px;
  }

  .product-info h2 {
    font-size: 28px;
  }

  .price {
    font-size: 28px;
  }

  section {
    padding: 40px 25px;
  }

  .product {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    /* justify-content: center; */
    max-width: 1000px;
  }

  .product img {
    flex: 0 0 35%;
    max-width: 375px;
    margin: 0;
  }

  .product-info {
    min-width: 0;
    /* margin-top: -50px; */
  }

  .founder {
    flex-direction: row;
    align-items: flex-start;
    gap: 60px;
  }

  .founder-text {
    width: 330px;
    flex-shrink: 0;
  }

  .founder img:last-of-type {
    flex: 1;
    max-width: 320px;
    margin: 0;
    order: 0;
  }

  .explanation {
    padding: 60px 25px;
  }
}

@media (min-width: 1024px) {
  .our-promise-section {
    padding: 32px 0 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    background: transparent;
    border-radius: 0;
  }

  .our-promise-content-wrapper {
    width: 1500px;
    max-width: calc(100% - 240px);
    background: #2f5455;
    border-radius: 45px 45px 0 0;
    padding: 40px 90px 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    box-sizing: border-box;
  }

  .our-promise-section .footer-logo-mobile {
    display: none;
  }

  .our-promise-header .footer-logo-desktop {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
    margin: 0;
    flex-shrink: 0;
  }

  .footer-content-mobile {
    display: none;
  }

  .footer-content-desktop {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0;
    padding-bottom: 40px;
    gap: 30px;
  }

  .footer-content-desktop .footer-links {
    flex-direction: row;
    gap: 120px;
    margin-bottom: 20px;
  }

  .footer-content-desktop .footer-divider {
    width: 100%;
    height: 1px;
    background: var(--white);
    margin: 0 auto 20px;
  }

  .footer-section {
    display: none;
  }

  .our-promise-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 16px;
  }

  .our-promise-left {
    flex: 1;
    width: auto;
  }

  .our-promise-label {
    margin: 16px 0 8px;
  }

  .our-promise-heading {
    width: auto;
  }

  .our-promise-content-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 32px;
    align-items: center;
  }

  .our-promise-right {
    flex: 1;
    width: auto;
    text-align: left;
  }

  .our-promise-badges {
    max-width: 400px;
  }

  .our-promise-badge {
    max-width: 100px;
    max-height: 90px;
  }
}

@media (min-width: 1000px) and (max-width: 1500px) {
  .our-promise-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    max-width: 400px;
  }
}

.fc-link {
  text-transform: none;
  letter-spacing: 0;
  display: inline !important;
  width: unset !important;
  font-family: unset;
}

.founder {
  padding-top: 40px;
  /* margin-top: -155px !important; */
}

section.founder-section {
  margin: 20px 0 0;
}

@media (max-width: 767px) {
  .product-info {
    max-width: 420px;
    margin: 0 auto;
  }
  .product-info .add-to-cart-button {
    width: 100%;
    align-self: stretch;
    float: none;
  }

  .product-header-box {
    text-align: center;
  }

  .benefit-item {
    font-size: 18px;
  }

  section.product {
    padding-bottom: 28px;
  }

  section.founder-section {
    margin: 0;
  }

  .founder {
    padding-top: 20px;
    justify-content: flex-start;
  }

  .founder > img:last-of-type {
    margin-top: 0;
  }
}

/* New Styles for Product Layout Update */

.product {
  margin-top: 0;
}

.product-info {
  flex: 1;
  max-width: 500px;
}

.product-header-box {
  background: linear-gradient(90deg, #e8bc69, #f5d89a);
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  width: 100%;
  text-align: left;
  border: 1px solid #d4a855;
}

.product-header-box h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500; /* As per design reference usually */
  margin: 0;
  color: #000;
  line-height: 1.2;
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 25px;
  width: 100%;
}

.benefit-item {
  background-color: #f7f9fa;
  padding: 12px 10px;
  border-radius: 4px;
  text-align: center;
  font-size: 16px;
  font-family: var(--sans);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #e6e9eb;
  line-height: 1.2;
}

.we-know-something-block p {
  font-family: "Zilla Slab", serif;
  font-weight: 300;
  font-size: 21px;
  line-height: 1.2em;
  text-wrap: pretty;
}

.we-know-something-block .reviews-see-link {
  font-size: inherit;
  font-weight: inherit;
  margin-left: 0.15em;
}

#product-reviews {
  scroll-margin-top: 24px;
}

.intro {
  padding-top: 0;
  margin-top: 40px;
  text-align: left;
}

.intro h3 {
  font-family: "Zilla Slab", serif;
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .product-info {
    max-width: 100%;
  }
  .intro {
    text-align: left;
  }
}

/* Sleep Pack Offer modal (fc-lightbox) */
.sleep-pack-offer-trigger {
  margin-top: 12px;
  margin-bottom: 0;
}
.sleep-pack-offer-trigger .fc-link {
  font-size: 16px;
}

.fc-lightbox .sleep-pack-offer-modal {
  padding: var(--fc-side-padding);
  padding-top: 0.5em;
  /* max-width: 480px; */
  margin-left: auto;
  margin-right: auto;
}

/* Header wrapper: title banner + badge floating top-left (desktop) */
.fc-lightbox .sleep-pack-offer-header {
  position: relative;
  margin-bottom: 20px;
}

.fc-lightbox .sleep-pack-offer-badge {
  position: absolute;
  top: -20px;
  left: -20px;
  z-index: 1;
  line-height: 0;
}
.fc-lightbox .sleep-pack-offer-badge svg {
  width: 80px;
  height: 80px;
  display: block;
}

/* Match page .product-header-box: same gradient, border, radius, typography */
.fc-lightbox .sleep-pack-offer-title-banner.product-header-box {
  position: relative;
  padding-left: 90px; /* clear the floating badge on desktop */
  min-height: 52px;
  display: flex;
  align-items: center;
}
.fc-lightbox .sleep-pack-offer-title-banner h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  color: #000;
  line-height: 1.2;
}
.fc-lightbox .sleep-pack-offer-title-mobile {
  font-size: 18px;
}

/* Mobile: no floating badge, normal padding */
@media (max-width: 750px) {
  .fc-lightbox .sleep-pack-offer-header .sleep-pack-offer-badge {
    display: none;
  }
  .fc-lightbox .sleep-pack-offer-title-banner.product-header-box {
    padding-left: 15px;
    min-height: 0;
  }
}

.fc-lightbox .sleep-pack-offer-benefits {
  list-style: none;
  padding-left: 0;
  margin: 0 0 20px;
}
.fc-lightbox .sleep-pack-offer-benefits li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 18px;
  color: #000;
}
.fc-lightbox .sleep-pack-offer-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232d5016'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: contain;
}

.fc-lightbox .sleep-pack-offer-price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.fc-lightbox .sleep-pack-offer-price-row .price {
  font-size: 28px;
  font-weight: bold;
  font-family: var(--serif);
  color: #000;
}
.fc-lightbox .sleep-pack-offer-price-row label {
  font-size: 18px;
}
.fc-lightbox .sleep-pack-offer-price-row label span {
  color: #2d5016;
}

.fc-lightbox .sleep-pack-offer-modal .add-to-cart-button {
  font-family: "Roboto", sans-serif;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  background-color: var(--primary);
  border: none;
  border-radius: 6px;
  padding: 14px 16px;
  cursor: pointer;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px 14px;
  font-weight: 600;
  min-height: 80px;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(48, 84, 86, 0.3);
  transition: background 0.2s;
}
.fc-lightbox .sleep-pack-offer-modal .add-to-cart-button:hover {
  background-color: var(--primary-dark);
}
.fc-lightbox .sleep-pack-offer-modal .add-to-cart-button .guarantee-text {
  display: inline;
  font-size: 15px;
  color: #e8bc69;
  letter-spacing: normal;
  line-height: 1.2;
}
.fc-lightbox .sleep-pack-offer-modal .add-to-cart-button.free-trial-text {
  font-size: 18px;
  letter-spacing: 0.6px;
  white-space: nowrap;
}
.fc-lightbox .sleep-pack-offer-modal input[type="checkbox"] {
  accent-color: rgba(48, 84, 86, 1);
  transform: scale(1.2);
  cursor: pointer;
}

.sleep-pack-offer-header {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.sleep-pack-offer-title-banner {
  padding: 15px !important;
}

@media (max-width: 768px) {
  .sleep-pack-offer-title-banner {
    margin-top: 1em;
  }
}

.sleep-pack-offer-header * {
  text-align: center;
  text-wrap: balance;
}

.jdgm-rev-widg {
  padding-top: 0;
}
