/* Uruka — urukaiq.com
   Design tokens mirror the native app (iOS source of truth). */

@font-face {
  font-family: "FiraGO";
  src: url("/fonts/firago-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FiraGO";
  src: url("/fonts/firago-semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #131313;        /* UrukaColors.ink */
  --black: #000000;      /* UrukaColors.black — primary CTA */
  --muted: #999797;      /* UrukaColors.muted */
  --border: #ececec;     /* UrukaColors.border */
  --burgundy: #4d0c12;   /* UrukaColors.burgundy — brand accent */
  --bg: #ffffff;
  --radius-btn: 4px;     /* app button radius */
  --page-x: 20px;        /* UrukaSpacing.pageHorizontal */
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: "FiraGO", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Layout ---- */
.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
  padding: 48px var(--page-x);
}

.logo {
  height: 30px;
  width: auto;
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 34rem;
}

h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.subtitle {
  margin: 0;
  font-size: clamp(15px, 3.6vw, 18px);
  color: var(--muted);
}

/* ---- Primary CTA (mirrors app's black button) ---- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 34px;
  background: var(--black);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.cta:hover {
  opacity: 0.9;
}

.cta:active {
  transform: scale(0.985);
}

.cta svg {
  width: 18px;
  height: 18px;
}

/* ---- Store badges ---- */
.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.badge {
  display: inline-flex;
  border-radius: 10px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.badge img {
  height: 52px;
  width: auto;
  display: block;
}

.badge:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* ---- Text links ---- */
.link {
  color: var(--burgundy);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease;
}

.link:hover {
  border-bottom-color: currentColor;
}

/* ---- Accessible focus ---- */
:where(a, button):focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
  border-radius: var(--radius-btn);
}

/* ---- Gentle entrance (app uses soft springs) ---- */
@media (prefers-reduced-motion: no-preference) {
  .page > * {
    animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .page > *:nth-child(2) { animation-delay: 0.05s; }
  .page > *:nth-child(3) { animation-delay: 0.1s; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
