:root {
  --paper: #f4f4f6;
  --ink: #111013;
  --muted: #3c3840;
  --link: #b30e28;
  --max: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(820px 380px at 78% -8%, rgba(251, 15, 43, 0.11), transparent 62%),
    var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
}

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

a { color: var(--link); }

a:focus-visible,
.download:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  z-index: 5;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: block;
  flex: none;
}

.brand-word {
  height: 40px;
  width: auto;
  max-width: 38vw;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: none;
}

.nav a:not(.download) {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:not(.download):hover { text-decoration: underline; }

.download {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px 1px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.download:hover { background: #2c2a2e; }

.download-large {
  height: 64px;
  padding: 0 22px 2px;
  font-size: 2.15rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  align-items: center;
  gap: 36px;
  padding: 36px 0 20px;
}

.hero h1 {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(3.5rem, 6.2vw, 6.2rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
}

.hero p {
  max-width: 28rem;
  margin: 22px 0 28px;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--muted);
}

.hero-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  justify-self: end;
}

.hero-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 8% 0 -2%;
  background:
    radial-gradient(closest-side at 35% 30%, rgba(251, 138, 1, 0.55), transparent 72%),
    radial-gradient(closest-side at 70% 62%, rgba(249, 1, 88, 0.42), transparent 70%);
  filter: blur(6px);
}

.phone {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(165deg, #8a8a90 0%, #2a2a2e 14%, #0c0c0e 46%, #3a3a3e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6),
    0 0 0 1px #050505,
    0 28px 60px rgba(17, 16, 19, 0.22);
}

.phone img.screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
  background: #000;
}

.key {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(#4a4a4e, #1a1a1c);
}

.key.silent { left: 0; top: 13%; height: 22px; }
.key.up { left: 0; top: 20%; height: 46px; }
.key.down { left: 0; top: 29%; height: 46px; }
.key.power { right: 0; left: auto; top: 23%; height: 70px; }

.pair {
  display: flex;
  justify-content: center;
  gap: 56px;
  padding: 72px 0 24px;
}

.pair figure {
  margin: 0;
  width: 230px;
  max-width: calc((100% - 20px) / 2);
}

.pair .phone { width: 100%; border-radius: 38px; padding: 9px; }
.pair .phone img.screen { border-radius: 30px; }
.pair .key.silent { height: 16px; }
.pair .key.up,
.pair .key.down { height: 34px; }
.pair .key.power { height: 52px; }

.pair figcaption {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
}

.close { padding: 72px 0 28px; }

.close h2 {
  margin: 0 0 22px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 0.9;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: baseline;
  justify-content: flex-end;
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer p { margin: 0; }

.legal {
  width: min(40rem, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.legal h1 {
  margin: 18px 0 8px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(3.2rem, 8vw, 4.6rem);
  line-height: 0.9;
}

.legal .updated { margin: 0 0 8px; color: var(--muted); }

.legal h2 { margin: 2rem 0 0.4rem; font-size: 1.15rem; }

.legal p,
.legal li { color: var(--ink); }

.legal ul { padding-left: 1.2rem; }
.legal li + li { margin-top: 0.35rem; }
.yt-mark { display: block; margin: 12px 0; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .hero-stage { width: min(292px, 100%); justify-self: center; margin-top: 28px; }
  .pair { gap: 16px; padding-top: 48px; }
  .pair figure { width: calc((100% - 16px) / 2); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-stage { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
}

@keyframes rise {
  from { transform: translateY(18px); }
}

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