/* The landing page only. The invite, rules, privacy and terms pages use style.css.
   Same tokens as design/screens and docs/DESIGN.md: flat white, bold colour only on small things. */
:root {
  --bg: #FFFFFF;
  --ink: #0B0B0D;
  --muted: #6E6E73;
  --surface: #F5F5F7;
  --line: #E8E8ED;
  --dot-off: #E5E5EA;
  --live: #FF3D8B;
  --you: #B8F23A;
  --orange: #FF7A1A;
  --blue: #2F6BFF;
  --gutter: 20px;
  --radius: 24px;
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Bricolage Grotesque', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  overflow-x: hidden;
}

a { color: var(--ink); }

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

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

i { font-style: normal; }

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

/* ---- type ---- */

h1 {
  font-size: clamp(42px, 9.5vw, 80px);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(32px, 6.5vw, 54px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h3 {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.lede {
  margin-top: 18px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.45;
  color: var(--muted);
  max-width: 34em;
}

.caption {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.quiet {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.quiet:hover { color: var(--ink); }

/* ---- small coloured things ---- */

.livedot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--live);
  flex-shrink: 0;
}

.livedot.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--live);
  opacity: 0;
  animation: ring 2.4s ease-out infinite;
}

@keyframes ring {
  0% { transform: scale(0.5); opacity: 0.8; }
  70%, 100% { transform: scale(1.4); opacity: 0; }
}

.d {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.d.sm { width: 14px; height: 14px; }
.d.av { width: 28px; height: 28px; }
.d.orange { background: var(--orange); }
.d.blue { background: var(--blue); }
.d.you { background: var(--you); }
.d.live { background: var(--live); }

.stack { display: inline-flex; }
.stack .d { border: 2.5px solid #FFFFFF; }
.stack .d + .d { margin-left: -8px; }

.sticker {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  color: #000000;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
  transform: rotate(var(--r, -5deg));
}

.sticker.pink { background: var(--live); }
.sticker.lime { background: var(--you); }
.sticker.orange { background: var(--orange); }
.sticker.tiny { font-size: 11px; padding: 1px 7px; border-radius: 8px; --r: -4deg; }
.sticker.inline { font-size: 14px; padding: 2px 10px; border-radius: 11px; margin: 0 2px; vertical-align: 2px; }
.sticker.inline.pink { --r: -4deg; }
.sticker.inline.lime { --r: 3deg; }
.sticker.inline.orange { --r: -2deg; }

/* ---- buttons ---- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 0 28px;
  border-radius: 29px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 150ms var(--ease-pop), opacity 150ms;
}

.pill:hover { transform: translateY(-1px); }
.pill:active { transform: scale(0.98); opacity: 0.85; }

.pill-small {
  height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
}

.pill:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---- header ---- */

.top { padding: 14px 0 0; }

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
}

.brand::after {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 6px;
  background: var(--live);
  transform: translateY(-7px);
}

.brand.small { font-size: 21px; }
.brand.small::after { width: 9px; height: 9px; transform: translateY(-6px); }

/* ---- sections ---- */

section { padding: 64px 0 0; }

.hero { padding-top: 40px; }

.hero-grid {
  display: grid;
  gap: 44px;
}

.hero-copy h1 { margin-top: 14px; }

/* ---- register your interest ---- */

.interest { margin-top: 28px; }

/* The header's "register your interest" jumps here; land the form a third of the way down, not flush with the top. */
#register { scroll-margin-top: 30vh; }

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

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field input {
  width: 100%;
  min-width: 0;
  height: 58px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 29px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  -webkit-appearance: none;
  appearance: none;
}

.field input::placeholder { color: var(--muted); }

.field input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.field .pill {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.field .pill:disabled { opacity: 0.6; cursor: default; }

.interest .status { margin-top: 12px; max-width: 30em; }

.done-sticker {
  display: none;
  margin-top: 16px;
  font-size: 14px;
  padding: 3px 10px;
  border-radius: 11px;
  --r: -4deg;
}

.interest.done .field { display: none; }

.interest.done .done-sticker {
  display: inline-block;
  animation: pop 400ms var(--ease-pop) both;
}

.interest.done .status {
  margin-top: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
}

@media (min-width: 480px) {
  .field { flex-direction: row; }
  .field input { flex: 1; }
}

/* ---- reveal on scroll (home.js adds .js, then .in as things come into view) ---- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

.js [data-reveal] .sticker:not(.pop):not(.done-sticker) {
  opacity: 0;
  transform: rotate(var(--r, -5deg)) scale(0.4);
  transition: transform 400ms var(--ease-pop), opacity 200ms ease;
  transition-delay: calc(var(--i, 0) * 70ms + 350ms);
}

.js [data-reveal].in .sticker:not(.pop):not(.done-sticker) {
  opacity: 1;
  transform: rotate(var(--r, -5deg)) scale(1);
}

/* ---- the phone ---- */

.hero-phone {
  display: flex;
  justify-content: center;
}

.phone {
  width: 330px;
  max-width: 100%;
  padding: 10px;
  border-radius: 48px;
  background: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(11, 11, 13, 0.45);
  transform: rotate(-2deg);
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 14px 14px;
  border-radius: 38px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  overflow: hidden;
}

.room-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 19px;
  background: var(--surface);
}

.room-title {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.room-title .t {
  font-size: 15px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.room-title .s {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}

.room-title .livedot { width: 7px; height: 7px; }

.screen .stack .d { width: 20px; height: 20px; }

.identity {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.identity b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-weight: 800;
}

/* The "backrow asks" card, on the phone and in the how-it-works cards. */
.asks-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
  background: var(--surface);
}

.asks {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.asks::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--live);
}

.asks-card .q {
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.opts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.opts li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 2px solid transparent;
  border-radius: 20px;
  background: var(--bg);
  font-size: 14px;
  font-weight: 500;
}

.opts li > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.opts .pct { font-weight: 700; color: var(--muted); }

.opts li.mine { border-color: var(--live); font-weight: 800; }
.opts li.mine .pct { color: var(--ink); }

.answers { font-size: 12px; color: var(--muted); }

.msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  animation: rise 400ms ease-out both;
}

.msg:nth-of-type(1) { animation-delay: 0.1s; }
.msg:nth-of-type(2) { animation-delay: 0.35s; }
.msg.me { animation-delay: 0.6s; justify-content: flex-end; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.msg-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.handle { font-size: 12px; font-weight: 700; }

.bubble-wrap {
  position: relative;
  max-width: 230px;
}

.bubble {
  display: block;
  max-width: 230px;
  padding: 9px 12px;
  border-radius: 5px 16px 16px 16px;
  background: var(--surface);
  font-size: 14px;
  line-height: 1.35;
}

.bubble.ink {
  border-radius: 16px 5px 16px 16px;
  background: var(--ink);
  color: #FFFFFF;
}

.bubble-wrap .sticker {
  position: absolute;
  right: -14px;
  bottom: -11px;
}

.sticker.pop {
  animation: pop 400ms var(--ease-pop) both;
  animation-delay: var(--delay, 0s);
}

@keyframes pop {
  from { opacity: 0; transform: rotate(var(--r, -5deg)) scale(0.4); }
  to { opacity: 1; transform: rotate(var(--r, -5deg)) scale(1); }
}

.composer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.input {
  display: flex;
  align-items: center;
  flex: 1;
  height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 22px;
  background: var(--live);
  color: #000000;
}

/* ---- cards ---- */

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

.card h3 { margin-top: 22px; }
.card p { margin-top: 10px; color: var(--muted); }

/* ---- how it works ---- */

.steps {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  counter-reset: step;
}

.steps > li { counter-increment: step; }

.steps h3::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border-radius: 13px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 13px;
  vertical-align: 3px;
}

.mini {
  min-height: 180px;
  padding: 16px;
  border-radius: 20px;
  background: var(--bg);
  font-size: 14px;
}

.mini.asks-card { background: var(--bg); }
.mini.asks-card .opts li { background: var(--surface); }

.mini.list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 16px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 64px;
}

.row + .row { border-top: 1px solid var(--line); }

.row > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rt {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.rs { font-size: 13px; color: var(--muted); }

.dots { display: inline-flex; gap: 4px; }

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--dot-off);
}

.dots i.on { background: var(--blue); }

.poof-wrap {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.poof {
  display: inline-flex;
  align-items: flex-end;
  gap: 5px;
  font-size: 72px;
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.poof .d { width: 15px; height: 15px; margin-bottom: 9px; }

.poof-wrap .sticker {
  position: absolute;
  font-size: 13px;
  padding: 3px 9px;
  border-radius: 11px;
}

.poof-wrap .sticker.pink { right: 28px; top: 36px; }
.poof-wrap .sticker.lime { right: 14px; bottom: 44px; }

/* ---- names ---- */

.names-grid {
  display: grid;
  gap: 28px;
}

.names p { margin-top: 18px; color: var(--muted); max-width: 32em; }
.names p + p { margin-top: 12px; }

.handles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}

.handles li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 700;
}

.handles .d { width: 16px; height: 16px; }

/* ---- moments ---- */

.titles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 10px;
  margin-top: 28px;
}

.titles li {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  box-shadow: 0 1px 0 var(--line);
  transform: rotate(var(--r, 0deg));
}

/* ---- privacy ---- */

.keep-grid {
  display: grid;
  gap: 24px;
}

.facts {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.facts li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--muted);
}

.facts .livedot { margin-top: 9px; }
.facts b { color: var(--ink); font-weight: 800; }

.keep-links { grid-column: 1 / -1; }

/* ---- the test ---- */

.test-card {
  padding: 32px 22px;
  text-align: center;
}

.test-card h2 { margin-top: 12px; }

.test-card p {
  margin: 14px auto 0;
  max-width: 34em;
  color: var(--muted);
}

.test-card .interest {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.test-card .interest .status { max-width: none; }

/* ---- footer ---- */

.foot-wrap {
  margin-top: 64px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
}

.foot-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.foot a:hover { color: var(--ink); }

/* ---- wider screens ---- */

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

  section { padding-top: 112px; }

  .hero { padding-top: 72px; }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 40px;
  }

  .hero-phone { justify-content: flex-end; }

  .phone { transform: rotate(-3deg) translateY(8px); }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
  }

  .names-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 56px;
  }

  .handles { gap: 10px; }
  .handles li { height: 48px; font-size: 16px; }

  .keep-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px 56px;
  }

  .keep-links { grid-column: 2; }

  .test-card { padding: 56px 32px; }

  .foot-wrap { margin-top: 112px; }

  .foot-row {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1000px) {
  .hero-grid { gap: 72px; }
  .phone { width: 360px; }
  .screen { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .livedot.pulse::after { animation: none; }
  .msg, .sticker.pop, .interest.done .done-sticker { animation: none; }
  .pill { transition: none; }
  .js [data-reveal], .js [data-reveal] .sticker { opacity: 1; transform: rotate(var(--r, 0deg)); transition: none; }
  .js [data-reveal] { transform: none; }
}

/* The narrowest phones: the header keeps the brand and the build button; the footer has the rules. */
@media (max-width: 419px) {
  .top-nav .quiet { display: none; }
}
