:root {
  --bg: #171916;
  --ink: #171916;
  --surface: #1e211c;
  --paper: #f1f0e7;
  --muted: #b9bdb0;
  --teal: #00e5ff;
  --line: rgb(241 240 231 / 16%);
  --font-body: "General Sans", "Avenir Next", sans-serif;
  --font-display: "Barlow Condensed", Impact, sans-serif;
  --font-mono: "Spline Sans Mono", "SF Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a,
button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 5px;
}

.download-shell {
  width: min(100%, 760px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand img {
  display: block;
  border-radius: 10px;
}

.brand strong {
  color: var(--muted);
  font-weight: 500;
}

.download-card {
  margin: auto 0;
  padding: clamp(42px, 8vh, 80px) 0;
}

.eyebrow,
.site-note,
.guide-kicker {
  font: 500 10px/1.5 var(--font-mono);
  letter-spacing: 0.09em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgb(0 229 255 / 10%);
}

h1 {
  margin: 0;
  font: 700 clamp(78px, 23vw, 140px) / 0.78 var(--font-display);
  letter-spacing: -0.025em;
}

h1 em {
  color: var(--teal);
  font-style: normal;
}

.intro {
  max-width: 480px;
  margin: 30px 0 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.chrome-button {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 0;
  background: var(--teal);
  color: var(--ink);
  padding: 17px 20px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.chrome-button span {
  font-size: 25px;
  line-height: 1;
}

.store-badge-link {
  display: inline-flex;
  min-width: 44px;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.store-badge {
  display: block;
  width: auto;
  object-fit: contain;
}

.store-badge[data-store="app-store"] {
  height: 52px;
}

.store-badge[data-store="google-play"] {
  height: 77px;
}

.primary-download {
  align-self: flex-start;
}

.store-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.store-links a {
  text-underline-offset: 4px;
}

.store-links a,
.store-links a:visited {
  color: var(--muted);
}

.site-note {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #858a7d;
}

.browser-guide {
  position: fixed;
  z-index: 10;
  inset: 0;
  min-height: 100svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--teal);
  color: var(--ink);
  padding: max(28px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
}

.browser-guide[hidden] {
  display: none;
}

.browser-guide a:focus-visible {
  outline-color: var(--ink);
}

.chrome-button[hidden] {
  display: none !important;
}

.menu-arrow {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  right: 10px;
  width: 92px;
  height: 140px;
}

.menu-arrow svg {
  width: 100%;
  height: 100%;
}

.menu-arrow path {
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-content {
  width: min(100%, 540px);
  margin: min(30vh, 240px) auto 0;
}

.guide-kicker {
  margin: 0 0 18px;
}

.guide-content h2 {
  max-width: 460px;
  margin: 0;
  font: 700 clamp(58px, 18vw, 96px) / 0.88 var(--font-display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.guide-copy {
  max-width: 430px;
  margin: 25px 0 18px;
  font-size: 16px;
  line-height: 1.55;
}

.guide-step {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0;
  padding: 18px;
  border: 2px solid var(--ink);
}

.guide-step span {
  letter-spacing: 3px;
}

.guide-note {
  margin: 10px 0 24px;
  font-size: 12px;
  opacity: 0.72;
}

.chrome-button {
  background: var(--ink);
  color: var(--paper);
}

.chrome-button {
  text-decoration: none;
}

.store-fallback {
  align-self: flex-start;
  margin-top: 14px;
}

.guide-beta-link {
  display: flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  margin-top: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-underline-offset: 3px;
}

.copy-fallback {
  max-width: 430px;
  margin: 22px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.copy-fallback a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

.copy-fallback a:visited {
  color: var(--ink);
}

@media (min-width: 700px) {
  .download-shell {
    padding-inline: 38px;
  }

}

@media (prefers-reduced-motion: no-preference) {
  .menu-arrow {
    animation: point-menu 1.6s ease-in-out infinite alternate;
  }

  @keyframes point-menu {
    to {
      transform: translate(4px, -5px);
    }
  }
}

/* Wide screens show both store badges and the QR code. */
.wide-only {
  display: none !important;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.desktop-access {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.desktop-download-link {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.desktop-download-link a,
.desktop-download-link a:visited {
  color: var(--teal);
  text-underline-offset: 4px;
}

.desktop-scan-report {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.desktop-scan-report a {
  color: var(--muted);
  text-underline-offset: 4px;
}

.scan-panel {
  width: 300px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}

.qr-frame {
  padding: 18px;
  background: var(--paper);
}

.qr-code {
  display: block;
  width: 100%;
  height: auto;
}

.scan-panel h2 {
  margin: 22px 0 8px;
  font: 700 30px/1 var(--font-display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.scan-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .wide-only {
    display: revert !important;
  }

  .store-badges .wide-only {
    display: inline-flex !important;
  }

  .store-links {
    display: none;
  }

  .download-shell {
    width: min(100%, 1120px);
  }

  .download-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 72px;
  }
}

/* The Play badge PNG carries 41/250 of transparent padding on every side; cancel it so the
   visible badge lines up with the App Store badge. */
.store-badges .store-badge[data-store="google-play"] {
  margin: -12.6px;
}
