/* ==========================================================================
   OpsTrainer public pages — shared chrome
   ==========================================================================
   One file owns the frame every public page shares: tokens, reset, nav, hero,
   the container that lifts into the hero, the hero button, the footer and the
   breakpoints. Page stylesheets keep only their own body content and must not
   redeclare anything in here (tests/publicChrome.test.js enforces it).

   Before this file existed there were six copies of the nav in four token sets,
   three hero treatments (two gradient, one white), two footer tones and three
   breakpoints. Edits landed in one copy and the pages drifted apart.
   ========================================================================== */

:root {
  --primary: #1a56db;
  --primary-dark: #1340af;
  --primary-light: #e8f0fe;
  --dark: #0f172a;
  --dark-mid: #1e3a8e;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --accent: #f59e0b;
  --green: #166534;
  --radius: 12px;
  --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.10);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}

/* Nav */

.pub-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  padding: 14px 0;
}

.pub-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pub-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gray-900);
}

.pub-nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.pub-nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.pub-nav-links a:hover {
  color: var(--primary);
}

.pub-nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.pub-nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}

.pub-nav-cta:hover {
  background: var(--primary-dark) !important;
  color: #fff !important;
}

/* Hero */

.pub-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%);
  color: #fff;
  padding: 72px 24px 88px;
  text-align: center;
}

.pub-hero h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.pub-hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  margin: 0 auto;
}

.pub-hero .pub-hero-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 18px;
}

.pub-hero-cta {
  display: inline-block;
  margin-top: 26px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}

.pub-hero-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Content container: cards lift 48px into the hero. That overlap is the detail */

.pub-section {
  max-width: 1100px;
  margin: -48px auto 0;
  padding: 0 24px 72px;
  position: relative;
}

.pub-section--narrow {
  max-width: 900px;
}

.pub-pull {
  margin-top: -48px;
  position: relative;
}

/* Footer */

.pub-footer {
  border-top: 1px solid var(--gray-200);
  background: #fff;
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--gray-500);
}

.pub-footer a {
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
}

.pub-footer a:hover {
  color: var(--primary);
}

/* Phone: logo and the one call to action stay, the rest of the nav folds away.
   There is no hamburger to open, so nothing can trap a visitor. */

@media (max-width: 860px) {
  .pub-nav-links {
    gap: 18px;
  }

  .pub-hero {
    padding: 56px 24px 64px;
  }
}

@media (max-width: 700px) {
  .pub-nav-links a:not(.pub-nav-cta) {
    display: none;
  }

  .pub-nav-inner {
    padding: 0 16px;
  }

  .pub-section {
    padding: 0 16px 48px;
    margin-top: -40px;
  }

  .pub-pull {
    margin-top: -40px;
  }

  .pub-hero {
    padding: 44px 20px 56px;
  }

  .pub-hero-cta {
    margin-top: 20px;
  }

  .brand-logo {
    height: 26px;
  }
}
