/* Brainlight Academy. Plain CSS, mobile first. No build step. */
:root {
  --gold: #D6A64E;        /* on charcoal only */
  --gold-dark: #B4832A;   /* bars and large marks on light */
  --gold-text: #7A5A16;   /* small gold text on light, contrast above 4.5 to 1 */
  --charcoal: #262624;
  --charcoal-2: #31312E;
  --cream: #FAF9F5;
  --paper: #F1EEE4;
  --white: #FFFFFF;
  --line: #E2DCCB;
  --ink-soft: #4A4944;
  --cream-soft: #E9E5D9;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 68rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--cream); color: var(--charcoal);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.9rem, 6.2vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 4.2vw, 2rem); }
h3 { font-size: 1.2rem; }
p, ul, ol { margin: 0 0 1em; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--gold-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 44rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--charcoal); padding: 0.75rem 1rem; font-weight: 600; z-index: 10; }
.skip:focus { left: 0; }

/* Header */
.site-header { background: var(--charcoal); color: var(--cream); border-bottom: 1px solid #3B3B37; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; min-height: 44px; }
.brand img { width: 32px; height: 32px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.04em; text-transform: uppercase; }
.brand-sub { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.42em; color: var(--gold); margin-top: 0.3rem; text-transform: uppercase; }
.nav-toggle { display: none; background: none; border: 1px solid #6A6962; color: var(--cream); font: 600 0.95rem var(--sans); min-height: 44px; padding: 0 1rem; border-radius: 4px; cursor: pointer; }
.js .nav-toggle { display: inline-block; }
.site-nav { width: 100%; }
.js .site-nav { display: none; }
.js .site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0.25rem 0 0.5rem; }
.site-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 0.25rem; text-decoration: none; font-weight: 500; border-left: 4px solid transparent; padding-left: 0.75rem; }
.site-nav a:hover { border-left-color: #6A6962; }
.site-nav a[aria-current="page"] { border-left-color: var(--gold); color: var(--gold); }
@media (min-width: 52rem) {
  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; width: auto; }
  .site-nav ul { display: flex; gap: 0.25rem; padding: 0; }
  .site-nav a { border-left: 0; border-bottom: 3px solid transparent; padding: 0 0.7rem; }
  .site-nav a:hover { border-bottom-color: #6A6962; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
}

/* Hero: charcoal, with the gold bar from the logo beside the headline */
.hero { background: var(--charcoal); color: var(--cream); position: relative; overflow: hidden; }
.hero .wrap { position: relative; padding-top: 2.75rem; padding-bottom: 3rem; }
.hero-inner { border-left: 10px solid var(--gold); padding-left: 1.1rem; max-width: 43rem; }
.hero h1 { margin-bottom: 0.5em; }
.hero p { color: var(--cream-soft); font-size: 1.125rem; max-width: 36rem; }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem; }
.hero .eyebrow { color: var(--gold); font-size: 0.8rem; }
.hero-mark { display: none; }
@media (min-width: 52rem) {
  .hero .wrap { padding-top: 4.5rem; padding-bottom: 4.75rem; }
  .hero-inner { border-left-width: 14px; padding-left: 1.75rem; }
  .hero-mark { display: block; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); width: 15rem; opacity: 0.1; }
}
.hero-small .wrap { padding-top: 2.25rem; padding-bottom: 2.25rem; }
@media (min-width: 52rem) { .hero-small .wrap { padding-top: 3.25rem; padding-bottom: 3.25rem; } }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.6rem 1.35rem; border-radius: 4px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; text-align: center; }
.btn-gold { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }
.btn-gold:hover { background: #E2B865; border-color: #E2B865; }
.btn-line { border-color: var(--cream); color: var(--cream); }
.btn-line:hover { background: var(--cream); color: var(--charcoal); }
.btn-dark { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.btn-dark:hover { background: #3B3B37; border-color: #3B3B37; }
.hero .btn:focus-visible, .buy .btn:focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--cream); }

/* Sections */
.section { padding: 2.75rem 0; }
.section-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 52rem) { .section { padding: 4rem 0; } }
.section > .wrap > h2, .bar-title { position: relative; padding-left: 1rem; }
.section > .wrap > h2::before, .bar-title::before { content: ""; position: absolute; left: 0; top: 0.12em; bottom: 0.12em; width: 5px; background: var(--gold-dark); }
.lead { font-size: 1.125rem; color: var(--ink-soft); max-width: 40rem; }

/* Course cards */
.cards { display: grid; gap: 1rem; margin-top: 1.5rem; padding: 0; list-style: none; }
@media (min-width: 52rem) { .cards { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.card { background: var(--white); border: 1px solid var(--line); border-left: 8px solid var(--gold-dark); padding: 1.35rem 1.25rem 1.25rem; display: flex; flex-direction: column; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); }
.card .card-link { margin-top: auto; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.card-soon { border-left-color: #B9B4A4; background: var(--cream); }
.tag { align-self: flex-start; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--charcoal); padding: 0.2rem 0.55rem; margin-bottom: 0.8rem; border-radius: 2px; }
.tag-free { border-color: var(--gold-text); color: var(--gold-text); }

/* Steps */
.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .steps-2 { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.steps li { counter-increment: step; position: relative; padding-left: 3.4rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -0.2rem; font-family: var(--serif); font-weight: 700; font-size: 2.3rem; line-height: 1; color: var(--gold-text); width: 2.6rem; border-bottom: 3px solid var(--gold-dark); padding-bottom: 0.25rem; }
.steps h3 { margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Plain lists with a small gold bar */
.ticks { list-style: none; padding: 0; margin: 1rem 0 1.25rem; }
.ticks li { position: relative; padding-left: 1.4rem; margin-bottom: 0.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 5px; height: 0.9em; background: var(--gold-dark); }
.two-col { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .two-col { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* Buy panel */
.buy { background: var(--charcoal); color: var(--cream); border-left: 10px solid var(--gold); padding: 1.5rem 1.25rem; margin-top: 1.5rem; }
.buy h2, .buy h3 { margin-bottom: 0.4rem; }
.buy p { color: var(--cream-soft); }
.price { font-family: var(--serif); font-weight: 700; font-size: 2.4rem; line-height: 1.1; color: var(--cream); margin: 0.6rem 0 0.2rem; }
.price small { font-family: var(--sans); font-weight: 500; font-size: 0.9rem; color: var(--cream-soft); letter-spacing: 0.02em; }
.buy .fine { font-size: 0.9rem; margin: 1rem 0 0; }
@media (min-width: 52rem) { .buy { padding: 2rem 2rem; } }

/* YouTube channel list */
.channels { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.75rem; }
@media (min-width: 52rem) { .channels { grid-template-columns: repeat(3, 1fr); } }
.channels a { display: block; background: var(--white); border: 1px solid var(--line); padding: 0.9rem 1rem; text-decoration: none; min-height: 44px; }
.channels a:hover { border-color: var(--charcoal); }
.channels strong { display: block; }
.channels span { font-size: 0.8rem; color: var(--ink-soft); word-break: break-word; }

/* FAQ */
.faq { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; padding: 0.9rem 2rem 0.9rem 0; min-height: 48px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.7rem; font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--gold-text); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-right: 1rem; color: var(--ink-soft); }

/* Text pages */
.prose h2 { margin-top: 2rem; font-size: 1.35rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.note { background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--gold-dark); padding: 1rem 1.1rem; margin: 1.5rem 0; }
.note p:last-child { margin-bottom: 0; }
.email-big { font-family: var(--serif); font-weight: 700; font-size: clamp(1.05rem, 4.6vw, 1.6rem); word-break: break-all; display: inline-block; padding: 0.5rem 0; }
.small { font-size: 0.9rem; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--cream-soft); padding: 2.25rem 0 2rem; font-size: 0.95rem; border-top: 6px solid var(--gold); }
.site-footer .cols { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; } }
.site-footer h2 { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.site-footer a { text-decoration-color: var(--gold); }
.foot-brand { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--cream); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.4rem; }
.legal { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid #45453F; font-size: 0.82rem; line-height: 1.55; color: #CFCABC; }
.legal p { margin-bottom: 0.5rem; }

/* Exams dropdown in the main menu */
.site-nav .sub { list-style: none; margin: 0; padding: 0 0 0 1rem; }
.site-nav .sub a { font-weight: 400; }
@media (min-width: 52rem) {
  .site-nav .has-sub { position: relative; }
  .site-nav .sub { display: none; position: absolute; left: 0; top: 100%; z-index: 20; min-width: 14rem; background: var(--charcoal); border-top: 3px solid var(--gold); padding: 0.35rem 0; flex-direction: column; gap: 0; }
  .site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub { display: flex; }
  .site-nav .sub a { border-bottom: 0; padding: 0 1rem; }
}
@media (min-width: 52rem) { .steps-3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* Exam format tables */
.table-wrap { overflow-x: auto; margin-top: 1.25rem; }
.fmt { border-collapse: collapse; width: 100%; max-width: 44rem; background: var(--white); }
.fmt th, .fmt td { text-align: left; padding: 0.65rem 0.8rem; border: 1px solid var(--line); }
.fmt th { background: var(--charcoal); color: var(--cream); font-weight: 600; }
