/* Zinger landing page
   Tokens follow the iOS design system (ZingerDesignSystem.swift / brand-colors.md):
   warm black canvas, Gray Dark 80 cards, Gray Light text ramp, brand scarlet fills,
   and the lighter scarlet the app uses for scarlet text on dark surfaces. */

:root {
  --canvas: #1a1a1c;
  --card: #212325;
  --card-edge: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f7f8;
  --text-2: #bfc6cb;
  --text-3: #868e92;
  --scarlet: #ba0c2f;
  --scarlet-pressed: #70071c;
  --scarlet-text: #ff6b7f;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --radius: 20px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

:focus-visible { outline: 3px solid var(--scarlet-text); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--scarlet); color: #fff; }

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

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 20;
  padding: 12px 16px; border-radius: 999px;
  background: var(--text); color: var(--canvas); font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Type */
.eyebrow {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--scarlet-text);
}
h1 {
  margin-top: 18px;
  font-size: clamp(2.5rem, 10.5vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}
.lede {
  margin-top: 22px;
  max-width: 34ch;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text-2);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 24px; border-radius: 999px; border: 0;
  font-size: 1rem; font-weight: 600; white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--scarlet); color: #fff; }
.btn-primary:hover { background: var(--scarlet-pressed); }
.btn-ghost {
  min-height: 40px; padding: 8px 16px;
  font-size: 0.9375rem;
  background: transparent; color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--text-2); }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.top .btn-ghost { display: none; }
.brand { display: block; width: 108px; }
.brand-small { width: 88px; }

/* Hero */
.hero { padding: 56px 0 0; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 32px; }
.actions-note { font-size: 0.875rem; color: var(--text-3); }

.device { position: relative; justify-self: center; width: min(300px, 76vw); margin-top: 8px; }
.device::before {
  content: ""; position: absolute; inset: 10% -30% -10%; z-index: 0;
  background: radial-gradient(closest-side, rgba(186, 12, 47, 0.28), transparent 70%);
  pointer-events: none;
}
.phone {
  position: relative; z-index: 1;
  padding: 9px; border-radius: 46px; background: #0b0b0c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 40px 80px -24px rgba(0, 0, 0, 0.8);
}
.phone img { border-radius: 38px; }
.device figcaption { position: relative; z-index: 1; margin-top: 18px; text-align: center; font-size: 0.8125rem; color: var(--text-3); }

/* Facts */
.facts { padding: 64px 0 8px; }
.facts-list { display: grid; gap: 36px; border-top: 1px solid var(--line); padding-top: 40px; }
.facts-list li { display: grid; grid-template-columns: 2.25rem 1fr; column-gap: 12px; }
.num { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; color: var(--scarlet-text); padding-top: 0.35em; }
.facts-list h2 { grid-column: 2; font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; }
.facts-list p { grid-column: 2; margin-top: 8px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.6; max-width: 36ch; }

/* Glimpse */
.glimpse { padding: 72px 0 0; }
.section-head h2 {
  margin-top: 14px;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1.1; letter-spacing: -0.025em; font-weight: 700;
  text-wrap: balance;
}
.screens {
  display: flex; gap: 16px;
  margin: 32px calc(var(--gutter) * -1) 0;
  padding: 4px var(--gutter) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screens::-webkit-scrollbar { display: none; }
.screens li { flex: 0 0 min(280px, 74vw); scroll-snap-align: start; }
.screens img {
  width: 100%; aspect-ratio: 660 / 1160; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--card-edge);
  background: var(--card);
}
.screens p { margin-top: 14px; font-size: 0.9375rem; line-height: 1.5; color: var(--text-2); }
.screens strong { display: block; color: var(--text); font-weight: 600; }

/* Beta */
.beta { padding: 72px 0 80px; }
.beta-card {
  padding: 36px 24px 32px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--card-edge);
}
.beta-card h2 {
  margin-top: 14px;
  font-size: clamp(1.875rem, 7vw, 3rem);
  line-height: 1.05; letter-spacing: -0.03em; font-weight: 700;
  text-wrap: balance;
}
.beta-copy { margin: 18px 0 28px; max-width: 46ch; font-size: 1.0625rem; line-height: 1.55; color: var(--text-2); }
.beta-card .btn-primary { width: 100%; }
.fine { margin-top: 16px; font-size: 0.8125rem; line-height: 1.5; color: var(--text-3); }
.fine[hidden] { display: none; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.foot-meta { display: flex; gap: 20px; font-size: 0.8125rem; color: var(--text-3); }

/* Dialog */
dialog {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0; border: 0; border-radius: 24px;
  background: var(--card); color: var(--text);
  box-shadow: 0 0 0 1px var(--card-edge), 0 40px 80px -20px rgba(0, 0, 0, 0.8);
}
dialog::backdrop { background: rgba(10, 8, 9, 0.7); backdrop-filter: blur(6px); }
.dialog-body { padding: 28px 24px 24px; }
.dialog-body h2 { margin-top: 10px; font-size: 1.75rem; letter-spacing: -0.025em; line-height: 1.1; }
.dialog-body p:not(.eyebrow) { margin-top: 12px; color: var(--text-2); line-height: 1.55; }
.dialog-body .btn { width: 100%; margin-top: 24px; }

/* Tablet and up */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .brand { width: 120px; }
  .top .btn-ghost { display: inline-flex; }
  .hero { padding-top: 80px; }
  .lede { font-size: 1.1875rem; }
  .facts { padding-top: 88px; }
  .facts-list { grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 48px; }
  .facts-list li { display: block; }
  .facts-list h2 { margin-top: 16px; }
  .glimpse { padding-top: 96px; }
  .screens { margin-inline: 0; padding: 0; overflow: visible; gap: 24px; }
  .screens li { flex: 1 1 0; }
  .beta { padding: 96px 0 104px; }
  .beta-card { padding: 56px; }
  .beta-card .btn-primary { width: auto; min-width: 240px; }
}

/* Desktop */
@media (min-width: 960px) {
  :root { --gutter: 48px; }
  .top-row { height: 76px; }
  .hero { padding: 72px 0 24px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: center; gap: 64px; }
  h1 { font-size: clamp(3.25rem, 4.4vw, 4rem); }
  .lede { max-width: 40ch; }
  .device { width: 340px; margin-top: 0; }
  .beta-card { padding: 72px 64px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; align-items: center; }
  .beta-card .eyebrow, .beta-card h2, .beta-copy { grid-column: 1; }
  .beta-copy { margin-bottom: 0; }
  .beta-card .btn-primary { grid-column: 2; grid-row: 1 / 4; }
  .beta-card .fine { grid-column: 1 / -1; margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:active { transform: none; }
}
