/* Hockey Rivals landing page. Arena-at-night palette: deep navy, ice white, goal-light red. */

:root {
  --bg: #0b1424;
  --bg-alt: #101c31;
  --surface: #15233c;
  --surface-2: #1c2d4b;
  --border: #2a3d60;
  --text: #eef3fa;
  --text-muted: #a9b7cc;
  --ice: #cfe6ff;
  --accent: #e63946;
  --accent-hover: #f05561;
  --accent-text: #ffffff;
  --success: #3ccf91;
  --error: #ff8a8f;
  --focus: #7cc4ff;

  --radius: 14px;
  --radius-small: 8px;
  --container: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--ice); }
a:hover { color: #fff; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); white-space: pre-line; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--accent-text); padding: 8px 14px; border-radius: var(--radius-small);
}
.skip-link:focus { top: 12px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  background: var(--accent); color: var(--accent-text);
  border: 2px solid var(--accent); border-radius: 999px;
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ice); color: var(--text); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.header-nav { display: none; gap: 24px; margin-left: auto; }
.header-nav a { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.header-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang-toggle {
  min-width: 44px; min-height: 40px; border-radius: 999px;
  background: transparent; color: var(--text); border: 1px solid var(--border);
  font: 700 .85rem var(--font); cursor: pointer;
}
.lang-toggle:hover { border-color: var(--ice); }
@media (min-width: 860px) {
  .header-nav { display: flex; }
  .header-actions { margin-left: 24px; }
}
@media (max-width: 400px) {
  .brand span { display: none; }
}

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(ellipse 70% 50% at 80% 10%, rgba(124, 196, 255, .18), transparent 70%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(230, 57, 70, .14), transparent 70%),
    var(--bg);
}
.hero-inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 88px 0 104px; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; }
}
.eyebrow { color: var(--ice); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--text-muted); font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--success); font-weight: 800; margin-right: 6px; }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; }
.phone {
  position: relative; width: min(300px, 82vw); aspect-ratio: 9 / 19;
  border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #2a3956, #0e1626);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 2px #3a4c70;
}
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 999px; background: #05080f; z-index: 2; }
.screen {
  height: 100%; border-radius: 34px; overflow: hidden;
  background: linear-gradient(180deg, #f4f9ff 0%, #e3eefb 100%);
  color: #0d1a2e; padding: 56px 14px 14px; font-size: .78rem;
}
.live-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .68rem; letter-spacing: .05em; color: #b4202c; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.scoreboard {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px;
  background: #0d1a2e; color: #fff; border-radius: 16px; padding: 14px 10px; margin: 12px 0 8px;
}
.team { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 700; font-size: .72rem; }
.crest { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: .62rem; font-weight: 800; }
.crest-a { background: #e63946; }
.crest-b { background: #2f6fd6; }
.score { font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.score span { color: #7e8ca6; }
.strength { text-align: center; font-weight: 700; color: #1f5fbf; background: #d6e7ff; border-radius: 999px; padding: 4px 8px; margin-bottom: 10px; font-size: .7rem; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feed li { background: #fff; border-radius: 12px; padding: 8px 10px; line-height: 1.35; box-shadow: 0 1px 2px rgba(13, 26, 46, .08); }
.feed b { color: #5a6a85; font-variant-numeric: tabular-nums; margin-right: 4px; }
.feed .goal { border-left: 4px solid var(--accent); font-weight: 600; }

/* ---- Sections ---- */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-lead { color: var(--text-muted); font-size: 1.125rem; max-width: 40em; margin-bottom: 40px; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--text-muted); margin: 0; }
.card-icon { font-size: 1.8rem; margin-bottom: 12px; }

/* Pledge */
.pledge { display: grid; gap: 24px; }
@media (min-width: 900px) { .pledge { grid-template-columns: .8fr 1.2fr; gap: 56px; } }
.pledge-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pledge-list li { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius-small); padding: 16px 18px; color: var(--text-muted); }
.pledge-list strong { color: var(--text); display: block; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.steps p { color: var(--text-muted); margin: 0; }
.step-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ice); color: var(--bg); font-weight: 800; margin-bottom: 14px; }

/* ---- Signup ---- */
.section-signup {
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(230, 57, 70, .16), transparent 70%),
    var(--bg-alt);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.signup { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .signup { grid-template-columns: 1fr 1fr; gap: 56px; } }
.signup-copy p { color: var(--text-muted); font-size: 1.125rem; }
.signup-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: grid; gap: 18px; }
@media (min-width: 640px) { .signup-form { padding: 32px; } }

.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-weight: 700; font-size: .95rem; padding: 0; margin-bottom: 4px; }
.field input[type="email"], .field select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-small);
  font: inherit;
}
.field input::placeholder { color: #6f809c; }
.field input:focus, .field select:focus { border-color: var(--focus); }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; color: var(--text-muted); }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.consent { font-size: .9rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); font-weight: 600; font-size: .95rem;
}
.chip input:checked + span { background: var(--ice); border-color: var(--ice); color: var(--bg); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 0; min-height: 1.6em; font-weight: 600; }
.form-status[data-kind="error"] { color: var(--error); }
.form-status[data-kind="success"] { color: var(--success); }

/* ---- FAQ ---- */
details { border-bottom: 1px solid var(--border); padding: 4px 0; }
summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ice); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--text-muted); }

/* ---- Footer ---- */
.site-footer { padding: 32px 0; color: var(--text-muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 20px; }

/* ---- Legal page ---- */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--text-muted); }
.legal hr { border: 0; border-top: 1px solid var(--border); margin: 56px 0; }
