/* ─────────────────────────────────────────────────────────────────────
   TMU Soccer marketing site — shared stylesheet.

   Pages: /, /privacy/, /me/delete/, /terms/
   Loaded by every page so a single change re-skins the whole site.

   Design tokens kept at the top so the entire palette can be retuned
   without touching individual rules.
   ──────────────────────────────────────────────────────────────────── */

:root {
  /* Brand */
  --brand-900: #0b1220;
  --brand-800: #111a2e;
  --brand-700: #1a2748;
  --brand-600: #2a3e72;
  --brand-500: #3b56a6;
  --accent-500: #00d084;       /* pitch green */
  --accent-600: #00a86b;
  --accent-soft: rgba(0, 208, 132, 0.14);
  --accent-orange: #ff7a3d;    /* pickup highlight */

  /* Neutral */
  --ink-900: #0f1729;
  --ink-700: #2a3344;
  --ink-500: #54607a;
  --ink-400: #7c8aa3;
  --ink-300: #b8c1d0;
  --ink-100: #eef1f7;
  --paper: #ffffff;
  --paper-tint: #f7f9fc;

  /* Status */
  --warn-bg: #fff7e0;
  --warn-bd: #ffb547;
  --warn-fg: #8a5a00;
  --info-bg: #e6f2ff;
  --info-bd: #4c8df6;
  --info-fg: #1556b8;
  --danger-bg: #ffe9e9;
  --danger-bd: #ff5a5a;
  --danger-fg: #b91c1c;

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-2: 0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-glow: 0 12px 40px rgba(0, 208, 132, 0.22);

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
               Helvetica, Arial, sans-serif, "Apple Color Emoji";
}

/* ─────────────────────────────── Reset ─────────────────────────────── */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--paper-tint);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--brand-500); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─────────────────────────────── Layout ────────────────────────────── */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

/* When a content page lives directly under <main class="container"> we
   still want a card feel for readability. */
main.container > h2:first-child,
main.container > h1:first-child {
  margin-top: 12px;
}

/* ─────────────────────────────── Header ────────────────────────────── */

header {
  background:
    radial-gradient(1200px 600px at 80% -100%, rgba(0, 208, 132, 0.20), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(59, 86, 166, 0.30), transparent 60%),
    linear-gradient(180deg, var(--brand-900) 0%, var(--brand-800) 100%);
  color: #fff;
  padding: 56px 0 28px;
  position: relative;
  overflow: hidden;
}

header::after {
  /* Subtle pitch-line grid in the bottom-right. Purely decorative. */
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 70%;
  height: 80%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 40px);
  transform: skewY(-6deg);
  pointer-events: none;
}

header .container { position: relative; z-index: 1; text-align: center; }

header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 6px;
}
header h1 .brand-mark {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 999px;
  background: var(--accent-500);
  box-shadow: 0 0 16px var(--accent-500);
  margin-right: 10px;
  vertical-align: middle;
}

header p {
  opacity: 0.85;
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ─────────────────────────────── Nav ───────────────────────────────── */

nav {
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

/* nav sits on the dark header background by default. */
header + nav { margin-top: 24px; }

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 12px;
}

nav a {
  color: #fff;
  opacity: 0.85;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.95rem;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.10);
  opacity: 1;
  text-decoration: none;
}

/* ─────────────────────────────── Content cards ─────────────────────── */

main.container {
  background: var(--paper);
  margin: 28px auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: 48px 40px;
}

h1, h2, h3, h4 {
  color: var(--ink-900);
  letter-spacing: -0.015em;
  font-weight: 700;
}

h2 { font-size: 1.6rem; margin-bottom: 16px; }
h2 + p { margin-top: -4px; }

h3 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
  color: var(--brand-700);
}

p { margin-bottom: 14px; color: var(--ink-700); }

ul, ol { margin: 12px 0 18px; padding-left: 24px; }
li { margin-bottom: 8px; }

/* ─────────────────────────────── Buttons ───────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--brand-600);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}
.btn:hover { background: var(--brand-500); transform: translateY(-1px); text-decoration: none; }

.btn-primary { background: var(--accent-600); }
.btn-primary:hover { background: var(--accent-500); box-shadow: var(--shadow-glow); }

.btn-ghost {
  background: transparent;
  color: var(--ink-700);
  border-color: var(--ink-300);
}
.btn-ghost:hover { background: var(--paper-tint); }

.btn-danger { background: var(--danger-fg); }
.btn-danger:hover { background: #8c1414; }

/* ─────────────────────────────── Badges ────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge-testing { background: var(--warn-bg); color: var(--warn-fg); }
.badge-pending { background: var(--info-bg); color: var(--info-fg); }
.badge-live    { background: var(--accent-soft); color: var(--accent-600); }

/* ─────────────────────────────── Boxes (existing classes) ──────────── */

.app-status,
.info-box {
  background: var(--paper-tint);
  border: 1px solid var(--ink-100);
  padding: 22px;
  border-radius: var(--radius-md);
  margin: 22px 0;
}
.app-status h3, .info-box h3 { margin-top: 0; }

.warning-box {
  background: var(--warn-bg);
  border: 1px solid var(--warn-bd);
  padding: 22px;
  border-radius: var(--radius-md);
  margin: 22px 0;
}
.warning-box h3 { color: var(--warn-fg); margin-top: 0; }

/* ─────────────────────────────── Landing-page sections ─────────────── */

.hero {
  background:
    radial-gradient(1200px 600px at 80% -100%, rgba(0, 208, 132, 0.20), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(59, 86, 166, 0.30), transparent 60%),
    linear-gradient(180deg, var(--brand-900) 0%, var(--brand-800) 100%);
  color: #fff;
  padding: 0 0 96px;
  position: relative;
  overflow: hidden;
}
.hero > nav { padding-top: 6px; padding-bottom: 6px; }
.hero > .container { padding-top: 36px; }
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 60%;
  height: 90%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 44px);
  transform: skewY(-6deg);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 208, 132, 0.14);
  color: var(--accent-500);
  border: 1px solid rgba(0, 208, 132, 0.30);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.hero-eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--accent-500);
  box-shadow: 0 0 12px var(--accent-500);
}

.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent-500), #6ee7b7);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 540px;
  margin-bottom: 28px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

/* Official store badges — Apple SVG is tightly cropped, Google PNG
   ships with ~10px of internal padding. Sizing both to the same CSS
   height with no margins lets Google's padding become natural
   breathing-room while keeping the visible button rectangles
   near-identical in height. */
.store-badge {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 120ms ease, filter 120ms ease;
}
.store-badge:hover {
  transform: translateY(-1px);
  text-decoration: none;
  filter: brightness(1.08);
}
.store-badge img,
.store-badge svg { height: 56px; width: auto; display: block; }

.store-badge.disabled {
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 600px) {
  .store-badge img,
  .store-badge svg { height: 48px; }
}

/* Apple-supplied marketing artwork in the hero. The image already has
   a light off-white background with confetti, so we frame it with a
   subtle shadow + rounded corners and let it carry itself. */
.hero-art {
  width: min(440px, 100%);
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

/* Page section wrapper used on the landing page. */
.section {
  padding: 72px 0;
}
.section-light { background: var(--paper); }
.section-tint  { background: var(--paper-tint); }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}
.section-eyebrow {
  display: inline-block;
  color: var(--accent-600);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin-bottom: 12px;
}
.section-head p {
  color: var(--ink-500);
  font-size: 1.05rem;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: rgba(0, 208, 132, 0.30);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.feature h3 {
  font-size: 1.05rem;
  margin: 4px 0 8px;
  color: var(--ink-900);
}
.feature p {
  font-size: 0.95rem;
  color: var(--ink-500);
  margin-bottom: 0;
}

/* Two-column "for whom" rows */
.for-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.for-card {
  border: 1px solid var(--ink-100);
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 26px;
}
.for-card h3 {
  margin-top: 0;
  color: var(--ink-900);
}
.for-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--ink-500);
}
.for-card li::marker { color: var(--accent-500); }

/* FAQ */
details.faq {
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  background: var(--paper);
  margin-bottom: 10px;
}
details.faq + details.faq { margin-top: 0; }
details.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
details.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--ink-400);
  transition: transform 200ms ease;
}
details.faq[open] summary::after { content: "−"; }
details.faq p { margin: 12px 0 4px; color: var(--ink-500); }

/* CTA strip */
.cta {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(0, 208, 132, 0.20), transparent 60%),
    linear-gradient(180deg, var(--brand-800) 0%, var(--brand-900) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  margin: 24px auto;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}
.cta h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.cta p {
  color: rgba(255,255,255,0.72);
  margin-bottom: 0;
}
.cta .store-row { justify-content: flex-end; }

/* ─────────────────────────────── Termly embed ──────────────────────── */

.termly-embed {
  margin-top: 18px;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.termly-embed iframe {
  display: block;
  width: 100%;
  /* Tall enough that the typical policy renders without an inner
     scrollbar on desktop; mobile gets internal scroll automatically. */
  height: 1800px;
  border: 0;
}

/* ─────────────────────────────── Footer ────────────────────────────── */

footer {
  border-top: 1px solid var(--ink-100);
  background: var(--paper);
  padding: 32px 24px;
  color: var(--ink-500);
  font-size: 0.92rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}
footer a {
  color: var(--ink-700);
  text-decoration: none;
}
footer a:hover { color: var(--brand-500); text-decoration: underline; }
footer .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
footer .credit {
  display: flex;
  align-items: center;
  gap: 8px;
}
footer .credit .brand-mark {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--accent-500);
  box-shadow: 0 0 12px var(--accent-500);
  display: inline-block;
}

/* ─────────────────────────────── Responsive ────────────────────────── */

@media (max-width: 880px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .store-row { justify-content: center; }
  .hero-art { margin: 0 auto; }
  .cta { grid-template-columns: 1fr; text-align: center; }
  .cta .store-row { justify-content: center; }
}

@media (max-width: 600px) {
  main.container { padding: 28px 20px; margin: 16px 12px; border-radius: var(--radius-md); }
  .section { padding: 56px 0; }
  nav ul { gap: 2px; }
  nav a { padding: 6px 10px; font-size: 0.9rem; }
  header { padding: 36px 0 18px; }
  header h1 { font-size: 1.5rem; }
  footer .container { flex-direction: column; text-align: center; }
}
