/* The marketing site: home, how it works, societies, about, and the legal pages' frame.
   Tokens live in tokens.css (load it first). The event and friend pages use /style.css instead and
   are deliberately untouched by this file.

   The CSP allows no inline styles, so every look is a class here — never a style="" attribute. */

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

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

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

svg {
  display: block;
}

/* Icons from /images/icons.svg. */
.i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i-12 {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}

.i-14 {
  width: 14px;
  height: 14px;
}

.i-16 {
  width: 16px;
  height: 16px;
}

.i-20 {
  width: 20px;
  height: 20px;
}

.i-full {
  width: 100%;
  height: 100%;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--brand-bright);
  color: var(--ink-inverse);
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bone), 0 0 0 4px var(--brand-bright);
  border-radius: var(--r-inner);
}

.on-brand :focus-visible {
  box-shadow: 0 0 0 2px var(--brand), 0 0 0 4px var(--accent);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

/* --- Type scale ---------------------------------------------------------- */

.t-d1,
.t-d2,
.t-d3,
.t-d4 {
  font-family: var(--font-display);
  font-weight: 800;
}

.t-d1 {
  font-size: var(--display-1);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.t-d2 {
  font-size: var(--display-2);
  line-height: 1.05;
  letter-spacing: -0.032em;
}

.t-d3 {
  font-size: var(--display-3);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.t-d4 {
  font-size: var(--display-4);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.t-title {
  font-family: var(--font-display);
  font-size: var(--title);
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.t-lg {
  font-size: var(--body-lg);
  line-height: 1.6;
  letter-spacing: -0.005em;
}

.t-sm {
  font-size: var(--body-sm);
}

.t-cap {
  font-size: var(--caption);
  line-height: 1.5;
}

.t-label {
  font-family: var(--font-display);
  font-size: var(--label);
  line-height: 1;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-transform: uppercase;
}

.muted {
  color: var(--ink-muted);
}

.tint {
  color: var(--brand-tint);
}

/* --- Layout -------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: 4rem;
}

@media (min-width: 640px) {
  .section {
    padding-block: 5rem;
  }
}

@media (min-width: 1024px) {
  .section {
    padding-block: 7rem;
  }
}

.section > .wrap {
  position: relative;
}

.g-bone {
  background: var(--bone);
}

.g-bone-light {
  background: var(--bone-light);
}

.g-surface {
  background: var(--surface);
}

.g-brand {
  background: var(--brand);
  color: var(--ink-inverse);
}

.g-brand-deep {
  background: var(--brand-deep);
  color: var(--ink-inverse);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--dot-grid);
  background-size: 22px 22px;
  opacity: 0.7;
}

.stack {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 3.5rem;
  }

  .split.sticky-left {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 4rem;
  }

  .split.even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
  }

  .split.center {
    align-items: center;
  }

  .sticky-top {
    position: sticky;
    top: 7rem;
    align-self: start;
  }
}

/* --- Eyebrows and pills -------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: var(--label);
  line-height: 1;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--brand-bright);
}

.eyebrow .rule {
  height: 1px;
  flex: 1;
  background: rgba(22, 18, 31, 0.15);
}

.eyebrow.inv > span:first-child {
  color: var(--accent);
}

.eyebrow.inv .dot {
  background: var(--accent);
}

.eyebrow.inv .rule {
  background: rgba(207, 195, 247, 0.3);
}

.eyebrow.centered {
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.25rem 0.625rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: var(--label);
  line-height: 1;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-transform: uppercase;
}

.pill.brand {
  background: var(--brand);
  color: var(--accent);
}

.pill.outline {
  border: 1px solid rgba(22, 18, 31, 0.2);
  color: var(--ink);
}

/* --- Cards and icon tiles ------------------------------------------------ */

.card {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--r-card);
}

.card-on-brand {
  background: var(--brand-raised);
  border: 1px solid rgba(207, 195, 247, 0.25);
  border-radius: var(--r-card);
}

.card-hover {
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.card-hover:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 18, 31, 0.3);
  box-shadow: var(--shadow-raised);
}

/* Citrus on a violet tile: the app icon in miniature. */
.icon-tile {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: var(--r-inner);
  background: var(--brand);
  color: var(--accent);
}

.icon-tile.accent {
  background: var(--accent);
  color: var(--ink);
}

.icon-tile.sm {
  width: 2.25rem;
  height: 2.25rem;
}

.icon-tile.lg {
  width: 2.75rem;
  height: 2.75rem;
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: none;
}

.btn .arw {
  transition: transform var(--dur-fast) var(--ease);
}

.btn:hover .arw {
  transform: translateX(2px);
}

.btn-lg {
  padding: 0.875rem 1.5rem;
  font-size: var(--body);
}

.btn-md {
  padding: 0.625rem 1.25rem;
  font-size: var(--body-sm);
}

.btn-sm {
  padding: 0.5rem 0.875rem;
  font-size: var(--caption);
}

/* Citrus carries ink, and only ever sits on violet. */
.btn-accent {
  background: var(--accent);
  color: var(--ink);
}

.btn-accent:hover {
  background: var(--accent-deep);
}

/* The same role on paper. */
.btn-action {
  background: var(--action);
  color: var(--on-action);
}

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

.btn-outline-brand {
  border-color: rgba(207, 195, 247, 0.5);
  color: var(--brand-tint);
  background: transparent;
}

.btn-outline-brand:hover {
  border-color: var(--brand-tint);
  background: rgba(207, 195, 247, 0.1);
}

.btn-outline-ink {
  border-color: rgba(22, 18, 31, 0.25);
  color: var(--ink);
  background: transparent;
}

.btn-outline-ink:hover {
  border-color: rgba(22, 18, 31, 0.6);
  background: rgba(22, 18, 31, 0.04);
}

/* Apple's badge, unaltered: black, with its own hairline. Height stays at or above Apple's 40px. */
.store-badge {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 0.6rem;
  transition: transform var(--dur-fast) var(--ease);
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge img {
  display: block;
  width: auto;
  height: 3.25rem;
}

.store-badge.sm img {
  height: 2.75rem;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--body-sm);
  font-weight: 600;
  color: var(--brand-bright);
  text-decoration: none;
  text-underline-offset: 4px;
}

.inline-link:hover {
  text-decoration: underline;
}

.inline-link .arw {
  transition: transform var(--dur-fast) var(--ease);
}

.inline-link:hover .arw {
  transform: translateX(2px);
}

.on-brand .inline-link {
  color: var(--accent);
}

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

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
}

.nav-shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    max-width 0.3s var(--ease);
}

/* Once off the hero (or on a page without one) the header condenses into a violet pill. It stays
   violet so it's the same header everywhere, and so the citrus button never sits on paper. */
.scrolled .nav-shell,
.header-solid .nav-shell,
.menu-open .nav-shell {
  background: rgba(46, 17, 128, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: rgba(207, 195, 247, 0.22);
  box-shadow: var(--shadow-on-brand);
  max-width: 64rem;
}

.nav-links {
  display: none;
  gap: 0.25rem;
}

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

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  font-size: var(--body-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-inverse);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-link[aria-current='page'] {
  background: rgba(255, 255, 255, 0.15);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* The header's button: citrus on violet, the same on every page. */
.btn-header {
  background: var(--accent);
  color: var(--ink);
}

.btn-header:hover {
  background: var(--accent-deep);
}

/* The wordmark: the stamp on its violet tile (as on the App Store icon), then "Motive" in Bricolage
   ExtraBold. Mark 32 : type 30, line height 1, tracking −0.8/30 — the same ratios as `.wordmark` in
   /style.css and mobile/src/components/wordmark.tsx. Change them together. */
.wordmark {
  --mark: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--mark) * 0.25);
  text-decoration: none;
  flex-shrink: 0;
}

.wordmark .mark {
  display: grid;
  place-items: center;
  width: var(--mark);
  height: var(--mark);
  border-radius: calc(var(--mark) * 0.24);
  background: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(207, 195, 247, 0.3);
}

.wordmark .mark img {
  width: 82%;
  height: 82%;
}

.wordmark .name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: calc(var(--mark) * 0.9375);
  line-height: 1;
  letter-spacing: calc(var(--mark) * -0.025);
  color: var(--ink-inverse);
}

.menu-btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-pill);
  border: 0;
  background: transparent;
  color: var(--ink-inverse);
  cursor: pointer;
}

@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }
}

.mobile-menu {
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid rgba(22, 18, 31, 0.1);
  box-shadow: var(--shadow-lifted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu .nav-link {
  color: var(--ink);
  font-size: var(--body);
  font-weight: 600;
}

.mobile-menu .nav-link:hover {
  background: rgba(22, 18, 31, 0.06);
}

.mobile-menu .nav-link[aria-current='page'] {
  background: rgba(22, 18, 31, 0.08);
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Pages without a violet hero (privacy, terms) start below the header. */
.header-solid main {
  padding-top: calc(var(--header-h) + 1.5rem);
}

/* --- Heroes -------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  color: var(--ink-inverse);
  padding-block: 7rem 4rem;
}

@media (min-width: 640px) {
  .hero {
    padding-block: 9rem 5rem;
  }
}

@media (min-width: 1024px) {
  .hero.home {
    padding-block: 10rem 6rem;
  }
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin-top: 1.5rem;
  color: var(--ink-inverse);
}

.hero .lede {
  margin-top: 1.5rem;
  max-width: 36rem;
  color: var(--brand-tint);
}

.hero .ctas {
  gap: 0.75rem;
  margin-top: 2.25rem;
  align-items: center;
}

.hero .small-print {
  margin-top: 1.25rem;
  max-width: 32rem;
  color: rgba(207, 195, 247, 0.85);
}

.hero .small-print + .small-print {
  margin-top: 0.375rem;
}

.small-print a {
  color: var(--ink-inverse);
  text-underline-offset: 3px;
}

.h1-home {
  max-width: 15ch;
}

.h1-inner {
  max-width: 20ch;
}

.hero-grid,
.how-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 3rem;
  }

  .how-grid {
    grid-template-columns: minmax(0, 1fr) 19rem;
    gap: 3rem;
  }
}

/* The phone is hidden at phone width, where it would push the download button off screen. The
   views section further down shows it at every width. */
.hero-phone {
  display: none;
}

@media (min-width: 640px) {
  .hero-phone {
    display: block;
  }
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(207, 195, 247, 0.35);
  background: rgba(15, 5, 45, 0.35);
  font-size: var(--caption);
  font-weight: 500;
  color: var(--brand-tint);
}

.live-dot {
  position: relative;
  display: inline-flex;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
}

.live-dot i {
  position: absolute;
  inset: 0;
  border-radius: var(--r-pill);
  background: var(--accent);
}

.live-dot i:first-child {
  animation: ring 2.4s var(--ease) infinite;
}

@keyframes ring {
  0% {
    transform: scale(0.85);
    opacity: 0.7;
  }

  70%,
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.spotlight::before,
.spotlight::after {
  content: '';
  position: absolute;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  filter: blur(40px);
}

.spotlight::before {
  top: -22rem;
  left: -14rem;
  background: radial-gradient(circle, rgba(199, 245, 63, 0.13) 0, transparent 68%);
}

.spotlight::after {
  top: -16rem;
  right: -16rem;
  background: radial-gradient(circle, rgba(75, 33, 201, 0.55) 0, transparent 66%);
}

.ticks {
  gap: 0.75rem 1.5rem;
  margin-top: 2.5rem;
}

.ticks li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--caption);
  font-weight: 500;
  color: var(--brand-tint);
}

.ticks svg {
  color: var(--accent);
}

/* --- Heading blocks ------------------------------------------------------ */

.heading-block > h2 {
  margin-top: 1.25rem;
  max-width: 32ch;
}

.heading-block > .lead {
  margin-top: 1.25rem;
  max-width: 60ch;
}

.heading-block > .after {
  margin-top: 1.5rem;
}

.heading-block.centered {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.heading-block.centered > h2 {
  max-width: none;
}

.heading-block.centered > .lead {
  margin-inline: auto;
}

.on-brand .heading-block > .lead {
  color: var(--brand-tint);
}

.on-brand h2,
.on-brand h3 {
  color: var(--ink-inverse);
}

.block-gap {
  margin-top: 2.5rem;
}

.block-gap-lg {
  margin-top: 3rem;
}

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

.prose {
  gap: 1.25rem;
  max-width: 44rem;
}

.rows {
  border-block: 1px solid rgba(22, 18, 31, 0.1);
}

.rows > li {
  display: flex;
  gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid rgba(22, 18, 31, 0.1);
}

.rows > li:last-child {
  border-bottom: 0;
}

.rows p {
  margin-top: 0.25rem;
}

/* --- Bento --------------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    grid-auto-rows: minmax(13.5rem, auto);
  }

  .bento .span2 {
    grid-column: span 2;
  }
}

.bento > li {
  display: flex;
}

.bento-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  padding: 1.25rem;
  border-radius: var(--r-card);
  border: 1px solid var(--surface-line);
  background: var(--surface);
}

@media (min-width: 640px) {
  .bento-item {
    padding: 1.5rem;
  }
}

.bento-item h3 {
  margin-top: 1rem;
}

.bento-item p {
  margin-top: 0.375rem;
  font-size: var(--body-sm);
  color: var(--ink-muted);
  max-width: 52ch;
}

.bento-item.inv {
  background: var(--brand);
  border-color: rgba(207, 195, 247, 0.25);
  color: var(--ink-inverse);
}

.bento-item.inv h3 {
  color: var(--ink-inverse);
}

.bento-item.inv p {
  color: var(--brand-tint);
}

.bento-item.inv:hover {
  border-color: rgba(207, 195, 247, 0.5);
}

/* --- Steps and the rail -------------------------------------------------- */

.steps {
  display: grid;
  gap: 1rem;
}

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

.step-card {
  height: 100%;
  padding: 1.25rem;
  border-radius: var(--r-card);
  border: 1px solid rgba(22, 18, 31, 0.1);
  background: rgba(255, 255, 255, 0.6);
}

@media (min-width: 640px) {
  .step-card {
    padding: 1.75rem;
  }
}

.step-card h2,
.step-card h3 {
  margin-top: 1rem;
}

.step-card p {
  margin-top: 0.5rem;
  font-size: var(--body-sm);
  color: var(--ink-muted);
}

.step-card .step-lead {
  margin-top: 0.625rem;
  max-width: 60ch;
  font-size: var(--body);
  color: var(--ink);
}

.step-card .step-detail {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(22, 18, 31, 0.1);
  max-width: 60ch;
}

.rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .rail {
    padding-left: 3.5rem;
  }

  .rail::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--brand-bright), rgba(75, 33, 201, 0.5) 55%, rgba(75, 33, 201, 0));
    border-radius: var(--r-pill);
  }

  .rail > li {
    position: relative;
  }

  .rail > li::before {
    content: '';
    position: absolute;
    left: -2.75rem;
    top: 1.9rem;
    width: 14px;
    height: 14px;
    border-radius: var(--r-pill);
    background: var(--brand-bright);
    outline: 3px solid var(--bone);
  }
}

/* --- Marquee ------------------------------------------------------------- */

.marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 2.5rem;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.marquee ul {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  padding-block: 0.5rem;
  animation: scroll 90s linear infinite;
}

.marquee ul + ul {
  animation-direction: reverse;
  padding-top: 0.25rem;
}

.marquee:hover ul {
  animation-play-state: paused;
}

@keyframes scroll {
  to {
    transform: translateX(calc(-50% - 0.375rem));
  }
}

.soc {
  display: block;
  white-space: nowrap;
  border-radius: var(--r-pill);
  border: 1px solid rgba(22, 18, 31, 0.15);
  background: var(--bone);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-display);
  font-size: var(--body-sm);
  font-weight: 700;
  color: var(--ink);
}

/* --- FAQ (details/summary: works without JS; name="" makes it single-open) - */

.acc {
  border-top: 1px solid rgba(22, 18, 31, 0.1);
}

.acc details {
  border-bottom: 1px solid rgba(22, 18, 31, 0.1);
  interpolate-size: allow-keywords;
}

.acc summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease);
}

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

@media (min-width: 640px) {
  .acc summary {
    font-size: 1.15rem;
  }
}

.acc summary:hover {
  color: var(--brand-bright);
}

.acc-sign {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(22, 18, 31, 0.2);
  color: var(--ink);
  transition: transform var(--dur-fast) var(--ease);
}

.acc details[open] .acc-sign {
  transform: rotate(45deg);
}

.acc details::details-content {
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  transition: block-size 0.3s var(--ease), opacity 0.3s var(--ease), content-visibility 0.3s allow-discrete;
}

.acc details[open]::details-content {
  block-size: auto;
  opacity: 1;
}

.acc details p {
  max-width: 60ch;
  padding-bottom: 1.5rem;
  padding-right: 2.5rem;
  font-size: var(--body-sm);
  color: var(--ink-muted);
}

@media (min-width: 640px) {
  .acc details p {
    font-size: var(--body);
  }
}

.acc details p a {
  color: var(--brand-bright);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* --- Comparison ---------------------------------------------------------- */

.cmp-head {
  display: none;
}

.cmp-row {
  display: grid;
  gap: 0.5rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid rgba(22, 18, 31, 0.1);
}

.cmp-cell {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--body-sm);
}

.cmp-cell.yes {
  font-weight: 500;
}

.cmp-mark {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  border-radius: var(--r-pill);
}

.cmp-mark.no {
  border: 1px solid rgba(22, 18, 31, 0.2);
  color: var(--ink-muted);
}

.cmp-mark.yes {
  background: var(--action);
  color: var(--on-action);
}

.only-mobile {
  display: block;
  margin-bottom: 0.125rem;
}

.cmp-with {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-bright);
}

.cmp-with i {
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--brand-bright);
}

@media (min-width: 640px) {
  .cmp-head {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(22, 18, 31, 0.15);
  }

  .cmp-row {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
  }

  .cmp-row .only-mobile {
    display: none;
  }
}

/* --- Pain cards, audiences, chapters ------------------------------------ */

.pain-grid {
  display: grid;
  gap: 1rem;
}

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

.pain-card {
  height: 100%;
  padding: 1.5rem;
}

.pain-card h3 {
  margin-top: 1rem;
}

.pain-card p {
  margin-top: 0.375rem;
}

.audiences {
  display: grid;
  gap: 1rem;
}

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

.audience {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--r-card);
}

@media (min-width: 640px) {
  .audience {
    padding: 2rem;
  }
}

.audience.light {
  border: 1px solid var(--surface-line);
  background: rgba(243, 240, 232, 0.6);
}

.audience.dark {
  border: 1px solid rgba(207, 195, 247, 0.25);
  background: var(--brand);
  color: var(--ink-inverse);
}

.audience .t-label {
  margin-top: 1.25rem;
  color: var(--ink-muted);
}

.audience.dark .t-label {
  color: var(--brand-tint);
}

.audience h3 {
  margin-top: 0.5rem;
}

.audience.dark h3 {
  color: var(--ink-inverse);
}

.check-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  font-size: var(--body-sm);
  color: var(--ink-muted);
}

.check-list svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--brand-bright);
}

.on-brand .check-list li,
.audience.dark .check-list li {
  color: var(--brand-tint);
}

.on-brand .check-list li.bright {
  color: var(--ink-inverse);
}

.on-brand .check-list svg,
.audience.dark .check-list svg {
  color: var(--accent);
}

.chapters {
  gap: 3rem;
}

.chapter-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(22, 18, 31, 0.15);
  padding-top: 1.25rem;
}

.chapter-body {
  gap: 1.25rem;
  margin-top: 1.5rem;
  max-width: 60ch;
}

@media (min-width: 1024px) {
  .chapter-body {
    margin-left: 4.5rem;
  }
}

/* --- Cost card, side notes ----------------------------------------------- */

.cost-card {
  padding: 1.5rem;
}

.cost-card .t-label {
  margin-top: 1.25rem;
}

.side-note {
  margin-top: 1.5rem;
  max-width: 30rem;
  border-left: 2px solid rgba(199, 245, 63, 0.5);
  padding-left: 1rem;
  color: rgba(207, 195, 247, 0.85);
}

/* --- Download band ------------------------------------------------------- */

.download-ctas {
  gap: 1rem;
  margin-top: 2rem;
  align-items: center;
}

.download-note {
  margin-top: 1.25rem;
  max-width: 32rem;
  color: rgba(207, 195, 247, 0.85);
}

/* The QR code only helps someone reading this on a computer. */
.qr-card {
  display: none;
}

@media (min-width: 1024px) {
  .qr-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-self: end;
    padding: 1.5rem;
  }
}

.qr-card img {
  width: 9.5rem;
  height: 9.5rem;
  border-radius: var(--r-inner);
  background: var(--surface);
  padding: 0.375rem;
}

.qr-card p {
  max-width: 13rem;
}

.qr-card .t-label {
  color: var(--accent);
}

.block {
  display: block;
}

.qr-card .t-sm {
  margin-top: 0.625rem;
  color: var(--brand-tint);
}

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

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  color: var(--ink-inverse);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

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

.footer-about {
  max-width: 24rem;
}

.footer-about > p {
  margin-top: 1rem;
}

.footer-about .store-badge {
  margin-top: 1.5rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.footer-nav h2 {
  font-family: var(--font-display);
  font-size: var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

.footer-nav ul {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-nav a {
  font-size: var(--body-sm);
  color: var(--brand-tint);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.footer-nav a:hover {
  color: var(--ink-inverse);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(207, 195, 247, 0.3);
  color: var(--brand-tint);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.social a:hover {
  border-color: var(--brand-tint);
  color: var(--ink-inverse);
}

.footer-legal {
  margin-top: 3rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(207, 195, 247, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: var(--caption);
  color: rgba(207, 195, 247, 0.75);
}

.footer-legal a {
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--ink-inverse);
  text-decoration: underline;
}

@media (min-width: 640px) {
  .footer-legal {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* --- Reveal -------------------------------------------------------------- */
/* Visible by default: site.js adds .js only once the observer is wired, so the page with JS off, or
   before the script runs, shows everything. */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}

.js .reveal.d1 {
  transition-delay: 0.07s;
}

.js .reveal.d2 {
  transition-delay: 0.14s;
}

.js .reveal.d3 {
  transition-delay: 0.21s;
}

.js .reveal.d4 {
  transition-delay: 0.28s;
}

.js .reveal.d5 {
  transition-delay: 0.35s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee ul {
    animation: none;
  }
}

/* ===========================================================================
   The phone mockups. The frame is the site's; what's inside is drawn the app's way (2px ink borders,
   hard offset shadows, the violet header band), matching mobile/src/app/(tabs)/index.tsx and
   components/event-tile.tsx. Names, events and places in them are invented.
   ========================================================================= */

.phone {
  position: relative;
  width: 100%;
  max-width: 19rem;
  margin-inline: auto;
  border-radius: var(--r-frame);
  background: #0d0a14;
  padding: 0.5rem;
  box-shadow: var(--shadow-on-brand);
  outline: 1px solid rgba(207, 195, 247, 0.2);
}

.phone .screen {
  position: relative;
  height: 36rem;
  overflow: hidden;
  border-radius: 1.85rem;
  background: var(--bone);
}

.phone.short .screen {
  height: 33rem;
}

.app {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.3;
  -webkit-user-select: none;
  user-select: none;
}

.app-head {
  background: var(--brand);
  padding: 0.5rem 0.875rem 0.875rem;
  border-bottom: 2px solid var(--ink);
  color: var(--ink-inverse);
}

.app-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.125rem 0.5rem 0.875rem;
  font-size: 0.6875rem;
  font-weight: 700;
}

.app-status .island {
  width: 4.5rem;
  height: 1.1rem;
  border-radius: var(--r-pill);
  background: #0d0a14;
}

.app-status .bars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.app-status .battery {
  padding: 0 0.25rem;
  border-radius: 0.25rem;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.5625rem;
  line-height: 1.3;
}

.app-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.app-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.app-toggle {
  display: flex;
  border: 2px solid var(--ink-inverse);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.app-toggle span {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.45rem;
  color: var(--brand-tint);
}

.app-toggle span.on {
  background: var(--accent);
  color: var(--ink);
}

.app-chips {
  display: flex;
  gap: 0.375rem;
  margin-top: 0.75rem;
}

.app-chip {
  padding: 0.25rem 0.625rem;
  border-radius: var(--r-pill);
  border: 2px solid var(--brand-tint);
  background: var(--brand-bright);
  box-shadow: 0 2px 0 var(--ink);
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
}

.app-search {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.app-search .field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--r-pill);
  border: var(--app-border);
  background: var(--surface);
  box-shadow: var(--app-shadow);
  color: var(--ink-muted);
  font-size: 0.75rem;
}

.app-search .filter {
  display: grid;
  place-items: center;
  width: 2.1rem;
  flex-shrink: 0;
  border-radius: 0.7rem;
  border: var(--app-border);
  background: var(--surface);
  box-shadow: var(--app-shadow);
  color: var(--ink);
}

.app-feed {
  padding: 0.875rem 0.75rem 6rem;
}

.app-day {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0 0.625rem;
  font-family: var(--font-display);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-day::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--ink);
}

.app-day + .app-card,
.app-card + .app-card {
  margin-top: 0;
}

.app-card {
  position: relative;
  display: flex;
  gap: 0.6rem;
  padding: 0.55rem;
  margin-bottom: 0.75rem;
  border: var(--app-border);
  border-radius: 0.9rem;
  background: var(--surface);
  box-shadow: var(--app-shadow);
}

.app-body {
  min-width: 0;
  flex: 1;
}

.app-when {
  font-size: 0.625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.app-when b {
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-bright);
}

.app-card-title {
  margin-top: 0.1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-meta {
  margin-top: 0.15rem;
  font-size: 0.6rem;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-going {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.3rem;
  font-size: 0.625rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}

.app-faces {
  display: flex;
}

.app-face {
  display: grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  margin-left: -0.3rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--ink);
  background: var(--brand-wash);
  color: var(--ink);
}

.app-face:first-child {
  margin-left: 0;
}

.app-face.alt {
  background: var(--bone);
}

.app-card.cancelled .app-card-title {
  text-decoration: line-through;
  color: var(--ink-muted);
}

.app-status-chip {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.05rem 0.4rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.app-status-chip.in {
  border-color: var(--brand-bright);
  background: var(--brand-bright);
  color: var(--ink-inverse);
}

/* Covers: drawn, never photographs. */
.app-thumb {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  flex-shrink: 0;
  overflow: hidden;
  border: var(--app-border);
  border-radius: 0.55rem;
  color: var(--brand-tint);
}

.app-thumb svg {
  width: 70%;
  height: 70%;
}

.cover-stamp {
  background: var(--brand);
}

.cover-stamp img {
  width: 78%;
  height: 78%;
}

.cover-talk {
  background: linear-gradient(150deg, #2a1f4a, #4b21c9);
}

.cover-sport {
  background: linear-gradient(160deg, #1d1630, #3a1a96);
}

.cover-night {
  background: radial-gradient(circle at 30% 25%, #6b46e0, #1f0b5a 70%);
}

.cover-film {
  background: linear-gradient(135deg, #16121f, #2e1180);
}

.cover-paper {
  background: var(--brand-wash);
  color: var(--brand-bright);
}

/* The tab bar floats over the feed, as on iOS. Four tabs: what a student sees. */
.app-tabs {
  position: absolute;
  inset-inline: 0.5rem;
  bottom: 0.6rem;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(22, 18, 31, 0.1);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px -8px rgba(22, 18, 31, 0.35);
}

.app-tabs span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.3rem 0;
  border-radius: var(--r-pill);
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--ink);
}

.app-tabs span.on {
  background: rgba(75, 33, 201, 0.1);
  color: var(--brand-bright);
}

/* Calendar view: the week ahead, events sized by time (components/time-grid.tsx). */
.app-cal {
  padding: 0.625rem 0.5rem 6rem;
}

.cal-days {
  display: grid;
  grid-template-columns: 1.35rem repeat(5, 1fr);
  margin-bottom: 0.375rem;
  text-align: center;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cal-days span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.cal-days b {
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0;
}

.cal-days .today b {
  border-radius: var(--r-pill);
  background: var(--brand-bright);
  color: var(--ink-inverse);
}

.cal-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.35rem repeat(5, 1fr);
  grid-template-rows: repeat(20, 0.95rem);
  column-gap: 2px;
  background-image: linear-gradient(to bottom, rgba(22, 18, 31, 0.12) 1px, transparent 1px);
  background-size: 100% 1.9rem;
}

.cal-hour {
  grid-column: 1;
  font-size: 0.45rem;
  font-weight: 600;
  color: var(--ink-muted);
  transform: translateY(-0.3rem);
}

.cal-h12 { grid-row: 1; }
.cal-h14 { grid-row: 5; }
.cal-h16 { grid-row: 9; }
.cal-h18 { grid-row: 13; }
.cal-h20 { grid-row: 17; }

.cal-ev {
  z-index: 1;
  margin: 1px 0;
  padding: 0.15rem 0.2rem;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 0.3rem;
  background: var(--brand-bright);
  color: var(--ink-inverse);
  font-size: 0.45rem;
  font-weight: 700;
  line-height: 1.15;
}

.cal-ev i {
  display: block;
  font-style: normal;
  font-weight: 500;
  opacity: 0.85;
}

.cal-ev.deep {
  background: var(--brand);
}

.cal-ev.paper {
  background: var(--brand-wash);
  color: var(--ink);
}

/* Grid positions for the mock's events (column = day, row = half hours from 12:00). */
.cal-e1 { grid-column: 2; grid-row: 3 / span 3; }
.cal-e2 { grid-column: 2; grid-row: 14 / span 4; }
.cal-e3 { grid-column: 3; grid-row: 6 / span 2; }
.cal-e4 { grid-column: 3; grid-row: 13 / span 3; }
.cal-e5 { grid-column: 4; grid-row: 9 / span 4; }
.cal-e6 { grid-column: 4; grid-row: 16 / span 4; }
.cal-e7 { grid-column: 5; grid-row: 2 / span 2; }
.cal-e8 { grid-column: 5; grid-row: 12 / span 5; }
.cal-e9 { grid-column: 6; grid-row: 4 / span 6; }
.cal-e10 { grid-column: 6; grid-row: 15 / span 3; }

.cal-now {
  grid-column: 2 / -1;
  grid-row: 11;
  z-index: 2;
  align-self: start;
  height: 2px;
  background: var(--error);
}

/* Map view: violet pins, citrus only inside them; the live one breathes. */
.screen.col {
  display: flex;
  flex-direction: column;
}

.app-map {
  position: relative;
  flex: 1;
  background: #e8e4da;
}

.map-road {
  fill: none;
  stroke: #fff;
  stroke-width: 12;
}

.map-lane {
  fill: none;
  stroke: #fff;
  stroke-width: 5;
}

.map-park {
  fill: #ddd6ee;
}

.map-water {
  fill: #cfc3f7;
}

.app-map svg.streets {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--r-pill);
  border: 2px solid var(--surface);
  background: var(--brand-bright);
  box-shadow: 0 2px 0 var(--ink);
  color: var(--ink-inverse);
  font-size: 0.55rem;
  font-weight: 800;
}

.map-pin.live {
  width: 1.9rem;
  height: 1.9rem;
  background: var(--brand);
  color: var(--accent);
  font-size: 0.7rem;
}

.map-pin.live::before {
  content: '';
  position: absolute;
  inset: -0.55rem;
  border-radius: var(--r-pill);
  background: rgba(75, 33, 201, 0.28);
  z-index: -1;
  animation: breathe 2.6s var(--ease) infinite;
}

.map-pin.selected {
  border-color: var(--ink);
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.75);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.35;
  }
}

.pin-a { top: 34%; left: 22%; }
.pin-b { top: 47%; left: 54%; }
.pin-c { top: 26%; left: 66%; }
.pin-d { top: 60%; left: 30%; }
.pin-e { top: 39%; left: 80%; }

.map-carousel {
  position: absolute;
  inset-inline: 0.625rem;
  bottom: 4.4rem;
  z-index: 2;
}

.map-carousel .app-card {
  margin: 0;
}

.map-live {
  display: inline-block;
  margin-bottom: 0.3rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- The three views (home) ---------------------------------------------- */
/* A row of phones at desktop; at phone width they scroll sideways inside their own strip, so the
   page itself never does. */

.views {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(19rem, 82%);
  gap: 1.25rem;
  margin-top: 3rem;
  padding: 0.5rem var(--gutter) 1.5rem;
  margin-inline: calc(var(--gutter) * -1);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.views::-webkit-scrollbar {
  display: none;
}

.views > figure {
  margin: 0;
  scroll-snap-align: center;
}

.views figcaption {
  margin-top: 1.25rem;
  text-align: center;
}

.views figcaption p {
  margin-top: 0.375rem;
}

.views .phone {
  box-shadow: var(--shadow-lifted);
  outline: 0;
}

@media (min-width: 1024px) {
  .views {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 19rem));
    justify-content: center;
    gap: 2.5rem;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
}

/* --- Legal pages ---------------------------------------------------------- */
/* privacy.html and terms.html keep their markup and text; this only gives it a reading measure. */

.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem var(--gutter) 5rem;
  font-size: var(--body);
  line-height: 1.65;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: var(--display-2);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.032em;
}

.legal h2 {
  margin-top: 2.5rem;
  font-size: var(--display-4);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.legal h3 {
  margin-top: 1.75rem;
  font-size: var(--title);
  font-weight: 700;
}

.legal p,
.legal ul {
  margin-top: 0.875rem;
  color: var(--ink);
}

.legal ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.legal li + li {
  margin-top: 0.375rem;
}

.legal a {
  color: var(--brand-bright);
  font-weight: 600;
  text-underline-offset: 3px;
}

.legal .small,
.legal .muted {
  color: var(--ink-muted);
  font-size: var(--body-sm);
}

/* --- Pushed screens: an event page, an event's admin page, the check-in code ------------------ */
/* event/[id].tsx, manage/[id].tsx and door-code/[id].tsx, simplified. */

.app-cover {
  position: relative;
  height: 8.5rem;
  background: linear-gradient(150deg, #2a1f4a, #4b21c9);
  color: var(--brand-tint);
}

.app-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(22, 18, 31, 0.35), rgba(22, 18, 31, 0) 35%, rgba(243, 240, 232, 0) 65%, var(--bone));
}

.app-cover .app-status {
  position: relative;
  z-index: 1;
  padding: 0.6rem 1.25rem 0;
  color: var(--ink-inverse);
}

.app-cover > svg {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 3.25rem;
  height: 3.25rem;
  transform: translate(-50%, -50%);
}

.app-cover .app-cover-stamp {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.5rem;
  height: 4.5rem;
  transform: translate(-50%, -50%) rotate(0deg);
}

.cover-quiz {
  background: radial-gradient(circle at 30% 25%, #6b46e0, #1f0b5a 70%);
}

.app-back {
  position: absolute;
  z-index: 1;
  left: 0.75rem;
  top: 2.4rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--r-pill);
  border: var(--app-border);
  background: var(--surface);
  box-shadow: 0 2px 0 var(--ink);
  color: var(--ink);
}

.app-back svg {
  transform: rotate(180deg);
}

.app-page {
  padding: 0.25rem 0.875rem 6rem;
}

.app-society {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.625rem;
  font-weight: 700;
}

.app-society i {
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.3rem;
  border: 1.5px solid var(--ink);
  background: var(--brand-wash);
  font-style: normal;
  font-size: 0.55rem;
  font-weight: 800;
}

.app-page-title {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.app-detail {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  font-size: 0.65rem;
  font-weight: 600;
}

.app-detail svg {
  color: var(--brand-bright);
}

.app-detail + .app-detail {
  margin-top: 0.25rem;
}

.app-page .app-going {
  margin-top: 0.75rem;
  font-size: 0.65rem;
}

.app-text {
  margin-top: 0.75rem;
  font-size: 0.65rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.app-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.1rem;
}

.app-chip-row span {
  padding: 0.05rem 0.45rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* The bottom bar of an event page: where you stand, and the one button. */
.app-bar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 3;
  padding: 0.75rem 0.875rem 1.4rem;
  border-top: 2px solid var(--ink);
  background: var(--bone);
}

.app-bar p {
  margin-bottom: 0.5rem;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-align: center;
}

.app-button {
  display: block;
  padding: 0.6rem;
  border: var(--app-border);
  border-radius: var(--r-pill);
  background: var(--brand-bright);
  box-shadow: var(--app-shadow);
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
}

.app-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.875rem;
}

.app-stat {
  padding: 0.5rem 0.6rem;
  border: var(--app-border);
  border-radius: 0.75rem;
  background: var(--surface);
}

.app-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.05;
}

.app-stat span {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.app-stat.violet {
  background: var(--brand-bright);
  color: var(--bone);
}

.app-stat.violet span {
  color: var(--brand-tint);
}

.app-meter {
  margin-top: 0.75rem;
}

.app-meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  font-weight: 700;
}

.app-meter-track {
  margin-top: 0.25rem;
  height: 0.55rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--surface);
  overflow: hidden;
}

.app-meter-track i {
  display: block;
  width: 70%;
  height: 100%;
  background: var(--brand-bright);
}

.app-menu {
  margin-top: 0.875rem;
  border: var(--app-border);
  border-radius: 0.9rem;
  background: var(--surface);
  box-shadow: var(--app-shadow);
  overflow: hidden;
}

.app-menu-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
}

.app-menu-row + .app-menu-row {
  border-top: 1px solid rgba(22, 18, 31, 0.12);
}

.app-menu-row > svg:first-child {
  color: var(--brand-bright);
}

.app-menu-row .chev {
  margin-left: auto;
  color: var(--ink-muted);
}

.app-menu.danger {
  box-shadow: none;
  border-color: var(--error);
  color: var(--error);
}

.app-menu.danger .app-menu-row {
  justify-content: center;
}

.app-section-label {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* The check-in code: one of the app's violet screens. */
.app-door {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--brand);
  color: var(--ink-inverse);
  text-align: center;
}

.app-door .app-status {
  align-self: stretch;
  padding: 0.6rem 1.25rem 0;
}

.app-door .app-back {
  top: 2.4rem;
}

.app-door-title {
  margin-top: 3.5rem;
  padding-inline: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.app-door-time {
  margin-top: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand-tint);
}

.app-door-code {
  position: relative;
  width: 13rem;
  margin-top: 1.5rem;
  padding: 0.75rem;
  border-radius: 1.1rem;
  background: var(--bone);
}

.app-door-code > img {
  display: block;
  width: 100%;
  height: auto;
}

/* The mark sits on a disc of the code's background, as in components/qr-code.tsx. */
.app-door-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  transform: translate(-50%, -50%);
  border-radius: var(--r-pill);
  background: var(--bone);
}

.app-door-mark svg {
  width: 2.1rem;
  height: 2.1rem;
  color: var(--ink);
}

.app-door-note {
  margin-top: 1.25rem;
  padding-inline: 2rem;
  font-size: 0.7rem;
  color: var(--brand-tint);
}

.app-door-refresh {
  margin-top: 0.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- Committee phones (societies) ----------------------------------------------------------- */

.duo {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(19rem, 82%);
  gap: 1.25rem;
  margin-top: 3rem;
  padding: 0.5rem var(--gutter) 1.5rem;
  margin-inline: calc(var(--gutter) * -1);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.duo::-webkit-scrollbar {
  display: none;
}

.duo > figure {
  margin: 0;
  scroll-snap-align: center;
}

.duo figcaption {
  margin-top: 1.25rem;
  text-align: center;
}

.duo figcaption p {
  margin-top: 0.375rem;
}

.duo .phone {
  box-shadow: var(--shadow-lifted);
  outline: 0;
}

@media (min-width: 768px) {
  .duo {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 19rem));
    justify-content: center;
    gap: 3rem;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
}

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

.h1-how {
  max-width: 18ch;
}

.hero .strapline {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: var(--display-4);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.three-cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .three-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.h1-soc {
  max-width: 22ch;
}

.steps .step-card .after-steps {
  margin-top: 0.75rem;
}

.app-door-mark img {
  width: 2.1rem;
  height: 2.1rem;
}

/* The event page's map card: read, not pressed; its "Open in Maps" pill is the button. */
.app-mapcard {
  position: relative;
  height: 6.5rem;
  margin-top: 0.875rem;
  overflow: hidden;
  border: var(--app-border);
  border-radius: 0.8rem;
  background: #e8e4da;
}

.app-mapcard svg.streets {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.app-mapcard-pin {
  top: 34%;
  left: 36%;
  width: 1.1rem;
  height: 1.1rem;
}

.app-mapcard-open {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  padding: 0.2rem 0.55rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: 0 2px 0 var(--ink);
  font-size: 0.55rem;
  font-weight: 700;
}
