:root {
  --ground: #F5F4EF;
  --surface: #FFFFFF;
  --ink: #14161C;
  --text: #4A4F5A;
  --muted: #5A5F6B;
  --line: #E2E0D8;
  --line-strong: #D5D2C8;
  --accent: #2347F0;
  --accent-hover: #1B38C4;
  --scan: #E5342B;
  /* The exported PDF's palette: BubbleTheme and the UIKit greys PdfRenderer uses. */
  --bubble-in: #E9E9EB;
  --bubble-out: #007AFF;
  --pdf-grey: #808080;
  --pdf-meta: #555555;
  --pdf-rule: #AAAAAA;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 6vw, 160px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--text); }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Header */

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

.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }

.site-nav { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 500; }
.site-nav a { padding: 12px 0; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 28px;
  border-radius: 14px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 600;
  transition: background 0.15s ease;
}
.button:hover { background: var(--accent-hover); color: #FFFFFF; }

.text-link { padding: 12px 0; font-size: 16px; font-weight: 500; border-bottom: 1px solid currentColor; }

/* Apple's App Store badge. Its artwork is used unmodified, and the clear space
   around it is at least a quarter of its height, as Apple's guidelines ask. */
.store-badge { height: 54px; width: auto; margin: 14px 0; }
.get .store-badge { margin: 0; }
.get .note { margin-top: -16px; }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 104px;
}

.hero-copy { display: flex; flex-direction: column; gap: 28px; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 6.7vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.02em;
}
.hero h1 em { color: var(--accent); }

.hero .lead { max-width: 460px; font-size: clamp(18px, 1.5vw, 21px); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 8px; }

.note { font-size: 14px; color: var(--muted); }

/* Document mock */

.doc { position: relative; width: min(100%, 504px); margin-inline: auto; padding: 20px 8px 20px 32px; }

.doc::before {
  content: "";
  position: absolute;
  inset: 34px 0 6px 72px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  transform: rotate(4deg);
}

/* The scan line from the app icon. It sits in the page flow, between two
   messages, so it never crosses a bubble; the negative margins cancel the gap. */
.scan { position: relative; height: 0; margin-block: -4px; }
.scan::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -64px;
  right: -64px;
  height: 2px;
  background: var(--scan);
  box-shadow: 0 0 18px 4px rgba(229, 52, 43, 0.28);
}

/* A US Letter page drawn the way the app's PDF export draws it: the same
   element order, greys and bubble colours, with type enlarged to stay legible. */
.page {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  aspect-ratio: 612 / 792;
  padding: 32px 32px 44px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(20, 22, 28, 0.35);
  font-size: 14px;
  line-height: 1.35;
  color: #000000;
}

.cover {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--pdf-rule);
  font-size: 11px;
  color: var(--pdf-meta);
}
.cover strong { margin-bottom: 4px; font-size: 19px; font-weight: 700; color: #000000; }

.stamp { align-self: center; padding-block: 2px; font-size: 10.5px; color: var(--pdf-grey); }

.msg { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.msg.out { align-items: flex-end; }
.msg small { padding-inline: 5px; font-size: 10.5px; font-weight: 600; color: var(--pdf-grey); }
.msg p { max-width: 72%; padding: 10px 15px; border-radius: 18px; background: var(--bubble-in); }
.msg.out p { background: var(--bubble-out); color: #FFFFFF; }

.folio { position: absolute; inset: auto 0 14px; text-align: center; font-size: 10px; color: var(--pdf-grey); }

/* Works with */

.works { border-block: 1px solid var(--line); }
.works .wrap { display: flex; align-items: center; gap: 12px 32px; padding-block: 32px; }
.works .eyebrow { flex-shrink: 0; }
.works ul { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; font-weight: 500; }
.works li:last-child { color: var(--muted); }

/* Sections */

.section { padding-block: 112px; }
.section + .section { padding-top: 0; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 640px; margin-bottom: 64px; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }

.figure {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 3vw, 48px);
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.figure img { width: min(100%, 440px); }

.steps { display: flex; flex-direction: column; gap: 36px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: flex; gap: 24px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 48px;
  font-family: var(--serif);
  font-size: 52px;
  line-height: 0.9;
  color: var(--accent);
}
.steps h3, .card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.steps p, .card p { color: var(--text); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.card svg { margin-bottom: 6px; }

.ready { display: flex; flex-direction: column; gap: 28px; }
.checks { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; line-height: 1.45; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }

/* Privacy band */

.band { padding-block: 96px; background: var(--ink); color: var(--ground); }
.band .display { max-width: 760px; margin-bottom: 56px; }
.band-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-bottom: 56px; }
.band-grid > div { padding-top: 20px; border-top: 1px solid #3A3D47; }
.band-grid h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.band-grid p { font-size: 16px; line-height: 1.55; color: #B9BCC6; }
.band a:hover { color: #FFFFFF; }

/* FAQ */

.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; }
.faq > div { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.faq h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.faq p { line-height: 1.55; color: var(--text); }

/* Final call */

.get {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: clamp(56px, 7vw, 88px) clamp(24px, 5vw, 64px);
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}
.get .app-icon { width: 88px; height: 88px; border-radius: 20px; }
.get h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 5vw, 72px); line-height: 1; letter-spacing: -0.02em; }

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 56px 48px;
  font-size: 15px;
  color: var(--muted);
}
.site-footer .brand { font-size: 15px; font-weight: 400; letter-spacing: 0; }
.site-footer .brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 32px; font-weight: 500; }
.site-footer nav a { padding: 12px 0; }

/* Legal pages */

.legal { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 96px; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 5vw, 72px); line-height: 1; letter-spacing: -0.02em; margin-bottom: 16px; }
.legal .updated { color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.legal .summary { padding: 24px 28px; margin-bottom: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.legal h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin: 48px 0 12px; }
.legal h3 { font-size: 18px; font-weight: 600; margin: 28px 0 8px; }
.legal p, .legal li { color: #30343D; line-height: 1.65; }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 12px; }
.legal ul { margin: 0; padding-left: 22px; }
.legal li + li { margin-top: 8px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--accent-hover); }

/* Not found */

.missing { min-height: 60vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; }

/* Small screens */

@media (max-width: 900px) {
  /* The landing's section links do not fit a phone header; the legal pages'
     two links do, and they are the only way between those pages. */
  .section-nav { display: none; }
  .site-nav { gap: 24px; }
  .hero, .split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero { padding-top: 32px; padding-bottom: 72px; }
  .cards, .band-grid, .faq { grid-template-columns: minmax(0, 1fr); }
  .band-grid { gap: 32px; }
  .faq { gap: 32px; }
  .section { padding-block: 72px; }
  .section-head { margin-bottom: 40px; }
  .band { padding-block: 72px; }
  .works .wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .doc { padding-left: 0; padding-right: 0; }
  .doc::before { inset: 34px -4px 6px 16px; }
  .scan::before { left: -32px; right: -32px; }
  .page { padding: 24px 20px 40px; }
}

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