/* The demo's screenshots, drawn like the app draws them: the app's template
   geometry on a card 286.3 × 622 (an iPhone canvas, 1320 × 2868, at the size
   the app shows it in a 1440 × 900 window with several languages), its
   rounded headline font and its own iPhone renders (img/phone-*.webp).
   slides.js builds them and paints each state. */

.sl {
  --cw: 286.3px;
  --ch: 622px;
  position: relative;
  width: var(--cw);
  height: var(--ch);
  overflow: hidden;
  background: #fff;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Helvetica, sans-serif;
  -webkit-user-select: none;
  user-select: none;
}
.sl > * { position: absolute; }
.sl-bg { inset: 0; }
/* As captured: the app's starting gradient. */
.sl-bg0 { background: linear-gradient(180deg, #f5f5f7, #dce4f2); }
.sl-bg1 { opacity: 0; }
.s0 .sl-bg1 { background: linear-gradient(180deg, #eef0ff, #d6dcfe); }
.s1 .sl-bg1 { background: linear-gradient(180deg, #f4eeff, #e0d2ff); }
.s2 .sl-bg1 { background: linear-gradient(180deg, #e9f8f0, #cdf0dd); }
.s3 .sl-bg1 { background: linear-gradient(180deg, #fff2e9, #ffdac3); }
.s0 { --tint: #5b5bf0; }
.s1 { --tint: #8b5cf6; }
.s2 { --tint: #12a36b; }
.s3 { --tint: #f06a28; }
/* Across two: one gradient running over both cards, one circle on the seam. */
.sl-bg2 { opacity: 0; }
.s1 .sl-bg2 { background: linear-gradient(90deg, #0b1023, #1e1b4b); }
.s2 .sl-bg2 { background: linear-gradient(90deg, #1e1b4b, #3b1a73); }
.sl-circle { top: 30.09%; width: 130%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.07); opacity: 0; }
.s1 .sl-circle { left: 35%; }
.s2 .sl-circle { left: -65%; }

/* Words: the app's headline and subtitle boxes. */
.sl-copy { left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.sl-hl, .sl-sub { position: absolute; display: grid; text-align: center; }
.sl-hl > span, .sl-sub > span { grid-area: 1 / 1; }
.sl-hl {
  left: 6%;
  top: 5.2%;
  width: 88%;
  font: 800 28.1px/1.02 ui-rounded, "SF Pro Rounded", -apple-system, "Helvetica Neue", sans-serif;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}
.sl-hl em { font-style: normal; color: var(--tint); }
.sl-sub { left: 8.3%; top: 15.8%; width: 83.4%; font-size: 11.2px; font-weight: 600; line-height: 1.22; letter-spacing: -0.005em; color: #424245; }
.sl-t0 .sl-hl em { color: #0071e3; }
.sl-t1 { opacity: 0; }
.sl-t1 .l-fr, .sl-t1 .l-ja, .sl-t1 .l-de { opacity: 0; }
/* Longer words are fitted, as the app fits a translation. */
.sl-hl .l-ja { font-size: 23.5px; line-height: 1.18; letter-spacing: 0; }
.sl-hl .l-fr, .sl-hl .l-de { font-size: 25.5px; }
.sl-t2 { opacity: 0; }
.sl-t2 .sl-hl { left: 6.97%; top: 7.01%; width: 85.98%; font-size: 32.1px; color: #fff; }
.sl-t2 .sl-hl em { color: #a78bfa; }
.sl-t2 .sl-sub { top: 19.8%; width: 80%; font-size: 12.4px; color: #c7d2fe; }
.s1 .sl-t2 .sl-hl, .s1 .sl-t2 .sl-sub { text-align: left; }
.s1 .sl-t2 .sl-sub { left: 6.97%; }
.s2 .sl-t2 .sl-hl, .s2 .sl-t2 .sl-sub { text-align: right; }
.s2 .sl-t2 .sl-sub { left: 13.03%; }

/* Social proof: the app's own laurels badge (62% of the width, as the app adds
   it). The picture has a margin of a tenth of that all round, for the branches. */
.sl-badge { left: 12.8%; top: 1.35%; width: 74.4%; opacity: 0; }
.sl-badge img { display: block; width: 100%; height: auto; }

/* The iPhone: the app's own renders. The element is the device's box; each
   picture carries the same margins around it (20% of the width each side,
   10% of the height above and below) for the shadow and the tilt. */
.sl-dev { left: 13.3%; top: 23%; width: 73.5%; aspect-ratio: 0.47794; transform-origin: 50% 50%; }
.sl-dev img { position: absolute; left: -20%; top: -10%; width: 140%; height: 120%; max-width: none; opacity: 0; }
.sl-dev img:first-child { opacity: 1; }

/* The magnifier, over the weekly distance. */
.sl-mag {
  left: 3%;
  top: 34%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid #fff;
  background: #fff no-repeat;
  box-shadow: 0 14px 30px -10px rgba(13, 31, 69, 0.55), 0 0 0 0.5px rgba(0, 0, 0, 0.12);
  opacity: 0;
}

/* The feature pop-out: the card lifted out of the screen and enlarged, with a
   soft shadow. Its corners are the card's own (64 of 1200 x 520). */
.sl-pop {
  border-radius: 5.333% / 12.308%;
  background: none 0 0 / 100% 100% no-repeat;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 14px 30px -8px rgba(30, 27, 75, 0.45), 0 4px 10px rgba(30, 27, 75, 0.18);
  transform-origin: 50% 50%;
  opacity: 0;
}
