/* Pulse AI — light + dark themes (both are first-class; suite rule) */

:root {
  --radius: 16px;
  --maxw: 1080px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* light theme (default) */
  --bg: #f7f9fe;
  --bg2: #eef2fb;
  --card: #ffffff;
  --line: #d8e0f2;
  --ink: #101830;
  --sub: #4d5c80;
  --accent: #3b6ef5;
  --accent2: #0891b2;
  --accent2-soft: rgba(8, 145, 178, 0.14);
  --accent-soft: rgba(59, 110, 245, 0.12);
  --good: #059669;
  --btn-ink: #ffffff;
  --header-bg: rgba(247, 249, 254, 0.8);
  --glow1: rgba(59, 110, 245, 0.10);
  --glow2: rgba(8, 145, 178, 0.08);
}

[data-theme="dark"] {
  --bg: #0b1020;
  --bg2: #111a33;
  --card: #141d38;
  --line: #243056;
  --ink: #eef2ff;
  --sub: #9fb0d6;
  --accent: #5b8cff;
  --accent2: #22d3ee;
  --accent2-soft: rgba(34, 211, 238, 0.16);
  --accent-soft: rgba(91, 140, 255, 0.16);
  --good: #34d399;
  --btn-ink: #04122e;
  --header-bg: rgba(11, 16, 32, 0.7);
  --glow1: rgba(91, 140, 255, 0.18);
  --glow2: rgba(34, 211, 238, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}
a { color: inherit; text-decoration: none; }
.underline { text-decoration: underline; text-underline-offset: 3px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; }
.alt { background: var(--bg2); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
.center { text-align: center; }
.narrow { max-width: 22ch; margin-left: auto; margin-right: auto; margin-bottom: 18px; }
.narrow-p { max-width: 64ch; margin: 0 auto 40px; }
.space-s { margin-bottom: 14px; }
.space-b { margin-bottom: 40px; }
.align-c { align-items: center; }
.eyebrow { color: var(--accent2); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; }
.muted { color: var(--sub); }
.fine { font-size: 13px; margin-top: 16px; }
.good { color: var(--good); }

/* buttons */
.btn { display: inline-block; padding: 14px 26px; border-radius: 12px; font-weight: 700; font-size: 16px; cursor: pointer; border: 0; transition: transform 0.15s ease, opacity 0.15s ease; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--btn-ink); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); background: var(--header-bg); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: var(--maxw); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.logo.small { font-size: 17px; }
.logo .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 0 4px var(--accent2-soft); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent2-soft); }
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--sub); font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav-actions { display: flex; gap: 14px; align-items: center; }
.nav-actions a.btn { color: var(--btn-ink); }

/* Narrow screens: the links used to be hidden outright, which meant every section
   except the CTA was unreachable on a phone. They now drop to their own row beneath
   the logo, scrolling sideways if they do not fit. No hamburger: five links fit in a
   swipe, and a menu that has to be opened is one more thing between a visitor and the
   page. The theme toggle and the assessment button stay on the top row so the primary
   action is never the thing you have to scroll to find. */
@media (max-width: 820px) {
  .nav { flex-wrap: wrap; gap: 10px 14px; padding: 12px 24px; }
  .logo { order: 1; margin-right: auto; }
  .nav-actions { order: 2; }
  .nav-links {
    order: 3;
    width: 100%;
    gap: 20px;
    font-size: 15px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  /* The row is a few links wider than a phone. Fading the right edge is what tells
     someone there is more to swipe to — without it the row looks complete and the
     last link is simply never found. */
  .nav-links { mask-image: linear-gradient(to right, #000 85%, transparent 100%); }
  .nav-actions a.btn { padding: 9px 14px; font-size: 13px; }
}

/* theme toggle */
.theme-toggle { background: transparent; border: 1px solid var(--line); border-radius: 10px; width: 38px; height: 38px; cursor: pointer; display: grid; place-items: center; color: var(--ink); font-size: 16px; }
.theme-toggle:hover { border-color: var(--accent2); }
.theme-icon::before { content: '\2600\FE0F'; }
[data-theme="dark"] .theme-icon::before { content: '\1F319'; }

/* hero */
.hero { padding: 90px 0 70px; background: radial-gradient(1200px 500px at 70% -10%, var(--glow1), transparent), radial-gradient(900px 400px at 0% 20%, var(--glow2), transparent); }
.hero h1 { max-width: 18ch; }
.hero p.lead { font-size: 20px; color: var(--sub); margin: 22px 0 32px; max-width: 60ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--sub); }

/* grids and cards */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.step-num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent2); font-weight: 800; margin-bottom: 14px; }
.check { color: var(--good); margin-right: 8px; font-weight: 800; }

/* offerings */
.path-grid { margin-top: 40px; }
.path-card { display: flex; flex-direction: column; gap: 14px; }
.path-card .btn { margin-top: auto; align-self: flex-start; }
.path-card.featured { border-color: var(--accent); box-shadow: 0 30px 80px -40px var(--glow1); }
.feature-list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 8px 0; }
.feature-list.left { text-align: left; max-width: 360px; margin: 24px auto; }
.soon { color: var(--accent2); font-style: normal; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-left: 6px; }

/* certification list (community page) */
.cert-list { list-style: none; display: grid; gap: 14px; counter-reset: none; }
.cert-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.cert-list li + li { border-top: 1px solid var(--line); padding-top: 14px; }
.cert-num { display: grid; place-items: center; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent2); font-weight: 800; font-size: 14px; }
.cert-list strong { display: block; font-weight: 700; }
.cert-list em { display: block; font-style: normal; font-size: 13px; margin-top: 2px; }

/* disclosure notes (community page) */
.note-card { border-left: 3px solid var(--accent2); }
.note-card h3 { font-size: 17px; margin-bottom: 8px; }

/* report preview */
.report-preview { padding: 0; overflow: hidden; }
.report-head { background: linear-gradient(135deg, var(--accent), var(--accent2)); padding: 26px; color: var(--btn-ink); }
.report-head strong { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.report-title { font-size: 24px; font-weight: 800; margin-top: 6px; }
.report-body { padding: 26px; display: grid; gap: 14px; }
.report-row { display: flex; justify-content: space-between; }
.hr { height: 1px; background: var(--line); }

/* case studies */
.case-card { display: block; transition: transform 0.15s ease, border-color 0.15s ease; }
.case-card:hover { transform: translateY(-3px); border-color: var(--accent2); }
.case-card h3 { margin: 8px 0 10px; }
.read-more { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--accent2); }
.case-study { max-width: 720px; margin: 0 auto 64px; }
.case-study h2 { margin: 12px 0 20px; }
.case-study p { margin-bottom: 18px; }
.case-study .case-meta { font-size: 14px; color: var(--sub); margin-bottom: 6px; }
.case-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* pricing */
.price-card { background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--accent); border-radius: 22px; padding: 38px; max-width: 520px; margin: 0 auto; text-align: center; box-shadow: 0 30px 80px -40px var(--glow1); }
.price { font-size: 56px; font-weight: 800; margin: 6px 0; }
.price small { font-size: 18px; color: var(--sub); font-weight: 600; }

/* faq */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; }
details summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details[open] summary { color: var(--accent2); }
details p { color: var(--sub); margin-top: 10px; }

/* form */
.lead-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; max-width: 520px; margin: 0 auto; }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 15px; font-family: inherit; }
.lead-form textarea { resize: vertical; }
.lead-form label { font-size: 13px; color: var(--sub); margin-bottom: -8px; }
.form-status { display: none; text-align: center; font-weight: 600; }
.form-status.ok { display: block; color: var(--good); }
.form-status.err { display: block; color: #dc2626; }

/* final cta + footer */
.final-cta { background: radial-gradient(800px 300px at 50% 0%, var(--glow1), transparent); }
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--sub); font-size: 14px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
