/* Plain CSS, in a file: the page's content security policy allows nothing inline and
   nothing from anywhere else, so Manrope is self-hosted and there is no icon set.
   The "A · Meet" brand values are tokens on :root so dark mode is one block.
   The navy bands (hero, privacy) stay navy in both schemes; the page between them flips. */
@font-face {
  font-family: "Manrope";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("fonts/manrope-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("fonts/manrope-latin-800-normal.woff2") format("woff2");
}

/* The app's own palette: the TextPA personality in apps/mobile/src/design-system/tokens/textpa.ts
   (lavender paper, navy ink, the pink accent with navy on it, the pink-violet-blue gradient,
   capsule controls, 30px cards). Change the two together. */
:root {
  --navy: #1e1c5b;
  --surface: #f7f6fc;
  --pink: #dc9ad6;
  --gradient: linear-gradient(135deg, #c0308a, #6f54dc 55%, #2f6fc0);
  --band-muted: #b3b5d8;
  --band-rule: #34336f;

  --bg: var(--surface);
  --card: #ffffff;
  --text: #213b81;
  --heading: var(--navy);
  --muted: #3f4469;
  --rule: #dcdbe8;
  --accent: var(--navy);
  --accent-fill: var(--pink);
  --on-accent: var(--navy);
  --bubble: #ffffff;
  --band: var(--navy);
  --ink-button-bg: var(--navy);
  --ink-button-text: #ffffff;
  --focus: #6f54dc;
  --shadow: 0 18px 40px -22px rgb(30 28 91 / 0.35);

  --radius-card: 30px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--navy);
    --card: #26247a;
    --text: var(--surface);
    --heading: var(--surface);
    --muted: var(--band-muted);
    --rule: var(--band-rule);
    --accent: #dc5bb6;
    --accent-fill: #dc5bb6;
    --bubble: #26247a;
    --band: #16144a;
    --ink-button-bg: #dc5bb6;
    --ink-button-text: var(--navy);
    --focus: #dc5bb6;
    --plus: url("images/plus-dark.svg");
    --shadow: 0 18px 40px -22px rgb(8 7 40 / 0.8);
  }
}

* {
  box-sizing: border-box;
}

:root {
  accent-color: var(--focus);
  caret-color: var(--focus);
  scrollbar-color: var(--rule) var(--bg);
}

::selection {
  background: var(--accent-fill);
  color: var(--on-accent);
}

.site-footer a,
.note a {
  text-decoration-color: var(--rule);
  text-underline-offset: 0.25em;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    500 1.0625rem/1.6 "Manrope",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  font-weight: 800;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

.wrap {
  width: min(100% - 2 * var(--gutter), 74rem);
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

/* Bands: navy in both schemes, so text on them is fixed light. */
.band h1,
.band h2,
.band h3 {
  color: var(--surface);
}

.band {
  background: var(--band);
  color: var(--surface);
}

.button {
  display: inline-block;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  background: var(--pink);
  color: var(--navy);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition:
    transform 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out);
}

.button:hover {
  background: #e6b3e1;
  transform: translateY(-1px);
}

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

.button-small {
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
}

.button-ink {
  background: var(--ink-button-bg);
  color: var(--ink-button-text);
}

.button-ink:hover {
  background: var(--ink-button-bg);
  filter: brightness(1.12);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.note {
  font-size: 0.92rem;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  gap: 1rem 2rem;
  padding-block: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  text-decoration: none;
}

.wordmark {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

nav {
  display: none;
  gap: 1.75rem;
  font-size: 0.95rem;
}

nav a {
  color: var(--band-muted);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover {
  color: #ffffff;
}

/* Hero */

.band-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

/* A faint dot grid across the hero band, fading out toward its edges. */
.band-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgb(247 246 252 / 0.26) 1.2px, transparent 2px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 85% 95% at 62% 45%, #000 15%, transparent 80%);
}

.hero {
  display: grid;
  gap: 3.5rem;
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(3.5rem, 8vw, 6rem);
}

.hero-copy {
  display: grid;
  gap: 1.5rem;
  max-width: 36rem;
}

.lede {
  max-width: 34rem;
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.5;
}

.band .lede,
.band .note {
  color: var(--band-muted);
}

.trust {
  color: var(--band-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero .actions {
  margin-top: 0.5rem;
}

/* The phone: an always-light iPhone screen, drawn in HTML so its text is real text. */

.phone {
  position: relative;
  justify-self: center;
  width: min(100%, 21rem);
  margin: 0;
  padding: 0.7rem;
  border-radius: 3.1rem;
  border: 1px solid var(--band-rule);
  background: #0d0c2e;
  box-shadow: 0 40px 80px -24px #07061c;
}

.screen {
  position: relative;
  min-height: 38rem;
  padding: 3.6rem 0.9rem 1.25rem;
  border-radius: 2.45rem;
  background: #ffffff;
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.4;
  overflow: hidden;
}

.screen::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: 50%;
  width: 6.5rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #0d0c2e;
  transform: translateX(-50%);
}

.status {
  position: absolute;
  top: 0.95rem;
  left: 1.6rem;
  right: 1.4rem;
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.msg-head {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  margin-top: 3.4rem;
  font-size: 0.75rem;
}

.avatar {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: #c9cbe0;
  color: #ffffff;
}

.thread-head {
  margin: 0.9rem 0 0.9rem;
  color: #4f5378;
  font-size: 0.75rem;
  text-align: center;
}

.thread {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.thread li {
  max-width: 82%;
  padding: 0.55rem 0.85rem;
  border-radius: 1.15rem;
  animation: bubble 0.55s var(--ease-out) both;
}

.thread .in {
  justify-self: start;
  border-bottom-left-radius: 0.35rem;
  background: #ececf4;
  transform-origin: bottom left;
}

.thread .out {
  justify-self: end;
  border-bottom-right-radius: 0.35rem;
  background: var(--gradient);
  color: #ffffff;
  transform-origin: bottom right;
}

.thread li:nth-child(1) {
  animation-delay: 0.3s;
}
.thread li:nth-child(2) {
  animation-delay: 1.1s;
}
.thread li:nth-child(3) {
  animation-delay: 2.1s;
}
.thread li:nth-child(4) {
  animation-delay: 2.8s;
}

.composer {
  position: absolute;
  bottom: 1.1rem;
  left: 0.9rem;
  right: 0.9rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid #dcdbe8;
  border-radius: 999px;
  color: #4f5378;
  font-size: 0.85rem;
}

.notice {
  position: absolute;
  top: 3rem;
  left: 0.6rem;
  right: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border-radius: 1.1rem;
  background: #f1f0f8;
  box-shadow:
    0 0 0 1px rgb(30 28 91 / 0.06),
    0 14px 30px -8px rgb(30 28 91 / 0.35);
  animation: notice 0.75s var(--ease-out) 3.7s both;
  z-index: 1;
}

.notice img {
  flex: none;
}

.notice p {
  display: grid;
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.3;
}

.notice-time {
  align-self: start;
  color: #4f5378;
  font-size: 0.72rem;
}

@keyframes bubble {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.92);
  }
}

@keyframes notice {
  from {
    opacity: 0;
    transform: translateY(-140%);
  }
}

/* How it works: a real sequence, marked by the clock rather than numbers. */

.timeline {
  display: grid;
  gap: 2.5rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.timeline > li {
  position: relative;
  align-content: start;
  display: grid;
  gap: 0.6rem;
  padding-left: 2rem;
}

.timeline > li::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--accent);
}

.timeline > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.75rem;
  bottom: -2rem;
  left: calc(0.375rem - 1px);
  width: 2px;
  background: var(--rule);
}

.timeline time {
  color: var(--accent);
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.timeline p,
.points p,
.split-head p,
.intro {
  color: var(--muted);
}

.timeline p {
  max-width: 22rem;
}

/* Two-column sections: heading left, content right. */

.split {
  display: grid;
  gap: 2.5rem;
}

.split-head {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.split-head p {
  max-width: 24rem;
}

.points {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.points li {
  display: grid;
  gap: 0.4rem 2rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--rule);
}

.points li:last-child {
  border-bottom: 1px solid var(--rule);
}

.split-head .intro {
  max-width: 26rem;
  font-size: 1.125rem;
}

/* App pieces: drawn like the iPhone app (white cards on lavender, capsule controls). */

.ui {
  margin: 0 0 1.25rem;
  padding: 1.1rem;
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow);
  list-style: none;
}

.ui p {
  margin: 0;
}

.timeline .ui {
  margin-bottom: 0.65rem;
}

.ui-text {
  display: grid;
  gap: 0.45rem;
}

.ui-bubble.ui-bubble-out {
  justify-self: end;
  border-bottom-left-radius: 1.15rem;
  border-bottom-right-radius: 0.35rem;
  background: var(--gradient);
  color: #ffffff;
}

.ui-bubble {
  justify-self: start;
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border-radius: 1.15rem;
  border-bottom-left-radius: 0.35rem;
  background: var(--bg);
  font-size: 0.95rem;
}

.ui-meta {
  margin-top: 0.6rem !important;
  color: var(--muted);
  font-size: 0.85rem;
}

.ui-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ui .ui-list,
.ui.ui-list {
  font-size: 0.95rem;
}

.ui.ui-list {
  padding: 1.1rem;
}

.ui-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ui-list li::before {
  content: "";
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid color-mix(in srgb, var(--muted) 60%, transparent);
  border-radius: 50%;
}

.ui-list li.done::before {
  border-color: transparent;
  background:
    url("images/check.svg") center / 0.7rem no-repeat,
    var(--gradient);
}

.ui-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--heading);
}

.ui-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem !important;
}

.pill {
  padding: 0.4rem 0.85rem;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
}

.pill-solid {
  border-color: transparent;
  background: var(--ink-button-bg);
  color: var(--ink-button-text);
}

.app-card {
  align-self: start;
  max-width: 28rem;
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow);
}

.app-card-title {
  margin-bottom: 1rem;
  color: var(--heading);
  font-size: 1.15rem;
  font-weight: 800;
}

.ui-list-large {
  gap: 0;
}

.ui-list-large li {
  padding-block: 0.85rem;
  border-top: 1px solid var(--rule);
}

.ui-list-large li::before {
  width: 1.4rem;
  height: 1.4rem;
}

.tag {
  margin-left: auto;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-fill);
  color: var(--on-accent);
  font-size: 0.75rem;
  font-weight: 800;
}

.add {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1.5px dashed var(--rule);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

/* Privacy band */

.band-privacy {
  padding-block: var(--section);
}

.privacy {
  display: grid;
  gap: 1.5rem;
}

.privacy h2 {
  max-width: 14ch;
  font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem;
  margin: 2rem 0 0.5rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--band-rule);
  list-style: none;
}

.facts li {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.facts p {
  color: var(--band-muted);
}

.text-link {
  color: #ffffff;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

/* Questions */

.faq details {
  border-top: 1px solid var(--rule);
}

.faq details:last-child {
  border-bottom: 1px solid var(--rule);
}

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.2rem;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 800;
  list-style: none;
}

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

summary::after {
  content: "";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background:
    var(--plus, url("images/plus.svg")) center / 0.8rem no-repeat,
    var(--card);
  transition: transform 0.3s var(--ease-out);
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  max-width: 40rem;
  padding-bottom: 1.3rem;
  color: var(--muted);
}

/* Closing */

.closing {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.closing h2 {
  font-size: clamp(2.4rem, 1.3rem + 4vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.closing > p {
  color: var(--muted);
  font-size: 1.15rem;
}

.pilot {
  display: grid;
  gap: 0.6rem;
  max-width: 36rem;
  margin: 0.5rem 0 0;
  padding-left: 1.4rem;
  color: var(--muted);
}

.pilot b {
  color: var(--heading);
}

.closing .actions {
  margin-top: 0.75rem;
}

.closing .note {
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a + a {
  margin-left: 1.25rem;
}

@media (min-width: 40rem) {
  nav {
    display: flex;
  }

  .timeline > li:not(:last-child)::after {
    bottom: -2rem;
  }
}

@media (min-width: 52rem) {
  .hero {
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
  }

  .timeline {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 2.5rem;
  }

  .timeline > li {
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0.6rem;
    padding-left: 0;
    padding-top: 2rem;
  }

  .timeline > li::before {
    top: 0;
  }

  .timeline > li:not(:last-child)::after {
    top: calc(0.375rem - 1px);
    bottom: auto;
    left: 1.5rem;
    right: -1.5rem;
    width: auto;
    height: 2px;
  }

  .split {
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
  }

  .split-head {
    position: sticky;
    top: 2rem;
  }

  .points li {
    grid-template-columns: 1fr 1.4fr;
  }
}

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

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