/* ═══════════════════════════════════════════════════════════
   DragTK — Shared Stylesheet
   Applies to: index.html, learn.html (and any future pages)
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── BASE ── */
body {
  background: #f4f4f0;
  font-family: 'Outfit', sans-serif;
  color: #111;
  overflow-x: hidden;
}

/* ════════════════════════════════════════
   NAV  (shared across all pages)
   ════════════════════════════════════════ */
.nav {
  background: #fff;
  border-bottom: 1px solid #e4e4de;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Logo */
.logo {
  font-size: 20px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 28px;
  height: 28px;
  background: #1a56db;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.logo-mark img { width: 100%; display: block; }
.logo-mark svg { width: 16px; height: 16px; }

/* Desktop nav links */
.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  padding: 7px 12px;
  border-radius: 7px;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.nav-link:hover  { background: #f4f4f0; color: #111; }
.nav-link.active { background: #f4f4f0; color: #111; font-weight: 600; }

.nav-cta {
  background: #1a56db;
  color: #fff;
  padding: 8px 16px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.12s;
  white-space: nowrap;
}
.nav-cta:hover { background: #1447c0; }

/* Hamburger — hidden on desktop, shown on mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: 1px solid #e4e4de;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: #555;
  border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile nav drawer */
.mobile-nav-drawer {
  display: none;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid #e4e4de;
  padding: 8px 16px 16px;
  gap: 2px;
}
.mobile-nav-drawer.open { display: flex; }
.mobile-nav-drawer .nav-link {
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  border-radius: 7px;
}
.mobile-nav-drawer .nav-cta {
  display: block;
  text-align: center;
  padding: 10px 16px;
  margin-top: 6px;
  border-radius: 7px;
}

/* ════════════════════════════════════════
   BUTTONS / SHARED COMPONENTS
   ════════════════════════════════════════ */
.btn {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.btn-primary          { background: #111; color: #fff; }
.btn-primary:hover    { background: #1a56db; }
.btn-ghost            { background: #fff; color: #111; border: 1.5px solid #d8d8d2; }
.btn-ghost:hover      { border-color: #111; }
.btn-blue             { background: #1a56db; color: #fff; }
.btn-blue:hover       { background: #1447c0; }

/* ════════════════════════════════════════
   FOOTER  (shared)
   ════════════════════════════════════════ */
.site-footer {
  background: #fff;
  border-top: 1px solid #e4e4de;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.site-footer p   { font-size: 12px; color: #aaa; font-weight: 500; }
.site-footer a   { color: #1a56db; text-decoration: none; font-weight: 600; }
.footer-pills    { display: flex; gap: 6px; flex-wrap: wrap; }
.fpill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f4f4f0;
  color: #666;
}


/* ════════════════════════════════════════
   INDEX PAGE — HERO
   ════════════════════════════════════════ */
.hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px 32px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1a56db;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #111;
}
.hero h1 span { color: #1a56db; }
.hero-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin-top: 14px;
}
.hero-dl {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.dl-meta {
  margin-top: 10px;
  font-size: 12px;
  color: #999;
  font-weight: 500;
}
.app-window {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e4e4de;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,0.04);
}
.app-window img { width: 100%; display: block; }

/* ════════════════════════════════════════
   INDEX PAGE — WHY SECTION
   ════════════════════════════════════════ */
.why-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 32px 48px;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1a56db;
  margin-bottom: 10px;
}
.section-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #111;
  line-height: 1.15;
  margin-bottom: 20px;
}

.why-intro {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
}
.why-intro-text p {
  font-size: 15px;
  color: #555;
  line-height: 1.75;
  margin-bottom: 14px;
}
.why-intro-text p:last-child { margin-bottom: 0; }

.why-aside {
  background: #fff;
  border: 1px solid #e4e4de;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.aside-stat .stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 4px;
}
.aside-stat .stat-value {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
}
.aside-divider { height: 1px; background: #f0f0ec; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.why-card {
  background: #fff;
  border: 1px solid #e4e4de;
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.12s;
}
.why-card:hover { border-color: #1a56db; }
.why-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eff4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.why-card h3 { font-size: 14px; font-weight: 700; color: #111; margin-bottom: 6px; }
.why-card p  { font-size: 13px; color: #666; line-height: 1.6; }

/* ════════════════════════════════════════
   INDEX PAGE — DOWNLOAD CALLOUT
   ════════════════════════════════════════ */
.callout { max-width: 1000px; margin: 0 auto; padding: 0 32px 48px; }
.callout-inner {
  background: #111;
  border-radius: 12px;
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.callout-inner h2 { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -0.4px; }
.callout-inner p  { font-size: 14px; color: #888; margin-top: 6px; line-height: 1.6; }
.callout-btns     { display: flex; flex-direction: column; gap: 8px; min-width: 160px; }

/* ════════════════════════════════════════
   LEARN PAGE — LAYOUT SHELL
   ════════════════════════════════════════ */
.page-shell {
  display: flex;
  min-height: calc(100vh - 60px);
}

/* ── Sidebar ── */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #e4e4de;
  padding: 24px 0;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}
.sidebar-section  { margin-bottom: 6px; }
.sidebar-heading  {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #aaa;
  padding: 8px 20px 4px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 0.1s, color 0.1s;
  text-decoration: none;
}
.sidebar-item:hover { background: #f4f4f0; color: #111; }
.sidebar-item.active {
  color: #1a56db;
  background: #eff4ff;
  border-left-color: #1a56db;
  font-weight: 600;
}
.sidebar-item .item-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.icon-widget  { background: #eff4ff; color: #1a56db; }
.icon-project { background: #fef9c3; color: #854d0e; }
.sidebar-divider { height: 1px; background: #f0f0ec; margin: 10px 20px; }
.sidebar-item .coming {
  font-size: 10px;
  font-weight: 700;
  color: #bbb;
  margin-left: auto;
  background: #f4f4f0;
  padding: 1px 6px;
  border-radius: 4px;
}

/* Sidebar toggle (mobile lessons nav — distinct from hamburger) */
.sidebar-toggle {
  display: none;
  background: #fff;
  border: 1px solid #e4e4de;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
}

/* ── Main content area ── */
.main {
  flex: 1;
  padding: 40px 48px;
  max-width: 760px;
  min-width: 0;
}

/* ════════════════════════════════════════
   LEARN PAGE — LESSON CONTENT
   ════════════════════════════════════════ */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #aaa;
  font-weight: 500;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a           { color: #aaa; text-decoration: none; }
.breadcrumb a:hover     { color: #1a56db; }
.breadcrumb .bc-sep     { color: #ddd; }
.breadcrumb .bc-current { color: #111; }

/* Lesson header */
.lesson-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1a56db;
  margin-bottom: 8px;
}
.lesson-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #111;
  margin-bottom: 8px;
}
.lesson-desc {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 600px;
}

/* Lesson sections */
.lesson-section        { margin-bottom: 36px; }
.lesson-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e4e4de;
}
.lesson-section h3     { font-size: 14px; font-weight: 700; color: #333; margin: 16px 0 8px; }
.lesson-section p      { font-size: 14px; color: #555; line-height: 1.75; margin-bottom: 10px; }
.lesson-section ul     { padding-left: 20px; margin-bottom: 10px; }
.lesson-section ul li  { font-size: 14px; color: #555; line-height: 1.75; margin-bottom: 4px; }

/* Lesson images */
.lesson-img {
  display: block;
  width: 100%;
  border: 2px solid #e4e4de;
  border-radius: 8px;
  margin: 12px 0 18px;
  content-visibility: auto;
}
.lesson-img-sm { max-width: 60%; }

/* Code block */
.code-block {
  background: #18181b;
  border-radius: 8px;
  overflow: hidden;
  margin: 12px 0 18px;
}
.code-header {
  background: #27272a;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.code-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #888;
}
.copy-btn {
  font-size: 11px;
  font-weight: 600;
  color: #888;
  background: none;
  border: 1px solid #3f3f46;
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: color 0.1s, border-color 0.1s;
}
.copy-btn:hover { color: #fff; border-color: #888; }
.code-body {
  padding: 14px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.9;
  overflow-x: auto;
  color: #f8fafc;
}

/* Syntax colours */
.kw  { color: #60a5fa; }
.st  { color: #34d399; }
.cm  { color: #6b7280; }
.num { color: #f59e0b; }
.fn  { color: #c084fc; }
.var { color: #f8fafc; }

/* Callout boxes */
.tip-box {
  background: #eff4ff;
  border: 1px solid #c7d9ff;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
  display: flex;
  gap: 10px;
}
.tip-box .tip-icon   { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.tip-box p           { font-size: 13px; color: #1e40af; line-height: 1.6; margin: 0; }
.tip-box strong      { color: #1447c0; }

.warn-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
  display: flex;
  gap: 10px;
}
.warn-box .tip-icon { font-size: 16px; flex-shrink: 0; }
.warn-box p         { font-size: 13px; color: #92400e; line-height: 1.6; margin: 0; }

/* DragTK step */
.dragtk-step {
  background: #fff;
  border: 1px solid #e4e4de;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 12px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.step-badge {
  background: #1a56db;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
  font-family: 'Outfit', sans-serif;
}
.dragtk-step p { font-size: 13px; color: #444; line-height: 1.6; margin: 0; }

/* Property table */
.prop-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 12px 0 18px;
}
.prop-table th {
  background: #f4f4f0;
  text-align: left;
  padding: 8px 12px;
  font-weight: 700;
  color: #555;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 1px solid #e4e4de;
}
.prop-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #f0f0ec;
  color: #444;
  vertical-align: top;
}
.prop-table td:first-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #1a56db;
  white-space: nowrap;
}
.prop-table tr:last-child td { border-bottom: none; }

/* Inline code */
.inline-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: #f4f4f0;
  padding: 1px 5px;
  border-radius: 3px;
  color: #1a56db;
}

/* Lesson prev/next nav */
.lesson-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e4e4de;
  gap: 12px;
  flex-wrap: wrap;
}
.lesson-nav-btn {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid #e4e4de;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.12s, color 0.12s;
  cursor: pointer;
}
.lesson-nav-btn:hover       { border-color: #1a56db; color: #1a56db; }
.lesson-nav-btn.next        { background: #1a56db; color: #fff; border-color: #1a56db; }
.lesson-nav-btn.next:hover  { background: #1447c0; border-color: #1447c0; }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */

/* ── Tablet ── */
@media (max-width: 900px) {
  .main { padding: 32px 28px; }
  .why-intro { grid-template-columns: 1fr; gap: 20px; }
  .why-aside {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
  }
  .aside-stat  { flex: 1; min-width: 140px; }
  .aside-divider { display: none; }
}

/* ── Mobile ── */
@media (max-width: 700px) {

  /* Nav: show hamburger, hide desktop links */
  .nav { padding: 0 16px; }
  .nav-link { display: none; }
  .nav-cta  { display: none; }           /* moved into drawer */
  .nav-hamburger { display: flex; }

  /* Hero stacks */
  .hero {
    grid-template-columns: 1fr;
    padding: 36px 20px 32px;
    gap: 28px;
  }
  .hero h1           { font-size: 34px; letter-spacing: -1px; }
  .hero-dl           { flex-direction: column; }
  .hero-dl .btn      { justify-content: center; }

  /* why / callout */

  .why-section       { padding: 40px 20px 36px; }
  .section-title     { font-size: 24px; }
  .why-grid          { grid-template-columns: 1fr 1fr; }
  .callout           { padding: 0 20px 36px; }
  .callout-inner {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 16px;
  }
  .callout-btns {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: unset;
  }
  .callout-btns .btn { flex: 1; justify-content: center; min-width: 140px; }

  /* Footer */
  .site-footer {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Learn page sidebar — hidden until toggled */
  .sidebar {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    height: calc(100vh - 60px);
    z-index: 50;
    width: 260px;
    box-shadow: 4px 0 24px rgba(0,0,0,0.08);
  }
  .sidebar.open { display: block; }
  .sidebar-toggle { display: flex; }

  .main { padding: 24px 20px; }
  .lesson-title { font-size: 26px; }
  .page-shell   { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero h1    { font-size: 28px; }
  .why-grid   { grid-template-columns: 1fr; }
  .lesson-img-sm { max-width: 100%; }
}

/* ════════════════════════════════════════
   PAGE HERO  (about.html, contact.html)
   ════════════════════════════════════════ */
.page-hero {
  background: #fff;
  border-bottom: 1px solid #e4e4de;
  padding: 64px 32px 56px;
}
.page-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.page-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1a56db;
  margin-bottom: 12px;
}
.page-hero-title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #111;
  line-height: 1.1;
  margin-bottom: 14px;
}
.page-hero-desc {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  max-width: 560px;
}

/* ════════════════════════════════════════
   ABOUT PAGE
   ════════════════════════════════════════ */
.about-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 32px 64px;
}

.about-section {
  padding: 56px 0 0;
}
.about-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1a56db;
  margin-bottom: 10px;
}
.about-section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #111;
  line-height: 1.2;
  margin-bottom: 24px;
}

.about-body {
  max-width: 680px;
}
.about-body p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-body p:last-child { margin-bottom: 0; }

.about-body-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* Theory cards */
.about-theory-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.theory-card {
  background: #fff;
  border: 1px solid #e4e4de;
  border-radius: 10px;
  padding: 18px 20px;
  transition: border-color 0.12s;
}
.theory-card:hover { border-color: #1a56db; }
.theory-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1a56db;
  margin-bottom: 4px;
}
.theory-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}
.theory-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

/* Practical grid */
.practical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 32px;
}
.practical-card {
  background: #fff;
  border: 1px solid #e4e4de;
  border-radius: 10px;
  padding: 22px;
  transition: border-color 0.12s;
}
.practical-card:hover { border-color: #1a56db; }
.practical-icon { font-size: 24px; margin-bottom: 12px; }
.practical-card h3 { font-size: 14px; font-weight: 700; color: #111; margin-bottom: 6px; }
.practical-card p  { font-size: 13px; color: #666; line-height: 1.6; }
.practical-card a  { color: #1a56db; text-decoration: none; font-weight: 600; }
.practical-card a:hover { text-decoration: underline; }

/* About divider */
.about-divider {
  height: 1px;
  background: #e4e4de;
  margin-top: 56px;
}

/* CTA row */
.about-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 48px;
}

/* ════════════════════════════════════════
   CONTACT PAGE
   ════════════════════════════════════════ */
.contact-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 32px 64px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

/* Form card */
.contact-card {
  background: #fff;
  border: 1px solid #e4e4de;
  border-radius: 12px;
  padding: 36px;
}
.contact-card-title {
  font-size: 20px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}
.contact-card-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Form elements */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.form-optional {
  font-weight: 400;
  color: #aaa;
  font-size: 12px;
}
.form-input {
  width: 100%;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #111;
  background: #fafaf8;
  border: 1.5px solid #e4e4de;
  border-radius: 7px;
  padding: 10px 13px;
  outline: none;
  transition: border-color 0.12s, background 0.12s;
  appearance: none;
}
.form-input:focus {
  border-color: #1a56db;
  background: #fff;
}
.form-input.input-error {
  border-color: #ef4444;
  background: #fff5f5;
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aaa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-textarea {
  resize: vertical;
  min-height: 130px;
}
.form-footer {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 8px;
}
.form-privacy {
  font-size: 12px;
  color: #aaa;
  line-height: 1.6;
  max-width: 320px;
}
.form-privacy strong { color: #666; }
.form-submit { flex-shrink: 0; }
.form-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 13px;
  color: #b91c1c;
  margin-top: 14px;
  font-weight: 500;
}

/* Success state */
.form-success {
  text-align: center;
  padding: 40px 20px;
}
.success-icon {
  width: 52px;
  height: 52px;
  background: #d1fae5;
  color: #065f46;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 16px;
}
.form-success h3 { font-size: 20px; font-weight: 700; color: #111; margin-bottom: 8px; }
.form-success p  { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 20px; }

/* Info sidebar cards */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-info-card {
  background: #fff;
  border: 1px solid #e4e4de;
  border-radius: 10px;
  padding: 22px;
}
.contact-info-icon { font-size: 22px; margin-bottom: 10px; }
.contact-info-card h3 { font-size: 14px; font-weight: 700; color: #111; margin-bottom: 6px; }
.contact-info-card p  { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 6px; }
.contact-email-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #1a56db;
  text-decoration: none;
  margin-top: 4px;
}
.contact-email-link:hover { text-decoration: underline; }
.contact-tips {
  padding-left: 16px;
  margin-top: 6px;
}
.contact-tips li {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

/* ════════════════════════════════════════
   RESPONSIVE — about & contact additions
   ════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-body-grid      { grid-template-columns: 1fr; }
  .contact-grid         { grid-template-columns: 1fr; }
  .contact-info-col     { flex-direction: row; flex-wrap: wrap; }
  .contact-info-card    { flex: 1; min-width: 200px; }
}

@media (max-width: 700px) {
  .page-hero            { padding: 40px 20px 36px; }
  .page-hero-title      { font-size: 32px; }
  .about-wrap           { padding: 0 20px 48px; }
  .about-section-title  { font-size: 22px; }
  .contact-wrap         { padding: 32px 20px 48px; }
  .contact-card         { padding: 24px 20px; }
  .form-row             { grid-template-columns: 1fr; }
  .form-footer          { flex-direction: column; }
  .form-submit          { width: 100%; justify-content: center; }
  .about-cta-row        { flex-direction: column; }
  .about-cta-row .btn   { justify-content: center; }
  .contact-info-col     { flex-direction: column; }
}

/* ════════════════════════════════════════
   CONTACT PAGE — simple email layout
   ════════════════════════════════════════ */
.contact-simple-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 32px 64px;
}
.contact-simple-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}
.contact-primary-card {
  background: #fff;
  border: 1px solid #e4e4de;
  border-radius: 12px;
  padding: 40px;
}
.contact-primary-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}
.contact-primary-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 24px;
}
.contact-email-big {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  color: #1a56db;
  text-decoration: none;
  border-bottom: 2px solid #c7d9ff;
  padding-bottom: 2px;
  transition: border-color 0.12s, color 0.12s;
}
.contact-email-big:hover {
  color: #1447c0;
  border-color: #1a56db;
}
.contact-response-note {
  font-size: 13px !important;
  color: #aaa !important;
  margin-top: 10px !important;
  margin-bottom: 0 !important;
}
.contact-simple-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 900px) {
  .contact-simple-grid {
    grid-template-columns: 1fr;
  }
  .contact-simple-aside {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .contact-simple-aside .contact-info-card {
    flex: 1;
    min-width: 200px;
  }
}
@media (max-width: 700px) {
  .contact-simple-wrap  { padding: 32px 20px 48px; }
  .contact-primary-card { padding: 28px 22px; }
  .contact-email-big    { font-size: 18px; }
  .contact-simple-aside { flex-direction: column; }
}

/* ════════════════════════════════════════
   PRIVACY PAGE
   ════════════════════════════════════════ */
.privacy-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 32px 72px;
}
.privacy-meta {
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
  margin-bottom: 36px;
}
.privacy-section {
  margin-bottom: 36px;
}
.privacy-section h2 {
  font-size: 17px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e4e4de;
}
.privacy-section p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 10px;
}
.privacy-section p:last-child { margin-bottom: 0; }
.privacy-section a {
  color: #1a56db;
  text-decoration: none;
  font-weight: 600;
}
.privacy-section a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .privacy-wrap { padding: 32px 20px 56px; }
}


/* ════════════════════════════════════════
   GETTING STARTED — sidebar icon & req cards
   ════════════════════════════════════════ */

.icon-intro { background: #f0fdf4; color: #166534; }

.req-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}
.req-card {
  background: #fff;
  border: 1px solid #e4e4de;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.req-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.req-title {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}
.req-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}
.req-desc a {
  color: #1a56db;
  font-weight: 600;
  text-decoration: none;
}
.req-desc a:hover { text-decoration: underline; }

/* ════════════════════════════════════════
   LESSON FORMAT — shared components
   ════════════════════════════════════════ */

/* Objectives / what's on this page box */
.objectives {
  background: #fff;
  border: 1px solid #e4e4de;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 36px;
}
.objectives-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1a56db;
  margin-bottom: 12px;
}
.objectives ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.objectives ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}
.obj-tick {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #eff4ff;
  border: 1px solid #c7d9ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #1a56db;
  flex-shrink: 0;
  margin-top: 1px;
}

/* What is a [widget] card */
.what-is {
  background: #fff;
  border: 1px solid #e4e4de;
  border-radius: 8px;
  padding: 16px 20px;
}
.what-is p {
  margin: 0;
  font-size: 14px;
  color: #444;
  line-height: 1.7;
}

/* Try it yourself box */
.try-it {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 22px 24px;
  margin-top: 8px;
}
.try-it-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #166534;
  margin-bottom: 10px;
}
.try-it h3 {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}
.try-it p {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 8px;
}
.try-it ul {
  padding-left: 20px;
  margin-bottom: 8px;
}
.try-it ul li {
  font-size: 14px;
  color: #444;
  line-height: 1.75;
  margin-bottom: 4px;
}
.try-it-hint {
  font-size: 13px;
  color: #166534;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 0;
}

/* Project difficulty sub-headings in sidebar */
.sidebar-sub-heading {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ccc;
  padding: 8px 20px 2px 28px;
}

.icon-beginner     { background: #f0fdf4; color: #166534; }
.icon-intermediate { background: #fef9c3; color: #854d0e; }
.icon-advanced     { background: #fef2f2; color: #991b1b; }

/* School IT note below hero download buttons */
.dl-school-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  font-size: 12px;
  color: #888;
  line-height: 1.6;
  max-width: 440px;
}
.dl-school-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #1a56db;
}