/* Akoté landing page. Design tokens come from the mobile app (mobile/src/theme, product.md §11). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f9f6ea;
  --cream-dark: #f1ecda;
  --border: #e6dfc8;
  --white: #ffffff;
  --orange: #fc7e29;
  --orange-soft: #fde3cf;
  --orange-text: #b34d0b; /* orange for small text on cream (WCAG AA) */
  --indigo: #3f3f71;
  --indigo-soft: #e4e4f2;
  --indigo-muted: #6b6b94; /* secondary text on cream or white (WCAG AA) */
  --tab-inactive: #9b9bbb;
  --sport: #2f8f6b;
  --culture: #8a4fb8;
  --ghost: rgba(63, 63, 113, 0.13);
  --ground: rgba(63, 63, 113, 0.11);

  --shadow-card: 0 4px 12px rgba(63, 63, 113, 0.08);
  --shadow-float: 0 18px 40px -14px rgba(63, 63, 113, 0.3);

  --font-title: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);

  color-scheme: light;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--indigo);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  color: var(--indigo);
  text-wrap: balance;
}

h1 {
  font-weight: 800;
  font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h2 {
  font-weight: 800;
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h3 {
  font-weight: 700;
  font-size: 1.3125rem;
  line-height: 1.25;
}

p {
  text-wrap: pretty;
}

sup {
  font-size: 0.65em;
  line-height: 0;
  vertical-align: super;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
}

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

.wrap {
  width: min(100% - 2 * var(--gutter), 1160px);
  margin-inline: auto;
}

.lead {
  font-size: clamp(1.125rem, 1.03rem + 0.4vw, 1.3125rem);
  line-height: 1.6;
  max-width: 36em;
}

.section-head {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--indigo);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Buttons (same shapes as the app's Button component) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 54px;
  padding: 0.75rem 1.5rem;
  border-radius: 18px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn .icon {
  width: 20px;
  height: 20px;
}

.btn--indigo {
  background: var(--indigo);
  color: var(--white);
}

.btn--outline {
  border: 1.5px solid var(--indigo);
  color: var(--indigo);
}

.btn--outline:hover {
  background: var(--white);
}

.btn--small {
  min-height: 42px;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.9375rem;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  display: block;
  border-radius: 9px;
}

.store img {
  display: block;
  width: auto;
  height: 52px;
}

/* ---------- Header ---------- */

.site-header {
  padding-block: 1rem;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: block;
  margin-right: auto;
  border-radius: 8px;
}

.brand img {
  display: block;
  width: auto;
  height: 44px;
}

.site-nav {
  display: none;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--orange-text);
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(1.5rem, 0.5rem + 4vw, 4.5rem) var(--section-y);
}

.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

.hero__text {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.hero__text .lead {
  max-width: 31em;
}

.hero__note {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--indigo-muted);
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

/* Tablets: the map spans the full width, so it gets a landscape shape. */
@media (min-width: 600px) and (max-width: 959px) {
  .map {
    aspect-ratio: 16 / 10;
  }
}

/* The map sketch of Louvain-la-Neuve from the app's welcome slides: two streets, the lake, the pins. */
.map {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1.04;
  padding: clamp(14px, 3vw, 22px);
  border-radius: 32px;
  background: var(--cream-dark);
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
}

.map__street,
.map__lake,
.map__label {
  position: absolute;
  z-index: -1;
}

.map__street {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
}

.map__street--a {
  left: -10%;
  right: -10%;
  bottom: 33%;
  height: 16px;
  rotate: -7deg;
}

.map__street--b {
  top: -10%;
  bottom: -10%;
  left: 19%;
  width: 12px;
  rotate: 14deg;
}

.map__street--c {
  top: 31%;
  left: 30%;
  right: -10%;
  height: 8px;
  rotate: 22deg;
}

.map__lake {
  background: var(--indigo-soft);
  border-radius: 999px;
}

.map__lake--a {
  top: 7%;
  right: 7%;
  width: 34%;
  height: 15%;
  rotate: -10deg;
}

.map__lake--b {
  top: 15%;
  right: 21%;
  width: 21%;
  height: 12%;
  rotate: 14deg;
}

.map__label {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--indigo-muted);
}

.map__label--lake {
  top: 13%;
  right: 17%;
}

.map__label--place {
  bottom: 37.5%;
  left: 5%;
  rotate: -7deg;
}

/* Small maps: no room for the place names next to the pins. */
@container (max-width: 340px) {
  .map__label {
    display: none;
  }
}

.scene {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 6%;
  /* Pin size follows the width of the map (the map is a size container). */
  --pin: clamp(70px, 25cqw, 120px);
}

/* The Akoté pin, same construction as WelcomeArt.tsx: a square with three round corners turned
   so the square corner points down, a white hole, and a shadow on the ground. */
.pins {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pins__sparks {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: calc(var(--pin) * 0.087);
  height: calc(var(--pin) * 0.5);
  padding-top: calc(var(--pin) * 0.2);
}

.spark {
  width: calc(var(--pin) * 0.087);
  height: calc(var(--pin) * 0.217);
  border-radius: 999px;
  background: var(--orange);
}

.spark--left {
  rotate: -38deg;
  margin-top: calc(var(--pin) * 0.098);
}

.spark--right {
  rotate: 38deg;
  margin-top: calc(var(--pin) * 0.098);
}

.pins__row {
  display: flex;
  align-items: flex-end;
  gap: calc(var(--pin) * 0.24);
}

.spot {
  position: relative;
  padding-bottom: calc(var(--pin) * 0.07);
}

.spot__shadow {
  position: absolute;
  bottom: 0;
  left: 50%;
  translate: -50% 0;
  width: calc(var(--pin) * 0.56);
  height: calc(var(--pin) * 0.14);
  border-radius: 50%;
  /* A painted ellipse: stays round even while the shadow is scaled by the animation. */
  background: radial-gradient(closest-side, var(--ground) 94%, transparent);
}

.pin {
  position: relative;
  display: block;
  width: var(--pin);
  height: calc(var(--pin) * 1.21);
}

.pin::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--pin);
  height: var(--pin);
  border-radius: 50% 50% 50% 0;
  background: var(--pin-color, var(--orange));
  rotate: -45deg;
}

.pin::after {
  content: "";
  position: absolute;
  top: calc(var(--pin) * 0.29);
  left: calc(var(--pin) * 0.29);
  width: calc(var(--pin) * 0.42);
  height: calc(var(--pin) * 0.42);
  border-radius: 50%;
  background: var(--white);
}

.pin--indigo {
  --pin-color: var(--indigo);
}

/* The missing person, before the match. Hidden in its final state. */
.pin--ghost {
  --pin-color: var(--ghost);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.pin--ghost::after {
  content: "?";
  top: 0;
  left: 0;
  width: var(--pin);
  height: var(--pin);
  display: grid;
  place-items: center;
  background: none;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: calc(var(--pin) * 0.36);
  line-height: 1;
  color: var(--indigo-muted);
}

/* Push notification of the app ("group_formed" in the database). */
.notif {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-float);
}

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

.notif__body {
  flex: 1;
  min-width: 0;
}

.notif__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--indigo-muted);
}

.notif__top strong {
  font-weight: 800;
  color: var(--indigo);
}

.notif__title {
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.35;
}

.notif__text {
  font-size: 0.875rem;
  line-height: 1.45;
}

/* One orchestrated moment on load: the 2nd pin drops next to yours, the logo strokes appear,
   then the notification. Static styles above are the final state (used with reduced motion). */
@media (prefers-reduced-motion: no-preference) {
  /* The "?" fades while the 2nd pin falls onto its place. */
  .map .pin--ghost {
    animation: ghost-out 0.35s ease-in 1.3s both;
  }

  .map .pin--indigo {
    animation: pin-drop 1s 1.05s both;
  }

  .map .spot--friend .spot__shadow {
    animation: shadow-land 0.35s ease-out 1.5s both;
  }

  .map .spark {
    animation: spark-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.8s both;
  }

  .map .spark--mid {
    animation-delay: 1.88s;
  }

  .map .spark--right {
    animation-delay: 1.96s;
  }

  .map .notif {
    animation: notif-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 2.4s both;
  }
}

@keyframes ghost-out {
  from {
    opacity: 1;
    scale: 1;
  }
  to {
    opacity: 0;
    scale: 0.8;
  }
}

@keyframes pin-drop {
  0% {
    opacity: 0;
    translate: 0 calc(var(--pin) * -2.8);
    animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.4);
  }
  8% {
    opacity: 1;
  }
  46% {
    translate: 0 0;
    animation-timing-function: cubic-bezier(0.15, 0.6, 0.4, 1);
  }
  64% {
    translate: 0 calc(var(--pin) * -0.22);
    animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.4);
  }
  80% {
    translate: 0 0;
    animation-timing-function: cubic-bezier(0.15, 0.6, 0.4, 1);
  }
  90% {
    translate: 0 calc(var(--pin) * -0.05);
    animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.4);
  }
  100% {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes shadow-land {
  from {
    opacity: 0;
    scale: 0;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes spark-pop {
  from {
    scale: 0;
  }
  to {
    scale: 1;
  }
}

@keyframes notif-in {
  from {
    opacity: 0;
    translate: 0 18px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* ---------- Problem ---------- */

.problem {
  padding-bottom: var(--section-y);
}

.problem__inner {
  display: grid;
  gap: 1.75rem;
}

.problem__text {
  display: grid;
  gap: 1rem;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.problem__punch {
  margin-top: 0.5rem;
  font-family: var(--font-title);
  font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
}

@media (min-width: 960px) {
  .problem__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
  }
}

/* ---------- How it works ---------- */

.how {
  padding-bottom: var(--section-y);
}

.steps {
  display: grid;
  gap: 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.step__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 24px 20px;
  border-radius: 28px;
  background: var(--cream-dark);
}

.step__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.75rem;
  align-items: center;
}

.step__body p {
  grid-column: 1 / -1;
  max-width: 30em;
}

.pin--step {
  --pin: 40px;
}

.pin--step > span {
  position: absolute;
  z-index: 1;
  top: calc(var(--pin) * 0.29);
  left: calc(var(--pin) * 0.29);
  display: grid;
  place-items: center;
  width: calc(var(--pin) * 0.42);
  height: calc(var(--pin) * 0.42);
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  color: var(--indigo);
}

/* Tablets: each step is a row, the app screen on the left and the text on the right. */
@media (min-width: 600px) and (max-width: 959px) {
  .step {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2rem;
    align-items: center;
  }
}

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

  .step__visual {
    height: 360px;
  }
}

/* App components, rebuilt in HTML. Sizes in em so the same card works in the steps and in the phone. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.333em;
  padding: 0.25em 0.667em;
  border-radius: 999px;
  font-size: 0.75em;
  font-weight: 800;
  line-height: 1.333;
  white-space: nowrap;
}

.badge--solid {
  background: var(--indigo);
  color: var(--white);
}

.badge--orange {
  background: var(--orange-soft);
  color: var(--orange-text);
}

.badge--indigo {
  background: var(--indigo-soft);
  color: var(--indigo);
}

.ecard {
  position: relative;
  width: 100%;
  max-width: 300px;
  overflow: hidden;
  border-radius: 1.5em;
  background: var(--white);
  box-shadow: var(--shadow-card);
  font-size: 16px;
  line-height: 1.4;
}

.ecard__img {
  display: block;
  width: 100%;
  height: 9.375em;
  object-fit: cover;
}

.ecard__badges {
  position: absolute;
  top: 0.75em;
  left: 0.75em;
  right: 0.75em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em;
}

.ecard__body {
  display: grid;
  gap: 0.5em;
  padding: 1em;
}

.ecard__title {
  font-family: var(--font-title);
  font-size: 1.125em;
  font-weight: 700;
  line-height: 1.33;
}

.ecard__meta {
  display: grid;
  gap: 0.25em;
}

.ecard__row {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.8125em;
  font-weight: 600;
  color: var(--indigo-muted);
}

.ecard__row .icon {
  width: 1.08em;
  height: 1.08em;
}

.ecard__foot {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-top: 0.25em;
  padding-top: 0.5em;
  border-top: 1px solid var(--border);
}

.ecard__searching {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.875em;
  font-weight: 700;
  color: var(--orange-text);
}

.ecard__searching .icon {
  width: 1.07em;
  height: 1.07em;
  color: var(--orange);
}

.ecard__price {
  font-size: 0.875em;
  font-weight: 700;
}

.event-screen {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 310px;
  padding: 18px;
  border-radius: 24px;
  background: var(--cream);
  box-shadow: var(--shadow-card);
  font-size: 16px;
  line-height: 1.4;
}

.event-screen__head {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.event-screen__title {
  font-family: var(--font-title);
  font-size: 1.3125rem;
  font-weight: 800;
  line-height: 1.15;
}

.event-screen__by {
  font-size: 0.875rem;
  color: var(--indigo-muted);
}

.social {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--orange-soft);
}

.social__icon {
  width: 22px;
  height: 22px;
  color: var(--orange);
}

.social__main {
  font-size: 0.9375rem;
  font-weight: 700;
}

.social__sub {
  font-size: 0.8125rem;
  font-weight: 600;
}

.app-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 18px;
  border-radius: 18px;
  background: var(--orange);
  color: var(--indigo);
}

.app-btn .icon {
  width: 22px;
  height: 22px;
}

.app-btn__texts {
  display: grid;
  justify-items: center;
}

.app-btn__title {
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.3;
}

.app-btn__sub {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  opacity: 0.85;
}

.chat {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 310px;
  padding: 16px 14px;
  border-radius: 24px;
  background: var(--cream);
  box-shadow: var(--shadow-card);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.chat__system {
  justify-self: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--cream-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--indigo);
  text-align: center;
}

.chat__row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.chat__row--mine {
  justify-content: flex-end;
}

.chat__col {
  display: grid;
  justify-items: start;
  max-width: 82%;
}

.chat__col--mine {
  justify-items: end;
}

.chat__author {
  margin: 0 0 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--indigo-muted);
}

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-family: var(--font-title);
  font-size: 0.8125rem;
  font-weight: 700;
}

.avatar--orange {
  background: var(--orange-soft);
  color: var(--orange-text);
}

.bubble {
  padding: 8px 12px;
  border-radius: 18px 18px 18px 6px;
  background: var(--white);
}

.bubble time {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-align: right;
  color: var(--indigo-muted);
}

.bubble--mine {
  border-radius: 18px 18px 6px 18px;
  background: var(--indigo);
  color: var(--white);
}

.bubble--mine time {
  color: var(--indigo-soft);
}

.reaction {
  margin: -6px 8px 0 0;
  padding: 1px 8px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  background: var(--orange-soft);
  font-size: 0.8125rem;
}

/* ---------- All events + phone ---------- */

.events {
  padding-bottom: var(--section-y);
}

.events__inner {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

.events__text {
  display: grid;
  gap: 1.25rem;
}

.features {
  display: grid;
  gap: 1.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

/* Same as the info rows of the app's event page. */
.feature__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange-text);
}

.feature__icon .icon {
  width: 22px;
  height: 22px;
}

.feature h3 {
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
}

.feature p {
  font-size: 1rem;
  line-height: 1.55;
}

.events__phone {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-ground {
  width: min(70%, 240px);
  height: 26px;
  margin-top: 18px;
  border-radius: 50%;
  background: var(--ground);
}

@media (min-width: 600px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 2rem;
  }
}

@media (min-width: 960px) {
  .events__inner {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .events__phone {
    order: -1;
  }
}

/* The phone scales with its width: 1 --u = 1px of a 320px-wide phone. */
.phone {
  container-type: inline-size;
  width: min(100%, 330px);
}

.phone__frame {
  --u: calc(100cqw / 320);
  padding: calc(var(--u) * 9);
  border-radius: calc(var(--u) * 52);
  background: var(--indigo);
  box-shadow: 0 30px 60px -24px rgba(63, 63, 113, 0.5);
}

.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: calc(var(--u) * 640);
  overflow: hidden;
  border-radius: calc(var(--u) * 43);
  background: var(--cream);
  line-height: 1.3;
}

.ps-island {
  position: absolute;
  z-index: 2;
  top: calc(var(--u) * 9);
  left: 50%;
  translate: -50% 0;
  width: calc(var(--u) * 86);
  height: calc(var(--u) * 25);
  border-radius: 999px;
  background: #23234a;
}

.ps-status {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--u) * 44);
  padding: calc(var(--u) * 4) calc(var(--u) * 22) 0 calc(var(--u) * 30);
  font-size: calc(var(--u) * 13);
  font-weight: 700;
}

.ps-status__icons {
  display: flex;
  gap: calc(var(--u) * 4);
}

.ps-status .icon {
  width: calc(var(--u) * 14);
  height: calc(var(--u) * 14);
}

.ps-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 10);
  padding: calc(var(--u) * 4) calc(var(--u) * 16) 0;
  overflow: hidden;
}

/* The screen cuts the content at the bottom: items keep their size instead of shrinking. */
.ps-body > * {
  flex: none;
}

.ps-header {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 10);
}

.ps-header > div {
  flex: 1;
}

.ps-header img {
  width: calc(var(--u) * 24);
  height: auto;
}

.ps-title {
  font-family: var(--font-title);
  font-size: calc(var(--u) * 20);
  font-weight: 700;
  line-height: 1.25;
}

.ps-sub {
  font-size: calc(var(--u) * 12.5);
  color: var(--indigo-muted);
}

.ps-seg {
  display: flex;
  padding: calc(var(--u) * 3);
  border-radius: 999px;
  background: var(--cream-dark);
}

.ps-seg span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 5);
  height: calc(var(--u) * 30);
  border-radius: 999px;
  font-size: calc(var(--u) * 12);
  font-weight: 700;
}

.ps-seg .icon {
  width: calc(var(--u) * 14);
  height: calc(var(--u) * 14);
}

.ps-seg .is-on {
  background: var(--indigo);
  color: var(--white);
}

.ps-chips {
  display: flex;
  gap: calc(var(--u) * 6);
  margin-right: calc(var(--u) * -16);
  overflow: hidden;
}

.ps-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--u) * 5);
  height: calc(var(--u) * 30);
  padding: 0 calc(var(--u) * 11);
  border: calc(var(--u) * 1.5) solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: calc(var(--u) * 11.5);
  font-weight: 700;
}

.ps-chip .icon {
  width: calc(var(--u) * 13);
  height: calc(var(--u) * 13);
}

.ps-chip.is-on {
  border-color: var(--indigo);
  background: var(--indigo);
  color: var(--white);
}

.ps-h {
  margin-top: calc(var(--u) * 4);
  font-family: var(--font-title);
  font-size: calc(var(--u) * 15);
  font-weight: 700;
}

.phone .ecard {
  max-width: none;
  font-size: calc(var(--u) * 12.5);
}

.ps-tabs {
  position: relative;
  flex: none;
  display: flex;
  justify-content: space-around;
  padding: calc(var(--u) * 8) calc(var(--u) * 6) calc(var(--u) * 24);
  border-top: 1px solid var(--border);
  background: var(--white);
}

.ps-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--u) * 3);
  font-size: calc(var(--u) * 9.5);
  font-weight: 700;
  color: var(--tab-inactive);
}

.ps-tab .icon {
  width: calc(var(--u) * 22);
  height: calc(var(--u) * 22);
}

.ps-tab.is-on {
  color: var(--indigo);
}

.ps-tab__badge {
  position: absolute;
  top: calc(var(--u) * -4);
  left: 56%;
  display: grid;
  place-items: center;
  min-width: calc(var(--u) * 16);
  height: calc(var(--u) * 16);
  padding: 0 calc(var(--u) * 4);
  border-radius: 999px;
  background: var(--orange);
  font-size: calc(var(--u) * 9.5);
  font-weight: 800;
  color: var(--indigo);
}

.ps-home {
  position: absolute;
  bottom: calc(var(--u) * 7);
  left: 50%;
  translate: -50% 0;
  width: calc(var(--u) * 110);
  height: calc(var(--u) * 4.5);
  border-radius: 999px;
  background: var(--indigo);
}

/* ---------- Trust and safety ---------- */

.trust {
  margin-inline: clamp(8px, 1.5vw, 24px);
  padding-block: var(--section-y);
  border-radius: clamp(28px, 4vw, 48px);
  background: var(--indigo);
  color: var(--indigo-soft);
}

.trust h2,
.trust h3 {
  color: var(--white);
}

.trust :focus-visible {
  outline-color: var(--cream);
}

.trust__inner {
  display: grid;
  gap: 3rem;
}

.trust__intro {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.prevention {
  display: grid;
  gap: 0.375rem;
  max-width: 30em;
  margin-top: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-radius: 24px;
  background: var(--orange-soft);
  color: var(--indigo);
  font-size: 1rem;
  line-height: 1.55;
}

.prevention__title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
}

.trust__list {
  display: grid;
  gap: 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust__item {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.trust__item .icon {
  width: 30px;
  height: 30px;
  margin-bottom: 0.25rem;
  color: var(--orange);
}

.trust__item p {
  font-size: 1rem;
  line-height: 1.6;
}

@media (min-width: 600px) {
  .trust__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 2rem;
  }
}

@media (min-width: 960px) {
  .trust__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 4rem;
  }
}

/* ---------- Organizers ---------- */

.orga {
  padding-block: var(--section-y);
}

.orga__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.orga__text {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.orga__text > p:not(.lead) {
  max-width: 34em;
}

.orga__path {
  padding: 0.5rem 0.875rem;
  border-radius: 12px;
  background: var(--cream-dark);
  font-size: 1rem;
}

/* Interest tags scattered like stickers on a kot door (the app's first welcome slide). */
.stickers {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 14px 12px;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 40px);
  border-radius: 32px;
  background: var(--cream-dark);
}

.sticker {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 18px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  rotate: var(--tilt, 0deg);
}

.sticker--orange {
  background: var(--orange-soft);
}

.sticker--indigo {
  background: var(--indigo-soft);
}

@media (min-width: 960px) {
  .orga__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 4rem;
  }

  .stickers {
    min-height: 300px;
  }
}

/* ---------- Final call to action ---------- */

.cta {
  padding-bottom: var(--section-y);
}

.cta__inner {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  text-align: center;
}

.cta .pins {
  --pin: 58px;
  margin-bottom: 0.5rem;
}

.cta .lead {
  max-width: 28em;
  text-wrap: balance;
}

.cta .stores {
  justify-content: center;
  margin-top: 0.5rem;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}

.site-footer__inner {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.site-footer__logo {
  display: block;
  width: auto;
  height: 36px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer__nav a {
  font-weight: 700;
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--orange-text);
}

.site-footer__legal {
  color: var(--indigo-muted);
}

.site-footer__marks {
  max-width: 60em;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--indigo-muted);
}

@media (min-width: 960px) {
  .site-footer__inner {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 1.5rem 2rem;
  }

  .site-footer__marks {
    grid-column: 1 / -1;
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 599px) {
  .site-header .btn--small {
    padding-inline: 0.875rem;
  }

  .brand img {
    height: 38px;
  }

  .store img {
    height: 48px;
  }

  .map {
    border-radius: 28px;
  }

  .step__visual {
    padding: 20px 16px;
  }
}
