/* The product story is local to the homepage. */
.product-story {
  --ps-ink: #143d43;
  --ps-paper: #f9f8f3;
  --ps-line: #ccd6d0;
  background: var(--ps-paper);
  color: var(--ps-ink);
  padding-block: clamp(58px, 6vw, 94px);
}
.product-story__intro {
  margin-block-end: clamp(24px, 3vw, 42px);
}
.product-story h2, .product-story h3 { margin: 0; font-weight: 650; letter-spacing: -.045em; }
.product-story h2 { font-size: clamp(36px, 4vw, 58px); line-height: 1.2; }
.product-story__intro > p {
  margin: 0 0 10px;
  color: #516461;
  font-size: 15px;
  line-height: 1.5;
}
.product-story__tour {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.product-story__sr, .product-story__choice {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.product-story__tab {
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--ps-line);
  font-weight: 550;
  color: #516461;
  cursor: pointer;
}
.product-story__tab:hover { background: #eff2ec; }
.product-story__choice:checked + label {
  color: var(--ps-ink);
  font-weight: 700;
  box-shadow: inset 0 -2px var(--ps-ink);
}
.product-story__choice:focus-visible + label {
  outline: 2px solid #816b46;
  outline-offset: -3px;
}
.product-story__scene {
  display: none;
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: minmax(220px, .83fr) minmax(0, 1.7fr);
  align-items: center;
  gap: clamp(30px, 4.5vw, 72px);
  padding-top: clamp(26px, 3.4vw, 50px);
}
.product-story__choice:checked + label + .product-story__scene { display: grid; }
.product-story h3 { font-size: clamp(24px, 2.1vw, 32px); line-height: 1.4; }
.product-story h3::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-bottom: 18px;
  background: #c6ad83;
}
.product-story__copy p { margin-top: 15px; font-size: 16px; line-height: 1.85; color: #374d4b; }
.product-story__figure { min-width: 0; margin: 0; }
.product-story__picture {
  display: block;
  padding: clamp(10px, 1.55vw, 23px);
  background: #e6eeea;
  border-radius: 4px;
  cursor: zoom-in;
  overflow: hidden;
}
.product-story__picture img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.83;
  object-fit: cover;
  object-position: center;
  border: 1px solid #cbd6d0;
  border-radius: 2px;
}
.product-story figcaption { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-top: 13px; color: #506561; font-size: 13px; line-height: 1.6; }
.product-story figcaption a { white-space: nowrap; color: var(--ps-ink); text-underline-offset: 3px; }
.product-story figcaption a:hover { text-decoration: underline; }
@media (max-width: 850px) {
  .product-story__scene { grid-template-columns: minmax(205px,.8fr) minmax(0,1.2fr); gap: 24px; }
}
@media (max-width: 680px) {
  .product-story__scene { grid-template-columns: 1fr; }
  .product-story__copy p { font-size: 15px; line-height: 1.8; }
  .product-story__tab { font-size: clamp(12px, 3.5vw, 15px); min-height: 46px; }
  .product-story__scene { gap: 21px; }
  .product-story h3::before { margin-bottom: 11px; }
  .product-story__copy p { margin-top: 10px; }
  .product-story__picture { padding: 8px; }
  .product-story__picture img { aspect-ratio: 1.42; }
  .product-story__figure--messages img { object-position: 78% 50%; }
  .product-story__figure--quote img { object-position: 82% 50%; }
  .product-story figcaption { font-size: 12px; padding-top: 8px; gap: 6px; }
}

html:has(.product-story__preview[open]) {
  overflow: hidden;
}
html:has(.product-story__preview[open][data-reserve-scrollbar]) {
  scrollbar-gutter: stable;
}
.product-story__preview {
  width: min(100% - 24px, 1240px);
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--ps-line);
  border-radius: 6px;
  background: var(--ps-paper);
  color: var(--ps-ink);
}
.product-story__preview::backdrop { background: rgb(16 36 37 / 76%); }
.product-story__preview-panel { padding: clamp(8px, 2vw, 18px); }
.product-story__preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.product-story__preview-bar p { margin: 0; font-size: 14px; font-weight: 650; }
.product-story__preview-bar button {
  min-height: 44px;
  padding-inline: 14px;
  border: 1px solid var(--ps-line);
  border-radius: 4px;
  background: transparent;
  color: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.product-story__preview-bar button:hover { background: #e6eeea; }
.product-story__preview-panel img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 124px);
  margin-inline: auto;
}

/* Keep the original image as the grid item when offering alternate sources. */
.companions-section picture { display: contents; }
.companions-section picture > source { display: none; }
.companions-section picture > img { aspect-ratio: 1122 / 1402; }

.hero-actions .hero-roadmap-link { border-color: #bda16f; color: #806035; }

/* The existing header login is hidden at tablet and phone widths. */
.hero-note .hero-login-link { display: none; }
@media (max-width: 1050px) {
  .hero-note .hero-login-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-inline-start: 12px;
    color: #174b48;
    font-size: 13px;
    letter-spacing: normal;
    font-weight: 600;
    text-underline-offset: 4px;
  }
  .hero-login-link:hover { text-decoration: underline; }
}
