/* The Noolka home page: the app's look on the web. White cards, one electric blue, heavy tight
   type, soft depth. Mobile first; the map, the phones and the demos grow with the screen. */
:root {
  --ink: #0e0e14;
  --secondary: #6b6b78;
  --tertiary: #8b8b98;
  --background: #f4f4f7;
  --surface: #ffffff;
  --fill: #ececf1;
  --line: rgba(14, 14, 20, 0.07);
  --blue: #2343ff;
  --blue-light: #3d5cff;
  --blue-deep: #1529da;
  --blue-night: #0b1595;
  --blue-soft: #e4e9ff;
  --cyan: #37d7ff;
  --lime: #c6f24e;
  --lime-soft: #e5f9af;
  --pink: #ff4fa8;
  --orange: #ff8a3d;
  --green: #2bd97c;
  --violet: #7b5cff;
  --shadow: 0 18px 50px rgba(18, 24, 80, 0.10), 0 2px 8px rgba(18, 24, 80, 0.05);
  --shadow-small: 0 8px 24px rgba(18, 24, 80, 0.09);
  --radius: 32px;
  --gutter: 16px;
  --max: 1200px;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --map-filter: none;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f4f4f8;
    --secondary: #a2a2b0;
    --tertiary: #8f8f9e;
    --background: #0b0b10;
    --surface: #17171f;
    --fill: #262631;
    --line: rgba(255, 255, 255, 0.08);
    --blue: #4d68ff;
    --blue-soft: #1f2858;
    --lime-soft: #2a2f1c;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-small: 0 8px 24px rgba(0, 0, 0, 0.35);
    --map-filter: invert(0.92) hue-rotate(180deg) saturate(0.75) brightness(0.95);
  }
}
:root[data-theme="dark"] {
  --ink: #f4f4f8;
  --secondary: #a2a2b0;
  --tertiary: #8f8f9e;
  --background: #0b0b10;
  --surface: #17171f;
  --fill: #262631;
  --line: rgba(255, 255, 255, 0.08);
  --blue: #4d68ff;
  --blue-soft: #1f2858;
  --lime-soft: #2a2f1c;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-small: 0 8px 24px rgba(0, 0, 0, 0.35);
  --map-filter: invert(0.92) hue-rotate(180deg) saturate(0.75) brightness(0.95);
}

@media (min-width: 720px) {
  :root { --gutter: 28px; }
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }
button { font: inherit; color: inherit; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

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

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

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}

.display {
  font-weight: 900;
  font-size: clamp(38px, 7.4vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin: 0;
  text-wrap: balance;
}

.lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  color: var(--secondary);
  margin: 18px 0 0;
  max-width: 36em;
  text-wrap: pretty;
}

.section { padding: clamp(72px, 11vw, 140px) 0 0; }
.section-head { max-width: 980px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s, background 0.2s;
  white-space: nowrap;
}
.button:active { transform: scale(0.96, 0.92); }
.button .icon { width: 20px; height: 20px; }
.button.white { background: #fff; color: var(--blue-deep); box-shadow: 0 14px 40px rgba(5, 10, 80, 0.28); }
.button.white:hover { transform: translateY(-2px); }
.button.glass { background: rgba(255, 255, 255, 0.16); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.button.glass:hover { background: rgba(255, 255, 255, 0.24); }
.button.blue { background: linear-gradient(180deg, var(--blue-light), var(--blue-deep)); color: #fff; box-shadow: 0 14px 34px rgba(35, 67, 255, 0.38); }
.button.blue:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(35, 67, 255, 0.45); }
.button.soft { background: var(--fill); color: var(--ink); }
.button[aria-disabled="true"] { cursor: default; }
.button.white[aria-disabled="true"] { opacity: 0.92; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }

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

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s, color 0.3s;
  color: #fff;
}
.top .wrap { display: flex; align-items: center; gap: 12px; height: 68px; }
.top.scrolled {
  background: color-mix(in srgb, var(--background) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}
/* The logo: the round n with its dot, then the wordmark (the sprite's #nulka). On the blue
   hero it's white with a lime dot; on light surfaces the n and the dot go blue. */
.logo {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  --logo-n: currentColor;
  --logo-dot: #c6f24e;
}
.logo svg { display: block; height: 27px; width: auto; aspect-ratio: 414.5 / 94; }
.top.scrolled .logo, .foot .logo { --logo-n: var(--blue); --logo-dot: var(--blue); }
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-theme="light"])) :is(.top.scrolled, .foot) .logo { --logo-dot: #c6f24e; }
}
.top nav { display: none; gap: 4px; margin-left: 18px; }
.top nav a {
  color: inherit;
  opacity: 0.8;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: opacity 0.2s, background 0.2s;
}
.top nav a:hover { opacity: 1; background: rgba(127, 127, 160, 0.14); }
.top .spacer { flex: 1; }
.top .lang {
  color: inherit;
  opacity: 0.8;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  padding: 8px 10px;
}
.top .lang:hover { opacity: 1; }
.top .button { min-height: 40px; padding: 0 16px; font-size: 15px; }
.top:not(.scrolled) .button.blue { background: #fff; color: var(--blue-deep); box-shadow: none; }
@media (min-width: 900px) {
  .top nav { display: flex; }
}
/* The store button would push the header off a phone screen; the hero has its own. */
@media (max-width: 540px) {
  .top .button { display: none; }
}

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

.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(60% 50% at 12% 18%, rgba(55, 215, 255, 0.55), transparent 70%),
    radial-gradient(50% 45% at 92% 60%, rgba(123, 92, 255, 0.75), transparent 70%),
    radial-gradient(40% 40% at 70% 108%, rgba(255, 79, 168, 0.45), transparent 70%),
    linear-gradient(165deg, #3d5cff 0%, #1f35e6 45%, #1220b8 75%, #0b1595 100%);
  border-radius: 0 0 clamp(36px, 6vw, 72px) clamp(36px, 6vw, 72px);
  padding: 112px 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  /* Fine grain, like the app's gradients. */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  z-index: -1;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero .eyebrow { color: rgba(255, 255, 255, 0.78); display: inline-flex; align-items: center; gap: 10px; }
.live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(198, 242, 78, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(198, 242, 78, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(198, 242, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 242, 78, 0); }
}
.hero h1 {
  font-weight: 900;
  font-size: clamp(52px, 11.5vw, 124px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 0;
  text-shadow: 0 5px 0 rgba(9, 18, 140, 0.3);
}
.hero h1 span { display: block; }
.hero .lead { color: rgba(255, 255, 255, 0.84); margin-top: 24px; }
.hero .buttons { margin-top: 32px; }
.promises {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin: 28px 0 0; padding: 0; list-style: none;
  font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, 0.82);
}
.promises li { display: inline-flex; align-items: center; gap: 7px; }
.promises .icon { width: 17px; height: 17px; color: var(--lime); }

.hero-stage {
  position: relative;
  height: 520px;
  margin: 0 calc(-1 * var(--gutter));
  display: flex;
  justify-content: center;
}
.hero-stage .phone {
  position: absolute;
  top: 10px;
  width: 286px;
  z-index: 2;
}
.float {
  position: absolute;
  z-index: 3;
  width: max-content;
  animation: bob 6s ease-in-out infinite;
  will-change: transform;
}
.float:nth-child(2n) { animation-duration: 7.5s; animation-delay: -2s; }
.float:nth-child(3n) { animation-duration: 8.5s; animation-delay: -4s; }
@keyframes bob {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--tilt, 0deg)); }
  50% { transform: translate3d(0, -12px, 0) rotate(var(--tilt, 0deg)); }
}
.bubble {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  box-shadow: 0 14px 34px rgba(5, 10, 80, 0.32);
  position: relative;
}
.bubble img { width: 100%; height: 100%; border-radius: 50%; }
.bubble.ring { padding: 4px; background: conic-gradient(from 210deg, var(--cyan), var(--blue-light), var(--violet), var(--pink), var(--orange), var(--lime), var(--cyan)); }
.bubble.ring img { box-shadow: 0 0 0 3px #fff; }
.bubble .badge {
  position: absolute;
  right: -4px; bottom: -2px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 0 0 3px #fff;
}
.bubble .badge .icon { width: 15px; height: 15px; }
.bubble.small { width: 56px; height: 56px; padding: 3px; }

.note {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #0e0e14;
  border-radius: 24px;
  padding: 10px 16px 10px 10px;
  box-shadow: 0 18px 44px rgba(5, 10, 80, 0.3);
  min-width: 0;
  backdrop-filter: blur(10px);
}
.note img { width: 44px; height: 44px; border-radius: 50%; }
.note strong { display: block; font-size: 15px; line-height: 1.2; }
.note span { display: block; font-size: 13px; color: #6b6b78; line-height: 1.3; }
.note .when { font-size: 12px; color: #8b8b98; align-self: flex-start; margin-left: 6px; }

.timer-pill {
  display: inline-flex; flex-direction: column;
  background: linear-gradient(180deg, var(--blue-light), var(--blue-deep));
  color: #fff;
  border-radius: 26px;
  padding: 10px 22px 12px;
  box-shadow: 0 16px 40px rgba(5, 10, 80, 0.4), inset 0 0 0 1.5px rgba(255, 255, 255, 0.25);
}
.timer-pill small { font-size: 13px; font-weight: 700; opacity: 0.85; display: flex; align-items: center; gap: 7px; }
.timer-pill small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.timer-pill b { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }

.hero-stage .f1 { top: 56px; left: 6px; --tilt: -6deg; }
.hero-stage .f2 { top: 228px; right: 4px; --tilt: 3deg; }
.hero-stage .f3 { top: 372px; left: 2px; }
.hero-stage .f4 { display: none; }
.hero-stage .f5 { top: 14px; right: 10px; }
.hero-stage .f6 { top: 452px; right: 10px; }
.hero-stage .note { max-width: 250px; }

@media (min-width: 720px) {
  .hero-stage { height: 600px; margin: 0; }
  .hero-stage .phone { width: 320px; }
  .hero-stage .f1 { left: calc(50% - 280px); top: 90px; }
  .hero-stage .f2 { left: calc(50% + 70px); right: auto; top: 236px; }
  .hero-stage .f3 { left: calc(50% - 300px); top: 400px; }
  .hero-stage .f4 { display: block; left: calc(50% - 250px); top: 262px; }
  .hero-stage .f5 { left: calc(50% + 130px); right: auto; top: 36px; }
  .hero-stage .f6 { left: calc(50% + 40px); right: auto; top: 500px; }
  .hero-stage .note { max-width: none; }
}
@media (min-width: 1040px) {
  .hero { padding-top: 132px; }
  .hero-grid { grid-template-columns: 1.3fr 1fr; gap: 8px; }
  .hero h1 { font-size: clamp(52px, 7.4vw, 106px); }
  .hero-stage { height: 680px; }
  .hero-stage .phone { width: 330px; top: 0; }
  .hero-stage .f1 { left: calc(50% - 235px); top: 64px; }
  .hero-stage .f2 { left: calc(50% + 30px); top: 216px; }
  .hero-stage .f3 { left: calc(50% - 262px); top: 352px; }
  .hero-stage .f4 { left: calc(50% - 222px); top: 228px; }
  .hero-stage .f5 { left: calc(50% + 112px); top: 24px; }
  .hero-stage .f6 { left: calc(50% + 10px); top: 530px; }
}

/* ---------- Phone ---------- */

/* The screenshots are 1206 × 2622 and already show the Dynamic Island. The bezel is 3.2 % of the
   phone's width on every side; the screen sits inside it with insets measured on the phone itself
   (padding would be measured on the parent and squeeze the picture). */
.phone {
  aspect-ratio: 1206 / 2531;
  border-radius: 15% / 7.2%;
  background: linear-gradient(145deg, #2b2d36, #0d0e12 40%, #24262e);
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.14) inset,
    0 40px 80px rgba(5, 10, 60, 0.35),
    0 12px 28px rgba(5, 10, 60, 0.25);
  position: relative;
}
.phone img {
  position: absolute;
  left: 3.2%;
  right: 3.2%;
  top: 1.525%;
  bottom: 1.525%;
  width: 93.6%;
  height: 96.95%;
  object-fit: cover;
  object-position: top;
  border-radius: 12.4% / 5.75%;
  background: #eef0f6;
}

/* ---------- Ticker ---------- */

.ticker {
  margin-top: clamp(40px, 6vw, 64px);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: ticker 48s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 18px 10px 10px;
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  box-shadow: var(--shadow-small);
}
.chip i {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-style: normal;
}
.chip i .icon { width: 17px; height: 17px; }

/* ---------- Live map ---------- */

.livemap {
  position: relative;
  border-radius: clamp(28px, 4vw, 44px);
  overflow: hidden;
  background: #f1f2f6;
  height: 620px;
  box-shadow: var(--shadow);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  isolation: isolate;
}
.livemap.dragging { cursor: grabbing; }
@media (min-width: 1040px) {
  .livemap { height: min(760px, 82vh); cursor: grab; }
}
@media (max-width: 599px) {
  .livemap { height: 480px; }
  /* Places show just their icon and count on a phone; the name is a tap away. */
  .place-pin { padding: 5px 9px 5px 5px; gap: 6px; }
  .place-pin span { display: none; }
  .livemap .map-chrome { top: auto; bottom: 34px; }
  .place-pin i { width: 30px; height: 30px; }
  .person-pin .bubble { width: 54px; height: 54px; }
  .group-pin .faces .bubble { width: 42px; height: 42px; }
}
.map-layer {
  position: absolute;
  left: 0; top: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.map-layer > img {
  width: 100%; height: 100%;
  filter: var(--map-filter);
  pointer-events: none;
}
.pin {
  position: absolute;
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  transition: left 1.6s cubic-bezier(0.45, 0, 0.25, 1), top 1.6s cubic-bezier(0.45, 0, 0.25, 1), opacity 0.45s, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}
.pin.hidden { opacity: 0; transform: translate(-50%, -50%) scale(0.4); pointer-events: none; }
.pin.walking { transition-duration: 1.2s, 1.2s, 0.45s, 0.45s; transition-timing-function: linear, linear, ease, ease; }
.pin.instant { transition-property: opacity, transform; }
.place-pin {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  box-shadow: var(--shadow-small);
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  z-index: 1;
}
.place-pin i {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(180deg, var(--blue-light), var(--blue-deep));
  color: #fff;
  display: grid; place-items: center;
  font-style: normal;
}
.place-pin i .icon { width: 18px; height: 18px; }
.place-pin b {
  min-width: 26px; height: 26px; border-radius: 13px;
  background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center;
  font-size: 14px;
  padding: 0 7px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.place-pin b.bump { transform: scale(1.3); }
.person-pin {
  display: flex; flex-direction: column; align-items: center;
  border: 0; background: none; padding: 0;
  cursor: pointer;
}
.person-pin .bubble { width: 62px; height: 62px; box-shadow: 0 10px 26px rgba(18, 24, 80, 0.25); }
.person-pin .bubble.me { background: var(--blue); }
.person-pin .bubble.me::after {
  content: "";
  position: absolute; inset: -14px;
  border-radius: 50%;
  background: rgba(35, 67, 255, 0.16);
  z-index: -1;
  animation: halo 2.6s ease-out infinite;
}
@keyframes halo {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}
.person-pin .name {
  margin-top: -6px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 3px 11px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: var(--shadow-small);
  position: relative;
  white-space: nowrap;
}
.person-pin .name.me { background: var(--blue); color: #fff; }
.person-pin .status {
  position: absolute;
  bottom: calc(100% - 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--background);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 12px;
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.person-pin .status .icon { width: 13px; height: 13px; }
.person-pin .status::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  border: 6px solid transparent;
  border-top-color: var(--ink);
  transform: translateX(-50%);
}
.group-pin { display: flex; flex-direction: column; align-items: center; gap: 0; }
.group-pin .faces { display: flex; }
.group-pin .faces .bubble { width: 50px; height: 50px; padding: 3px; margin-left: -14px; }
.group-pin .faces .bubble:first-child { margin-left: 0; }
.group-pin .place-pin { margin-top: -8px; }

.map-chrome {
  position: absolute;
  top: 16px; left: 16px; right: 16px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  pointer-events: none;
  z-index: 5;
}
.map-chrome .chip { box-shadow: var(--shadow-small); padding: 8px 14px 8px 8px; font-size: 14px; }
.map-chrome .chip i { width: 28px; height: 28px; }
.map-chrome .chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin: 0 3px 0 6px; }
.map-credit {
  position: absolute;
  right: 14px; bottom: 10px;
  font-size: 11px;
  color: var(--tertiary);
  z-index: 5;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  padding: 2px 8px;
  border-radius: 8px;
}
.map-credit a { color: inherit; }

.popover {
  position: absolute;
  z-index: 8;
  width: 280px;
  background: var(--surface);
  border-radius: 26px;
  padding: 16px;
  box-shadow: 0 24px 60px rgba(18, 24, 80, 0.25);
  transform-origin: 50% 100%;
  animation: pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop { from { opacity: 0; transform: scale(0.85) translateY(10px); } }
.popover header { display: flex; gap: 12px; align-items: center; }
.popover header img { width: 52px; height: 52px; border-radius: 50%; }
.popover header strong { font-size: 18px; font-weight: 900; letter-spacing: -0.02em; display: block; }
.popover header span { font-size: 14px; color: var(--secondary); }
.popover ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.popover li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; background: var(--background); border-radius: 14px; padding: 8px 10px; }
.popover li .icon { width: 17px; height: 17px; color: var(--blue); }
.popover .close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: var(--fill); cursor: pointer;
  display: grid; place-items: center;
}
.popover .close .icon { width: 14px; height: 14px; }

.map-panel {
  background: var(--surface);
  border-radius: 30px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-top: 16px;
}
@media (min-width: 1040px) {
  .map-wrap { position: relative; }
  .map-panel {
    position: absolute;
    top: 20px; bottom: 20px; left: 20px;
    width: 340px;
    margin: 0;
    z-index: 6;
    overflow-y: auto;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .livemap .map-chrome { left: auto; right: 16px; justify-content: flex-end; }
}
.map-panel h3 { font-size: 22px; font-weight: 900; letter-spacing: -0.03em; margin: 0 0 4px; }
.map-panel p { margin: 0; color: var(--secondary); font-size: 15px; }
.control { margin-top: 18px; }
.control label, .control .label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: 8px;
}
.control output { font-family: var(--display); font-size: 22px; font-weight: 900; letter-spacing: -0.02em; color: var(--ink); text-transform: none; font-variant-numeric: tabular-nums; }
.segmented {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--fill);
  border-radius: 999px;
  padding: 4px;
  position: relative;
}
.segmented button {
  border: 0; background: none; cursor: pointer;
  padding: 10px 8px;
  border-radius: 999px;
  font-weight: 800; font-size: 15px;
  position: relative; z-index: 1;
  transition: color 0.25s;
  color: var(--ink);
}
.segmented button[aria-pressed="true"] { color: #fff; }
.segmented .thumb {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue-light), var(--blue-deep));
  box-shadow: 0 6px 16px rgba(35, 67, 255, 0.35);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.segmented[data-value="1"] .thumb { transform: translateX(100%); }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%;
  height: 34px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 10px; border-radius: 5px;
  background: linear-gradient(90deg, #ffd56b 0%, #ffb36b 55%, #7b5cff 78%, #1b1f4d 100%);
}
input[type="range"]::-moz-range-track {
  height: 10px; border-radius: 5px;
  background: linear-gradient(90deg, #ffd56b 0%, #ffb36b 55%, #7b5cff 78%, #1b1f4d 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff;
  margin-top: -10px;
  box-shadow: 0 4px 14px rgba(18, 24, 80, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
}
input[type="range"]::-moz-range-thumb {
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 0;
  box-shadow: 0 4px 14px rgba(18, 24, 80, 0.3);
}
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--background);
  border-radius: 18px;
  padding: 12px 14px;
  font-weight: 700; font-size: 15px;
}
.switch-row span small { display: block; font-weight: 500; color: var(--secondary); font-size: 13px; }
.switch {
  width: 52px; height: 32px; border-radius: 16px;
  background: var(--fill);
  border: 0; position: relative; cursor: pointer; flex: none;
  transition: background 0.25s;
}
.switch::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.people { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; }
.people li {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 4px;
  font-size: 14px;
  transition: opacity 0.3s;
}
.people img { width: 34px; height: 34px; border-radius: 50%; flex: none; transition: filter 0.3s; }
.people strong { font-weight: 800; display: block; line-height: 1.2; }
.people span { color: var(--secondary); font-size: 13px; line-height: 1.25; display: block; }
.people li.off img { filter: grayscale(1); opacity: 0.55; }
.people li.off strong { color: var(--tertiary); }
.people li.off span { color: var(--pink); font-weight: 600; }

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

.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .span-4 { grid-column: 1 / -1; }
}
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .bento .span-4 { grid-column: span 4; }
  .bento .span-3 { grid-column: span 3; }
  .bento .span-2 { grid-column: span 2; }
}
.tile {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
  padding: 28px;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex; flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile h3 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; margin: 0 0 10px; }
.tile p { margin: 0; color: var(--secondary); font-size: 16px; max-width: 30em; }
.tile .eyebrow { margin-bottom: 10px; }
.tile.blue { background: linear-gradient(160deg, var(--blue-light), var(--blue-deep) 70%); color: #fff; }
.tile.blue p { color: rgba(255, 255, 255, 0.8); }
.tile.blue .eyebrow { color: rgba(255, 255, 255, 0.7); }
.tile.ink { background: #0e0e14; color: #fff; }
.tile.ink p { color: rgba(255, 255, 255, 0.7); }
.tile.ink .eyebrow { color: var(--lime); }
.tile.lime { background: var(--lime-soft); }

.crowd {
  margin-top: auto;
  padding-top: 26px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.crowd img {
  width: 64px; height: 64px; border-radius: 50%;
  box-shadow: 0 0 0 4px var(--surface), var(--shadow-small);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.crowd img:hover { transform: translateY(-6px) rotate(-6deg) scale(1.08); }
.modes { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.modes span {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--fill);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800; font-size: 14px;
}
.modes span.on { background: linear-gradient(180deg, var(--blue-light), var(--blue-deep)); color: #fff; }
.modes .icon { width: 15px; height: 15px; }

.tile-avatar { display: grid; gap: 20px; }
@media (min-width: 720px) {
  .tile-avatar { grid-template-columns: 1fr 220px; align-items: end; }
}
.tile-phone {
  width: 210px;
  margin: 24px auto -120px;
  transform: rotate(4deg);
}
.tile-avatar .tile-phone { margin: 0 auto -110px; }
@media (min-width: 720px) {
  .tile-avatar .tile-phone { margin-bottom: -130px; }
}
.tile .tile-phone + * { position: relative; }

.statuses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }
.status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--background);
  padding: 9px 14px 9px 10px;
  border-radius: 16px;
  font-weight: 700; font-size: 14px;
  animation: drift 7s ease-in-out infinite;
}
.status-chip:nth-child(2n) { animation-delay: -2s; }
.status-chip:nth-child(3n) { animation-delay: -4s; }
@keyframes drift { 50% { transform: translateY(-4px); } }
.status-chip i {
  width: 26px; height: 26px; border-radius: 9px;
  display: grid; place-items: center;
  color: #fff; font-style: normal;
}
.status-chip i .icon { width: 14px; height: 14px; }

.tile .timer-pill { margin-top: auto; align-self: flex-start; }
.tile .timer-pill b { font-size: 34px; }
.widget-row { display: flex; gap: 12px; margin-top: auto; padding-top: 22px; align-items: flex-end; flex-wrap: wrap; }
.widget {
  width: 132px; height: 132px; border-radius: 30px;
  background: rgba(8, 12, 60, 0.45);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-small);
}
.widget small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; opacity: 0.6; }
.widget b { font-size: 26px; font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.widget span { font-size: 12px; font-weight: 700; color: var(--lime); }

.rooms-block { margin-top: auto; padding-top: 18px; }
.rooms-label { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tertiary); margin: 12px 0 8px; }
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.room {
  background: var(--background);
  border-radius: 18px;
  padding: 12px;
  min-height: 82px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.room small { font-weight: 800; font-size: 13px; }
.room .faces { display: flex; }
.room .faces img { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 2px var(--background); margin-left: -8px; }
.room .faces img:first-child { margin-left: 0; }
.room.busy { background: var(--blue-soft); }
.room.busy small { color: var(--blue); }

/* ---------- Events ---------- */

.events {
  margin-top: clamp(72px, 11vw, 140px);
  background:
    radial-gradient(50% 60% at 85% 10%, rgba(123, 92, 255, 0.55), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(31, 183, 111, 0.35), transparent 70%),
    linear-gradient(170deg, #121428, #0b0b14 60%);
  color: #fff;
  border-radius: clamp(36px, 6vw, 72px);
  padding: clamp(64px, 9vw, 120px) 0;
  overflow: hidden;
}
.events .eyebrow { color: var(--lime); }
.events .lead { color: rgba(255, 255, 255, 0.72); }
.fan {
  position: relative;
  height: 520px;
  margin: 40px auto 0;
  max-width: 760px;
}
.fan .phone { position: absolute; width: 230px; top: 0; left: 50%; }
.fan .phone:nth-child(1) { transform: translateX(-140%) rotate(-8deg) translateY(40px); z-index: 1; }
.fan .phone:nth-child(2) { transform: translateX(-50%); z-index: 3; }
.fan .phone:nth-child(3) { transform: translateX(40%) rotate(8deg) translateY(40px); z-index: 2; }
@media (max-width: 719px) {
  .fan { height: 430px; }
  .fan .phone { width: 190px; }
  .fan .phone:nth-child(1) { transform: translateX(-118%) rotate(-8deg) translateY(36px); }
  .fan .phone:nth-child(3) { transform: translateX(18%) rotate(8deg) translateY(36px); }
}
.event-features {
  display: grid; gap: 14px;
  margin-top: 56px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .event-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .event-features { grid-template-columns: repeat(4, 1fr); } }
.event-features div {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 26px;
  padding: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.event-features i {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 14px;
  font-style: normal;
}
.event-features i .icon { width: 22px; height: 22px; }
.event-features h3 { margin: 0 0 6px; font-size: 19px; font-weight: 900; letter-spacing: -0.02em; }
.event-features p { margin: 0; color: rgba(255, 255, 255, 0.66); font-size: 15px; }

/* The purse demo */
.purse {
  margin-top: 56px;
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 1040px) { .purse { grid-template-columns: 1fr 1fr; gap: 24px; } }
.purse-card {
  background: #fff;
  color: #0e0e14;
  border-radius: 34px;
  padding: 24px;
}
.purse-card h3 { margin: 0 0 4px; font-size: 24px; font-weight: 900; letter-spacing: -0.03em; }
.purse-card > p { margin: 0 0 16px; color: #6b6b78; font-size: 15px; }
.expenses { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.expense {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  border: 0; cursor: pointer;
  text-align: left;
  background: #f4f4f7;
  border-radius: 20px;
  padding: 10px 14px 10px 10px;
  transition: opacity 0.25s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #0e0e14;
}
.expense:active { transform: scale(0.98); }
.expense[aria-pressed="false"] { opacity: 0.45; }
.expense[aria-pressed="false"] .amount { text-decoration: line-through; }
.expense i {
  width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center; color: #fff; flex: none;
  font-style: normal;
}
.expense i .icon { width: 20px; height: 20px; }
.expense .what { flex: 1; min-width: 0; }
.expense .what strong { display: block; font-size: 16px; font-weight: 800; }
.expense .what small { color: #6b6b78; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.expense .what small img { width: 18px; height: 18px; border-radius: 50%; }
.expense .amount { font-weight: 900; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.expense .check {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center; flex: none;
  transition: background 0.2s;
}
.expense .check .icon { width: 14px; height: 14px; }
.expense[aria-pressed="false"] .check { background: #d9d9e2; }
.purse-total { display: flex; justify-content: space-between; margin-top: 14px; padding: 0 6px; font-weight: 800; color: #6b6b78; font-size: 15px; }
.purse-total b { color: #0e0e14; font-variant-numeric: tabular-nums; }
.balances { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.balances li { display: grid; grid-template-columns: 34px 1fr 1.1fr auto; gap: 10px; align-items: center; font-weight: 800; font-size: 15px; }
.balances img { width: 34px; height: 34px; border-radius: 50%; }
.bar { height: 12px; position: relative; }
.bar::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1.5px; background: #e2e2ea; }
.bar span {
  position: absolute; top: 0; bottom: 0;
  border-radius: 6px;
  transition: width 0.6s cubic-bezier(0.34, 1.3, 0.64, 1), left 0.6s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.balances .value { font-variant-numeric: tabular-nums; text-align: right; min-width: 104px; }
.plus { color: #1aa860; }
.minus { color: #e8338e; }
.transfers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.transfer {
  display: flex; align-items: center; gap: 10px;
  background: #f4f4f7;
  border-radius: 20px;
  padding: 10px 12px;
  animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.transfer img { width: 38px; height: 38px; border-radius: 50%; }
.transfer .arrow { color: #8b8b98; width: 18px; height: 18px; }
.transfer .who { flex: 1; font-weight: 700; font-size: 14px; color: #6b6b78; line-height: 1.2; }
.transfer .who b { display: block; color: #0e0e14; font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.transfer .qr {
  width: 40px; height: 40px; border-radius: 13px;
  background: linear-gradient(180deg, var(--blue-light), var(--blue-deep));
  color: #fff; display: grid; place-items: center;
}
.transfer .qr .icon { width: 20px; height: 20px; }
.settled {
  text-align: center;
  padding: 18px;
  border-radius: 20px;
  background: #e6faef;
  color: #1aa860;
  font-weight: 900;
}
.purse-summary { margin: 14px 0 0; color: #6b6b78; font-size: 15px; font-weight: 600; }

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

.rule {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
  padding: clamp(24px, 4vw, 44px);
  font-size: clamp(22px, 3.4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.35;
}
.rule .token {
  display: inline-flex; align-items: center; gap: 0.3em;
  padding: 0.02em 0.4em 0.06em;
  border-radius: 0.5em;
  margin: 0 0.04em;
  white-space: nowrap;
  border: 0;
  font: inherit;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rule .token:hover { transform: translateY(-2px) rotate(-1deg); }
.rule .token:active { transform: scale(0.95); }
.rule .token .icon { width: 0.7em; height: 0.7em; }
/* On a phone a long token wraps like the words around it instead of sticking out. */
@media (max-width: 599px) {
  .rule .token { display: inline; white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
}
.token.who { background: var(--blue-soft); color: var(--blue); }
.token.what { background: #ffe1f0; color: #d1307f; }
.token.where { background: #dff6e9; color: #12884c; }
.token.when { background: #ece6ff; color: #6a4cf0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .token.what { background: #3d1a2d; color: #ff7fbf; }
  :root:not([data-theme="light"]) .token.where { background: #133324; color: #5fe0a0; }
  :root:not([data-theme="light"]) .token.when { background: #251d4a; color: #a996ff; }
}
.rule-hint { margin: 16px 0 0; font-size: 15px; color: var(--secondary); font-weight: 600; letter-spacing: 0; line-height: 1.5; }

.promise-grid { display: grid; gap: 16px; margin-top: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .promise-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .promise-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.promise {
  background: var(--surface);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--shadow-small);
}
.promise i {
  width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center; color: #fff;
  margin-bottom: 16px; font-style: normal;
}
.promise i .icon { width: 24px; height: 24px; }
.promise h3 { margin: 0 0 6px; font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }
.promise p { margin: 0; color: var(--secondary); font-size: 15px; }

/* ---------- Teams ---------- */

.teams { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .teams { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.team {
  border-radius: 32px;
  padding: 28px;
  min-height: 320px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  color: #fff;
}
.team h3 { font-size: 28px; font-weight: 900; letter-spacing: -0.035em; margin: 0 0 8px; line-height: 1.05; }
.team p { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 16px; }
.team ul { list-style: none; padding: 0; margin: auto 0 0; padding-top: 22px; display: grid; gap: 8px; }
.team li { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 15px; }
.team li .icon { width: 18px; height: 18px; flex: none; }
.team .big-icon {
  position: absolute; right: -36px; bottom: -36px;
  width: 190px; height: 190px;
  opacity: 0.13;
}
.team > :not(.big-icon) { position: relative; }
.team.a { background: linear-gradient(160deg, var(--blue-light), var(--blue-deep)); }
.team.b { background: linear-gradient(160deg, #8b6bff, #5b37e8); }
.team.c { background: linear-gradient(160deg, #ff6bb5, #ff8a3d); }

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

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow-small);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon {
  width: 30px; height: 30px; flex: none;
  padding: 8px;
  border-radius: 50%;
  background: var(--fill);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
}
.faq details[open] summary .icon { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--secondary); }

/* ---------- Final call ---------- */

.final {
  margin-top: clamp(72px, 11vw, 140px);
  background:
    radial-gradient(50% 70% at 10% 0%, rgba(55, 215, 255, 0.5), transparent 70%),
    radial-gradient(50% 70% at 100% 100%, rgba(255, 79, 168, 0.4), transparent 70%),
    linear-gradient(160deg, var(--blue-light), var(--blue-deep) 60%, var(--blue-night));
  border-radius: clamp(36px, 6vw, 64px);
  color: #fff;
  text-align: center;
  padding: clamp(56px, 8vw, 100px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.final .display { font-size: clamp(40px, 7vw, 84px); }
.final .lead { color: rgba(255, 255, 255, 0.82); margin-left: auto; margin-right: auto; }
.final .buttons { justify-content: center; margin-top: 32px; }
.final .crowd { justify-content: center; padding: 0; margin: 0 auto 30px; max-width: 560px; }
.final .crowd img { width: 58px; height: 58px; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.95), 0 10px 26px rgba(5, 10, 80, 0.3); }

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

.foot {
  padding: 64px 0 48px;
  color: var(--secondary);
  font-size: 14px;
}
.foot-grid { display: grid; gap: 28px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .foot-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
  .foot-grid > div:first-child { grid-column: auto; }
}
.foot .logo { color: var(--ink); }
.foot p { margin: 10px 0 0; max-width: 28em; }
.foot h4 { margin: 0 0 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tertiary); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--ink); text-decoration: none; font-weight: 700; }
.foot a:hover { color: var(--blue); }
.foot .legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--tertiary); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot .legal a { color: inherit; font-weight: 600; text-decoration: underline; }

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

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.shown { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 599px) {
  .crowd { gap: 8px; }
  .crowd img { width: 44px; height: 44px; box-shadow: 0 0 0 3px var(--surface), var(--shadow-small); }
  .final .crowd { gap: 0; }
  .final .crowd img { width: 46px; height: 46px; margin-left: -8px; }
  .final .crowd img:first-child { margin-left: 0; }
  .tile { padding: 24px; }
}

@media (max-width: 719px) {
  /* Icon beside the words on a phone, so the lists stay short. */
  .event-features div, .promise {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 14px;
    padding: 18px;
  }
  .event-features i, .promise i { grid-row: span 2; margin: 0; width: 44px; height: 44px; border-radius: 14px; }
  .promise i .icon { width: 22px; height: 22px; }
  .event-features h3, .promise h3 { font-size: 17px; margin: 0 0 2px; align-self: end; }
  .event-features p, .promise p { font-size: 14.5px; }
}

@media (max-width: 599px) {
  .purse-card { padding: 20px 16px; border-radius: 28px; }
  .expense { gap: 10px; padding: 10px 12px 10px 10px; }
  .expense .check { display: none; }
  .expense i { width: 36px; height: 36px; border-radius: 12px; }
  .expense .what strong { font-size: 15px; line-height: 1.25; }
  .expense .amount { font-size: 15px; }
  .balances li { grid-template-columns: 30px 1fr 0.9fr auto; gap: 8px; font-size: 14px; }
  .balances img { width: 30px; height: 30px; }
  .balances .value { min-width: 0; }
  .transfer .who b { font-size: 16px; }
}

/* The status tile: the team, each with what they're doing. */
.live-list { list-style: none; margin: auto 0 0; padding: 22px 0 0; display: grid; gap: 8px; }
.live-list li {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  background: var(--background);
  border-radius: 18px;
  padding: 7px 8px 7px 7px;
  font-size: 15px;
}
.live-list img { width: 38px; height: 38px; border-radius: 50%; }
.live-list strong { font-weight: 800; }
.live-list .status-chip { background: var(--surface); padding: 6px 11px 6px 7px; font-size: 13px; border-radius: 13px; animation: none; }
.live-list .status-chip i { width: 22px; height: 22px; border-radius: 7px; }
.live-list .status-chip i .icon { width: 12px; height: 12px; }

/* The time tile: the running timer, big, and the week so far. */
.timer-big {
  margin-top: 22px;
  border-radius: 26px;
  padding: 16px 20px 18px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.18);
}
.timer-big small { font-size: 14px; font-weight: 700; opacity: 0.85; display: flex; align-items: center; gap: 8px; }
.timer-big small::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(198, 242, 78, 0.25); }
.timer-big b { display: block; font-size: clamp(44px, 5vw, 58px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.week { margin-top: auto; padding-top: 22px; }
.week-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.week-head span { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.week-head b { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }
.week-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; height: 130px; align-items: end; }
.week-bars span {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px;
  height: 100%;
  font-family: var(--mono); font-size: 11px; font-weight: 700; opacity: 0.75;
}
.week-bars i {
  width: 100%;
  height: calc(var(--h) * 100%);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.28);
  transform-origin: bottom;
  transition: transform 0.9s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.reveal:not(.shown) .week-bars i { transform: scaleY(0.1); }
.week-bars .today { opacity: 1; }
.week-bars .today i { background: var(--lime); box-shadow: 0 0 24px rgba(198, 242, 78, 0.5); }

/* ---------- Places ---------- */

.places-grid { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1040px) {
  /* Side by side, the place's card and the map end on the same line: the map takes up the rest. */
  .places-grid { grid-template-columns: 480px 1fr; gap: 28px; align-items: stretch; }
  .places-grid > .place-card { display: flex; flex-direction: column; }
  .places-grid .place-card .place-panel { flex: 1; }
  .places-grid > .place-side { display: flex; flex-direction: column; }
  .places-grid .place-side .geo { flex: 1; height: auto; min-height: 240px; }
}
.place-card {
  background: var(--surface);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.place-hero {
  background:
    radial-gradient(70% 90% at 90% 0%, rgba(55, 215, 255, 0.45), transparent 70%),
    linear-gradient(160deg, var(--blue-light), var(--blue-deep));
  color: #fff;
  padding: 22px 22px 18px;
}
.place-top { display: flex; align-items: center; justify-content: space-between; }
.place-icon {
  width: 48px; height: 48px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  display: grid; place-items: center;
}
.place-icon .icon { width: 24px; height: 24px; }
.place-kind {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 6px 11px;
}
.place-hero h3 { font-size: 34px; font-weight: 900; letter-spacing: -0.04em; margin: 16px 0 2px; }
.place-hero p { margin: 0; opacity: 0.8; font-weight: 600; font-size: 15px; }
.place-actions { display: flex; gap: 8px; margin-top: 16px; }
.place-actions span {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 10px 6px;
  font-weight: 800; font-size: 13px;
}
.place-actions .icon { width: 20px; height: 20px; }
.place-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 14px 14px 0;
  background: var(--fill);
  border-radius: 999px;
  padding: 4px;
}
.place-tabs button {
  border: 0; background: none; cursor: pointer;
  border-radius: 999px;
  padding: 10px 6px;
  font-weight: 800; font-size: 14px;
  color: var(--secondary);
  transition: background 0.25s, color 0.25s;
}
.place-tabs button[aria-selected="true"] { background: var(--ink); color: var(--background); }
.place-panel { padding: 14px; min-height: 380px; }
.place-panel .label {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--tertiary); margin: 6px 4px 10px; display: flex; justify-content: space-between;
}
.here { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.here li {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center;
  background: var(--background); border-radius: 20px; padding: 8px 12px 8px 8px;
  animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.here img { width: 44px; height: 44px; border-radius: 50%; }
.here strong { display: block; font-weight: 800; }
.here small { color: var(--secondary); font-size: 13px; font-weight: 600; }
.room-chip {
  font-size: 12px; font-weight: 800;
  background: var(--blue-soft); color: var(--blue);
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.floor { margin-bottom: 14px; }
.floor-rooms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.room-card {
  border: 0; cursor: pointer; text-align: left;
  background: var(--background); color: var(--ink);
  border-radius: 20px; padding: 12px;
  min-height: 104px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s;
}
.room-card:hover { transform: translateY(-2px); }
.room-card:active { transform: scale(0.97); }
.room-card strong { font-size: 14px; font-weight: 800; }
.room-card .faces { display: flex; min-height: 30px; }
.room-card .faces img { width: 30px; height: 30px; border-radius: 50%; margin-left: -8px; box-shadow: 0 0 0 2px var(--background); }
.room-card .faces img:first-child { margin-left: 0; }
.room-card .cta { font-size: 12px; font-weight: 800; color: var(--blue); }
.room-card.mine { background: var(--blue-soft); }
.room-card.mine .faces img { box-shadow: 0 0 0 2px var(--blue-soft); }
.week-plan { display: grid; gap: 8px; }
.plan-day {
  display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center;
  background: var(--background); border-radius: 20px; padding: 10px 10px 10px 14px;
}
.plan-day b { font-size: 15px; font-weight: 900; }
.plan-day b small { display: block; font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--tertiary); letter-spacing: 0.08em; }
.plan-day .faces { display: flex; align-items: center; }
.plan-day .faces img { width: 30px; height: 30px; border-radius: 50%; margin-left: -8px; box-shadow: 0 0 0 2px var(--background); }
.plan-day .faces img:first-child { margin-left: 0; }
.plan-day .faces img.me { box-shadow: 0 0 0 2px var(--blue); animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.plan-day .faces em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--tertiary); margin-left: 6px; }
.plan-toggle {
  border: 0; cursor: pointer;
  min-width: 108px;
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 800; font-size: 13px;
  background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background 0.25s, color 0.25s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.plan-toggle:active { transform: scale(0.94); }
.plan-toggle.on { background: linear-gradient(180deg, var(--blue-light), var(--blue-deep)); color: #fff; box-shadow: 0 6px 16px rgba(35, 67, 255, 0.3); }
.place-note { margin: 12px 4px 0; font-size: 13px; color: var(--secondary); font-weight: 600; }

.place-side { display: grid; gap: 20px; }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.kinds span {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 14px 7px 7px;
  font-weight: 800; font-size: 14px;
  box-shadow: var(--shadow-small);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.kinds span:hover { transform: translateY(-3px) rotate(-2deg); }
.kinds i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; }
.kinds i .icon { width: 15px; height: 15px; }
.place-features { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .place-features { grid-template-columns: repeat(2, 1fr); } }
.place-features > div {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  background: var(--surface); border-radius: 24px; padding: 18px;
  box-shadow: var(--shadow-small);
}
.place-features i { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-style: normal; }
.place-features i .icon { width: 22px; height: 22px; }
.place-features h3 { margin: 0 0 4px; font-size: 18px; font-weight: 900; letter-spacing: -0.02em; }
.place-features p { margin: 0; color: var(--secondary); font-size: 14.5px; }

/* ---------- Sharing ---------- */

.share-grid { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1040px) {
  /* Side by side, the switches and the preview are always the same height. */
  .share-grid { grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: stretch; }
  .share-table { display: flex; flex-direction: column; }
  .share-table .share-row { flex: 1; }
  .share-preview { position: static; display: flex; flex-direction: column; }
  .share-preview .share-card { flex: 1; }
}
.share-table {
  background: var(--surface);
  border-radius: 32px;
  box-shadow: var(--shadow-small);
  padding: 10px 14px 14px;
}
.share-head, .share-row { display: grid; grid-template-columns: 1fr 64px 64px; align-items: center; gap: 8px; }
.share-head { padding: 10px 6px 8px; }
.share-head span { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tertiary); text-align: center; }
.share-row {
  grid-template-columns: 40px 1fr 64px 64px;
  padding: 10px 6px;
  border-top: 1px solid var(--line);
}
.share-head { grid-template-columns: 1fr 64px 64px; }
.share-row i { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-style: normal; }
.share-row i .icon { width: 20px; height: 20px; }
.share-row strong { display: block; font-weight: 800; font-size: 16px; }
.share-row small { color: var(--secondary); font-size: 13px; font-weight: 600; }
.share-row .switch { justify-self: center; }
.share-row .switch[aria-checked="true"] { background: var(--blue); }
.share-preview {
  display: grid; gap: 12px;
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(123, 92, 255, 0.35), transparent 70%),
    linear-gradient(165deg, #171a3a, #0e0e18);
  color: #fff;
  border-radius: 32px;
  padding: 18px;
  position: sticky; top: 88px;
}
.share-preview .segmented { background: rgba(255, 255, 255, 0.1); }
.share-preview .segmented button { color: #fff; }
.share-preview .segmented.light .thumb { background: #fff; box-shadow: none; }
.share-preview .segmented.light button[aria-pressed="true"] { color: #0e0e14; }
.share-card {
  background: #fff; color: #0e0e14;
  border-radius: 26px;
  padding: 18px;
  min-height: 300px;
}
.share-card header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.share-card header img { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 8px 20px rgba(18, 24, 80, 0.2); }
.share-card header strong { font-size: 22px; font-weight: 900; letter-spacing: -0.03em; display: block; }
.share-card header span { color: #6b6b78; font-size: 14px; font-weight: 600; }
.share-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.share-card li {
  display: flex; align-items: center; gap: 10px;
  background: #f4f4f7; border-radius: 16px; padding: 10px 12px;
  font-weight: 700; font-size: 15px;
  animation: pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.share-card li i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-style: normal; flex: none; }
.share-card li i .icon { width: 16px; height: 16px; }
.share-card .nothing {
  display: grid; place-items: center; text-align: center; gap: 10px;
  min-height: 200px; color: #6b6b78; font-weight: 700;
}
.share-card .nothing .icon { width: 44px; height: 44px; color: #8b8b98; }
.share-rules { display: grid; gap: 8px; }
.share-rules .switch-row { background: rgba(255, 255, 255, 0.08); color: #fff; }
.share-rules .switch-row small { color: rgba(255, 255, 255, 0.6); }
.share-rules .switch { background: rgba(255, 255, 255, 0.2); }
.share-rules .switch[aria-checked="true"] { background: var(--lime); }

/* ---------- Chat ---------- */

.chat-grid { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1040px) {
  /* Side by side, the chat is as tall as everything next to it; new messages scroll inside. */
  .chat-grid { grid-template-columns: 440px 1fr; gap: 32px; align-items: stretch; }
  .chat-grid > .chat-window { height: auto; min-height: 680px; }
  .chat-grid .chat-log { contain: size; }
}
.chat-window {
  background: #f4f4f7;
  color: #0e0e14;
  border-radius: 40px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(14, 14, 20, 0.05);
  overflow: hidden;
  display: flex; flex-direction: column;
  height: 680px;
  position: relative;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chat-window { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
}
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(14, 14, 20, 0.06);
  z-index: 2;
}
.chat-group { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(160deg, #8b6bff, #5b37e8); color: #fff; display: grid; place-items: center; }
.chat-group .icon { width: 22px; height: 22px; }
.chat-head strong { display: block; font-size: 17px; font-weight: 900; letter-spacing: -0.02em; }
.chat-head small { color: #8b8b98; font-size: 13px; font-weight: 600; }
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex; flex-direction: column; gap: 4px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.chat-log::-webkit-scrollbar { display: none; }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; animation: msgIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(14px) scale(0.92); } }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg .who { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.msg .who.blank { visibility: hidden; }
.msg .stack { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.msg.mine .stack { align-items: flex-end; }
.msg .name { font-size: 12px; font-weight: 700; color: #8b8b98; margin: 8px 0 0 12px; }
.bubble-text {
  background: #fff;
  border-radius: 22px;
  padding: 10px 14px;
  font-size: 15.5px;
  line-height: 1.35;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.msg.mine .bubble-text { background: linear-gradient(180deg, var(--blue-light), var(--blue-deep)); color: #fff; }
.reaction {
  position: absolute;
  right: -8px; bottom: -12px;
  height: 24px; min-width: 24px;
  padding: 0 7px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900; letter-spacing: 0.02em;
  animation: pop 0.4s cubic-bezier(0.34, 1.8, 0.64, 1) both;
}
.reaction .icon { width: 13px; height: 13px; }
.has-reaction { margin-bottom: 10px; }
.quote {
  border-left: 3px solid var(--blue);
  padding: 2px 0 2px 8px;
  margin-bottom: 6px;
  font-size: 13px; color: #6b6b78;
}
.quote b { display: block; color: #0e0e14; font-size: 12px; }
.location-card { background: #fff; border-radius: 22px; overflow: hidden; width: 240px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.location-card .mini-map {
  height: 120px;
  background: url(/img/praha.svg) no-repeat;
  background-size: 1400px auto;
  background-position: -680px -350px;
  position: relative;
}
.location-card .mini-map::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px #fff, 0 0 0 12px rgba(35, 67, 255, 0.18);
}
.location-card div:last-child { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.location-card .icon { width: 20px; height: 20px; color: var(--blue); }
.location-card strong { display: block; font-size: 14px; }
.location-card small { color: #8b8b98; font-size: 12px; }
.voice {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 22px; padding: 8px 14px 8px 8px;
  width: 230px;
}
.voice button {
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--blue-light), var(--blue-deep)); color: #fff;
  display: grid; place-items: center; flex: none;
}
.voice button .icon { width: 14px; height: 14px; }
.wave-bars { display: flex; align-items: center; gap: 2px; flex: 1; height: 28px; }
.wave-bars span { flex: 1; border-radius: 2px; background: #c9cfe8; height: calc(var(--l) * 100%); transition: background 0.2s; }
.wave-bars span.played { background: var(--blue); }
.voice small { font-size: 12px; font-weight: 700; color: #8b8b98; font-variant-numeric: tabular-nums; }
.poll { background: #fff; border-radius: 22px; padding: 14px; width: 260px; }
.poll strong { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 10px; }
.poll strong .icon { width: 18px; height: 18px; color: var(--violet); }
.poll button {
  display: block; width: 100%;
  border: 0; cursor: pointer; text-align: left;
  position: relative; overflow: hidden;
  background: #f4f4f7; color: #0e0e14;
  border-radius: 14px;
  padding: 10px 12px;
  margin-top: 6px;
  font-weight: 700; font-size: 14px;
}
.poll button .fill { position: absolute; inset: 0 auto 0 0; background: #e4e0ff; transition: width 0.6s cubic-bezier(0.34, 1.3, 0.64, 1); }
.poll button.voted .fill { background: #cfc4ff; }
.poll button span { position: relative; display: flex; justify-content: space-between; }
.poll small { display: block; margin-top: 8px; font-size: 12px; color: #8b8b98; font-weight: 600; }
.sticker {
  position: relative;
  width: 132px; height: 140px;
  transform: rotate(calc(var(--tilt) * 0.4deg));
  animation: stickerIn 0.55s cubic-bezier(0.34, 1.7, 0.64, 1) both;
}
@keyframes stickerIn { from { opacity: 0; transform: scale(0.3) rotate(-20deg); } }
.sticker .disc { position: absolute; inset: 0 0 8px; border-radius: 50%; background: var(--tint-soft); }
.sticker img { position: absolute; left: 14px; top: 14px; width: 104px; height: 104px; border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 6px 14px rgba(0, 0, 0, 0.18); }
.sticker .badge {
  position: absolute; right: 2px; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--tint); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 0 0 3px #fff;
  font-weight: 900;
}
.sticker .badge .icon { width: 18px; height: 18px; }
.sticker .caption {
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%) rotate(calc(var(--tilt) * -1deg));
  background: var(--tint); color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 900; font-size: 17px; letter-spacing: -0.02em;
  white-space: nowrap;
  box-shadow: 0 0 0 3px #fff;
}
.wave-msg { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; border-radius: 22px; padding: 12px 18px; }
.wave-msg .icon { width: 44px; height: 44px; color: var(--orange); animation: waving 1s ease-in-out 2; transform-origin: 70% 90%; }
@keyframes waving { 25% { transform: rotate(-16deg); } 75% { transform: rotate(14deg); } }
.wave-msg small { font-weight: 800; color: #8b8b98; font-size: 13px; }
.typing { display: flex; align-items: center; gap: 8px; animation: msgIn 0.3s ease both; }
.typing img { width: 30px; height: 30px; border-radius: 50%; }
.typing span { background: #fff; border-radius: 18px; padding: 12px 14px; display: flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #b5b8c8; animation: dot 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 30% { transform: translateY(-4px); background: #8b8b98; } }
.sticker-tray {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 10px 14px 6px;
  scrollbar-width: none;
  border-top: 1px solid rgba(14, 14, 20, 0.06);
  background: #fff;
}
.sticker-tray::-webkit-scrollbar { display: none; }
.sticker-tray button {
  flex: none;
  width: 58px; height: 58px; border-radius: 50%;
  border: 0; cursor: pointer; padding: 0;
  background: var(--tint-soft);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sticker-tray button:hover { transform: translateY(-3px) rotate(-6deg); }
.sticker-tray button:active { transform: scale(0.88); }
.sticker-tray img { width: 46px; height: 46px; border-radius: 50%; margin: 6px; }
.sticker-tray b {
  position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
  background: var(--tint); color: #fff; font-size: 8.5px; font-weight: 900;
  border-radius: 999px; padding: 1px 5px; white-space: nowrap;
}
.composer { display: flex; align-items: center; gap: 10px; padding: 8px 14px 16px; background: #fff; }
.composer-plus { width: 40px; height: 40px; border-radius: 50%; background: #ececf1; display: grid; place-items: center; flex: none; }
.composer-plus .icon { width: 18px; height: 18px; }
.composer-field { flex: 1; background: #e5f9af; border-radius: 999px; padding: 10px 16px; color: #8b8b98; font-weight: 600; }
.wave-button {
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--blue-light), var(--blue-deep)); color: #fff;
  display: grid; place-items: center; flex: none;
  box-shadow: 0 8px 20px rgba(35, 67, 255, 0.35);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wave-button:active { transform: scale(0.88) rotate(-12deg); }
.wave-button .icon { width: 22px; height: 22px; }
.chat-side { display: grid; gap: 16px; }
.chat-hint {
  display: flex; align-items: center; gap: 10px;
  margin: 0;
  background: var(--lime-soft);
  border-radius: 18px;
  padding: 12px 16px;
  font-weight: 700; font-size: 15px;
}
.chat-hint .icon { width: 20px; height: 20px; color: var(--blue); flex: none; }
.chat-features { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .chat-features { grid-template-columns: repeat(2, 1fr); } }
.chat-features > div { background: var(--surface); border-radius: 24px; padding: 18px; box-shadow: var(--shadow-small); }
.chat-features i { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-style: normal; margin-bottom: 10px; }
.chat-features i .icon { width: 20px; height: 20px; }
.chat-features h3 { margin: 0 0 4px; font-size: 17px; font-weight: 900; letter-spacing: -0.02em; }
.chat-features p { margin: 0; color: var(--secondary); font-size: 14.5px; }
.chat-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-kinds span {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink); color: var(--background);
  border-radius: 999px; padding: 9px 14px;
  font-weight: 800; font-size: 14px;
}
.chat-kinds .icon { width: 16px; height: 16px; }

@media (max-width: 599px) {
  .chat-window { height: 600px; border-radius: 32px; }
  .place-hero h3 { font-size: 30px; }
  .share-row { grid-template-columns: 36px 1fr 56px 56px; }
  .share-head { grid-template-columns: 1fr 56px 56px; }
  .share-row i { width: 36px; height: 36px; }
  .share-row .switch { width: 46px; height: 28px; }
  .share-row .switch::after { width: 22px; height: 22px; }
  .share-row .switch[aria-checked="true"]::after { transform: translateX(18px); }
  .share-preview { position: static; }
}
.poll em { font-style: normal; font-size: 12px; color: #6b6b78; font-weight: 700; }

/* The place's circle: someone walks in and the arrival writes itself. */
.geo {
  position: relative;
  height: 240px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-small);
}
.geo-map {
  position: absolute; inset: 0;
  background: #f1f2f6 url(/img/praha.svg) no-repeat;
  background-size: 1500px auto;
  background-position: -760px -330px;
  filter: var(--map-filter);
}
.geo-ring {
  position: absolute; left: 50%; top: 50%;
  width: 170px; height: 170px; margin: -85px 0 0 -85px;
  border-radius: 50%;
  background: rgba(35, 67, 255, 0.12);
  border: 2.5px dashed rgba(35, 67, 255, 0.6);
  display: grid; place-items: center;
  animation: ringPulse 6s ease-in-out infinite;
}
@keyframes ringPulse { 45%, 60% { background: rgba(35, 67, 255, 0.22); } }
.geo-pin {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(180deg, var(--blue-light), var(--blue-deep));
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(35, 67, 255, 0.4);
}
.geo-pin .icon { width: 22px; height: 22px; }
.geo-walker {
  position: absolute; left: 6%; top: 62%;
  width: 52px; height: 52px; border-radius: 50%;
  box-shadow: 0 0 0 3px #fff, 0 8px 18px rgba(18, 24, 80, 0.3);
  animation: walkIn 6s ease-in-out infinite;
}
@keyframes walkIn {
  0% { left: 4%; top: 66%; opacity: 0; }
  8% { opacity: 1; }
  45% { left: calc(50% - 58px); top: calc(50% - 10px); }
  85% { left: calc(50% - 58px); top: calc(50% - 10px); opacity: 1; }
  100% { left: calc(50% - 58px); top: calc(50% - 10px); opacity: 0; }
}
.geo-note {
  position: absolute; right: 14px; top: 14px;
  animation: noteIn 6s ease-in-out infinite;
}
@keyframes noteIn {
  0%, 44% { opacity: 0; transform: translateY(-10px) scale(0.92); }
  50%, 88% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-6px); }
}
