/* Spectrum the Schooling Zone - Custom Rainbow Theme */
:root {
  --color-primary: #ff1100 !important; /* Red */
  --color-accent: #0077ff !important;  /* Blue */
  --color-bg: #f8fafc !important;      /* Light Slate */
  --color-text: #0affad !important;    /* Bright Green/Cyan */
  
  /* Rainbow Spectrum Helpers */
  --rainbow-red: #ff1100;
  --rainbow-orange: #ff7700;
  --rainbow-yellow: #ffdd00;
  --rainbow-green: #0affad;
  --rainbow-blue: #0077ff;
  --rainbow-violet: #7a00ff;
  
  --rainbow-gradient: linear-gradient(90deg, var(--rainbow-red), var(--rainbow-orange), var(--rainbow-yellow), var(--rainbow-green), var(--rainbow-blue), var(--rainbow-violet));
  --rainbow-gradient-soft: linear-gradient(135deg, rgba(255,17,0,0.05), rgba(0,119,255,0.05));
  
  /* Readable text colors for body */
  --color-dark: #0f172a;
  --color-muted: #475569;
  --color-card: #ffffff;
  --color-border: #e2e8f0;
  
  --space-xs: .25rem;
  --space-sm: .5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,.04);
  --shadow-md: 0 10px 25px rgba(0,0,0,.08);
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-dark);
  background: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-dark);
  margin-top: 0;
}

/* Rainbow Text & Accents */
.rainbow-text {
  background: var(--rainbow-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.rainbow-border {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--color-card);
  z-index: 1;
}

.rainbow-border::before {
  content: '';
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  background: var(--rainbow-gradient);
  border-radius: calc(var(--radius-lg) + 3px);
  z-index: -1;
}

.container {
  width: min(calc(100% - 2rem), var(--container-max));
  margin-inline: auto;
}

/* Navigation */
.site-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid;
  border-image: var(--rainbow-gradient) 1;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-md) 0;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-dark);
}

.logo-badge {
  background: var(--rainbow-gradient);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  padding: var(--space-sm) var(--space-xs);
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-cta {
  background: var(--rainbow-gradient);
  color: white !important;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 119, 255, 0.2);
  transition: transform 0.2s ease;
}

.nav-cta:hover {
  transform: scale(1.03);
}

/* Sections */
.section {
  padding: var(--space-2xl) 0;
}

.section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl) auto;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: var(--space-sm);
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 800;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-sm);
}

.lead {
  font-size: 1.15rem;
  color: var(--color-muted);
}

/* Hero Section */
.hero {
  background: var(--rainbow-gradient-soft);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  margin-bottom: var(--space-md);
}

.hero-media {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 4px solid white;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--rainbow-gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 17, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 17, 0, 0.35);
}

.btn-secondary {
  background: white;
  color: var(--color-dark);
  border: 2px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  background: var(--color-bg);
}

.button-row {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

/* Cards & Grids */
.card-grid {
  display: grid;
  gap: var(--space-lg);
}

.card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--rainbow-gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

/* Feature list */
.feature-list {
  display: grid;
  gap: var(--space-xl);
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.pricing-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  border: 1px solid var(--color-border);
  position: relative;
  transition: transform 0.3s ease;
}

.pricing-card.featured {
  border: 3px solid var(--color-accent);
  transform: scale(1.03);
}

.pricing-card.featured::before {
  content: 'POPULAR CHOICE';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rainbow-gradient);
  color: white;
  padding: 0.3rem 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 20px;
  letter-spacing: 0.1em;
}

.price-amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-dark);
  margin: var(--space-md) 0;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 600;
  vertical-align: super;
}

.price-period {
  font-size: 1rem;
  color: var(--color-muted);
}

/* Toppers List */
.toppers-grid {
  display: grid;
  gap: var(--space-lg);
}

.topper-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.topper-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-accent);
}

.topper-score {
  margin-left: auto;
  background: var(--rainbow-gradient-soft);
  border: 1px solid var(--color-accent);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  text-align: center;
}

.topper-score-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* Contact Form */
.contact-container {
  display: grid;
  gap: var(--space-2xl);
}

.contact-form {
  background: white;
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--color-dark);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--color-accent);
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: white;
  padding: var(--space-2xl) 0 var(--space-xl) 0;
  margin-top: var(--space-2xl);
}

.footer-inner {
  display: grid;
  gap: var(--space-xl);
}

.footer-brand h3 {
  color: white;
  font-size: 1.6rem;
  margin-bottom: var(--space-sm);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-copy {
  border-top: 1px solid #334155;
  padding-top: var(--space-lg);
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

/* Details / Accordion */
details {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  transition: border-color 0.3s ease;
}

details[open] {
  border-color: var(--color-accent);
}

summary {
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-accent);
}

details[open] summary::after {
  content: '−';
}

/* Responsive Breakpoints */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
  
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .toppers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-container {
    grid-template-columns: 1.2fr 0.8fr;
  }
  
  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

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


/* PitchWebsite QA safety floor */
html { -webkit-text-size-adjust: 100%; }
body { min-width: 320px; font-size: max(16px, 1rem); }
img, svg, video { max-width: 100%; height: auto; }
a.btn, button, input[type="button"], input[type="submit"] { min-height: 44px; }

/* User-selected palette (authoritative — do not override) */
:root {
  --color-primary: #ff1100 !important;
  --color-accent: #0077ff !important;
  --color-bg: #f8fafc !important;
  --color-text: #0affad !important;
}
