/* Teach Me: the colours of the app (docs/teach-me-app/DESIGN.md in the app repo).
   Dark, calm surfaces; neon only on the main button and the logo. */
:root {
  --bg: #050509;
  --pane: #0c0a14;
  --card: #13101d;
  --line: #2a2440;
  --text: #f5f3ff;
  --dim: #b9b2d0;
  --faint: #7d7596;
  --accent: #fb8002;
  --accent-hover: #fd9701;
  --on-accent: #1a0c00;
  --gold: #fdd108;
  --magenta: #cf56f3;
  --violet: #8920f5;
  --link: #5aa7ff;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

a { color: var(--link); }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 0; padding: 8px 12px; background: var(--card); color: var(--text); z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* ---- top bar ---- */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--pane);
}
.bar-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-style: italic;
  font-size: 1.25rem;
}
.bar-name img { border-radius: 7px; }
.bar-name span { color: var(--accent); }
.bar nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.bar nav a { color: var(--dim); text-decoration: none; font-size: 0.95rem; }
.bar nav a:hover { color: var(--text); }

main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- hero ---- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 72px 0 56px;
}
.hero-text { display: grid; gap: 22px; }
.lead { font-size: 1.2rem; color: var(--dim); max-width: 40ch; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: 0.9rem; color: var(--faint); max-width: 52ch; }
.fine a { color: var(--dim); }
.hero-logo { width: 100%; max-width: 420px; height: auto; justify-self: center; }

.button {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(251, 128, 2, 0.45);
  transition: background 0.15s, box-shadow 0.15s;
}
.button:hover { background: var(--accent-hover); color: var(--on-accent); box-shadow: 0 0 26px rgba(253, 151, 1, 0.55); }
.button-quiet { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.button-quiet:hover { background: var(--card); color: var(--text); box-shadow: none; border-color: var(--faint); }

/* ---- sections ---- */
.band { padding: 56px 0; border-top: 1px solid var(--line); display: grid; gap: 28px; }
.intro { color: var(--dim); max-width: 60ch; }

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cards li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.cards p { color: var(--dim); font-size: 0.97rem; }

/* Three steps, numbered in the colours of the logo ring. */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.steps li {
  counter-increment: step;
  display: grid;
  gap: 6px;
  align-content: start;
  padding-top: 52px;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 800;
}
.steps li:nth-child(2)::before { border-color: var(--gold); color: var(--gold); }
.steps li:nth-child(3)::before { border-color: var(--magenta); color: var(--magenta); }
.steps span { color: var(--dim); }

.key { justify-items: start; }

/* ---- footer ---- */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 24px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.9rem;
}
.footer a { color: var(--dim); }
.heart { color: #ff5a6e; }

@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 40px 0; gap: 32px; }
  .hero-logo { max-width: 280px; grid-row: 1; }
  .cards, .steps { grid-template-columns: minmax(0, 1fr); }
  .bar nav a:not(:last-child) { display: none; }
  main { padding: 0 16px; }
  .bar, .footer { padding-left: 16px; padding-right: 16px; }
}
