/* The alarm sounds' pages: the moods' chips, the cards of the sounds, the
   lists, the player on a sound's own page and its details, the steps that
   open after a download and the line after a later one, and the bridge to
   the app. The dawn, the sheet, the type and the colours are the shared
   stylesheet's; this file adds the catalogue's pieces alone, so no other
   page loads it. Airy: one sound a card, one message on a card, room around
   everything. */

:root {
  /* A card's download button on its mood's colours. */
  --art-button: rgba(255, 255, 255, 0.72);
  /* A sound's dial on a card: its notes before they play (the ink at the strength the drawing had), lit while heard,
     their trace once heard, the glow around a lit note, the hand, the rim it runs on, how the glow is laid and the
     spark's colours (sounds.js reads them). */
  --dial-ink: rgb(23, 28, 56);
  --dial-rest-a: 0.48;
  --dial-lit: #e5501a;
  --dial-played: rgba(173, 51, 10, 0.7);
  --dial-glow: rgba(255, 115, 61, 1);
  --dial-hand: rgba(23, 28, 56, 0.66);
  --dial-rim: rgba(23, 28, 56, 0.11);
  --dial-blend: source-over;
  --dial-spark: light;
  /* Each mood's two colours: a soft gradient behind its cards' drawing, and its chip's dot. */
  --calm-a: #e8e6fb;
  --calm-b: #d3e2f6;
  --cheerful-a: #fff0d3;
  --cheerful-b: #ffd6b3;
  --energetic-a: #ffe2eb;
  --energetic-b: #ffc4d5;
  --classic-a: #eceef4;
  --classic-b: #d9deea;
  --nature-a: #def3e8;
  --nature-b: #c4e6d4;
  /* The bridge to the app: a warm tint of the sun's colour, and its edge. */
  --bridge-a: #fff5ec;
  --bridge-b: #ffe7d7;
  --bridge-edge: rgba(255, 115, 61, 0.2);
}

@media (prefers-color-scheme: dark) {
  :root {
    --art-button: rgba(255, 255, 255, 0.14);
    --dial-ink: rgb(255, 255, 255);
    --dial-rest-a: 0.5;
    --dial-lit: #ffc76b;
    --dial-played: rgba(255, 199, 107, 0.56);
    --dial-glow: rgba(255, 176, 92, 1);
    --dial-hand: rgba(255, 255, 255, 0.8);
    --dial-rim: rgba(255, 255, 255, 0.11);
    --dial-blend: lighter;
    --dial-spark: dark;
    --calm-a: #2a3172;
    --calm-b: #3d2f70;
    --cheerful-a: #5b4216;
    --cheerful-b: #7a4915;
    --energetic-a: #5a1f4b;
    --energetic-b: #7c2648;
    --classic-a: #2c3347;
    --classic-b: #3c435a;
    --nature-a: #15403a;
    --nature-b: #1e5547;
    --bridge-a: #2c2b5a;
    --bridge-b: #3a2a55;
    --bridge-edge: rgba(255, 199, 107, 0.2);
  }
}

/* What the script shows once it runs (the play buttons, the moods' chips,
   "see all") and what a chip and the lists hide stay out of the layout while
   hidden. */
.sounds [hidden] {
  display: none !important;
}

/* ------------------------------------------------------------------ */
/* The title over the dawn                                            */

.sounds-back {
  margin-bottom: 20px;
  font-weight: 600;
}

.sounds-back a {
  color: var(--gold);
  text-decoration: none;
}

.sounds-back a:hover {
  text-decoration: underline;
}

.sounds-back a::before {
  content: "← ";
  content: "← " / "";
}

/* Back is to the right where the page reads right to left (Arabic): the arrow points there. */
[dir="rtl"] .sounds-back a::before {
  content: "→ ";
  content: "→ " / "";
}

/* The main page's sentence on whose sounds these are, under its title: the app's icon beside it, the two as one group
   in the middle of the title, the sentence reading from its start. */
.sounds-from {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 36rem;
  margin: 22px auto 0;
  color: var(--sky-ink);
  font-weight: 600;
  line-height: 1.45;
  text-align: start;
}

.sounds-from img {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

/* A Japanese or Chinese sentence there breaks where a phrase ends, as the headings over it do (style.css): after
   punctuation, at a space or at a <wbr>, never inside a word (a phone read "アプ" over "リ", "闹" over "钟"). */
.sounds-from span:is(:lang(ja), :lang(zh)) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* Apple's badge right under that sentence, unmodified and 44 px high to tap as the main page's cards have it (the
   artwork's own proportions, its width from its height), in the middle of the title as the sentence and its icon
   are: the two share one column, as wide as the sentence needs and no wider than 36rem, in the middle of the title,
   and the badge stands in the middle of that column, whichever way the page reads. Clear space around it: more than
   a quarter of its height. On Android it goes, with nothing in its place (sounds.js): the sentence over it says
   Wakeprint is an iPhone app. */
.sounds-app {
  display: grid;
  grid-template-columns: minmax(0, auto);
  justify-content: center;
  row-gap: 16px;
  max-width: 36rem;
  margin: 22px auto 0;
}

.sounds-app .sounds-from {
  max-width: none;
  margin: 0;
}

.sounds-app .sounds-app__store {
  justify-self: center;
  margin: 0;
}

.sounds-app__store img {
  height: 44px;
}

/* A sound's title: its name, large, and its kind on a line of its own. */
.sound-hero h1 .sound-name {
  display: block;
}

.sound-hero h1 .sound-kind {
  display: block;
  margin-top: 14px;
  color: var(--sky-muted);
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* A sound's words under its sentence, where the language has no feeling words (else they are in its details). */
.sound-hero .sound-tags {
  margin-top: 16px;
  color: var(--gold);
  font-weight: 700;
}

/* A pitch or a pace between the two ends: its word muted, never bold. */
.sound-tag--mid {
  font-weight: 400;
  white-space: nowrap;
}

.sound-hero .sound-tag--mid {
  color: var(--sky-muted);
}

/* The player: the sound's dial under its title (its play button at the centre, its length at 12 o'clock). The play
   button plays and pauses; a tap anywhere else on the ring plays from there (taps on a sound page's drawing once did
   nothing, and people tapped it again and again). On the dawn its notes are white and light up in gold. */
.sound-hero {
  --dial-ink: rgb(255, 255, 255);
  --dial-rest-a: 0.5;
  --dial-lit: #ffc76b;
  --dial-played: rgba(255, 199, 107, 0.6);
  --dial-glow: rgba(255, 176, 92, 1);
  --dial-hand: rgba(255, 255, 255, 0.84);
  --dial-rim: rgba(255, 255, 255, 0.1);
  --dial-blend: lighter;
  --dial-spark: dark;
}

.sound-player {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin: 58px auto 0;
}

/* The download over the dial, under the title (under the dial it fell below a phone's first screen): white on the
   dawn, as the skip link is, with room under it for the dial's length. */
.sound-download--hero {
  position: relative;
  z-index: 3;
  margin-top: 28px;
}

.sound-download--hero .sound-download__button {
  background: var(--sky-ink);
  color: var(--deep);
}

.sound-download--hero .sound-download__button:focus-visible {
  outline-color: var(--gold);
}

.sound-download--hero + .sound-player {
  margin-top: 48px;
}

/* ------------------------------------------------------------------ */
/* Below the horizon                                                  */

.sounds-main {
  padding-top: clamp(32px, 5vw, 56px);
}

.sounds-section {
  margin-top: clamp(56px, 8vw, 96px);
}

.sounds-section h2 {
  margin-bottom: 24px;
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
}

.sounds-note {
  max-width: 42rem;
  margin-bottom: 28px;
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* The moods: one row of chips                                        */

/* Its line, then the chips: one row a thumb scrolls on a phone, running to the screen's edges; where the screen is
   wide, they wrap. Each 44 px to tap; the chosen one ink, its words the page's colour. */
.sound-moods {
  margin-bottom: 26px;
}

.sound-moods__title {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
}

.sound-moods__chips {
  display: flex;
  gap: 10px;
  margin-inline: calc(-1 * var(--gutter));
  padding: 2px var(--gutter) 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sound-moods__chips::-webkit-scrollbar {
  display: none;
}

.mood-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 600 1rem/1.2 var(--font-text);
  white-space: nowrap;
  cursor: pointer;
}

.mood-chip:hover {
  border-color: var(--ink);
}

.mood-chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--page);
}

/* A mood's dot: its cards' two colours. */
.mood-chip__dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--art-a), var(--art-b));
  box-shadow: inset 0 0 0 1px rgba(23, 28, 56, 0.14);
}

@media (min-width: 760px) {
  .sound-moods__chips {
    flex-wrap: wrap;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
}

/* ------------------------------------------------------------------ */
/* A sound's card                                                     */

/* Big cards, two to a row on a phone, more where the screen is wide. */
.sound-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sound-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Each mood's colours (the cards' and the chips' dots). */
[data-mood="calm"] {
  --art-a: var(--calm-a);
  --art-b: var(--calm-b);
}

[data-mood="cheerful"] {
  --art-a: var(--cheerful-a);
  --art-b: var(--cheerful-b);
}

[data-mood="energetic"] {
  --art-a: var(--energetic-a);
  --art-b: var(--energetic-b);
}

[data-mood="classic"] {
  --art-a: var(--classic-a);
  --art-b: var(--classic-b);
}

[data-mood="nature"] {
  --art-a: var(--nature-a);
  --art-b: var(--nature-b);
}

/* The art: the mood's soft gradient, a little taller than wide, the sound's dial low in it and the download at its
   top corner, clear of the dial's rim (the dial is at most the art's height less 52 px: 108 % of its width). */
.sound-card__art {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 25 / 27;
  border-radius: 20px;
  background: linear-gradient(150deg, var(--art-a, var(--surface)), var(--art-b, var(--surface-soft)));
}

.sound-card.is-playing .sound-card__art {
  box-shadow: 0 0 0 3px var(--sun);
}

/* The download: a round button with its arrow, its words for screen readers. */
.sound-card__download {
  position: absolute;
  z-index: 3;
  top: 12px;
  inset-inline-end: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--art-button);
  color: var(--ink);
}

.sound-card__download:hover {
  background: var(--ink);
  color: var(--page);
}

/* Its name, then one line: how it feels, or its words. */
.sound-card__name {
  margin-top: 12px;
  font-size: 1.22rem;
  line-height: 1.1;
}

.sound-card__name a {
  color: var(--ink);
  text-decoration: none;
}

.sound-card__name a:hover {
  text-decoration: underline;
}

.sound-card__feel,
.sound-card__tags {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.35;
}

.sound-card__tags {
  font-weight: 600;
}

.sound-card__tags span,
.sound-tags span {
  white-space: nowrap;
}

@media (min-width: 640px) {
  .sound-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 18px;
  }
}

@media (min-width: 1000px) {
  .sound-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* "See all" under a list that shows its first few. */
.sound-more {
  margin-top: 22px;
  text-align: center;
}

.sound-more__button {
  min-height: 50px;
  padding: 0.7em 1.6em;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 700 1.02rem/1.2 var(--font-text);
  cursor: pointer;
}

.sound-more__button:hover {
  background: var(--ink);
  color: var(--page);
}

/* The play button: a sun-coloured circle, its triangle two bars while the
   sound plays. */
.sound-play {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--sun);
  color: var(--deep);
  cursor: pointer;
}

.sound-play__icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.sound-play__stop,
.is-playing .sound-play__start {
  display: none;
}

.is-playing .sound-play__stop {
  display: inline;
}

.sound-play--large {
  width: 72px;
  height: 72px;
}

.sound-play--large .sound-play__icon {
  width: 30px;
  height: 30px;
}

/* A sound's dial: one turn of it is the whole sound, clockwise from 12 o'clock, so its end meets its start; every
   heard note a stroke where and as long as it sounds, further out the higher it is, wider where it is louder. It is
   never mirrored (clockwise is every language's, Arabic's too). At rest the page's own SVG shows it; while it plays
   sounds.js draws it on two canvases in its place and lights each note while it is heard. Its play button sits at
   its centre; once the script runs, a tap anywhere else on its ring plays from there. Round, so the corners of its
   box are not part of it: no pointer there, and a tap there is not the dial's. */
.dial {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}

.dial:has(> .dial__play:not([hidden])) {
  cursor: pointer;
}

.dial__svg,
.dial__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.dial__svg {
  overflow: visible;
}

.dial__rim {
  fill: none;
  stroke: var(--dial-rim);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.dial__start {
  fill: var(--dial-rim);
}

/* Every note at rest: one ink, the whole group at the rest strength (so a note's stacked widths never darken). */
.dial__notes {
  fill: none;
  stroke: var(--dial-ink);
  stroke-linecap: round;
  opacity: var(--dial-rest-a);
}

/* While it plays the canvases draw the same notes, and the picture at rest steps aside. */
.dial.is-live .dial__notes {
  visibility: hidden;
}

.dial__play {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: var(--hub);
  height: var(--hub);
  margin: auto;
  box-shadow: 0 6px 18px -6px rgba(255, 115, 61, 0.55);
}

/* On a card: low in the art, centred, its rim clear of the download. */
.dial--card {
  --hub: 46px;
  position: absolute;
  inset-inline: 0;
  bottom: 10px;
  width: 74%;
  width: min(100cqi - 24px, 108cqi - 52px);
  margin-inline: auto;
}

/* On a sound's page: under its title and its download, 280 px at most on a phone and less on a short screen, so the
   whole dial is in the first screen (on a 664 px one, 232 px); its length at 12 o'clock, where a turn starts and
   ends. */
.dial--large {
  --hub: 72px;
  width: min(100%, 280px);
  width: min(100%, clamp(220px, 100svh - 432px, 280px));
  margin: 0 auto;
}

.dial__length {
  position: absolute;
  inset-inline: 0;
  bottom: 100%;
  margin: 0 0 4px;
  color: var(--sky-muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  text-align: center;
  pointer-events: none;
}

/* Wider, up to 420 px, the whole dial still in the first screen where it can be (1280 x 800: 320 px), 300 px at least. */
@media (min-width: 700px) {
  .dial--large {
    --hub: 78px;
    width: min(100%, 420px, calc(100vh - 480px));
    min-width: 300px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .dial__play {
    transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .dial__play:active {
    transform: scale(0.94);
  }
}

/* ------------------------------------------------------------------ */
/* A sound's page: its download                                       */

/* Centred under the centred title and player. */
.sound-download {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.sound-download__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0.8em 1.6em;
  border-radius: 999px;
  background: var(--ink);
  color: var(--page);
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
}

.sound-download__button:hover {
  text-decoration: underline;
}

.sound-download__facts {
  color: var(--muted);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.sound-license {
  color: var(--muted);
  font-size: 0.95rem;
}

/* On the main page and the lists, the licence's line closes the page's words. */
.sounds-main > .sound-license {
  max-width: 40rem;
  margin: clamp(48px, 7vw, 72px) auto 0;
  text-align: center;
}

/* ------------------------------------------------------------------ */
/* A sound's page: its details, small and low                        */

/* Its one sentence, its mood and words, its length, format and size, the licence: kept for search engines and AI
   tools, never in the way of the feeling. */
.sound-details {
  max-width: 40rem;
  margin: clamp(56px, 8vw, 88px) auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.97rem;
}

.sound-details h2 {
  margin-bottom: 12px;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.sound-details p + p {
  margin-top: 8px;
}

.sound-details .sound-tags a {
  color: var(--ink);
  font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* The lists, the ways to make a sound an alarm, the habits           */

.sound-collections {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* A list's card: its cover first, like a playlist's (sound_cover(): its notes as the sounds' drawings show them,
   in the site's colours), on the left, on the right where the page reads right to left; its name, line and count
   beside it. */
.collection-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  height: 100%;
  padding-block: 18px;
  padding-inline: 18px 22px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ground) radial-gradient(120% 70% at 50% 120%, rgba(255, 115, 61, 0.45), rgba(255, 115, 61, 0) 70%);
  color: var(--sky-ink);
  text-decoration: none;
}

.collection-card__cover {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 22px -10px rgba(4, 6, 20, 0.6);
}

.collection-card__words {
  display: grid;
  gap: 6px;
}

.collection-card__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.collection-card:hover .collection-card__name {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.collection-card__text {
  color: var(--sky-muted);
}

.collection-card__count {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
}

.collection-card:focus-visible {
  outline-color: var(--focus);
}

/* The lists side by side where the screen is wide, up to three in a row. Four stand two by two, so no card's name is
   squeezed into a quarter of the row. */
@media (min-width: 760px) {
  .sound-collections {
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
  }

  .sound-collections--pairs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
  }
}

.sound-routes {
  display: grid;
  gap: 14px;
}

.sound-route {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sound-route h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
  line-height: 1.15;
}

.sound-route .how-steps {
  margin-top: 8px;
}

.sound-route__note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.sound-route__link {
  margin-top: 16px;
}

@media (min-width: 760px) {
  .sound-routes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sound-routes--one {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The iPhone Clock app's route alone, in a language without Wakeprint's lines yet (sound_use()): one card, as wide
   as Wakeprint's card in pictures. */
.sound-routes--one {
  max-width: 600px;
}

/* The iPhone Clock route in pictures (picture_steps()): three steps side by side where the screen is wide, one under
   another on a phone, each its picture (a screenshot of iOS, or the alarm's Sound row drawn) over its one numbered
   line; the note under them. Then Wakeprint's way, one card (sound_use_pictures()). Airy: one message a step. */
.use-way h3 {
  margin-bottom: 22px;
  font-size: 1.3rem;
  line-height: 1.15;
}

.use-way + .use-way {
  margin-top: clamp(48px, 7vw, 72px);
}

.use-steps {
  display: grid;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: use-step;
}

.use-step {
  display: grid;
  align-content: start;
  gap: 16px;
  counter-increment: use-step;
}

/* The picture: 4:3, a light screen whatever the theme, as iOS draws it. */
.use-step__picture {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  background: #f2f2f7;
  box-shadow: var(--shot-shadow);
}

.use-step__picture img,
.use-step__picture svg {
  display: block;
  width: 100%;
  height: 100%;
}

.use-step__words {
  position: relative;
  max-width: 26rem;
  padding-inline-start: 44px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
}

.use-step__words::before {
  content: counter(use-step);
  position: absolute;
  top: -2px;
  inset-inline-start: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--deep);
  font: 800 0.95rem/1 var(--font-display);
}

.use-note {
  max-width: 44rem;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 760px) {
  .use-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

/* Wakeprint's way: one card, its line and the App Store link. */
.use-app {
  max-width: 600px;
  padding: clamp(18px, 4vw, 28px);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* The bridge to the app (sound_bridge()), Wakeprint's way where a language has its words, and in the steps after a
   download: one card, one message. The app's icon beside its first line, in bold; its second line under both, the
   whole width; Apple's badge under that, at its own width, with room around it. A warm tint, so it reads as the
   other way and not as one more of the Clock app's steps. The words wrap; nothing shrinks. */
.sound-bridge {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(160deg, var(--bridge-a), var(--bridge-b));
  box-shadow: inset 0 0 0 1px var(--bridge-edge);
}

.sound-bridge__icon {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  box-shadow: 0 0 0 1px var(--line);
}

.sound-bridge__title {
  color: var(--ink);
  font: 800 1.14rem/1.25 var(--font-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* A Japanese or Chinese question breaks where a phrase ends, as the site's headings do (style.css): after
   punctuation or at a space, never inside a word; one still too long for its line breaks anywhere rather than run off. */
.sound-bridge__title:is(:lang(ja), :lang(zh)) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.sound-bridge__line {
  grid-column: 1 / -1;
  margin-top: 12px;
  color: var(--text);
}

.sound-bridge__store {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 16px;
}

.sound-bridge__store img {
  height: 44px;
}

/* The card before a download, on an iPhone alone (sounds.js): under the download button, the same card. */
.sound-pre {
  justify-self: stretch;
  width: 100%;
  max-width: 600px;
  margin: 8px auto 0;
  text-align: start;
}

.sound-pre[hidden] {
  display: none;
}

/* On the main page, right under its first sounds (SOUND_BRIDGE_TOP), with room above and below. */
.sound-bridge-top {
  margin: 36px 0 8px;
}

/* On the page, as wide as Wakeprint's card was. */
.use-bridge {
  max-width: 600px;
}

/* The two ways, equal (sound_use_paths(), where the page shows the conversion package): a card each, one under the
   other on a phone, side by side where the screen is wide, each under its heading with its icon. The iPhone Clock
   app's steps on a phone each its small picture beside its line, the number on the picture's corner, side by side
   in the card where it is wide; then the note. Wakeprint's lines, its point and Apple's badge, at the card's foot. */
.use-paths {
  display: grid;
  gap: 20px;
}

.use-path {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px, 4vw, 28px);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.use-path__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-size: 1.3rem;
  line-height: 1.15;
}

.use-path__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

/* The Clock app's, drawn: an alarm clock in the sun's colour on the soft ground, as big as the app's icon. */
svg.use-path__icon {
  box-sizing: border-box;
  padding: 7px;
  background: var(--surface-soft);
  color: var(--accent);
}

img.use-path__icon {
  box-shadow: 0 0 0 1px var(--line);
}

.use-path .use-steps {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.use-path .use-step {
  position: relative;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: 16px;
}

.use-path .use-step__picture {
  border-radius: 14px;
}

.use-path .use-step__words {
  position: static;
  padding-inline-start: 0;
}

.use-path .use-step__words::before {
  top: 8px;
  inset-inline-start: 8px;
  width: 28px;
  height: 28px;
  box-shadow: 0 2px 6px rgba(23, 28, 56, 0.18);
  font-size: 0.9rem;
}

.use-path .use-note {
  margin-top: 22px;
}

/* Where a language has no pictures of the steps, its steps in words stand right under the card's title, as the
   pictures do: the title's own space below it, no more. */
.use-path .how-steps {
  margin-top: 0;
}

.use-path__lead {
  color: var(--ink);
  font: 800 1.14rem/1.25 var(--font-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.use-path__line {
  color: var(--text);
}

.use-path__lead + .use-path__line {
  margin-top: 10px;
}

/* That Wakeprint learns which sounds work for you: the band's point, with its icon. */
.use-path__point {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 24px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}

/* A Japanese or Chinese point breaks where a phrase ends, as a habit does: after its comma or at a <wbr>, never inside
   a word (a phone read "次" over "のサウンド", "你" over "的下一个声音"). */
.use-path__point span:is(:lang(ja), :lang(zh)) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.use-path__point-icon {
  flex: none;
  box-sizing: content-box;
  width: 24px;
  height: 24px;
  padding: 8px;
  border-radius: 50%;
  background: var(--bridge-a);
  box-shadow: inset 0 0 0 1px var(--bridge-edge);
  color: var(--accent);
}

.use-path__store {
  align-self: flex-start;
  margin-top: auto;
}

.use-path__store img {
  height: 44px;
}

@media (min-width: 900px) {
  .use-paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .use-path .use-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .use-path .use-step {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .use-path .use-step__words {
    font-size: 0.95rem;
  }
}

/* The heavy sleepers' Wake Rescue: a card of its own, open, right under the list. */
.sound-rescue {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sound-rescue h2 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  line-height: 1.2;
}

/* The habits: a card each, its one line; a "+" opens its line more. */
.sound-habits {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sound-habit {
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sound-habit__line,
.sound-habit summary {
  padding: 18px 22px;
  color: var(--ink);
  font-weight: 600;
}

.sound-habit summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
}

/* A Japanese habit breaks where a phrase ends, as the site's Japanese headings do (style.css): after punctuation or at
   a <wbr>, never inside a word, so a phone's line never ends on a lone character. */
.sound-habit summary:is(:lang(ja), :lang(zh)) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.sound-habit summary::-webkit-details-marker {
  display: none;
}

.sound-habit summary::after {
  content: "+";
  content: "+" / "";
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink);
  font: 800 1.15rem/1 var(--font-display);
}

.sound-habit details[open] summary::after {
  content: "−";
  content: "−" / "";
}

.sound-habit details p {
  padding: 0 22px 20px;
  color: var(--text);
}

.sound-habit details .arrow-link {
  display: inline-block;
  margin-top: 6px;
}

@media (min-width: 760px) {
  .sound-habits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

/* ------------------------------------------------------------------ */
/* The steps after a download: a sheet from the bottom on a phone, a  */
/* card in the middle on a wide screen                                */

.sound-sheet {
  width: min(100% - 32px, 480px);
  max-width: none;
  max-height: calc(100% - 32px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(4, 6, 20, 0.55);
}

.sound-sheet::backdrop {
  background: rgba(10, 13, 30, 0.55);
}

.sound-sheet__body {
  padding: 26px 24px 24px;
}

.sound-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sound-sheet h2 {
  font-size: 1.45rem;
  line-height: 1.15;
}

.sound-sheet__close {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-block: -6px 0;
  margin-inline: 0 -8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
}

.sound-sheet .how-steps {
  margin-top: 20px;
}

.sound-sheet__note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* On a computer, the page's address as a QR code for the iPhone's camera: black on white whatever the theme. */
.sound-sheet__qr {
  display: block;
  width: 136px;
  margin-top: 12px;
}

.sound-qr {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--line);
}

/* Where the page has both, the page's code and the App Store's side by side, each named under it for the eye; on a
   narrow window the second goes under the first. */
.sound-sheet__codes {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  margin-top: 12px;
}

.sound-sheet__code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 136px;
}

.sound-sheet__caption {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.3;
  text-align: center;
}

/* A Japanese or Chinese code's line breaks where a phrase ends, as the bar's ways do: at a space or where the catalog
   marks it with <wbr> ("iPhoneで<wbr>このページを開く"), so no "を開く" alone under "iPhoneでこのページ". */
.sound-sheet__caption:is(:lang(ja), :lang(zh)) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.sound-sheet__file {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.sound-sheet__app {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 0.95rem;
}

/* Where a language has the bridge's words: its card first, under the title. */
.sound-sheet .sound-bridge {
  margin-top: 20px;
}

/* Then the Clock app's steps, folded under one quiet line, closed until it is tapped: for the curious, not a button.
   Small and muted like the steps' note, with a chevron after it toward the line's end (two sides of a small box, the
   line's end and its foot, turned toward the end: mirrored where the page reads right to left), turned down while
   the steps are open (and back at once as they start to close, .is-closing). Centred on the line, the chevron looked
   raised beside the words, so it drops to the middle of their small letters, closed and open alike; the line's
   target is 44 px tall. Where motion is allowed,
   sounds.js opens and closes them smoothly, so the sheet grows and shrinks rather than jump, their words clipped
   while they move (.is-moving); with reduced motion they fade in, and nothing moves. */
.sound-sheet__more {
  margin-top: 8px;
}

.sound-sheet__more summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.sound-sheet__more summary::-webkit-details-marker {
  display: none;
}

.sound-sheet__more[open]:not(.is-closing) summary {
  color: var(--text);
}

/* Darker under a pointer, not after a tap on a phone, where a hover stays. */
@media (hover: hover) {
  .sound-sheet__more summary:hover {
    color: var(--text);
  }
}

.sound-sheet__more summary::after {
  content: "";
  position: relative;
  top: 0.13em;
  flex: none;
  width: 6px;
  height: 6px;
  border-inline-end: 1.5px solid currentColor;
  border-block-end: 1.5px solid currentColor;
  transform: rotate(-45deg);
}

[dir="rtl"] .sound-sheet__more summary::after {
  transform: rotate(45deg);
}

.sound-sheet__more[open]:not(.is-closing) summary::after {
  transform: translateY(-2px) rotate(45deg);
}

[dir="rtl"] .sound-sheet__more[open]:not(.is-closing) summary::after {
  transform: translateY(-2px) rotate(-45deg);
}

.sound-sheet__steps {
  display: flow-root;
}

.sound-sheet__more.is-moving > .sound-sheet__steps {
  overflow: hidden;
}

.sound-sheet .sound-sheet__steps .how-steps {
  margin-top: 6px;
}

@media (prefers-reduced-motion: no-preference) {
  .sound-sheet__more summary::after {
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sound-sheet__more[open] > .sound-sheet__steps {
    animation: fade-in 0.12s ease-out;
  }
}

.sound-sheet__done {
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--page);
  font: 700 1.05rem/1.2 var(--font-text);
  cursor: pointer;
}

body:has(.sound-sheet[open]) {
  overflow: hidden;
}

@media (max-width: 639.98px) {
  .sound-sheet {
    width: 100%;
    max-height: calc(100% - 24px);
    margin: auto 0 0;
    border-radius: 28px 28px 0 0;
  }

  /* A little more width for the words, none of it smaller: the Spanish and Japanese titles keep to one line on a
     375-point iPhone, and the longer languages' steps take fewer lines. */
  .sound-sheet__body {
    padding-inline: 20px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .sound-sheet .how-steps li {
    padding-inline-start: 40px;
  }
}

/* A small iPhone (375 x 667): the gaps close a little, so after a download the app's line stays in view in German,
   Spanish and Japanese too, and its App Store link with it, but for Beacon and Summit, whose third step says iPhone
   has a sound of that name too. Where the bridge's card comes first, everything is in view as it is. */
@media (max-width: 639.98px) and (max-height: 740px) {
  .sound-sheet__body {
    padding-top: 22px;
  }

  .sound-sheet .how-steps {
    margin-top: 16px;
  }

  .sound-sheet .how-steps li + li {
    margin-top: 10px;
  }

  .sound-sheet__note {
    margin-top: 12px;
  }

  .sound-sheet__app {
    margin-top: 12px;
    padding-top: 12px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sound-sheet[open] {
    animation: sound-sheet-in 0.24s ease-out;
  }

  @media (max-width: 639.98px) {
    .sound-sheet[open] {
      animation-name: sound-sheet-up;
    }
  }
}

@keyframes sound-sheet-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

@keyframes sound-sheet-up {
  from {
    transform: translateY(100%);
  }
}

/* Where a later download went: a quiet line at the foot of the screen for a few seconds. Empty and clear while
   unused, so a screen reader reads it as it fills. */
.sound-saved {
  position: fixed;
  z-index: 20;
  inset-inline: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 420px;
  margin: 0 auto;
  padding: 12px 18px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--page);
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.sound-saved:empty {
  padding: 0;
}

.sound-saved.is-shown {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .sound-saved {
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
}

/* ------------------------------------------------------------------ */
/* The "Make it my alarm" bar: on an iPhone, after a first listen      */

/* A thin bar at the foot of the screen, clear of the home indicator: the sound's play button, its name and "Make it
   my alarm". Open, it grows up from there into one card: the sound's name, the two ways side by side and the way
   chosen, never taller than the screen (it scrolls inside beyond that). */
.sound-bar {
  position: fixed;
  z-index: 20;
  inset-inline: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  max-width: 520px;
  margin: 0 auto;
  border-radius: 26px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--line), 0 18px 44px -14px rgba(4, 6, 20, 0.45);
}

.sound-bar__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
}

.sound-bar .sound-bar__play {
  width: 44px;
  height: 44px;
}

.sound-bar .sound-play__icon {
  width: 20px;
  height: 20px;
}

.sound-bar__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font: 800 1.05rem/1.2 var(--font-display);
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* "Make it my alarm": the way on, quiet, in the bridge's warm tint. */
.sound-bar__make {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(160deg, var(--bridge-a), var(--bridge-b));
  box-shadow: inset 0 0 0 1px var(--bridge-edge);
  color: var(--ink);
  font: 700 0.98rem/1.2 var(--font-text);
  cursor: pointer;
}

.sound-bar.is-open .sound-bar__row {
  display: none;
}

.sound-bar__panel {
  max-height: calc(100vh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 8px 20px;
}

.sound-bar__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sound-bar__title {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font: 800 1.3rem/1.15 var(--font-display);
  letter-spacing: -0.02em;
}

.sound-bar__title:focus {
  outline: none;
}

.sound-bar__close {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
}

/* The two ways, side by side and equal: a picture over its name; the one chosen in the warm tint, ringed. */
.sound-bar__paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 8px 0;
}

.sound-bar__path {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 104px;
  padding: 14px 10px;
  border: 0;
  border-radius: 20px;
  background: var(--surface-soft);
  color: var(--ink);
  font: 700 0.95rem/1.25 var(--font-text);
  text-align: center;
  text-wrap: balance;
  cursor: pointer;
}

.sound-bar__path[aria-expanded="true"] {
  background: linear-gradient(160deg, var(--bridge-a), var(--bridge-b));
  box-shadow: inset 0 0 0 2px var(--sun);
}

/* A Japanese or Chinese way's name breaks where a phrase ends, as the site's headings do (style.css): at a space or
   where the catalog marks it with <wbr> ("iPhoneの<wbr>時計アプリで"), never inside a word, so no "時" over "計"; one
   still too long for its line breaks anywhere rather than run off. */
.sound-bar__path span:is(:lang(ja), :lang(zh)) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.sound-bar__path img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--line);
}

.sound-bar__icon {
  box-sizing: content-box;
  width: 28px;
  height: 28px;
  padding: 6px;
  color: var(--accent);
}

/* The way chosen, under both: its lines, then Apple's badge or the steps and their note. */
.sound-bar__way {
  margin: 18px 12px 0;
}

.sound-bar__saved {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.sound-bar__line {
  color: var(--text);
}

.sound-bar__store {
  display: inline-block;
  margin-top: 16px;
}

.sound-bar__store img {
  width: auto;
  height: 40px;
}

.sound-bar__steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-inline-start: 1.3em;
}

.sound-bar__steps li::marker {
  color: var(--accent);
  font-weight: 800;
}

.sound-bar__download {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--deep);
  font-weight: 700;
  text-decoration: none;
}

.sound-bar__note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Aside, off the foot of the screen, while it would stand over the player, the download or the card it plays. */
.sound-bar.is-tucked {
  transform: translateY(calc(100% + 16px + env(safe-area-inset-bottom, 0px)));
  visibility: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .sound-bar {
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), visibility 0s;
  }

  .sound-bar.is-tucked {
    transition: transform 0.22s ease-in, visibility 0s linear 0.22s;
  }
}

/* While it is on the page, the page's foot makes room for it, and the line after a later download stands over it. */
.has-sound-bar .site-footer {
  padding-bottom: calc(64px + 72px + env(safe-area-inset-bottom, 0px));
}

.has-sound-bar .sound-saved {
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

/* ------------------------------------------------------------------ */
/* The band: what Wakeprint is, and Apple's badge                     */

.sounds-band {
  margin-top: clamp(64px, 9vw, 112px);
}

.sounds-band__text {
  position: relative;
  z-index: 3;
  max-width: 36rem;
  margin-inline: auto;
  color: var(--sky-ink);
  font-size: clamp(1.12rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 600;
  line-height: 1.45;
}

/* Its name over three points, each with its line icon: one under another on a phone, side by side where wide. */
.sounds-band__name {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--sky-ink);
  font: 800 clamp(1.5rem, 1.25rem + 1vw, 1.9rem)/1.1 var(--font-display);
  letter-spacing: -0.02em;
}

.sounds-band__name img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.sounds-band__points {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 26px;
  max-width: 820px;
  margin: 34px auto 0;
  padding: 0;
  list-style: none;
}

.sounds-band__points li {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: var(--sky-ink);
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.12rem);
  font-weight: 600;
  line-height: 1.4;
  text-wrap: balance;
}

.sounds-band__icon {
  box-sizing: content-box;
  width: 28px;
  height: 28px;
  padding: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 199, 107, 0.35);
  color: var(--gold);
}

@media (min-width: 720px) {
  .sounds-band__points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

.sounds-band .store-badge {
  position: relative;
  z-index: 3;
  margin-top: 28px;
}

/* On the main page where it shows the conversion package, the heavy sleepers page's three pictures in place of the
   points (sound_strip()): its cards over the dawn, a little wider than the band's words on a phone. */
.sounds-band .steps--strip {
  position: relative;
  z-index: 3;
  max-width: 1000px;
  margin: 32px auto 0;
  text-align: start;
}

@media (max-width: 479.98px) {
  .sounds-band .steps--strip {
    margin-inline: -12px;
  }
}

/* ------------------------------------------------------------------ */
/* On Android: the line that says Wakeprint is an iPhone app          */

/* Where an App Store link stood (sounds.js): in a sentence, its words like the sentence's; where a badge stood, a
   plain line of its own in the badge's place. */
.sound-bridge .store-android,
.use-path .store-android {
  display: block;
  color: var(--text);
}

.sound-bridge .store-android {
  grid-column: 1 / -1;
  margin-top: 16px;
}

.use-path .store-android {
  margin-top: auto;
}

.sounds-band .store-android {
  position: relative;
  z-index: 3;
  display: block;
  margin-top: 28px;
  color: var(--sky-ink);
  font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Right to left (Arabic): the logical properties above mirror the     */
/* cards, the steps and the dialog; this is the rest.                  */

/* Arabic's marks need room between lines, as its headings get (style.css): so do a list's name and a sound's kind,
   which set their own. */
[dir="rtl"] :is(.collection-card__name, .sound-hero h1 .sound-kind) {
  line-height: 1.3;
}
