/* Bhor Tech site v2 additions: new type, status pills, tour, counters, proof, agents, API, Aurio.
   Loaded after styles.css. */
:root {
  --font-head: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, sans-serif;
  --copper: #c8691f;
  --copper-soft: #fbeadb;
  --sun: #f4a259;
}
h1, h2, h3, h4 { letter-spacing: -0.02em; }
h1 { font-weight: 800; }

.brand img { height: 38px; width: auto; }
.footer-brand .chip img { height: 30px; width: auto; }

/* Status pills */
.st { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; vertical-align: middle; margin-left: 6px; white-space: nowrap; }
.st.live { background: #d9f2ec; color: #0b5f58; }
.st.preview { background: var(--copper-soft); color: #8f4a0e; }
.st.soon { background: #e8ecf3; color: #475569; }
.st.sample { background: #fff4c7; color: #7a5b00; }

/* Section helpers */
.sec-sub { max-width: 640px; margin: 0 auto 28px; color: var(--muted); }
.center { text-align: center; }
.row-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }

/* Hero tour */
.tour { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.tour-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--cream-2); border-bottom: 1px solid var(--line); }
.tour-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; display: inline-block; }
.tour-bar span { margin-left: 10px; font-size: .78rem; color: var(--muted); }
.tour-stage { position: relative; min-height: 270px; padding: 18px 20px; }
.tour-scene { position: absolute; inset: 18px 20px; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; pointer-events: none; }
.tour-scene.on { opacity: 1; transform: none; pointer-events: auto; }
.tour-scene h4 { font-size: .98rem; margin: 0 0 10px; }
.t-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; font-size: .88rem; background: #fff; }
.t-row .tag { margin-left: auto; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e8ecf3; color: #475569; transition: all .6s; }
.t-row.ok .tag { background: #d9f2ec; color: #0b5f58; }
.tour-scene.on .t-row.delay .tag { animation: tagflip 1.2s .9s forwards; }
@keyframes tagflip { to { background: #d9f2ec; color: #0b5f58; } }
.t-bubble { padding: 9px 12px; border-radius: 12px; font-size: .86rem; margin-bottom: 8px; max-width: 92%; }
.t-bubble.q { background: var(--cream-2); }
.t-bubble.a { background: #e6f4f1; border: 1px solid #b9e1d9; margin-left: auto; }
.t-bubble small { display: block; color: var(--muted); margin-top: 4px; }
.tour-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); }
.tour-dots { display: flex; gap: 6px; }
.tour-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: #cbd5e1; cursor: pointer; padding: 0; }
.tour-dots button.on { background: var(--accent); width: 22px; border-radius: 6px; }
.tour-cap { font-size: .8rem; color: var(--muted); flex: 1; }
.tour-play { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 10px; cursor: pointer; font-size: .8rem; }
.tour-prog { height: 3px; background: var(--line); }
.tour-prog b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--sun)); }
.hint-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .84rem; color: var(--muted);
  background: #fff; border: 1px dashed var(--accent-300); padding: 6px 12px; border-radius: 999px; }

/* Counters */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.counter { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; text-align: center; position: relative; }
.counter .num { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.counter .lab { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.counter .tip { font-size: .76rem; color: var(--muted); margin-top: 6px; opacity: .85; }
.counter .ring { width: 58px; height: 58px; margin: 0 auto 6px; }
.sample-note { text-align: center; margin-top: 14px; font-size: .84rem; color: var(--muted); }
@media (max-width: 900px) { .counters { grid-template-columns: repeat(2, 1fr); } }

/* Frameworks */
.fw-filter { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.fw-filter button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font: inherit; font-size: .88rem; }
.fw-filter button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.fw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fw { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.fw h4 { margin: 0 0 4px; font-size: 1rem; }
.fw p { margin: 0 0 8px; font-size: .84rem; color: var(--muted); }
.fw.hide { display: none; }
@media (max-width: 900px) { .fw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .fw-grid { grid-template-columns: 1fr; } }

/* Three pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 24px; }
.pillar.gov { border-top-color: var(--navy); }
.pillar.know { border-top-color: var(--copper); }
.pillar h3 { font-size: 1.2rem; }
.pillar p { color: var(--muted); font-size: .95rem; margin: 0 0 8px; }
.meet-bar { text-align: center; margin: 22px auto 0; padding: 14px; border-radius: 12px; background: linear-gradient(90deg, #e6f4f1, #fbeadb); font-weight: 600; color: var(--navy); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* Proof */
.proof-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.chain { background: #0b1c33; color: #cbd5e1; border-radius: var(--radius); padding: 18px; font-family: ui-monospace, Consolas, monospace; font-size: .78rem; }
.chain .ln { display: grid; grid-template-columns: 22px 1fr 84px; gap: 8px; padding: 6px 8px; border-radius: 8px; align-items: center; margin-bottom: 4px; border: 1px solid transparent; }
.chain .ln input { background: transparent; border: 0; border-bottom: 1px dashed #4b6283; color: #fff; font: inherit; width: 100%; }
.chain .ln .h { color: #5fb8ac; text-align: right; }
.chain .ln.bad { background: rgba(220, 38, 38, .18); border-color: #ef4444; }
.chain .ln.bad .h { color: #fca5a5; }
.chain-status { margin-top: 10px; font-family: var(--font-body); font-size: .86rem; color: #fff; }
.chain-status.ok { color: #86efac; }
.chain-status.broken { color: #fca5a5; }
.chain button { margin-top: 8px; background: transparent; border: 1px solid #4b6283; color: #cbd5e1; border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.cmp { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: .9rem; }
.cmp th, .cmp td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp th { background: var(--cream-2); font-family: var(--font-head); }
.cmp td.y { color: #0b5f58; font-weight: 600; }
.cmp td.n { color: var(--muted); }
.tagline-hash { display: inline-block; font-weight: 700; color: var(--copper); background: var(--copper-soft); padding: 4px 12px; border-radius: 999px; font-size: .86rem; }
@media (max-width: 900px) { .proof-grid { grid-template-columns: 1fr; } }

/* Agents */
.agent-flow { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 26px; }
.agent-flow .step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: .92rem; }
.agent-flow .arrow { color: var(--copper); font-weight: 700; }
.two-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .two-cards { grid-template-columns: 1fr; } }

/* Build on top */
.code { background: #0b1c33; color: #e2e8f0; border-radius: var(--radius); padding: 16px 18px; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; overflow-x: auto; line-height: 1.55; white-space: pre; }
.code .c { color: #7c93b3; }
.tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 12px; cursor: pointer; font: inherit; font-size: .85rem; }
.tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.integ { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* Roadmap */
.road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.road .col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.road ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: .92rem; }
@media (max-width: 800px) { .road { grid-template-columns: 1fr; } }

/* Study slot (kept hidden until a real result exists) */
.study-slot[hidden] { display: none; }

/* Review mode */
.review-banner { position: fixed; left: 12px; bottom: 12px; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow-md); font-size: .82rem; max-width: 280px; display: none; }
body.review .review-banner { display: block; }
body.review .st, body.review .sample-note { outline: 2px solid #ef4444; outline-offset: 2px; }

/* Demo hint bar */
.hint-bar { background: var(--navy-deep); color: #e2e8f0; font-size: .85rem; text-align: center; padding: 7px 40px 7px 12px; position: relative; }
.hint-bar a { color: var(--sun); font-weight: 600; }
.hint-bar button { position: absolute; right: 10px; top: 4px; background: transparent; border: 0; color: #9fb0c8; font-size: 1.1rem; cursor: pointer; }

/* Aurio */
.aurio-fab { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--navy), var(--accent)); color: #fff; padding: 10px 16px 10px 10px; border-radius: 999px; box-shadow: var(--shadow-lg); font: inherit; font-weight: 600; }
.aurio-av { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 50% 70%, #ffe3b8, var(--sun) 55%, var(--copper)); box-shadow: 0 0 14px rgba(244, 162, 89, .8); display: inline-block; }
.aurio-box { position: fixed; right: 18px; bottom: 76px; z-index: 70; width: 340px; max-width: calc(100vw - 36px); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden; }
.aurio-box.open { display: flex; }
.aurio-head { background: linear-gradient(135deg, var(--navy), var(--accent)); color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.aurio-head small { display: block; opacity: .8; }
.aurio-head button { margin-left: auto; background: transparent; border: 0; color: #fff; font-size: 1.1rem; cursor: pointer; }
.aurio-msgs { padding: 12px; height: 270px; overflow-y: auto; font-size: .88rem; }
.aurio-msgs .m { padding: 8px 11px; border-radius: 12px; margin-bottom: 8px; max-width: 90%; }
.aurio-msgs .m.b { background: var(--cream-2); }
.aurio-msgs .m.u { background: #e6f4f1; margin-left: auto; }
.aurio-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; }
.aurio-chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: .78rem; cursor: pointer; }
.aurio-form { display: flex; border-top: 1px solid var(--line); }
.aurio-form input { flex: 1; border: 0; padding: 12px; font: inherit; outline: none; }
.aurio-form button { border: 0; background: var(--accent); color: #fff; padding: 0 16px; cursor: pointer; font-weight: 600; }
.aurio-note { font-size: .72rem; color: var(--muted); padding: 0 12px 8px; }

.cta-stack { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .tour-scene { transition: none; } .tour-scene.on .t-row.delay .tag { animation: none; } }

/* Mobile safety: nothing may push the page wider than the screen */
.grid > *, .hero-grid > *, .proof-grid > *, .two-cards > * { min-width: 0; }
.code { max-width: 100%; }
.cmp { display: block; overflow-x: auto; }
.chain { overflow-x: auto; }
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .chain .ln { grid-template-columns: 18px 1fr 64px; }
  .tour-stage { min-height: 300px; }
}
.integ .st { white-space: normal; }
