/* An illustrated story with one clock, no embedded application or video. */
.narrative-art,
.benefit-illustration {
  --narr-paper: #fff;
  --narr-paper-soft: #f3f7ff;
  --narr-ink: #17335b;
  --narr-muted: #788ba6;
  --narr-line: #dce7f5;
  --narr-blue: #007bff;
  --narr-depth: #c5d9f4;
  --narr-shadow: #22477e24;
  --narr-followed-bg: #e5f6f1;
  --narr-followed-ink: #168065;
  color: var(--narr-ink);
}
html[data-theme="dark"] .narrative-art,
html[data-theme="dark"] .benefit-illustration {
  --narr-paper: #252526;
  --narr-paper-soft: #313131;
  --narr-ink: #f0f0f0;
  --narr-muted: #b0b0b0;
  --narr-line: #383838;
  --narr-blue: #469ff8;
  --narr-depth: #1f1f1f;
  --narr-shadow: #00000040;
  --narr-followed-bg: #313131;
  --narr-followed-ink: #f0f0f0;
}
.hero:has(.narrative-art) {
  align-items: center;
  padding-top: 30px;
  padding-bottom: 34px;
}
.hero-art.narrative-art {
  position: relative;
  display: block;
  align-self: center;
  width: calc(100% + 72px);
  margin: -12px 0 -6px -38px;
  transform: none;
  isolation: isolate;
}
.narrative-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 7% -4% 8% 1%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    #b0d6ff40,
    #cbb4f02b 44%,
    transparent 72%
  );
  pointer-events: none;
}
html[data-theme="dark"] .narrative-art::before {
  background: radial-gradient(
    ellipse,
    #18181850,
    #25252626 44%,
    transparent 72%
  );
}
/* Match the dark feed canvas, raised cards and controls throughout the story. */
html[data-theme="dark"] .narrative-art {
  & #narr-feed > .narr-paper { fill: #181818; }
  & .narr-back-paper, & .narr-reaction-tile {
    fill: var(--narr-paper);
    stroke: var(--narr-line);
  }
  & .narr-glass-dark { fill: var(--narr-paper-soft); stroke: var(--narr-line); }
  & .narr-depth-dark { fill: var(--narr-depth); }
  & .narr-connectors { stroke: #626262; }
  & .narr-ground { fill: #000; opacity: .28; }
  & #narr-halo-gradient stop { stop-color: #383838; }
  & #narr-card-shadow feDropShadow, & #narr-float-shadow feDropShadow { flood-color: #000; }
}
.narrative-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: "Open Sans", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  pointer-events: none;
  user-select: none;
}
.narrative-svg .narr-paper {
  fill: var(--narr-paper);
}
.narrative-svg .narr-soft {
  fill: var(--narr-paper-soft);
}
.narrative-svg .narr-ink {
  fill: var(--narr-ink);
}
.narrative-svg .narr-muted {
  fill: var(--narr-muted);
}
.narrative-svg .narr-line {
  stroke: var(--narr-line);
}
.narrative-svg .narr-depth {
  fill: var(--narr-depth);
}
.narrative-svg .narr-blue {
  fill: var(--narr-blue);
}
.narrative-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 38px;
  margin: -14px 12px 0;
  color: var(--narr-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}
.narrative-caption [data-narrative-label] {
  min-width: 252px;
}
.narrative-description {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 1247px) and (min-width: 845px) {
  .hero-art.narrative-art {
    width: calc(100% + 42px);
    margin-left: -28px;
  }
}
@media (max-width: 844px) {
  .hero:has(.narrative-art) {
    padding-top: 50px;
    padding-bottom: 30px;
  }
  .hero-art.narrative-art {
    width: 100%;
    max-width: 690px;
    margin: 14px auto 0;
  }
}
@media (max-width: 539px) {
  .hero:has(.narrative-art) {
    padding-top: 68px;
    padding-bottom: 26px;
  }
  .hero-art.narrative-art {
    width: calc(100% + 16px);
    margin: 12px -8px 0;
  }
  .narrative-caption {
    margin-top: -5px;
    gap: 7px;
    font-size: 13px;
  }
  .narrative-caption [data-narrative-label] {
    min-width: 0;
  }
}

/* The two homepage illustrations share the story's paper, ink and depth. */
.benefit-visual.benefit-illustration {
  --art-lilac: #e7e2f6;
  --art-glass: #dceafa;
  --art-rim: #c7daef;
  --art-shadow: #465985;
  --art-selection: #307567;
  --art-phone: #242526;
  --art-phone-rim: #363739;
  --art-phone-edge: #46474a;
  --art-phone-ink: #d0d0d0;
  --art-phone-line: #797b80;
  --art-halo: #e7eaf970;
  height: auto;
  background: radial-gradient(ellipse closest-side, var(--art-halo), transparent);
}
html[data-theme="dark"] .benefit-illustration {
  --art-lilac: #2d2d30;
  --art-glass: #343437;
  --art-rim: #48484b;
  --art-shadow: #000;
  --art-selection: #86c6ac;
  --art-phone: #f7faff;
  --art-phone-rim: #d6e3f1;
  --art-phone-edge: #b1c1d4;
  --art-phone-ink: #577089;
  --art-phone-line: #96a8bc;
  --art-halo: #34343680;
  background: radial-gradient(ellipse closest-side, var(--art-halo), transparent);
}
.benefit-scene {
  display: block;
  width: 100%;
  height: auto;
  max-height: 308px;
  font-family: "Open Sans", Arial, sans-serif;
  pointer-events: none;
  user-select: none;
}
.benefit-paper-shadow {
  filter: drop-shadow(0 5px 8px var(--narr-shadow));
}
.benefit-night-mark,
html[data-theme="dark"] .benefit-day-mark {
  display: none;
}
html[data-theme="dark"] .benefit-night-mark {
  display: inline;
}
@media (min-width: 540px) and (max-width: 700px) {
  .benefit-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .benefit-illustration {
      view-timeline-name: --benefit-in-view;
    }
    .benefit-swatch-check,
    .benefit-water-light {
      stroke-dasharray: 1;
      animation: benefit-draw 1s ease-out both;
      animation-timeline: --benefit-in-view;
      animation-range: entry 12% entry 82%;
    }
    @keyframes benefit-draw {
      from { stroke-dashoffset: 1; }
      to { stroke-dashoffset: 0; }
    }
  }
}
