/* Peering — the site's stylesheet.
 *
 * The values in `:root` are the app's, not a web palette that happens to look similar: the
 * backdrop is `ColorPalette.backdrop` (near-black rather than black, so it does not read as a
 * hole), the accent is the system blue the app marks a selection with, and the card is the same
 * surface with the same hairline that fades from white 20% at the top to white 5% at the bottom.
 * The wordmark is set in the same face as the app's — New York on Apple platforms, with a serif
 * fallback everywhere else — and the body is the system UI face, because that is what the app's
 * own body copy is set in.
 *
 * No eyebrow labels above headings, deliberately. A tracked all-caps kicker over a heading is the
 * single strongest mark of a page assembled rather than designed.
 */

:root {
  --backdrop: #0a0a0c;
  --ink: #ffffff;
  --ink-70: rgba(255, 255, 255, 0.70);
  --ink-55: rgba(255, 255, 255, 0.55);
  --ink-50: rgba(255, 255, 255, 0.50);
  --surface: rgba(255, 255, 255, 0.055);
  --surface-raised: rgba(255, 255, 255, 0.085);
  --accent: #0a84ff;
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1080px;

  --display: "New York", ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --step: clamp(64px, 9vw, 112px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* The sticky bar is 64px; without this every in-page link lands with its heading underneath it. */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--backdrop);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* The app's backdrop: the near-black, and one soft light from the top so the top of the page has
   a centre rather than being uniformly dark. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 42% at 50% 0%, rgba(255, 255, 255, 0.07), transparent 70%);
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--ink);
  color: #000;
  border-radius: 999px;
}

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

/* ---------- Card ---------- */

/* The app's card: a faint surface with a hairline that is brighter at the top than the bottom.
   Drawn with two masks rather than a border so the gradient survives the corner radius. */
.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.05));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- Bar ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.bar.scrolled { border-bottom-color: rgba(255, 255, 255, 0.08); }

.bar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  flex: none;
}

.brand img { display: block; }

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
}

.nav a {
  text-decoration: none;
  color: var(--ink-55);
  transition: color 0.16s ease;
}

.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); }

.bar-cta { flex: none; }

.menu {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.menu span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.menu span:nth-child(1) { top: 17px; }
.menu span:nth-child(2) { top: 23px; }
.menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ---------- Buttons ---------- */

/* The app's one filled button, at web scale: a capsule that shrinks under the press and comes
   back on a spring with a little give in it. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.14s ease, opacity 0.14s ease, background-color 0.16s ease;
}

.btn:active { transform: scale(0.965); opacity: 0.86; }

.btn-primary {
  background: var(--ink);
  color: #000;
}

.btn-primary:hover { background: rgba(255, 255, 255, 0.88); }

.btn-quiet {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ink-70);
}

.btn-quiet:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.28); }

.btn-small { height: 36px; padding: 0 16px; font-size: 14px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 var(--step);
  overflow: hidden;
}

.glow { position: absolute; inset: 0; pointer-events: none; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero-mark {
  display: block;
  margin-bottom: 18px;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6));
}

.hero h1 {
  font-size: clamp(46px, 7vw, 76px);
  letter-spacing: -0.03em;
}

.lede {
  font-family: var(--display);
  font-size: clamp(21px, 2.6vw, 27px);
  color: var(--ink-70);
  margin-top: 10px;
  letter-spacing: -0.01em;
}

.hero .body {
  margin-top: 22px;
  max-width: 34em;
  color: var(--ink-55);
  font-size: 17px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.fine {
  font-size: 13.5px;
  color: var(--ink-50);
  margin-top: 18px;
  max-width: 40em;
}

/* ---------- Phone ---------- */

/* Drawn rather than a rendered frame: the border, the radius and the island are the whole of what
   a device shot needs, and an image of a phone would have to be re-cut for every screenshot. */
.phone {
  position: relative;
  justify-self: center;
  width: min(310px, 78vw);
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-screen {
  border-radius: 37px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 603 / 1311;
}

.phone-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.phone-island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 24px;
  border-radius: 999px;
  background: #000;
}

/* ---------- Sections ---------- */

.section {
  padding: var(--step) 0;
  position: relative;
}

.section h2 {
  font-size: clamp(31px, 4.4vw, 46px);
  max-width: 18em;
}

.section-lede {
  margin-top: 16px;
  color: var(--ink-55);
  font-size: 18px;
  max-width: 44em;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: none;
}

.step { padding: 26px 24px 28px; }

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--ink-70);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
}

.step h3, .feature h3 {
  font-family: var(--text);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

.step p, .feature p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-55);
}

/* ---------- Features ---------- */

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

.feature { padding: 24px; }

.feature svg {
  width: 26px;
  height: 26px;
  display: block;
  margin-bottom: 16px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

/* ---------- Privacy ---------- */

.privacy-card { margin-top: 40px; padding: clamp(24px, 3.4vw, 40px); }

.diagram {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.node {
  flex: none;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface-raised);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-70);
}

.node-relay {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: none;
}

/* The link, drawn as a dashed line with a travelling light on it — the one animation on the page,
   and it is the claim: something crosses the middle without being readable there. */
.link {
  position: relative;
  flex: 1;
  height: 1px;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.28) 40%, transparent 0);
  background-size: 9px 1px;
  background-repeat: repeat-x;
  overflow: hidden;
}

.link i {
  position: absolute;
  top: -1px;
  left: -18%;
  width: 18%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: travel 3.4s linear infinite;
}

.link:last-of-type i { animation-delay: 1.7s; }

@keyframes travel {
  from { left: -18%; }
  to { left: 100%; }
}

.privacy-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.privacy-notes h3 {
  font-family: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.privacy-notes p {
  margin-top: 7px;
  font-size: 14.5px;
  color: var(--ink-55);
}

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
  /* Deliberately not `align-items: start`. The four cards are one comparison, and four rectangles
     of four different heights read as four things that happened to land next to each other — the
     eye gets a ragged bottom edge where it wants a table. They stretch to the tallest instead, and
     because every card has the same three header lines the bullets all start at the same height
     too — so the empty space lands at the bottom of the short ones, where nobody is looking. */
}

.plan { padding: 26px 22px 28px; }

.plan h3 { font-family: var(--text); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink-70); }

.plan-price {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 10px;
}

.plan-price span {
  font-family: var(--text);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink-50);
  letter-spacing: 0;
}

.plan-note { font-size: 13.5px; color: var(--ink-50); margin-top: 4px; }

.plan ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.plan li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--ink-55);
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 5px;
  border-left: 1.6px solid var(--ink-50);
  border-bottom: 1.6px solid var(--ink-50);
  transform: rotate(-45deg);
}

.plan-best {
  background: var(--surface-raised);
}

.plan-best::before {
  background: linear-gradient(180deg, var(--accent), rgba(10, 132, 255, 0.35));
}

.plan-badge {
  position: absolute;
  top: -11px;
  left: 22px;
  padding: 4px 10px;
  border-radius: 999px;
  /* A deeper blue than the accent, and only here. White on the accent itself is 3.6:1 — legible
     as a large shape and not as eleven-point type, which is what this is. */
  background: #0a63c9;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.plan-best li::before { border-color: var(--accent); }

/* ---------- FAQ ---------- */

.faq {
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 34px 20px 0;
  position: relative;
  font-size: 16.5px;
  font-weight: 500;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 27px;
  width: 9px;
  height: 9px;
  border-right: 1.6px solid var(--ink-50);
  border-bottom: 1.6px solid var(--ink-50);
  transform: rotate(45deg);
  transition: transform 0.22s ease;
}

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

.faq details p {
  padding: 0 40px 22px 0;
  color: var(--ink-55);
  font-size: 15.5px;
}

/* ---------- Footer ---------- */

.foot {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 36px 0 44px;
  margin-top: var(--step);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
}

.foot-links {
  display: flex;
  gap: 22px;
  font-size: 15px;
  margin-left: auto;
}

.foot-links a {
  text-decoration: none;
  color: var(--ink-55);
  transition: color 0.16s ease;
}

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

.foot-fine {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--ink-50);
}

/* ---------- Arrival ---------- */

/* Sections come up as they are scrolled to, the way every screen in the app arrives: a short
   rise and a fade, nothing that overshoots. Off when the reader has asked for less motion. */
.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.32, 0.72, 0.24, 1);
}

/* ---------- Legal pages ---------- */

.doc {
  padding: clamp(40px, 6vw, 72px) 0 var(--step);
}

.doc-inner { max-width: 46em; }

.doc h1 {
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -0.025em;
}

.doc .updated {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-50);
}

.doc h2 {
  font-family: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  margin-top: 40px;
}

.doc p, .doc li {
  margin-top: 12px;
  color: var(--ink-55);
  font-size: 16px;
}

.doc ul { margin: 12px 0 0; padding-left: 22px; }
.doc li { margin-top: 8px; }

/* Scoped to the prose, and the scoping is load-bearing rather than tidy: `.doc a` is one class and
   one element, which out-ranks `.btn-primary` — so an unscoped version of this rule turns any
   button on a document page into white text on a white fill, which is a link nobody can read and a
   contrast checker's favourite kind of finding. */
.doc p a,
.doc li a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.doc .callout {
  margin-top: 28px;
  padding: 20px 22px;
  font-size: 15.5px;
  color: var(--ink-70);
}

/* ---------- Narrow ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone { width: min(280px, 64vw); margin-top: 8px; }
  .steps, .grid, .privacy-notes { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    background: rgba(10, 10, 12, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 17px;
    display: none;
  }

  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .nav a:last-child { border-bottom: 0; }

  .bar-cta { display: none; }
  .menu { display: block; }
  .plans { grid-template-columns: 1fr; }
  .plan-badge { position: static; display: inline-block; margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .link i { animation: none; opacity: 0; }
  .btn:active { transform: none; }
}
