/* Example screens: four phones drawn on the sheet. Each is a light screen in a
   ruled frame, with its callout underneath. Names and details are made up. */
.screens {
  list-style: none;
  margin: clamp(1.75rem, 4vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 1rem clamp(1rem, 2vw, 1.5rem);
}
.screens > li {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  gap: 1rem;
  min-width: 0;
}
.phone {
  display: flex;
  padding: 7px;
  border: 1.5px solid var(--ink);
  border-radius: 26px;
  background: rgba(19, 58, 112, .55);
}
.glass {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 19px;
  background: var(--ink);
  color: #10294f;
}
.bar {
  padding: .65rem .85rem .6rem;
  border-bottom: 1px solid rgba(16, 41, 79, .16);
}
.bar b { display: block; font-size: 1rem; font-weight: 500; line-height: 1.25; }
.bar span {
  display: block;
  margin-top: .15rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #10294f;
}
.scr {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: .85rem;
  font-size: .9rem;
  line-height: 1.35;
}
.scr p { margin: 0; }
.scr .sys {
  margin: .15rem 0;
  text-align: center;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #10294f;
}
.msg {
  max-width: 90%;
  padding: .5rem .7rem;
  border-radius: 15px;
}
.msg.in { align-self: flex-start; border-bottom-left-radius: 4px; background: #d6e1f5; }
.msg.out { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--paper); color: var(--ink); }
.msg u { text-underline-offset: .15em; }
.scr .lbl { margin-top: .25rem; font-weight: 500; }
.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .3rem; }
.days span {
  padding: .3rem 0 .35rem;
  border: 1px solid rgba(16, 41, 79, .3);
  border-radius: 9px;
  text-align: center;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.days b { display: block; font-family: var(--body); font-size: 1.05rem; font-weight: 500; letter-spacing: 0; }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; }
.slots span, .field {
  padding: .42rem .6rem;
  border: 1px solid rgba(16, 41, 79, .3);
  border-radius: 9px;
}
.slots span { text-align: center; }
.opts { display: flex; flex-wrap: wrap; gap: .3rem; }
.opts span {
  padding: .2rem .65rem .25rem;
  border: 1px solid rgba(16, 41, 79, .3);
  border-radius: 999px;
  font-size: .84rem;
}
.scr .on { border-color: var(--tape); background: var(--tape); color: var(--tape-ink); }
.scr .go {
  margin-top: auto;
  padding: .6rem;
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  font-weight: 500;
}
.screens .no {
  display: block;
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--tape);
}
.screens strong { display: block; margin-top: .35rem; font-size: 1.1rem; font-weight: 500; }
.screens .what { display: block; margin-top: .3rem; color: var(--ink-soft); font-size: 1.0625rem; }
.screens .whose {
  display: inline-block;
  margin-left: .6rem;
  padding: .05rem .4rem .1rem;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  vertical-align: .05em;
}
.swipe {
  display: none;
  margin: 1.25rem 0 0;
  font-family: var(--mono);
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tape);
}
.fineprint { margin: 1.5rem 0 0; max-width: 60ch; color: var(--ink-soft); font-size: .95rem; }

@media (max-width: 1040px) {
  .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; }
  .screens > li { margin-bottom: 1.25rem; }
}

/* On a phone the four screens become one row to swipe through, with the next
   screen showing at the edge. */
@media (max-width: 640px) {
  .swipe { display: block; }
  .screens {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    gap: 1rem;
    margin-top: .9rem;
    margin-inline: calc(-1 * clamp(1rem, 6vw, 6rem));
    padding-inline: clamp(1rem, 6vw, 6rem);
    padding-bottom: .75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: clamp(1rem, 6vw, 6rem);
    -webkit-overflow-scrolling: touch;
  }
  .screens > li { margin-bottom: 0; scroll-snap-align: start; }
  .screens:focus-visible { outline: 2px solid var(--tape); outline-offset: -2px; }
}

/* Hero figure: the whole service as one exchange, drawn beside the wordmark. */
.hero.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.moment { display: flex; flex-direction: column; gap: .6rem; margin: 0; }
.moment p { margin: 0; }
.moment .call, .moment figcaption {
  font-family: var(--mono);
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.moment .call { align-self: center; padding: .2rem .7rem .25rem; border: 1px solid var(--rule); }
.moment .msg { max-width: 88%; font-size: 1rem; line-height: 1.35; }
.moment .msg.in { background: var(--ink); color: #10294f; }
.moment .msg.out { border: 1px solid var(--rule); background: var(--paper-lift); }
.moment .booked { align-self: flex-end; }
.moment figcaption { margin-top: .5rem; padding-top: .6rem; border-top: 1px solid var(--rule); color: var(--ink-soft); }
@media (min-width: 901px) {
  .hero.split h1 { font-size: clamp(3.6rem, 13.5vw, 11rem); }
}
@media (max-width: 900px) {
  .hero.split { grid-template-columns: minmax(0, 1fr); }
  .moment { max-width: 24rem; }
}

/* Tiny phones: let the caption under the wordmark wrap instead of pushing the page sideways. */
@media (max-width: 380px) { .dim-value { white-space: normal; text-align: center; } }
