/* Coherency — black/teal, matches the poster set */
:root {
  --paper: #000;
  --paper-deep: #111;
  --ink: #fff;
  --ink-soft: #b8b8b8;
  --accent: #00d4c8;
  --line: #2a2a2a;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, .serif { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
.kicker {
  font-size: 12px; letter-spacing: 0.32em; color: var(--ink-soft);
  font-weight: 600; margin: 0 0 12px;
}
.lede { font-size: 17px; color: var(--ink-soft); max-width: 34em; }
.fine { font-size: 13px; color: var(--ink-soft); }
.center { text-align: center; }
#app > .fine.center { max-width: 720px; margin: 0 auto; padding: 0 20px 18px; }
.err { color: #a33; font-size: 14px; }
.spade { color: var(--ink); }

/* ---------- coherency nav ---------- */
.coh-nav { background: #000; border-bottom: 1px solid #1a1a1a; }
.coh-nav-inner {
  max-width: 720px; margin: 0 auto; padding: clamp(28px, 7vw, 52px) 20px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.coh-brand {
  font-size: 15px; letter-spacing: 0.32em; font-weight: 600; color: #fff;
  font-family: var(--sans); white-space: nowrap;
}
.coh-spear { height: 26px; width: auto; flex: none; }
.coh-resume {
  background: transparent; border: 1px solid #fff; border-radius: 2px; cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; white-space: nowrap;
  padding: 12px 18px; color: #fff; font-family: var(--sans); flex: none;
}
.coh-resume {
  background: transparent; border: 1px solid #fff; border-radius: 2px; cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  padding: 12px 22px; color: #fff; font-family: var(--sans);
}
/* ---------- coherency hero ---------- */
.coh-hero { position: relative; background: #000; }
.coh-hero img { display: block; width: 100%; height: auto; }
.hero-buy { position: absolute; left: 6%; bottom: 12%; width: 62%; height: 14%; }
/* ---------- free daily check ---------- */
.coh-freecheck { background: #f4f1ea; padding: 5.2vw 5.7vw 2.8vw; text-align: center; }
.try-label {
  margin: 0 0 4.3vw; font: italic 700 28px/1 var(--sans); color: #00d4c8;
  text-align: left; letter-spacing: 0.5px;
}
.fc-q, .fc-a {
  margin: 0; font-size: clamp(13px, 3.8vw, 20px); color: #000;
  font-family: var(--sans); text-align: center; white-space: nowrap;
  font-weight: 700; letter-spacing: 0.3px;
}
.fc-a { margin: 4.1vw 0 5.7vw; font-style: italic; }
.fc-row { display: flex; gap: 2.9vw; max-width: 660px; margin: 0 auto; }
.fc-row input {
  flex: 1; min-width: 0; background: #000; border: 0; border-radius: 6px;
  height: 14vw; max-height: 105px; min-height: 64px; padding: 0 16px;
  color: #00d4c8; font: 700 15px/1 var(--sans);
  letter-spacing: 1px; text-align: center;
}
.fc-row input::placeholder { color: #00d4c8; opacity: 1; }
.fc-row input:disabled { opacity: 0.5; }
.fc-row button {
  flex: none; width: 26.8%; min-width: 96px; background: #00d4c8; border: 0; border-radius: 6px;
  color: #000; font: 700 16px/1 var(--sans); letter-spacing: 1px; cursor: pointer;
}
.fc-row button:disabled { opacity: 0.5; cursor: default; }
/* ---------- elemental rail ---------- */
.coh-elements {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #000; padding: 24px 16px; gap: 8px; align-items: center;
}
.coh-elements img { display: block; width: 100%; height: auto; object-fit: contain; }
.check-result { margin: 20px auto 0; max-width: 480px; color: #000; font-size: 15px; line-height: 1.6; text-align: center; }

/* ---------- poster stack (responsive handoff) ---------- */
html { scroll-snap-type: y proximity; background: #000; }
.coherency-poster {
  width: 100%; margin: 0; padding: 0; display: block;
  background: #000; overflow: hidden; position: relative;
}
.coherency-poster picture { display: block; width: 100%; margin: 0; padding: 0; }
.coherency-poster img {
  display: block; width: 100%; height: auto; margin: 0; padding: 0; border: 0;
  background: #000;
}
.poster-cta { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%);
  width: 70%; height: 12%; }
.poster-cta-demo { position: absolute; left: 50%; bottom: 22%; transform: translateX(-50%);
  width: 70%; height: 12%; }

/* ---------- bands (legacy) ---------- */
.band { position: relative; }
.band img { display: block; width: 100%; height: auto; }
.band-hero { max-width: 750px; margin: 0 auto; }
.band-frame { max-width: 750px; margin: 0 auto; }
.band-link {
  position: absolute; display: block; border: 0; background: transparent;
  cursor: pointer; padding: 0;
}
.band-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--ink); border-radius: 2px; cursor: pointer;
  padding: 14px 28px; background: transparent; color: var(--ink);
}
.btn-primary { background: var(--accent); color: #000; border-color: var(--accent); }
.btn-primary:hover { background: #00b8ae; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-ghost { border-color: var(--line); color: var(--ink-soft); }
.head-btn {
  font-size: 11px; padding: 8px 12px; letter-spacing: 0.08em;
  border-color: var(--line); color: var(--ink-soft); text-transform: none;
}
.btn[disabled] { opacity: 0.45; cursor: default; }

/* ---------- nav ---------- */
.topnav { border-bottom: 1px solid var(--line); background: var(--paper); }
.topnav-inner {
  max-width: 720px; margin: 0 auto; padding: 14px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.topnav .brand { font-size: 13px; letter-spacing: 0.3em; font-weight: 600; color: var(--ink); }
.topnav-resume {
  background: none; border: 0; cursor: pointer; font-size: 14px;
  color: var(--ink-soft); text-decoration: underline; font-family: var(--sans);
}
.resume-panel { border-top: 1px solid var(--line); padding: 16px 20px 20px; }
.resume-panel-inner { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.resume-panel input {
  flex: 1; padding: 12px 14px; font-size: 15px; border: 1px solid var(--line);
  border-radius: 2px; background: #111; color: #fff; font-family: var(--sans);
}

/* ---------- details ---------- */
.band-details { position: relative; max-width: 750px; margin: 0 auto; }
.band-details img { display: block; width: 100%; height: auto; }
/* Live details section — black/teal, matches the poster set */
.band-details-live { background: #000; color: #fff; text-align: center;
  padding: 56px 24px 48px; max-width: 100%; }
.details-eyebrow { margin: 0 0 18px; font-size: 11px; letter-spacing: 2px;
  color: #00d4c8; font-weight: 700; font-family: var(--sans); }
.details-title { margin: 0 0 34px; font: 700 clamp(34px, 9vw, 54px)/1.05 var(--sans);
  letter-spacing: -0.5px; color: #fff; }
.details-rows { max-width: 560px; margin: 0 auto 36px; text-align: left; }
.drow { display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: transparent; border: 0; border-top: 1px solid #2a2a2a;
  padding: 18px 4px; color: #fff; font: 700 15px/1.2 var(--sans);
  letter-spacing: 1.5px; cursor: pointer; }
.drow:last-child { border-bottom: 1px solid #2a2a2a; }
.drow .dplus { color: #00d4c8; font-size: 26px; font-weight: 400; line-height: 1; }
.drow[aria-expanded="true"] .dplus { transform: rotate(45deg); }
.details-buy { background: #00d4c8; color: #000; border: 0; border-radius: 4px;
  padding: 16px 38px; font: 700 15px/1 var(--sans); letter-spacing: 1.5px; cursor: pointer; }
.dpanel-wrap { max-width: 750px; margin: 0 auto; background: #000; }
.dpanel { padding: 6px 28px 30px; border-top: 1px solid #2a2a2a; text-align: left; }
.dpanel p { color: #b8b8b8; }
.dpanel a { color: #00d4c8; }
.dtoggle {
  position: absolute; transform: translate(-50%, -50%);
  background: none; border: none; padding: 14px; cursor: pointer;
  color: var(--ink); font-size: 30px; line-height: 1; font-weight: 400;
  font-family: var(--serif);
}
.dtoggle[aria-expanded="true"] { transform: translate(-50%, -50%) rotate(45deg); }
.dpanel-wrap { max-width: 750px; margin: 0 auto; background: var(--paper); }
.dpanel { padding: 6px 28px 30px; border-top: 1px solid var(--line); }
.dpanel p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 12px; font-family: var(--sans); }
.dpanel p:last-child { margin-bottom: 0; }
.dpanel a { color: var(--ink); }

.site-footer {
  border-top: 1px solid var(--line); padding: 28px 24px 40px;
  text-align: center; font-style: italic; color: var(--ink-soft);
  font-family: var(--serif); font-size: 15px; max-width: 750px; margin: 0 auto;
}
.site-footer p { margin: 0; }

/* ---------- codegate ---------- */
.pw-inner { max-width: 560px; margin: 0 auto; padding: 72px 24px; text-align: center; }
.pw-inner h1 { font-size: 52px; margin: 0 0 16px; }
.code-box {
  border: 1px solid var(--line); background: #111; border-radius: 4px;
  padding: 22px; margin: 24px 0;
}
.code-box code { font-size: 26px; letter-spacing: 0.06em; color: var(--ink); }
.token-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }

/* ---------- chat app ---------- */
#app { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
#app[hidden] { display: none; }
#paywall[hidden], #codegate[hidden] { display: none; }
.app-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper);
  position: sticky; top: 0; z-index: 5; flex-wrap: wrap;
}
.app-brand { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: 0.04em; }
.ai-tag {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.2em; vertical-align: middle;
  border: 1px solid var(--line); border-radius: 10px; padding: 2px 8px; color: var(--ink-soft);
}
.head-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.expiry { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.06em; }
#messages { flex: 1; max-width: 720px; width: 100%; margin: 0 auto; padding: 24px 20px; }
.msg { margin: 0 0 18px; max-width: 42em; }
.msg.user { margin-left: auto; text-align: right; }
.msg .msg, .msg p { margin: 0 0 10px; }
.msg.user p {
  display: inline-block; background: var(--ink); color: #fff; border-radius: 14px 14px 4px 14px;
  padding: 10px 16px; text-align: left; font-size: 15px;
}
.msg.assistant { font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--ink); }
.msg.assistant h1, .msg.assistant h2, .msg.assistant h3 { font-size: 22px; margin: 18px 0 8px; }
.msg.assistant ul, .msg.assistant ol { padding-left: 22px; }
.msg.assistant li { margin-bottom: 6px; }
.typing { opacity: 0.55; font-style: italic; }
#composer {
  display: flex; gap: 10px; max-width: 720px; width: 100%; margin: 0 auto;
  padding: 12px 20px 6px;
}
#composer textarea {
  flex: 1; resize: none; font-size: 16px; font-family: var(--sans);
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: #111;
  color: #fff; min-height: 52px; line-height: 1.4; overflow-y: hidden;
}
#composer .btn { background: var(--ink); color: #fff; border-color: var(--ink); align-self: flex-end; }
.demo-upgrade {
  border: 1px solid var(--line); background: #111; border-radius: 8px;
  padding: 24px; margin: 18px 0; text-align: center;
}
.demo-upgrade p { margin: 0 0 12px; }
.brief-block {
  border-left: 3px solid var(--ink); background: var(--paper-deep);
  padding: 14px 18px; margin: 14px 0; border-radius: 0 6px 6px 0;
}
@media (max-width: 560px) {
  .pw-inner h1 { font-size: 40px; }
  .msg.assistant { font-size: 18px; }
}
