/*
 * Varji landing — plain CSS, no build step.
 *
 * Color tokens MIRROR react-native/global.css (@theme). Same names, same
 * values. Edit both together when the app palette changes.
 */
:root {
  /* Defaults */
  --color-surface: #0c0c0d;
  --color-line: #232326;
  --color-symbols: #c9c9cf;
  --color-invert-symbols: #131313;

  /* Highlights */
  --color-surface-highlight: #161618;
  --color-line-highlight: #f3f3f1;
  --color-symbols-highlight: #f3f3f1;

  /* Muted */
  --color-surface-muted: #232326;
  --color-symbols-muted: #8b8b90;

  /* Primary */
  --color-surface-primary: #ed9a0e;
  --color-surface-primary-active: #c87f06;
  --color-line-primary: #ed9a0e;
  --color-symbols-primary: #ed9a0e;
  --color-symbols-primary-muted: #dab474;
  --color-invert-symbols-primary: #131313;

  /* Secondary */
  --color-line-secondary: #303036;
  --color-symbols-secondary: #e4e4e8;

  /* Phone depth: a soft dark drop plus a faint amber glow (a hard offset shadow
     read as the screenshot overflowing its frame on the dark ground). */
  --shadow-phone: 0 40px 80px rgb(0 0 0 / 0.7), 0 0 140px rgb(237 154 14 / 0.16);

  /* Layout */
  --gutter: 24px;
  --content-max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  color: var(--color-symbols);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: var(--color-symbols-muted);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-symbols-highlight);
  text-decoration-color: var(--color-symbols-primary);
}

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

.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Lined header — the app's ScreenHeader language: hairline row, uppercase tracked title. */
.site-header {
  border-bottom: 1px solid var(--color-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-symbols-highlight);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.header-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-symbols-muted);
  text-decoration: none;
}

/* Hero */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-block: 56px;
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-symbols-primary);
}

.slogan {
  margin: 0 0 24px;
  font-size: clamp(40px, 8vw, 72px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-symbols-highlight);
  text-wrap: balance;
}

.slogan em {
  font-style: normal;
  color: var(--color-symbols-primary);
}

.lede {
  margin: 0 0 36px;
  max-width: 34em;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--color-symbols);
  text-wrap: pretty;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

/* Apple's badge: shown as-is, no hover effect (badge guidelines). */
.badge {
  display: inline-block;
  border-radius: 8px;
}

.badge:focus-visible {
  outline: 2px solid var(--color-line-primary);
  outline-offset: 4px;
}

.badge img {
  height: 56px;
  width: auto;
}

/* Phone frame: black bezel, soft depth. Screen radius is concentric (46 - 12). */
.phone {
  justify-self: center;
  width: min(300px, 78vw);
  margin: 0;
  padding: 12px;
  border-radius: 46px;
  background: #000;
  border: 1px solid var(--color-line-secondary);
  box-shadow: var(--shadow-phone);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 34px;
  aspect-ratio: 640 / 1305;
}

@media (min-width: 960px) {
  /* Two columns. The whole hero is centered vertically in the space between
     header and footer; the copy is centered against the phone. */
  .hero {
    align-items: center;
  }

  .hero .wrap {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    align-items: center;
    gap: 64px;
    padding-block: 48px;
  }

  /* Scales with the viewport, capped so "Guided workouts." stays on one line
     in the text column even with a wide fallback font (Arial/Liberation). */
  .slogan {
    font-size: min(68px, 6.5vw);
  }

  .phone {
    width: min(340px, 100%);
    justify-self: end;
    transform: rotate(5deg);
  }
}

/* Footer — hairline top, small uppercase links. */
.site-footer {
  border-top: 1px solid var(--color-line);
  font-size: 13px;
  color: var(--color-symbols-muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer nav a {
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-footer nav a.email {
  letter-spacing: 0;
  text-transform: none;
}

/* Text pages (terms, privacy) */
.page {
  flex: 1;
}

.page .wrap {
  max-width: 760px;
  padding-block: 48px 80px;
}

.page h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-symbols-highlight);
}

.page .updated {
  margin: 0 0 40px;
  font-size: 14px;
  color: var(--color-symbols-muted);
}

.page h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-symbols-highlight);
}

.page p,
.page li {
  max-width: 68ch;
}

.page ul {
  padding-left: 1.2em;
}

.page li + li {
  margin-top: 8px;
}

.page strong {
  color: var(--color-symbols-secondary);
}

.notice {
  padding: 16px 20px;
  border: 1px solid var(--color-line-primary);
  border-radius: 12px;
  color: var(--color-symbols-primary-muted);
}
