/* FirstWIN Sports — access gate + gated program. Self-contained, no framework. */
:root {
  --cobalt: #0a4db8;
  --cobalt-dark: #083a8c;
  --navy: #2d465e;
  --gold: #f8c830;
  --ink: #111826;
  --muted: #5b6b7f;
  --line: #e3eaf3;
  --surface: #ffffff;
  --bg: #eef3fb;
  --radius: 16px;
  --shadow: 0 18px 40px rgba(10, 77, 184, 0.12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(10, 77, 184, 0.10), transparent 60%),
    radial-gradient(760px 420px at 100% 108%, rgba(45, 70, 94, 0.08), transparent 55%),
    var(--bg);
}
h1, h2, h3 { font-family: "Poppins", system-ui, sans-serif; color: var(--ink); line-height: 1.12; margin: 0; }
a { color: var(--cobalt); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Gate ─────────────────────────────────────────────── */
.gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%; max-width: 420px;
  padding: 34px 30px 28px;
  text-align: center;
}
.crest-wrap { position: relative; display: inline-grid; place-items: center; margin-bottom: 10px; }
.crest-wrap::before {
  content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 77, 184, 0.16), transparent 68%);
  animation: glow 5.5s ease-in-out infinite;
}
.crest { position: relative; width: 112px; height: auto; animation: float 4s ease-in-out infinite; transform-origin: 50% 85%; }
.card h1 { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.01em; }
.card h1 span { color: var(--cobalt); }
.lede { color: var(--muted); margin: 8px 0 20px; font-size: 1rem; }
.form { display: grid; gap: 12px; text-align: left; }
.field-label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.pw { position: relative; }
.pw input {
  font: inherit; font-size: 1.05rem; width: 100%;
  padding: 13px 44px 13px 14px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
  outline: none; transition: border-color 140ms, box-shadow 140ms;
}
.pw input:focus { border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(10, 77, 184, 0.12); }
.pw-toggle {
  position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: 0; border-radius: 8px; padding: 0;
  background: transparent; color: var(--muted); cursor: pointer; transition: color 140ms;
}
.pw-toggle:hover { color: var(--cobalt); }
.pw-toggle:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 1px; }
.btn {
  font: inherit; font-family: "Poppins", system-ui, sans-serif; font-weight: 600; font-size: 1.05rem;
  color: #fff; background: var(--cobalt); border: 0; border-radius: 12px;
  min-height: 50px; cursor: pointer; box-shadow: 0 4px 0 var(--cobalt-dark);
  transition: transform 80ms, background 140ms;
}
.btn:hover { background: #0b55cc; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cobalt-dark); }
.err {
  display: none; margin: 2px 0 2px; padding: 10px 12px; border-radius: 10px;
  background: rgba(214, 57, 57, 0.10); color: #b3261e; font-weight: 600; font-size: 0.92rem; text-align: center;
}
.card.wrong .err { display: block; }
.card.wrong .crest { animation: shake 0.6s ease-in-out 1; }
.help { color: var(--muted); font-size: 0.88rem; margin: 18px 0 0; }
.lang { margin-top: 14px; font-size: 0.9rem; }
.lang a { color: var(--muted); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes glow { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.08); opacity: 0.55; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .crest, .crest-wrap::before { animation: none; } }

/* ── Gated program page ───────────────────────────────── */
.site { max-width: 920px; margin: 0 auto; padding: 0 20px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Poppins", sans-serif; font-weight: 700; color: var(--ink); }
.brand img { width: 34px; height: auto; }
.topbar .exit { font-size: 0.9rem; color: var(--muted); }
.hero { text-align: center; padding: 30px 0 10px; }
.pill { display: inline-block; background: rgba(10, 77, 184, 0.10); color: var(--cobalt); font-weight: 600; font-size: 0.8rem; padding: 5px 12px; border-radius: 999px; letter-spacing: 0.02em; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin: 14px 0 8px; letter-spacing: -0.02em; }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 620px; margin: 0 auto; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 30px 0; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 6px 18px rgba(10, 77, 184, 0.05); }
.tile .k { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(10, 77, 184, 0.10); color: var(--cobalt); font-family: "Poppins", sans-serif; font-weight: 700; margin-bottom: 12px; }
.tile h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.tile p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.cta { text-align: center; background: linear-gradient(180deg, #0a4db8, #083a8c); color: #fff; border-radius: var(--radius); padding: 34px 24px; margin: 10px 0 40px; }
.cta h2 { color: #fff; font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.cta p { color: rgba(255, 255, 255, 0.85); margin: 0 auto 18px; max-width: 520px; }
.cta .btn-light { display: inline-block; background: #fff; color: var(--cobalt); font-family: "Poppins", sans-serif; font-weight: 600; padding: 13px 26px; border-radius: 12px; }
.cta .btn-light:hover { text-decoration: none; background: #f2f6ff; }
.foot { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 0 0 30px; }

/* Sample result card — "here's what you get back" */
.section-eyebrow { text-align: center; color: var(--muted); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; margin: 0 0 14px; }
.sample { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 6px 18px rgba(10, 77, 184, 0.05); margin: 0 0 32px; }
.sample-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 18px; }
.sample .who { display: flex; align-items: center; gap: 12px; }
.sample .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--cobalt); color: #fff; display: grid; place-items: center; font-family: "Poppins", sans-serif; font-weight: 700; }
.sample .nm { font-family: "Poppins", sans-serif; font-weight: 700; }
.sample .rl { color: var(--muted); font-size: 0.9rem; }
.sample .score { text-align: right; }
.sample .score .big { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 1.9rem; color: var(--cobalt); line-height: 1; }
.sample .badge { display: inline-block; margin-top: 5px; font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(47, 179, 68, 0.12); color: #1d8f3b; }
.dims { display: grid; gap: 11px; }
.dim { display: grid; grid-template-columns: 180px 1fr 40px; align-items: center; gap: 12px; font-size: 0.92rem; }
.dim .bar { height: 8px; border-radius: 999px; background: #eef2f8; overflow: hidden; }
.dim .bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #0a4db8, #2d6fe0); }
.dim .val { text-align: right; color: var(--navy); font-weight: 600; }
.sample .note { color: var(--muted); font-size: 0.84rem; margin: 16px 0 0; }
@media (max-width: 520px) { .dim { grid-template-columns: 116px 1fr 34px; font-size: 0.86rem; } }
