/* Shared stylesheet for the static pages (blog, homepage).
   Color/font tokens copied from themes.js BRAND. */
:root {
  --primary: #1E3048;
  --canvas-dark: #141C2A;
  --accent: #C9A227;
  --spotlight: #2E7D6F;
  --page-bg: #fafafa;
  --rule: #e0e0e0;
  --rule-dark: #1a1a1a;
  --text: #1a1a1a;
  --text-body: #555;
  --text-muted: #666;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --maxw: 1200px;

  /* Landing page tokens (from themes.js dark theme) */
  --brand-error: #C23B22;
  --dark-cardbg: #121416;
  --dark-inputbg: #111315;
  --dark-border: rgba(255,255,255,0.05);
  --dark-primary: #2C4F72;
  --dark-text: #ffffff;
  --dark-text-secondary: #e6eef7;
  --dark-text-muted: #9aa4ad;
  --dark-button-inactive: #374357;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--page-bg); font-family: var(--font); color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Single site header (mirrors LandingPage) ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 100; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.site-header .logo img { max-height: 48px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 600; color: #333; }
.site-nav a:hover { color: var(--primary); }
.site-nav a.current { color: var(--primary); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.header-actions { display: flex; gap: 12px; }

.btn {
  display: inline-block; padding: 8px 20px; border-radius: 6px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1px solid #d0d0d0; background: #fff; color: #333;
  transition: background 0.2s; font-family: var(--font);
}
.btn:hover { background: #f5f5f5; }
.btn-primary { background: var(--primary); color: #fff; border: none; }
.btn-primary:hover { background: #2C4F72; }
.btn-accent { background: var(--accent); color: #000; border: none; }
.btn-accent:hover { filter: brightness(1.08); }
.btn-square { border-radius: 2px; }

/* ---------- Masthead: blog title + topic index ---------- */
.masthead { background: var(--page-bg); }
.masthead .wrap { padding-top: 40px; }
.masthead h1 {
  margin: 0 0 4px; font-size: 44px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1;
}
.masthead .strap { margin: 0 0 24px; font-size: 15px; color: var(--text-muted); }
.topic-index {
  display: flex; gap: 32px; flex-wrap: wrap;
  border-top: 2px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.topic-index a { color: var(--text-muted); }
.topic-index a:hover { color: var(--text); }
.topic-index a.active { color: var(--text); border-bottom: 2px solid var(--accent); padding-bottom: 10px; margin-bottom: -13px; }
.topic-index a.dl { margin-left: auto; color: var(--primary); }
.topic-index a.dl:hover { color: var(--accent); }

/* ---------- Section headers: eyebrow + rule ---------- */
.section { padding: 44px 0 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  border-bottom: 2px solid var(--rule-dark);
  padding-bottom: 8px; margin-bottom: 0;
}
.section-head h2 {
  margin: 0; font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.section-head a.more { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.section-head a.more:hover { color: var(--text); }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary);
}
.eyebrow.t-mentoring { color: var(--spotlight); }
.eyebrow.t-management { color: #9a7b16; }
.eyebrow.t-learning { color: #4a5568; }

.meta { font-size: 12px; color: var(--text-muted); }

.thumb { background: var(--primary); aspect-ratio: 16/9; }
.thumb.t-feedback   { background: linear-gradient(135deg, #1E3048, #2C4F72); }
.thumb.t-mentoring  { background: linear-gradient(135deg, #2E7D6F, #3d9c8b); }
.thumb.t-management { background: linear-gradient(135deg, #C9A227, #dbbc55); }
.thumb.t-learning   { background: linear-gradient(135deg, #4a5568, #718096); }

/* ---------- Featured: lead article + headline column ---------- */
.featured {
  display: grid; grid-template-columns: 7fr 4fr; gap: 0;
}
.featured .lead { padding: 28px 32px 28px 0; border-right: 1px solid var(--rule); }
.featured .lead .thumb { margin-bottom: 20px; }
.featured .lead h3 { margin: 8px 0 12px; font-size: 30px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.featured .lead h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.featured .lead p { margin: 0 0 16px; font-size: 15px; color: var(--text-body); max-width: 60ch; }

.featured .headlines { padding: 28px 0 28px 32px; display: flex; flex-direction: column; }
.featured .headlines .hl { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.featured .headlines .hl:first-child { padding-top: 0; }
.featured .headlines .hl:last-child { border-bottom: none; }
.featured .headlines h4 { margin: 4px 0 6px; font-size: 17px; line-height: 1.35; font-weight: 700; }
.featured .headlines h4 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ---------- CTA band: full-bleed, flat ---------- */
.cta-band { background: var(--primary); color: #fff; margin-top: 44px; }
.cta-band .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 36px;
}
.cta-band h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.cta-band p { margin: 0; font-size: 14px; color: #e6eef7; max-width: 560px; }

/* ---------- Latest posts: flat grid with rules ---------- */
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: 32px;
}
.post {
  padding: 24px 0; border-bottom: 1px solid var(--rule);
}
.post .thumb { margin-bottom: 14px; }
.post h3 { margin: 4px 0 8px; font-size: 18px; line-height: 1.35; font-weight: 700; }
.post h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.post p { margin: 0 0 10px; font-size: 14px; color: var(--text-body); }

/* ---------- Guides & downloads: white full-bleed section ---------- */
.white-section { background: #fff; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 44px; }
.white-section .wrap { padding-top: 44px; padding-bottom: 44px; }
.white-section .intro { max-width: 62ch; margin: 16px 0 8px; font-size: 15px; color: var(--text-body); }
.dl-row {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--rule);
}
.dl-row:last-child { border-bottom: none; }
.dl-row h3 { margin: 4px 0 4px; font-size: 17px; font-weight: 700; }
.dl-row p { margin: 0; font-size: 14px; color: var(--text-body); max-width: 70ch; }
.dl-link {
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--primary); border-bottom: 2px solid var(--accent); padding-bottom: 2px;
  cursor: pointer; background: none; border-top: none; border-left: none; border-right: none;
  font-family: var(--font); white-space: nowrap;
}
.dl-link:hover { color: var(--accent); }

/* ---------- Newsletter: flat band ---------- */
.news-band { text-align: center; padding: 48px 24px 56px; }
.news-band h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.news-band p { margin: 0 0 20px; font-size: 14px; color: var(--text-body); }
.news-band form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.news-band input[type="email"] {
  padding: 10px 12px; border-radius: 2px; border: 1px solid #d0d0d0;
  font-size: 16px; font-family: var(--font); width: 280px; max-width: 100%;
}
.news-band .form-status { font-size: 13px; margin-top: 10px; min-height: 18px; }
.news-band .form-status.ok { color: var(--spotlight); }
.news-band .form-status.err { color: #C23B22; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 2px solid var(--rule-dark);
  padding: 20px 24px; font-size: 12px; color: var(--text-muted); text-align: center;
  background: var(--page-bg);
}

/* ---------- Gated download modal ---------- */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(20,28,42,0.6); z-index: 200;
  align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 2px; box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  max-width: 420px; width: 100%; padding: 28px; position: relative;
  border-top: 4px solid var(--accent);
}
.modal h3 { margin: 0 0 4px; font-size: 20px; }
.modal .sub { margin: 0 0 20px; font-size: 14px; color: var(--text-body); }
.modal label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.modal input {
  width: 100%; padding: 10px 12px; border-radius: 2px; border: 1px solid #d0d0d0;
  font-size: 16px; font-family: var(--font); margin-bottom: 16px;
}
.modal .close {
  position: absolute; top: 10px; right: 12px; background: none; border: none;
  font-size: 20px; line-height: 1; cursor: pointer; color: var(--text-muted);
}
.modal .status { font-size: 13px; margin-top: 8px; min-height: 18px; }
.modal .status.ok { color: var(--spotlight); }
.modal .status.err { color: #C23B22; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .featured { grid-template-columns: 1fr; }
  .featured .lead { border-right: none; border-bottom: 1px solid var(--rule); padding-right: 0; }
  .featured .headlines { padding-left: 0; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .masthead h1 { font-size: 34px; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .dl-row { grid-template-columns: 1fr; }
  .topic-index { gap: 16px; }
  .topic-index a.dl { margin-left: 0; }
}


/* ==================================================================
   LANDING PAGE (index.html) — ported from LandingPage.jsx inline styles
   ================================================================== */
/* ---------- Early access banner ---------- */
.ea-banner {
  background: var(--brand-error);
  color: #fff;
  padding: 12px 24px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}
.ea-label { font-weight: 600; white-space: nowrap; }
.ea-form { display: flex; gap: 8px; align-items: center; flex: 1; }
.ea-form input {
  padding: 4px 10px; border-radius: 4px; border: none;
  font-size: 16px; width: 200px; min-width: 0;
  font-family: var(--font); box-sizing: border-box;
}
.ea-form button {
  padding: 4px 16px; border-radius: 4px; border: none;
  background: var(--canvas-dark); color: #fff; font-weight: 600;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  font-family: var(--font); font-size: 16px;
}
.ea-status { white-space: nowrap; }

/* ---------- Centered wordmark ---------- */
.wordmark { padding: 40px 24px 24px; background: var(--page-bg); text-align: center; }
.wordmark img { height: 80px; width: auto; object-fit: contain; margin: 0 auto; }
.wordmark-sub { font-size: 12px; color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border-bottom: 1px solid var(--rule);
  position: relative; overflow: hidden;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 48px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.hero h1 { margin: 0 0 16px; font-size: 40px; font-weight: 700; color: var(--text); line-height: 1.2; }
.hero-lede { margin: 0 0 24px; font-size: 17px; color: var(--text-body); line-height: 1.6; }
.hero-stats { display: flex; gap: 32px; margin-bottom: 24px; }
.stat-num { font-size: 32px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-muted); }
.hero-cta {
  display: inline-block; padding: 12px 28px; border-radius: 6px; border: none;
  background: var(--primary); color: #fff; font-size: 16px; font-weight: 600;
  cursor: pointer; box-shadow: 0 4px 12px rgba(37, 87, 167, 0.25);
  transition: transform 0.2s;
}
.hero-cta:hover { transform: translateY(-2px); }

/* ---------- Product mock (dark theme card) ---------- */
.mock {
  background: var(--dark-cardbg); border-radius: 8px; padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  border: 1px solid var(--dark-border);
  font-size: 14px; line-height: 20px;
}
.mock-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mock-avatar {
  width: 44px; height: 44px; border-radius: 10px; background: var(--dark-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700;
}
.mock-name { font-size: 16px; font-weight: 700; color: var(--dark-text); }
.mock-role { font-size: 13px; color: var(--dark-text-muted); }
.mock-messages { padding-right: 8px; margin-bottom: 12px; }
.mock-row { display: flex; margin-bottom: 8px; }
.mock-row.left { justify-content: flex-start; }
.mock-row.right { justify-content: flex-end; }
.bubble {
  max-width: 92%; border-radius: 18px; padding: 10px 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4); white-space: pre-line;
}
.bubble.bot { background: #1b1c1d; color: var(--dark-text-secondary); }
.bubble.user { background: var(--dark-primary); color: #fff; }
.bubble-time { margin-top: 6px; font-size: 11px; color: rgba(255,255,255,0.6); }
.mock-retry {
  display: flex; justify-content: flex-end; gap: 6px;
  margin-top: 8px; margin-bottom: -6px; margin-right: 4px;
  position: relative; z-index: 1;
}
.retry-pill {
  padding: 3px 10px; font-size: 11px; font-weight: 600; line-height: 1;
  border-radius: 999px; background: var(--dark-button-inactive);
  border: 1px solid var(--dark-border); color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.mock-textarea {
  padding: 10px 12px; border-radius: 8px;
  background: var(--dark-inputbg); color: var(--dark-text-muted);
  border: 1px solid var(--dark-border); height: 48px;
  margin-bottom: 8px; box-sizing: border-box;
}
.mock-controls { display: flex; justify-content: space-between; gap: 8px; }
.mock-controls-left { display: flex; gap: 8px; }
.mock-btn {
  display: inline-block; padding: 10px 14px; border-radius: 8px;
  border: none; font-size: 14px; font-weight: normal;
}
.mock-btn.spotlight { background: var(--spotlight); color: #fff; }
.mock-btn.send { background: var(--accent); color: #000; }

/* ---------- Why Loopen ---------- */
.why {
  background: #f0f7ff;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 48px 24px;
}
.why-inner { max-width: 1080px; margin: 0 auto; position: relative; }
.why h2 {
  margin: 0 0 16px; font-size: 48px; font-weight: 800; color: var(--text);
  text-align: center; line-height: 1.1; letter-spacing: -1px;
}
.why-lede {
  margin: 0 auto; font-size: 20px; color: #333; line-height: 1.5;
  text-align: center; max-width: 620px; font-weight: 500;
}
.why-lede-last { margin: 6px auto 48px; }
.why-lede b { color: var(--accent); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 28px; }
.why-icon {
  width: 48px; height: 48px; border-radius: 10px; background: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.why-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #333; }
.why-card p { margin: 0; font-size: 14px; color: #333; line-height: 1.55; }

/* ---------- How it works ---------- */
.how {
  max-width: 1200px; margin: 0 auto;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  padding: 48px 24px;
}
.how h2 { margin: 0 0 32px; font-size: 32px; font-weight: 700; color: var(--text); text-align: center; }
.how-row { display: flex; gap: 16px; justify-content: space-between; }
.how-card { flex: 1; background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 20px; min-width: 0; }
.how-num {
  width: 40px; height: 40px; border-radius: 8px; background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px;
}
.how-card h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--text); overflow-wrap: break-word; }
.how-card p { margin: 0; font-size: 12px; color: var(--text-body); line-height: 1.5; overflow-wrap: break-word; }

/* ---------- Pricing ---------- */
.pricing {
  background: #f0f7ff;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 48px 24px;
}
.pricing-inner { max-width: 1200px; margin: 0 auto; }
.pricing h2 { margin: 0 0 24px; font-size: 32px; font-weight: 700; color: var(--text); text-align: center; }
.pricing-toggle { display: flex; justify-content: center; gap: 12px; margin-bottom: 32px; }
.toggle-btn {
  padding: 10px 24px; border-radius: 6px; border: 1px solid #d0d0d0;
  background: #fff; color: #333; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: var(--font);
}
.toggle-btn.active { border: none; background: var(--primary); color: #fff; }

.plan-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; max-width: 900px; margin: 0 auto;
}
.plan {
  background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 24px;
  display: flex; flex-direction: column; min-height: 280px; transition: all 0.3s;
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.plan.featured { border: 2px solid var(--primary); box-shadow: 0 4px 12px rgba(37, 87, 167, 0.15); }
.plan-name { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 16px; }
.plan-price .amount { font-size: 32px; font-weight: 700; color: var(--text); }
.plan-price .per { font-size: 14px; color: var(--text-muted); }
.plan ul { margin: 0; padding: 0 0 0 20px; font-size: 14px; color: #333; line-height: 1.8; flex: 1; }
.plan-cta {
  display: block; text-align: center; margin-top: 20px; padding: 10px 16px;
  border-radius: 6px; border: 1px solid #d0d0d0; background: #fff; color: #333;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.plan-cta:hover { background: #f5f5f5; }
.plan.featured .plan-cta { border: none; background: var(--primary); color: #fff; }
.plan.featured .plan-cta:hover { background: #1e4a8f; }

/* ---------- Responsive (mirrors isMobile branches) ---------- */
@media (max-width: 900px) {
  .ea-banner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 12px; font-size: 14px; }
  .ea-label { white-space: normal; }
  .ea-form { width: 100%; }
  .ea-form input { flex: 1; width: auto; font-size: 14px; }
  .wordmark img { height: 56px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .hero-lede { font-size: 15px; }
  .why h2 { font-size: 34px; }
  .why-lede { font-size: 17px; }
  .why-grid { grid-template-columns: 1fr; }
  .how-row { flex-direction: column; }
  .plan-grid { grid-template-columns: 1fr; }
}
