:root {
  --brand-blue: #4c5c9d;
  --gray-50: #efefef;
  --text: #000000;
  --muted: #6b7280; /* gray-600 */
  --muted-500: #6b7280;
  --muted-400: #9ca3af;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--white);
}

.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 30px;
}

.announcement {
  background: var(--brand-blue);
  color: var(--white);
  text-align: center;
  padding: 20px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-size: 18px;
  line-height: 24px;
}

.announcement p {
  margin: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 60px 30px;
}

.hero__media {
  width: 100%;
}

/* Make the left hero content a vertical flex stack for easier alignment */
.hero__content {
  display: flex;
  padding-right: 20px;
  flex-direction: column;
  align-items: flex-start; /* keep text left-aligned */
  gap: 0px; /* Remove gap to control spacing with margins */
  flex: 1 0 0;
}

.hero h1 {
  font-family: "Dhyana";
  font-style: normal;
  font-weight: 700;
  font-size: 36px;
  line-height: 44px;
  color: #000;
  margin: 0 0 20px;
}

.lead {
  font-size: 16px;
  line-height: 24px;
  color: var(--muted-500);
  margin: 0 0 40px;
}

.cta-underline {
  font-family: Inter;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 27px;
  color: #4b5563;
  text-decoration-line: underline;
}

/* Constrain hero intro CTA only when modifier is present */
.hero .cta-underline.cta-underline--max-395 {
  max-width: 395px;
}

/* Ensure links inside underline CTAs always use #4b5563 and stay underlined */
.cta-underline a,
.cta-underline a:hover,
.cta-underline a:focus,
.cta-underline a:active,
.cta-underline a:visited {
  color: #4b5563;
  text-decoration: underline;
}

/* Remove default link styling for cta-link links */
.cta-link {
  color: #4b5563 !important;
  text-decoration: underline !important;
}

.cta-link:hover,
.cta-link:active,
.cta-link:focus {
  color: #4b5563 !important;
  text-decoration: underline !important;
}

/* Prevent default visited styling on CTA links */
.cta-link:visited {
  color: #4b5563 !important;
  text-decoration: underline !important;
}

.cta-wrap {
  display: inline-flex; /* shrink-wrap to button width */
  flex-direction: column;
  align-items: center; /* center children horizontally */
  gap: 11px;
}
.eyebrow {
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--muted-500);
  margin: 0;
  width: 100%; /* match button width via parent shrink-wrap */
  text-align: center; /* center text under button */
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 400;
  font-size: 20px;
  text-decoration: none;
  font-family: Inter;
  font-style: normal;
  line-height: normal;
}
.btn-primary {
  background: var(--brand-blue);
  color: #fff;
  text-align: center;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background: #494949;
}
.btn-sm {
  padding: 10px 30px;
  font-size: 16px;
}

/* Ensure hero button has correct font-size */
.hero .btn {
  font-size: 16px;
}

.hero__media .photo-card {
  background: #efefef; /* outer gray frame */
  min-height: 600px;
  padding: 14px;
  border-radius: 10px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.hero__media .photo-card__inner {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  flex: 1;
}
.hero__media .photo-card__img {
  width: 100%;
  flex: 1 1 0;
  min-height: 0; /* allow flex items to shrink within fixed-height container */
  object-fit: cover;
  display: block;
}
.hero__media .photo-card__img--top,
.hero__media .photo-card__img--bottom {
  /* Use default centering; no custom offsets */
  object-position: 50% 50%;
}

.reasons {
  background: var(--gray-50);
  padding: 20px 0 20px;
}
.reason {
  display: flex;
  gap: 40px;
  align-items: start;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin: 40px auto;
  overflow: hidden; /* ensure children don't visually escape rounded corners */
}

.reasons .reason:last-of-type {
  margin-bottom: 0;
}

.reviews {
  background: var(--gray-50);
  padding: 30px 0 40px;
}
.reviews__title {
  font-family: "Dhyana", serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 38px;
  text-align: center;
  margin: 0 0 20px;
}
.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start; /* ensure cards align to top */
}
.review-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 40px 20px 20px;
  display: flex;
  flex-direction: column;
  height: 100%; /* allow equal-height when grid places cards in rows */
}
.review-text {
  color: var(--muted-500);
  font-size: 16px;
  line-height: 24px;
  margin: 8px 0;
}
.review-author {
  color: var(--muted-400);
  font-size: 14px;
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-blue);
  color: var(--white);
  height: 40px; /* exact Figma: 40px */
  min-width: 40px; /* square for perfect circle */
  padding: 8px 18px; /* Figma shows 8px vertical padding and 18px horizontal */
  border-radius: 20px; /* 20px radius as shown */
  font-weight: 700;
  font-size: 20px; /* match Figma visual scale */
  line-height: 1;
}

.discover-underline {
  font-weight: 700;
  font-size: 18px;
  line-height: 27px;
  color: var(--muted-500);
  text-decoration: underline;
  margin: 0; /* spacing handled by flex gap in content column */
}

/* Ensure discover links always use #4b5563 and stay underlined */
.discover-underline a,
.discover-underline a:hover,
.discover-underline a:focus,
.discover-underline a:active,
.discover-underline a:visited {
  color: #4b5563;
  text-decoration: underline;
}

.reason h2 {
  color: #000;
  font-family: "Dhyana";
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: 38px; /* 126.667% */
  margin: 0;
}

.reason p {
  color: var(--muted-500);
  font-size: 16px;
  line-height: 24px;
  margin: 0;
}

/* Right column stack spacing - Frame 17 outer container */
.reason__content {
  display: flex;
  padding: 40px 30px 40px 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1 0 0;
}

/* Frame 16 inner container */
.reason__content-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  align-self: stretch;
}

/* Header container for badge and h2 */
.reason__header {
  display: flex;
  padding-right: 30px;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
  align-self: stretch;
}

.reason__media {
  display: flex;
  max-height: 650px;
  padding: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1 0 0;
  align-self: stretch;
}

.reason__media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.closing {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 30px;
}
.closing__content {
  display: flex;
  flex-direction: column;
  gap: 0; /* use explicit margins for precise control */
  flex: 1;
  padding: 40px 30px 40px 0;
}
.closing__content p {
  margin: 0; /* reset default p margins inside this section */
}
.closing h2 {
  font-family: "Dhyana";
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: 38px;
  color: #000;
  margin: 0 0 40px;
}
.closing__content > p:first-of-type {
  margin: 0 0 40px;
}
.closing__content .cta-underline {
  color: #4b5563;

  /* CTA/4 */
  font-family: Inter;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 27px; /* 150% */
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;

  margin: 0 0 10px; /* 10px before social proof */
  max-width: 520px; /* match Figma line break at 'save' */
}
/* Specific max width for the closing CTA link paragraph */
.closing__content .cta-underline.cta-underline--max-397 {
  max-width: 397px;
}
.closing p {
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  color: #4b5563;
}

.closing__media {
  flex: 1;
}

.closing__media img {
  width: 100%;
  height: 540px;
  max-height: 650px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 14px;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  color: var(--muted-500);
}
.stars {
  color: #dc9386;
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 1;
}

/* Make closing section stars use brand blue to match Figma */
.closing .stars {
  color: var(--brand-blue);
}
.closing .social-proof {
  color: var(--muted-500);
}

/* Reviews stars (inside review cards) should also use brand blue */
.reviews .stars {
  color: var(--brand-blue);
}

.footer {
  background: #fff;
  padding-bottom: 60px;
}
.footer .divider {
  display: block;
  width: 100%;
  max-width: 1152px;
  margin: 0 auto 20px;
  border: none;
  height: 1px;
  background: #e5e7eb;
}
.footer p {
  color: #6b7280;
  font-size: 14px;
  text-align: center;
  padding: 0 30px;
}

/* Responsive */
@media (min-width: 769px) {
  .hero h1 {
    color: #000;
  }
  .hero .cta-underline {
    margin: 0 0 45px;
  }
  .reviews {
    padding: 30px 30px 40px;
  }
  /* Allow hero media to be responsive instead of rigid width */
  .hero {
    grid-template-columns: 1.1fr 1fr;
  }
  /* Match Figma: flexbox with 40px gap inside 1152px card */
  .reason {
    display: flex;
    padding: 20px;
    margin: 40px auto;
    max-width: min(1152px, calc(100% - 60px));
    align-items: flex-start; /* allow columns to size to their content */
  }
  .reason__media {
    display: flex;
    align-items: stretch; /* let media column stretch with content */
    max-height: 650px; /* maintain 650px max height */
  }
  .reason__media img {
    width: 100%;
    height: 100%; /* fill media container height for zoom effect */
    max-height: 650px;
    object-fit: cover; /* crop as needed while filling area */
    border-radius: 8px;
  }
  .reviews > .container {
    display: flex;
    max-width: 1152px;
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    align-self: stretch;
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    display: flex; /* stack image above content */
    flex-direction: column;
    gap: 40px; /* spacing between media and text */
  }
  .closing {
    flex-direction: column; /* stack for mobile */
    gap: 30px; /* spacing between image and content per comp */
  }
  .closing__media {
    order: -1; /* place image above text */
    width: 100%;
    padding: 0; /* no inner padding on mobile */
    flex: none; /* don't stretch vertically */
  }
  .closing__media img {
    height: 363px; /* mobile image height from comp */
    max-height: 650px;
    border-radius: 8px;
    object-fit: cover;
  }
  .closing__content {
    width: 100%;
    flex: none;
    padding: 0 20px 40px 0; /* right + bottom padding per comp */
    gap: 30px; /* default vertical spacing per comp */
  }
  .closing h2 {
    margin: 0; /* remove bottom margin on mobile; spacing via container gap */
    max-width: none; /* allow full width on mobile */
  }
  .closing__content > p:first-of-type {
    margin: 0; /* handled by h2 margin and container gaps */
  }
  .closing__content .cta-underline {
    max-width: 470px; /* match comp */
    margin: 0;
  }
  /* Ensure body copy matches spec (only the descriptive paragraph) */
  .closing__content > p:not(.cta-underline) {
    color: #4b5563;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
    /* Nudge wrapping to match Figma line breaks */
    padding-right: 2px;
  }
  .closing .social-proof {
    justify-content: flex-start; /* left align with CTA */
    gap: 6px; /* tighter gap on mobile */
    margin-top: -14px; /* reduce 30px gap to 16px under CTA */
  }
  .closing .social-proof p {
    font-weight: 700;
    line-height: 20px;
    margin: 0;
    text-align: left;
  }
  /* Hero CTA underline ("Experience how...") exact mobile spec */
  .hero .cta-underline {
    color: #4b5563;
    /* CTA/4 */
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 27px; /* 150% */
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
  }
  /* Mobile layout for Reasons */
  .reasons {
    padding: 20px 20px 20px; /* section side padding per mobile comp */
  }
  .reasons .container.reason {
    /* This is the card (Frame 19): 10px sides, 40px bottom */
    padding: 10px 10px 40px; /* overrides base .container 30px */
  }
  .reason {
    display: flex;
    flex-direction: column; /* stack image above content */
    gap: 20px;
    background: #fff;
    border-radius: 10px;
    padding: 0; /* padding handled by the more specific card selector above */
    margin: 16px 0; /* tighter vertical rhythm on mobile */
    align-items: stretch;
  }
  .reason__media {
    padding: 0; /* inner frame around image */
  }
  .reason__media img {
    width: 100%;
    height: 320px; /* fixed mobile media height */
    object-fit: cover;
    border-radius: 8px;
  }
  .reason__content {
    /* let the outer card control left/right; inner will add right padding */
    padding: 0; /* content wrapper itself has no extra side padding on mobile */
  }
  .reason__content-inner {
    gap: 20px; /* reduce spacing on mobile */
    padding-right: 20px; /* extra right padding per comp (Frame 17) */
  }
  .reason__content-inner .badge {
    margin-bottom: 0; /* avoid desktop negative pull-up on mobile */
  }
  .reason__header {
    padding-right: 0;
    gap: 14px;
  }
  .reason p {
    color: #4b5563;
    /* Body/1 */
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
  }
  /* Discover underline typography (mobile) - higher specificity to beat .reason p */
  .reason .discover-underline {
    color: #4b5563;
    /* CTA/4 */
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 27px; /* 150% */
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
  }

  .hero__media {
    order: -1; /* move photo card above title */
    width: 100%;
  }
  .hero__media .photo-card {
    min-height: 0; /* override desktop min-height */
    height: 500px; /* mobile comp height */
  }

  /* Mobile button styles for "Try the Gummies" buttons */
  .btn {
    color: #fff;
    text-align: center;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
  }

  /* Left-align reviews title on mobile */
  .reviews__title {
    text-align: left;
  }

  /* Adjust reviews container padding on mobile */
  .reviews > .container {
    padding: 0 20px;
  }
}
