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

:root {
  --navy:       #042C53;
  --blue:       #185FA5;
  --blue-light: #B5D4F4;
  --bg:         #F4F2EB;
  --white:      #FFFFFF;
  --green-dark: #27500A;
  --green-lite: #EAF3DE;
  --amber-dark: #633806;
  --amber-lite: #FAEEDA;
  --red-dark:   #791F1F;
  --red-lite:   #FCEBEB;
  --orange-dark:#7A3A08;
  --orange-lite:#FEF0E0;
  --freds-dark: #0C447C;
  --freds-lite: #E6F1FB;
  --sarahs-dark:#72243E;
  --sarahs-lite:#FBEAF0;
  --schubecks-dark: #27500A;
  --schubecks-lite: #EAF3DE;
  --text:       #1A1A1A;
  --text-muted: #5A5A5A;
  --border:     #D8D5CC;
  --radius:     6px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

body {
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
.nav {
  background: var(--navy);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  color: var(--blue-light);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.nav-brand:hover { text-decoration: none; color: #fff; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--blue-light);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s;
}
.nav-links a:hover,
.nav-links a.active { background: rgba(255,255,255,0.12); color: #fff; }

.nav-links .btn-logout {
  background: rgba(255,255,255,0.1);
  color: var(--blue-light);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius);
  font-family: var(--font);
  transition: background 0.15s;
}
.nav-links .btn-logout:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* ── HERO (homepage) ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 52px);
}

.hero-left {
  background: var(--navy);
  color: #fff;
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-logo {
  font-size: 48px;
  font-weight: 800;
  color: var(--blue-light);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: 13px;
  color: rgba(181,212,244,0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-stat-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(181,212,244,0.6);
  margin-bottom: 2px;
}

.hero-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.hero-right {
  background: var(--bg);
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── FORMS ── */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  max-width: 380px;
  width: 100%;
}

.form-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font);
  background: #fff;
  color: #1A1A1A;
  transition: border-color 0.15s;
}
option {
  color: #1A1A1A;
  background: #fff;
}
.form-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24,95,165,0.1); }
.form-input[readonly] { background: var(--bg); color: var(--text-muted); }

.form-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.6;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, background 0.15s;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; text-decoration: none; }

.btn-primary { background: var(--navy); color: #fff; }
.btn-blue    { background: var(--blue); color: #fff; }
.btn-amber   { background: var(--amber-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--border); }
.btn-full    { width: 100%; }
.btn-sm      { padding: 6px 12px; font-size: 12px; }

/* ── ALERTS ── */
.alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  margin-bottom: 16px;
}
.alert-error  { background: var(--red-lite);   color: var(--red-dark);   border: 1px solid #f5c6c6; }
.alert-success{ background: var(--green-lite);  color: var(--green-dark); border: 1px solid #c3e6a8; }
.alert-amber  { background: var(--amber-lite);  color: var(--amber-dark); border: 1px solid #f5d9a8; }

/* ── PAGE LAYOUT ── */
.page { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
.page-wide { max-width: 1300px; margin: 0 auto; padding: 32px 24px; }

.page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.page-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}

/* ── TABLES ── */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

thead th {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(0,0,0,0.02); }

/* ── CHIPS ── */
.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.chip-green   { background: var(--green-lite);  color: var(--green-dark); }
.chip-red     { background: var(--red-lite);    color: var(--red-dark); }
.chip-amber   { background: var(--amber-lite);  color: var(--amber-dark); }
.chip-blue    { background: #dbeafe;            color: var(--blue); }
.chip-navy    { background: var(--navy);        color: #fff; }
.chip-orange  { background: var(--orange-lite); color: var(--orange-dark); }
.chip-freds   { background: var(--freds-lite);  color: var(--freds-dark); }
.chip-sarahs  { background: var(--sarahs-lite); color: var(--sarahs-dark); }
.chip-schubecks { background: var(--schubecks-lite); color: var(--schubecks-dark); }

/* ── SCORING CARDS (homepage / rules) ── */
.scoring-section {
  background: var(--navy);
  padding: 64px 48px;
  color: #fff;
}

.scoring-section .section-label { color: var(--blue-light); }
.scoring-section h2 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 32px; }

.scoring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.scoring-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.scoring-pts {
  font-size: 36px;
  font-weight: 800;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 8px;
}

.scoring-type {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.scoring-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* ── HOW IT WORKS ── */
.how-section {
  padding: 64px 48px;
  background: var(--bg);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.step {
  text-align: center;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.step-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  color: rgba(181,212,244,0.6);
  text-align: center;
  padding: 24px;
  font-size: 11px;
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* ── GRID UTILITIES ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-muted { color: var(--text-muted); }
.text-right { text-align: right; }
.flex { display: flex; align-items: center; gap: 8px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── HOMEPAGE REDESIGN ── */

/* Left box */
.hero-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(181,212,244,0.6);
  margin-bottom: 20px;
}

.hero-logo-stack { margin-bottom: 16px; }

.hero-logo-line {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.04em;
}
.logo-white { color: #fff; }
.logo-blue  { color: var(--blue-light); }

.hero-tagline-italic {
  font-size: 13px;
  color: rgba(181,212,244,0.75);
  font-style: italic;
  margin-bottom: 36px;
}

.hero-stats-row {
  display: flex;
  gap: 28px;
  margin-bottom: 24px;
  align-items: flex-end;
}

.hero-stat-col { display: flex; flex-direction: column; }

.hero-stat-col .hero-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 5px;
}

.hero-stat-col .hero-stat-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(181,212,244,0.55);
}

.hero-private {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(181,212,244,0.4);
}

/* Right box */
.hero-welcome {
  font-size: 20px;
  font-weight: 600;
  color: #B5A882;
  margin-bottom: 12px;
}

.form-divider-blue {
  height: 1px;
  background: var(--blue-light);
  opacity: 0.4;
  margin: 14px 0;
}

/* Stacked steps */
.steps-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
}

.step-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.step-row:last-child { border-bottom: none; }

.step-row .step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-body { flex: 1; }
.step-row .step-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.step-row .step-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* What makes REUREURRR different */
.different-section {
  background: #1A2D42;
  border: 1px solid rgba(181,212,244,0.15);
  border-radius: 10px;
  padding: 24px;
  margin-top: 8px;
}

.different-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.different-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.different-pill {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid rgba(181,212,244,0.3);
  border-radius: 20px;
  font-size: 12px;
  color: var(--blue-light);
  background: rgba(181,212,244,0.06);
  white-space: nowrap;
}

/* ── DARK LOGIN CARD ── */
.hero-right-dark {
  background: #0B1929;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 48px;
}

.login-card {
  background: #112240;
  border: 1px solid rgba(181,212,244,0.12);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.login-card-heading {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.login-card-sub {
  font-size: 14px;
  color: rgba(181,212,244,0.6);
  margin-bottom: 28px;
}

.login-field {
  margin-bottom: 20px;
}

.login-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 8px;
}

.login-input {
  width: 100%;
  padding: 14px 16px;
  background: #0D1F35;
  border: 1px solid rgba(181,212,244,0.15);
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--font);
  color: rgba(181,212,244,0.9);
  transition: border-color 0.15s;
}
.login-input::placeholder { color: rgba(181,212,244,0.3); }
.login-input:focus {
  outline: none;
  border-color: rgba(181,212,244,0.4);
  box-shadow: 0 0 0 3px rgba(181,212,244,0.08);
}

.login-btn {
  width: 100%;
  padding: 15px;
  margin-top: 4px;
  background: #C8DCF5;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  color: #0B1929;
  cursor: pointer;
  transition: opacity 0.15s;
  letter-spacing: 0.01em;
}
.login-btn:hover { opacity: 0.9; }

.login-forgot {
  text-align: center;
  font-size: 12px;
  color: rgba(181,212,244,0.4);
  margin-top: 18px;
  margin-bottom: 0;
}

.login-divider {
  height: 1px;
  background: rgba(181,212,244,0.15);
  margin: 16px 0;
}

.login-new {
  text-align: center;
  font-size: 13px;
  color: rgba(181,212,244,0.5);
  margin-bottom: 4px;
}

.login-new-desc {
  text-align: center;
  font-size: 12px;
  color: rgba(181,212,244,0.3);
  line-height: 1.6;
  margin: 0;
}

/* ── UNIFIED DARK BACKGROUND ── */

/* All three hero panels share the same dark navy */
.hero-left        { background: #0B1929; }
.hero-right-dark  { background: #0B1929; }

/* Bottom sections — dark theme */
.scoring-section  { background: #0B1929; padding: 64px 48px; }
.how-section      { background: #0B1929; padding: 64px 48px; }

/* Retheme how-section text for dark background */
.how-section .section-label { color: rgba(181,212,244,0.55); }
.how-section h2             { color: #fff !important; }

.step-row               { border-bottom-color: rgba(181,212,244,0.1); }
.step-row .step-title   { color: #fff; }
.step-row .step-desc    { color: rgba(181,212,244,0.55); }
.step-row .step-num     { background: rgba(181,212,244,0.12); color: var(--blue-light); }

.different-section { background: rgba(255,255,255,0.04); border-color: rgba(181,212,244,0.12); }

/* Footer matches */
.footer { background: #071220; }

/* ── BOTTOM PANEL ── */
.bottom-panel {
  background: #0B1929;
  padding: 64px 48px;
}

.bottom-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.bottom-heading {
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  margin: 8px 0 20px;
  line-height: 1.15;
}

.bottom-para {
  font-size: 14px;
  color: rgba(181,212,244,0.6);
  line-height: 1.8;
  max-width: 620px;
  margin-bottom: 40px;
}

/* Scoring cards */
.bottom-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

.bottom-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(181,212,244,0.12);
  border-radius: 10px;
  padding: 24px 20px;
}

.bottom-card-pts {
  font-size: 32px;
  font-weight: 800;
  color: rgba(181,212,244,0.85);
  line-height: 1;
  margin-bottom: 10px;
}
.bottom-card-pts-amber { color: #F59E0B; }
.bottom-card-pts-blue  { color: var(--blue-light); }

.bottom-card-type {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.bottom-card-desc {
  font-size: 12px;
  color: rgba(181,212,244,0.5);
  line-height: 1.6;
}

/* Season steps */
.bottom-season-heading {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.bottom-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bottom-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(181,212,244,0.08);
}
.bottom-step:last-child { border-bottom: none; }

.bottom-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(181,212,244,0.1);
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.bottom-step-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.bottom-step-desc {
  font-size: 12px;
  color: rgba(181,212,244,0.5);
  line-height: 1.6;
}

/* ── ROLLUP SUMMARIES (shared style for all collapsible sections) ── */
.rollup-summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}
.rollup-meta {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Hide native details/summary disclosure triangle in all browsers */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* Suppress native details triangle in ALL browsers */
details > summary::marker          { display: none; content: ''; }
details > summary::-webkit-details-marker { display: none; }
summary { display: flex; }

/* Safari-specific: must target summary directly, no parent combinator */
summary::-webkit-details-marker { display: none; }
summary { -webkit-appearance: none; }
