/* Torro landing page — brutalist B&W
   Accent theming: swap --accent/--ink-on-accent for "Blood red" (#e01818/#fff)
   or "Safety yellow" (#f4e400/#000). Default is pure B&W. */

:root {
  --accent: #ffffff;
  --ink-on-accent: #000000;
  --hairline: rgba(255, 255, 255, 0.16);
  --hairline-soft: rgba(255, 255, 255, 0.1);
  --font-display: 'Anton', sans-serif;
  --font-body: 'Archivo', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --pad-x: clamp(20px, 6vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  background: #000;
  color: #fff;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

::selection { background: #fff; color: #000; }

.container { max-width: 1240px; margin: 0 auto; }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Shared type ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8f8f8f;
  margin-bottom: 16px;
}

.kicker-rule {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rule { width: 30px; height: 1px; background: #666; }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 0.94;
  text-transform: uppercase;
}

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid var(--hairline-soft);
}

.nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #fff;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid #fff;
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 38px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cfcfcf;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover { color: #fff; }

.nav-cta {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--accent);
  color: var(--ink-on-accent);
  padding: 11px 20px;
  transition: filter 0.15s ease;
}

.nav-cta:hover { filter: invert(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 104px) var(--pad-x) clamp(8px, 3vw, 32px);
}

.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
}

.hero-copy { flex: 1 1 440px; min-width: 300px; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(46px, 8.2vw, 108px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 26px;
  max-width: 520px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.62;
  color: #b0b0b0;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.appstore-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  background: var(--accent);
  color: var(--ink-on-accent);
  padding: 15px 26px;
  transition: transform 0.15s ease;
}

.appstore-btn:hover { transform: translateY(-2px); }

.appstore-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}

.appstore-btn-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}

.appstore-btn-label {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 18px;
}

.ghost-btn {
  text-decoration: none;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  padding: 16px 26px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ghost-btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.hero-fineprint {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6c6c6c;
}

.hero-art {
  flex: 1 1 360px;
  min-width: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-terry {
  width: clamp(280px, 40vw, 540px);
  height: auto;
  mix-blend-mode: screen;
}

/* ---------- Marquee ---------- */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 28s linear infinite;
  will-change: transform;
}

.marquee-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- How it works ---------- */
.how { padding: clamp(72px, 10vw, 140px) var(--pad-x); }

.how-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.how-aside {
  max-width: 360px;
  font-size: 16px;
  line-height: 1.6;
  color: #9a9a9a;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.step {
  background: #000;
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  min-height: 340px;
}

.step-num {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 84px);
  line-height: 1;
  color: var(--accent);
}

.step-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  text-transform: uppercase;
  margin-top: auto;
  letter-spacing: 0.01em;
}

.step-desc {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.6;
  color: #a0a0a0;
}

/* ---------- Features ---------- */
.features { padding: clamp(40px, 6vw, 80px) var(--pad-x) clamp(72px, 10vw, 140px); }

.features-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.feature-card {
  border: 1px solid var(--hairline);
  padding: clamp(28px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 300px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.03);
}

.feature-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  text-transform: uppercase;
}

.feature-desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: #a0a0a0;
  margin-top: auto;
}

/* ---------- Compete / Leaderboard ---------- */
.compete {
  padding: clamp(72px, 10vw, 140px) var(--pad-x);
  border-top: 1px solid var(--hairline-soft);
}

.compete-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
}

.compete-copy { flex: 1 1 380px; min-width: 300px; }

.compete-sub {
  margin-top: 22px;
  max-width: 480px;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.62;
  color: #a8a8a8;
}

.stat-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stat {
  border: 1px solid var(--hairline);
  padding: 16px 22px;
  min-width: 120px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--accent);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
  margin-top: 4px;
}

.compete-visual {
  flex: 1 1 320px;
  min-width: 280px;
  display: flex;
  justify-content: center;
  position: relative;
}

.compete-terry {
  position: absolute;
  right: 0;
  bottom: -20px;
  width: 230px;
  height: auto;
  mix-blend-mode: screen;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* Phone mockup */
.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  border: 11px solid #161616;
  border-radius: 48px;
  background: #000;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
  outline: 1px solid #2c2c2c;
}

.phone-notch {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 26px;
  background: #161616;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen { padding: 26px 18px 22px; }

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #9a9a9a;
  margin-bottom: 22px;
}

.phone-statusbar-icons { letter-spacing: 0.1em; }

.phone-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
}

.phone-title {
  font-family: var(--font-display);
  font-size: 26px;
  text-transform: uppercase;
  line-height: 1;
}

.phone-period {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7d7d7d;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-top: 1px solid #1c1c1c;
}

.lb-rank {
  width: 22px;
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
}

.lb-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 15px;
}

.lb-info { flex: 1; min-width: 0; }

.lb-name { font-weight: 700; font-size: 14.5px; }

.lb-streak {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #7d7d7d;
  letter-spacing: 0.04em;
}

.lb-score { text-align: right; }

.lb-pts { font-family: var(--font-display); font-size: 18px; }

.lb-pts-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #7d7d7d;
}

/* Highlighted "You" row */
.lb-row-you {
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.08);
  border-top: none;
  border-left: 3px solid var(--accent);
  margin: 2px 0;
}

.lb-streak-you { color: #9a9a9a; }

/* Rows fading toward the bottom of the board */
.lb-row-3 .lb-rank { color: #bdbdbd; }
.lb-row-3 .lb-avatar { border-color: #888; color: #ccc; }
.lb-row-3 .lb-pts { color: #ddd; }

.lb-row-4 .lb-rank { color: #8a8a8a; }
.lb-row-4 .lb-avatar { border-color: #666; color: #aaa; }
.lb-row-4 .lb-name { color: #ccc; }
.lb-row-4 .lb-pts { color: #bbb; }

.lb-row-napping { opacity: 0.55; }
.lb-row-napping .lb-rank { color: #6a6a6a; }
.lb-row-napping .lb-avatar { border-color: #444; color: #888; }
.lb-row-napping .lb-name { color: #999; }
.lb-row-napping .lb-streak { color: #6a6a6a; }
.lb-row-napping .lb-pts { color: #888; }
.lb-row-napping .lb-pts-label { color: #6a6a6a; }

.phone-footer {
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7d7d7d;
  border-top: 1px solid #1c1c1c;
  padding-top: 14px;
}

/* ---------- Terry's story ---------- */
.story {
  padding: clamp(72px, 10vw, 140px) 0;
  border-top: 1px solid var(--hairline-soft);
}

.story .container { padding: 0 var(--pad-x); }

.story-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.story-aside {
  max-width: 360px;
  font-size: 16px;
  line-height: 1.6;
  color: #9a9a9a;
}

.story-strip {
  display: flex;
  gap: clamp(14px, 2vw, 22px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 max(var(--pad-x), calc((100vw - 1240px) / 2)) 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.story-strip::-webkit-scrollbar { height: 4px; }
.story-strip::-webkit-scrollbar-track { background: transparent; }
.story-strip::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); }

.story-panel {
  flex: 0 0 auto;
  width: min(420px, 78vw);
  scroll-snap-align: start;
  border: 1px solid var(--hairline);
  background: #000;
}

.story-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.story-caption {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--hairline);
}

.story-num {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
}

.story-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.story-hint {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6c6c6c;
}

/* ---------- Final CTA (inverted) ---------- */
.cta {
  background: #fff;
  color: #000;
  padding: clamp(64px, 9vw, 128px) var(--pad-x);
  position: relative;
  overflow: hidden;
}

.cta ::selection { background: #000; color: #fff; }

.cta-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
}

.cta-copy { flex: 1 1 460px; min-width: 300px; }

.cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 86px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.cta-sub {
  margin-top: 22px;
  max-width: 460px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: #333;
}

.cta-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.appstore-btn-inverted {
  background: #000;
  color: #fff;
  padding: 16px 28px;
}

.appstore-btn-inverted .appstore-btn-eyebrow { opacity: 0.8; }

.cta-fineprint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
}

/* ---------- Legal pages ---------- */
.legal {
  padding: clamp(56px, 8vw, 104px) var(--pad-x) clamp(72px, 10vw, 140px);
}

.legal-inner { max-width: 760px; margin: 0 auto; }

.legal-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.legal-updated {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6c6c6c;
}

.legal h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 25px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-top: clamp(44px, 6vw, 64px);
  padding-top: clamp(28px, 4vw, 36px);
  border-top: 1px solid var(--hairline);
}

.legal p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: #a8a8a8;
}

.legal ul {
  margin-top: 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.7;
  color: #a8a8a8;
}

.legal li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
}

.legal strong { color: #fff; font-weight: 700; }

.legal a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.4); }
.legal a:hover { text-decoration-color: #fff; }

/* ---------- Footer ---------- */
.footer {
  background: #000;
  padding: clamp(56px, 7vw, 88px) var(--pad-x) 36px;
  border-top: 1px solid var(--hairline-soft);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-brand { flex: 1 1 280px; max-width: 360px; }

.footer-brand-link { margin-bottom: 18px; }

.footer-tagline {
  font-size: 14.5px;
  line-height: 1.6;
  color: #888;
  max-width: 300px;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(40px, 6vw, 80px);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-link {
  color: #cfcfcf;
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.15s ease;
}

.footer-link:hover { color: #fff; }

.footer-bottom {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #6a6a6a;
}
