/* RosterIQ — shared styles. Pitch theme from the RosterIQ Landing design.
   Display: Instrument Serif · Body: Geist · Labels: Geist Mono. */

:root {
  --bg: #0E7A3E;
  --bg-grad: linear-gradient(180deg, #0E7A3E 0%, #0A6634 100%);
  --pitch-deep: #0A6634;
  --surface: rgba(255, 255, 255, 0.11);
  --surface-strong: rgba(255, 255, 255, 0.18);
  --text: #FFFFFF;
  --text-dim: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.5);
  --accent: #F59E0B;
  --accent-ink: #111111;
  --hairline: rgba(255, 255, 255, 0.14);

  /* Paper surface for long-form legal/support content */
  --paper: #FBFAF4;
  --ink: #0F1A14;
  --ink-dim: rgba(15, 26, 20, 0.66);
  --ink-muted: rgba(15, 26, 20, 0.45);
  --paper-hairline: rgba(15, 26, 20, 0.1);
  --cream: #F3EFCF;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', -apple-system, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

::selection { background: rgba(245, 158, 11, 0.4); }

a { color: var(--accent); }

/* ── Layout ───────────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: 820px; }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 98, 50, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav__bar {
  display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.brand__name { font-family: var(--serif); font-size: 23px; color: var(--text); }
.brand__name em { color: var(--accent); font-style: italic; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__link {
  color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: opacity 0.15s ease;
}
.nav__link:hover { opacity: 0.75; }
.btn-accent {
  font-size: 14px; font-weight: 700; text-decoration: none;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; padding: 10px 20px; white-space: nowrap;
  transition: transform 0.15s ease;
}
.btn-accent:hover { transform: scale(1.03); }

/* ── Shared section primitives ────────────────────────────── */
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2.4px;
  text-transform: uppercase; color: var(--accent); font-weight: 500; margin: 0 0 18px;
}
.display {
  font-family: var(--serif); font-weight: 400; line-height: 1.05;
  letter-spacing: -0.01em; color: var(--text); margin: 0; text-wrap: pretty;
}
.display em { font-style: italic; color: var(--accent); }
.section { padding: 110px 0; }
.section--divided { border-top: 1px solid var(--hairline); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) auto;
  align-items: center; gap: 72px; padding: 88px 0 96px;
}
.hero__copy { max-width: 600px; display: flex; flex-direction: column; align-items: flex-start; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  border: 1px solid var(--hairline); background: var(--surface);
  border-radius: 999px; padding: 8px 16px;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pill__label {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-dim);
}
.hero__title { font-size: clamp(48px, 6vw, 92px); line-height: 0.98; letter-spacing: -0.015em; }
.hero__sub {
  font-size: 18px; line-height: 1.6; color: var(--text-dim);
  margin: 28px 0 0; max-width: 480px; text-wrap: pretty;
}
.hero__cta { display: flex; align-items: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

/* App Store badge + Android pill */
.appstore {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  background: #000; color: #fff; border-radius: 12px; height: 56px; padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.32); transition: transform 0.15s ease;
}
.appstore:hover { transform: scale(1.03); }
.appstore svg { width: 23px; height: 28px; }
.appstore__txt { display: flex; flex-direction: column; line-height: 1.15; font-family: -apple-system, system-ui, sans-serif; }
.appstore__txt small { font-size: 11px; opacity: 0.85; }
.appstore__txt b { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.android-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 56px;
  padding: 0 20px; border-radius: 12px; border: 1px dashed var(--hairline);
  color: var(--text-dim); font-size: 14px; font-weight: 500;
}
.android-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ── Phone mock (hero visual — app Home screen in an iOS frame) ── */
.phone {
  position: relative; width: 318px; justify-self: end;
  background: #000; border-radius: 48px; padding: 10px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone__island {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 104px; height: 30px; border-radius: 16px; background: #000; z-index: 5;
}
.phone__status {
  position: absolute; top: 23px; left: 10px; right: 10px; z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; color: #fff;
}
.phone__time { font-family: -apple-system, system-ui, sans-serif; font-weight: 600; font-size: 15px; }
.phone__icons { display: flex; align-items: center; gap: 6px; }
.phone__screen {
  background: var(--bg-grad); border-radius: 38px; padding: 60px 16px 30px;
  display: flex; flex-direction: column; gap: 12px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.phone__home {
  position: absolute; bottom: 17px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 5px; border-radius: 100px; background: rgba(255, 255, 255, 0.7); z-index: 6;
}

/* Home-screen content */
.ph-head { display: flex; align-items: center; justify-content: space-between; }
.ph-greet { font-family: var(--serif); font-size: 23px; color: #fff; }
.ph-ava {
  width: 27px; height: 27px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; color: #fff; font-size: 11px;
  font-weight: 700; flex-shrink: 0;
}
.ph-ava--me { width: 30px; height: 30px; font-size: 13px; box-shadow: 0 0 0 2px var(--hairline); }
.ph-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dim); }
.ph-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; padding: 14px; }
.ph-card--strong { background: var(--surface-strong); }
.ph-row { display: flex; align-items: center; justify-content: space-between; }
.ph-sport { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; }
.ph-weather { font-family: var(--mono); font-size: 10px; color: var(--text-dim); }
.ph-title { font-family: var(--serif); font-size: 24px; color: #fff; margin: 9px 0 3px; }
.ph-meta { font-size: 11.5px; color: var(--text-dim); }
.ph-divider { height: 1px; background: var(--hairline); margin: 13px 0; }
.ph-stack { display: flex; }
.ph-stack .ph-ava { box-shadow: 0 0 0 2px #1C8A4E; margin-left: -7px; }
.ph-stack .ph-ava:first-child { margin-left: 0; }
.ph-more {
  margin-left: -7px; width: 27px; height: 27px; border-radius: 50%; background: var(--surface-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 9px; color: #fff; box-shadow: 0 0 0 2px #1C8A4E; flex-shrink: 0;
}
.ph-confirm { font-size: 11.5px; font-weight: 600; color: #fff; }
.ph-confirm em { color: var(--text-dim); font-weight: 400; font-style: normal; }
.ph-h2 { font-family: var(--serif); font-size: 18px; color: #fff; }
.ph-seg { display: inline-flex; gap: 2px; background: var(--surface); border-radius: 999px; padding: 3px; }
.ph-seg span, .ph-seg b { font-size: 10px; font-weight: 600; padding: 4px 9px; border-radius: 999px; color: var(--text-dim); }
.ph-seg b { background: var(--accent); color: var(--accent-ink); }
.ph-gtop { display: flex; align-items: center; justify-content: space-between; }
.ph-glabel { font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.ph-gtitle { font-size: 13px; font-weight: 600; color: #fff; margin: 7px 0 3px; }
.ph-gmeta { font-size: 11px; color: var(--text-dim); }
.ph-prog { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.ph-prog__bar { flex: 1; height: 4px; border-radius: 2px; background: var(--hairline); overflow: hidden; }
.ph-prog__bar span { display: block; height: 100%; border-radius: 2px; background: var(--accent); }
.ph-prog__n { font-family: var(--mono); font-size: 10px; color: var(--text-dim); }
.ph-tabs {
  margin-top: 2px; display: flex; align-items: center; gap: 4px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 999px; padding: 9px 12px;
}
.ph-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.5px; color: var(--text-muted); }
.ph-tab svg { stroke: var(--text-muted); }
.ph-tab--active { color: var(--accent); }
.ph-tab--active svg { stroke: var(--accent); }

/* ── Feature cards ────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 22px;
  padding: 28px; display: flex; flex-direction: column;
}
.card__top { display: flex; justify-content: space-between; align-items: center; }
.card__icon {
  width: 44px; height: 44px; border-radius: 14px; background: var(--surface-strong);
  display: flex; align-items: center; justify-content: center;
}
.card__num { font-family: var(--mono); font-size: 12px; color: var(--text-muted); }
.card__title { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; margin: 22px 0 10px; color: var(--text); }
.card__body { font-size: 14.5px; line-height: 1.55; color: var(--text-dim); margin: 0; text-wrap: pretty; }

/* ── How it works ─────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 64px; }
.step { border-top: 1px solid var(--hairline); padding-top: 26px; }
.step__n { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--accent); }
.step__n span { color: var(--text-muted); }
.step__title { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 18px 0 10px; color: var(--text); }
.step__body { font-size: 15px; line-height: 1.6; color: var(--text-dim); margin: 0; text-wrap: pretty; }

/* ── Stats band ───────────────────────────────────────────── */
.stats { background: var(--accent); color: var(--accent-ink); padding: 72px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.stat__big { font-family: var(--serif); font-size: 72px; line-height: 1; }
.stat__label { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-top: 12px; opacity: 0.8; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { margin-top: 48px; }
.faq__item { border-top: 1px solid var(--hairline); }
.faq__item:last-of-type { border-bottom: 1px solid var(--hairline); }
.faq__q {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  width: 100%; background: none; border: none; cursor: pointer; padding: 24px 0;
  text-align: left; color: var(--text); font-family: var(--serif); font-size: 24px;
}
.faq__plus { font-family: var(--sans); font-size: 24px; font-weight: 300; color: var(--accent); flex-shrink: 0; transition: transform 0.2s ease; line-height: 1; }
.faq__item[open] .faq__plus { transform: rotate(45deg); }
.faq__a { font-size: 15.5px; line-height: 1.65; color: var(--text-dim); margin: 0 0 26px; max-width: 640px; text-wrap: pretty; }
.faq__q::-webkit-details-marker { display: none; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--hairline); padding: 72px 0 48px; background: rgba(0, 0, 0, 0.14); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 48px; align-items: start; }
.footer__about { font-size: 14px; color: var(--text-dim); line-height: 1.6; max-width: 320px; margin: 16px 0 0; text-wrap: pretty; }
.footer__col { display: flex; flex-direction: column; }
.footer__h { font-family: var(--mono); font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.footer__link { color: var(--text-dim); text-decoration: none; font-size: 14px; line-height: 2.1; }
.footer__link:hover { color: var(--text); }
.footer__bottom { border-top: 1px solid var(--hairline); margin-top: 56px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer__copy { font-size: 13px; color: var(--text-muted); }
.footer__kick { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }

/* ── Document pages (privacy / terms / support) ───────────── */
.doc-wrap { padding: 56px 0 96px; }
.doc {
  background: var(--paper); color: var(--ink); border-radius: 24px;
  padding: 56px 60px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}
.doc__eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--pitch-deep); font-weight: 500; margin: 0 0 14px; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1.04; letter-spacing: -0.01em; margin: 0 0 6px; color: var(--ink); }
.doc .updated { font-family: var(--mono); font-size: 13px; color: var(--ink-muted); margin: 0 0 28px; }
.doc .lead { font-size: 19px; line-height: 1.6; color: var(--ink); margin: 0 0 8px; }
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; margin: 38px 0 8px; color: var(--pitch-deep); }
.doc h3 { font-size: 17px; font-weight: 600; margin: 22px 0 4px; color: var(--ink); }
.doc p, .doc li { font-size: 16px; line-height: 1.7; color: var(--ink-dim); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--pitch-deep); text-decoration: underline; text-underline-offset: 2px; }
.doc a:hover { color: var(--accent); }
.doc ul { padding-left: 22px; }
.doc li { margin: 5px 0; }
.doc .callout {
  background: #fff; border: 1px solid var(--paper-hairline); border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0; padding: 16px 18px; margin: 22px 0;
}
.doc .callout p { margin: 0; }
.doc .contact-card { background: #fff; border: 1px solid var(--paper-hairline); border-radius: 14px; padding: 18px 20px; margin: 28px 0 0; }
.doc .doc-foot { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--paper-hairline); display: flex; gap: 18px; flex-wrap: wrap; }
.doc .doc-foot a { color: var(--ink-muted); font-size: 14px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1060px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .phone { justify-self: center; }
  .nav__links { display: none; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .container { padding: 0 22px; }
  .section { padding: 80px 0; }
  .doc { padding: 36px 26px; }
  .doc h1 { font-size: 40px; }
}
