/* accchat.com, in the app's Modern Indigo palette (decision 0041). Motion lives in
   motion.js, which only adds to these styles: every page reads fine without it. */
:root {
  --canvas: #f7f7fb;
  --surface: #ffffff;
  --sunken: #eae8fa;
  --text: #202236;
  --muted: #5f6378;
  --border: #e2e3eb;
  --accent: #5146b5;
  --accent-deep: #40378f;
  --on-accent: #ffffff;
  --apricot: #d7a477;
  --lavender: #ada5f2;
  --night: #0e0f1a;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #11121d;
    --surface: #191b2c;
    --sunken: #23253a;
    --text: #f7f7fb;
    --muted: #a3a6bd;
    --border: #383a51;
    --accent: #ada5f2;
    --accent-deep: #c9c3f7;
    --on-accent: #11121d;
  }
}

@view-transition {
  navigation: auto;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font:
    17px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-deep);
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 12px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header, with a reading-progress line that motion.js moves. */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
  view-transition-name: site-header;
  transition: box-shadow 0.3s;
}

header.site.scrolled {
  box-shadow: 0 10px 30px -20px rgba(32, 34, 54, 0.45);
}

header.site::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--accent), var(--lavender), var(--apricot));
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}

/* Links in the header and footer reach 44 pixels tall for a finger, with
   padding the margin takes back, so they look the same. */
.brand {
  display: flex;
  align-items: center;
  padding-block: 7px;
  margin-block: -7px;
}

/* The picture only picks the dark-mode logo; its image stays the flex item. */
.brand picture {
  display: contents;
}

.brand img {
  width: auto;
  height: 36px;
}

nav.site {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

nav.site a {
  position: relative;
  padding-block: 10px;
  margin-block: -10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

nav.site a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}

nav.site a:hover,
nav.site a[aria-current='page'] {
  color: var(--text);
}

nav.site a:hover::after,
nav.site a[aria-current='page']::after {
  transform: scaleX(1);
}

/* Buttons lean towards the pointer (motion.js sets --bx and --by). */
.button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  transform: translate(var(--bx, 0), var(--by, 0));
  transition:
    transform 0.25s var(--ease),
    background 0.25s,
    box-shadow 0.35s;
}

.button:hover {
  color: var(--on-accent);
  background: var(--accent-deep);
  box-shadow: 0 16px 36px -14px color-mix(in srgb, var(--accent) 80%, transparent);
}

.hero .button {
  background: var(--lavender);
  color: #11121d;
}

.hero .button:hover {
  background: #c9c3f7;
  color: #11121d;
  box-shadow: 0 18px 40px -12px rgba(173, 165, 242, 0.7);
}

.hero .button.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #f7f7fb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero .button.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.button.light {
  background: #ffffff;
  color: #40378f;
}

.button.light:hover {
  background: #f1efff;
  color: #40378f;
}

/* Hero: always night-time, whatever the theme. */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  color: #f7f7fb;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 15%, transparent 70%);
}

.glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  transform: translate3d(0, var(--glow-y, 0), 0);
}

.glow span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.glow span:nth-child(1) {
  width: 620px;
  height: 620px;
  top: -220px;
  right: -140px;
  background: #5146b5;
  opacity: 0.75;
  animation: drift-a 18s ease-in-out infinite alternate;
}

.glow span:nth-child(2) {
  width: 460px;
  height: 460px;
  bottom: -220px;
  left: -160px;
  background: #ada5f2;
  opacity: 0.32;
  animation: drift-b 22s ease-in-out infinite alternate;
}

.glow span:nth-child(3) {
  width: 320px;
  height: 320px;
  top: 34%;
  left: 42%;
  background: #d7a477;
  opacity: 0.2;
  animation: drift-c 26s ease-in-out infinite alternate;
}

/* The WebGL aurora (aurora.js), in place of the blurred glows when it runs. */
.hero canvas.aurora {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  animation: aurora-in 1.8s var(--ease) both;
}

.hero.aurora-on .glow {
  display: none;
}

/* "Talk freely." decrypts itself (motion.js): each letter shows scrambled code
   until it settles. The code sits over the letter, which keeps its width, so
   the line never shifts. */
.hero h1 .letter {
  position: relative;
}

.hero h1 .letter[data-glyph] {
  color: transparent;
}

.hero h1 .letter[data-glyph]::after {
  content: attr(data-glyph);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--lavender);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62em;
  font-weight: 500;
  letter-spacing: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 140px;
}

.hero-copy {
  opacity: var(--fade, 1);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(173, 165, 242, 0.12);
  box-shadow: inset 0 0 0 1px rgba(173, 165, 242, 0.28);
  color: #d9d5fb;
  font-size: 14px;
  font-weight: 600;
  animation: rise 0.9s var(--ease) 0.1s backwards;
}

/* Half the gap before the dot, a space's width after it. */
.eyebrow .more {
  margin-left: -4px;
}

.eyebrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.hero h1 {
  margin: 24px 0 20px;
  font-size: clamp(54px, 9vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

/* Each word slides up from behind a mask. */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0.04em 0.02em 0.1em;
  margin: -0.04em -0.02em -0.1em;
}

.word > span {
  display: inline-block;
  animation: word 1.1s var(--ease) 0.2s backwards;
}

.word + .word > span {
  animation-delay: 0.34s;
}

.hero h1 .sub {
  display: block;
  margin-top: 18px;
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  background: linear-gradient(90deg, #ada5f2, #ffffff 35%, #e7c09c 65%, #ada5f2);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    rise 0.9s var(--ease) 0.55s backwards,
    shimmer 9s linear 1.5s infinite;
}

.lede {
  max-width: 520px;
  margin: 0;
  color: #c4c6d8;
  font-size: 19px;
  animation: rise 0.9s var(--ease) 0.68s backwards;
}

.hero .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
  animation: rise 0.9s var(--ease) 0.8s backwards;
}

.hero .note {
  margin: 18px 0 0;
  color: #8f92aa;
  font-size: 15px;
  animation: rise 0.9s var(--ease) 0.92s backwards;
}

.hero-visual {
  position: relative;
  translate: 0 var(--lift, 0);
}

/* The phone tilts towards the pointer (--rx and --ry from motion.js). */
.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 300 / 620;
  margin: 0 auto;
  padding: 11px;
  border-radius: 50px;
  background: linear-gradient(150deg, #34364f, #0b0c14 55%, #23253a);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 60px 120px -30px rgba(81, 70, 181, 0.65),
    0 40px 80px -40px rgba(0, 0, 0, 0.9);
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  animation: phone-in 1.6s var(--ease) 0.25s backwards;
}

.phone::after {
  content: '';
  position: absolute;
  inset: 11px;
  border-radius: 39px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.14), transparent 32%);
  pointer-events: none;
}

.screen {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 39px;
  background: #11121d;
  color: #f7f7fb;
  font-size: 14px;
}

.island {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 92px;
  height: 26px;
  translate: -50% 0;
  border-radius: 20px;
  background: #000000;
}

.chat-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 46px 16px 12px;
  background: #191b2c;
  border-bottom: 1px solid #23253a;
}

.chevron {
  color: #ada5f2;
  font-size: 28px;
  line-height: 1;
}

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #5146b5;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.avatar.small {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

.avatar.group {
  background: #d7a477;
  color: #11121d;
}

.who {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.who b {
  font-size: 15px;
}

.who small {
  color: #a3a6bd;
  font-size: 12px;
}

.chat-top svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #ada5f2;
  stroke-width: 1.8;
}

.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 12px;
}

.system {
  align-self: center;
  margin: 0 0 auto;
  padding: 4px 10px;
  border-radius: 10px;
  background: #23253a;
  color: #a3a6bd;
  font-size: 11px;
}

.bubble {
  max-width: 80%;
  margin: 0;
  padding: 8px 12px;
  border-radius: 18px;
  line-height: 1.35;
}

.bubble.in {
  align-self: flex-start;
  background: #23253a;
  color: #f7f7fb;
  border-bottom-left-radius: 6px;
  transform-origin: 0 100%;
}

.bubble.out {
  align-self: flex-end;
  background: #332d73;
  color: #f7f7fb;
  border-bottom-right-radius: 6px;
  transform-origin: 100% 100%;
}

/* The chat writes itself on a 12-second loop. */
.m1 {
  animation: m1 12s var(--ease) 1.2s infinite backwards;
}

.m2 {
  animation: m2 12s var(--ease) 1.2s infinite backwards;
}

.m3 {
  animation: m3 12s var(--ease) 1.2s infinite backwards;
}

.m5 {
  animation: m5 12s var(--ease) 1.2s infinite backwards;
}

.slot {
  display: grid;
}

.slot > * {
  grid-area: 1 / 1;
}

.typing {
  justify-self: start;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 11px 12px;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  background: #23253a;
  opacity: 0;
  animation: m4 12s linear 1.2s infinite backwards;
}

.slot .bubble {
  justify-self: start;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a3a6bd;
  animation: dot 1s ease-in-out infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

.composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 10px 14px;
  padding: 6px 6px 6px 16px;
  border-radius: 22px;
  background: #191b2c;
  box-shadow: inset 0 0 0 1px #383a51;
  color: #6e7290;
  font-size: 13px;
}

.composer i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #5146b5;
}

.composer i::after {
  content: '';
  margin-left: 3px;
  border-left: 10px solid #ffffff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* Floating cards pop in, bob, and drift with the pointer (--px and --py). */
.float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(25, 27, 44, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 0 0 1px rgba(173, 165, 242, 0.24),
    0 24px 48px -16px rgba(0, 0, 0, 0.7);
  color: #f7f7fb;
  font-size: 13px;
  line-height: 1.25;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
}

.float b {
  display: block;
  font-size: 14px;
}

.float small {
  color: #a3a6bd;
}

.float.call {
  top: 38%;
  left: -12%;
  animation:
    pop 0.9s var(--spring) 1s backwards,
    bob 6s ease-in-out 2s infinite alternate;
}

.float.sealed {
  top: 21%;
  right: -10%;
  animation:
    pop 0.9s var(--spring) 1.25s backwards,
    bob 7s ease-in-out 2.4s infinite alternate-reverse;
}

.float.moment {
  bottom: 1%;
  left: -14%;
  animation:
    pop 0.9s var(--spring) 1.5s backwards,
    bob 8s ease-in-out 2.8s infinite alternate;
}

.float.sealed svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #ada5f2;
  stroke-width: 2;
}

.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}

.wave i {
  width: 3px;
  height: 100%;
  border-radius: 3px;
  background: #ada5f2;
  animation: wave 1.1s ease-in-out infinite;
}

.wave i:nth-child(2) {
  animation-delay: -0.2s;
}

.wave i:nth-child(3) {
  animation-delay: -0.45s;
}

.wave i:nth-child(4) {
  animation-delay: -0.1s;
}

.wave i:nth-child(5) {
  animation-delay: -0.6s;
}

.wave i:nth-child(6) {
  animation-delay: -0.35s;
}

.wave i:nth-child(7) {
  animation-delay: -0.8s;
}

.ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
}

.ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(#ada5f2, #d7a477, #5146b5, #ada5f2);
  animation: spin 4s linear infinite;
}

.ring .avatar {
  position: relative;
  box-shadow: 0 0 0 2px #191b2c;
}

/* Numbers that sit over the hero's lower edge. */
.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: -64px;
}

.stats > div,
.tile,
.stop {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}

.stats > div {
  padding: 28px;
  box-shadow:
    inset 0 0 0 1px var(--border),
    0 30px 60px -36px rgba(32, 34, 54, 0.45);
}

/* A soft light follows the pointer across cards (--mx and --my from motion.js). */
.stats > div::before,
.tile::before,
.stop::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, -30%),
    color-mix(in srgb, var(--accent) 16%, transparent),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.stats > div:hover::before,
.tile:hover::before,
.stop:hover::before {
  opacity: 1;
}

.stats strong {
  display: block;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--accent), var(--apricot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

/* Section headings. */
.section-head {
  max-width: 700px;
  margin: 0 auto 44px;
  text-align: center;
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

/* Sealed: a message goes in, unreadable code comes out. */
.private {
  padding-top: 128px;
  padding-bottom: 48px;
}

/* One message's journey (motion.js moves it as the page scrolls): sealed on
   your phone, carried by servers that can't open it, unsealed on Ayu's.
   Without motion it's a still diagram of the same three stops. */
.route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

/* The line it travels, filling as it goes (--p from motion.js). */
.route::before,
.route::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 16%;
  left: 16%;
  height: 2px;
  border-radius: 2px;
  background: var(--border);
}

.route::after {
  background: linear-gradient(90deg, var(--accent), var(--lavender), var(--apricot));
  transform: scaleX(var(--p, 1));
  transform-origin: left;
}

.stop {
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 200px;
  padding: 26px;
  transition:
    opacity 0.5s,
    transform 0.6s var(--ease),
    box-shadow 0.5s;
}

.stop-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stop .bubble {
  font-size: 19px;
  transition:
    opacity 0.4s,
    transform 0.6s var(--spring);
}

.stop .bubble.out {
  background: var(--accent);
  color: var(--on-accent);
}

.stop .bubble.in {
  background: var(--sunken);
  color: var(--text);
}

.stop-note {
  margin-top: auto;
  color: var(--muted);
  font-size: 15px;
}

.stop.server {
  background: var(--night);
  box-shadow: inset 0 0 0 1px #23253a;
}

.stop.server .stop-label,
.stop.server .stop-note {
  color: #8f92aa;
}

.cipher {
  margin: 0;
  color: #ada5f2;
  font:
    15px/1.75 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
}

.cipher span {
  display: block;
}

/* Moving, the stops wait their turn, and on screens with room the section
   holds still while the message crosses it. */
/* Only a stop's contents dim, so the line behind it never shows through. */
.journey.moving .stop {
  transform: scale(0.97);
}

.journey.moving .stop > * {
  opacity: 0.45;
  transition:
    opacity 0.5s,
    transform 0.6s var(--spring);
}

.journey.moving .stop.on > * {
  opacity: 1;
}

.journey.moving .stop.on {
  transform: none;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent),
    0 34px 70px -40px color-mix(in srgb, var(--accent) 80%, transparent);
}

.journey.moving.sent .sender .bubble {
  opacity: 0.3;
  transform: scale(0.92);
}

.journey.moving .receiver .bubble {
  opacity: 0;
  transform: translateY(10px) scale(0.94);
}

.journey.moving.arrived .receiver .bubble {
  opacity: 1;
  transform: none;
}

@media (min-width: 761px) and (min-height: 640px) {
  .journey.moving {
    height: 240vh;
  }

  .journey.moving .stage {
    position: sticky;
    top: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 64px);
  }
}

/* The sealed message in flight, between the stops' centres (--x, --y). */
.packet {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--night);
  color: #ada5f2;
  font:
    600 14px/1 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  white-space: nowrap;
  box-shadow:
    0 0 0 1px rgba(173, 165, 242, 0.45),
    0 12px 30px -8px rgba(81, 70, 181, 0.8),
    0 0 28px rgba(173, 165, 242, 0.35);
  opacity: 0;
  transform: translate(var(--x, 0), var(--y, 0)) translate(-50%, -50%);
  transition: opacity 0.3s;
  pointer-events: none;
}

.packet.flying {
  opacity: 1;
}

.packet svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Hello in the languages of the people ACC Chat is made for. */
.hello {
  overflow: hidden;
  margin-top: 72px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

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

.track ul {
  display: flex;
  gap: 64px;
  margin: 0;
  padding: 0 32px;
  list-style: none;
}

.track li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  white-space: nowrap;
}

.track b {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--accent), var(--lavender) 55%, var(--apricot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.track span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Features. */
.features {
  padding-top: 96px;
  padding-bottom: 104px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 220px;
  padding: 26px;
  transition:
    translate 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.tile:hover {
  translate: 0 -6px;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, var(--border)),
    0 34px 60px -34px color-mix(in srgb, var(--accent) 55%, transparent);
}

.tile.wide {
  grid-column: span 2;
}

.tile svg {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  padding: 9px;
  border-radius: 14px;
  background: var(--sunken);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    rotate 0.6s var(--spring),
    scale 0.6s var(--spring);
}

.tile:hover svg {
  rotate: -8deg;
  scale: 1.1;
}

.tile h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.tile p {
  margin: 0;
  color: var(--muted);
}

.wave.big {
  height: 48px;
  gap: 5px;
  margin-top: auto;
  padding-top: 18px;
}

.wave.big i {
  width: 5px;
  background: linear-gradient(var(--accent), var(--apricot));
}

.handle {
  align-self: flex-start;
  margin-top: auto;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--sunken);
  color: var(--accent);
  font:
    600 21px/1.4 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
}

.handle::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: currentColor;
  animation: caret 1s steps(1) infinite;
}

/* Close to home. */
.near {
  padding: 104px 0;
  background: var(--sunken);
}

.near-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.near .section-head {
  margin: 0;
  text-align: left;
}

.bars {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bars li {
  display: grid;
  grid-template-columns: 150px 1fr 74px;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}

.bars i {
  height: 12px;
  width: var(--w);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--apricot));
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}

.bars b {
  color: var(--accent);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.bars .kl {
  --w: 10%;
}

.bars .jkt {
  --w: 19%;
}

.bars .bkk {
  --w: 49%;
}

.bars .hcm {
  --w: 72%;
}

.bars .mnl {
  --w: 100%;
}

/* In the works: messages hop from phone to phone. */
.offline {
  position: relative;
  overflow: hidden;
  padding: 112px 0;
  background:
    radial-gradient(ellipse 60% 80% at 15% 50%, rgba(81, 70, 181, 0.55), transparent 70%),
    radial-gradient(ellipse 40% 60% at 90% 10%, rgba(215, 164, 119, 0.14), transparent 70%), var(--night);
  color: #f7f7fb;
}

.offline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.offline .section-head {
  margin: 0;
  text-align: left;
}

.offline .section-head p {
  color: #b9bbcf;
}

.offline .points {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  color: #b9bbcf;
  font-size: 17px;
  list-style: none;
}

.offline .points li {
  position: relative;
  padding-left: 22px;
}

/* Each point glows like the text travelling across the phones. */
.offline .points li::before {
  content: '';
  position: absolute;
  top: 0.6em;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e7c09c;
  box-shadow: 0 0 8px #d7a477;
}

.offline .points strong {
  color: #f7f7fb;
}

.offline .small {
  margin-top: 16px;
  color: #8f92aa;
  font-size: 15px;
}

.badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(215, 164, 119, 0.14);
  box-shadow: inset 0 0 0 1px rgba(215, 164, 119, 0.4);
  color: #ecc9a8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mesh svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.mesh .hop {
  fill: none;
  stroke: #ada5f2;
  stroke-width: 2;
  stroke-dasharray: 4 9;
  stroke-linecap: round;
  opacity: 0.65;
  animation: dash 1.3s linear infinite;
}

.mesh .device rect {
  fill: #191b2c;
  stroke: #ada5f2;
  stroke-width: 2;
}

.mesh .pulse circle {
  fill: none;
  stroke: #ada5f2;
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: ping 4s ease-out infinite;
}

.mesh .pulse circle:nth-child(2) {
  animation-delay: 1.9s;
}

.mesh .pulse circle:nth-child(3) {
  animation-delay: 3.6s;
}

.mesh .packet {
  fill: #e7c09c;
  filter: drop-shadow(0 0 6px #d7a477);
}

/* Closing call to action. */
.cta {
  padding-top: 104px;
  padding-bottom: 120px;
}

.cta-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 72px 28px;
  border-radius: 36px;
  background: linear-gradient(135deg, #5146b5, #40378f 55%, #2a2470);
  color: #ffffff;
  text-align: center;
}

.cta-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  top: -260px;
  right: -120px;
  border-radius: 50%;
  background: #ada5f2;
  opacity: 0.35;
  filter: blur(80px);
  animation: drift-b 16s ease-in-out infinite alternate;
}

.cta-card h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.cta-card p {
  margin: 0 0 30px;
  color: #d9d5fb;
  font-size: 19px;
}

/* Privacy, terms and support. */
.page {
  max-width: 780px;
  padding-top: 56px;
  padding-bottom: 80px;
}

.page h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  animation: rise 0.9s var(--ease) 0.05s backwards;
}

.page h2 {
  margin: 44px 0 8px;
  font-size: 23px;
  letter-spacing: -0.01em;
}

.page h3 {
  margin: 26px 0 4px;
  font-size: 18px;
}

.updated {
  margin: 0 0 28px;
  color: var(--muted);
  animation: rise 0.9s var(--ease) 0.15s backwards;
}

.summary {
  padding: 4px 26px 8px;
  border-radius: 20px;
  background: var(--sunken);
  animation: rise 0.9s var(--ease) 0.25s backwards;
}

.page li {
  margin: 6px 0;
}

.table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
}

/* Questions, answered (and given to search engines as structured data). */
.faq {
  padding-top: 96px;
  padding-bottom: 24px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  transition: box-shadow 0.35s;
}

.faq details[open] {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, var(--border));
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-radius: 20px;
  cursor: pointer;
  list-style: none;
}

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

.faq summary:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 3px;
}

.faq summary h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.faq summary::after {
  content: '';
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.4s var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.faq details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
}

/* Where the browser can animate to an automatic height, answers glide open. */
@supports (interpolate-size: allow-keywords) {
  .faq {
    interpolate-size: allow-keywords;
  }

  .faq details::details-content {
    height: 0;
    overflow: clip;
    transition:
      height 0.45s var(--ease),
      content-visibility 0.45s allow-discrete;
  }

  .faq details[open]::details-content {
    height: auto;
  }
}

/* The page signs off with the line it opened with, rising into view. */
footer.site .wordmark {
  margin: 0 0 16px;
  padding: 12px 20px 0;
  overflow: hidden;
  font-size: clamp(44px, 15vw, 210px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--accent), var(--lavender) 50%, var(--apricot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 35%, transparent 92%);
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    footer.site .wordmark {
      animation: wordmark linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }
}

footer.site {
  padding: 30px 0 44px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer.site a {
  padding-block: 13px;
  color: var(--muted);
}

/* motion.js holds back what's below the fold until it scrolls into view. */
.pending {
  opacity: 0;
}

/* Pages cross-fade and slide when you move between them. */
::view-transition-old(root) {
  animation: page-out 0.3s cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(root) {
  animation: page-in 0.55s var(--ease) both;
}

/* Sections out of view stop moving (motion.js), to spare the battery. */
.paused,
.paused * {
  animation-play-state: paused !important;
}

/* Tablets and phones. */
@media (max-width: 980px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .near-grid,
  .offline-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 64px;
    padding-top: 64px;
    text-align: center;
  }

  .lede {
    margin: 0 auto;
  }

  .hero .actions {
    justify-content: center;
  }

  .float.call {
    left: 2%;
  }

  .float.sealed {
    right: 2%;
  }

  .float.moment {
    left: 4%;
  }
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .route {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .route::before,
  .route::after {
    top: 8%;
    right: auto;
    bottom: 8%;
    left: 50%;
    width: 2px;
    height: auto;
  }

  .route::after {
    background: linear-gradient(180deg, var(--accent), var(--lavender), var(--apricot));
    transform: scaleY(var(--p, 1));
    transform-origin: top;
  }

  .stop {
    min-height: 0;
    gap: 10px;
    padding: 18px 20px;
  }
}

@media (max-width: 560px) {
  .hero-grid {
    padding-bottom: 112px;
  }

  .eyebrow .more {
    display: none;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .tile.wide {
    grid-column: auto;
  }

  .bars li {
    grid-template-columns: 112px 1fr 58px;
    font-size: 15px;
  }

  .phone {
    width: 270px;
  }

  .float {
    padding: 8px 12px;
    font-size: 12px;
  }

  .float.call {
    left: -3%;
  }

  .float.sealed {
    right: -3%;
  }

  .float.moment {
    display: none;
  }

  header.site .wrap {
    flex-wrap: nowrap;
  }

  .brand img {
    height: 30px;
  }

  nav.site {
    gap: 14px;
    flex-wrap: nowrap;
    font-size: 15px;
  }

  nav.site a[href='#questions'] {
    display: none;
  }
}

/* Narrow phones keep the brand and the pages, not the jump to Features. */
@media (max-width: 379px) {
  nav.site a[href='#features'] {
    display: none;
  }
}

/* People who ask for less motion get a still page. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .typing {
    display: none;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 28px;
  }
}

@keyframes word {
  from {
    translate: 0 112%;
  }
}

@keyframes phone-in {
  from {
    opacity: 0;
    transform: perspective(1400px) translateY(90px) rotateX(30deg) rotateY(-18deg) scale(0.9);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    scale: 0.55;
  }
}

@keyframes bob {
  to {
    translate: 0 -12px;
  }
}

@keyframes drift-a {
  to {
    transform: translate3d(-90px, 70px, 0) scale(1.18);
  }
}

@keyframes drift-b {
  to {
    transform: translate3d(110px, -60px, 0) scale(1.12);
  }
}

@keyframes drift-c {
  to {
    transform: translate3d(-140px, -40px, 0) scale(1.3);
  }
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

@keyframes m1 {
  0%,
  3% {
    opacity: 0;
    translate: 0 12px;
    scale: 0.9;
  }
  7%,
  90% {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
  95%,
  100% {
    opacity: 0;
  }
}

@keyframes m2 {
  0%,
  15% {
    opacity: 0;
    translate: 0 12px;
    scale: 0.9;
  }
  19%,
  90% {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
  95%,
  100% {
    opacity: 0;
  }
}

@keyframes m3 {
  0%,
  29% {
    opacity: 0;
    translate: 0 12px;
    scale: 0.9;
  }
  33%,
  90% {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
  95%,
  100% {
    opacity: 0;
  }
}

@keyframes m4 {
  0%,
  40% {
    opacity: 0;
  }
  42%,
  53% {
    opacity: 1;
  }
  55%,
  100% {
    opacity: 0;
  }
}

@keyframes m5 {
  0%,
  54% {
    opacity: 0;
    translate: 0 12px;
    scale: 0.9;
  }
  58%,
  90% {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
  95%,
  100% {
    opacity: 0;
  }
}

@keyframes dot {
  0%,
  60%,
  100% {
    translate: 0 0;
    opacity: 0.5;
  }
  30% {
    translate: 0 -4px;
    opacity: 1;
  }
}

@keyframes wave {
  0%,
  100% {
    scale: 1 0.3;
  }
  50% {
    scale: 1 1;
  }
}

@keyframes spin {
  to {
    rotate: 1turn;
  }
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

@keyframes dash {
  to {
    stroke-dashoffset: -26;
  }
}

@keyframes ping {
  0% {
    opacity: 0.9;
    scale: 0.4;
  }
  35%,
  100% {
    opacity: 0;
    scale: 2.8;
  }
}

@keyframes page-out {
  to {
    opacity: 0;
    translate: 0 -14px;
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}

@keyframes aurora-in {
  from {
    opacity: 0;
  }
}

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

@keyframes wordmark {
  from {
    opacity: 0;
    transform: translateY(45%) scale(0.94);
    letter-spacing: 0.02em;
  }
}
