/* Fonts, brand tokens, store buttons and phone frame of the download page. */

@font-face { font-family: Sora; src: url('Sora-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Sora; src: url('Sora-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Sora; src: url('Sora-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Sora; src: url('Sora-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  /* apps/mobile-app/src/core/constants/Colors.ts */
  --navy: #001a43;          /* primary 10 */
  --primary: #455e91;       /* primary 40 */
  --primary-30: #2c4678;
  --primary-container: #d8e2ff;
  --surface: #faf9ff;       /* neutral 98 */
  --on-surface-variant: #44474f;
  /* the four bars of the app icon */
  --brand-green: #8cd35e;
  --brand-pink: #e1247f;
  --brand-cyan: #14b4de;
  --brand-white: #ffffff;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Sora, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

/* ---------- Store buttons ---------- */

.stores { display: flex; flex-wrap: wrap; gap: 12px; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  padding: 12px 22px 12px 18px;
  border-radius: 16px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 26, 67, 0.28); }
.store-btn:active { transform: translateY(0); }
.store-btn:focus-visible { outline: 3px solid var(--brand-cyan); outline-offset: 3px; }

.store-btn svg { width: 28px; height: 28px; flex: none; fill: currentColor; }

.store-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn small { font-size: 11px; font-weight: 400; opacity: 0.85; }
.store-btn strong { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }

/* The button that matches the visitor's phone gets a brand-coloured ring. */
html[data-platform='ios'] .store-btn[data-store='ios'],
html[data-platform='android'] .store-btn[data-store='android'] {
  box-shadow: 0 0 0 3px var(--brand-cyan), 0 10px 24px rgba(0, 26, 67, 0.28);
}

/* ---------- Phone frame ---------- */

.phone {
  position: relative;
  width: 260px;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(145deg, #2a2d35, #0b0c10 40%, #1d1f26);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08),
    0 30px 60px -12px rgba(0, 26, 67, 0.45),
    0 18px 36px -18px rgba(0, 0, 0, 0.5);
}

.phone::before { /* side button */
  content: '';
  position: absolute;
  right: -3px;
  top: 22%;
  width: 3px;
  height: 64px;
  border-radius: 0 3px 3px 0;
  background: #1d1f26;
}

.phone img,
.phone .screen {
  width: 100%;
  aspect-ratio: 804 / 1748;
  border-radius: 37px;
  object-fit: cover;
  object-position: top;
  background: var(--surface);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
