:root {
  --paper: #FFFFFF;
  --ink: #111111;
  --muted: #5A5A5A;
  --line: #E4E4E4;
  --wash: #F4F4F2;
  --pen: #FF4F00;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--pen); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
code { font-family: var(--mono); font-size: 0.9em; }

.skip { position: absolute; inset-inline-start: 16px; top: -80px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 20; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Bar */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-block-end: 1px solid var(--line); }
.bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; }
.mark { font: 500 0.875rem var(--mono); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.mark::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pen); margin-inline-end: 10px; }
.bar nav { display: flex; gap: 4px; }
.bar nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px; font-size: 0.875rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.bar nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .bar nav a:not(:last-child) { display: none; } }

/* Type */
h1 { font-weight: 600; font-size: clamp(2.25rem, 1.4rem + 4vw, 4.25rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 20px; max-width: 16ch; text-wrap: balance; }
h2 { font-weight: 600; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; text-wrap: balance; }
.lede { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: var(--muted); max-width: 52ch; margin: 0 0 28px; }
.muted { color: var(--muted); }
.measure { max-width: 64ch; }
.small { font-size: 0.875rem; color: var(--muted); }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) 0; }
.install { max-width: 640px; }

/* Commands */
.cmd { display: flex; align-items: flex-start; background: var(--ink); color: #F2F2F2; border-radius: 10px; }
.cmd pre { flex: 1; min-width: 0; margin: 0; padding: 14px 12px 14px 16px; font: 0.8125rem/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.copy { flex: none; margin: 7px; min-height: 36px; min-width: 64px; padding: 6px 12px; border: 1px solid #4A4A4A; border-radius: 6px; background: #1F1F1F; color: #F2F2F2; font: 500 0.8125rem var(--sans); cursor: pointer; }
.copy:hover { border-color: #F2F2F2; }
.copy:focus-visible { outline-color: var(--pen); }
.cmd--prompt { position: relative; display: block; margin-block-start: 20px; }
.cmd--prompt pre { padding: 52px 20px 20px; }
.cmd--prompt .copy { position: absolute; inset-inline-end: 0; top: 0; }

/* Annotated screenshots */
.shot { margin: clamp(32px, 5vw, 56px) auto 0; }
.browser { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.25); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-block-end: 1px solid var(--line); background: var(--wash); }
.browser__bar span { width: 10px; height: 10px; border-radius: 50%; background: #D6D6D6; }
.browser__bar em { margin-inline-start: 12px; font: 400 0.75rem var(--mono); font-style: normal; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pins { position: relative; }
.pin {
  position: absolute; inset-inline-start: var(--x); top: var(--y); translate: -50% -50%;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--pen); color: var(--ink); font: 600 0.8125rem var(--mono);
  box-shadow: 0 0 0 4px rgb(255 79 0 / 0.25), 0 2px 6px rgb(0 0 0 / 0.3);
}
@media (max-width: 600px) { .pin { width: 20px; height: 20px; font-size: 0.6875rem; box-shadow: 0 0 0 3px rgb(255 79 0 / 0.25); } }
.notes { list-style: none; counter-reset: note; display: grid; gap: 14px 28px; margin: 20px 0 0; padding: 0; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.notes li { counter-increment: note; position: relative; padding-inline-start: 36px; font-size: 0.9375rem; color: var(--muted); }
.notes li::before {
  content: counter(note); position: absolute; inset-inline-start: 0; top: 0;
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--pen); color: var(--ink); font: 600 0.75rem var(--mono);
}

/* Blocks */
.block { padding-block: clamp(64px, 9vw, 112px) 0; }
.end { padding-block-end: clamp(64px, 9vw, 112px); }
.two { display: grid; gap: 48px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 64px; } .two--media { grid-template-columns: 0.8fr 1.2fr; align-items: center; } }
.two > * { min-width: 0; }

.log { margin: 20px 0 0; padding: 0; list-style: none; border-inline-start: 1px solid var(--line); }
.log li { position: relative; padding: 0 0 20px 24px; color: var(--muted); }
.log li::before { content: ""; position: absolute; inset-inline-start: -5px; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); }
.log li:last-child::before { background: var(--pen); border-color: var(--pen); }
.log b { color: var(--ink); font-weight: 600; }

.trio { display: grid; gap: 24px; margin-block-start: 32px; }
@media (min-width: 800px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio figure { margin: 0; }
.trio img { border: 1px solid var(--line); border-radius: 8px; }
.trio .chosen img { outline: 2px solid var(--pen); outline-offset: 3px; }
.trio figcaption { margin-block-start: 12px; font-size: 0.9375rem; color: var(--muted); }
.trio figcaption b { display: block; color: var(--ink); font-weight: 600; }
.tag { display: inline-block; margin-inline-start: 6px; padding: 1px 7px; border-radius: 4px; background: var(--pen); color: var(--ink); font: 500 0.6875rem var(--mono); text-transform: uppercase; letter-spacing: 0.04em; vertical-align: 2px; }

.product { display: grid; gap: 32px; margin-block-start: 8px; }
@media (min-width: 1000px) { .product { grid-template-columns: 1fr 300px; align-items: start; } }
.product > * { min-width: 0; }
.product .shot { margin: 16px 0 0; }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-block-start: 16px; }
.phones figure { margin: 0; }
.phones img { border: 1px solid var(--line); border-radius: 18px; }
.phones figcaption { margin-block-start: 8px; font-size: 0.8125rem; color: var(--muted); }

.plain { margin: 16px 0 0; padding-inline-start: 18px; color: var(--muted); }
.plain li { margin-block-end: 6px; }
.video { position: relative; margin: 0; }
.video video { border: 1px solid var(--line); border-radius: 10px; }
.video figcaption { margin-block-start: 10px; font-size: 0.8125rem; color: var(--muted); }
.pause { position: absolute; inset-inline-end: 10px; top: 10px; min-height: 36px; padding: 6px 12px; border: 0; border-radius: 6px; background: var(--ink); color: var(--paper); font: 500 0.8125rem var(--sans); cursor: pointer; }

.checks { display: grid; margin: 24px 0 0; border-block-start: 1px solid var(--line); }
.checks div { display: grid; gap: 4px 32px; padding-block: 16px; border-block-end: 1px solid var(--line); }
@media (min-width: 700px) { .checks div { grid-template-columns: 200px 1fr; } }
.checks dt { font-weight: 600; }
.checks dd { margin: 0; color: var(--muted); }

details { border-block-end: 1px solid var(--line); }
details:first-of-type { border-block-start: 1px solid var(--line); margin-block-start: 16px; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; cursor: pointer; font-weight: 500; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 1.25rem var(--mono); color: var(--muted); }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 16px; color: var(--muted); }

.foot { border-block-start: 1px solid var(--line); padding-block: 32px; font-size: 0.8125rem; color: var(--muted); }
.foot p { margin: 0 0 8px; max-width: 90ch; }
.foot a { display: inline-block; min-height: 24px; }
