/* ═══════════════════════════════════════════════════════════════
   AI Pulse — v0.3 Homepage · Editorial Enterprise Design System
   Light, restrained, typography-led. Used only by the new index.html.
   (Sub-pages still use styles.css until they are migrated.)
   ═══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 450 640;
  font-display: swap;
  src: url("/assets/fonts/newsreader-500.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/newsreader-500i.woff2") format("woff2");
}

:root {
  /* — surfaces (warm off-white, no glaring pure white) — */
  --paper:      #FAF7F2;
  --paper-2:    #F3EEE5;   /* alt section */
  --dark:       #0F1117;   /* dark bands: product views + close */
  --dark-2:     #171A22;

  /* — ink — */
  --ink:        #16181D;
  --ink-2:      #565C68;
  --ink-3:      #6B717D;   /* darkened from #8B909C — WCAG AA fix (was 2.99:1, now 4.59:1) */
  --line:       #E4DED2;
  --line-2:     #D8D1C3;

  /* — one restrained accent — */
  --accent:     #1E3A64;   /* deep pulse blue */
  --accent-2:   #2C5390;
  --accent-soft:#EAF0F8;

  /* — on dark — */
  --d-ink:      #EEF0F4;
  --d-ink-2:    #9AA1AF;
  --d-line:     #262B37;
  --d-accent:   #7FA8DC;

  /* — status (chips only) — */
  --live:    #2E9E68;
  --derived: #B9852C;
  --assume:  #B64B4B;
  --na:      #9096A2;

  /* — type — */
  --serif: "Newsreader", ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, Cambria, serif;
  --sans:  "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --textw: 720px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* — layout — */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(24px, 6vw, 64px); }
.section { padding-block: clamp(76px, 11vw, 150px); }
.section--alt { background: var(--paper-2); }
.section--hair { border-top: 1px solid var(--line); }
.narrow { max-width: var(--textw); }

/* — typography — */
.serif { font-family: var(--serif); font-weight: 500; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.012em; color: var(--ink); }
.eyebrow {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-3);
  display: inline-flex; align-items: baseline; gap: 12px;
}
.eyebrow .num { color: var(--accent); font-weight: 700; letter-spacing: 0.08em; }
h1.display {
  font-size: clamp(2.55rem, 5.4vw, 4.25rem);
  line-height: 1.06; letter-spacing: -0.02em; margin: 22px 0 0;
}
h1.display em { font-style: italic; color: var(--accent); }
h2.head {
  font-size: clamp(1.85rem, 3.5vw, 2.9rem);
  line-height: 1.12; margin: 20px 0 0; max-width: 16ch;
}
.section--center h2.head, .section--center .lead { margin-inline: auto; }
.lead {
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  color: var(--ink-2); line-height: 1.6; margin-top: 26px; max-width: 60ch; font-weight: 400;
}
.body { color: var(--ink-2); line-height: 1.75; margin-top: 20px; max-width: 62ch; }
.body strong, .lead strong { color: var(--ink); font-weight: 600; }

/* — buttons — */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 14px 26px; border-radius: 6px; border: 1px solid transparent; cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .18s; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--ink); }
.btn--ghost { color: var(--ink-2); padding: 8px 4px; }
.btn--ghost:hover { color: var(--ink); }
.btn--ondark { background: #fff; color: var(--dark); }
.btn--ondark:hover { background: #E8EBF0; }
.btn--outline-dark { background: transparent; color: var(--d-ink); border-color: var(--d-line); }
.btn--outline-dark:hover { border-color: var(--d-ink-2); }

/* — nav — */
.nav { position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,242,0.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); }
.nav__in { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(24px,6vw,64px);
  height: 66px; display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; align-items: center; gap: 11px; }
.nav__logo img { height: 30px; width: auto; }
.nav__logo .wm { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.nav__logo .sm { font-size: 0.68rem; color: var(--ink-3); display:block; letter-spacing: 0.02em; margin-top: 1px; }
.nav__panel { display: flex; align-items: center; gap: 34px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 0.92rem; color: var(--ink-2); transition: color .18s; }
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 14px; }

/* checkbox stays in the DOM + tab order (visually hidden, not display:none) so keyboard users can reach it */
.nav__toggle {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav__toggle:checked ~ .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle:checked ~ .nav__burger span:nth-child(2) { opacity: 0; }
.nav__toggle:checked ~ .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__toggle:focus-visible ~ .nav__burger { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* — accessibility: skip link + visible focus — */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff;
  padding: 12px 20px; z-index: 200; border-radius: 0 0 8px 0; font-size: 0.9rem; font-weight: 600;
}
.skip-link:focus { left: 0; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.band-dark a:focus-visible, .close a:focus-visible, .btn--ondark:focus-visible, .btn--outline-dark:focus-visible { outline-color: var(--d-accent); }

/* — hero — */
.hero { padding-block: clamp(64px, 9vw, 120px) clamp(70px, 10vw, 128px); }
.hero .proof { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px 24px;
  font-size: 0.86rem; color: var(--ink-3); }
.hero .proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero .proof span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .55; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* hero figure — a single, calm real screenshot */
.hero-figure { margin-top: 64px; }
.frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -30px rgba(20,24,40,0.35), 0 2px 6px rgba(20,24,40,0.06); background: #0F1117; }
.frame__bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 16px;
  background: #171A22; border-bottom: 1px solid #23283340; }
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: #333846; display: inline-block; }
.frame__bar .u { margin-left: 14px; font-size: 0.74rem; color: #6B7180; font-family: var(--sans); }
.frame img { width: 100%; display: block; }

/* — numbered section header — */
.sec-head { display: flex; flex-direction: column; }

/* — how it works (quiet numbered steps) — */
.steps { margin-top: 52px; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 88px 1fr; gap: 28px; padding: 30px 0;
  border-top: 1px solid var(--line); align-items: baseline; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .n { font-family: var(--serif); font-size: 2rem; color: var(--line-2); font-weight: 500; }
.step h3 { font-size: 1.28rem; font-weight: 600; }
.step p { color: var(--ink-2); margin-top: 8px; max-width: 60ch; line-height: 1.7; }

/* — provenance chips (the honesty motif) — */
.prov { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 9px; font-size: 0.82rem; font-weight: 600;
  padding: 8px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.chip.live::before    { background: var(--live); }
.chip.derived::before { background: var(--derived); }
.chip.assume::before  { background: var(--assume); }
.chip.na::before      { background: var(--na); }
.chip.na { color: var(--ink-3); }

/* — personas (restrained list) — */
.roles { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.role { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: baseline;
  padding: 22px 0; border-top: 1px solid var(--line); }
.role .r { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--accent); }
.role .f { color: var(--ink-2); }
.role .f b { color: var(--ink); font-weight: 600; display: block; margin-bottom: 2px; font-family: var(--sans); }

/* — lineage mini diagram — */
.lineage { margin-top: 44px; padding: 0; list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 0.9rem; color: var(--ink-2); }
.lineage .node { padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font-weight: 600; color: var(--ink); }
.lineage .arw { color: var(--ink-3); }

/* — dark band (real product views) — */
.band-dark { background: var(--dark); color: var(--d-ink); }
.band-dark h2.head, .band-dark h1 { color: var(--d-ink); }
.band-dark .eyebrow { color: var(--d-ink-2); }
.band-dark .eyebrow .num { color: var(--d-accent); }
.band-dark .lead { color: var(--d-ink-2); }
.shots { margin-top: 56px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.shots .frame { box-shadow: 0 24px 60px -28px rgba(0,0,0,0.7); border-color: #262B37; }
.shot-cap { margin-top: 16px; }
.shot-cap b { display: block; font-family: var(--sans); font-weight: 600; color: var(--d-ink); font-size: 0.98rem; }
.shot-cap span { color: var(--d-ink-2); font-size: 0.9rem; line-height: 1.55; display: block; margin-top: 4px; }
.shots .wide { grid-column: 1 / -1; }

/* — deployment facts — */
.facts { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
.fact h3 { font-size: 1.1rem; font-weight: 600; font-family: var(--sans); color: var(--ink); }
.fact p { color: var(--ink-2); margin-top: 8px; line-height: 1.7; }
.fact .tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink-3); border: 1px solid var(--line); border-radius: 5px; padding: 3px 9px; margin-top: 12px; }

/* — roadmap — */
.road { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.road .ph { border-top: 2px solid var(--accent); padding-top: 18px; }
.road .ph .k { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.road .ph h3 { font-family: var(--sans); font-size: 1.06rem; font-weight: 600; margin-top: 8px; }
.road .ph p { color: var(--ink-2); margin-top: 8px; font-size: 0.96rem; line-height: 1.65; }
.road .ph.soon { border-top-color: var(--line-2); }
.road .ph.soon .k { color: var(--ink-3); }

/* — close CTA (dark) — */
.close { background: var(--dark); color: var(--d-ink); text-align: center;
  padding-block: clamp(80px, 12vw, 150px); }
.close h2 { color: var(--d-ink); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.14; max-width: 20ch; margin: 18px auto 0; }
.close p { color: var(--d-ink-2); margin: 22px auto 0; max-width: 56ch; line-height: 1.65; }
.close .hero-ctas { justify-content: center; margin-top: 38px; }
.close .fine { color: var(--d-ink-2); font-size: 0.82rem; margin-top: 26px; opacity: .8; }

/* — footer — */
.foot { background: var(--paper); border-top: 1px solid var(--line); padding-block: 44px; }
.foot__in { max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(24px,6vw,64px);
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.foot__links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot__links a { font-size: 0.88rem; color: var(--ink-2); }
.foot__links a:hover { color: var(--ink); }
.foot__meta { font-size: 0.82rem; color: var(--ink-3); }

/* — cloud line (restrained) — */
.clouds { margin-top: 30px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; font-size: 0.86rem; color: var(--ink-3); }
.clouds .cl { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 500; }
.clouds .cl img { height: 17px; width: auto; }
.clouds .soon { color: var(--ink-3); font-weight: 400; }

/* ── responsive ── */
@media (max-width: 860px) {
  .nav__burger { display: flex; }
  .nav__panel {
    display: none;
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 6px clamp(24px,6vw,64px) 22px;
    box-shadow: 0 16px 30px -16px rgba(20,24,40,0.22);
  }
  .nav__toggle:checked ~ .nav__panel { display: flex; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav__actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 14px; }
  .nav__actions .btn { width: 100%; }
  .shots, .roles, .facts, .road { grid-template-columns: 1fr; }
  .roles .role, .step { grid-template-columns: 54px 1fr; gap: 16px; }
  .shots { gap: 40px; }
  h2.head { max-width: none; }
}
@media (max-width: 520px) {
  .step { grid-template-columns: 1fr; gap: 6px; }
  .step .n { font-size: 1.4rem; }
}
