/* The Mobile page: Virlow for iPhone and iPad. Built on styles.css and
   workspace.css. */
/* Phone and tablet screenshots are square with no edge of their own. */
img {
  border: 1px solid var(--border);
}
.mobile-soon {
  display: inline-block;
  margin: 0 0 22px;
  padding: 4px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.tour-intro .mobile-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 16px;
}

/* Five phone screens in a row. A phone shot is tall and narrow, so on a
   wide screen they sit side by side; below that the row scrolls sideways
   instead of shrinking each screen until it cannot be read. The column
   widths match the `sizes` on each picture: a fifth of the row less the
   gaps, a fixed 240px, then the row less 100px so the next screen peeks
   in. They resolve to whole pixels at common widths on purpose: a tall
   shot's height is rounded separately from its width, so a fractional
   width puts its intrinsic shape more than a pixel off. */
.mobile-shots {
  padding: 0 0 64px;
}
.mobile-shot-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mobile-shot-row img {
  /* The screen's own rounded corners, as a share of its width and height. */
  border-radius: 13.5% / 6.2%;
}
.mobile-shot-row figcaption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.mobile-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}
.mobile-points li {
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}
.mobile-points strong {
  color: var(--fg);
}

@media (max-width: 1000px) {
  .mobile-shot-row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 240px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
  }
  .mobile-shot-row li {
    scroll-snap-align: start;
  }
}
@media (max-width: 760px) {
  .mobile-shots {
    padding-bottom: 40px;
  }
  .mobile-shot-row {
    grid-auto-columns: calc(100% - 100px);
  }
}

/* iPad, in landscape: the three-column shot across the full width, the
   other two in a row below it. The column widths match the `sizes` on each
   picture: the content width, then half of it less the gap. */
.ipad-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px;
}
.ipad-shot--main {
  grid-column: 1 / -1;
}
.ipad-shot img {
  /* The iPad screen's own rounded corners, as a share of its width and
     height. */
  border-radius: 1.5% / 2%;
}
.ipad-shot figcaption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}
@media (max-width: 760px) {
  .ipad-shots {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Memories: the Pro feature, first. Four screens in a row with what each
   does under it, then Remember and the widget beside their copy, then the
   iPad. The row's columns match the `sizes` on each picture: a quarter of
   the content less the gaps, then the same scrolling row as above. */
.mobile-pro {
  margin-left: 8px;
  padding: 1px 6px;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.mobile-memories {
  row-gap: 56px;
}
.memory-shot-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.memory-shot-row figcaption {
  margin-top: 14px;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--muted);
}
.memory-shot-row figcaption strong {
  display: block;
  margin-bottom: 4px;
  color: var(--fg);
}
.memory-split {
  display: grid;
  grid-template-columns: 0.85fr 1.25fr;
  gap: 64px;
  align-items: center;
}
.memory-split--reverse {
  grid-template-columns: 1.25fr 0.85fr;
}
.memory-split--reverse .tour-copy {
  order: 2;
}
/* Not the wide step's two-column copy: these sit in a column of their own. */
.mobile-memories .memory-split .tour-copy {
  display: block;
}
.memory-split .tour-copy h3 {
  margin-top: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.memory-pair {
  display: grid;
  /* Equal heights: the phone is 660 by 1434, the sheet 657 by 1032. */
  grid-template-columns: 0.42fr 0.58fr;
  gap: 16px;
  align-items: end;
}
.memory-pair figure:first-child img {
  border-radius: 13.5% / 6.2%;
}
.memory-pair figcaption,
.memory-widget figcaption,
.theme-grid figcaption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}
/* The renders are drawn on the page's own color, with their own edges. */
.memory-pair figure:last-child img,
.memory-widget img {
  border: 0;
}
.memory-widget {
  justify-self: center;
  width: 100%;
  max-width: 420px;
}

/* Themes: the top of a note list in each theme, with the glow. */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.theme-grid--glow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.theme-grid-label {
  margin: 16px 0 -16px;
  font-size: 18px;
}
.theme-grid img {
  /* The screen's own top corners; the crop ends mid-list. */
  border-radius: 13.5% 13.5% 0 0 / 13.5% 13.5% 0 0;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 1000px) {
  .memory-shot-row {
    grid-template-columns: none;
    gap: 16px;
  }
  .memory-split {
    gap: 32px;
  }
}
@media (max-width: 760px) {
  .mobile-memories {
    row-gap: 40px;
  }
  .memory-split,
  .memory-split--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .memory-split--reverse .tour-copy {
    order: 0;
  }
  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }
  .theme-grid--glow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
