/* ─────────────────────────────────────────────────────────────────
   Even Level Help Center — shared styles
   Matches the brand system used across evenlevel.com landing pages
   (brand vars, nav, footer, typography). Help-specific layouts
   (hero + search, category tiles, article body, feedback widget)
   live here too so each HTML page stays minimal.
   ──────────────────────────────────────────────────────────────── */

:root {
  --navy: #0f172a;
  --navy-mid: #162035;
  --navy-light: #1e293b;
  --teal: #0D9488;
  --teal-dark: #0F766E;
  --teal-light: #5eead4;
  --teal-faint: #F0FDFA;
  --amber: #D97706;
  --amber-dark: #B45309;
  --slate: #475569;
  --slate-light: #94a3b8;
  --border: #e2e8f0;
  --off-white: #f8fafc;
  --white: #ffffff;
  --green: #059669;
  --radius: 8px;
  --radius-sm: 8px;
}

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

body {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-dark); }
a:hover { color: var(--teal); }

/* ── NAV (matches index.html exactly) ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 40px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon { width: 30px; height: 30px; }
.nav-logo-text { font-family: 'Satoshi', sans-serif; font-size: 18px; font-weight: 700; color: var(--white); letter-spacing: -0.5px; }
.nav-logo-text span { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: var(--slate-light); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--amber); color: var(--white) !important;
  padding: 9px 20px; border-radius: var(--radius-sm);
  font-weight: 600 !important; font-size: 14px; transition: background 0.15s !important;
}
.nav-cta:hover { background: var(--amber-dark) !important; color: var(--white) !important; }
.nav-login { color: rgba(255,255,255,0.7) !important; font-size: 14px; font-weight: 500 !important; transition: color 0.15s !important; }
.nav-login:hover { color: var(--white) !important; }

/* ── HAMBURGER & MOBILE MENU (matches index.html) ── */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 200; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: rgba(15,23,42,0.98); backdrop-filter: blur(12px); z-index: 99; flex-direction: column; padding: 32px 24px; overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--slate-light); text-decoration: none; font-size: 18px; font-weight: 500; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.06); transition: color 0.15s; }
.mobile-menu a:hover { color: var(--white); }
.mobile-menu .mobile-cta { display: block; background: var(--amber); color: var(--white); padding: 16px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 16px; text-align: center; margin-top: 24px; border-bottom: none; transition: background 0.15s; }
.mobile-menu .mobile-cta:hover { background: var(--amber-dark); }

/* ── HELP HERO (home) ── */
.help-hero {
  background: var(--navy);
  padding: 80px 40px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.help-hero::before {
  content: ''; position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(13,148,136,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.help-hero h1 {
  font-family: 'Satoshi', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900; line-height: 1.1; letter-spacing: -1.5px;
  color: var(--white); margin-bottom: 16px; position: relative;
}
.help-hero .subhead {
  color: var(--slate-light); font-size: 18px; max-width: 600px;
  margin: 0 auto 32px; position: relative;
}
.help-search {
  max-width: 560px; margin: 0 auto; position: relative;
}
.help-search input {
  width: 100%; padding: 14px 20px 14px 48px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); color: var(--white); font-size: 16px;
  font-family: inherit; transition: border-color 0.15s, background 0.15s;
}
.help-search input::placeholder { color: var(--slate-light); }
.help-search input:focus { outline: none; border-color: var(--teal); background: rgba(255,255,255,0.12); }
.help-search .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--slate-light); }

/* ── HELP BODY (home + category pages) ── */
.help-body { max-width: 1040px; margin: 0 auto; padding: 64px 24px; }

.breadcrumb {
  font-size: 13px; color: var(--slate); margin-bottom: 24px;
  font-family: 'Geist', 'Instrument Sans', sans-serif;
}
.breadcrumb a { color: var(--slate); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal-dark); }
.breadcrumb .sep { margin: 0 8px; color: var(--slate-light); }

.help-body h2.section-title {
  font-family: 'Satoshi', sans-serif; font-size: 22px; font-weight: 700;
  color: var(--navy); margin-bottom: 24px; letter-spacing: -0.3px;
}

/* Category tiles grid (home) */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin-bottom: 64px;
}
.cat-tile {
  display: block; padding: 24px; border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; color: inherit;
  background: var(--white); transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.cat-tile:hover {
  border-color: var(--teal); transform: translateY(-1px);
  box-shadow: 0 2px 12px rgba(15,23,42,0.06);
}
.cat-tile .cat-icon { font-size: 24px; margin-bottom: 12px; }
.cat-tile h3 {
  font-family: 'Satoshi', sans-serif; font-size: 18px; font-weight: 700;
  color: var(--navy); margin-bottom: 6px; letter-spacing: -0.2px;
}
.cat-tile p { color: var(--slate); font-size: 14px; line-height: 1.5; }
.cat-tile .cat-count { font-size: 12px; color: var(--slate-light); margin-top: 12px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }

/* Popular articles list (home) */
.popular {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.popular-item {
  display: block; padding: 16px 20px; border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.popular-item:hover { border-color: var(--teal); background: var(--teal-faint); }
.popular-item .p-title { font-weight: 600; color: var(--navy); font-size: 15px; margin-bottom: 4px; }
.popular-item .p-cat { font-size: 12px; color: var(--slate); text-transform: uppercase; letter-spacing: 0.3px; font-weight: 600; }

/* Category page — article list */
.cat-header {
  padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 32px;
}
.cat-header h1 {
  font-family: 'Satoshi', sans-serif; font-size: 36px; font-weight: 900;
  color: var(--navy); letter-spacing: -1px; margin-bottom: 8px;
}
.cat-header p { color: var(--slate); font-size: 16px; max-width: 640px; }

.article-list { list-style: none; counter-reset: article; }
.article-list li { counter-increment: article; margin-bottom: 12px; }
.article-list a {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 20px 24px; border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; color: inherit;
  background: var(--white); transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.article-list a:hover {
  border-color: var(--teal); transform: translateY(-1px);
  box-shadow: 0 2px 12px rgba(15,23,42,0.06);
}
.article-list a::before {
  content: counter(article); flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal-faint); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; font-family: 'Satoshi', sans-serif;
}
.article-list .a-title {
  font-family: 'Satoshi', sans-serif; font-weight: 700; font-size: 17px;
  color: var(--navy); margin-bottom: 4px; letter-spacing: -0.2px;
}
.article-list .a-desc { color: var(--slate); font-size: 14px; }

/* "Coming soon" empty-state for categories with no articles yet */
.coming-soon {
  padding: 48px 24px; border: 1px dashed var(--border); border-radius: var(--radius);
  text-align: center; background: var(--off-white);
}
.coming-soon h3 { font-family: 'Satoshi', sans-serif; font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.coming-soon p { color: var(--slate); font-size: 15px; max-width: 480px; margin: 0 auto 16px; }

/* ── ARTICLE PAGE ── */
.article { max-width: 760px; margin: 0 auto; padding: 48px 24px 64px; }

.article .article-header { margin-bottom: 32px; }
.article h1 {
  font-family: 'Satoshi', sans-serif; font-size: clamp(28px, 4vw, 36px);
  font-weight: 900; color: var(--navy); letter-spacing: -1px; margin-bottom: 16px;
  line-height: 1.15;
}
.article .summary {
  font-size: 17px; color: var(--slate); line-height: 1.6;
}

/* Loom embed (responsive 16:9) */
.loom-wrap {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius); margin: 32px 0 40px;
  background: var(--navy); box-shadow: 0 2px 20px rgba(15,23,42,0.08);
}
.loom-wrap iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.loom-placeholder {
  position: relative; padding: 56.25% 0 0 0; overflow: hidden;
  border-radius: var(--radius); background: var(--navy); margin: 32px 0 40px;
  display: flex; align-items: center; justify-content: center;
}
.loom-placeholder-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 24px;
}
.loom-placeholder-inner .badge {
  background: rgba(13,148,136,0.15); color: var(--teal-light);
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 12px;
}
.loom-placeholder-inner p { color: var(--slate-light); font-size: 15px; max-width: 360px; }

.article h2 {
  font-family: 'Satoshi', sans-serif; font-size: 22px; font-weight: 700;
  color: var(--navy); margin: 40px 0 16px; letter-spacing: -0.3px;
}
.article h3 {
  font-family: 'Satoshi', sans-serif; font-size: 18px; font-weight: 700;
  color: var(--navy); margin: 24px 0 10px; letter-spacing: -0.2px;
}
.article p { margin-bottom: 16px; font-size: 16px; color: var(--navy); }
.article ul, .article ol { margin: 0 0 20px 24px; }
.article li { margin-bottom: 8px; font-size: 16px; }
.article ol.steps { counter-reset: step; list-style: none; margin-left: 0; }
.article ol.steps li {
  counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 16px;
  min-height: 32px;
}
.article ol.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal-faint); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; font-family: 'Satoshi', sans-serif;
}

.callout {
  padding: 16px 20px; border-radius: var(--radius); margin: 20px 0;
  font-size: 15px; border-left: 3px solid;
}
.callout.tip { background: var(--teal-faint); border-color: var(--teal); color: var(--navy); }
.callout.warn { background: #FFF7ED; border-color: var(--amber); color: var(--navy); }

.faq { margin: 0; }
.faq-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-family: 'Satoshi', sans-serif; font-weight: 700; color: var(--navy); font-size: 16px; margin-bottom: 6px; letter-spacing: -0.1px; }
.faq-a { color: var(--slate); font-size: 15px; line-height: 1.6; }

.next-up { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.next-up h2 { margin-top: 0; }
.next-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px; margin-top: 16px;
}
.next-list a {
  display: block; padding: 14px 18px; border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.next-list a:hover { border-color: var(--teal); background: var(--teal-faint); }
.next-list .n-title { font-weight: 600; color: var(--navy); font-size: 15px; margin-bottom: 2px; }
.next-list .n-cat { font-size: 12px; color: var(--slate); text-transform: uppercase; letter-spacing: 0.3px; font-weight: 600; }

/* Feedback widget */
.feedback {
  margin-top: 40px; padding: 20px 24px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--off-white);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.feedback-q { font-weight: 600; color: var(--navy); font-size: 15px; }
.feedback-btn {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 16px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--navy);
  font-family: inherit; transition: border-color 0.15s, background 0.15s;
}
.feedback-btn:hover { border-color: var(--teal); background: var(--teal-faint); }
.feedback-btn.active { border-color: var(--teal); background: var(--teal); color: var(--white); }
.feedback-thanks { font-size: 14px; color: var(--teal-dark); font-weight: 600; }

/* Contact fallback */
.contact-fallback {
  margin-top: 64px; padding: 32px; text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--off-white);
}
.contact-fallback h3 { font-family: 'Satoshi', sans-serif; font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.contact-fallback p { color: var(--slate); font-size: 15px; margin-bottom: 16px; }
.contact-fallback a {
  display: inline-block; background: var(--teal); color: var(--white) !important;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: background 0.15s;
}
.contact-fallback a:hover { background: var(--teal-dark); }

/* ── FOOTER (matches index.html) ── */
footer {
  background: var(--navy); border-top: 1px solid rgba(255,255,255,0.08);
  padding: 48px 40px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo-text { font-family: 'Satoshi', sans-serif; font-size: 16px; font-weight: 700; color: var(--white); letter-spacing: -0.5px; }
.footer-logo-text span { color: var(--teal); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--slate-light); text-decoration: none; font-size: 13px; transition: color 0.15s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { color: var(--slate); font-size: 13px; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .help-hero { padding: 56px 20px 40px; }
  .help-body { padding: 40px 20px; }
  .article { padding: 32px 20px 48px; }
  footer { flex-direction: column; gap: 16px; text-align: center; padding: 32px 20px; }
  .footer-links { justify-content: center; }
}
