/* ── Tokens ───────────────────────────────────────────── */
:root {
  --bg: #ffffff;
  --gray: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --blue: #0071e3;   /* buttons */
  --link: #0066cc;   /* text links */
  --display: 'Archivo', var(--font);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', Inter, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  color-scheme: light;
}

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 52px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.47 var(--font); letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3, .hero-sub, .hero-body, .pitch { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 692px; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--blue); color: #fff; }
.skip:focus { top: 8px; }

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.8);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgb(0 0 0 / 0.08);
}
.nav-inner { display: flex; align-items: center; height: 48px; }
.logo { display: flex; align-items: center; gap: 9px; font: 800 15px/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.02em; }
.mark { flex: none; width: 22px; height: 22px; fill: var(--ink); }
.mark-accent { fill: var(--blue); }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 10px; font-size: 13px; letter-spacing: -0.01em; color: rgb(0 0 0 / 0.8); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  border-radius: 980px; border: 1px solid var(--blue); font: 400 17px/1 var(--font); letter-spacing: -0.022em;
  white-space: nowrap; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-fill { background: var(--blue); color: #fff; }
.btn-fill:hover { background: #0077ed; border-color: #0077ed; }
.btn-line { color: var(--blue); }
.btn-line:hover { background: var(--blue); color: #fff; }
.btn:disabled { background: transparent; border-color: currentColor; color: inherit; opacity: 0.5; cursor: not-allowed; }

/* ── Hero ─────────────────────────────────────────────── */
.hero { padding-top: clamp(56px, 10vh, 112px); overflow: hidden; }
.hero .wrap { container-type: inline-size; }
.wordmark {
  margin: 0 0 0 -0.04em; font-family: var(--display); font-weight: 800; font-stretch: 125%;
  font-size: 11.9cqi; line-height: 0.86; letter-spacing: -0.045em; text-transform: uppercase; /* fits container width (text ≈ 8.3em) */
}
.hero-row { display: grid; gap: 28px; margin-top: clamp(28px, 4vw, 48px); align-items: end; }
@media (min-width: 860px) { .hero-row { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.tagline { font-size: clamp(28px, 4vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; }
.hero-side p { max-width: 440px; color: var(--muted); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.38; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.reel {
  margin-top: clamp(56px, 8vw, 96px);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.reel-track { display: flex; gap: 16px; width: max-content; animation: reel 60s linear infinite; }
.reel img { width: clamp(240px, 28vw, 400px); aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; border: 1px solid rgb(0 0 0 / 0.08); }
@keyframes reel { to { transform: translateX(calc(-50% - 8px)); } }

/* Device frames (shared by hero and tiles) */
.browser { overflow: hidden; border-radius: 12px 12px 0 0; background: #fff; border: 1px solid rgb(0 0 0 / 0.08); border-bottom: 0; }
.bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #f1f1f3; border-bottom: 1px solid rgb(0 0 0 / 0.06); }
.bar i { width: 9px; height: 9px; border-radius: 50%; background: #d9d9de; }
.bar span { flex: 1; margin: 0 40px 0 16px; padding: 2px 10px; border-radius: 6px; background: #fff; font-size: 11px; color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.phone { overflow: hidden; border: 6px solid #1d1d1f; border-bottom: 0; border-radius: 34px 34px 0 0; background: #1d1d1f; }
.phone img { width: 100%; border-radius: 26px 26px 0 0; }

/* ── Sections & tiles ─────────────────────────────────── */
.section { padding-top: clamp(64px, 9vw, 112px); }
.section-title { font-size: clamp(28px, 4vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; max-width: 820px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-title span { color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0 auto; padding: 0; width: min(1200px, 100% - 40px); }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden;
  min-height: 440px; padding: 36px 20px 0; border-radius: 18px;
}
.tile-light { background: var(--gray); color: var(--ink); }
.tile-dark { background: #000; color: #f5f5f7; --muted: #a1a1a6; }
.kind { font-size: 14px; color: var(--muted); }
.tile h3 { margin-top: 2px; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
.pitch { margin-top: 6px; max-width: 32ch; font-size: 17px; line-height: 1.3; }
.tile-cta { margin-top: 16px; }
.tile .btn { min-height: 36px; padding: 0 18px; font-size: 15px; }
.tile .btn-fill::after { content: ''; position: absolute; inset: 0; border-radius: 18px; } /* whole tile clickable */
.tile:has(.btn:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.tile .btn:focus-visible { outline: none; }
.tile-dark .btn:disabled { color: #f5f5f7; }

.art { margin-top: auto; padding-top: 28px; width: 72%; display: flex; justify-content: center; }
.art .browser { width: 100%; }
.art .phone { width: 40%; max-width: 170px; }
.art img { transition: transform 0.8s var(--ease); transform-origin: 50% 100%; }
.tile:hover .art img { transform: scale(1.03); }
.tile-dark .browser { border-color: rgb(255 255 255 / 0.12); }
.tile-dark .phone { border-color: #3a3a3c; background: #3a3a3c; }
.initial { display: grid; place-items: center; aspect-ratio: 16 / 10; font-size: 120px; font-weight: 600; color: var(--muted); }

/* ── About ────────────────────────────────────────────── */
.about { margin-top: clamp(64px, 9vw, 112px); padding: clamp(72px, 10vw, 120px) 0; background: var(--gray); text-align: center; }
.about h2, .contact h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.07; font-weight: 600; letter-spacing: -0.035em; }
.about p { margin-top: 20px; font-size: clamp(19px, 2vw, 21px); line-height: 1.4; color: var(--muted); }
.about p:first-of-type { color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.stats div { display: flex; flex-direction: column; align-items: center; }
.stats dd { font-size: clamp(48px, 7vw, 80px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; }
.stats dt { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ── Contact ──────────────────────────────────────────── */
.contact { padding: clamp(72px, 10vw, 120px) 0; text-align: center; }
.contact p { margin-top: 16px; font-size: clamp(19px, 2vw, 21px); color: var(--muted); }
.link-lg { display: inline-block; margin-top: 24px; font-size: clamp(19px, 2.4vw, 24px); color: var(--link); overflow-wrap: anywhere; }
.link-lg:hover { text-decoration: underline; }

/* ── Footer ───────────────────────────────────────────── */
.footer { background: var(--gray); padding: 20px 0 24px; font-size: 12px; line-height: 1.33; letter-spacing: -0.01em; color: var(--muted); }
.fine { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 14px; }
.footer nav { display: flex; gap: 0; }
.footer nav a { color: #424245; padding: 0 10px; border-left: 1px solid var(--line); }
.footer nav a:first-child { padding-left: 0; border-left: 0; }
.footer nav a:hover { text-decoration: underline; }

/* ── Legal page ───────────────────────────────────────── */
.legal { padding: clamp(56px, 9vw, 96px) 0; }
.legal .wrap > * { max-width: 720px; }
.legal h1 { font-size: clamp(40px, 6vw, 56px); line-height: 1.07; font-weight: 600; letter-spacing: -0.035em; }
.legal .updated { margin: 8px 0 40px; color: var(--muted); font-size: 15px; }
.legal h2 { margin: 36px 0 10px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.legal p, .legal li { color: #424245; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 12px 0 0; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--link); }
.legal a:hover { text-decoration: underline; }

/* ── Motion ───────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .tile:hover .art img { transform: none; }
  .reel { overflow-x: auto; }
}

/* ── Small screens ────────────────────────────────────── */
@media (max-width: 734px) {
  .tiles { grid-template-columns: 1fr; gap: 12px; }
  .tile { min-height: 0; padding-top: 32px; }
  .art { width: 88%; }
  .cta .btn { flex: 1 1 auto; }
  .nav-links a { padding: 8px 7px; font-size: 12px; }
  .bar span { display: none; }
}
@media (max-width: 480px) {
  .logo span { display: none; }
}
