:root {
  color-scheme: light dark;
  --paper: #faf6ef;
  --ink: #1f1b16;
  --muted: #6f675d;
  --line: #e7dfd2;
  --sun: #f2622e;
  --gray: #e9e9eb;
  --gray-ink: #1f1b16;
  --blue: #0a84ff;
  --field: #ffffff;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* One type scale for the whole site. */
  --title: clamp(30px, 8vw, 48px);
  --body: 18px;
  --small: 14px;
  --fine: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16130f;
    --ink: #f4efe7;
    --muted: #a59c90;
    --line: #2e2922;
    --sun: #ff7a45;
    --gray: #2c2c2e;
    --gray-ink: #f4efe7;
    --field: #1f1b16;
  }
}

@media (min-width: 880px) {
  :root { --body: 21px; --small: 15px; }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--body)/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

a { color: inherit; text-decoration-color: var(--sun); text-underline-offset: 3px; }

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font: 700 26px/1 var(--rounded);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
}

h1 {
  font: 700 var(--title)/1.06 var(--rounded);
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 32px 0 18px;
}

.lede { margin: 0 0 14px; text-wrap: pretty; }
.lede:last-of-type { margin-bottom: 26px; }

/* An example's last word, its icon and the comma never split across lines. */
.keep { white-space: nowrap; }

/* On phones the signup comes right after the first paragraph, so it's above the fold; the
   examples and the friends line follow it. */
@media (max-width: 879px) {
  .pitch { display: flex; flex-direction: column; }
  .pitch .join { order: 1; margin-bottom: 26px; }
  .pitch .more { order: 2; }
  .pitch .lede:not(.more) { margin-bottom: 22px; }
  .home h1 { margin-top: 24px; }
}

/* Small hand-drawn icons after each example, like notes in a margin. */
.doodle {
  width: 1.1em;
  height: 1.1em;
  margin-left: 0.2em;
  vertical-align: -0.18em;
  fill: none;
  stroke: var(--sun);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The waitlist. */
form { display: flex; gap: 8px; flex-wrap: wrap; }
form[hidden] { display: none; }
input[type="tel"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field);
  color: var(--ink);
  font: 17px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
input[type="tel"]:focus { outline: 2px solid var(--sun); outline-offset: 1px; border-color: transparent; }
button {
  flex: 0 0 auto;
  padding: 14px 20px;
  border: 0;
  border-radius: 14px;
  background: var(--sun);
  color: #fff;
  font: 600 17px/1.2 var(--rounded);
  cursor: pointer;
}
button:disabled { opacity: 0.6; cursor: default; }
@media (max-width: 440px) {
  button { flex-basis: 100%; }
}
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.status { margin: 12px 0 0; }
.status:empty { display: none; }
.status.error { color: var(--sun); }
.invite { font-size: var(--small); color: var(--muted); margin: 12px 0 0; }
.consent { font-size: var(--fine); line-height: 1.45; color: var(--muted); margin: 4px 0 0; }

/* The example: an iPhone 18 Pro running Messages, built at true size in iOS points (1px = 1pt)
   and scaled down to fit with zoom. Measurements come from Apple's own renders. */
.device {
  --screen-bg: #ffffff;
  --fade: 255 255 255;
  --ink: #000000;
  --bubble-gray: #e9e9ea;
  --bubble-blue: #44b5fb;
  --label: #8e8e93;
  --placeholder: rgb(60 60 67 / 0.3);
  --glass: rgb(250 250 252 / 0.72);
  --glass-rim: rgb(0 0 0 / 0.12);
  --glass-light: rgb(255 255 255 / 0.9);
  --metal: linear-gradient(180deg, #d0d0d2, #c5c5c8 30%, #cbcbcd 55%, #bdbdc0);
  position: relative;
  width: 440px;
  height: 912px;
  margin: 44px auto 0;
  padding: 8px;
  border-radius: 81px;
  background: var(--metal);
  box-shadow:
    inset 0 0 0 1px #e9e9eb,
    0 40px 80px -50px rgb(31 27 22 / 0.45),
    0 12px 24px -18px rgb(31 27 22 / 0.25);
  zoom: 0.72;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  .device {
    --screen-bg: #000000;
    --fade: 0 0 0;
    --ink: #ffffff;
    --bubble-gray: #262628;
    --placeholder: rgb(235 235 245 / 0.3);
    --glass: rgb(44 44 46 / 0.72);
    --glass-rim: rgb(255 255 255 / 0.14);
    --glass-light: rgb(255 255 255 / 0.12);
  }
}

/* Buttons barely stand proud of the frame and share its finish. */
.button {
  position: absolute;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #b8b8bb, #dadadd);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6);
}
.button.action { left: -2px; top: 178px; height: 39px; }
.button.volume-up { left: -2px; top: 247px; height: 72px; }
.button.volume-down { left: -2px; top: 334px; height: 72px; }
.button.side { right: -2.5px; top: 290px; height: 115px; background: linear-gradient(270deg, #b8b8bb, #dadadd); }
/* Camera Control: flush sapphire, barely darker than the frame. */
.button.camera {
  right: 0;
  top: 580px;
  width: 2.5px;
  height: 72px;
  background: #b4b4b7;
  box-shadow: inset -0.5px 0 0 rgb(255 255 255 / 0.5);
}

.bezel {
  height: 100%;
  padding: 11px;
  border-radius: 73px;
  background: #000;
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.35);
}
.screen { position: relative; height: 100%; overflow: hidden; border-radius: 62px; background: var(--screen-bg); }
/* Plain radii on purpose: with corner-shape, Chrome repaints the corners square while the thread
   animates, and black squares show over the frame. */

/* Messages fade out as they scroll up toward the header. The fade is a mask on the list itself,
   not a wash over it: Chrome paints masked (tailed) bubbles above an overlay. */
.scroller {
  position: absolute;
  inset: 0;
  z-index: 0;
  -webkit-mask-image: linear-gradient(transparent 136px, #000 184px);
  mask-image: linear-gradient(transparent 136px, #000 184px);
  overflow-y: auto;
  padding: 170px 16px 92px;
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }

.screen::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(rgb(var(--fade) / 0), rgb(var(--fade) / 0.9) 50%);
}

.statusbar, .nav, .compose, .home-indicator { z-index: 2; }
.statusbar { position: absolute; inset: 0 0 auto; height: 54px; }
.nav { position: absolute; inset: 0 0 auto; height: 160px; }
.clock {
  position: absolute;
  left: 40px;
  top: 18px;
  width: 72px;
  text-align: center;
  font: 600 17px/22px -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}
.island {
  position: absolute;
  top: 12.5px;
  left: 50%;
  width: 108px;
  height: 34px;
  margin-left: -54px;
  border-radius: 17px;
  background: #000;
}
.indicators { position: absolute; right: 32px; top: 22.5px; display: flex; align-items: center; gap: 6px; }
.indicators svg { fill: currentColor; }
.signal { width: 19.5px; height: 12.5px; }
.wifi { width: 17px; height: 12.5px; }
.battery { width: 27.4px; height: 13px; }

/* Liquid Glass: translucent fill, a thin rim, a light top edge, a soft lift. */
.glass {
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(1.8);
  -webkit-backdrop-filter: blur(14px) saturate(1.8);
  box-shadow: inset 0 0 0 0.75px var(--glass-rim), inset 0 0.5px 0 var(--glass-light), 0 1px 6px rgb(0 0 0 / 0.06);
}
.nav .back {
  position: absolute;
  left: 16px;
  top: 59.5px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.nav .back svg { width: 10.5px; height: 18px; margin-left: -2px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.contact {
  position: absolute;
  top: 61px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff9b6e, #ee5d2b);
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.06);
  color: #fff;
  font: 600 26px/1 var(--rounded);
}
.name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: -1.5px;
  padding: 8px 12px 8px 17px;
  border-radius: 17px;
  font-size: 17px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: -0.2px;
}
.name svg { width: 6px; height: 11px; fill: none; stroke: #b0b0b4; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.compose { position: absolute; left: 27px; right: 27px; bottom: 30px; display: flex; align-items: center; gap: 10px; }
.compose .plus { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; }
.compose .plus svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.compose .field {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 41px;
  padding: 0 14px 0 16px;
  border-radius: 21px;
  font-size: 17px;
  letter-spacing: -0.43px;
  color: var(--placeholder);
}
.compose .field svg { width: 17px; height: 13px; fill: none; stroke: #b3b3b8; stroke-width: 1.3; stroke-linecap: round; }
.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 139px;
  height: 5px;
  margin-left: -69.5px;
  border-radius: 3px;
  background: var(--ink);
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chat li {
  position: relative;
  max-width: 72%;
  padding: 9.5px 14px;
  border-radius: 19px;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.43px;
  overflow-wrap: break-word;
}
.chat .them { align-self: flex-end; background: var(--bubble-blue); color: #fff; }
.chat .lou { align-self: flex-start; background: var(--bubble-gray); color: var(--ink); }
/* A new speaker gets a little more room. */
.chat .lou + .them, .chat .them + .lou { margin-top: 6px; }

/* The last bubble of a run gets a tight outer corner and a small tail hanging below it
   (iOS 26 style). A mask on the tail alone works in every engine; a 9-slice mask on the whole
   bubble rendered in pieces on iPhone. */
.chat .lou.tail { border-bottom-left-radius: 5px; }
.chat .them.tail { border-bottom-right-radius: 5px; }
.chat .tail::after {
  content: "";
  position: absolute;
  bottom: -7px;
  width: 17px;
  height: 8px;
  background: inherit;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 8'%3E%3Cpath d='M0 0H16C14.5 2.5 11.5 5.5 9 8C8 5 5 1.5 0 0Z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 8'%3E%3Cpath d='M0 0H16C14.5 2.5 11.5 5.5 9 8C8 5 5 1.5 0 0Z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.chat .lou.tail::after { left: 0; }
.chat .them.tail::after { right: 0; transform: scaleX(-1); }

.chat .time, .chat .receipt {
  max-width: none;
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.06px;
  color: var(--label);
}
.chat .time { align-self: center; margin: 18px 0 6px; }
.chat .time:first-child { margin-top: 0; }
.chat .time b { font-weight: 600; }
.chat .receipt { align-self: flex-end; margin: 4px 17px 0 0; font-weight: 600; }

.chat .typing { display: flex; gap: 5px; align-items: center; padding: 14px 16px; }
.chat .typing span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--label);
  animation: bounce 1.2s ease-in-out infinite;
}
.chat .typing span:nth-child(2) { animation-delay: 0.15s; }
.chat .typing span:nth-child(3) { animation-delay: 0.3s; }

/* Playing: messages arrive one by one and the screen scrolls with them, as in a live thread. */
.play .chat li:not(.shown) { display: none; }
.play .chat li.shown { animation: arrive 0.25s ease-out; }

@keyframes arrive {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes bounce {
  0%, 60%, 100% { opacity: 0.4; transform: none; }
  30% { opacity: 1; transform: translateY(-3px); }
}

footer {
  margin-top: 56px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

/* Home on wide screens: the pitch and waitlist on the left, the thread on the right. */
@media (min-width: 880px) {
  .page.home { max-width: 1080px; padding-top: 36px; }
  .home main {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 80px;
    align-items: center;
    min-height: calc(100vh - 200px);
  }
  .home h1 { margin-top: 0; font-size: 40px; }
  .home header { margin-bottom: 20px; }
  .home .device { margin: 0 auto; }
}

/* Privacy and terms. */
.doc { font-size: 18px; }
.doc h1 { --title: clamp(30px, 8vw, 40px); margin-top: 40px; }
.doc h2 { font: 700 20px/1.3 var(--rounded); margin: 32px 0 8px; }
.doc .updated { color: var(--muted); margin-top: -8px; }
.doc ul { padding-left: 20px; }
