/* Alma Mater Wars — Static Website Stylesheet
   Publisher: CacaoBytes
   Palette: Deep Navy (#0F172A), Medical Teal (#0D9488), Varsity Gold (#F59E0B), Slate (#F8FAFC)
*/

:root {
  --bg-canvas: #F8FAFC;
  --surface: #FFFFFF;
  --surface-subtle: #F1F5F9;
  --navy: #0F172A;
  --navy-soft: #1E293B;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --teal: #0D9488;
  --teal-dark: #0F766E;
  --teal-tint: #F0FDFA;
  --gold: #F59E0B;
  --gold-dark: #B45309;
  --gold-tint: #FFFBEB;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --danger: #DC2626;
  --danger-tint: #FEF2F2;
  --success: #15803D;
  --success-tint: #DCFCE7;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --max-width: 1120px;
}

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

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.75rem;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #FFFFFF;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold);
  flex-shrink: 0;
}

.brand-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
}

.site-nav {
  display: none;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 1.25rem;
  box-shadow: var(--shadow-md);
}

.site-nav.is-open {
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-weight: 600;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border-bottom: 0;
    padding: 0;
    box-shadow: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-link {
    min-height: 40px;
    padding: 0.5rem 0.875rem;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(160deg, #0F172A 0%, #1E293B 60%, #134E4A 100%);
  color: #FFFFFF;
  padding: 3.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FCD34D;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: #FFFFFF;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-lead {
  color: #CBD5E1;
  font-size: 1.125rem;
  max-width: 58ch;
  margin-bottom: 1.75rem;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--navy);
}

.store-badge--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.store-badge--secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.store-badge-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.store-badge-small {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.store-badge-name {
  font-size: 0.9375rem;
  font-weight: 700;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: #94A3B8;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Hero Preview Card */
.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.arena-preview {
  background: var(--surface);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

.arena-preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.pill--teal {
  background: var(--teal-tint);
  color: var(--teal-dark);
  border: 1px solid #99F6E4;
}

.pill--gold {
  background: var(--gold-tint);
  color: var(--gold-dark);
  border: 1px solid #FDE68A;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

.preview-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.preview-stat {
  background: var(--surface-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.preview-stat-val {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
}

.preview-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

@media (min-width: 900px) {
  .hero {
    padding: 4.5rem 0 5rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 680px;
  margin-bottom: 2.25rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-dark);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
}

/* Feature Grid */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--teal-tint);
  color: var(--teal-dark);
  margin-bottom: 1rem;
}

.card-icon--gold {
  background: var(--gold-tint);
  color: var(--gold-dark);
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

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

/* Support & FAQ */
.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 840px) {
  .support-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 28px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teal-dark);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.9375rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--teal-dark);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--navy);
  color: #FFFFFF;
}

.btn-secondary {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-subtle);
  color: var(--navy);
}

/* Legal & Policy Pages */
.page-banner {
  background: var(--navy);
  color: #FFFFFF;
  padding: 2.75rem 0;
}

.page-banner h1 {
  color: #FFFFFF;
  font-size: clamp(1.75rem, 3.5vw, 2.375rem);
  margin-bottom: 0.5rem;
}

.page-banner p {
  color: #CBD5E1;
  margin: 0;
}

.prose-shell {
  padding: 2.5rem 0 4rem;
}

.prose-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  max-width: 860px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .prose-card {
    padding: 2.5rem;
  }
}

.prose-card h2 {
  font-size: 1.375rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.prose-card h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose-card h3 {
  font-size: 1.0625rem;
  margin-top: 1.25rem;
}

.prose-card ul,
.prose-card ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  color: var(--text-secondary);
}

.prose-card li {
  margin-bottom: 0.45rem;
}

.callout {
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
}

.callout--teal {
  background: var(--teal-tint);
  border-color: #99F6E4;
}

.callout--gold {
  background: var(--gold-tint);
  border-color: #FDE68A;
}

.callout--danger {
  background: var(--danger-tint);
  border-color: #FECACA;
}

/* Form Elements (Account Deletion) */
.form-group {
  margin-bottom: 1.125rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--navy);
  background: var(--surface);
}

.form-input:focus,
.form-textarea:focus {
  outline: 2px solid var(--teal);
  border-color: var(--teal);
}

.form-help {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

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

.status-box {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #99F6E4;
  background: var(--teal-tint);
  color: var(--navy);
  font-size: 0.9375rem;
  display: none;
}

.status-box.is-visible {
  display: block;
}

.status-box pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #CBD5E1;
  padding: 2.75rem 0 2rem;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    align-items: center;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: #E2E8F0;
  text-decoration: none;
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: #FCD34D;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #94A3B8;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
