/* stravers.app landing page. Barlow is self-hosted (SIL OFL 1.1, see ../fonts/OFL.txt): WOFF2 for
   this page (same font data, Brotli-packed), the TTF stays as fallback and for site.css.
   Colors, type and hand-drawn marks come from the app (src/constants, src/components/brand). */
@font-face {
  font-family: Barlow;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src:
    url("../fonts/Barlow-Medium.woff2") format("woff2"),
    url("../fonts/Barlow-Medium.ttf") format("truetype");
}
@font-face {
  font-family: Barlow;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src:
    url("../fonts/Barlow-Bold.woff2") format("woff2"),
    url("../fonts/Barlow-Bold.ttf") format("truetype");
}
@font-face {
  font-family: Barlow;
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src:
    url("../fonts/Barlow-BoldItalic.woff2") format("woff2"),
    url("../fonts/Barlow-BoldItalic.ttf") format("truetype");
}

:root {
  --bg: #030612;
  --surface: #0b1021;
  --elevated: #12182d;
  --border: #252a40;
  --text: #f8f3e9;
  --muted: #b0acc0;
  --violet: #770bff;
  --violet-light: #b983ff;
  --pink: #ff006e;
  --orange: #ff8a00;
  --gold: #ffb800;
  --paper: #f8f3e9;
  --ink: #030612;
  --ink-muted: #4a4760;
  --gutter: 20px;
  --wide: 1240px;
  --hand: italic 700 20px/1.15 Barlow, system-ui, sans-serif;
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23030612' d='M12 1.5l2.2 7.6 7.8 2.9-7.8 2.9L12 22.5l-2.2-7.6L2 12l7.8-2.9Z'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  font:
    500 18px/1.55 Barlow,
    system-ui,
    sans-serif;
  color: var(--text);
  background: var(--bg) var(--grain-light);
}

img,
svg {
  display: block;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Shared marks ---------- */

.doodle {
  overflow: visible;
}

/* Section titles on paper: one colour, one marker. Two-tone lines stay for the hero and the outro. */
.title {
  margin: 0 0 22px;
  font:
    italic 700 clamp(40px, 10.5vw, 72px) / 1 Barlow,
    system-ui,
    sans-serif;
  letter-spacing: -0.01em;
  transform: rotate(-2deg);
  transform-origin: 0 100%;
  text-wrap: balance;
}
.title mark {
  padding: 0 0.06em;
  color: inherit;
  background: linear-gradient(
    176deg,
    transparent 46%,
    var(--gold) 47%,
    var(--gold) 88%,
    transparent 89%
  );
}

/* Hand-written notes: the app's cue type, Barlow bold italic, a little crooked. */
.note {
  font: var(--hand);
  color: var(--pink);
}
.note-arrow,
.launch-cue {
  width: 34px;
  height: 46px;
  color: currentColor;
  overflow: visible;
}

/* Marker loop: once around, then a little past where it started. */
.ring {
  position: absolute;
  overflow: visible;
  pointer-events: none;
  rotate: -4deg;
}
.ring path {
  fill: none;
  stroke: var(--pink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* home.js sets the dash to the path length, then to 0 when the ring comes into view. */
.ring.is-drawn path {
  transition: stroke-dashoffset 0.7s cubic-bezier(0.33, 1, 0.68, 1) 0.15s;
}

/* Masking tape. */
.tape {
  position: absolute;
  z-index: 3;
  width: 92px;
  height: 26px;
  background: rgba(248, 243, 233, 0.78);
  clip-path: polygon(
    0 12%,
    4% 0,
    8% 14%,
    12% 2%,
    88% 0,
    92% 12%,
    96% 2%,
    100% 14%,
    100% 88%,
    96% 100%,
    92% 86%,
    88% 98%,
    12% 100%,
    8% 88%,
    4% 100%,
    0 86%
  );
  pointer-events: none;
}

/* Time chips, as on the app's story intro. The route passes through their dot. */
.chip {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-height: 32px;
  margin: 0;
  padding: 4px 14px 4px 9px;
  border-radius: 16px;
  background: var(--elevated);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  color: var(--muted);
}
.chip time {
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.chip svg {
  flex: none;
  width: 16px;
  height: 16px;
}
.chip-dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 3px var(--violet);
}
.chip-start .chip-dot {
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--violet-light);
}
.chip-end {
  background: var(--gold);
  color: var(--ink);
  font-size: 17px;
  padding: 6px 16px 6px 10px;
}
.chip-end time {
  color: var(--ink);
}
.chip-end .chip-dot {
  background: var(--pink);
  box-shadow: 0 0 0 3px var(--ink);
}

/* Store buttons: stickers while they say "Bientôt", real links once stores.json has URLs. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 214px;
  min-height: 62px;
  padding: 10px 24px 10px 18px;
  border: 1.5px dashed #4b5070;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.store svg {
  flex: none;
  width: 26px;
  height: 26px;
}
.store small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.store strong {
  display: block;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
}
.store[aria-disabled="true"] {
  cursor: default;
}
a.store {
  border: 1.5px solid var(--text);
  background: var(--text);
  color: var(--ink);
  transition:
    transform 0.15s ease,
    background-color 0.15s ease;
}
a.store small {
  color: var(--violet);
}
a.store:hover {
  transform: rotate(-2deg) scale(1.03);
  background: var(--pink);
  border-color: var(--pink);
}
a.store:hover small {
  color: var(--ink);
}

/* ---------- The night: hero to 03:12, with the route behind ---------- */

.night {
  position: relative;
  /* The route runs in a lane left of the text, --lane from each section's edge;
     a chip box starts at --lane - 15px, so --lane stays above 31px. */
  --pad: 54px;
  --lane: 30px;
}
.night .capture,
.night .parcours,
.night .night-end {
  padding-left: var(--pad);
}
/* Chips whose dot sits on the lane. */
.chip-capture,
.chip-end {
  margin-left: calc(var(--lane) - 15px - var(--pad));
}
/* The hero keeps the page gutter: the route only starts at its last line. */
.chip-start {
  margin-left: calc(var(--lane) - 15px - var(--gutter));
}
.route {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.route path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero. Below 960px the copy opens up so the real screen comes right after the headline. */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 34px var(--gutter) 30px;
}
.hero-copy {
  display: contents;
}
.hero-logo {
  width: 200px;
  height: auto;
  margin: 0 0 0 -6px;
  transform: rotate(-3deg);
}
.hero-title {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 18px 0 0;
  font:
    italic 700 clamp(52px, 15vw, 112px) / 0.9 Barlow,
    system-ui,
    sans-serif;
  letter-spacing: -0.015em;
  transform: rotate(-3deg);
  transform-origin: 0 100%;
}
.hero-title > span {
  display: block;
}
.hero-l2 {
  padding-left: 0.2em;
}
.hero-l3 {
  position: relative;
  width: max-content;
  margin-top: 0.06em;
  color: var(--pink);
  transform: rotate(-4deg) translateX(0.08em);
  transform-origin: 0 50%;
}
.hero-wave {
  position: absolute;
  left: 0.12em;
  bottom: -0.2em;
  width: calc(100% - 0.42em);
  height: 0.16em;
  color: var(--violet-light);
  overflow: visible;
}
.hero-smile {
  position: absolute;
  top: -0.3em;
  right: -0.55em;
  width: 0.78em;
  height: 0.94em;
  color: var(--pink);
}
.hero-aside {
  margin: 26px 0 0;
  font:
    italic 700 clamp(21px, 5.6vw, 26px) / 1.2 Barlow,
    system-ui,
    sans-serif;
  color: var(--text);
  transform: rotate(-2deg);
}
.hero-aside b {
  color: var(--gold);
}
.hero-pitch {
  order: 2;
  max-width: 36ch;
  margin: 0;
  color: var(--muted);
}
.launch {
  order: 2;
  position: relative;
  margin-top: 30px;
}
.launch-note {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin: 0 0 14px 8px;
  font: var(--hand);
  color: var(--pink);
  transform: rotate(-2deg);
}
.launch-cue {
  flex: none;
  width: 27px;
  height: 36px;
  margin-bottom: -10px;
  transform: rotate(8deg);
}
.launch .chip-start {
  margin-top: 30px;
}

.hero-phone {
  order: 1;
  position: relative;
  width: min(68vw, 300px);
  margin: 58px auto 112px;
  transform: rotate(4deg);
}
.shot {
  position: relative;
}
.shot img {
  width: 100%;
  height: auto;
  background: var(--bg);
  box-shadow: 0 0 0 6px var(--text);
}
.shot-phone img {
  border-radius: 13.5% / 6.6%;
}
/* Around the Lancer button, a size bigger than it. */
.ring-lancer {
  left: 24.5%;
  top: 86.2%;
  width: 51%;
  height: 11.8%;
}
.ring-lancer path {
  stroke-width: 3.4;
}
.tape-a {
  top: -14px;
  left: -34px;
  transform: rotate(-38deg);
}
.tape-b {
  right: -36px;
  bottom: -4px;
  transform: rotate(-34deg);
  background: rgba(255, 0, 110, 0.82);
}
.badge-soon {
  position: absolute;
  z-index: 4;
  top: -42px;
  right: -22px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--ink);
  transform: rotate(-8deg);
}
/* Two "BIENTÔT DISPO" stretched to the circle (2π × 44 ≈ 276). */
.badge-text {
  width: 100%;
  height: 100%;
  font:
    700 11.5px Barlow,
    system-ui,
    sans-serif;
  letter-spacing: 0;
  fill: var(--ink);
}
.badge-star {
  position: absolute;
  top: 26%;
  left: 26%;
  width: 48%;
  height: 48%;
  color: var(--ink);
  overflow: visible;
}
/* Under the phone, pointing straight up at Lancer. */
.note-lancer {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  max-width: 260px;
  text-align: center;
  translate: -50% 0;
  transform: rotate(-7deg);
}
.note-lancer strong {
  font-weight: 700;
  color: var(--text);
}
.note-lancer .note-arrow {
  flex: none;
  margin: 0 0 -2px 26px;
  transform: scaleY(-1) rotate(12deg);
}

/* Two tapes across the page, at opposite angles; home.js slides them as you scroll.
   Each band runs 120px past both edges of the screen. Its tilt lifts one end by
   half the screen width x tan(angle) (3.5vw at 4deg), so the strip grows with the
   width and the bands never reach its top or bottom: no end is ever cut off.
   The gap between the two centres changes by 11.4% of the distance travelled
   (tan 4deg + tan 2.5deg), so a crossing costs about 360px of half-hidden pink on
   each side. Below 1360px that never fits on screen: the tapes fan out from the
   left edge, where the cream only covers the pink's bottom padding. From 1360px
   they cross as an X, at least 240px in from the left edge. */
.tapes {
  position: relative;
  z-index: 2;
  height: calc(92px + 11.4vw);
  overflow: hidden;
  overflow: clip visible;
}
.band {
  position: absolute;
  left: -120px;
  right: -120px;
  padding: 9px 0 8px;
  overflow: hidden;
}
.band-pink {
  top: calc(4px + 3.5vw);
  background: var(--pink);
  color: var(--ink);
  transform: rotate(-4deg);
}
.band-cream {
  top: calc(38px + 9.2vw);
  background: var(--text);
  color: var(--ink);
  transform: rotate(2.5deg);
}
.band-track {
  display: flex;
  width: max-content;
  margin: 0;
  font:
    italic 700 21px/1.1 Barlow,
    system-ui,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  will-change: transform;
}
/* The same sequence, repeated: one set further is the same picture, so the loop has no seam. */
.band-set {
  display: flex;
  flex: none;
  align-items: center;
}
.band-cream .band-track {
  transform: translateX(-33.333%);
}
.band-set span,
.band-set i {
  flex: none;
  margin-right: 18px;
}
.band-set i {
  width: 16px;
  height: 16px;
  background: var(--star) center / contain no-repeat;
}

/* 23:44, the surprise: the notification is the headline. */
.capture {
  position: relative;
  z-index: 1;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 50px var(--gutter) 40px;
}
.chip-capture {
  margin-bottom: 14px;
}
.buzz {
  position: relative;
  display: flex;
  flex-direction: column;
}
.lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  line-height: 1;
}
.lock-day {
  font-weight: 700;
  font-size: 17px;
  color: var(--muted);
}
.lock-time {
  margin-top: 4px;
  font-weight: 700;
  font-size: clamp(104px, 30vw, 300px);
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(248, 243, 233, 0.5);
  font-variant-numeric: tabular-nums;
}
.notif {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin: -0.42em auto 0;
  padding: 0.7em 0.85em 0.95em;
  border: 1px solid var(--border);
  border-radius: 1.2em;
  background: rgba(18, 24, 45, 0.96);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16);
  font-size: clamp(19px, 5.1vw, 34px);
  transform: rotate(-3deg);
}
.notif-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.notif-head img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.notif-when {
  margin-left: auto;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.notif-title {
  margin: 0.4em 0 0.1em;
  font:
    700 1.3em/1.1 Barlow,
    system-ui,
    sans-serif;
}
.notif-body {
  margin: 0;
  line-height: 1.55;
}
/* The full stop sits inside the ring, as in the app's notification text. */
.ringed {
  position: relative;
  display: inline-block;
  padding: 0 0.26em 0 0.16em;
  white-space: nowrap;
}
/* Short enough to stay off the line above. Mirrored, the ring's slanted side ends
   up behind the full stop and its round side clears the top of the 3. */
.ring-inline {
  left: -3%;
  top: -12%;
  width: 107%;
  height: 128%;
  rotate: -2deg;
  scale: -1 1;
}
.note-buzz {
  position: relative;
  z-index: 2;
  order: 1;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 4px;
  margin: 16px 6px 0 0;
  align-self: flex-end;
  transform: rotate(-4deg);
}
.note-buzz .note-arrow {
  flex: none;
  margin-top: -30px;
  transform: rotate(200deg);
}
.capture-burst {
  position: absolute;
  top: -10px;
  right: -6px;
  width: 78px;
  height: 94px;
  color: var(--violet-light);
}
.capture-line {
  max-width: 34ch;
  margin: 30px 0 0;
  color: var(--muted);
}
.formats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.formats li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 11px;
  border-radius: 999px;
  background: var(--text);
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 0 0 3px var(--bg);
}
.formats li:nth-child(1) {
  transform: rotate(-5deg);
}
.formats li:nth-child(2) {
  transform: rotate(3deg) translateY(4px);
  background: var(--gold);
}
.formats li:nth-child(3) {
  transform: rotate(-2deg);
}
.formats li:nth-child(4) {
  transform: rotate(6deg) translateY(-3px);
  background: var(--pink);
}
.formats svg {
  width: 20px;
  height: 20px;
  color: var(--violet);
}
.formats li:nth-child(4) svg {
  color: var(--ink);
}

/* 00:24, the route and its moments. It opens on the distance, as the app's stats do. */
.parcours {
  position: relative;
  z-index: 1;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 70px var(--gutter) 30px;
}
.km {
  position: relative;
  width: fit-content;
  margin: 0;
  font:
    italic 700 clamp(118px, 36vw, 250px) / 0.82 Barlow,
    system-ui,
    sans-serif;
  letter-spacing: -0.035em;
  color: var(--gold);
  transform: rotate(-3deg);
}
.km-num small {
  font-size: 0.3em;
  letter-spacing: 0;
}
.km-note {
  position: absolute;
  top: calc(100% + 10px);
  left: 38%;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 2px;
  width: max-content;
  font: var(--hand);
  font-size: 22px;
  letter-spacing: 0;
  color: var(--pink);
  transform: rotate(5deg);
}
.km-note .note-arrow {
  flex: none;
  margin-top: -30px;
  transform: rotate(196deg);
}
.parcours-side {
  margin-top: 64px;
}
.km-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
}
.km-stats span {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--text);
  color: var(--ink);
  transform: rotate(-2deg);
}
.km-stats small {
  font: italic 700 15px/1 Barlow, system-ui, sans-serif;
  color: var(--violet);
}
.km-stats .km-moments {
  background: var(--pink);
  transform: rotate(3deg);
}
.parcours-text {
  max-width: 36ch;
  margin: 0;
  color: var(--muted);
}
.board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 22px;
  margin-top: 40px;
  padding: 28px 4px 24px;
  border-radius: 24px;
  background-image:
    linear-gradient(rgba(176, 172, 192, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 172, 192, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
}
.polaroid {
  position: relative;
  z-index: 1;
  align-self: start;
  margin: 0;
  padding: 7px 7px 0;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
  transform: rotate(var(--tilt, -6deg));
}
.polaroid picture {
  display: block;
}
.polaroid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  background: var(--ink);
}
.polaroid figcaption {
  padding: 8px 2px 11px;
  font:
    italic 700 15px/1.2 Barlow,
    system-ui,
    sans-serif;
}
.polaroid time {
  display: block;
  font-size: 19px;
  color: var(--violet);
}
.pin {
  position: absolute;
  z-index: 2;
  top: -7px;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 3.5px var(--violet);
}
.polaroid-1 {
  --tilt: -8deg;
}
.polaroid-2 {
  --tilt: 4deg;
  margin-top: 70px;
}
.polaroid-3 {
  --tilt: 7deg;
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 11px);
  margin-top: -30px;
}
.board-lol {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 4px;
  width: 50px;
  height: 60px;
  color: var(--violet-light);
}
.board-caption {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.board-caption svg {
  flex: none;
  width: 16px;
  height: 16px;
}

/* 03:12, end of the line */
.night-end {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 40px var(--gutter) 70px;
}
.toast {
  max-width: 34ch;
  margin: 0;
  padding: 14px 18px;
  border-radius: 20px;
  background: var(--elevated);
  font-size: 17px;
  line-height: 1.4;
  transform: rotate(-1.5deg);
}

/* Route waypoints: invisible, placed per breakpoint; the script draws through them.
   --bow bends the segment that arrives at a waypoint (px, sign = side). */
.wp {
  position: absolute;
  width: 2px;
  height: 2px;
}
.wp-capture-out,
.wp-end-in {
  left: var(--lane);
  bottom: 0;
}
.wp-end-in {
  top: 0;
  bottom: auto;
}
.wp-board-in,
.wp-board-out {
  left: calc(var(--lane) - var(--pad));
  top: 20px;
}
.wp-board-out {
  --bow: 0;
  top: auto;
  bottom: 50px;
}

/* ---------- The morning after: paper ---------- */

.morning {
  position: relative;
  z-index: 1;
  padding: 40px 0 70px;
  background: var(--paper) var(--grain-dark);
  color: var(--ink);
}
.morning::before,
.morning::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
}
.morning::before {
  top: -19px;
  background: var(--paper);
  clip-path: polygon(
    0 100%,
    0% 0%,
    2.9% 58%,
    4.9% 50%,
    6.3% 18%,
    8.5% 30%,
    11.5% 69%,
    14.2% 12%,
    15.9% 20%,
    18.8% 27%,
    20.1% 69%,
    22.2% 7%,
    24.5% 71%,
    27.4% 17%,
    30.2% 34%,
    32.1% 6%,
    34.6% 41%,
    38% 23%,
    39.8% 51%,
    42.6% 12%,
    45.9% 72%,
    49.2% 18%,
    52.8% 46%,
    56% 19%,
    58.1% 12%,
    60.4% 27%,
    62.1% 62%,
    64.3% 14%,
    66.5% 60%,
    69.9% 32%,
    72.3% 41%,
    74.3% 39%,
    76.9% 44%,
    79.6% 70%,
    82% 25%,
    84.4% 55%,
    86.6% 38%,
    90.2% 29%,
    92.8% 49%,
    94.9% 53%,
    96.7% 61%,
    100% 10%,
    100% 100%
  );
}
.morning::after {
  bottom: -1px;
  background: var(--bg);
  clip-path: polygon(
    0 100%,
    0% 47%,
    1.4% 33%,
    3.5% 11%,
    6.5% 47%,
    10.3% 33%,
    11.9% 40%,
    15.1% 42%,
    18.7% 17%,
    20.1% 16%,
    22.2% 6%,
    25.2% 25%,
    27.5% 67%,
    30.7% 64%,
    31.9% 12%,
    34.9% 37%,
    38.1% 56%,
    41.3% 34%,
    42.8% 16%,
    46.1% 5%,
    48.8% 49%,
    51.2% 28%,
    52.4% 5%,
    54% 41%,
    57% 15%,
    60.5% 44%,
    62.9% 20%,
    66% 31%,
    69.6% 70%,
    72.1% 55%,
    75.8% 17%,
    79.4% 58%,
    82.7% 56%,
    86.2% 3%,
    89.3% 62%,
    91.2% 33%,
    93.2% 60%,
    96% 75%,
    98.8% 11%,
    100% 19%,
    100% 100%
  );
}
.morning :focus-visible {
  outline-color: var(--violet);
}
.morning p {
  color: var(--ink-muted);
}
.morning .note {
  color: var(--violet);
}
.morning .chip-morning {
  margin-bottom: 18px;
  background: var(--ink);
  color: var(--muted);
}
.chip-morning svg {
  color: var(--gold);
}

.replay,
.friends {
  position: relative;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 40px var(--gutter);
}
.replay {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
.replay-copy p:not(.chip) {
  max-width: 40ch;
}
.names {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.names li {
  padding: 7px 14px;
  font:
    italic 700 17px/1.2 Barlow,
    system-ui,
    sans-serif;
  background: var(--gold);
  color: var(--ink);
  transform: rotate(-3deg);
}
.names li:nth-child(2) {
  background: var(--ink);
  color: var(--text);
  transform: rotate(2deg) translateY(4px);
}
.names li:nth-child(3) {
  background: var(--violet);
  color: var(--text);
  transform: rotate(-1deg);
}
.names li::before {
  content: "«\00a0";
}
.names li::after {
  content: "\00a0»";
}

.replay-visual {
  position: relative;
  width: min(80vw, 380px);
  margin: 110px auto 80px;
  transform: rotate(-2.5deg);
}
.shot-map img {
  border-radius: 18px;
  box-shadow:
    0 0 0 6px var(--ink),
    0 22px 30px -14px rgba(3, 6, 18, 0.55);
}
/* Cream on the dark screen, around ×120. */
.ring-speed {
  left: 79%;
  top: 86.4%;
  width: 18%;
  height: 6.2%;
}
.ring-speed path {
  stroke: var(--text);
}
.tape-c {
  top: -16px;
  left: 50%;
  margin-left: -46px;
  transform: rotate(3deg);
  background: rgba(255, 184, 0, 0.85);
}
.note-place {
  position: absolute;
  left: -6px;
  top: -100px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  max-width: 190px;
  transform: rotate(-3deg);
}
.note-place .note-arrow {
  flex: none;
  margin-top: 12px;
  transform: rotate(-8deg);
}
/* Under the print's bottom-right corner, pointing up-left at ×120. */
.note-speed {
  position: absolute;
  right: -6px;
  top: calc(100% + 4px);
  display: flex;
  align-items: flex-start;
  gap: 0;
  width: max-content;
  transform: rotate(-4deg);
}
.note-speed .note-arrow {
  flex: none;
  order: 1;
  width: 40px;
  height: 54px;
  margin: -34px 0 0 -2px;
  transform: rotate(196deg);
}
/* Friends: the stories strip first, full width, then the words. */
.friends {
  display: flex;
  flex-direction: column;
}
.friends-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-bottom: 40px;
}
.rings {
  align-self: stretch;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 18px 20px;
  border-radius: 24px;
  background: var(--bg);
  color: var(--text);
  transform: rotate(1.5deg);
}
.ring-item {
  position: relative;
  flex: none;
  width: var(--ring, 76px);
  text-align: center;
}
.story-ring {
  width: var(--ring, 76px);
  height: var(--ring, 76px);
}
.story-ring .arc {
  fill: none;
  stroke: url(#brand-diagonal);
  stroke-width: 3;
}
.story-ring .arc-seen,
.story-ring .arc-add {
  fill: none;
  stroke: var(--border);
  stroke-width: 1.5;
}
.story-ring .arc-add {
  stroke-dasharray: 4 4;
}
.story-ring .plus {
  fill: none;
  stroke: var(--violet-light);
  stroke-width: 2;
  stroke-linecap: round;
}
.story-ring .avatar {
  stroke-width: 1.5;
}
.avatar-orange {
  fill: rgba(255, 138, 0, 0.15);
  stroke: #ff8a00;
}
.avatar-violet {
  fill: rgba(191, 119, 255, 0.15);
  stroke: #bf77ff;
}
.avatar-blue {
  fill: rgba(67, 200, 234, 0.15);
  stroke: #43c8ea;
}
.story-ring text {
  font:
    700 22px Barlow,
    system-ui,
    sans-serif;
  text-anchor: middle;
}
.avatar-orange + text {
  fill: #ff8a00;
}
.avatar-violet + text {
  fill: #bf77ff;
}
.avatar-blue + text {
  fill: #43c8ea;
}
.ring-count {
  position: absolute;
  top: calc(var(--ring, 76px) - 22px);
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 2px solid var(--bg);
  border-radius: 11px;
  background: var(--pink);
  font-weight: 700;
  font-size: 12px;
  line-height: 18px;
  color: var(--ink);
}
.ring-name {
  display: block;
  margin-top: 6px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}
.ring-name small {
  display: block;
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
}
.ring-seen {
  color: var(--muted);
}
.ring-add {
  display: none;
}
.qr {
  position: relative;
  z-index: 1;
  margin: -18px 12px 0 0;
  padding: 10px 10px 6px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--text);
  text-align: center;
  transform: rotate(7deg);
}
.qr-code {
  width: 112px;
  height: 112px;
  border-radius: 6px;
}
.qr figcaption {
  margin-top: 4px;
  font: var(--hand);
  font-size: 18px;
  color: var(--text);
}
.friends-stars {
  position: absolute;
  left: 8px;
  bottom: 0;
  width: 64px;
  height: 77px;
  color: var(--violet);
}
/* One sentence per line: the punchline gets its own. */
.friends-l1 {
  display: block;
}
.underlined {
  position: relative;
  white-space: nowrap;
}
.underlined svg {
  position: absolute;
  left: 0.05em;
  bottom: -0.16em;
  width: calc(100% - 0.3em);
  height: 0.16em;
  color: var(--pink);
  overflow: visible;
}
.friends-copy > p {
  max-width: 40ch;
}
.privacy {
  position: relative;
  margin-top: 34px;
  padding: 22px 20px 6px 22px;
  border: 1.5px dashed rgba(3, 6, 18, 0.28);
  border-radius: 24px;
}
.privacy h3 {
  margin: 0 0 10px;
  padding-right: 54px;
  font:
    italic 700 25px/1.15 Barlow,
    system-ui,
    sans-serif;
  transform: rotate(-1.5deg);
}
.privacy-heart {
  position: absolute;
  top: -26px;
  right: 12px;
  width: 64px;
  height: 77px;
  color: var(--orange);
}

/* ---------- Outro ---------- */

.outro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--wide);
  margin: 0 auto;
  padding: 110px var(--gutter) 80px;
}
.outro-title {
  position: relative;
  width: fit-content;
  margin: 0 0 30px;
  font:
    italic 700 clamp(58px, 16vw, 168px) / 0.9 Barlow,
    system-ui,
    sans-serif;
  letter-spacing: -0.015em;
  transform: rotate(-3deg);
  transform-origin: 0 100%;
}
.outro-title em {
  display: block;
  padding-left: 0.4em;
  font-style: inherit;
  color: var(--pink);
}
.outro-smile {
  position: absolute;
  top: -0.62em;
  right: -0.1em;
  width: 0.62em;
  height: 0.75em;
  color: var(--gold);
}
.outro-text {
  max-width: 34ch;
  color: var(--muted);
}
.note-day {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin: 26px 0 14px 8px;
  transform: rotate(-3deg);
}
.note-day .note-arrow {
  flex: none;
  width: 27px;
  height: 36px;
  margin-bottom: -6px;
  transform: rotate(8deg);
}
.outro-print {
  position: relative;
  width: min(62vw, 260px);
  margin: 70px auto 20px;
  transform: rotate(-5deg);
}
.outro-print img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 0 0 6px var(--text);
}
.tape-d {
  top: -14px;
  right: -30px;
  transform: rotate(32deg);
  background: rgba(185, 131, 255, 0.85);
}
.outro-print figcaption {
  max-width: 230px;
  margin: 22px 0 0 -10px;
  transform: rotate(3deg);
}

.foot {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter) 30px;
  font-size: 14px;
  color: var(--muted);
}
.foot p {
  margin: 0;
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 26px 0 22px;
  border-top: 1px dashed var(--border);
  border-bottom: 1px solid rgba(248, 243, 233, 0.16);
}
.foot-top img {
  width: 96px;
  height: auto;
  margin-right: 4px;
}
/* Mobile: one centred column. From 600px: copyright left, credit right. */
.foot-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  text-align: center;
}
.foot-legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.foot-map {
  font-size: 12px;
  opacity: 0.8;
}
.foot-map a {
  text-decoration-color: rgba(176, 172, 192, 0.5);
}
.foot-by {
  display: flex;
  align-items: center;
  gap: 4px;
}
.genesii {
  display: inline-flex;
  padding: 6px;
  border-radius: 50%;
  color: var(--text);
  transition: color 0.15s ease;
}
.genesii svg {
  width: 20px;
  height: 20px;
}
.genesii:hover {
  color: var(--pink);
}

/* ---------- Wider screens ---------- */

@media (min-width: 600px) {
  :root {
    --gutter: 40px;
  }
  .night {
    --pad: 64px;
    --lane: 32px;
  }
  .hero-logo {
    width: 250px;
  }
  .hero-phone {
    width: 300px;
  }
  .board {
    grid-template-columns: repeat(3, 1fr);
  }
  .polaroid-2 {
    margin-top: 90px;
  }
  .polaroid-3 {
    grid-column: auto;
    width: auto;
    margin-top: 10px;
    --tilt: 10deg;
  }
  .ring-add {
    display: block;
  }
  .foot-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  .foot-legal {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 0;
  }
  .foot-legal p + p::before {
    content: "|";
    content: "|" / "";
    margin: 0 12px;
    opacity: 0.6;
  }
  /* The map credit gets its own line: no wrap starting with a bar. */
  .foot-legal .foot-map {
    flex-basis: 100%;
  }
  .foot-legal .foot-map::before {
    content: none;
  }
  .rings {
    align-self: flex-start;
    width: fit-content;
  }
  .qr {
    position: absolute;
    right: 10px;
    bottom: -30px;
    margin: 0;
  }
  .friends-visual {
    margin-bottom: 70px;
  }
  /* Off the stories card: in the free corner between its top edge and the QR code. */
  .friends-stars {
    top: -52px;
    bottom: auto;
    left: 396px;
  }
}

@media (min-width: 960px) {
  :root {
    --gutter: 60px;
  }
  .note {
    font-size: 22px;
  }
  .night {
    --pad: var(--gutter);
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: center;
    gap: 30px;
    padding-top: 46px;
    padding-bottom: 40px;
  }
  .hero-copy {
    display: block;
  }
  .hero-logo {
    width: 270px;
  }
  .hero-title {
    margin-top: 26px;
  }
  .hero-aside {
    margin-top: 30px;
  }
  .hero-pitch {
    max-width: 46ch;
    margin-top: 16px;
  }
  .launch {
    margin-top: 24px;
  }
  .hero-phone {
    width: 330px;
    margin: 30px auto 120px;
  }

  .capture {
    padding-top: 80px;
  }
  .chip-capture {
    position: absolute;
    top: 64px;
    left: calc(var(--lane) - 15px);
    margin: 0;
  }
  .buzz {
    display: block;
    max-width: 900px;
    margin: 0 auto;
  }
  .lock-time {
    font-size: 280px;
  }
  .notif {
    margin-top: -120px;
  }
  .note-buzz {
    position: absolute;
    left: -120px;
    top: 150px;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    transform: rotate(-8deg);
  }
  .note-buzz .note-arrow {
    margin: 4px 0 0 60px;
    transform: rotate(-24deg);
  }
  .capture-burst {
    top: 40px;
    right: 20px;
    width: 96px;
    height: 115px;
  }
  .capture-line {
    max-width: 52ch;
    margin: 56px auto 0;
    text-align: center;
  }
  .formats {
    justify-content: center;
  }

  .parcours {
    padding-top: 110px;
  }
  .parcours-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: 40px 70px;
  }
  .km-note {
    left: 100%;
    top: 0.3em;
    margin: 0 0 0 -0.35em;
    flex-direction: column;
    transform: rotate(6deg);
  }
  .km-note .note-arrow {
    margin: 4px 0 0 6px;
    transform: rotate(120deg);
  }
  .parcours-side {
    max-width: 480px;
    margin: 0 0 6px auto;
  }
  .board {
    display: block;
    height: 570px;
    margin-top: 50px;
  }
  .board > * {
    position: absolute;
  }
  .polaroid {
    width: 220px;
    margin: 0;
  }
  .polaroid-1 {
    top: 50px;
    left: 6%;
    --tilt: -8deg;
  }
  .polaroid-2 {
    top: 230px;
    left: 38%;
    --tilt: 4deg;
  }
  .polaroid-3 {
    top: 30px;
    left: 70%;
    --tilt: 9deg;
  }
  .board-lol {
    top: 150px;
    left: 27%;
    right: auto;
    width: 76px;
    height: 91px;
  }
  .board-caption {
    left: 4px;
    bottom: 10px;
  }
  /* From 00:32 the line drops straight to 03:12, under the last photo. */
  .wp-board-out,
  .wp-end-in {
    display: none;
  }
  .night-end {
    flex-direction: row-reverse;
    justify-content: flex-start;
    align-items: center;
    gap: 22px;
    padding: 30px calc(var(--gutter) + 9%) 60px var(--pad);
  }
  .chip-end {
    --bow: -130;
    margin: 0;
  }

  .replay {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 60px;
    padding-top: 70px;
  }
  .replay-visual {
    width: 380px;
    margin: 60px auto 120px;
  }
  .note-place {
    left: auto;
    right: calc(100% + 22px);
    top: 70px;
    width: 200px;
    max-width: none;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
  }
  .note-place .note-arrow {
    margin: 2px -4px 0 0;
    transform: rotate(-70deg) scaleX(-1);
  }

  .friends {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 70px;
    padding-top: 70px;
    padding-bottom: 60px;
  }
  .friends-visual {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    padding-right: 6%;
    margin-bottom: 64px;
  }
  .rings {
    --ring: 96px;
    gap: 22px;
    padding: 26px 26px 22px;
  }
  .ring-name {
    font-size: 16px;
  }
  .qr {
    position: relative;
    right: auto;
    bottom: auto;
  }
  .qr-code {
    width: 128px;
    height: 128px;
  }
  .friends-stars {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    order: 1;
    align-self: flex-start;
  }
  .friends-visual .qr {
    order: 2;
  }
  .title-friends {
    grid-column: 1 / -1;
    font-size: clamp(56px, 6vw, 84px);
    margin-bottom: 40px;
  }
  .friends-copy {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 70px;
    align-items: start;
  }
  .friends-copy > p {
    font-size: 20px;
  }
  .privacy {
    margin-top: 0;
  }

  .outro {
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-areas:
      "title title"
      "body print";
    align-items: start;
    padding-top: 150px;
    padding-bottom: 120px;
  }
  .outro-title {
    grid-area: title;
  }
  .outro-body {
    grid-area: body;
  }
  .outro-print {
    grid-area: print;
    width: 280px;
    margin: -230px 0 0 auto;
  }
}

@media (min-width: 1200px) {
  .hero-phone {
    margin-right: 40px;
  }
}

/* Wide enough for the tapes to cross as an X: 50vw - 440px from the left edge. */
@media (min-width: 1360px) {
  .tapes {
    height: calc(104px + 5.8vw);
  }
  .band-cream {
    top: calc(54px + 3.5vw);
  }
}

/* ---------- Store state (site.js sets data-stores once a link is live) ---------- */

[data-stores] [data-soon-only] {
  display: none;
}

/* ---------- Motion ---------- */

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-title:hover .hero-smile,
  .buzz:hover .capture-burst,
  .board:hover .board-lol,
  .privacy:hover .privacy-heart,
  .friends-visual:hover .friends-stars,
  .outro-title:hover .outro-smile {
    animation: wiggle 0.7s ease-in-out;
  }
}
@media (prefers-reduced-motion: no-preference) {
  /* Like the app's launch ring: it breathes twice once drawn, then stays put. */
  .ring-lancer.is-drawn {
    animation: breathe 2s ease-in-out 1s 2;
  }
}
@keyframes breathe {
  0%,
  70%,
  100% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.04);
  }
}
@keyframes wiggle {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-9deg) scale(1.06);
  }
  60% {
    transform: rotate(7deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
