/* ==========================================================================
   Public site — trade school theme.

   Self-contained: the LMS Tailwind build is purge-generated from views/, so the
   public site deliberately does not depend on it. Editing this file is enough.
   ========================================================================== */

:root {
  --ink: #0b1220;
  --ink-2: #1e293b;
  --body: #475569;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --bg-deep: #0b1220;

  --brand: #1d4ed8;
  --brand-dark: #1e3a8a;
  --brand-soft: #eff6ff;
  --accent: #f59e0b;
  --ok: #059669;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .05);
  --shadow: 0 4px 6px -1px rgba(11, 18, 32, .07), 0 2px 4px -2px rgba(11, 18, 32, .05);
  --shadow-lg: 0 20px 40px -12px rgba(11, 18, 32, .16);

  --wrap: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: .4rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }

.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.section.alt { background: var(--bg-alt); }
.section.deep { background: var(--bg-deep); color: #cbd5e1; }
.section.deep h1, .section.deep h2, .section.deep h3 { color: #fff; }

.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); margin: 0 0 .75rem;
}
.section.deep .eyebrow { color: var(--accent); }

.lede { font-size: 1.12rem; color: var(--body); max-width: 62ch; }
.section.deep .lede { color: #94a3b8; }

.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ── Header ─────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.05rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-2); font-weight: 550; font-size: .95rem; }
.nav a:hover { color: var(--brand); text-decoration: none; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 1.5rem; color: var(--ink); padding: 4px 8px;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px;
    box-shadow: var(--shadow-lg);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav .btn { margin-top: 12px; text-align: center; justify-content: center; }
}

/* ── Buttons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; border: 1px solid transparent;
  padding: 12px 24px; border-radius: 10px; font-weight: 650; font-size: .96rem;
  cursor: pointer; transition: background .15s ease, transform .15s ease;
  line-height: 1.3; white-space: nowrap;
}
.btn:hover { background: var(--brand-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn.lg { padding: 15px 30px; font-size: 1.02rem; }
.btn.sm { padding: 8px 16px; font-size: .875rem; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg-alt); color: var(--ink); border-color: var(--faint); }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: #f1f5f9; color: var(--ink); }
.btn.accent { background: var(--accent); color: #422006; }
.btn.accent:hover { background: #d97706; color: #422006; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(29, 78, 216, .16), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #131f36 100%);
  color: #cbd5e1; padding: 96px 0 104px; position: relative; overflow: hidden;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lede { color: #94a3b8; font-size: 1.18rem; max-width: 54ch; margin-bottom: 2rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 64px 0 72px; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  color: #e2e8f0; padding: 7px 14px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; margin-bottom: 22px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

.hero-stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div strong { display: block; color: #fff; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.hero-stats div span { font-size: .84rem; color: #94a3b8; }

/* ── Cards ──────────────────────────────────────────────────────────── */

.grid { display: grid; gap: 24px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, transform .18s ease;
}
.card.hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* ── Program card ───────────────────────────────────────────────────── */

.program-card { display: flex; flex-direction: column; height: 100%; padding: 0; overflow: hidden; }
.program-card .top { padding: 26px 26px 0; flex: 1; }
.program-card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 1.35rem;
  color: #fff; margin-bottom: 16px;
}
.program-card h3 { margin-bottom: 4px; }
.program-card .cred { font-size: .8rem; font-weight: 650; color: var(--muted); margin-bottom: 12px; }
.program-card p { font-size: .94rem; color: var(--body); }
.program-card .meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: var(--muted); margin-top: 16px;
}
.program-card .foot {
  border-top: 1px solid var(--line-soft); margin-top: 20px;
  padding: 18px 26px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; background: var(--bg-alt);
}
.price { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.price small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }
.price.tbd { font-size: 1rem; color: var(--muted); font-weight: 600; }

/* ── Feature / step lists ───────────────────────────────────────────── */

.feature { display: flex; gap: 16px; }
.feature .fi {
  flex: none; width: 42px; height: 42px; border-radius: 11px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.section.deep .feature .fi { background: rgba(255,255,255,.08); color: var(--accent); }
.feature h3 { font-size: 1.05rem; margin-bottom: 4px; }
.feature p { font-size: .93rem; margin: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); margin: 0; }
.steps li:first-child { border-top: 0; }
.steps li::before {
  content: counter(step); flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 3px; }
.steps p { font-size: .94rem; margin: 0; }

/* ── Tables ─────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.tuition { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; }
table.tuition th {
  text-align: left; padding: 14px 18px; background: var(--bg-alt); color: var(--muted);
  font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.tuition td { padding: 16px 18px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
table.tuition tr:last-child td { border-bottom: 0; }
table.tuition td.amount { text-align: right; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── Pills & notes ──────────────────────────────────────────────────── */

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: .76rem; font-weight: 700; letter-spacing: .02em;
  background: var(--brand-soft); color: var(--brand);
}
.pill.ok { background: #ecfdf5; color: var(--ok); }
.pill.warn { background: #fffbeb; color: #b45309; }
.pill.neutral { background: #f1f5f9; color: var(--muted); }

.note {
  border-left: 3px solid var(--brand); background: var(--bg-alt);
  padding: 16px 20px; border-radius: 0 10px 10px 0; font-size: .93rem; margin: 0 0 20px;
}
.note.accent { border-color: var(--accent); background: #fffbeb; }

/* ── Demo widget ────────────────────────────────────────────────────── */

.demo {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: #fff; box-shadow: var(--shadow-lg);
}
.demo-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; background: #0f172a; color: #e2e8f0; font-size: .84rem; font-weight: 600;
}
.demo-bar .dots { display: flex; gap: 6px; }
.demo-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #334155; display: block; }
.demo-bar .dots i:first-child { background: #ef4444; }
.demo-bar .dots i:nth-child(2) { background: #f59e0b; }
.demo-bar .dots i:nth-child(3) { background: #22c55e; }
.demo-body { padding: 28px; }

.q-prompt { font-size: 1.05rem; font-weight: 650; color: var(--ink); margin-bottom: 18px; }
.q-opts { display: grid; gap: 10px; margin-bottom: 16px; }
.q-opt {
  text-align: left; width: 100%; padding: 14px 18px; border-radius: 10px;
  border: 2px solid var(--line); background: #fff; cursor: pointer;
  font: inherit; font-size: .95rem; color: var(--ink-2); transition: all .14s ease;
}
.q-opt:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft); }
.q-opt:disabled { cursor: default; }
.q-opt.correct { border-color: var(--ok); background: #ecfdf5; color: #065f46; font-weight: 600; }
.q-opt.wrong { border-color: #dc2626; background: #fef2f2; color: #991b1b; }
.q-feedback {
  padding: 16px 18px; border-radius: 10px; background: var(--bg-alt);
  font-size: .92rem; border-left: 3px solid var(--brand);
}
.q-feedback[hidden] { display: none; }
.demo-progress { font-size: .82rem; color: var(--muted); margin-bottom: 14px; font-weight: 600; }

.terminal {
  background: #0b1220; color: #a5f3c8; border-radius: 10px; padding: 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86rem; line-height: 1.7; overflow-x: auto; min-height: 200px;
}
.terminal .cmd { color: #93c5fd; }
.terminal .err { color: #fca5a5; }
.terminal .dim { color: #64748b; }

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-footer { background: var(--bg-deep); color: #94a3b8; padding: 64px 0 32px; font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #cbd5e1; display: block; margin-bottom: 9px; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem;
}

/* ── Utilities ──────────────────────────────────────────────────────── */

.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.divider { height: 1px; background: var(--line); border: 0; margin: 48px 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
