/* Tutor's own pages: landing, pricing, policies. Colours follow the course app (app/style.css), and so does the
   theme: light by default, dark when the visitor picks it with the ◐ button (data-theme on <html>, kept with the app's). */
:root {
  color-scheme: light;
  --bg: #f8fafc; --bg2: #edf2f7; --fg: #0f1c2e; --fg2: #4a5a70; --line: #d5dde8;
  --accent: #1d4ed8; --accent-bg: #e6edfc; --on-accent: #fff; --warn-bg: #fdf4e2; --warn-line: #e6c486;
  --ok: #13733a; --ok-bg: #e4f4ea; --warn: #a24f07;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1322; --bg2: #131c2e; --fg: #e4e9f1; --fg2: #9aa7ba; --line: #25324a;
  --accent: #7aa7ff; --accent-bg: #172649; --on-accent: #0c1322; --warn-bg: #30250f; --warn-line: #6b5427;
  --ok: #4cc98a; --ok-bg: #112a20; --warn: #e3aa4f;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.top, .beta, .page, .bottom { max-width: 860px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 10px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; color: var(--fg); }
.logo img { border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--accent); color: var(--on-accent); padding: 6px 14px; border-radius: 8px; font-weight: 600; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.big { font-size: 18px; padding: 12px 22px; }
.theme-btn { font: inherit; font-size: 16px; line-height: 1; color: var(--fg); background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; cursor: pointer; }
.theme-btn:hover { background: var(--bg2); }

.beta { font-size: 14px; color: var(--fg2); background: var(--bg2); border-radius: 8px; padding-top: 8px; padding-bottom: 8px; }
@media (min-width: 892px) { .beta { padding-left: 16px; padding-right: 16px; } }

.page { padding-top: 8px; padding-bottom: 40px; }
.page h1 { font-size: 34px; line-height: 1.2; margin: 24px 0 12px; }
.page h2 { font-size: 22px; margin: 32px 0 8px; }
.page section { margin: 8px 0 0; }
.page li { margin: 4px 0; }
.small { font-size: 14px; color: var(--fg2); }
.notice { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 8px; padding: 10px 14px; }

.hero { padding: 24px 0 8px; }
.hero h1 { font-size: clamp(32px, 7vw, 48px); margin-top: 16px; }
.lead { font-size: 19px; color: var(--fg2); max-width: 680px; }
.cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 24px 0 6px; }
.more { font-weight: 600; }
.day { padding-left: 22px; }
.quote { font-size: 20px; font-weight: 600; border-left: 4px solid var(--accent); padding: 4px 0 4px 14px; margin: 18px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
@media (max-width: 640px) { .two { grid-template-columns: 1fr; } }

.table { overflow-x: auto; margin: 8px 0; }
.table table { border-collapse: collapse; font-size: 15px; min-width: 100%; }
.table th, .table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--fg2); font-weight: 600; white-space: nowrap; }
.table code { font-size: 13px; }
.tutor-left { font-weight: 600; white-space: nowrap; }

.contact { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
.contact dt { color: var(--fg2); }
.contact dd { margin: 0; }

.bottom { border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 32px; font-size: 14px; color: var(--fg2); }
.bottom nav { line-height: 2; }
.bottom p { margin: 6px 0; }

.lang-switch { text-align: right; margin: 8px 0 0; }
.routes { display: flex; gap: 10px 22px; flex-wrap: wrap; font-weight: 600; }
:lang(ml) body, body:lang(ml) { font-family: "Noto Sans Malayalam", "Manjari", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
:lang(ml) .page h1 { line-height: 1.35; }

/* a career route (lib/routes.js): the route's Markdown as a page of its own */
.route-top { font-size: 14px; color: var(--fg2); margin: 16px 0 0; }
.route-share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 0; }
.share { font: inherit; font-weight: 600; color: var(--accent); background: var(--accent-bg); border: 0; border-radius: 8px; padding: 6px 14px; cursor: pointer; }
.route h1 { font-size: clamp(28px, 6vw, 38px); }
.route h3 { font-size: 18px; margin: 22px 0 6px; }
.route blockquote { margin: 14px 0; padding: 8px 14px; background: var(--warn-bg); border-left: 4px solid var(--warn-line); border-radius: 0 8px 8px 0; }
.route blockquote p { margin: 6px 0; }
.route li:has(> input[type=checkbox]) { list-style: none; margin-left: -22px; }
.route li > input[type=checkbox] { margin: 0 8px 0 0; vertical-align: -2px; }
.route .say { font-style: italic; }
.route .table table { font-size: 14px; }
.route .table td { min-width: 10em; }
