/* ==========================================================================
   Troodon Game Academy
   Palette sampled from the logo: gold mascot, teal badge, coral crest.
   Boldness is spent in one place — the bug-report card in the hero.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700&family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --ink:        #10211C;
  --teal-900:   #0F2E27;
  --teal-800:   #133A31;
  --teal-600:   #2F6B5C;
  --teal-400:   #4F8C7D;
  --teal-100:   #E3EFEA;
  --mist:       #F1F6F3;
  --paper:      #FFFFFF;
  --line:       #DCE6E1;
  --body:       #39493F;
  --muted:      #6A7C72;

  --gold:       #F2C200;
  --gold-dark:  #D4A800;
  --coral:      #D06234;

  --sans:    'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', var(--sans);
  --mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --wrap: 1120px;
  --r:    10px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 .6rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.3rem); }
h3 { font-size: 1.22rem; font-weight: 600; }
h4 { font-size: 1.02rem; font-weight: 600; }

p  { margin: 0 0 1.05rem; max-width: 70ch; }
ul, ol { max-width: 70ch; }

a { color: var(--teal-600); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--ink);
  padding: .7rem 1.1rem; font-weight: 600; z-index: 100;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.wrap--narrow { max-width: 680px; }
.wrap--mid    { max-width: 860px; }

main { flex: 1 0 auto; }

/* ---------- Header ------------------------------------------------------ */
.masthead {
  background: var(--teal-800);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.masthead__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 66px;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: #fff; text-decoration: none;
  font-family: var(--display); font-weight: 700;
  font-size: 1.04rem; letter-spacing: -0.02em; line-height: 1.1;
  margin-right: auto;
}
.brand img { width: 38px; height: 38px; display: block; }
.brand span small {
  display: block; font-family: var(--sans); font-weight: 500;
  font-size: .68rem; color: var(--teal-400); letter-spacing: .02em;
}

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  color: rgba(255,255,255,.84);
  text-decoration: none;
  font-size: .94rem; font-weight: 500;
  padding: .45rem .7rem; border-radius: 6px;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: var(--gold); }

.navtoggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.28);
  color: #fff; border-radius: 6px; padding: .4rem .6rem; cursor: pointer;
  font-size: .9rem;
}
@media (max-width: 860px) {
  .navtoggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--teal-800); flex-direction: column; align-items: stretch;
    padding: .6rem 1.25rem 1rem; gap: .15rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .6rem .5rem; }
  .nav .btn { margin-top: .4rem; text-align: center; }
}

/* ---------- Buttons ----------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans); font-weight: 600; font-size: .97rem;
  padding: .72rem 1.3rem; border-radius: 7px;
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; text-align: center;
  transition: background-color .13s ease, border-color .13s ease, color .13s ease;
}
.btn--gold  { background: var(--gold); color: var(--ink); }
.btn--gold:hover  { background: var(--gold-dark); color: var(--ink); }
.btn--teal  { background: var(--teal-600); color: #fff; }
.btn--teal:hover  { background: var(--teal-800); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--line  { background: var(--paper); color: var(--teal-600); border-color: var(--line); }
.btn--line:hover  { background: var(--mist); border-color: var(--teal-400); color: var(--ink); }
.btn--sm { padding: .42rem .85rem; font-size: .88rem; }
.btn--block { display: block; width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Hero -------------------------------------------------------- */
.hero {
  background: var(--teal-800);
  color: #fff;
  padding: clamp(2.6rem, 1.5rem + 4vw, 4.6rem) 0 clamp(2.8rem, 2rem + 4vw, 5rem);
}
.hero__grid {
  display: grid; gap: clamp(2rem, 1rem + 4vw, 3.4rem);
  align-items: start;
}
@media (min-width: 940px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; align-items: center; }
}
.hero h1 { color: #fff; }
.hero__lead {
  font-size: 1.12rem; color: #C7DAD3; max-width: 46ch; margin-bottom: 1.6rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.6rem; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 1.6rem;
  padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.14);
}
.hero__fact strong {
  display: block; font-family: var(--display); font-size: 1.5rem;
  color: var(--gold); line-height: 1.1;
}
.hero__fact span { font-size: .85rem; color: #A9C3BA; }

/* ---------- Bug report card (the one bold element) ---------------------- */
.bugcard {
  background: var(--paper);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 24px 50px -28px rgba(0,0,0,.6);
  font-family: var(--mono);
  font-size: .845rem;
  line-height: 1.6;
  color: var(--body);
}
.bugcard__bar {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  background: var(--ink); color: #fff;
  padding: .6rem .95rem;
  font-size: .78rem;
}
.bugcard__id { color: var(--gold); font-weight: 500; letter-spacing: .04em; }
.bugcard__sev {
  background: var(--coral); color: #fff;
  padding: .1rem .5rem; border-radius: 3px; font-weight: 500;
}
.bugcard__body { padding: 1rem 1.1rem 1.15rem; }
.bugcard__title {
  font-family: var(--sans); font-weight: 600; font-size: 1.02rem;
  color: var(--ink); margin: 0 0 .85rem; line-height: 1.35;
}
.bugcard dl { margin: 0; }
.bugcard dt {
  color: var(--teal-600); font-weight: 500; font-size: .74rem;
  margin-top: .85rem; letter-spacing: .03em;
}
.bugcard dt:first-child { margin-top: 0; }
.bugcard dd { margin: .2rem 0 0; }
.bugcard ol { margin: .2rem 0 0; padding-left: 1.3rem; }
.bugcard ol li { margin-bottom: .12rem; }
.bugcard .is-actual { color: var(--coral); }
.bugcard__fix {
  margin-top: 1rem; padding-top: .85rem; border-top: 1px dashed var(--line);
  font-family: var(--sans); font-size: .92rem;
}
.bugcard__fix strong { color: var(--ink); }

/* ---------- Sections ---------------------------------------------------- */
.section { padding: clamp(2.8rem, 2rem + 3.5vw, 4.8rem) 0; }
.section--mist { background: var(--mist); }
.section--teal { background: var(--teal-800); color: #C7DAD3; }
.section--teal h2, .section--teal h3 { color: #fff; }

.section__head { max-width: 62ch; margin-bottom: 2.2rem; }
.section__head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }
.section--teal .section__head p { color: #A9C3BA; }

/* ---------- Feature rows (asymmetric, not identical cards) -------------- */
.pillars { display: grid; gap: 1.6rem; }
@media (min-width: 820px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 2.2rem; } }
.pillar { border-top: 3px solid var(--gold); padding-top: 1rem; }
.pillar:nth-child(2) { border-top-color: var(--teal-400); }
.pillar:nth-child(3) { border-top-color: var(--coral); }
.pillar h3 { margin-bottom: .4rem; }
.pillar p { margin-bottom: 0; font-size: .97rem; }

/* ---------- Technique list ---------------------------------------------- */
.techlist { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 720px) { .techlist { grid-template-columns: 1fr 1fr; } }
.tech {
  background: var(--paper); padding: 1.3rem 1.4rem;
  display: block; text-decoration: none; color: inherit;
}
.tech:hover { background: var(--mist); }
.tech__top { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.tech h3 { margin: 0 0 .3rem; color: var(--ink); }
.tech p { margin: 0; font-size: .94rem; color: var(--body); }
.chip {
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  background: var(--teal-100); color: var(--teal-600);
  padding: .16rem .5rem; border-radius: 3px; white-space: nowrap;
}
.chip--manual   { background: #FDF1CC; color: #7A5E00; }
.chip--hybrid   { background: var(--teal-100); color: var(--teal-600); }
.chip--research { background: #F7E0D6; color: #8A3E1C; }

/* ---------- Curriculum: genuinely a sequence, so numbered --------------- */
.weeks { margin: 0; padding: 0; list-style: none; counter-reset: wk; }
.weeks li {
  counter-increment: wk;
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.weeks li:last-child { border-bottom: 0; }
.weeks li::before {
  content: 'Weeks ' counter(wk);
  font-family: var(--mono); font-size: .76rem; color: var(--teal-600);
  background: var(--teal-100); border-radius: 4px;
  padding: .3rem .55rem; height: fit-content; white-space: nowrap;
}
.weeks h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.weeks p  { margin: 0; font-size: .96rem; }

/* ---------- Prose ------------------------------------------------------- */
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose--lead > p:first-of-type { font-size: 1.12rem; color: var(--ink); }

.crumbs { font-size: .86rem; color: var(--muted); padding: 1rem 0 0; }
.crumbs a { color: var(--teal-600); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- FAQ --------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1.05rem 2rem 1.05rem 0; position: relative;
  font-weight: 600; color: var(--ink); font-size: 1.02rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: .3rem; top: 50%;
  transform: translateY(-50%); font-size: 1.4rem; color: var(--teal-400);
  font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: '\2013'; }
.faq details > div { padding-bottom: 1.1rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------------------------------------------------- */
.cta {
  background: var(--gold);
  padding: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem) 0;
}
.cta__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.4rem;
}
.cta h2 { margin-bottom: .3rem; color: var(--ink); }
.cta p  { margin: 0; color: #4A3D00; max-width: 52ch; }
.cta .btn--teal { background: var(--ink); }
.cta .btn--teal:hover { background: var(--teal-800); }

/* ---------- Forms ------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.field label {
  display: block; font-weight: 600; font-size: .92rem;
  color: var(--ink); margin-bottom: .32rem;
}
.field .hint { display: block; font-size: .85rem; color: var(--muted); font-weight: 400; margin-top: .2rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="date"], .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem;
  padding: .66rem .8rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 7px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(79,140,125,.2);
}
.field--two { display: grid; gap: 1.1rem; }
@media (min-width: 600px) { .field--two { grid-template-columns: 1fr 1fr; } }

.consent {
  background: var(--mist); border: 1px solid var(--line); border-radius: 7px;
  padding: .95rem 1.05rem; font-size: .92rem; line-height: 1.55;
  display: flex; gap: .7rem; align-items: flex-start;
}
.consent input { margin-top: .32rem; width: 17px; height: 17px; flex-shrink: 0; }

.panel {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: clamp(1.3rem, 1rem + 1.2vw, 2rem);
}
.panel--mist { background: var(--mist); }

.notice { border-radius: 7px; padding: .9rem 1.05rem; margin-bottom: 1.3rem; border: 1px solid; border-left-width: 3px; font-size: .96rem; }
.notice p:last-child { margin-bottom: 0; }
.notice--ok   { background: var(--teal-100); border-color: var(--teal-600); color: #124C3E; }
.notice--bad  { background: #FBEBE6; border-color: var(--coral);  color: #8A3014; }
.notice--info { background: #FDF6DC; border-color: var(--gold-dark); color: #5C4800; }

/* ---------- Fee summary ------------------------------------------------- */
.fee { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .4rem; }
.fee strong { font-family: var(--display); font-size: 2.5rem; color: var(--ink); line-height: 1; }
.fee span { color: var(--muted); font-size: .95rem; }
.included { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.included li { padding: .45rem 0 .45rem 1.5rem; position: relative; border-bottom: 1px solid var(--line); font-size: .96rem; }
.included li:last-child { border-bottom: 0; }
.included li::before {
  content: ''; position: absolute; left: .2rem; top: 1rem;
  width: 7px; height: 7px; border-radius: 2px; background: var(--gold);
}

/* ---------- Steps (registration flow — a real sequence) ----------------- */
.steps { display: grid; gap: 1.2rem; counter-reset: st; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: st; padding-top: .9rem; border-top: 2px solid var(--line); }
.steps li::before {
  content: counter(st); font-family: var(--mono); font-size: .8rem;
  color: var(--teal-600); display: block; margin-bottom: .35rem;
}
.steps h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.steps p { font-size: .94rem; margin: 0; }

/* ---------- Footer ------------------------------------------------------ */
.foot {
  flex-shrink: 0; background: var(--teal-900); color: #9FB8AF;
  padding: 2.6rem 0 1.8rem; margin-top: auto; font-size: .93rem;
}
.foot a { color: #D6E5DF; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot__grid { display: grid; gap: 1.8rem; }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h4 { color: #fff; font-size: .95rem; margin-bottom: .6rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .35rem; }
.foot__base {
  margin-top: 2rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .86rem;
}
.foot__brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; }
.foot__brand img { width: 44px; height: 44px; }
.foot__brand strong { color: #fff; font-family: var(--display); font-size: 1.05rem; }

/* ---------- Utility ----------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
