/* base.css — shared design system for every READScore page.
   Header, footer, buttons, and the marketing hero/features layout used
   to be copy-pasted into every single page's own stylesheet (11 byte-
   identical copies). That's consolidated here now: every template loads
   this file first, then its own page-specific stylesheet for whatever
   is unique to that page. Change a color or the header once, it updates
   everywhere. */

:root {
  --color-bg: #ffffff;
  --color-text: #15171a;
  --color-text-muted: #6b7280;
  --color-border: #ececec;
  --color-blue: #2452e0; /* matches --blue in the app pages' design system */
  --color-blue-hover: #1b3bb0; /* matches --blue-deep in the app pages' design system */
  --color-amber: #b45309;
  --color-badge-bg: #1f2430;
  --max-width: 1200px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* No background here on purpose: body already supplies the marketing
     white background, and the app/dashboard pages set their own gradient
     background on body too — an opaque background here would paint over
     it on every page. */
}

/* ---------- HEADER ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 32px;
}

.logo {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}
.logo .logo-score {
  color: var(--color-blue);
}
.logo .logo-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 15px;
}

nav.main-nav {
  display: flex;
  gap: 36px;
  margin-left: auto;
  margin-right: 36px;
}

nav.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-text);
  padding-bottom: 4px;
  position: relative;
  transition: color 0.15s ease;
}
nav.main-nav a:hover { color: var(--color-blue); }

nav.main-nav a.active {
  color: var(--color-text);
  border-bottom: 2px solid var(--color-blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.signin-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-blue);
}

.signin-link svg { width: 16px; height: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-blue);
  color: #ffffff;
}
.btn-primary:hover { background: var(--color-blue-hover); }

.btn-outline {
  background: transparent;
  color: var(--color-blue);
  border: 1px solid var(--color-blue);
}
.btn-outline:hover { background: #eff4ff; }

/* ---------- MAIN ----------
   Every page shares the same header + footer, but the centered
   marketing layout (flex/background) is scoped to main.marketing-main
   specifically (used only by home/about/faq/contact). The dashboards,
   classrooms, login, and register pages have plain <main> elements and
   fully own their own background/layout via their own stylesheets, so
   this rule is written to never touch them.

   min-height:100vh forces main to always fill the full viewport
   regardless of content, so the footer sits below the fold and
   requires a scroll to reach. */
main.marketing-main {
  flex: 1;
  min-height: 100vh;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- HERO ---------- */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 88px 32px 140px;
  text-align: center;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-badge-bg);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 32px;
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
}

.hero h1 {
  font-size: 96px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 auto 28px;
  max-width: 100%;
  text-align: center;
  color: var(--color-text);
}

.hero p.subtitle {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.hero-actions .btn {
  padding: 11px 28px;
  font-size: 15px;
}

/* ---------- FEATURES ---------- */
.features {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-features {
  padding: 0;
  margin-bottom: 32px;
}

.feature-card {
  text-align: left;
}

.feature-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-amber);
  margin-bottom: 10px;
}

.feature-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* ---------- FOOTER ---------- */
footer.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 56px 32px 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 900px) {
  .hero h1 { font-size: 56px; }
  .features-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .header-inner { padding: 14px 20px; }
}

@media (max-width: 560px) {
  .hero { padding: 56px 20px 48px; }
  .hero h1 { font-size: 36px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .features-inner { grid-template-columns: 1fr; padding: 40px 20px; }
}
