/* Gaffer — gaffer.win
   Palette is the app's own: floodlit-pitch dark, chalk-line white, turf accent.
   Type: Barlow Condensed (team-sheet display) / Barlow (body) / IBM Plex Mono (data). */

:root {
  --night: #0b0f14;
  --pitch: #0e3b2a;
  --card: #141a22;
  --card-up: #1c242f;
  --line: rgba(242, 245, 243, 0.1);
  --turf: #00e58a;
  --turf-dim: #00b36c;
  --chalk: #f2f5f3;
  --stand: #9aa8a0;
  --danger: #ff5a5f;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --w: min(1120px, calc(100vw - 48px));
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--night);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--turf); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--turf);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--night) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  width: var(--w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--chalk);
}
.wordmark:hover { text-decoration: none; }
.wordmark img { width: 30px; height: 30px; border-radius: 7px; }

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--stand);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--chalk); text-decoration: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 0;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(0, 229, 138, 0.13), transparent 65%),
    linear-gradient(180deg, var(--night) 0%, #0a1812 100%);
}

/* Chalk pitch markings behind the phones: centre circle + halfway line. */
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -260px;
  width: 1400px;
  height: 700px;
  transform: translateX(-50%);
  border: 2px solid rgba(242, 245, 243, 0.07);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 340px;
  height: 2px;
  background: rgba(242, 245, 243, 0.05);
  pointer-events: none;
}

.hero-inner {
  width: var(--w);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turf);
  border: 1px solid rgba(0, 229, 138, 0.35);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 28px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(56px, 9vw, 122px);
  line-height: 0.94;
  letter-spacing: 0.01em;
}
h1 .turf { color: var(--turf); }

.hero-sub {
  max-width: 560px;
  margin: 26px auto 0;
  color: var(--stand);
  font-size: 19px;
}

.cta-row {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--turf);
  color: #04140c;
  font-weight: 700;
  font-size: 17px;
  padding: 15px 28px;
  border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 40px rgba(0, 229, 138, 0.25);
}
.store-btn:hover { transform: translateY(-2px); text-decoration: none; }
.store-btn svg { width: 22px; height: 22px; }
.store-btn.soon {
  background: var(--card-up);
  color: var(--chalk);
  box-shadow: none;
  cursor: default;
}
.store-btn.soon:hover { transform: none; }

.cta-note { font-family: var(--font-mono); font-size: 13px; color: var(--stand); }

/* Formation: three phones set out like players on the pitch. */
.formation {
  position: relative;
  height: clamp(420px, 52vw, 660px);
  margin-top: 56px;
}

.phone {
  position: absolute;
  left: 50%;
  width: clamp(220px, 26vw, 320px);
  border-radius: 38px;
  border: 6px solid #1d242c;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  background: var(--night);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.phone img { display: block; width: 100%; height: auto; }

/* Front striker, and two midfielders behind. */
.phone.pos-a { transform: translateX(-50%) translateY(0); z-index: 3; }
.phone.pos-b {
  transform: translateX(-124%) translateY(56px) rotate(-7deg) scale(0.88);
  z-index: 2;
  filter: brightness(0.62);
}
.phone.pos-c {
  transform: translateX(24%) translateY(56px) rotate(7deg) scale(0.88);
  z-index: 2;
  filter: brightness(0.62);
}

/* Entrance: staggered rise on load. */
@keyframes rise {
  from { opacity: 0; translate: 0 60px; }
  to { opacity: 1; translate: 0 0; }
}
.rise { animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.15s; }
.rise-3 { animation-delay: 0.25s; }
.rise-4 { animation-delay: 0.4s; }

/* ---------- Vidiprinter ticker ---------- */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #07130d;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  padding: 13px 0;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--turf);
  animation: ticker 36s linear infinite;
}
.ticker-track .dim { color: var(--stand); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Feature blocks ---------- */

.features {
  width: var(--w);
  margin: 0 auto;
  padding: 90px 0 20px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  opacity: 0;
  translate: 0 40px;
  transition: opacity 0.7s ease, translate 0.7s ease;
}
.feature.seen { opacity: 1; translate: 0 0; }
.feature:nth-child(even) .feature-shot { order: -1; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turf);
  margin-bottom: 14px;
}

.feature h2, .grid-head h2, .privacy-block h2, .cta-final h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1;
  letter-spacing: 0.01em;
}

.feature p { margin-top: 16px; color: var(--stand); max-width: 44ch; }

.feature-shot img {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  display: block;
  border-radius: 32px;
  border: 5px solid #1d242c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* ---------- Small features grid ---------- */

.grid-section { width: var(--w); margin: 0 auto; padding: 60px 0 90px; }
.grid-head { text-align: center; margin-bottom: 44px; }
.grid-head p { color: var(--stand); margin-top: 12px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.cell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.cell h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.cell p { font-size: 14.5px; color: var(--stand); line-height: 1.5; }

/* ---------- Privacy block ---------- */

.privacy-block {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0a1510;
}
.privacy-inner {
  width: var(--w);
  margin: 0 auto;
  padding: 80px 0;
  text-align: center;
}
.privacy-inner p {
  max-width: 56ch;
  margin: 18px auto 0;
  color: var(--stand);
}
.privacy-inner a.more { display: inline-block; margin-top: 18px; font-weight: 600; }

/* ---------- Final CTA ---------- */

.cta-final { text-align: center; padding: 110px 24px; }
.cta-final .cta-row { margin-top: 30px; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 60px;
}
.footer-inner {
  width: var(--w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--stand);
  font-size: 14px;
}
.footer-inner .legal { max-width: 60ch; line-height: 1.6; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--stand); }
.footer-links a:hover { color: var(--chalk); }

/* ---------- Article pages (privacy / support) ---------- */

.article {
  width: min(720px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 70px 0 100px;
}
.article h1 {
  font-size: clamp(42px, 7vw, 72px);
  margin-bottom: 8px;
}
.article .updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--stand);
  margin-bottom: 40px;
}
.article h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 26px;
  letter-spacing: 0.02em;
  margin: 44px 0 12px;
}
.article h3 { font-size: 18px; margin: 28px 0 8px; }
.article p, .article li { color: #c7d0ca; margin-bottom: 12px; }
.article ul { padding-left: 22px; margin-bottom: 12px; }
.article strong { color: var(--chalk); }
.article .disclaimer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--stand);
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 30px; padding: 40px 0; }
  .feature:nth-child(even) .feature-shot { order: 0; }
  .phone.pos-b { transform: translateX(-118%) translateY(48px) rotate(-7deg) scale(0.82); }
  .phone.pos-c { transform: translateX(18%) translateY(48px) rotate(7deg) scale(0.82); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  .ticker-track { animation: none; }
  .feature { opacity: 1; translate: 0 0; transition: none; }
  .phone { transition: none; }
}
