/* Poko website. Every color, radius, and shadow comes from tokens.css; the
   only literal colors here are illustration paint (collection swatches and the
   device bezel) that the app itself stores as fixed values. */

/* ───────────────────────── Base ───────────────────────── */

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

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

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--ink-primary);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  box-shadow: var(--elevation-2);
  font-weight: 600;
  text-decoration: none;
}

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

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 32px;
}

.glyph {
  fill: currentColor;
  flex: none;
}

/* ───────────────────────── Header ───────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-primary) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--motion-standard);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border-hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
}

.wordmark {
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--brand-primary);
}

.brand-small .brand-mark {
  width: 28px;
  height: 28px;
}

.brand-small .wordmark {
  font-size: 21px;
}

/* ───────────────────────── Buttons ───────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font: 600 17px/1.2 var(--font);
  text-decoration: none;
  text-align: center;
  transition: background-color var(--motion-quick), transform var(--motion-quick);
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, var(--elevation-1);
}

.button-primary:hover {
  background: var(--brand-primary-pressed);
}

.button-ghost {
  background: var(--bg-secondary);
  color: var(--ink-primary);
}

.button-ghost:hover {
  background: color-mix(in srgb, var(--bg-secondary) 80%, var(--border-strong));
}

.button-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 15px;
}

.button-large {
  min-height: 58px;
  padding: 16px 30px;
  border-radius: 16px;
  font-size: 18px;
}

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

.cta-row-center {
  justify-content: center;
}

/* ───────────────────────── Type ───────────────────────── */

h1 {
  font-weight: 700;
  font-size: clamp(48px, 6.2vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2 {
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede,
.section-lede {
  color: var(--ink-secondary);
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.45;
  text-wrap: pretty;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--expression-coral);
}

.fineprint {
  font-size: 14px;
  color: var(--ink-tertiary);
}

/* ─────────────────── Shared UI illustration pieces ─────────────────── */

.face {
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--bg-secondary);
}

.face-24 {
  width: 24px;
  height: 24px;
}

.face-32 {
  width: 32px;
  height: 32px;
}

.faces {
  display: inline-flex;
  flex: none;
}

.faces img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-elevated);
}

.faces img + img {
  margin-left: -8px;
}

.score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font: 600 13px/1.25 var(--font);
  font-variant-numeric: tabular-nums;
  flex: none;
}

.score-alltimer,
.score-alltimer-tone {
  background: var(--score-alltimer-bg);
  color: var(--score-alltimer-fg);
}

.score-great,
.score-great-tone {
  background: var(--score-great-bg);
  color: var(--score-great-fg);
}

.score-fine {
  background: var(--score-fine-bg);
  color: var(--score-fine-fg);
}

.glyph-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--ink-secondary);
  flex: none;
}

.glyph-tile-sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.glyph-tile-olive {
  background: var(--brand-tint);
  color: var(--brand-primary);
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--elevation-2);
}

.bookmark {
  display: inline-block;
  width: 11px;
  height: 15px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 68%, 0 100%);
  flex: none;
}

.bookmark-sm {
  width: 9px;
  height: 12px;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--bg-secondary);
  font: 600 12px/1.2 var(--font);
  color: var(--ink-primary);
  flex: none;
}

.note {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.45;
}

.reactions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.reaction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px 4px 7px;
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  font: 600 12px/1 var(--font);
  font-variant-numeric: tabular-nums;
  color: var(--ink-secondary);
}

.reaction-on {
  background: var(--expression-coral-tint);
  color: var(--ink-primary);
}

.feed-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feed-head p {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink-secondary);
}

.feed-head p b {
  color: var(--ink-primary);
  font-weight: 700;
}

.feed-head p small {
  font-size: 12px;
  color: var(--ink-tertiary);
}

.feed-head .score {
  margin-left: auto;
}

/* Collection swatches: stored member colors, fixed in both appearances. */
.swatch-coral { background: #e76f51; }
.swatch-tangerine { background: #f4a261; }
.swatch-sunshine { background: #e9c46a; }
.swatch-teal { background: #2a9d8f; }
.swatch-sky { background: #3a86ff; }
.swatch-indigo { background: #7b61ff; }
.swatch-rose { background: #c06c84; }
.swatch-plum { background: #8e5aa7; }
.swatch-slate { background: #6d6875; }
.swatch-forest { background: #52796f; }
.swatch-cocoa { background: #9c6644; }
.swatch-graphite { background: #495057; }

/* ───────────────────────── Hero ───────────────────────── */

.hero {
  position: relative;
  padding: 40px 0 72px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -72px 0 0;
  z-index: -1;
  background:
    radial-gradient(720px 420px at 50% 16%, color-mix(in srgb, var(--brand-tint) 90%, transparent), transparent 70%),
    radial-gradient(420px 360px at 96% 70%, color-mix(in srgb, var(--expression-coral-tint) 85%, transparent), transparent 70%),
    radial-gradient(380px 320px at 4% 40%, color-mix(in srgb, var(--expression-coral-tint) 55%, transparent), transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: -72px 0 0;
  z-index: -1;
  background: url("/images/contours.svg") center / 1400px auto no-repeat;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(70% 50% at 50% 20%, #000 30%, transparent 80%);
  mask-image: radial-gradient(70% 50% at 50% 20%, #000 30%, transparent 80%);
}

/* The headline sits beside the film, and the film is sized to the screen, so
   the whole story fits on the first view. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 56px;
}

.hero-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero-intro h1 {
  font-size: clamp(48px, 4.8vw, 68px);
}

.hero .film {
  width: min(100%, max(440px, calc(100svh - 230px)));
  justify-self: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--elevation-1);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-secondary);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--score-great-fg);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--score-great-fg) 20%, transparent);
}

.scribble {
  position: relative;
  white-space: nowrap;
}

.scribble::after {
  content: "";
  position: absolute;
  left: -2%;
  right: 4%;
  bottom: -0.1em;
  height: 0.3em;
  z-index: -1;
  background: var(--expression-coral);
  -webkit-mask: url("/images/scribble.svg") center / 100% 100% no-repeat;
  mask: url("/images/scribble.svg") center / 100% 100% no-repeat;
}

@keyframes idle {
  0%,
  86%,
  100% {
    transform: rotate(0);
  }
  90% {
    transform: rotate(-5deg);
  }
  95% {
    transform: rotate(4deg);
  }
}

/* The phone stage is laid out at a fixed 600×700 and zoomed to fit narrower screens. */
.app-art {
  display: flex;
  justify-content: center;
}

.app-stage {
  position: relative;
  width: 600px;
  height: 700px;
  flex: none;
}

.phone {
  position: absolute;
  left: 160px;
  top: 20px;
  width: 320px;
  height: 660px;
  padding: 10px;
  border-radius: 52px;
  background: #1d2414;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 30px 60px -18px rgba(29, 36, 20, 0.45),
    0 12px 24px -8px rgba(29, 36, 20, 0.28);
}

.screen {
  position: relative;
  width: 300px;
  height: 640px;
  overflow: hidden;
  border-radius: 42px;
  background: var(--map-land);
  isolation: isolate;
}

.screen::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 11px;
  z-index: 30;
  width: 92px;
  height: 26px;
  border-radius: 20px;
  background: #0e1209;
  transform: translateX(-50%);
}

.map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-land {
  fill: var(--map-land);
}

.map-park {
  fill: var(--map-park);
}

.map-forest {
  fill: var(--map-forest);
  opacity: 0.8;
}

.map-water {
  fill: var(--map-water);
}

.map-blocks rect {
  fill: var(--map-building);
}

.map-roads-casing path,
.map-roads path {
  fill: none;
  stroke-linecap: round;
}

.map-roads-casing path {
  stroke: var(--map-casing);
  stroke-width: 10;
}

.map-roads path {
  stroke: var(--map-road);
  stroke-width: 7;
}

.status-bar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  padding: 4px 26px 0 30px;
  font: 600 14px/1 var(--font);
  color: var(--ink-primary);
}

.status-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.signal {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
}

.signal b {
  width: 3px;
  border-radius: 1px;
  background: currentColor;
}

.signal b:nth-child(1) { height: 4px; }
.signal b:nth-child(2) { height: 6px; }
.signal b:nth-child(3) { height: 8px; }
.signal b:nth-child(4) { height: 10px; }

.battery {
  display: inline-block;
  width: 23px;
  height: 11px;
  padding: 1.5px;
  border: 1px solid currentColor;
  border-radius: 3.5px;
  opacity: 0.9;
}

.battery b {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: 1.5px;
  background: currentColor;
}

.search-pill {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 52px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 8px 0 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  box-shadow: var(--elevation-2);
  color: var(--ink-tertiary);
}

.search-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.shortcut-row {
  position: absolute;
  left: 12px;
  right: 0;
  top: 102px;
  z-index: 15;
  display: flex;
  gap: 6px;
  overflow: hidden;
}

.shortcut {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--elevation-1);
  font: 500 12px/1 var(--font);
  color: var(--ink-secondary);
  white-space: nowrap;
}

.map-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--ink-secondary);
  box-shadow: 0 0 0 1.5px var(--bg-elevated);
  opacity: 0.75;
}

.map-dot-1 { left: 146px; top: 176px; }
.map-dot-2 { left: 34px; top: 262px; }
.map-dot-3 { left: 206px; top: 330px; }
.map-dot-4 { left: 136px; top: 336px; }
.map-dot-5 { left: 270px; top: 236px; }

/* A pin's box is its coordinate: the tail tip. */
.pin {
  position: absolute;
  z-index: 5;
  width: 0;
  height: 0;
  animation: pin-bloom 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.pin-a { left: 76px; top: 206px; animation-delay: 0.25s; }
.pin-b { left: 170px; top: 264px; animation-delay: 0.4s; z-index: 6; }
.pin-c { left: 90px; top: 304px; animation-delay: 0.55s; }
.pin-d { left: 222px; top: 178px; animation-delay: 0.7s; }
.pin-e { left: 252px; top: 296px; animation-delay: 0.85s; }

@keyframes pin-bloom {
  from {
    opacity: 0;
    transform: scale(0.4) translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pin-bubble {
  position: absolute;
  left: -15px;
  top: -35px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--elevation-2);
  color: var(--ink-primary);
  font-size: 14px;
  line-height: 1;
  transform-origin: 50% 120%;
}

.pin-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  z-index: -1;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  background: inherit;
  border-right: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  transform: rotate(45deg);
}

.pin-collection {
  left: -13px;
  top: -31px;
  width: 26px;
  height: 26px;
  border: 2px solid var(--bg-elevated);
  font-size: 13px;
}

.pin-collection::after {
  border: 0;
}

.pin-plum {
  background: #8e5aa7;
}

.pin-sunshine {
  background: #e9c46a;
}

.pin-saved {
  color: var(--brand-secondary);
  border-color: color-mix(in srgb, var(--brand-secondary) 55%, transparent);
}

.pin-selected .pin-bubble {
  transform: scale(1.25);
  box-shadow: 0 0 0 2.5px var(--brand-primary), var(--elevation-3);
}

.pin-badge {
  position: absolute;
  left: 4px;
  top: -47px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5px 2px 3px;
  border-radius: var(--radius-pill);
  font: 600 10px/1.2 var(--font);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pin-badge-friends {
  border: 1.5px solid var(--brand-primary);
}

.pin-badge-own {
  left: 3px;
  top: -44px;
  padding: 2px 6px;
  border: 1.5px solid var(--border-strong);
}

.pin-selected .pin-badge {
  top: -54px;
  left: 8px;
}

.badge-faces {
  display: inline-flex;
}

.badge-faces img {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--score-great-bg);
}

.badge-faces img + img {
  margin-left: -6px;
}

.pin-label {
  position: absolute;
  left: 0;
  top: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--elevation-1);
  font: 600 11px/1.2 var(--font);
  white-space: nowrap;
  transform: translateX(-50%);
}

.pin-selected .pin-label {
  top: 8px;
}

.sheet {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 84px;
  z-index: 18;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 14px 14px;
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  box-shadow: var(--elevation-3);
  animation: sheet-up 0.7s cubic-bezier(0.32, 0.72, 0, 1) 0.9s both;
}

@keyframes sheet-up {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.grabber {
  align-self: center;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-hairline);
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sheet-title {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.sheet-title strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sheet-title span {
  font-size: 12px;
  color: var(--ink-tertiary);
}

.attribution {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-secondary);
}

.attribution .faces img {
  width: 20px;
  height: 20px;
}

.attribution b {
  color: var(--ink-primary);
}

.sheet-note {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
}

.sheet-actions {
  display: flex;
  gap: 6px;
}

.tab-bar {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 14px;
  z-index: 20;
  display: flex;
  height: 58px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--elevation-2);
}

.tab {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font: 500 10px/1 var(--font);
  color: var(--ink-tertiary);
}

.tab-on {
  color: var(--brand-primary);
}

.tab-icon {
  display: block;
}

.icon-feed {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.icon-feed b {
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}

.icon-feed b:nth-child(2) {
  width: 11px;
}

.icon-map {
  width: 14px;
  height: 14px;
  border: 2.5px solid currentColor;
  border-radius: 3px;
  transform: rotate(45deg);
}

.icon-profile {
  position: relative;
  width: 9px;
  height: 9px;
  margin-bottom: 6px;
  border: 2.5px solid currentColor;
  border-radius: 50%;
}

.icon-profile::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 9px;
  width: 16px;
  height: 7px;
  border: 2.5px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

/* Floating cards around the phone */
.float-card {
  position: absolute;
  z-index: 10;
  padding: 14px;
  border-radius: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--elevation-3);
  animation: float 7s ease-in-out infinite;
}

.float-feed {
  left: 0;
  top: 236px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 196px;
  animation-delay: -1s;
}

.float-feed .note {
  font-size: 13px;
}

.score-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.float-list {
  left: 452px;
  top: 250px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 148px;
  animation-delay: -3.5s;
}

.float-list strong {
  margin-top: 8px;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.list-meta {
  font-size: 12px;
  color: var(--ink-tertiary);
}

.list-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  font-size: 21px;
  line-height: 1;
}

.list-sunshine {
  background: #e9c46a;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ───────────────────────── Sections ───────────────────────── */

.section {
  padding: 128px 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin-bottom: 48px;
}

.section-head-center {
  align-items: center;
  margin-inline: auto;
  text-align: center;
}

/* Categories marquee */
.categories {
  padding: 96px 0 104px;
  overflow: hidden;
}

.marquee {
  display: flex;
  overflow: hidden;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee + .marquee {
  margin-top: 10px;
}

.marquee-track {
  display: flex;
  flex: none;
  gap: 12px;
  padding-right: 12px;
  animation: marquee 60s linear infinite;
}

.marquee-reverse .marquee-track {
  animation-direction: reverse;
  animation-duration: 70s;
}

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

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px 7px 7px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--elevation-1);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}

.tag-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: center;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 440px;
}

/* Closing: a dark island in both appearances. */
.closing {
  padding: 96px 0 56px;
}

.closing-panel {
  --bg-primary: #191d16;
  --bg-secondary: #23291e;
  --bg-elevated: #2b3124;
  --ink-primary: #f7f3e7;
  --ink-secondary: #d1d7c2;
  --brand-primary: #cad697;
  --brand-primary-pressed: #b3c17c;
  --brand-on-primary: #1d2414;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 88px 32px;
  border-radius: 40px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(202, 214, 151, 0.18), transparent 70%),
    var(--bg-primary);
  color: var(--ink-primary);
  text-align: center;
}

.closing-panel h2 {
  max-width: 720px;
}

.closing-art {
  width: 192px;
  height: auto;
  padding: 12px 18px;
  border-radius: 28px;
  background: #fffaec;
}

/* ───────────────────────── Footer ───────────────────────── */

.site-footer {
  padding: 40px 0 48px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer-tagline {
  flex: 1;
  color: var(--ink-tertiary);
  font-size: 15px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  font-size: 15px;
  color: var(--ink-tertiary);
  text-decoration: none;
}

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

/* ─────────────────── Text pages (privacy, support) ─────────────────── */

.legal {
  padding: 56px 0 96px;
}

.legal-inner {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(40px, 5vw, 56px);
  margin-bottom: 12px;
}

.legal .lede {
  margin-top: 28px;
}

.legal h2 {
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: -0.02em;
  margin: 48px 0 12px;
}

.legal h3 {
  font-size: 19px;
  margin: 28px 0 6px;
}

.legal p + p {
  margin-top: 12px;
}

.legal ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal li + li {
  margin-top: 8px;
}

.legal a {
  color: var(--brand-primary);
}

/* ─────────────────── Shared list page (/c/…) ─────────────────── */

/* The page's nonce'd style sets --collection-color on :root; olive tint is the fallback. */
.shared {
  position: relative;
  padding: 48px 0 96px;
  isolation: isolate;
}

.shared::before {
  content: "";
  position: absolute;
  inset: -72px 0 auto;
  z-index: -1;
  height: 520px;
  background:
    radial-gradient(520px 360px at 20% 30%, color-mix(in srgb, var(--collection-color, var(--brand-tint)) 28%, transparent), transparent 70%),
    radial-gradient(420px 320px at 90% 10%, color-mix(in srgb, var(--expression-coral-tint) 70%, transparent), transparent 70%);
}

.shared-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.shared-card {
  padding: 28px;
  border-radius: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--elevation-2);
}

.shared-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
}

.collection-emoji {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--collection-color, var(--brand-tint));
  box-shadow: 0 0 0 4px var(--bg-elevated), 0 0 0 5px var(--border-hairline);
  font-size: 44px;
  line-height: 1;
}

.shared-head .kicker {
  margin-bottom: 6px;
}

.shared-title {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.shared-meta {
  margin-top: 6px;
  color: var(--ink-tertiary);
  font-size: 15px;
}

.place-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.place-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border-hairline);
}

.place-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.place-name {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.place-meta,
.place-address {
  font-size: 14px;
  color: var(--ink-tertiary);
}

.place-credit {
  font-size: 12px;
  color: var(--ink-tertiary);
}

.place-more {
  padding: 16px 0 4px;
  border-top: 1px solid var(--border-hairline);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-secondary);
}

.shared-notices {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-tertiary);
}

.shared-notices a {
  color: var(--ink-secondary);
}

.shared-cta {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px;
  border-radius: 28px;
  background: var(--bg-secondary);
}

.shared-cta h2 {
  font-size: 28px;
  letter-spacing: -0.02em;
}

.shared-cta p:not(.fineprint) {
  color: var(--ink-secondary);
  font-size: 16px;
}

.shared-cta .button {
  width: 100%;
}

.shared-cta-mascot {
  width: 72px;
  height: 72px;
}

.shared-message {
  padding: 96px 0 120px;
}

.message-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 620px;
  text-align: center;
}

.message-inner h1 {
  font-size: clamp(36px, 5vw, 56px);
}

.message-inner p {
  color: var(--ink-secondary);
  font-size: 18px;
}

.message-mascot {
  width: 96px;
  height: 96px;
  animation: idle 4s ease-in-out infinite;
}

/* ───────────────────────── Scroll reveal ───────────────────────── */

/* site.js adds .reveal only to elements that start below the fold, so nothing
   already on screen ever blinks; without script everything is simply visible. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

/* ───────────────────────── Dark mode ───────────────────────── */

@media (prefers-color-scheme: dark) {
  .hero::after {
    opacity: 0.22;
  }

  .closing-panel {
    background:
      radial-gradient(60% 80% at 50% 0%, rgba(202, 214, 151, 0.16), transparent 70%),
      var(--bg-secondary);
    box-shadow: inset 0 0 0 1px #424a35;
  }
}

/* ───────────────────────── Responsive ───────────────────────── */

@media (max-width: 1180px) {
  .app-stage {
    zoom: 0.8;
  }

  .feature-grid {
    gap: 48px;
  }
}

@media (max-width: 960px) {
  .app-stage {
    zoom: 0.9;
  }

  .feature-grid,
  .shared-grid,
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero-intro {
    align-items: center;
    text-align: center;
  }

  .hero-intro h1 {
    font-size: clamp(48px, 6.2vw, 80px);
  }

  .hero-intro .cta-row {
    justify-content: center;
  }

  .hero .film {
    width: min(100%, 560px);
    justify-self: center;
  }

  .shared-cta {
    position: static;
  }
}

@media (max-width: 680px) {
  .wrap {
    padding-inline: 16px;
  }

  body {
    font-size: 16px;
  }

  .header-inner {
    height: 64px;
  }

  .section {
    padding: 88px 0;
  }

  .hero {
    padding: 28px 0 56px;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero-intro {
    gap: 20px;
  }

  .app-stage {
    zoom: 0.56;
  }

  .button {
    width: 100%;
  }

  .button-small {
    width: auto;
  }

  .closing-panel {
    padding: 64px 20px;
    border-radius: 28px;
  }

  .shared {
    padding-top: 24px;
  }

  .shared-card,
  .shared-cta {
    padding: 20px;
    border-radius: 24px;
  }

  .shared-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .collection-emoji {
    width: 72px;
    height: 72px;
    font-size: 36px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  .app-stage {
    zoom: 0.5;
  }
}

/* ───────────────────────── Motion ───────────────────────── */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee-track {
    flex: 1;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 16px;
  }

  /* The looping duplicate exists only for the scroll; show each tag once. */
  .marquee-track .tag:nth-child(n + 11) {
    display: none;
  }
}
