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

:root {
  color-scheme: light dark;
  --ink: #0A0C10;
  --ink-soft: #4F535C;
  --rule: #E4E5EA;
  --ground: #FFFFFF;
  --raised: #F4F6FC;
  --stage: linear-gradient(180deg, #E6ECFD, #D3DEFB);
  --tint: #2D54E4;
  --warn: #9A5B00;
  --fail: #C62C1E;
  --pass: #0F7A42;
  --none: #5A5E6B;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F2F3F6;
    --ink-soft: #A9AEBD;
    --rule: #2A2C33;
    --ground: #0D0E12;
    --raised: #16181D;
    --stage: linear-gradient(180deg, #1A2243, #10142A);
    --tint: #8CA5FF;
    --fail: #D4382A;
    --pass: #0E7F43;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 500 1.0625rem/1.65 Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; overflow-wrap: break-word; }
h1 { font-size: 2.125rem; line-height: 1.2; margin: 0 0 0.5rem; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 0.5rem; }
p, ul, ol { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
strong, dt { font-weight: 700; }
em { font-style: normal; font-weight: 700; }
a { color: var(--tint); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 4px; }

/* The product page. */

.home main, .bar, .opening, .foot { max-width: 68rem; margin-inline: auto; padding-inline: 1.5rem; }

.hero {
  overflow: hidden;
  background: radial-gradient(40rem 30rem at 74% 55%, rgba(146, 176, 255, 0.28), transparent), linear-gradient(180deg, #355EEA, #2D55E4 48%, #1C3BB4);
  color: #FFFFFF;
}
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }
.brand svg { height: 1.375rem; }
.bar a { color: inherit; text-decoration: none; }
.bar nav { display: flex; gap: 1.5rem; }
.bar nav a { padding-block: 0.6rem; }
.bar nav a:hover { text-decoration: underline; }

.opening { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.opening h1 { font-size: clamp(2.75rem, 6.4vw, 4.75rem); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 1.5rem; }
.opening .words { padding-block: 3rem 4rem; }
.opening .words p { font-size: 1.25rem; line-height: 1.5; max-width: 30rem; }
.opening .words .facts { font-size: 1rem; font-weight: 700; margin: 1.5rem 0 0; }

/* A phone is its capture inside a black bezel, cut off where it meets the bottom of its stage. `--cut` is how
   much of the capture is shown, chosen so that no line of it is cut through. */
.phone { background: #08090C; border-radius: 2.5rem 2.5rem 0 0; padding: 0.5rem 0.5rem 0; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.22), 0 1.5rem 3rem rgba(9, 20, 84, 0.35); }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 720 / calc(1564 * var(--cut)); object-fit: cover; object-position: top; border-radius: 2rem 2rem 0 0; }
.phones { display: flex; align-items: flex-end; align-self: end; justify-self: end; width: 100%; max-width: 28rem; padding-top: 2rem; }
.phones .phone { flex: none; width: 69.5%; }
.phones .front { position: relative; z-index: 1; }
.phones .back { margin-left: -39.5%; }

.home section { padding-block: 5rem; }
.home section + section, .foot p:first-child { border-top: 1px solid var(--rule); }
.home h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 1rem; }
.lede { font-size: 1.1875rem; color: var(--ink-soft); max-width: 42rem; margin-bottom: 2rem; }
.aside { color: var(--ink-soft); font-size: 0.9375rem; max-width: 42rem; margin: 1.5rem 0 0; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.card { display: flex; flex-direction: column; background: var(--raised); border-radius: 1.5rem; padding: 1.75rem; }
.card .chips { margin: auto 0 0; padding-top: 0.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { border-radius: 999px; padding: 0.25rem 0.85rem; font-size: 0.9375rem; font-weight: 700; color: #FFFFFF; }
.chip.pass { background: var(--pass); }
.chip.warn { background: var(--warn); }
.chip.fail { background: var(--fail); }
.chip.none { background: var(--none); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.turned .words { order: 1; }
.window { background: var(--stage); border-radius: 2rem; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding-top: 2.5rem; }
.window .phone { width: min(18.5rem, 78%); flex: none; }

.formats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.625rem; }
.formats li { margin: 0; background: var(--raised); border-radius: 0.875rem; padding: 0.6rem 1.1rem; font-weight: 700; }

.facts-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; margin: 2rem 0 0; }
.facts-list dt { font-size: 1.125rem; }
.facts-list dd { margin: 0.25rem 0 0; color: var(--ink-soft); }

.foot { padding-block: 0 3rem; color: var(--ink-soft); font-size: 0.9375rem; }
.foot p { margin: 0 0 0.5rem; }
.foot p:first-child { padding-top: 2rem; }
.foot p:first-child a { display: inline-block; margin-right: 1.25rem; padding-block: 0.4rem; }

@media (max-width: 52rem) {
  .opening, .pair, .split, .facts-list { grid-template-columns: minmax(0, 1fr); }
  .opening { gap: 0; }
  .opening .words { padding-block: 1.5rem 1rem; }
  .phones { max-width: 26rem; justify-self: center; padding-top: 1.5rem; }
  .home section { padding-block: 3.5rem; }
  .split { gap: 2rem; }
  .turned .words { order: 0; }
  .window { padding-top: 2rem; }
}

/* Support and the two legal documents: one column to read. */

.legal { max-width: 43rem; margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }
.legal h2 { margin-top: 2rem; }
.legal .updated { color: var(--ink-soft); font-size: 0.9375rem; margin-bottom: 2rem; }
.legal .mirror { font-size: 0.9375rem; color: var(--ink-soft); border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 3rem; }
.legal .crumb { margin: 0 0 1.5rem; font-weight: 700; }
.legal .mirror p { margin: 0 0 0.25rem; }
.legal .mirror a { white-space: nowrap; }

/* Lines that end on more than one word, and names that stay whole (SPEC §10 #524, #526). Every <em> names
   something the app draws; each is held on one line wherever the column can hold the widest of its page, and
   wraps as words where it cannot. Engines without text-wrap ignore it. */
p, li, dd { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
@media (min-width: 17rem) { em { white-space: nowrap; } }

/* A count and the word it counts are set as one, as the app holds them (SPEC §10 #531): an inline block moves to
   the next line whole, and its words wrap inside it only where the pair is wider than a line. */
.held { display: inline-block; }
