/* Touchline product landing page */

@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap");

:root {
  --paper: #F6F5F1;
  --sunken: #F2F1EC;
  --bone: #ECEAE3;
  --ink: #111110;
  --ink-soft: #58554F;
  --muted: #75716A;
  --subtle: #BFBCB1;
  --faint: #D4D1C7;
  --border: rgba(17, 17, 16, 0.10);
  --border-subtle: rgba(17, 17, 16, 0.06);
  --pitch: #2F6B4F;
  --pitch-soft: #3C8763;
  --gold: #C8A24A;
  --live: #D9402D;
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "SF Mono", "Fira Code", monospace;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-fast: 120ms;
}

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

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 500 14px var(--font-sans);
  text-decoration: none;
  transition:
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--pitch); color: var(--paper); }
.btn-primary:hover { background: #285B43; }

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bone); }

.btn-invert {
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 12px;
}
.btn-invert:hover { background: var(--bone); }

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--pitch);
  outline-offset: 2px;
  border-radius: 10px;
}

.text-link {
  color: var(--pitch);
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 245, 241, 0.84);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--ink);
  text-decoration: none;
}
.wordmark-text { font: 600 17px var(--font-sans); }
.wordmark-dot {
  width: 5px; height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--pitch);
  transform: translateY(2px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  font: 500 14px var(--font-sans);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--pitch);
  color: var(--paper);
}

/* ── Section headers ── */
.section-header {
  max-width: 680px;
  margin-bottom: 48px;
}
.section-header .eyebrow { margin-bottom: 14px; }
.section-heading {
  margin: 0;
  font: 500 42px var(--font-sans);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.section-sub {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font: 400 18px var(--font-sans);
  line-height: 1.55;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding-top: 104px;
  padding-bottom: 100px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -200px;
  right: -160px;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(47, 107, 79, 0.20), transparent 60%),
    radial-gradient(circle at 70% 75%, rgba(200, 162, 74, 0.18), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 56px;
  align-items: center;
}
.hero-copy { min-width: 0; }

.hero-app-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.hero-app-icon {
  width: 52px; height: 52px;
  border-radius: 24%;
  box-shadow: 0 10px 24px rgba(17,17,16,0.16), 0 1px 3px rgba(17,17,16,0.08);
}
.hero-app-name { margin: 0 0 2px; font: 600 16px var(--font-sans); }

.hero-heading {
  margin: 0 0 22px;
  max-width: 620px;
  font: 500 60px var(--font-sans);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero-sub {
  max-width: 540px;
  margin: 0 0 32px;
  color: var(--ink-soft);
  font: 400 19px var(--font-sans);
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.hero-note {
  margin: 0;
  color: var(--muted);
  font: 500 12px var(--font-mono);
  letter-spacing: 0.02em;
}

/* ── Phone mockup (real screenshot inside device frame) ── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
.phone {
  position: relative;
  width: 272px;
  flex: 0 0 auto;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(155deg, #3a3a38, #141413 62%);
  box-shadow:
    0 50px 100px rgba(17, 17, 16, 0.32),
    0 12px 30px rgba(17, 17, 16, 0.18),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.phone--bento { width: 250px; }
.phone-screen {
  position: relative;
  border-radius: 35px;
  overflow: hidden;
  background: #0b0b0c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.phone--bento .phone-screen { border-radius: 31px; }
.phone-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 22px;
  background: #0b0b0c;
}
.phone-time { font: 600 13px var(--font-sans); color: #fff; }
.phone-island {
  position: absolute;
  left: 50%;
  top: 7px;
  transform: translateX(-50%);
  width: 84px;
  height: 23px;
  border-radius: 999px;
  background: #000;
}
.phone-signal {
  width: 24px;
  height: 11px;
  border-radius: 3px;
  background: linear-gradient(90deg, #fff 68%, rgba(255, 255, 255, 0.3) 68%);
  opacity: 0.92;
}
.phone-shot { display: block; width: 100%; height: auto; }

/* floating UI cards next to the hero phone */
.hero-shot {
  position: absolute;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c0c0d;
  box-shadow: 0 28px 64px rgba(17, 17, 16, 0.34);
}
.hero-shot img { display: block; width: 100%; height: auto; }
.hero-shot--alert { width: 212px; right: -10px; top: 48px; transform: rotate(3deg); }
.hero-shot--activity { width: 192px; left: -16px; bottom: 40px; transform: rotate(-4deg); }

/* ── Feature showcase ── */
.features-section { background: var(--sunken); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.feature-card {
  min-width: 0;
  min-height: 190px;
  padding: 22px;
  border-radius: 14px;
  background: rgba(246, 245, 241, 0.7);
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(17, 17, 16, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.feature-card::before {
  content: "";
  width: 28px;
  height: 3px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: var(--pitch);
}
.feature-card h3 {
  margin: 0 0 10px;
  font: 600 17px var(--font-sans);
  line-height: 1.25;
}
.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.58;
}

/* ── Match day story ── */
.story-section { background: var(--paper); }
.matchday-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.matchday-card {
  min-width: 0;
  min-height: 230px;
  padding: 26px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--sunken);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.matchday-step {
  margin: 0;
  color: var(--pitch);
  font: 600 12px var(--font-mono);
  letter-spacing: 0.08em;
}
.matchday-card h3 {
  margin: 42px 0 12px;
  font: 600 24px var(--font-sans);
  line-height: 1.15;
}
.matchday-card p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Why ── */
.why-section { background: var(--ink); color: var(--paper); }
.why-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: start;
}
.why-section .eyebrow { color: rgba(246,245,241,0.6); }
.why-section .section-heading { color: var(--paper); max-width: 360px; }
.why-sub {
  margin: 16px 0 0;
  color: rgba(246,245,241,0.7);
  font-size: 16px;
  line-height: 1.58;
  max-width: 340px;
}
.why-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.why-item {
  padding: 24px;
  border-radius: 14px;
  border: 1px solid rgba(246,245,241,0.18);
  background: rgba(246,245,241,0.06);
}
.why-item h3 {
  margin: 0 0 10px;
  color: var(--paper);
  font: 600 17px var(--font-sans);
}
.why-item p {
  margin: 0;
  color: rgba(246,245,241,0.76);
  font-size: 14px;
  line-height: 1.58;
}

/* ── Trust (privacy & support) ── */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.trust-sub {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.62;
  max-width: 480px;
}
.trust-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.trust-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--sunken);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.trust-card:hover { background: var(--bone); transform: translateY(-2px); }
.trust-card h3 { margin: 0; font: 600 17px var(--font-sans); }
.trust-card p { margin: 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; }
.trust-card .text-link { margin-top: auto; font-size: 13px; }

/* ── Final CTA ── */
.cta-section {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 0;
}
.cta-inner {
  text-align: center;
  max-width: 640px;
}
.cta-section .eyebrow { color: rgba(246,245,241,0.5); }
.cta-heading {
  margin: 16px auto 16px;
  max-width: 560px;
  font: 500 46px var(--font-sans);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.cta-sub {
  margin: 0 auto 32px;
  max-width: 440px;
  color: rgba(246,245,241,0.66);
  font-size: 17px;
  line-height: 1.52;
}

/* ── Footer ── */
.site-footer {
  padding: 52px 0 72px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer-tagline { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--ink-soft); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-legal {
  margin: 44px 0 0;
  color: var(--subtle);
  font: 400 11px var(--font-mono);
  line-height: 1.6;
  max-width: 880px;
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: 2; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid, .trust-grid { grid-template-columns: 1fr; gap: 36px; }
  .matchday-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
  .hero { padding-top: 72px; padding-bottom: 64px; }
  .nav-links { display: none; }
  .hero-heading { font-size: 40px; }
  .hero-sub { font-size: 17px; }
  .section-heading { font-size: 30px; }
  .cta-heading { font-size: 34px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .matchday-card { min-height: 0; }
  .matchday-card h3 { margin-top: 32px; font-size: 22px; }
  .why-list, .trust-cards { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-shot--activity { left: -6px; width: 168px; }
  .hero-shot--alert { right: -4px; width: 188px; }
}
