/*
 * The public site's only stylesheet.
 *
 * It is hand-authored and dependency-free on purpose: neurapre.com is a
 * pre-rendered, indexable surface whose whole job is to be readable by a
 * crawler and fast on a phone plan, so it ships no framework, no JavaScript
 * and no font binary. The four canonical Neura brand hex values below are the
 * same literals the app's design tokens (apps/web/src/styles/tokens.css) and
 * brand.mjs declare; they are duplicated here rather than imported because the
 * two bundles are built and served independently.
 */
:root {
  --bg: #071622;
  --surface: #0d2233;
  --primary: #27e7ff;
  --text: #eafbff;
  --text-muted: #9ac9d2;
  --border: #17394a;
  --on-primary: #071622;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 68rem;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 2rem;
  height: 2rem;
  display: block;
}

.site-nav a {
  margin-left: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--text);
}

@media (max-width: 520px) {
  .site-header { align-items: flex-start; }
  .site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.25rem 0.55rem; }
  .site-nav a { margin: 0; font-size: 0.82rem; }
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.hero {
  padding: 3rem 0 2rem;
  max-width: 46rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--primary);
  margin: 0 0 0.75rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.cta {
  display: inline-block;
  margin: 0.5rem 0 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  font-size: 1.05rem;
}

.cta:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin: 1.5rem 0;
}

.card {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  color: var(--text);
}

.card:hover {
  text-decoration: none;
  border-color: var(--primary);
}

.card p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
}

.card__more {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin: 1.5rem 0;
}

.steps li {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}

.steps h3 {
  margin-bottom: 0.35rem;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
}

.notice {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--text-muted);
  margin: 1.25rem 0;
}

.day {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  margin-top: 1.75rem;
}

.topics {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topics li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav a {
  margin-right: 1rem;
  color: var(--text-muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 0.4rem;
}

.welcome-paths { display:flex;flex-wrap:wrap;gap:1rem;margin:1.5rem 0; }
.cta--secondary { background:var(--surface);color:var(--primary);border:1px solid var(--primary); }
.course-library { scroll-margin-top: 1rem; padding: 3rem 0; }
.course-library__intro { max-width: 45rem; }
.course-library__intro h2 { max-width: 23ch; font-size: clamp(1.8rem,3.8vw,3rem); letter-spacing: -.04em; }
.course-library__intro > p:last-child { color: var(--text-muted); line-height: 1.75; }
.course-library__shelf { display:grid;grid-template-columns:minmax(0,1.5fr) minmax(15rem,.8fr);gap:1.25rem;margin-top:2rem;align-items:stretch; }
.library-book-card { display:grid;grid-template-columns:minmax(10rem,.72fr) minmax(0,1fr);gap:1.5rem;align-items:center;padding:1.25rem;border:1px solid var(--border);border-radius:1rem;background:var(--surface); }
.library-book__cover { display:flex;min-height:18rem;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:1.25rem;border-radius:.75rem;color:var(--bg);background:linear-gradient(150deg,#27e7ff 0%,#baf8ff 45%,#6fd7e8 100%);box-shadow:0 .8rem 1.5rem #020b11aa,inset 4px 0 #07162233; }
.library-book__publisher,.library-book__edition { font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase; }
.library-book__icon { width:clamp(3.5rem,8vw,5rem);height:auto;align-self:center; }
.library-book__title { font-size:clamp(1.4rem,3vw,2rem);font-weight:700;line-height:1.08;letter-spacing:-.04em; }
.library-book-card__body h3,.library-coming h3 { font-size:1.35rem;line-height:1.25; }
.library-book-card__body > p:not(.eyebrow),.library-coming p:not(.eyebrow) { color:var(--text-muted);line-height:1.7; }
.library-book-card__body .eyebrow,.library-coming .eyebrow { color:var(--primary);font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em; }
.library-coming { display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:1.5rem;border:1px dashed var(--border);border-radius:1rem;background:linear-gradient(145deg,var(--surface),transparent); }
.library-coming__icon { display:grid;width:3rem;height:3rem;place-items:center;margin-bottom:1.25rem;border:1px solid var(--border);border-radius:50%;color:var(--primary);font-size:2rem;line-height:1; }
.admission-example { padding:2rem 0; }
.admission-example__intro { max-width:52rem;padding:clamp(1.25rem,4vw,2rem);border:1px solid var(--border);border-radius:1rem;background:var(--surface); }
.admission-example h2 { font-size:clamp(1.45rem,3vw,2rem); }
.admission-example__stem { margin:1.25rem 0;padding:1rem;border-left:3px solid var(--primary);background:var(--bg);font-size:clamp(1.05rem,2.5vw,1.3rem);line-height:1.7;overflow-wrap:anywhere; }
.admission-example__solution { margin-top:1rem;border-top:1px solid var(--border); }
.admission-example__solution summary { min-height:44px;padding:.8rem 0;color:var(--primary);font-weight:700;cursor:pointer; }
.admission-example__steps article { display:flex;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--border); }
.admission-example__steps article>span { color:var(--primary);font-weight:700; }
.admission-example__steps h3 { font-size:1rem; }
.admission-example__steps p,.admission-example__source { color:var(--text-muted);line-height:1.7; }
.admission-example__answer,.admission-example__transfer { padding:1rem;background:var(--bg);border-radius:.75rem;line-height:1.7; }
.admission-example__source { font-size:.85rem; }
.university-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:1rem;margin:2rem 0; }
.university-card { padding:1.25rem;border:1px solid var(--border);background:var(--surface);border-radius:1rem; }
.university-card h3 { font-size:1rem;line-height:1.5; }
.university-card p { color:var(--text-muted);font-size:.9rem; }
.university-art { display:flex;align-items:center;gap:1rem;min-height:90px;padding:1rem;margin-bottom:1rem;background:var(--bg);border-radius:.75rem;color:var(--text-muted); }
.university-art svg { width:60px;flex-shrink:0; }
.university-art strong { font-size:1.2rem;letter-spacing:.04em; }
.university-card--available .university-art,.university-card--available .university-status { color:var(--primary); }
.university-card a { display:inline-block;min-height:44px;padding-top:.75rem; }
@media(max-width:700px){.course-library__shelf{grid-template-columns:1fr}.library-book-card{grid-template-columns:minmax(7.5rem,.65fr) minmax(0,1fr);gap:1rem;padding:1rem}.library-book__cover{min-height:15rem;padding:1rem}.library-book-card__body h3{font-size:1.1rem}.library-book-card__body .cta{width:100%;text-align:center}.library-coming{min-height:12rem}}
@media(max-width:380px){.library-book-card{grid-template-columns:minmax(0,1fr)}.library-book__cover{width:min(100%,13rem);min-height:17rem;margin-inline:auto}}
@media(max-width:380px){.admission-example__intro{padding:1rem}.admission-example__steps article{gap:.65rem}}
