/* flintmail.app: the Flint Mail waitlist.
   Built on the landing-page-design system: Tailwind's type scale, a fixed spacing set, Tailwind
   radii with the nested formula, flat backgrounds, one base motion curve. Flint Mail keeps its own
   type (Inter, Inter Tight) and its red. */
:root {
  /* Spacing: only these. */
  --s-1: 2px; --s-2: 4px; --s-3: 8px; --s-4: 12px; --s-5: 16px; --s-6: 24px;
  --s-7: 32px; --s-8: 40px; --s-9: 48px; --s-10: 64px; --s-11: 80px; --s-12: 96px;

  --bg: #ffffff;
  --surface: #f5f5f4;
  --surface-high: #ececea;
  --border: #e8e8e5;
  --ink: #121316;
  --muted: #5d636d;
  --faint: #8d939b;
  --red: #d92f36;
  --red-deep: #be1e27;
  --frame: #121316;
  --shadow: 0 32px 64px -32px rgba(18, 19, 22, 0.35), 0 16px 32px -16px rgba(18, 19, 22, 0.16);

  --curve: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #181818;
    --surface-high: #1f1f1f;
    --border: #272727;
    --ink: #f2f2f2;
    --muted: #a3a3a3;
    --faint: #737373;
    --red: #e5484d;
    --red-deep: #d92f36;
    --frame: #313131;
    --shadow: 0 32px 64px -32px rgba(0, 0, 0, 0.9), 0 16px 32px -16px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--s-12); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/24px Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: "Inter Tight", Inter, ui-sans-serif, system-ui, sans-serif; font-weight: 700; }
h1 { font-size: 48px; line-height: 1; letter-spacing: -0.04em; }
h2 { font-size: 36px; line-height: 40px; letter-spacing: -0.03em; }
h3 { font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
p, li, summary { text-wrap: pretty; }
p { margin: 0; color: var(--muted); }
a { color: inherit; }
@media (min-width: 640px) { h1 { font-size: 60px; } }
@media (min-width: 1024px) { h1 { font-size: 72px; } h2 { font-size: 48px; line-height: 1; } }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--s-6); }
@media (max-width: 640px) { .wrap { padding: 0 var(--s-5); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Keyboard users can jump straight to the form. */
.skip {
  position: fixed; top: var(--s-5); left: var(--s-5); z-index: 50;
  padding: var(--s-3) var(--s-4); border-radius: 9999px; background: var(--ink); color: var(--bg);
  font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none;
  transform: translateY(-200%); transition: transform 300ms var(--curve);
}
.skip:focus { transform: none; }

/* Sections settle in once as they arrive (only when the script runs). */
.js [data-reveal] { opacity: 0; transform: translateY(var(--s-7)); transition: opacity 700ms var(--curve), transform 700ms var(--curve); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { transform: none; transition: opacity 700ms var(--curve); }
}

/* ---- the floating bar ---- */
.nav { position: fixed; top: var(--s-5); left: 50%; z-index: 20; transform: translateX(-50%); width: max-content; max-width: calc(100% - var(--s-7)); }
.nav-bar {
  display: flex; align-items: center; gap: var(--s-6);
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5); border-radius: 9999px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px);
  box-shadow: 0 0 0 1px var(--border), 0 8px 24px -16px rgba(0, 0, 0, 0.25);
}
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; font: 600 18px/28px "Inter Tight", Inter, sans-serif; letter-spacing: -0.02em; white-space: nowrap; }
.brand img { border-radius: 8px; }
.brand b { font-weight: 500; color: var(--muted); }

/* ---- buttons ---- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--s-3) var(--s-4); border: 0; border-radius: 9999px;
  background: var(--red); color: #fff;
  font: 600 16px/24px Inter, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 300ms var(--curve), transform 200ms var(--curve);
}
.button:hover { background: var(--red-deep); }
.button:active { transform: scale(0.98); }
.button.small { font-size: 14px; line-height: 20px; }
.button[disabled] { opacity: 0.7; cursor: default; }
.button:focus-visible, input:focus-visible, summary:focus-visible, .chips button:focus-visible, a:focus-visible {
  outline: 2px solid var(--red); outline-offset: 2px;
}

/* ---- the form ---- */
.join { margin: var(--s-7) auto 0; max-width: 520px; }
.join-row {
  display: flex; gap: var(--s-3); padding: var(--s-2); border-radius: 9999px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--border);
  transition: background-color 300ms var(--curve);
}
.join-row:focus-within { background: var(--bg); box-shadow: 0 0 0 1px var(--red), 0 0 0 4px color-mix(in srgb, var(--red) 16%, transparent); }
.join input[type="email"] {
  flex: 1; min-width: 0; padding: var(--s-3) var(--s-5); border: 0; border-radius: 9999px;
  background: transparent; color: var(--ink); font: 400 16px/24px Inter, sans-serif;
}
.join input[type="email"]:focus { outline: none; }
.join input[type="email"]::placeholder { color: var(--faint); }
.join .note { margin-top: var(--s-4); font-size: 14px; line-height: 20px; color: var(--faint); }
.join .note.error { color: var(--red); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 520px) {
  .join-row { flex-direction: column; padding: 0; background: transparent; box-shadow: none !important; }
  .join input[type="email"] { flex: none; width: 100%; padding: var(--s-4) var(--s-5); background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
  .join input[type="email"]:focus { background: var(--bg); box-shadow: 0 0 0 1px var(--red), 0 0 0 4px color-mix(in srgb, var(--red) 16%, transparent); }
  .join .button { width: 100%; padding: var(--s-4); }
}

/* After joining: the confirmation, and one optional question. */
.joined { margin: var(--s-7) auto 0; max-width: 520px; padding: var(--s-6); border-radius: 16px; background: var(--surface); text-align: left; animation: rise 500ms var(--curve) both; }
.joined h3 { display: flex; align-items: center; gap: var(--s-3); }
.joined h3 svg { width: 24px; height: 24px; flex: none; fill: var(--red); }
.joined p { margin-top: var(--s-2); font-size: 14px; line-height: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }
.chips button {
  padding: var(--s-3) var(--s-5); border: 0; border-radius: 9999px; box-shadow: 0 0 0 1px var(--border);
  background: var(--bg); color: var(--ink); font: 500 14px/20px Inter, sans-serif; cursor: pointer;
  transition: background-color 300ms var(--curve), color 300ms var(--curve);
}
.chips button:hover { background: var(--surface-high); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
@keyframes rise { from { opacity: 0; transform: translateY(var(--s-3)); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .joined { animation: none; } }

/* ---- hero ---- */
.hero { padding-top: var(--s-12); text-align: center; overflow: hidden; }
.hero-copy { margin-top: var(--s-10); }
/* Solid ink, two lines at every size, sized to the screen so "The next generation" holds its line
   on a phone. Line height leaves room for descenders, which clipped text effects cut off. */
.hero h1 {
  max-width: 760px; margin: 0 auto;
  font-size: clamp(36px, 9.6vw, 48px); line-height: 1.08; letter-spacing: -0.032em;
  text-wrap: initial;
}
@media (min-width: 640px) { .hero h1 { font-size: 60px; line-height: 1.05; } }
@media (min-width: 1024px) { .hero h1 { font-size: 72px; } }
.lede { max-width: 600px; margin: var(--s-6) auto 0; font-size: 18px; line-height: 28px; text-wrap: balance; }
@media (min-width: 1024px) { .lede { margin-top: var(--s-7); font-size: 20px; line-height: 28px; } }
.proof { margin-top: var(--s-6); font-size: 14px; line-height: 20px; color: var(--muted); }
@media (max-width: 640px) { .hero { padding-top: var(--s-11); } .hero-copy { margin-top: var(--s-8); } }

/* Three phones rise out of the page; the one in front is the app at work. */
.stage {
  position: relative; height: 600px; margin-top: var(--s-10);
  -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent);
  mask-image: linear-gradient(to bottom, #000 66%, transparent);
}
.phone {
  margin: 0; position: absolute; width: 300px; aspect-ratio: 390 / 844;
  border-radius: 32px; padding: var(--s-3); background: var(--frame); box-shadow: var(--shadow);
}
.phone img { display: block; width: 100%; height: 100%; border-radius: 24px; object-fit: cover; object-position: top; background: var(--bg); }
.stage .phone { left: 50%; top: 0; }
.stage .center { z-index: 3; transform: translateX(-50%); animation: up 800ms var(--curve) both; }
.stage .side { width: 260px; top: var(--s-11); z-index: 1; --x: 288px; }
.stage .left { transform: translateX(calc(-50% - var(--x))); animation: side-left 800ms 120ms var(--curve) both; }
.stage .right { transform: translateX(calc(-50% + var(--x))); animation: side-right 800ms 120ms var(--curve) both; }
@keyframes up { from { opacity: 0; transform: translateX(-50%) translateY(var(--s-7)); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes side-left { from { opacity: 0; transform: translateX(calc(-50% - var(--x))) translateY(var(--s-7)); } to { opacity: 1; transform: translateX(calc(-50% - var(--x))); } }
@keyframes side-right { from { opacity: 0; transform: translateX(calc(-50% + var(--x))) translateY(var(--s-7)); } to { opacity: 1; transform: translateX(calc(-50% + var(--x))); } }
@media (prefers-reduced-motion: reduce) {
  .stage .center { animation: fade 800ms var(--curve) both; }
  .stage .side { animation: fade 800ms 120ms var(--curve) both; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---- the app in the middle phone ----
   Rebuilt from the app's own screens and theme, laid out at its real 390 x 844 and scaled into the
   frame, so these sizes are the app's, not the page's. app.js acts out the four features on it. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.screen {
  --a-bg: #ffffff; --a-surface: #f5f5f4; --a-border: #e8e8e5; --a-text: #121316; --a-muted: #5e636b;
  --a-faint: #999ea5; --a-red: #d92f36; --a-red-soft: rgba(217, 47, 54, 0.1); --a-danger: #c4262e;
  --a-danger-soft: rgba(196, 38, 46, 0.07); --a-amber: #b7811a; --a-amber-soft: rgba(183, 129, 26, 0.13);
  --a-gold: #d9a33f; --k: 0.7282;
  position: relative; width: 100%; height: 100%; border-radius: 24px; overflow: hidden; background: var(--a-bg);
}
@media (prefers-color-scheme: dark) {
  .screen {
    --a-bg: #0c0d0f; --a-surface: #16171a; --a-border: #26282d; --a-text: #edeef0; --a-muted: #9ca1a9;
    --a-faint: #686e77; --a-red: #e5484d; --a-red-soft: rgba(229, 72, 77, 0.16); --a-danger: #ff6369;
    --a-danger-soft: rgba(255, 99, 105, 0.14); --a-amber: #e9b44c; --a-amber-soft: rgba(233, 180, 76, 0.14);
  }
}
.app {
  position: absolute; left: 0; top: 0; width: 390px; height: 844px; overflow: hidden;
  transform: scale(var(--k)); transform-origin: 0 0;
  background: var(--a-bg); color: var(--a-text); text-align: left;
  font: 400 15px/1.35 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: 0;
}
.app svg { width: 1em; height: 1em; flex: none; fill: currentColor; }
.app.snap, .app.snap * { transition: none !important; animation: none !important; }
.app-inbox { position: absolute; inset: 0; transition: transform 500ms var(--curve); }
.app.reading .app-inbox { transform: translateX(-24%); }

.app-top { position: absolute; left: 18px; right: 20px; top: 56px; height: 40px; display: flex; align-items: center; justify-content: space-between; }
.app-title { display: grid; font: 700 28px/1 "Inter Tight", Inter, sans-serif; letter-spacing: -0.03em; }
.app-title > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; opacity: 0; transition: opacity 300ms var(--curve); }
.app-title > span.on { opacity: 1; }
.app-title svg { width: 18px; height: 18px; color: var(--a-muted); }
.app-top .app-icon { width: 24px; height: 24px; }
.app-chips { position: absolute; left: 16px; top: 112px; display: flex; gap: 8px; white-space: nowrap; }
.chip {
  padding: 7px 14px; border-radius: 9999px; background: var(--a-surface); color: var(--a-muted);
  font-size: 15px; font-weight: 500; line-height: 20px;
  transition: background-color 300ms var(--curve), color 300ms var(--curve);
}
.chip b { margin-left: 2px; color: var(--a-red); font-weight: 600; }
.chip.on { background: var(--a-text); color: var(--a-bg); }

/* Rows sit at --y and glide when the list changes; the "all" order is the resting one. */
.app-list { position: absolute; left: 0; right: 0; top: 160px; bottom: 84px; overflow: hidden; }
.row {
  position: absolute; left: 0; right: 0; top: 0; height: 92px; display: flex; gap: 12px; padding: 12px 0 0 24px;
  transform: translateY(calc(var(--y, 0px) + var(--dy, 0px))) scale(var(--s, 1));
  transition: transform 600ms var(--curve), opacity 400ms var(--curve);
}
.row[data-row="marcus"] { --y: 92px; }
.row[data-row="priya"] { --y: 184px; }
.row[data-row="figma"] { --y: 276px; }
.row[data-row="cloud"] { --y: 368px; }
.row[data-row="ph"] { --y: 460px; }
.row[data-row="elena"] { --y: 552px; }
.row[data-row="fold"] { --y: 368px; }
.row.out { opacity: 0; --s: 0.97; }
.row.pre { opacity: 0; --dy: -14px; }
.row .unread { position: absolute; left: 9px; top: 28px; width: 7px; height: 7px; border-radius: 50%; background: var(--a-red); }
.av {
  position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: #5462c4; color: #fff; font-size: 14px; font-weight: 600;
}
.av[data-c="pink"] { background: #c2568a; }
.av[data-c="purple"] { background: #7b5cc4; }
.av[data-c="violet"] { background: #8a5bd0; }
.av[data-c="blue"] { background: #4a78cc; }
.av[data-c="green"] { background: #3d8a6a; }
.av[data-c="rust"] { background: #b5644a; }
.av > i { position: absolute; right: -2px; bottom: -2px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--a-bg); }
.app [data-a="forge"] { background: #ff6a2b; }
.app [data-a="velent"] { background: #5b9bd5; }
.app [data-a="foundry"] { background: #2ec4b6; }
.app [data-a="personal"] { background: #e0b04b; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 0 16px 0 0; line-height: 1.25; border-bottom: 1px solid var(--a-border); }
.row-main > * { flex: none; }
.l1, .l3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.l1 b { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l1 em { margin-left: 4px; font-style: normal; font-weight: 400; color: var(--a-faint); }
.meta { flex: none; display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.meta svg { width: 15px; height: 15px; color: var(--a-faint); }
.app svg.danger { color: var(--a-danger); }
.app svg.gold { color: var(--a-gold); }
.l2 { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prev { min-width: 0; font-size: 14.5px; color: var(--a-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app .tag { flex: none; padding: 3px 9px; border-radius: 8px; background: var(--a-red-soft); color: var(--a-red); font-size: 13px; font-weight: 500; }
.app .tag.amber { background: var(--a-amber-soft); color: var(--a-amber); }
.fold .av { background: var(--a-surface); color: var(--a-muted); }
.fold .av svg { width: 20px; height: 20px; }
.fold .l2 { font-weight: 500; color: var(--a-muted); }

.app-fab {
  position: absolute; right: 16px; bottom: 104px; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px;
  border-radius: 16px; background: var(--a-red); color: #fff; font-size: 16px; font-weight: 600;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.35);
}
.app-fab svg { width: 20px; height: 20px; }
.app-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; padding-top: 8px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--a-bg); }
.app-nav > span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 500; color: var(--a-muted); }
.app-nav i { position: relative; display: grid; place-items: center; width: 64px; height: 32px; border-radius: 16px; }
.app-nav svg { width: 22px; height: 22px; }
.app-nav .on { color: var(--a-text); }
.app-nav .on i { background: var(--a-red-soft); color: var(--a-red); }
.app-nav b {
  position: absolute; top: -5px; right: 12px; min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center;
  border: 2px solid var(--a-bg); background: var(--a-red); color: #fff; font-size: 11px; font-weight: 600;
}

/* An email, sliding in over the list. */
.reader {
  position: absolute; inset: 0; padding: 56px 18px 0; display: flex; flex-direction: column; background: var(--a-bg);
  transform: translateX(100%); transition: transform 500ms var(--curve);
}
.reader.open { transform: none; }
.r-top { display: flex; align-items: center; justify-content: space-between; height: 36px; color: var(--a-muted); }
.r-top svg { width: 24px; height: 24px; }
.r-acts { display: flex; gap: 24px; }
.r-subject { margin-top: 20px; font: 700 25px/1.15 "Inter Tight", Inter, sans-serif; letter-spacing: -0.03em; }
.r-meta { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--a-muted); }
.r-meta > i { width: 9px; height: 9px; border-radius: 50%; }
.r-meta .faint { color: var(--a-faint); }
.r-chips { margin-top: 14px; display: flex; gap: 8px; }
.rchip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 9999px; background: var(--a-surface); font-size: 15px; font-weight: 500; }
.rchip svg { width: 18px; height: 18px; }
.rchip svg.sm { width: 13px; height: 13px; color: var(--a-muted); }
.rchip.hot { background: var(--a-red-soft); color: var(--a-red); }
.rchip.hot svg.sm { color: var(--a-red); }
.draft {
  margin-top: 14px; padding: 16px; border-radius: 14px; background: var(--a-surface); display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translateY(8px); transition: opacity 400ms var(--curve), transform 500ms var(--curve);
}
.draft.on { opacity: 1; transform: none; }
.draft-label { font-size: 13.5px; color: var(--a-faint); }
.draft-text { font-size: 15px; line-height: 1.45; }
.draft-text .w { opacity: 0; transition: opacity 240ms var(--curve); }
.draft-text .w.on { opacity: 1; }
.draft-send {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 9999px;
  background: var(--a-red); color: #fff; font-size: 15px; font-weight: 600;
  opacity: 0; transform: translateY(6px); transition: opacity 300ms var(--curve), transform 400ms var(--curve);
}
.draft-send.on { opacity: 1; transform: none; }
.draft-note { font-size: 13px; color: var(--a-faint); }
.r-msg { margin-top: 22px; display: flex; align-items: center; gap: 12px; }
.r-msg .av { width: 40px; height: 40px; }
.r-from { font-size: 15px; }
.r-from .faint { margin-left: 6px; font-size: 13px; color: var(--a-faint); }
.r-from .muted { display: block; margin-top: 2px; font-size: 14px; color: var(--a-muted); }
.r-from em { font-style: normal; font-weight: 600; color: var(--a-danger); }
.r-body { display: block; margin-top: 14px; font-size: 15px; line-height: 1.5; }
.r-reply { position: absolute; left: 12px; right: 18px; bottom: 30px; display: flex; align-items: center; gap: 16px; color: var(--a-muted); }
.r-reply > span { flex: 1; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 9999px; background: var(--a-surface); font-size: 15px; }
.r-reply svg { width: 20px; height: 20px; }

/* Fraud Shield's banner, as the app shows it. */
.shield {
  margin-top: 16px; padding: 14px 14px 4px; border-radius: 14px; display: flex; flex-direction: column; gap: 8px;
  background: var(--a-danger-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a-danger) 25%, transparent);
  opacity: 0; transform: translateY(-8px); transition: opacity 400ms var(--curve), transform 500ms var(--curve);
}
.shield.on { opacity: 1; transform: none; }
.shield-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--a-danger); }
.shield-head svg { width: 18px; height: 18px; }
.shield-point { position: relative; padding-left: 14px; font-size: 14px; line-height: 1.4; }
.shield-point::before { content: ""; position: absolute; left: 2px; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--a-text); }
.shield-note { font-size: 14px; line-height: 1.4; color: var(--a-muted); }
.shield-acts { display: flex; margin-left: -10px; }
.shield-acts span { padding: 10px; font-size: 14.5px; font-weight: 600; color: var(--a-muted); }
.shield-acts .hot { color: var(--a-red); }
.app mark { position: relative; background: none; color: inherit; font-weight: 600; }
.app mark::before { content: ""; position: absolute; inset: -2px -4px; border-radius: 4px; background: var(--a-danger-soft); opacity: 0; transition: opacity 400ms var(--curve); }
.app mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--a-danger); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--curve); }
.app mark.on::before { opacity: 1; }
.app mark.on::after { transform: scaleX(1); }

/* Where a finger lands. */
.app-tap {
  position: absolute; left: 0; top: 0; z-index: 5; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: color-mix(in srgb, var(--a-text) 16%, transparent); opacity: 0; pointer-events: none;
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(0.5);
}
.app-tap.go { animation: tap 650ms var(--curve); }
@keyframes tap {
  25% { opacity: 1; }
  to { opacity: 0; transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(1.3); }
}

@media (max-width: 900px) {
  .stage { height: 480px; margin-top: var(--s-9); -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent); mask-image: linear-gradient(to bottom, #000 74%, transparent); }
  .phone { width: 232px; }
  .stage .side { width: 188px; top: var(--s-10); --x: 172px; }
  .screen { --k: 0.5538; }
}
@media (max-width: 420px) {
  .stage { height: 448px; }
  .phone { width: 216px; }
  .stage .side { width: 172px; --x: 148px; }
  .screen { --k: 0.5128; }
}

/* ---- what you'll get: four lines that drive the phone ---- */
.hero { padding-bottom: var(--s-9); }
.tour { max-width: 1040px; margin-top: var(--s-6); }
.tour-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
.tour-item {
  display: flex; flex-direction: column; gap: var(--s-2); width: 100%; padding: 0; border: 0; border-radius: 4px;
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.tour-bar, .tour-bars i { display: block; height: 2px; border-radius: 9999px; background: var(--border); overflow: hidden; }
.tour-bar { margin-bottom: var(--s-4); }
.tour-bar b, .tour-bars b { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.tour-title { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--faint); transition: color 300ms var(--curve); }
.tour-text { font-size: 14px; line-height: 20px; color: var(--faint); transition: color 300ms var(--curve); }
.tour-item:hover .tour-title, .tour-item[aria-pressed="true"] .tour-title { color: var(--ink); }
.tour-item[aria-pressed="true"] .tour-text { color: var(--muted); }
.tour-item:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.tour-bars { display: none; }
@media (max-width: 760px) {
  .tour { margin-top: var(--s-5); }
  .tour-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); max-width: 192px; margin: 0 auto var(--s-5); }
  .tour-bars i { cursor: pointer; }
  .tour-list { grid-template-columns: 1fr; }
  .tour-list li { grid-area: 1 / 1; }
  .tour-item { align-items: center; text-align: center; opacity: 0; visibility: hidden; transition: opacity 300ms var(--curve), visibility 0s 300ms; }
  .tour-item[aria-pressed="true"] { opacity: 1; visibility: visible; transition: opacity 300ms var(--curve); }
  .tour-bar { display: none; }
  .tour-text { max-width: 320px; }
}

/* ---- questions ---- */
.faq { padding: var(--s-10) 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-9); align-items: start; max-width: 1040px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-5);
  padding: var(--s-6) 0; font: 600 18px/28px Inter, sans-serif; letter-spacing: -0.01em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 9999px; background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 12h8M12 8v8' stroke='%238d939b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 24px no-repeat;
  transition: transform 300ms var(--curve);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 var(--s-9) var(--s-6) 0; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ---- last call ---- */
.cta { padding: var(--s-10) var(--s-6) var(--s-12); }
.cta .cta-box { max-width: 1132px; padding: var(--s-10) var(--s-7); border-radius: 24px; text-align: center; background: var(--surface); }
.cta-mark { border-radius: 12px; margin-bottom: var(--s-6); }
.cta-box p { margin-top: var(--s-4); font-size: 18px; line-height: 28px; }
.cta-box .join-row { background: var(--bg); }
.cta-box .joined { background: var(--bg); }
@media (max-width: 640px) { .cta { padding: var(--s-9) var(--s-5) var(--s-12); } .cta .cta-box { padding: var(--s-9) var(--s-5); } }
@media (max-width: 520px) { .cta-box .join-row { background: transparent; } .cta-box .join input[type="email"] { background: var(--bg); } }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--border); padding: var(--s-7) 0 var(--s-9); font-size: 14px; line-height: 20px; color: var(--faint); }
.foot-row { display: flex; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
.foot nav { display: flex; gap: var(--s-6); flex-wrap: wrap; }
.foot a { text-decoration: none; transition: color 300ms var(--curve); }
.foot a:hover, .foot a[aria-current="page"] { color: var(--ink); }

/* ---- the phone's join bar ---- */
.dock { display: none; }
@media (max-width: 760px) {
  .dock {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: var(--s-4) var(--s-5) calc(var(--s-4) + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
    box-shadow: 0 -1px 0 var(--border);
    transform: translateY(110%); transition: transform 500ms var(--curve);
  }
  .dock.show { transform: none; }
  .dock .button { width: 100%; padding: var(--s-4); }
  /* With the dock there, the bar is just the name. */
  body:has(.dock) .nav .button { display: none; }
  body:has(.dock) .nav-bar { padding: var(--s-3) var(--s-5); }
  .foot { padding-bottom: var(--s-12); }
}

/* ---- privacy, terms and the 404 ---- */
.doc { padding: var(--s-12) 0; }
.doc .wrap { max-width: 720px; margin-top: var(--s-9); }
.doc h1 { font-size: 36px; line-height: 40px; }
@media (min-width: 1024px) { .doc h1 { font-size: 48px; line-height: 1; } }
.doc h2 { font-size: 20px; line-height: 28px; letter-spacing: -0.01em; margin-top: var(--s-8); }
.doc p, .doc li { color: var(--muted); }
.doc p { margin-top: var(--s-4); }
.doc ul { padding-left: var(--s-6); margin: var(--s-4) 0 0; display: grid; gap: var(--s-3); }
.doc .updated { margin-top: var(--s-4); color: var(--faint); font-size: 14px; line-height: 20px; }
.doc a:not(.button) { color: var(--ink); text-underline-offset: 2px; }
.doc code { padding: var(--s-1) var(--s-2); border-radius: 4px; background: var(--surface); color: var(--ink); font: 500 14px/20px ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.doc .back { margin-top: var(--s-7); }
.lost { min-height: 72vh; text-align: center; }
.lost .wrap { max-width: 560px; }
.lost .wrap p { margin-top: var(--s-5); font-size: 18px; line-height: 28px; }
.lost .wrap .back { margin-top: var(--s-7); }
