/*
  Stellar Education — site design system
  Palette derived from the Stellar Education logo:
  green→teal gradient (#027A54 → #2BA392) and cyan (#0992B4).
*/

:root {
  --ink: #0A3440;
  --text: #33494F;
  --muted: #5E7278;
  --bg: #F5FAF9;
  --surface: #FFFFFF;
  --surface-2: #ECF5F2;
  --line: #DCE9E6;

  --teal: #0E8F71;
  --teal-dark: #0B7159;
  --teal-soft: #E2F3EE;
  --grad-a: #027A54;
  --grad-b: #2BA392;

  --cyan: #0992B4;
  --cyan-dark: #077795;
  --cyan-soft: #E2F2F7;

  --gold: #E8A317;
  --gold-ink: #7A5200;
  --gold-soft: #FBF0D8;

  --hero-a: #062E33;
  --hero-b: #0C4C46;
  --hero-ink: #F2FAF8;
  --hero-muted: #A9C6C2;

  --shadow: 0 10px 30px rgba(6, 46, 51, 0.07);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.12;
  text-wrap: balance;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.2rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.14rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
section { padding: 62px 0; }
.muted { color: var(--muted); }
.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--teal-dark);
}
.eyebrow.gold { color: var(--gold-ink); }
.eyebrow.cyan { color: var(--cyan-dark); }
.eyebrow.light { color: var(--hero-muted); }

.section-head { max-width: 680px; margin-bottom: 34px; }
.section-head p { color: var(--muted); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px;
  font-weight: 600; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer;
  font-family: inherit; line-height: 1.3;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-demo { background: linear-gradient(120deg, var(--grad-a), var(--grad-b)); color: #fff; }
.btn-demo:hover { box-shadow: 0 8px 20px rgba(14, 143, 113, .35); }
.btn-watch { background: var(--gold); color: #231803; }
.btn-watch:hover { box-shadow: 0 8px 20px rgba(232, 163, 23, .35); }
.btn-enquire { background: var(--cyan); color: #fff; }
.btn-enquire:hover { box-shadow: 0 8px 20px rgba(9, 146, 180, .35); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-hero-ghost { border-color: rgba(255, 255, 255, .35); color: var(--hero-ink); background: transparent; }
.btn-hero-ghost:hover { border-color: rgba(255, 255, 255, .8); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============ Header ============ */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 20px; max-width: 1200px; margin: 0 auto;
}
.logo { display: flex; align-items: center; }
.logo img { height: 44px; width: auto; display: block; }
nav.main { display: flex; align-items: center; gap: 2px; }
nav.main a.navlink {
  padding: 9px 12px; border-radius: 8px; color: var(--ink);
  font-weight: 500; font-size: .96rem;
}
nav.main a.navlink:hover { background: var(--surface-2); text-decoration: none; }
nav.main a.navlink[aria-current="page"] { color: var(--teal-dark); font-weight: 700; background: var(--teal-soft); }
.nav-cta { margin-left: 8px; }
.hamburger {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 11px; cursor: pointer; color: var(--ink); font-size: 1.2rem; line-height: 1;
}

.dd { position: relative; }
.dd-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 12px; border-radius: 8px; color: var(--ink);
  font-weight: 500; font-size: .96rem; font-family: inherit;
  background: none; border: none; cursor: pointer;
}
.dd-btn:hover { background: var(--surface-2); }
.dd-btn .bi { font-size: .7rem; opacity: .6; }
.dd-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); min-width: 260px; padding: 8px; z-index: 60;
}
.dd-menu.right { left: auto; right: 0; }
.dd.open .dd-menu { display: block; }
.dd-menu a { display: block; padding: 10px 13px; border-radius: 8px; color: var(--ink); font-size: .94rem; font-weight: 500; }
.dd-menu a:hover { background: var(--surface-2); text-decoration: none; }
.dd-menu .dd-sep { border-top: 1px solid var(--line); margin: 7px 6px; }
.dd-menu .dd-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding: 8px 13px 4px;
}

@media (max-width: 980px) {
  .hamburger { display: block; }
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px; box-shadow: var(--shadow);
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  nav.main.open { display: flex; }
  nav.main a.navlink { padding: 13px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta { margin: 12px 0 0; }
  .dd { width: 100%; }
  .dd-btn { width: 100%; justify-content: space-between; padding: 13px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .dd-menu { position: static; box-shadow: none; border: none; border-radius: 0; padding: 0 0 6px 16px; min-width: 0; }
}

/* ============ Heroes ============ */
.hero {
  background: linear-gradient(140deg, var(--hero-a) 0%, var(--hero-b) 100%);
  color: var(--hero-ink);
  padding: 68px 0 60px;
}
.hero h1, .hero h2 { color: var(--hero-ink); }
.hero .lede { font-size: 1.13rem; color: var(--hero-muted); max-width: 36em; font-weight: 400; }
.hero .split { align-items: center; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .arms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.arm-chip {
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .25); color: var(--hero-muted);
}
.arm-chip b { color: var(--hero-ink); font-weight: 700; }
.hero-points { list-style: none; margin: 22px 0 0; padding: 0; }
.hero-points li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--hero-muted); }
.hero-points li .bi { position: absolute; left: 0; top: 2px; color: var(--grad-b); }

.page-hero { padding: 54px 0 40px; }
.page-hero .lede { font-size: 1.12rem; color: var(--muted); max-width: 40em; }
.page-hero .crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.page-hero .crumbs a { color: var(--muted); }

/* ============ Layout helpers ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-wide { grid-template-columns: 1.1fr .9fr; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .split, .split-wide { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding: 48px 0 44px; }
}
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.band { background: var(--surface-2); }
.band-white { background: var(--surface); }
.band-gold { background: var(--gold-soft); }
.band-cyan { background: var(--cyan-soft); }
.band-teal { background: var(--teal-soft); }

/* ============ Cards ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.3rem;
  margin-bottom: 14px; background: var(--teal-soft); color: var(--teal-dark);
}
.card.gold .icon { background: var(--gold-soft); color: var(--gold-ink); }
.card.cyan .icon { background: var(--cyan-soft); color: var(--cyan-dark); }
.card ul { margin: 0; padding-left: 18px; }
.card ul li { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.link-more { font-weight: 600; font-size: .95rem; }

.related {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; color: inherit; box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.related:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--teal); }
.related .bi { font-size: 1.5rem; color: var(--teal-dark); }
.related h3 { margin: 10px 0 6px; font-size: 1.02rem; }
.related p { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.related span { font-weight: 600; font-size: .9rem; color: var(--teal-dark); }

/* ============ Lists ============ */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.checklist li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 99px;
  background: var(--teal-soft); color: var(--teal-dark);
  font-size: .78rem; font-weight: 700; display: grid; place-items: center;
}
.checklist li b, .checklist li strong { color: var(--ink); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 54px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 99px;
  background: var(--teal-soft); color: var(--teal-dark);
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700;
  display: grid; place-items: center;
}
.steps li h3 { margin-bottom: 4px; }
.steps li p { color: var(--muted); margin-bottom: 0; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .steps-grid, .steps-grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .steps-grid, .steps-grid.cols-3 { grid-template-columns: 1fr; } }
.step-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.step-box .num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 99px;
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b)); color: #fff;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; margin-bottom: 12px;
}
.step-box p { color: var(--muted); margin-bottom: 0; }

.icon-item { display: flex; gap: 14px; }
.icon-item .bi { font-size: 1.35rem; color: var(--teal-dark); flex-shrink: 0; margin-top: 2px; }
.icon-item h4 { font-size: 1.02rem; margin: 0 0 4px; font-family: "Bricolage Grotesque", sans-serif; color: var(--ink); }
.icon-item p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }

.explore-row { display: flex; flex-wrap: wrap; gap: 10px; }
.explore-row a {
  font-size: .9rem; font-weight: 600; padding: 9px 15px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.explore-row a:hover { border-color: var(--teal); color: var(--teal-dark); text-decoration: none; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.pill {
  font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}

/* ============ FAQ ============ */
.faq-item { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-item summary {
  cursor: pointer; font-weight: 600; padding: 16px 4px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--teal-dark); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .faq-body { padding: 0 4px 18px; color: var(--muted); }

/* ============ CTA band ============ */
.cta-band {
  background: linear-gradient(140deg, var(--hero-a), var(--hero-b));
  color: var(--hero-ink); text-align: center;
  padding: 62px 20px;
}
.cta-band h2 { color: var(--hero-ink); }
.cta-band p { color: var(--hero-muted); max-width: 38em; margin: 0 auto 26px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta-band.gold-band { background: linear-gradient(140deg, #3D2C05, #6B4D09); }

/* ============ Contact ============ */
.contact-card {
  display: block; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; box-shadow: var(--shadow); color: inherit;
}
.contact-card:hover { text-decoration: none; border-color: var(--teal); }
.contact-card .bi { font-size: 1.6rem; color: var(--teal-dark); }
.contact-card h3 { margin: 10px 0 6px; }
.contact-card .value { display: block; font-weight: 700; color: var(--ink); }
.contact-card .hint { display: block; font-size: .88rem; color: var(--muted); margin-top: 4px; }

/* ============ Forms ============ */
form .field { margin-bottom: 16px; }
form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
form input, form select, form textarea {
  width: 100%; padding: 12px 14px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font-family: inherit; font-size: 1rem;
}
form input:focus, form select:focus, form textarea:focus {
  outline: 2px solid var(--teal); border-color: var(--teal);
}
.form-note { font-size: .85rem; color: var(--muted); }
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}

/* ============ Placeholder (for real assets to come) ============ */
.ph {
  border: 2px dashed #A8C1BC;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .5);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 6px; padding: 22px;
  color: var(--muted); font-size: .88rem; min-height: 120px;
}
.ph .ph-tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85;
}
.ph.tall { min-height: 300px; }

/* Video embed */
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; background: #0B1B1E;
  border: 1px solid var(--line);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============ Legal prose ============ */
.legal-body { max-width: 780px; }
.legal-body h3 { margin-top: 2em; color: var(--ink); }
.legal-body ul { padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body hr { border: none; border-top: 1px solid var(--line); margin: 2.2em 0; }

/* ============ Footer ============ */
footer.site {
  background: var(--hero-a); color: var(--hero-muted);
  padding: 54px 0 30px; font-size: .95rem;
}
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 880px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { footer.site .cols { grid-template-columns: 1fr; } }
footer.site h4 {
  color: var(--hero-ink); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  margin: 0 0 14px; font-family: "Instrument Sans", sans-serif; font-weight: 700;
}
footer.site a { color: var(--hero-muted); display: block; margin-bottom: 9px; }
footer.site a:hover { color: var(--hero-ink); text-decoration: none; }
footer.site .brand-blurb { max-width: 30em; }
footer.site .flogo { background: #fff; border-radius: 10px; padding: 8px 14px; display: inline-block; margin-bottom: 14px; }
footer.site .flogo img { height: 34px; display: block; }
.social-links { display: flex; gap: 10px; margin-top: 12px; }
.social-links a {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .2); color: var(--hero-muted); margin: 0;
}
.social-links a:hover { border-color: var(--grad-b); color: #fff; }
footer.site .fineprint {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px;
  font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
footer.site .fineprint a { display: inline; margin: 0; }

/* ============ Misc ============ */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.compare th, table.compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.compare th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
table.compare tr:last-child td { border-bottom: none; }

.tv-wordmark {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  letter-spacing: -.01em;
}
.tv-wordmark .tv-badge {
  display: inline-block; background: var(--gold); color: #231803;
  border-radius: 8px; padding: 0 .35em; margin-left: .18em;
}
