/**
 * Plain CSS served from /public — loads even if Next dev CSS chunks fail.
 * When Tailwind/globals load, utilities typically override these rules.
 */
:root {
  --brand: #134e4a;
  --brand-mid: #0d9488;
  --paper: #faf7f1;
  --ink: #0f172a;
  --muted: #57534e;
  --border: #e6dfd2;
  --footer-bg: #0f1412;
  --footer-fg: #ecfdf5;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--brand);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

/* Nav */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

header a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
}

header a:hover {
  color: var(--brand);
}

/* Clerk setup strip */
.clerk-setup-banner {
  border-bottom: 1px solid #fde68a;
  background: #fffbeb;
  color: #422006;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.875rem;
}

.clerk-setup-banner a {
  color: #115e59;
  font-weight: 500;
}

/* Hero & copy */
main h1 {
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #042f2e;
  margin: 2rem 0 1rem;
}

main h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #042f2e;
  margin: 1.25rem 0 0.75rem;
}

main p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 36rem;
}

.text-gradient-brand {
  color: #0f766e;
}

.font-semibold.text-teal-950,
.font-medium.text-teal-800 {
  color: #042f2e;
}

/* Primary / secondary CTAs */
main a[href="/pricing"] {
  display: inline-block;
  margin: 0.25rem 0.5rem 0.25rem 0;
  padding: 0.65rem 1.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg, #0d9488, #059669);
  box-shadow: 0 10px 25px -5px rgba(15, 118, 110, 0.35);
}

main a[href="/curriculum"] {
  display: inline-block;
  margin: 0.25rem 0.5rem 0.25rem 0;
  padding: 0.6rem 1.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: #134e4a;
  border: 2px solid #134e4a;
  background: rgba(255, 255, 255, 0.95);
}

/* Audience paths — top dropdown */
#ai-for-people {
  position: relative;
}

#ai-for-people > p:first-of-type {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f766e;
}

#ai-for-people .audience-path-trigger {
  width: 100%;
  max-width: 20rem;
  margin: 0;
  padding: 0.75rem 1rem;
  text-align: left;
  font: inherit;
  cursor: pointer;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: 0 4px 14px -4px rgba(15, 118, 110, 0.15);
}

#ai-for-people .audience-path-menu ul {
  list-style: none;
  padding: 0.25rem;
  margin: 0;
}

#ai-for-people .audience-path-menu a {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(250, 250, 249, 0.9);
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

#ai-for-people .audience-path-menu a:hover {
  background: #fff;
}

/* Site assistant floating control */
.site-assistant-dock {
  position: fixed;
  top: 5rem;
  right: 1rem;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .site-assistant-dock {
    top: 5.25rem;
    right: 1.5rem;
  }
}

.site-assistant-dock > button {
  font: inherit;
  cursor: pointer;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.5rem 1rem;
  font-weight: 600;
  color: var(--brand);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

/* Footer */
footer {
  flex-shrink: 0;
  background: var(--footer-bg);
  color: var(--footer-fg);
  border-top: 1px solid #1f2937;
}

footer > div {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  footer > div {
    grid-template-columns: 1fr 1fr;
  }
}

footer h3 {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(236, 253, 245, 0.55);
}

footer a,
footer p,
footer address {
  color: rgba(236, 253, 245, 0.88);
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.6;
}

footer a {
  display: inline-block;
  margin: 0.2rem 0;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}
