:root {
  --paper: #f3efe6;
  --ink: #161513;
  --muted: #6a655c;
  --rule: #d8d2c6;
  --gold: #f5d142;
  --black: #111110;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body { background: var(--paper); color: var(--ink); }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.page { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }

header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

header::before {
  content: "";
  display: block;
  height: 2px;
  background: var(--gold);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand img { width: 28px; height: 28px; border-radius: 7px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.on { color: var(--ink); }

.nav-links a.on::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 1.5px;
  background: var(--ink);
}

.nav-links .go { color: var(--ink); font-weight: 600; }
.nav-links .go::after { display: none; }

.kicker {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}

.badge {
  display: inline-block;
  line-height: 0;
}

.badge img {
  height: 44px;
  width: auto;
  display: block;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--black);
  color: #fff;
  border-radius: 10px;
  padding: 11px 16px 11px 13px;
  max-width: 100%;
}

.store small { display: block; font-size: 10px; opacity: .65; line-height: 1.2; }
.store b { display: block; font-size: 16px; letter-spacing: -0.03em; font-weight: 600; overflow-wrap: anywhere; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px 64px;
  align-items: center;
  padding: 56px 0 64px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 18px;
}

.lead {
  max-width: 38ch;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 28px;
}

.cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hint { font-size: 13px; color: var(--muted); }

.device {
  width: min(300px, 100%);
  margin: 0 auto;
  background: #111;
  border-radius: 44px;
  padding: 7px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .18) inset,
    0 28px 64px rgba(22, 21, 19, 0.2);
}

.device-screen {
  border-radius: 36px;
  overflow: hidden;
  background: #fff;
  position: relative;
  line-height: 0;
}

.device-screen img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity .85s ease;
}

.device-screen img:not(:first-child) {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: contain;
}

.device-screen img.on { opacity: 1; }

.dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8c2b6;
}

.dots i.on { background: var(--ink); }

.split,
.about,
.faq,
.doc {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
}

.split,
.about,
.faq,
.bottom,
section { scroll-margin-top: 80px; }

.split,
.about { border-top: 1px solid var(--rule); padding: 48px 0; }

.about { padding-bottom: 28px; }
.faq { padding: 12px 0 64px; }

.split h2,
.about h2,
.faq h2,
.doc > .side .kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0;
}

.row {
  display: grid;
  grid-template-columns: 36px 1fr 1.4fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}

.row:first-child { border-top: 0; padding-top: 0; }
.row:last-child { padding-bottom: 0; }

.num { color: var(--muted); font-size: 13px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.row h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; min-width: 0; }
.row p { color: var(--muted); font-size: 15px; }

.about-copy p { color: var(--muted); margin-bottom: 14px; max-width: 58ch; }
.about-copy p:last-child { margin-bottom: 0; }

details {
  border-top: 1px solid var(--rule);
  padding: 16px 0;
}

details:last-child { border-bottom: 1px solid var(--rule); }

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.015em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
}

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

summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
}

details[open] summary::after { content: "–"; }

details p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  max-width: 58ch;
}

.bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--rule);
  padding: 40px 0 56px;
}

.bottom p {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.doc { padding: 48px 0 80px; align-items: start; }

@media (min-width: 821px) {
  .side {
    position: sticky;
    top: 88px;
  }
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.side-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.side-nav a:hover,
.side-nav a.on { color: var(--ink); }

.article { min-width: 0; }

.article h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.article .updated {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 28px;
}

.article h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 32px 0 10px;
}

.article > section:first-child h2 { margin-top: 8px; }

.article p,
.article li {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

.article p { margin-bottom: 12px; max-width: 62ch; }
.article ul { padding-left: 20px; margin: 0 0 12px; }
.article li { margin: 4px 0; }
.article a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

footer {
  border-top: 1px solid var(--rule);
  padding: 22px 0 calc(36px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 13px;
}

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a:hover { color: var(--ink); }

html.js [data-in] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--d, 0s);
}

html.js [data-in].in {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .row { grid-template-columns: 28px 1fr; }
  .row p { grid-column: 2; }
}

@media (max-width: 820px) {
  .hero, .split, .about, .faq, .doc { grid-template-columns: 1fr; }
  .hero { gap: 32px; padding: 36px 0 32px; }
  .device { margin: 0 auto; }
  .hero { grid-template-columns: 1fr; }
  .bottom { flex-direction: column; align-items: flex-start; }
  .nav-links a:not(.go) { display: none; }
  .side-nav { flex-direction: row; flex-wrap: wrap; gap: 16px; margin: 0 0 20px; }
  .doc { padding: 32px 0 64px; }
}

@media (max-width: 520px) {
  .page { width: min(1040px, calc(100% - 32px)); }
  .badge img { height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-in] { opacity: 1; transform: none; transition: none; }
  .shot img, .device-screen img, .store { transition: none; }
}
