@font-face {
  font-family: "Geometria Narrow";
  src: url("/mobile/android/onboarding/assets/geometria-narrow-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Geometria Narrow";
  src: url("/mobile/android/onboarding/assets/geometria-narrow-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --canvas: #ffffff;
  --surface: #f7f7f7;
  --ink: #000000;
  --secondary: #595959;
  --muted: #696969;
  --line: #eceeed;
  --outline: #cbcacb;
  --yellow: #ffbf00;
  --yellow-hover: #e9ae00;
  --alert: #9a2c25;
  font-family: "Geometria Narrow", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #121212;
    --surface: #1c1c1c;
    --ink: #f5f5f5;
    --secondary: #d0d0d0;
    --muted: #c4c4c4;
    --line: #393939;
    --outline: #747474;
    --yellow-hover: #ffd04d;
    --alert: #ffb4a9;
  }
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
}

a {
  color: inherit;
}

.no-script {
  margin: 12px 0;
  padding: 10px 12px;
  border-inline-start: 3px solid var(--yellow);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}

.page {
  width: min(100% - 40px, 960px);
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.brand {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  width: 36px;
  height: 42px;
  display: block;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.content-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  align-items: start;
  gap: clamp(32px, 7vw, 72px);
  padding: 38px 0 44px;
}

.intro {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.lead {
  max-width: 560px;
  margin-bottom: 22px;
  color: var(--secondary);
  font-size: 18px;
  line-height: 1.45;
}

.download-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--yellow);
  border-radius: 0;
  background: var(--yellow);
  color: #000000;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.download-button:hover:not([aria-disabled="true"]) {
  border-color: var(--yellow-hover);
  background: var(--yellow-hover);
}

.download-button[aria-disabled="true"] {
  opacity: 0.62;
  cursor: wait;
}

:focus-visible {
  outline: 3px solid #1d5d9b;
  outline-offset: 3px;
}

.release-meta {
  min-height: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 9px 0 0;
  color: var(--secondary);
  font-size: 14px;
}

.meta-separator {
  color: var(--muted);
}

.feed-error {
  max-width: 480px;
  margin-top: 14px;
  padding: 12px 14px;
  border-inline-start: 3px solid var(--alert);
  background: var(--surface);
  color: var(--ink);
}

.feed-error[hidden] {
  display: none;
}

.feed-error p {
  margin: 0 0 8px;
  color: var(--alert);
  font-size: 14px;
}

.retry-button {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--outline);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.retry-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.install {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.install h2,
.qr-panel h2 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.install ol {
  margin: 0;
  padding-inline-start: 23px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

.install li {
  padding-inline-start: 3px;
  margin: 0 0 7px;
}

.install li::marker {
  color: var(--secondary);
  font-weight: 700;
}

.update-note {
  max-width: 520px;
  margin: 17px 0 8px;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.4;
}

.platform-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.qr-panel {
  padding: 16px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: var(--surface);
}

.qr-panel h2 {
  font-size: 17px;
}

.qr-panel > p {
  margin-bottom: 12px;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.35;
}

.qr-frame {
  width: fit-content;
  margin: 0 auto 10px;
  padding: 8px;
  background: #ffffff;
}

.qr-frame img {
  display: block;
  width: 168px;
  height: 168px;
  image-rendering: pixelated;
}

.qr-address {
  display: block;
  overflow-wrap: anywhere;
  color: var(--secondary);
  font-size: 12px;
  text-align: center;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.page-footer {
  min-height: 50px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 12px 0 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.page-footer a {
  color: var(--secondary);
  text-underline-offset: 2px;
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 32px, 560px);
  }

  .content-layout {
    display: block;
    padding: 28px 0 30px;
  }

  .qr-panel {
    display: none;
  }

  .lead {
    font-size: 17px;
  }

  .download-button {
    width: 100%;
    max-width: 360px;
  }

  .page-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
