* {
  box-sizing: border-box;
}
:root {
  color-scheme: dark;
  --bg: #101112;
  --panel: #18191a;
  --ink: #f5f3ee;
  --muted: #a8a7a3;
  --line: #303132;
  --accent: #d1a272;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:hover {
  color: var(--accent);
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: auto;
}
.skip {
  position: absolute;
  left: 24px;
  top: -80px;
  background: var(--ink);
  color: var(--bg);
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}
header {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.brand img {
  width: 38px;
  height: 38px;
}
nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
nav a {
  text-decoration: none;
  color: var(--muted);
}
.hero {
  padding: 100px 0 80px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 70px;
}
h1 {
  font-size: clamp(44px, 6vw, 76px);
  letter-spacing: -3.5px;
  line-height: 1.04;
  margin: 22px 0 28px;
  font-weight: 550;
}
.lede {
  font-size: 19px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 590px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.button {
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.button.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.button.primary:hover {
  background: #ddb68c;
  border-color: #ddb68c;
  color: var(--bg);
}
.button:hover {
  border-color: var(--accent);
}
/* Apple's badge stays unaltered; .actions gap keeps its clear space (at least a quarter of its height). */
.badge {
  display: inline-flex;
  align-items: center;
}
.badge img {
  display: block;
  height: 48px;
  width: auto;
}
.note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}
.diagram {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 24px 70px #0004;
}
.diagram-top {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.diagram-top strong {
  color: var(--ink);
  font-weight: 500;
}
.provider-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.provider-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.provider-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #232425;
  display: grid;
  place-items: center;
  flex: none;
}
.provider-list strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
}
.provider-list code {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
}
.ready {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.ready::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7fbf86;
}
.diagram-foot {
  margin: 20px 0 0;
  font-size: 12px;
  color: var(--muted);
}
/* The Mac window, with the iPhone Inbox overlapping its lower right corner. */
.showcase {
  position: relative;
  margin: 64px 0 0;
  padding-bottom: 6%;
}
.window {
  position: relative;
  width: 84%;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 90px #0007;
}
.window img {
  display: block;
  width: 100%;
  height: auto;
}
/* macOS window buttons, placed where the desktop app's trafficLightPosition puts them. */
.lights {
  position: absolute;
  left: 1.111%;
  top: 2.222%;
  width: 3.611%;
  aspect-ratio: 52 / 12;
  display: flex;
  justify-content: space-between;
}
.lights i {
  width: 23.08%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ff5f57;
}
.lights i:nth-child(2) {
  background: #febc2e;
}
.lights i:nth-child(3) {
  background: #28c840;
}
/* iPhone 17 Pro screen: 402 x 874 pt with 55 pt corners. */
.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22%;
  aspect-ratio: 402 / 874;
  margin: 0;
  border-radius: 13.7% / 6.3%;
  overflow: hidden;
  box-shadow:
    0 0 0 5px #1d1e1f,
    0 0 0 6px #3a3b3c,
    0 30px 90px #000a;
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
}
/* Dynamic Island, which simulator screenshots leave out. */
.phone::after {
  content: "";
  position: absolute;
  top: 1.26%;
  left: 34.33%;
  width: 31.34%;
  height: 4.23%;
  border-radius: 999px;
  background: #000;
}
.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
h2 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 500;
  margin: 12px 0 28px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
}
.grid h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 18px 0 10px;
}
.grid p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}
.grid.two {
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
}
.section-lede {
  color: var(--muted);
  font-size: 17px;
  max-width: 640px;
  margin: -12px 0 32px;
}
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.steps li {
  counter-increment: step;
  color: var(--muted);
  font-size: 15px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.steps li::before {
  content: counter(step);
  display: block;
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 8px;
}
.steps strong {
  color: var(--ink);
  font-weight: 500;
}
.letter {
  margin: 0;
  max-width: 720px;
}
.letter blockquote {
  margin: 0;
  font-size: 20px;
  line-height: 1.65;
}
.letter blockquote p {
  margin: 0 0 20px;
}
.letter figcaption {
  color: var(--muted);
  font-size: 14px;
}
.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 85px;
}
.closing p {
  color: var(--muted);
  max-width: 560px;
}
.closing h2 {
  margin-bottom: 12px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 42px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
footer nav {
  font-size: 12px;
  gap: 20px;
  flex-wrap: wrap;
}
.document {
  max-width: 740px;
  padding: 72px 0 90px;
}
.document h1 {
  font-size: 52px;
  letter-spacing: -2px;
}
.document h2 {
  font-size: 24px;
  margin: 42px 0 16px;
  letter-spacing: -0.5px;
}
.document h3 {
  font-size: 18px;
}
.document p,
.document li {
  color: #c3c2bd;
}
.document li {
  padding-left: 6px;
  margin: 10px 0;
}
.document .lede {
  font-size: 19px;
}
.document .meta {
  font-size: 12px;
  color: var(--muted);
}
.callout {
  background: var(--panel);
  padding: 22px 24px;
  border-left: 2px solid var(--accent);
  margin: 28px 0;
  border-radius: 0 6px 6px 0;
}
.callout p {
  margin: 0;
}
@media (max-width: 1000px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 36px);
  }
  header {
    height: 78px;
  }
  nav {
    gap: 18px;
  }
  .hero {
    padding: 60px 0;
    grid-template-columns: 1fr;
    gap: 40px;
  }
  h1 {
    letter-spacing: -2px;
    max-width: 520px;
  }
  .diagram {
    max-width: 520px;
    width: 100%;
  }
  .grid,
  .grid.two,
  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .section {
    padding: 48px 0;
  }
  .showcase {
    margin-top: 40px;
    padding-bottom: 50%;
  }
  .window {
    width: 100%;
    border-radius: 10px;
  }
  .phone {
    right: 6%;
    width: 38%;
    box-shadow:
      0 0 0 3px #1d1e1f,
      0 0 0 4px #3a3b3c,
      0 20px 60px #000a;
  }
  .closing {
    display: block;
  }
  .document {
    padding-top: 45px;
  }
  .document h1 {
    font-size: 42px;
  }
  .lede {
    font-size: 18px;
  }
  .letter blockquote {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
