/* GoalieIQ — shared styles. Palette mirrors the app's dark "ice" theme. */

:root {
  --bg: #070d16;
  --surface: #0e1724;
  --surface-raised: #152234;
  --border: #22344d;
  --border-light: #2e466b;
  --ice: #5cc8ff;
  --ice-bright: #8fe3ff;
  --cyan: #22d3ee;
  --text: #f1f6fc;
  --text-dim: #9fb3cc;
  --text-faint: #5f7499;
  --maxw: 44rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Ice glow behind the top of every page. */
body::before {
  content: "";
  position: fixed;
  inset: -30vh 0 auto 0;
  height: 70vh;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(34, 211, 238, 0.13), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.25rem 6rem;
}

/* ---- Header ---- */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand .mark {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.45rem;
  background: linear-gradient(145deg, var(--cyan), #2563eb);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: #041018;
  font-weight: 800;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.93rem;
}

.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--ice);
}

/* ---- Type ---- */
h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 0.6rem;
  padding-top: 0.35rem;
}

h3 {
  font-size: 1rem;
  margin: 1.75rem 0 0.4rem;
  color: var(--ice-bright);
}

p { margin: 0 0 1rem; color: var(--text-dim); }
strong { color: var(--text); font-weight: 600; }

a { color: var(--ice); text-decoration: none; border-bottom: 1px solid rgba(92, 200, 255, 0.35); }
a:hover { border-bottom-color: var(--ice); }

.lede { font-size: 1.1rem; color: var(--text-dim); max-width: 34rem; }
.updated { color: var(--text-faint); font-size: 0.88rem; margin-bottom: 2rem; }

ul { padding-left: 1.15rem; margin: 0 0 1rem; color: var(--text-dim); }
li { margin: 0.45rem 0; }
li::marker { color: var(--text-faint); }

/* ---- Blocks ---- */
.card {
  background: linear-gradient(160deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.35rem 1.4rem;
  margin: 1.25rem 0;
}

.card h3 { margin-top: 0; }
.card :last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; margin: 1rem 0 1.5rem; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.93rem;
}

th, td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-dim);
}

th {
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom-color: var(--border-light);
}

.btn {
  display: inline-block;
  background: linear-gradient(145deg, var(--cyan), #2563eb);
  color: #04121c;
  font-weight: 650;
  padding: 0.7rem 1.4rem;
  border-radius: 0.6rem;
  text-decoration: none;
  border: 0;
}

.btn:hover { filter: brightness(1.08); border: 0; }

.btn-quiet {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text);
}

.btn-quiet:hover { background: var(--surface-raised); border: 1px solid var(--border-light); }

.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.mail {
  font-size: 1.05rem;
  font-weight: 600;
}

/* ---- Footer ---- */
.site-foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
  color: var(--text-faint);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-foot a { color: var(--text-dim); border-bottom: 0; }
.site-foot a:hover { color: var(--ice); }
.site-foot nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }

@media (max-width: 30rem) {
  .wrap { padding-top: 1.5rem; }
  .site-head { padding-bottom: 1.75rem; }
}
