/* Latin subsets only, self-hosted from the launch-page design bundle. Both are variable fonts,
   so one file covers every weight used below. */
@font-face {
  font-family: 'Outfit';
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Raleway';
  font-weight: 700 800;
  font-display: swap;
  src: url('fonts/raleway-latin.woff2') format('woff2');
}

:root {
  --ink: #0e2a47;
  --body: #3d5268;
  --muted: #4a5e73;
  --bg: #f4f8fc;
  --brand: #2a8be0;
  --link: #1665b8;
  --link-hover: #0f4f92;
  --display: Raleway, 'Trebuchet MS', sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Outfit, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
a { color: var(--link); }
a:hover { color: var(--link-hover); }

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 100vh;
}

/* Brand header */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img { width: 44px; height: 44px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--ink); }
.brand-by { font-size: 12px; color: var(--muted); }

.home-main { display: flex; flex-direction: column; gap: 28px; }

/* Hero */
.hero { display: flex; flex-direction: column; gap: 16px; }
/* Hidden on phones by request; shown from the desktop breakpoint below. */
h1 {
  display: none;
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.lede { margin: 0; font-size: 17px; line-height: 1.55; color: var(--body); text-wrap: pretty; }

/* Store badges */
.stores { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 58px;
  border-radius: 14px;
  background: #0b0d10;
  border: 1px solid #3a3d42;
  color: #fff;
  text-decoration: none;
  transition: transform 160ms ease;
}
.store:hover { color: #fff; }
.store:active { transform: scale(0.98); }
.store-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 118px; }
.store-small { font-size: 12px; color: #c9ced6; }
.store-big { font-size: 20px; font-weight: 600; }

/* Blue showcase card with the phone */
.showcase {
  position: relative;
  border-radius: 28px;
  background: var(--brand);
  padding: 32px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  overflow: hidden;
}
.showcase-bg { position: absolute; left: 0; top: 0; pointer-events: none; }

.phone { position: relative; width: 262px; height: 468px; }
.phone-btn { position: absolute; width: 3px; border-radius: 2px; background: #3a3d42; }
.phone-body {
  position: absolute;
  inset: 0;
  padding: 10px;
  border-radius: 44px;
  background: #15171a;
  border: 2px solid #5b6068;
  box-shadow: 0 28px 56px rgba(10, 40, 80, 0.45), 0 8px 18px rgba(10, 40, 80, 0.25);
}
.screen {
  width: 238px;
  height: 424px;
  border-radius: 34px;
  overflow: hidden;
  background: var(--brand);
  touch-action: pan-y;
}
.track {
  display: flex;
  height: 424px;
  transition: transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
}
.track img { width: 238px; height: 424px; flex-shrink: 0; object-fit: cover; display: block; }

.dots { position: relative; display: flex; gap: 2px; align-items: center; }
.dots button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dots span {
  display: block;
  height: 8px;
  width: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 250ms ease, background 250ms ease;
}
.dots [aria-current='true'] span { width: 24px; background: #fff; }

/* Beta install sheet: a bottom sheet on phones, a centred card from the desktop breakpoint.
   Padding sits on .sheet-inner so a click landing on the <dialog> itself is always the backdrop. */
.sheet {
  margin: auto 0 0;
  width: 100%;
  max-width: 100%;
  max-height: 90dvh;
  padding: 0;
  border: 0;
  border-radius: 24px 24px 0 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 -12px 40px rgba(14, 42, 71, 0.18);
  opacity: 1;
  transform: none;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease,
    overlay 280ms allow-discrete, display 280ms allow-discrete;
}
@starting-style { .sheet[open] { transform: translateY(40px); opacity: 0; } }
.sheet::backdrop { background: rgba(14, 42, 71, 0.5); }
body:has(.sheet[open]) { overflow: hidden; }

.sheet-inner { padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.sheet-head h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 20px; }
.sheet-close {
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.sheet-close:hover { background: var(--bg); }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.step { position: relative; display: flex; gap: 14px; }
/* Connector between the two step icons. */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 27px;
  top: 64px;
  bottom: -20px;
  width: 2px;
  border-radius: 1px;
  background: #dbe6f1;
}
.step-icon { width: 56px; height: 56px; flex-shrink: 0; border-radius: 13px; display: block; }
.step-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.step-num { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.step h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 17px; }
.step p { margin: 0 0 10px; font-size: 15px; line-height: 1.5; color: var(--body); }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--link); color: #fff; }
.btn-outline { border: 1.5px solid var(--brand); color: var(--link); }
.btn-outline:hover { background: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  .track, .dots span, .store, .sheet, .btn { transition: none; }
}

/* Footer */
.footer {
  margin-top: auto;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* Desktop: the design is phone-first; past tablet width the hero and showcase sit side by side. */
@media (min-width: 860px) {
  h1 { display: block; }
  .page { padding: 32px 40px 36px; }
  .home-main {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 56px;
    align-items: center;
  }
  .lede { font-size: 19px; max-width: 34em; }
  .stores { flex-direction: row; }
  .store { width: 220px; }
  .sheet { margin: auto; max-width: 440px; border-radius: 24px; box-shadow: 0 24px 60px rgba(14, 42, 71, 0.25); }
  .sheet-inner { padding: 24px 28px 28px; }
}
