/* Shared styles for the teacher help/onboarding pages (matches the LessonBot panel) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #f5f5f6;
  --surface: #fff;
  --line: #ebebed;
  --line-strong: #dededf;
  --ink: #191a1f;
  --muted: #6c6c78;
  --faint: #9a9aa5;
  --accent: #4f46e5;
  --accent-soft: #eef0fe;
  --success: #15a34a;
  --success-soft: #e9f7ee;
  --warn: #c2780c;
  --warn-soft: #fbf1e0;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(18, 18, 23, .04), 0 6px 16px -8px rgba(18, 18, 23, .10);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
.tnum { font-variant-numeric: tabular-nums; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(245, 245, 246, .85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; max-width: 1040px; }
.brand { flex: none; display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; color: var(--ink); }
.brand .logo {
  width: 32px; height: 32px; border-radius: 9px; background: var(--accent);
  display: grid; place-items: center; color: #fff;
}
.brand small { display: block; font-size: 11px; color: var(--faint); font-weight: 500; }
.nav { margin-left: auto; display: flex; gap: 4px; flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 7px 12px; border-radius: 9px; white-space: nowrap; flex: none;
}
.nav a:hover { background: var(--line); color: var(--ink); }
.nav a.active { background: var(--accent-soft); color: var(--accent); }

/* Hero */
.hero { padding: 48px 0 24px; }
.hero h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; }
.hero p.lead { font-size: 17px; color: var(--muted); margin: 0; max-width: 620px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }

section { padding: 22px 0; }
h2 { font-size: 22px; letter-spacing: -.02em; margin: 8px 0 18px; }
h3 { font-size: 16px; margin: 0 0 6px; }
p { margin: 0 0 12px; }
a { color: var(--accent); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
}

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.feature .ico { font-size: 22px; }
.feature h3 { margin: 10px 0 4px; font-size: 15px; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; }

/* Steps */
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
ol.steps > li {
  counter-increment: s; position: relative; padding: 0 0 22px 52px; margin: 0;
}
ol.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 15px;
}
ol.steps > li::after {
  content: ""; position: absolute; left: 16px; top: 36px; bottom: 4px; width: 2px; background: var(--line);
}
ol.steps > li:last-child { padding-bottom: 0; }
ol.steps > li:last-child::after { display: none; }
ol.steps h3 { margin-bottom: 4px; }
ol.steps p { color: var(--muted); font-size: 14.5px; }

/* Pricing */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.plan.pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan .tag { font-size: 13px; font-weight: 600; color: var(--muted); }
.plan.pro .tag { color: var(--accent); }
.plan .price { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 8px 0 2px; }
.plan .price span { font-size: 15px; font-weight: 500; color: var(--faint); }
.plan ul { list-style: none; padding: 0; margin: 16px 0 0; }
.plan li { font-size: 14px; color: var(--muted); padding: 6px 0 6px 24px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }

.pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--success-soft); color: var(--success); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: 11px;
}
.btn:hover { background: #4338ca; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line-strong); }

.note { background: var(--warn-soft); border: 1px solid #f0dcb8; border-radius: 12px; padding: 14px 16px; font-size: 14px; color: #7a5305; }
.kbd { font-family: ui-monospace, Menlo, monospace; background: var(--line); border-radius: 6px; padding: 1px 7px; font-size: 13px; color: var(--ink); }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.faq { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16px; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; flex: none; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--accent-soft); }
.faq-item .faq-a { padding: 2px 22px 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.faq-item .faq-a a { color: var(--accent); text-decoration: none; }
.faq-item .faq-a a:hover { text-decoration: underline; }

footer { padding: 40px 0 56px; color: var(--faint); font-size: 13px; text-align: center; }

@media (max-width: 560px) {
  .hero h1 { font-size: 27px; }
  .brand small { display: none; }
  .nav { gap: 2px; }
  .nav a { padding: 6px 9px; font-size: 13px; }
  .nav .nav-cta { padding: 7px 11px; }
}

/* Print / PDF — keep colors and backgrounds, drop the sticky bar */
@page { size: A4; margin: 12mm; }
@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .topbar { position: static; backdrop-filter: none; }
  .hero { padding-top: 16px; }
  .nav { display: none; }     /* hide nav links in PDF, keep brand + content */
  .feature, .plan { break-inside: avoid; }
  ol.steps > li { break-inside: avoid; }
}
