/* =======================================================
   Training Hub 365 — shared design system (take4 brutalist)
   ======================================================= */

:root {
  --bg: #ffffff;
  --ink: #000000;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --muted: #525252;
  --muted-soft: #e5e5e5;
  --border: 2px solid #000;
  --border-thick: 3px solid #000;
  --max: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Archivo', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: 'JetBrains Mono', monospace; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

/* NAV */
nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: var(--border-thick); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 112px; }
.brand { display: flex; align-items: center; }
.brand img { height: 84px; width: auto; }
.nav-links { display: flex; gap: 44px; align-items: center; font-family: 'JetBrains Mono', monospace; font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border: var(--border-thick);
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.02em;
  transition: all 0.15s ease; cursor: pointer;
  background: var(--bg); color: var(--ink);
  white-space: nowrap; border-radius: 0;
}
.btn:hover { background: var(--ink); color: var(--bg); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 0 var(--accent); }
.btn-primary { background: var(--accent); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: var(--ink); box-shadow: 4px 4px 0 0 var(--accent); }
.btn svg { width: 18px; height: 18px; stroke-width: 3; }

/* PAGE HEADER (inner pages) */
.page-header { padding: 100px 0 80px; border-bottom: var(--border-thick); }
.page-header .eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 0.85rem;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em;
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px;
}
.page-header .eyebrow::before { content: ""; width: 40px; height: 2px; background: var(--ink); }
.page-header h1 {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 0.96; letter-spacing: -0.03em; word-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 24px; max-width: 1100px;
}
.page-header h1 .accent { color: var(--accent); }
.page-header .subtitle { font-size: 1.2rem; color: var(--muted); max-width: 680px; font-weight: 500; }

/* SHARED SECTION TITLES */
h2.section-title {
  font-family: 'Archivo', sans-serif; font-weight: 900;
  font-size: clamp(2.4rem, 5.6vw, 5rem);
  line-height: 0.96; letter-spacing: -0.03em; word-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 24px; max-width: 960px;
}
h2.section-title .accent { color: var(--accent); }
.section-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 0.82rem;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em;
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px;
  color: var(--muted);
}
.section-eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--ink); }
.section-sub { font-size: 1.12rem; color: var(--muted); max-width: 680px; margin-bottom: 64px; font-weight: 500; }
section.block { padding: 120px 0; border-bottom: var(--border-thick); }

/* LONG-FORM PROSE (privacy/terms/getting-started) */
.prose { padding: 100px 0 140px; max-width: 820px; }
.prose h2 {
  font-family: 'Archivo', sans-serif; font-weight: 900;
  font-size: 1.8rem; line-height: 1.1; letter-spacing: -0.02em;
  text-transform: uppercase; margin: 56px 0 18px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: 1.15rem; line-height: 1.2; text-transform: uppercase;
  letter-spacing: -0.01em; margin: 32px 0 12px;
}
.prose p { color: var(--muted); font-size: 1.02rem; line-height: 1.7; margin-bottom: 16px; font-weight: 500; }
.prose ul { margin: 0 0 20px 24px; color: var(--muted); }
.prose ul ul { margin-top: 8px; margin-bottom: 8px; }
.prose li { font-size: 1rem; line-height: 1.7; margin-bottom: 8px; font-weight: 500; }
.prose li strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--accent); border-bottom: 2px solid var(--accent); font-weight: 600; }
.prose a:hover { background: var(--accent); color: var(--bg); }
.prose strong { color: var(--ink); font-weight: 700; }

/* FEATURES GRID (brutalist cards) */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: var(--border-thick); border-right: none; border-bottom: none;
}
.feature-card {
  padding: 40px 36px 48px;
  border-right: var(--border-thick);
  border-bottom: var(--border-thick);
  background: var(--bg);
  transition: background 0.15s ease, color 0.15s ease;
}
.feature-card:hover { background: var(--ink); color: var(--bg); }
.feature-card:hover .feature-card-num { color: var(--accent); }
.feature-card:hover .feature-card-icon { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.feature-card-num {
  font-family: 'Archivo', sans-serif; font-weight: 900;
  font-size: 2.4rem; line-height: 1; letter-spacing: -0.04em;
  margin-bottom: 24px; display: block; transition: color 0.15s ease;
}
.feature-card-icon {
  width: 52px; height: 52px; border: var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 24px; background: var(--bg);
  transition: all 0.15s ease;
}
.feature-card-icon svg { width: 24px; height: 24px; stroke-width: 2.5; }
.feature-card h3 {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: 1.3rem; line-height: 1.15; margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: -0.02em;
}
.feature-card p { font-size: 0.98rem; line-height: 1.6; }

/* SUPPORT CARDS */
.support-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-bottom: 80px;
}
.support-card {
  padding: 40px 36px 44px;
  border: var(--border-thick);
  background: var(--bg);
  display: flex; flex-direction: column;
}
.support-card-icon {
  width: 56px; height: 56px; border: var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 24px; background: var(--bg);
}
.support-card-icon svg { width: 26px; height: 26px; stroke-width: 2.5; color: var(--accent); }
.support-card h3 {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: 1.3rem; text-transform: uppercase; letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.support-card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 24px; flex: 1; font-weight: 500; }
.support-card .btn { width: 100%; justify-content: center; }

/* PRICING (shared with homepage) */
.trial-ribbon {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 24px; border: var(--border-thick);
  background: var(--accent); color: var(--bg);
  font-family: 'JetBrains Mono', monospace; font-size: 0.95rem;
  font-weight: 500; letter-spacing: 0.02em;
  margin-bottom: 40px;
}
.trial-ribbon strong { font-family: 'Archivo', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.trial-ribbon svg { width: 22px; height: 22px; stroke-width: 2.5; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 980px; }
.price-card {
  border: var(--border-thick);
  padding: 48px 40px; background: var(--bg); position: relative;
  display: flex; flex-direction: column;
}
.price-card.featured::before {
  content: ""; position: absolute; top: 12px; left: 12px; right: -12px; bottom: -12px;
  background: var(--accent); z-index: -1;
}
.price-badge {
  position: absolute; top: -18px; right: 24px;
  background: var(--ink); color: var(--bg);
  padding: 8px 16px; border: var(--border);
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
}
.price-unit { font-size: 1.4rem; font-weight: 700; color: var(--muted); margin-left: 6px; letter-spacing: 0.02em; }
.price-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 0.82rem;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 12px;
}
.price-amount {
  font-family: 'Archivo', sans-serif; font-weight: 900;
  font-size: 4.4rem; line-height: 0.9; letter-spacing: -0.04em;
  text-transform: uppercase; margin-bottom: 8px;
}
.price-meta {
  font-family: 'JetBrains Mono', monospace; font-size: 0.82rem;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin-bottom: 32px;
}
.price-features { list-style: none; margin-bottom: 36px; border-top: var(--border); flex: 1; }
.price-features li {
  padding: 14px 0; border-bottom: var(--border);
  display: flex; align-items: center; gap: 14px;
  font-size: 0.96rem; font-weight: 500;
}
.price-features svg { width: 20px; height: 20px; color: var(--accent); stroke-width: 3; flex-shrink: 0; }
.price-card .btn { width: 100%; justify-content: center; padding: 20px; font-size: 1.05rem; }

/* STATS STRIP */
.stats { padding: 48px 0; border-bottom: var(--border-thick); background: var(--ink); color: var(--bg); }
.stats-row {
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace; font-size: 0.92rem;
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500;
}
.stats-row span { display: inline-flex; align-items: center; gap: 12px; }
.stats-row span svg { width: 20px; height: 20px; color: var(--accent); stroke-width: 3; }

/* FINAL CTA */
.final { background: var(--accent); color: var(--bg); border-bottom: var(--border-thick); }
.final-inner { padding: 140px 0 160px; text-align: left; }
.final h2 {
  font-family: 'Archivo', sans-serif; font-weight: 900;
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.92; letter-spacing: -0.035em; word-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 32px; max-width: 1100px;
}
.final h2 .ink { color: var(--ink); }
.final p { font-size: 1.3rem; max-width: 620px; margin-bottom: 48px; font-weight: 500; }
.final .btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.final .btn-primary:hover { background: var(--bg); color: var(--ink); box-shadow: 4px 4px 0 0 var(--ink); }

/* FOOTER */
footer { padding: 48px 0; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.foot-links { display: flex; gap: 32px; }
.foot-links a { transition: color 0.15s ease; }
.foot-links a:hover { color: var(--accent); }

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .wrap { padding: 0 24px; }
  .nav-inner { height: 88px; }
  .brand img { height: 60px; }
  .nav-links { gap: 20px; font-size: 0.82rem; }
  .nav-links a:not(.btn) { display: none; }
  section.block { padding: 80px 0; }
  .page-header { padding: 72px 0 56px; }
  .prose { padding: 72px 0 100px; }
  .feature-grid, .support-grid, .price-grid { grid-template-columns: 1fr; gap: 32px; border: none; }
  .feature-card { border: var(--border-thick); }
  .price-grid { gap: 40px; }
  .price-card { padding: 40px 28px; }
  .stats-row { gap: 20px; justify-content: flex-start; }
}
