/* Entropix website — shared styles.
   The page layouts carry their own inline styles (exported from the design
   canvas); this file holds the fonts, the page basics and the interactive
   controls whose look depends on state. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-600.woff2") format("woff2"); }
/* Space Grotesk ships 600 only; a 700 in the markup renders as 600. */
@font-face { font-family: "Space Grotesk"; font-weight: 500 700; font-style: normal; font-display: swap; src: url("fonts/space-grotesk-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); }

:root {
  --accent: #2f4bf5;
  --ink: #0e1015;
  --ground: #f5f6f8;
  --line: #dfe2e8;
  --muted: #4a5160;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
code { font-family: "IBM Plex Mono", ui-monospace, monospace; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The Governance page opens on the dark ground. */
body.page-dark { background: var(--ink); color: #e7e9ee; }
body.page-dark a { color: #e7e9ee; }
body.page-dark a:hover { color: #a9b6ff; }

/* With JavaScript, only the chosen tab's panel shows; without it, every
   panel shows, one after another. */
.js [data-panel]:not(.is-on) { display: none !important; }
.js [data-kind].is-hidden { display: none !important; }

/* Pill buttons: tabs, filters and toggles. */
.pill {
  min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  font: 600 15px "IBM Plex Sans", sans-serif;
  background: #fff; color: var(--ink); border: 1px solid #c9cdd6;
}
.pill-sm { font-weight: 500; font-size: 14px; padding: 0 16px; }
.pill[aria-selected="true"], .pill[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
/* The contact form's interest choices: real checkboxes drawn as pills. The
   input stays in the page (focusable, submitted) but is not painted. */
.check-pill { position: relative; display: inline-block; }
.check-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.check-pill .pill { display: inline-flex; align-items: center; }
.check-pill input:checked + .pill { background: var(--ink); color: #fff; border-color: var(--ink); }
.check-pill input:focus-visible + .pill { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The honeypot: out of sight for people, still in the DOM for bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.pill-dark {
  min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font: 500 13px "IBM Plex Sans", sans-serif;
  background: transparent; color: #e7e9ee; border: 1px solid #3a3f4b;
}
.pill-dark[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }

/* The review angles on the PRDs page. */
.angle-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px;
  padding: 0 18px; border-radius: 12px; cursor: pointer;
  font: 500 16px "IBM Plex Sans", sans-serif;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
}
.angle-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* The setup steps on the Agents page. */
.step-btn {
  display: flex; align-items: center; gap: 16px; width: 100%; min-height: 72px;
  padding: 14px 18px; border-radius: 12px; cursor: pointer;
  font-family: "IBM Plex Sans", sans-serif;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
}
.step-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.step-badge {
  width: 36px; height: 36px; flex: none; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: "IBM Plex Mono", monospace; font-size: 14px;
  background: #f0f1f4; color: var(--muted);
}
.step-btn[aria-pressed="true"] .step-badge { background: var(--accent); color: #fff; }

/* The contact form's note after Send. */
.form-note { margin: 0; font-size: 14px; color: #135f38; background: #e8f5ee; border-radius: 12px; padding: 12px 14px; }
.form-note { display: none; }
.form-note:target { display: block; }
.form-error { color: #8a1c1c; background: #fdecec; }

/* The shared header. One block on every page; the current page is marked
   from <body data-page>, and the dark Governance page recolours it. */
.site-header { border-bottom: 1px solid var(--line); background: var(--ground); }
.site-nav { max-width: 1200px; margin: 0 auto; padding: 14px 24px; min-height: 72px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 20px "Space Grotesk", sans-serif; letter-spacing: -0.01em; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; margin: 0 auto; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-signin { font-size: 15px; font-weight: 500; padding: 10px 14px; }
.nav-start, .nav-contact {
  font-size: 15px; font-weight: 600; padding: 0 18px; border-radius: 999px; min-height: 44px;
  display: inline-flex; align-items: center; white-space: nowrap;
}
.nav-start { background: var(--accent); color: #fff; }
.nav-start:hover { color: #fff; opacity: 0.92; }
.nav-contact { background: var(--ink); color: #fff; }
.nav-contact:hover { color: #fff; opacity: 0.92; }
.nav-contact-phone, .nav-menu { display: none; }
body[data-page="agents"] .nav-links a[href="agents.html"],
body[data-page="prds"] .nav-links a[href="prds.html"],
body[data-page="governance"] .nav-links a[href="governance.html"],
body[data-page="agents"] .nav-panel a[href="agents.html"],
body[data-page="prds"] .nav-panel a[href="prds.html"],
body[data-page="governance"] .nav-panel a[href="governance.html"] { color: var(--accent); }
.nav-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid #c9cdd6; background: #fff; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-burger, .nav-burger::before, .nav-burger::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; content: ""; }
.nav-burger { position: relative; }
.nav-burger::before { position: absolute; top: -6px; }
.nav-burger::after { position: absolute; top: 6px; }
.nav-menu { position: relative; }
.nav-panel {
  position: absolute; right: 0; top: 52px; z-index: 10; min-width: 220px; padding: 8px;
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 16px 32px -16px rgba(14, 16, 21, 0.25); font-size: 16px; font-weight: 500;
}
.nav-panel a { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border-radius: 8px; color: var(--ink); }

body.page-dark .site-header { background: var(--ink); border-bottom-color: #2a2f3a; }
body.page-dark .brand { color: #fff; }
body.page-dark .mk-bg { fill: #fff; }
body.page-dark .mk-a { fill: var(--ink); }
body.page-dark .nav-contact { background: #fff; color: var(--ink); }
body.page-dark .nav-contact:hover { color: var(--ink); }
body.page-dark .nav-start:hover { color: #fff; }
body.page-dark[data-page="governance"] .nav-links a[href="governance.html"],
body.page-dark[data-page="governance"] .nav-panel a[href="governance.html"] { color: #a9b6ff; }
body.page-dark .nav-menu summary { background: #1a1e27; border-color: #3a3f4b; }
body.page-dark .nav-burger, body.page-dark .nav-burger::before, body.page-dark .nav-burger::after { background: #e7e9ee; }
body.page-dark .nav-panel { background: #1a1e27; border-color: #2a2f3a; }
body.page-dark .nav-panel a { color: #e7e9ee; }

/* The shared footer. */
.site-footer { border-top: 1px solid var(--line); background: #fff; color: var(--muted); }
.foot-main { max-width: 1200px; margin: 0 auto; padding: 56px 24px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.foot-brand { max-width: 300px; }
.foot-logo { display: flex; align-items: center; gap: 10px; font: 700 18px "Space Grotesk", sans-serif; color: var(--ink); }
.foot-brand p { margin: 12px 0 0; font-size: 14px; line-height: 1.6; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 56px; font-size: 14px; }
.foot-cols > div { display: flex; flex-direction: column; gap: 10px; }
.foot-cols a { color: var(--muted); }
.foot-h { font-weight: 600; color: var(--ink); }
.foot-legal { max-width: 1200px; margin: 0 auto; padding: 20px 24px 32px; border-top: 1px solid #eef0f3; font-size: 13px; }
body.page-dark .site-footer { background: var(--ink); border-top-color: #2a2f3a; color: #a3a9b6; }
body.page-dark .foot-cols a { color: #a3a9b6; }
body.page-dark .foot-cols a:hover { color: #a9b6ff; }
body.page-dark .foot-logo, body.page-dark .foot-h { color: #fff; }
body.page-dark .mk-bg { fill: #fff; }
body.page-dark .foot-legal { border-top-color: #2a2f3a; }

/* Governance FAQ: in the same 1200px container as every other section, so
   its heading starts where theirs do (VD-20); its text at most 760px. */
.faq { text-align: left; }
.faq > * { max-width: 760px; }

/* The hero's mono line stays on one line. */
.hero-mono { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The hero card's seven angles: two across on a phone (VD-21). */
@media (max-width: 640px) {
  .hero-angles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Phones: a 56px header bar with the mark, the Contact us pill and a menu. */
@media (max-width: 640px) {
  .site-nav { min-height: 56px; height: 56px; padding: 0 16px; gap: 10px; }
  .brand span { display: none; }
  .nav-links, .nav-actions { display: none; }
  .nav-contact-phone { display: inline-flex; margin-left: auto; min-height: 40px; font-size: 14px; padding: 0 16px; }
  .nav-menu { display: block; }
  .nav-menu summary { width: 40px; height: 40px; }
  .nav-panel { top: 48px; }
  .foot-cols { gap: 32px; }
  .angle-list { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
  .angle-list .angle-btn { padding: 0 12px; gap: 8px; font-size: 14px; min-height: 52px; }
}

/* The skip link: first thing a keyboard user reaches, visible only on focus. */
.skip-link { position: absolute; left: 8px; top: -64px; z-index: 100; padding: 12px 18px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600; }
.skip-link:focus { top: 8px; color: #fff; }
body.page-dark .skip-link { background: #fff; color: var(--ink); }
body.page-dark .skip-link:focus { color: var(--ink); }

/* Home page sections (copy rewrite 2026-11-04). */
.wrap { max-width: 1200px; margin: 0 auto; padding: 96px 24px; }
.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font: 400 12px "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.h2 { margin: 16px 0 0; max-width: 820px; font: 600 clamp(30px, 4vw, 46px)/1.08 "Space Grotesk", sans-serif; letter-spacing: -0.025em; }
.sub { margin: 16px 0 0; max-width: 680px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.cards { margin-top: 40px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.card { border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: var(--ground); min-width: 0; }
.band .card { background: var(--ground); }
.card h3 { margin: 0; font: 600 21px/1.2 "Space Grotesk", sans-serif; letter-spacing: -0.015em; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.card p { margin: 10px 0 0; color: var(--muted); line-height: 1.6; font-size: 16px; }
.step-n { font: 400 12px "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.steps { margin-top: 40px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.steps .card { padding: 22px; }
.soon { display: inline-block; font: 500 11px "IBM Plex Mono", monospace; letter-spacing: 0.04em; text-transform: none; padding: 3px 9px; border-radius: 999px; background: #fdf3e2; color: #8a5100; white-space: nowrap; }
.new { display: inline-block; font: 500 11px "IBM Plex Mono", monospace; letter-spacing: 0.04em; text-transform: none; padding: 3px 9px; border-radius: 999px; background: #e8ecfe; color: var(--accent); white-space: nowrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { color: #fff; opacity: 0.92; }
.btn-ghost { border: 1px solid #c9cdd6; background: #fff; color: var(--ink); }
.btns { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.ticks li { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; line-height: 1.5; }
.timeline { margin: 40px 0 0; padding: 0; list-style: none; display: grid; gap: 0; max-width: 820px; }
.timeline li { display: flex; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); line-height: 1.55; font-size: 17px; }
.timeline time { flex: none; width: 56px; font: 500 14px "IBM Plex Mono", monospace; color: var(--accent); padding-top: 2px; }
.timeline span { min-width: 0; overflow-wrap: anywhere; }
.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 28px 24px; max-width: 1200px; margin: 0 auto; font: 500 14px "IBM Plex Mono", monospace; color: var(--muted); }
.works { margin-top: 28px; font: 400 13px/1.7 "IBM Plex Mono", monospace; color: var(--muted); overflow-wrap: anywhere; }
