/* The homepage's scroll: the hero screen from styles.css, then one screen
   per feature (a two-line title over the app on one brand shape), a dark
   privacy statement, and a closing spray around the button again. Motion
   lives in home.js; with reduced motion or no script everything simply
   sits still and visible. */

/* The hero title is always two set lines. On phones the longer line
   ("are in your camera roll.", about 9.3em) sets the size so it never
   wraps or overflows. */
h1.statement {
  text-wrap: initial;
  word-spacing: 0.05em;
  line-height: calc(1.04em + 2px);
}

/* The section titles' size, shared by the features and the FAQ. */
:root {
  --section-title: clamp(44px, min(3.6vw, 5.8vh), 54px);
}

/* The hero's line of copy gets Graphical's roomier leading. */
.hero p {
  line-height: 30px;
}

/* The hero's pieces scatter as the page scrolls away from it. home.js
   writes each seat's offset, fade and extra turn; the `translate` property
   composes outside the centering transform, so the hover tilt and spin keep
   working underneath. */
.landing-page .seat {
  translate: var(--sx, 0px) var(--sy, 0px);
  opacity: var(--so, 1);
}

/* Pieces leaving through the hero's bottom edge stay visible as they go,
   painted beneath the first feature; the sides still clip so the page
   never scrolls sideways. */
.landing-page {
  overflow: visible;
  overflow-x: clip;
  isolation: isolate;
}

.landing-page .wall {
  overflow: visible;
}

.seat picture {
  display: block;
}

.landing-page .seat.shape {
  transform: translate(-50%, -50%) rotate(calc(var(--r, 0deg) + var(--sr, 0deg)));
}

.motion .landing-page .seat {
  will-change: translate, opacity;
}

/* The page scrolls freely; in-page links glide. */
html {
  scroll-behavior: smooth;
}

/* Features ---------------------------------------------------------------- */

.features {
  display: block;
}

.feature {
  /* A section is one screen: the phone takes whatever height the title,
     the gap and the padding leave, within limits. The phone's visible body
     is 916 x 1896 of the 1048 x 2160 Matte canvas. */
  --title: var(--section-title);
  --gap: clamp(52px, calc(5vh + 20px), 68px);
  --pad: clamp(40px, 8vh, 80px);
  --phone-h: min(600px, max(420px, calc(100svh - 2.32 * var(--title) - 6px - var(--gap) - 2 * var(--pad))));
  --phone-w: calc(var(--phone-h) * 0.4831);

  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gap);
  padding: var(--pad) 24px;
  /* Snapped screens show nothing of their neighbors, so a shape that runs
     past its own screen is cut at the edge rather than peeking into the
     next one. */
  overflow: clip;
  isolation: isolate;
}

.feature h2,
.closing h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  text-align: center;
}

.feature h2 {
  position: relative;
  z-index: 2;
  font-size: var(--title);
  line-height: calc(1.16em + 3px);
  letter-spacing: -0.01em;
  word-spacing: 0.06em;
}

/* The spouse, team and privacy screens are as tall as what they hold, so
   the space around them is the same padding-to-padding gap as between the
   phone screens. */
.feature.flip-out,
.feature.team,
.feature.privacy {
  min-height: 0;
}

/* The spouse screen lets its hearts out past its top edge (see .hearts). */
.feature.flip-out {
  overflow: visible;
}

.feature h2.one-line {
  text-wrap: balance;
}

.feature h2 span,
.closing h2 span {
  display: block;
  white-space: nowrap;
}

.device-stage {
  position: relative;
  width: var(--phone-w);
  height: var(--phone-h);
  flex: 0 0 auto;
}

/* One brand shape, centered behind the phone at 2.1 phone widths, sitting a
   hair low. Sections alternate its tilt, which is where it rests; home.js
   turns it with the scroll (--spin). */
.device-shape {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: calc(var(--phone-w) * 2.12);
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
  transform: translate(-50%, -48%) rotate(calc(var(--tilt, 0deg) + var(--spin, 0deg)));
}

.device {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* The exported canvas is larger than the phone it holds; it hangs past the
   stage by its clear margin so the phone's body is exactly the stage. */
.device-media {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: auto;
  height: 113.92%;
  aspect-ratio: 786 / 1620;
  transform: translate(-50%, -50%);
  user-select: none;
  -webkit-user-drag: none;
}

/* A video shows only once it has drawn a frame (home.js adds .live); until
   then the image of its first frame underneath is what's seen. No fade. */
.device video.device-media {
  visibility: hidden;
}

.device video.device-media.live {
  visibility: visible;
}

/* A title with a line of supporting copy under it. */
.feature-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* An aside in the pencil hand of "real text messages". */
.feature-sub.handwritten {
  max-width: 640px;
  color: #8e8e93;
  font-family: "Caveat", cursive;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
}

.feature-sub.handwritten a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.12em;
}

.feature-sub.handwritten a:hover,
.feature-sub.handwritten a:focus-visible {
  color: var(--ink);
}

.feature-sub {
  max-width: 560px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  text-align: center;
  text-wrap: balance;
}

/* Notifications ----------------------------------------------------------- */

/* A native iOS notification in light mode: frosted light grey, the sender's
   picture with the app's badge, name and time on one line, the message
   under it. Sized in em so a container's font size scales the whole card;
   .is-dark is the dark-mode version. */
@font-face {
  font-family: "Caveat";
  src: url("/assets/fonts/caveat-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.note {
  --note-fill: rgba(232, 232, 237, 0.78);
  --note-ink: #000000;
  --note-meta: rgba(60, 60, 67, 0.6);
  display: flex;
  width: 25.4em;
  max-width: calc(100vw - 48px);
  box-sizing: border-box;
  align-items: center;
  gap: 0.73em;
  padding: 0.8em 1.07em 0.8em 0.8em;
  border-radius: 1.6em;
  color: var(--note-ink);
  background: var(--note-fill);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.note.is-dark {
  --note-fill: rgba(44, 44, 48, 0.78);
  --note-ink: #ffffff;
  --note-meta: rgba(235, 235, 245, 0.6);
}

.note-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 2.67em;
  height: 2.67em;
}

.note-avatar img,
.note-monogram {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* iOS's contact monogram, for a sender with no picture. */
.note-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(180deg, #a5abb8, #858994);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.13em;
  font-weight: 600;
}

.note-app {
  position: absolute;
  right: -0.2em;
  bottom: -0.2em;
  width: 1.2em;
  height: 1.2em;
  border-radius: 0.36em;
  box-shadow: 0 0 0 0.1em var(--note-fill);
}

.note-body {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.note-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6em;
}

.note-name {
  overflow: hidden;
  font-size: 1em;
  font-weight: 600;
  line-height: 1.33;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-time {
  flex: 0 0 auto;
  color: var(--note-meta);
  font-size: 0.87em;
  line-height: 1.33;
}

.note-text {
  font-size: 1em;
  line-height: 1.33;
}

/* The section: a loose pile, newest on top, each a little off-center and
   tilted. They arrive one after another when the section shows. */
.notes {
  position: relative;
  z-index: 1;
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 19px;
  list-style: none;
}

.notes .note {
  transform: translateX(var(--nx, 0px)) rotate(var(--nr, 0deg));
  transition:
    opacity 320ms ease var(--nd, 0ms),
    transform 560ms cubic-bezier(0.2, 1.25, 0.4, 1) var(--nd, 0ms);
}

.motion .flip-out:not(.played) .note {
  opacity: 0;
  transform: translateX(var(--nx, 0px)) translateY(-18px) rotate(var(--nr, 0deg)) scale(0.96);
}

/* "real text messages (names changed)" sits under the title like the other
   handwritten lines; a softly bent pencil arrow drops from its middle into
   the pile, so the pile starts just under the arrow rather than a whole
   gap below the title. */
.notes-wrap {
  position: relative;
  z-index: 1;
  margin-top: calc(12px - var(--gap));
}

.pointer-arrow {
  display: block;
  width: 24px;
  height: 40px;
  margin: 0 auto 18px;
  fill: none;
  stroke: #8e8e93;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

/* Hearts wreathe the messages as the section arrives, like reactions on a
   live video: home.js sends each one from low under the pile, out around
   its bottom corner, up its side and off the top of the screen. A heart
   shows only while it flies (no waiting seeds, no fading). The layer
   reaches a screen above the section, so they keep rising past its top
   edge and off the top of the screen. */
.hearts {
  position: absolute;
  z-index: 3;
  top: -100vh;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
}

.heart {
  position: absolute;
  top: 0;
  left: 0;
  font-size: var(--hs);
  line-height: 1;
  opacity: 0;
  will-change: transform;
}

/* In the hero they sit among the stickers, a size smaller. */
.note-seat .note {
  font-size: 13px;
}

.seat.mobile-only {
  display: none;
}

/* Team ------------------------------------------------------------------------ */

.polaroids {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 3vw, 48px);
}

/* The app's polaroid: paper-white frame, deep bottom band with the name in
   Caveat, the time-lapse polaroid's handwriting. */
.polaroid {
  --pw: clamp(220px, 22vw, 320px);
  width: var(--pw);
  box-sizing: border-box;
  margin: 0;
  padding: calc(var(--pw) * 0.06) calc(var(--pw) * 0.06) 0;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.06);
  transform: rotate(var(--pr, 0deg));
}

.polaroid-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  background: #e2e3e5;
  object-fit: cover;
}

.polaroid figcaption {
  padding: 0.35em 0 0.45em;
  font-family: "Caveat", cursive;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.2;
  text-align: center;
}

/* Privacy ------------------------------------------------------------------ */

/* The key promises in a 2 x 2 grid of light grey modules, each marked by
   a brand shape, wide enough that every title holds one line. */
.promises {
  display: grid;
  width: min(880px, 100%);
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
}

.promise {
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  gap: 8px;
  padding: 28px 32px 30px;
  border-radius: 28px;
  background: #f4f4f5;
  text-align: left;
}

.promise img {
  width: 40px;
  height: auto;
  margin-bottom: 14px;
}

.promise strong {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.promise span {
  color: var(--ink-muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
}

/* Get the app, in the corner -------------------------------------------- */

/* Pops in from its own center once the hero's button has left the screen:
   from 90% with a very quick fade and a little spring. With a mouse, the
   capsule grows into the hero's QR card, anchored at its top right. */
.sticky-cta {
  position: fixed;
  z-index: 50;
  top: 20px;
  right: 24px;
  width: 146px;
  height: 44px;
  pointer-events: none;
}

.sticky-cta-button {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: 146px;
  height: 44px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 1000px;
  color: #ffffff;
  background: var(--accent);
  text-decoration: none;
  isolation: isolate;
  opacity: 0;
  transform: scale(0.9);
  box-shadow: 0 0 0 rgba(34, 34, 34, 0);
  /* Settling back into the capsule: smooth, no bounce. */
  transition:
    opacity 90ms linear,
    transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
    width 320ms cubic-bezier(0.32, 0.72, 0, 1),
    height 320ms cubic-bezier(0.32, 0.72, 0, 1),
    border-radius 280ms cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 240ms ease;
}

.sticky-cta.shown {
  pointer-events: auto;
}

.sticky-cta.shown .sticky-cta-button {
  opacity: 1;
  transform: scale(1);
}

.sticky-cta-button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.sticky-cta-text {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  /* The label comes back once the card has mostly closed, sharpening as it
     fades in. */
  transition:
    opacity 180ms ease 130ms,
    filter 220ms ease 130ms;
}

.sticky-cta-text svg {
  width: 16px;
  height: 16px;
  margin-top: -2px;
}

.sticky-cta-qr {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  filter: blur(6px);
  transform: scale(0.92);
  /* The code leaves at once, softening, before the card closes over it. */
  transition:
    opacity 100ms ease,
    filter 160ms ease,
    transform 200ms ease;
}

.sticky-cta-qr img {
  display: block;
  width: 184px;
  height: 184px;
}

@media (hover: hover) and (pointer: fine) {
  .sticky-cta.shown:hover .sticky-cta-button,
  .sticky-cta.shown .sticky-cta-button:focus-visible {
    width: 264px;
    height: 304px;
    border-radius: 28px;
    transition:
      opacity 90ms linear,
      transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
      width 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
      height 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
      border-radius 220ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 280ms ease;
    box-shadow:
      0 60px 140px -20px rgba(34, 34, 34, 0.32),
      0 30px 80px -10px rgba(34, 34, 34, 0.2),
      0 8px 24px rgba(34, 34, 34, 0.16);
  }

  .sticky-cta.shown:hover .sticky-cta-text,
  .sticky-cta.shown .sticky-cta-button:focus-visible .sticky-cta-text {
    opacity: 0;
    filter: blur(4px);
    transition:
      opacity 100ms ease,
      filter 120ms ease;
  }

  .sticky-cta.shown:hover .sticky-cta-qr,
  .sticky-cta.shown .sticky-cta-button:focus-visible .sticky-cta-qr {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
    transition:
      opacity 160ms ease 90ms,
      filter 200ms ease 90ms,
      transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1) 60ms;
  }

  /* The hero's and the closing section's buttons morph the same way. */
  .cta {
    transition:
      width 320ms cubic-bezier(0.32, 0.72, 0, 1),
      height 320ms cubic-bezier(0.32, 0.72, 0, 1),
      border-radius 280ms cubic-bezier(0.32, 0.72, 0, 1),
      box-shadow 240ms ease;
  }

  .cta-text {
    transition:
      opacity 180ms ease 130ms,
      filter 220ms ease 130ms;
  }

  .cta-qr {
    filter: blur(6px);
    transform: scale(0.92);
    transition:
      opacity 100ms ease,
      filter 160ms ease,
      transform 200ms ease;
  }

  .cta-shell:hover .cta,
  .cta-shell:has(:focus-visible) .cta {
    transition:
      width 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
      height 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
      border-radius 220ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 280ms ease;
  }

  .cta-shell:hover .cta-text,
  .cta-shell:has(:focus-visible) .cta-text {
    filter: blur(4px);
    transition:
      opacity 100ms ease,
      filter 120ms ease;
  }

  .cta-shell:hover .cta-qr,
  .cta-shell:has(:focus-visible) .cta-qr {
    filter: blur(0);
    transform: scale(1);
    transition:
      opacity 160ms ease 90ms,
      filter 200ms ease 90ms,
      transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1) 60ms;
  }
}

/* FAQ ------------------------------------------------------------------------ */

/* After graphicalui.com: a left-set title over a 768px column, roomy rows
   split by hairlines, the question in ink with a thin chevron, the answer
   in grey. Native details; the open one's chevron turns over. */
.faq {
  position: relative;
  isolation: isolate;
  display: flex;
  box-sizing: border-box;
  justify-content: center;
  padding: clamp(40px, 8vh, 80px) 24px;
}

.faq-column {
  width: min(768px, 100%);
}

.faq h2 {
  margin: 0 0 clamp(48px, 8vh, 96px);
  font-family: var(--display);
  font-size: var(--section-title);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.faq details {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
  cursor: pointer;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.01em;
  list-style: none;
}

.faq details:first-child summary {
  padding-top: 0;
}

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

.faq summary:focus-visible {
  border-radius: 6px;
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.faq summary svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: #90908d;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: transform 240ms ease;
}

.faq details[open] summary svg {
  transform: rotate(180deg);
}

.faq details p {
  margin: 0;
  padding: 0 48px 32px 0;
  color: var(--ink-muted);
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
}

/* Where the browser can animate details, the answer slides open. */
@supports (interpolate-size: allow-keywords) {
  .faq {
    interpolate-size: allow-keywords;
  }

  .faq details::details-content {
    height: 0;
    overflow: clip;
    transition:
      height 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
      content-visibility 280ms allow-discrete;
  }

  .faq details[open]::details-content {
    height: auto;
  }
}

.faq-mail {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.faq-mail:hover {
  text-decoration: underline;
}

.faq-mail svg {
  width: 20px;
  height: 20px;
  align-self: center;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

/* The close ---------------------------------------------------------------- */

.closing {
  position: relative;
  height: calc(100vh - var(--footer-height));
  height: calc(100svh - var(--footer-height));
  min-height: 496px;
  overflow: hidden;
}

.closing-copy {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(800px, calc(100% - 48px));
  flex-direction: column;
  align-items: center;
  gap: 24px;
  transform: translate(-50%, -50%);
  text-align: center;
}

.closing h2 {
  font-size: clamp(52px, min(5.3vw, 8.8vh), 80px);
  line-height: calc(1.04em + 2px);
  letter-spacing: -0.01em;
  word-spacing: 0.05em;
}

/* Its spray holds until the section arrives, then deals in once. */
.motion .closing:not(.played) .pop {
  animation-play-state: paused;
}

:root {
  --footer-height: 64px;
}

.page-footer {
  display: flex;
  height: var(--footer-height);
  box-sizing: border-box;
  justify-content: center;
  padding: 8px 24px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
}

.page-footer a {
  color: var(--ink-muted);
  text-decoration: none;
}

.page-footer a:hover,
.page-footer a:focus-visible {
  color: var(--accent);
}

/* Phones and small tablets ---------------------------------------------- */

@media (max-width: 1023px) {
  h1.statement,
  .closing h2 {
    font-size: min(48px, calc((100vw - 48px) / 9.5));
  }

  /* On phones a section grows to hold its content with real room above and
     below, rather than being squeezed into one screen: a title never sits
     tight under the corner button. The phone is two thirds of the screen
     wide. */
  .feature {
    --gap: 52px;
    --pad: 96px;
    --phone-h: min(600px, 137vw);
    /* At least a full screen (with Safari's toolbar tucked away), the
       content centered, so a short section never shows the next title. */
    min-height: 100vh;
    min-height: 100lvh;
  }

  .seat.mobile-only {
    display: block;
  }

  :root {
    --section-title: clamp(28px, 8.2vw, 34px);
  }

  .hero p {
    line-height: 26px;
  }

  /* The hero's copy sits a hair below center, under the heavier top of
     the spray. */
  .hero {
    top: calc(50% + 16px);
  }

  h1.statement {
    line-height: calc(1.06em + 2px);
  }

  /* Phones show the photo stickers baked with their margin and shadow
     (assets/cutouts/phone/, from tools/bake-stickers.mjs) instead of
     running the #sticker filter, which iOS draws on the CPU whenever a
     sticker paints. Each file holds 20px of room on every side at 118px
     tall; the negative margin hands it back, so the seat still centers on
     the photo. */
  .seat.cutout .sticker {
    height: calc(var(--mh, var(--h)) * 158 / 118);
    margin: calc(var(--mh, var(--h)) * -20 / 118);
    filter: none;
  }

  .feature-sub {
    max-width: 340px;
    font-size: 17px;
    line-height: 26px;
  }

  .feature-sub.handwritten {
    font-size: 24px;
    line-height: 1.15;
  }

  .note {
    max-width: calc(100vw - 64px);
  }

  /* Hearts show through the frosted cards less on a narrow screen. */
  .flip-out .note {
    --note-fill: rgba(232, 232, 237, 0.92);
  }

  .notes {
    gap: 12px;
    font-size: 14px;
  }


  /* On phones they stack, the shape beside the words. */
  .promises {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .promise {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 2px 14px;
    padding: 16px 18px;
    border-radius: 22px;
  }

  .promise img {
    grid-row: span 2;
    width: 32px;
    margin: 0;
  }

  .promise strong {
    font-size: 18px;
  }

  .promise span {
    font-size: 14px;
    line-height: 20px;
  }

  .sticky-cta {
    top: 14px;
    right: 16px;
  }

  .sticky-cta,
  .sticky-cta-button {
    width: 136px;
    height: 40px;
  }

  .sticky-cta-text {
    font-size: 15px;
  }

  .notes .note {
    transform: translateX(calc(var(--nx, 0px) * 0.2)) rotate(calc(var(--nr, 0deg) * 0.6));
  }

  .pointer-arrow {
    width: 20px;
    height: 33px;
    margin-bottom: 15px;
  }

  .motion .flip-out:not(.played) .note {
    transform: translateX(calc(var(--nx, 0px) * 0.2)) translateY(-18px) rotate(calc(var(--nr, 0deg) * 0.6)) scale(0.96);
  }

  /* A loose pile of prints, big enough for faces. Each lies on the next,
     overlapping only its white top border, so every name shows. */
  .polaroids {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .polaroid {
    --pw: 40vw;
    margin: -3vw 0 0;
  }

  .polaroid:first-child {
    z-index: 3;
    margin-top: 0;
  }

  .polaroid:nth-child(2) {
    z-index: 2;
  }

  .polaroid:nth-child(odd) {
    translate: -12vw 0;
  }

  .polaroid:nth-child(even) {
    translate: 12vw 0;
  }

  .polaroid figcaption {
    font-size: 22px;
  }

  .faq {
    padding: 96px 24px 64px;
  }

  .faq h2 {
    margin-bottom: 48px;
  }

  .faq summary {
    gap: 16px;
    padding: 24px 0;
    font-size: 18px;
    line-height: 24px;
  }

  .faq details p {
    margin-top: 0;
    padding: 0 0 24px;
    font-size: 17px;
    line-height: 26px;
  }

  .page-footer {
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sticky-cta-button,
  .sticky-cta-text,
  .sticky-cta-qr {
    transition: none;
  }

  .landing-page .seat {
    translate: none;
    opacity: 1;
  }
}
