/* =========================================================
   Launchpad Institute — shared stylesheet
   Used by every page in the site.
   ========================================================= */

:root {
  --color-navy-950: #0b1b2b;
  --color-navy-900: #10263c;
  --color-navy-800: #16344f;
  --color-navy-700: #1e4364;
  --color-navy-600: #29567f;
  --color-blue-500: #2f7dd1;
  --color-blue-400: #4b98e8;
  --color-teal-500: #17a398;
  --color-teal-400: #2cc2b5;
  --color-amber-500: #f2a93b;
  --color-amber-600: #db8f1f;
  --color-red-500: #d64545;

  --color-bg: #f6f8fb;
  --color-surface: #ffffff;
  --color-border: #dde5ee;
  --color-text: #1c2a38;
  --color-text-muted: #55677a;
  --color-text-inverse: #f4f8fb;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(16, 38, 60, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 38, 60, 0.12);
  --shadow-lg: 0 20px 45px rgba(16, 38, 60, 0.22);

  --max-width: 1180px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons & badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-amber-500);
  color: var(--color-navy-950);
}

.btn-primary:hover {
  background: var(--color-amber-600);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(244, 248, 251, 0.6);
  color: var(--color-text-inverse);
}

.btn-secondary:hover {
  background: rgba(244, 248, 251, 0.12);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-blue-500);
  color: var(--color-blue-500);
}

.btn-outline:hover {
  background: var(--color-blue-500);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-teal {
  background: rgba(23, 163, 152, 0.12);
  color: var(--color-teal-500);
}

.badge-amber {
  background: rgba(242, 169, 59, 0.16);
  color: var(--color-amber-600);
}

.badge-muted {
  background: rgba(85, 103, 122, 0.12);
  color: var(--color-text-muted);
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navy-950);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text-inverse);
  font-weight: 700;
  font-size: 1.15rem;
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text-inverse);
  opacity: 0.88;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-inverse);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--color-navy-950), var(--color-navy-700) 65%, var(--color-teal-500));
  color: var(--color-text-inverse);
  padding: 4.5rem 0 5rem;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
}

.hero h1 {
  color: #fff;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(244, 248, 251, 0.86);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2.2rem;
  font-size: 0.92rem;
  color: rgba(244, 248, 251, 0.75);
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.hero-card {
  background: rgba(16, 38, 60, 0.55);
  border: 1px solid rgba(244, 248, 251, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  backdrop-filter: blur(6px);
}

.hero-card h3 {
  color: #fff;
  margin-bottom: 0.8rem;
}

.hero-card p {
  color: rgba(244, 248, 251, 0.82);
  font-size: 0.95rem;
}

.hero-card ul {
  margin-top: 1rem;
  display: grid;
  gap: 0.6rem;
}

.hero-card li {
  list-style: none;
  display: flex;
  gap: 0.6rem;
  color: rgba(244, 248, 251, 0.92);
  font-size: 0.92rem;
}

/* Small hero used on topic pages */

.page-hero {
  background: linear-gradient(150deg, var(--color-navy-900), var(--color-navy-700));
  color: var(--color-text-inverse);
  padding: 3.2rem 0;
}

.page-hero .container {
  display: block;
}

.page-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.6rem;
}

.page-hero p {
  max-width: 62ch;
  color: rgba(244, 248, 251, 0.86);
  font-size: 1.05rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(244, 248, 251, 0.7);
  margin-bottom: 1.2rem;
}

.breadcrumb a {
  color: rgba(244, 248, 251, 0.85);
}

/* ---------- Sections ---------- */

.section {
  padding: 4rem 0;
}

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

.section-head {
  max-width: 62ch;
  margin: 0 auto 2.6rem;
  text-align: center;
}

.section-head p {
  color: var(--color-text-muted);
}

/* ---------- Topic card grid (home page) ---------- */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}

/* Each card shows its course logo as a watermark behind the text.
   Tune --topic-image-opacity to make the artwork bolder or fainter. */

.topic-card {
  --topic-image-opacity: 0.22;
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  border: 3px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.topic-card::before {
  content: "";
  position: absolute;
  inset: 10%;
  background-image: var(--topic-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: var(--topic-image-opacity);
  transition: opacity 0.15s ease;
  pointer-events: none;
  z-index: 0;
}

/* Keep the text legible above the watermark. */
.topic-card > * {
  position: relative;
  z-index: 1;
}

.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-blue-500);
}

.topic-card:hover::before {
  opacity: calc(var(--topic-image-opacity) + 0.12);
}

/* Per-course artwork */
.topic-card--python { --topic-image: url("images/Python.webp"); }
.topic-card--pygame { --topic-image: url("images/pygame.png"); }
.topic-card--scratch { --topic-image: url("images/scratch.png"); }
.topic-card--raise { --topic-image: url("images/raise.png"); }
.topic-card--unity { --topic-image: url("images/Unity.svg"); }
.topic-card--flutter { --topic-image: url("images/Google-flutter-logo.png"); }
.topic-card--vibecoding { --topic-image: url("images/vibebcoding.jpg"); }
.topic-card--java { --topic-image: url("images/Java-Logo.png"); }
.topic-card--web { --topic-image: url("images/456-4561754_html5-js-css3-logo-png-transparent-png.png"); }
.topic-card--cac { --topic-image: url("images/Congressional-App-Challenge-Coalition-Vertical-2.png"); }
.topic-card--roblox { --topic-image: url("images/robloxStudio.jpeg"); }
/* Animated WebP, not GIF. Same 4.5s loop at roughly 6% of the file size.
   Animated WebP works as a background-image; a video file would not. */
.topic-card--personal { --topic-image: url("images/lil-yachty-drake.webp"); }

.topic-card h3 {
  margin-bottom: 0;
}

.topic-card p {
  color: var(--color-text-muted);
  font-size: 0.93rem;
  margin-bottom: 0;
  flex-grow: 1;
}

.topic-card-link {
  font-weight: 600;
  font-size: 0.92rem;
}

/* Stacked, narrower card pair (used on the home page for the
   "Where we teach" and "1-on-1 or small group" sections) */

.narrow-stack {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  max-width: 640px;
  margin: 0 auto;
}

/* Service area list */

.service-area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.service-area-list li {
  list-style: none;
  background: rgba(47, 125, 209, 0.1);
  border: 1px solid rgba(47, 125, 209, 0.25);
  color: var(--color-navy-800);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
}

/* Coming soon strip */

.coming-soon {
  background: var(--color-navy-950);
  color: var(--color-text-inverse);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  align-items: center;
  justify-content: space-between;
}

.coming-soon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.coming-soon-list li {
  list-style: none;
  background: rgba(244, 248, 251, 0.1);
  border: 1px solid rgba(244, 248, 251, 0.22);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.88rem;
}

/* ---------- Steps / how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

.step {
  text-align: left;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--color-teal-500);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

/* ---------- Topic page content ---------- */

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

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

.card + .card {
  margin-top: 1.6rem;
}

.check-list {
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  list-style: none;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: rgba(23, 163, 152, 0.15);
  color: var(--color-teal-500);
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.15em;
}

.sidebar-card h3 {
  font-size: 1.05rem;
}

.sidebar-fact {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.sidebar-fact:last-child {
  border-bottom: none;
}

.sidebar-fact dt {
  color: var(--color-text-muted);
}

.sidebar-fact dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.prereq-note {
  background: rgba(242, 169, 59, 0.12);
  border: 1px solid rgba(242, 169, 59, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  color: var(--color-navy-900);
  margin-top: 1rem;
}

/* ---------- Pricing page ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.6rem;
  align-items: start;
}

.price-card {
  position: relative;
  background: var(--color-surface);
  border: 3px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.price-card--featured {
  border-color: var(--color-teal-500);
  box-shadow: var(--shadow-md);
}

.price-card-flag {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-teal-500);
  color: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-card h3 {
  margin-bottom: 0.15rem;
}

.price-tier-sub {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-navy-900);
  line-height: 1.05;
}

.price-amount span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.price-per {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0.35rem 0 1.1rem;
}

.price-split {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 0.9rem 0;
  margin-bottom: 1.1rem;
}

.price-split dl {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.price-split-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.92rem;
}

.price-split-row dt {
  color: var(--color-text-muted);
}

.price-split-row dd {
  margin: 0;
  font-weight: 700;
  color: var(--color-navy-900);
  white-space: nowrap;
}

.price-course-list {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.price-course-list li {
  list-style: none;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.93rem;
}

.price-course-list li::before {
  content: "\2022";
  color: var(--color-teal-500);
  font-weight: 700;
  line-height: 1.4;
}

.price-course-list a {
  color: var(--color-text);
}

.price-course-list a:hover {
  color: var(--color-blue-500);
}

.price-callout {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-amber-500);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  margin-top: 2rem;
}

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

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--color-teal-500), var(--color-blue-500));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.6rem;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-navy-950);
  color: rgba(244, 248, 251, 0.75);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(244, 248, 251, 0.15);
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.footer-grid ul {
  display: grid;
  gap: 0.55rem;
}

.footer-grid li {
  list-style: none;
}

.footer-grid a {
  color: rgba(244, 248, 251, 0.75);
  font-size: 0.9rem;
}

.footer-bottom {
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ---------- Intake modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 27, 43, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 0.2rem;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal h2 {
  margin-bottom: 0.3rem;
}

.modal-sub {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.form-field {
  margin-bottom: 1.2rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-navy-900);
}

.form-field .field-hint {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 0.96rem;
  font-family: inherit;
  color: var(--color-text);
  background: #fff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-blue-400);
  outline-offset: 1px;
  border-color: var(--color-blue-400);
}

.form-field textarea {
  resize: vertical;
  min-height: 90px;
}

.form-error {
  color: var(--color-red-500);
  font-size: 0.82rem;
  margin-top: 0.35rem;
  display: none;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--color-red-500);
}

.form-field.has-error .form-error {
  display: block;
}

.form-status {
  display: none;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}

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

.form-status.success {
  background: rgba(23, 163, 152, 0.12);
  color: var(--color-teal-500);
}

.form-status.error {
  background: rgba(214, 69, 69, 0.12);
  color: var(--color-red-500);
}

.intake-form.is-submitted .form-fields {
  display: none;
}

/* ---------- Floating trigger (small screens convenience) ---------- */

.floating-cta {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 90;
  box-shadow: var(--shadow-lg);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links,
  .nav-actions .btn-outline-inline {
    display: none;
  }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-navy-950);
    padding: 1.2rem 1.5rem 1.6rem;
    box-shadow: var(--shadow-md);
  }

  .coming-soon {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .modal {
    padding: 1.5rem;
  }
}

/* ---------- Intake form: honeypot, Turnstile, pending state ---------- */

/* Spam trap. Hidden from humans but filled in by naive bots, which the
   Worker treats as a silent reject. Positioned offscreen rather than
   display:none so bots that skip hidden fields still see it. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Reserve height so the modal does not jump when the widget renders. */
.form-field--turnstile {
  min-height: 65px;
}

.form-status.pending {
  background: rgba(47, 125, 209, 0.12);
  color: var(--color-blue-500);
}
