/* THriveX Academy — shared stylesheet
   Brand palette per TensorHub Technologies brand guide:
   Deep Blue #3C5BA4, Magenta #E22A90, Purple #52289F, Navy #1C2B4D
   Fonts: Poppins (display), Outfit (body), Lexend (accent/labels) */

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

:root {
  --deep-blue: #3C5BA4;
  --magenta: #E22A90;
  --purple: #52289F;
  --navy: #1C2B4D;

  --bg: #FFFFFF;
  --bg-2: #F2F4FB;
  --card: #FFFFFF;
  --ink: #1C2B4D;
  --ink-soft: #545F7D;
  --line: #E1E6F5;

  --clay: var(--magenta);
  --clay-dark: #B81F73;
  --clay-tint: #FCE7F2;
  --sage: var(--deep-blue);
  --sage-tint: #E9EEF9;

  --grad-brand: linear-gradient(90deg, #3C5BA4 0%, #52289F 34%, #E22A90 100%);
  --grad-bg: linear-gradient(135deg, #FFFFFF 0%, #F0F2FB 45%, #C9D3EF 100%);

  --radius: 14px;
  --maxw: 1140px;
  --shadow: 0 1px 2px rgba(28,43,77,0.05), 0 8px 24px rgba(28,43,77,0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--grad-bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1 1 auto;
}
.brand-group .tensorhub-logo-lockup {
  padding-left: 16px;
  border-left: 1px solid var(--line);
  min-width: 0;
  flex-shrink: 1;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand img.logo {
  height: clamp(40px, 8vw, 84px);
  width: auto;
  max-width: 42vw;
  display: block;
}
.brand img.footer-logo {
  height: clamp(56px, 12vw, 104px);
  max-width: 60vw;
}
.brand:hover { text-decoration: none; }
.brand .sub {
  color: var(--ink-soft); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.06em;
  text-transform: uppercase; display: block; font-family: 'Lexend', sans-serif;
}
.tensorhub-credit {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Lexend', sans-serif; font-weight: 600; font-size: 0.82rem;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tensorhub-logo-lockup {
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 0;
}
.tensorhub-logo-lockup .by-text {
  font-family: 'Lexend', sans-serif; font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft);
  white-space: nowrap;
  flex-shrink: 0;
}
.tensorhub-logo-lockup img {
  height: clamp(20px, 4.5vw, 38px);
  width: auto;
  max-width: 34vw;
  display: block;
  flex-shrink: 1;
}
.footer-tensorhub-lockup { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.footer-tensorhub-lockup img { height: clamp(28px, 8vw, 46px); width: auto; max-width: 55vw; display: block; }
.footer-tensorhub-lockup .by-text {
  font-family: 'Lexend', sans-serif; font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft);
}

nav.top { display: flex; gap: 26px; align-items: center; flex-shrink: 0; }
nav.top a { color: var(--ink); font-size: 0.92rem; font-weight: 500; }
nav.top a:hover { color: var(--clay-dark); text-decoration: none; }

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span + span { margin-top: 5px; }
header.site.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.site.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
header.site.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--grad-brand);
  background-size: 160% 160%;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background-position 0.35s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(82,40,159,0.28);
}
.btn:hover {
  background-position: 100% 0%;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(226,42,144,0.32);
}
.btn.ghost {
  background-color: #fff;
  background-image: linear-gradient(#fff,#fff), var(--grad-brand);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 1.5px solid transparent;
  color: var(--purple) !important;
  box-shadow: none;
}
.btn.ghost:hover {
  background-image: linear-gradient(var(--clay-tint), var(--clay-tint)), var(--grad-brand);
  transform: translateY(-2px);
}
.btn.small { padding: 7px 16px; font-size: 0.82rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--clay-tint);
  color: var(--clay-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 { font-size: 2.6rem; max-width: 820px; }
.hero .lead { font-size: 1.15rem; max-width: 640px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.stat { display: flex; flex-direction: column; }
.stat .num {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--clay-dark);
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat .label {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.tight { padding: 40px 0; }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head .kicker {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 8px; display: block;
}
.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-6 { grid-template-columns: repeat(6, 1fr); }

/* ---------- Glassmorphism + floating animation (shared by card / course-card / module / facts) ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.card, .module, .facts .fact {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(28,43,77,0.10), inset 0 1px 0 rgba(255,255,255,0.5);
  animation: fadeInUp 0.6s cubic-bezier(.2,.8,.2,1) both, floatCard 5.5s ease-in-out infinite;
  transition: box-shadow 0.35s ease, background 0.35s ease, transform 0.35s ease;
  will-change: transform;
}
.card { padding: 24px; }
/* soft brand-gradient sheen that fades in on hover, sitting behind the content */
.card::before, .module::before, .facts .fact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(60,91,164,0.22), rgba(82,40,159,0.20), rgba(226,42,144,0.22));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card > *, .module > *, .facts .fact > * { position: relative; }
.card:hover, .module:hover, .facts .fact:hover {
  animation-play-state: paused;
  transform: translateY(-7px) scale(1.015);
  background: rgba(255,255,255,0.62);
  box-shadow: 0 18px 42px rgba(82,40,159,0.22), inset 0 1px 0 rgba(255,255,255,0.65);
}
.card:hover::before, .module:hover::before, .facts .fact:hover::before { opacity: 1; }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { font-size: 0.92rem; margin-bottom: 0; }

.course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ---------- Method step cards ("How THriveX Teaches") ---------- */
.method-grid { align-items: stretch; }
.method-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 24px 14px;
  height: 100%;
  min-height: 140px;
}
.method-step .m-num {
  margin: 0;
}
.method-step h3 {
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.3;
}
.grid > *:nth-child(1) { animation-delay: .05s, .05s; }
.grid > *:nth-child(2) { animation-delay: .1s, .35s; }
.grid > *:nth-child(3) { animation-delay: .15s, .65s; }
.grid > *:nth-child(4) { animation-delay: .2s, .95s; }
.grid > *:nth-child(5) { animation-delay: .25s, 1.25s; }
.grid > *:nth-child(6) { animation-delay: .3s, 1.55s; }
.course-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sage);
  background: var(--sage-tint);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  width: fit-content;
}
.course-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.course-card .meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--ink-soft);
  margin: 14px 0 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.course-card .meta span { display: flex; align-items: center; gap: 5px; }
.course-card .spacer { flex: 1; }
.course-card a.cta { font-weight: 600; color: var(--clay-dark); font-size: 0.92rem; }

/* ---------- Quick facts strip (course page) ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  border-radius: var(--radius);
  margin: 32px 0;
}
.facts .fact { padding: 20px; }
.facts .fact:nth-child(1) { animation-delay: .05s, .05s; }
.facts .fact:nth-child(2) { animation-delay: .1s, .35s; }
.facts .fact:nth-child(3) { animation-delay: .15s, .65s; }
.facts .fact:nth-child(4) { animation-delay: .2s, .95s; }
.facts .fact .label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 6px; }
.facts .fact .value { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--ink); }

/* ---------- Timeline / modules ---------- */
.module { padding: 22px 24px; margin-bottom: 14px; }
.module:nth-child(1) { animation-delay: .05s, .05s; }
.module:nth-child(2) { animation-delay: .12s, .4s; }
.module:nth-child(3) { animation-delay: .19s, .75s; }
.module:nth-child(4) { animation-delay: .26s, 1.1s; }
.module:nth-child(5) { animation-delay: .33s, 1.45s; }
.module .m-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.module .m-num {
  font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--clay);
  font-size: 0.85rem; background: var(--clay-tint); border-radius: 999px;
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.module h3 { font-size: 1.08rem; margin: 0; }
.module .m-duration { margin-left: auto; font-size: 0.78rem; color: var(--ink-soft); white-space: nowrap; }
.module ul { margin: 10px 0 0; padding-left: 20px; }
.module li { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 4px; }
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 12px; }
.track-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.track-label.tech { color: var(--clay-dark); }
.track-label.applied { color: var(--sage); }

/* ---------- Outcomes ---------- */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem; color: var(--ink);
}
.check-list li:last-child { border-bottom: none; }
.check-list .mark {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sage-tint); color: var(--sage);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}

/* ---------- Use cases ---------- */
.usecase {
  border-left: 3px solid var(--clay);
  padding: 4px 0 4px 18px;
  margin-bottom: 18px;
}
.usecase .industry { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--clay-dark); margin-bottom: 4px; }
.usecase h4 { font-size: 1rem; margin-bottom: 4px; }
.usecase p { font-size: 0.9rem; margin-bottom: 0; }

/* ---------- Job market table ---------- */
table.pay { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.pay th, table.pay td { padding: 14px 18px; text-align: left; font-size: 0.9rem; border-bottom: 1px solid var(--line); }
table.pay th { background: var(--bg-2); font-weight: 700; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.05em; color: var(--ink-soft); }
table.pay tr:last-child td { border-bottom: none; }
table.pay td.role { font-weight: 600; }
.pay-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 10px; font-style: italic; }

/* ---------- Instructor / certification banner ---------- */
.instructor-banner {
  background: linear-gradient(135deg, var(--navy), var(--purple));
  color: #F1EEF9;
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  gap: 28px;
  align-items: center;
}
.instructor-banner .badge-icon {
  flex-shrink: 0;
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.4rem; color: #fff;
}
.instructor-banner h3 { color: #fff; font-size: 1.2rem; margin-bottom: 6px; }
.instructor-banner p { color: #D3D6EA; margin-bottom: 0; font-size: 0.94rem; }
.instructor-banner .pill-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pill {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #F1EEF9; font-size: 0.76rem; padding: 5px 12px; border-radius: 999px; font-weight: 600;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--clay-tint);
  border: 1px solid #F5C7E1;
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
}
.cta-band h2 { font-size: 1.7rem; }
.cta-band .btn-row { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
details.faq {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--clay-dark); font-size: 1.3rem; font-weight: 400; }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { margin-top: 10px; font-size: 0.92rem; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 0 30px;
  margin-top: 40px;
}
footer.site .foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer.site p { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 6px; }
footer.site nav { display: flex; gap: 18px; }
footer.site nav a { font-size: 0.85rem; color: var(--ink-soft); }
.fine { font-size: 0.76rem; color: #948C77; margin-top: 20px; }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 18px; }
.crumb a { color: var(--ink-soft); }
.crumb a:hover { color: var(--clay-dark); }

/* ---------- Lead capture modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28,43,77,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
@keyframes modalPop {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(28,43,77,0.28);
  animation: modalPop 0.3s cubic-bezier(.2,.8,.2,1) both;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-2);
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.modal-close:hover { background: var(--clay-tint); color: var(--clay-dark); }
.modal .eyebrow { margin-bottom: 14px; }
.modal h2 { font-size: 1.4rem; margin-bottom: 6px; }
.modal .modal-sub { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 22px; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-family: 'Lexend', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: rgba(255,255,255,0.8);
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(82,40,159,0.12);
}
.form-row textarea { resize: vertical; min-height: 70px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 6px;
}
.form-note {
  font-size: 0.74rem;
  color: var(--ink-soft);
  margin-top: 12px;
  text-align: center;
}
.form-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.form-success.show { display: block; }
.form-success .check-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.form-success h3 { margin-bottom: 8px; }
.form-success p { font-size: 0.92rem; }
.modal-body.hide { display: none; }

@media (max-width: 560px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .modal { padding: 24px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  header.site .bar { padding: 8px 20px; }
  .nav-toggle { display: inline-flex; }
  nav.top {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 28px rgba(28,43,77,0.14);
    padding: 6px 20px 18px;
  }
  header.site.nav-open nav.top { display: flex; }
  nav.top a { padding: 12px 2px; border-bottom: 1px solid var(--line); }
  nav.top a.btn { border-bottom: none; }
  nav.top .btn.small { margin-top: 10px; text-align: center; }

  .wrap { padding: 0 20px; }
  .hero { padding: 44px 0 36px; }
  .hero h1 { font-size: 2rem; max-width: 100%; }
  .hero .lead { font-size: 1.02rem; max-width: 100%; }
  .grid.cols-3, .grid.cols-2, .grid.cols-6 { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .tracks { grid-template-columns: 1fr; }
  .instructor-banner { flex-direction: column; text-align: center; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  section { padding: 40px 0; }
  table.pay { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .brand-group { gap: 10px; }
  .brand-group .tensorhub-logo-lockup { padding-left: 10px; gap: 5px; }
  .tensorhub-logo-lockup .by-text { display: none; }
  .grid.cols-3, .grid.cols-2, .grid.cols-6 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.55rem; }
  .hero .lead { font-size: 0.96rem; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 20px; }
  .btn-row, .cta-band .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn, .cta-band .btn-row .btn { text-align: center; }
  .cta-band h2 { font-size: 1.35rem; }
  footer.site .foot-grid { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .brand img.logo { max-width: 34vw; }
  .tensorhub-logo-lockup img { max-width: 30vw; }
}
