/* ═══════════════════════════════════════════════════════════════════════════
   QUERTIS — Product Info Pages
   quertis-pages.css
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  --navy:       #050e1c;
  --navy-1:     #0a1a30;
  --navy-2:     #0e2240;
  --navy-3:     #132c50;
  --ice:        #5ec9f5;
  --ice-dim:    #3a8fb5;
  --ice-faint:  rgba(94,201,245,0.09);
  --ice-border: rgba(94,201,245,0.22);
  --amber:      #f5b830;
  --amber-dim:  rgba(245,184,48,0.14);
  --green:      #3de896;
  --green-dim:  rgba(61,232,150,0.12);
  --red:        #e8556a;
  --text:       #e8f4ff;
  --text-dim:   #6a96b8;
  --text-muted: #3a5570;
  --border:     rgba(94,201,245,0.12);
  --fs-xs:      0.68rem;
  --fs-sm:      0.75rem;
  --fs-base:    0.82rem;
  --fs-md:      0.9rem;
  --fs-lg:      1.05rem;
  --fs-xl:      1.3rem;
  --fs-2xl:     1.7rem;
}

/* ── RESET ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── BASE ────────────────────────────────────────────────────────────────── */
body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--navy);
  color: var(--text);
  min-height: 100vh;
  font-size: var(--fs-base);
  line-height: 1.7;
}

/* ── TOPBAR ──────────────────────────────────────────────────────────────── */
#topbar {
  display: flex;
  align-items: center;
  gap: 1.5em;
  padding: 0 1.6em;
  height: 44px;
  background: var(--navy-1);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 0.1em;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--ice);
  letter-spacing: 0.16em;
  white-space: nowrap;
  text-shadow: 0 0 20px rgba(91,196,240,0.3);
  text-decoration: none;
  cursor: pointer;
}

.topbar-logo-img {
  height: 1.5em;
  width: auto;
  object-fit: contain;
}

.topbar-logo span {
  font-size: 0.65em;
  align-self: flex-end;
  margin-left: 0.1rem;
  margin-bottom: 0.3em;
  letter-spacing: 0.08em;
  color: var(--text);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.2em;
  margin-left: auto;
}

.topbar-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 0.3em;
}

.nav-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.10em;
  padding: 0.3em 0.9em;
  cursor: pointer;
  border-radius: 2px;
  transition: color 0.15s, background 0.15s;
}
.nav-btn:hover  { color: var(--ice); background: var(--ice-faint); }
.nav-btn.active {
  color: var(--ice);
  background: var(--ice-faint);
  border: 1px solid var(--ice-border);
}

.topbar-back {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-xs);
  padding: 0.25em 0.75em;
  cursor: pointer;
  border-radius: 2px;
  letter-spacing: 0.08em;
  transition: all 0.15s;
}
.topbar-back:hover { color: var(--ice); border-color: var(--ice-dim); }

/* ── PAGE LAYOUT ─────────────────────────────────────────────────────────── */
.page        { display: none; max-width: 860px; margin: 0 auto; padding: 3em 2em 5em; }
.page.active { display: block; }

/* ── PAGE HEADER ─────────────────────────────────────────────────────────── */
.page-eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  color: var(--ice-dim);
  text-transform: uppercase;
  margin-bottom: 0.6em;
}

.page-title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--ice);
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 0.25em;
}

.page-subtitle {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 2.5em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid var(--border);
}

/* ── SECTION ─────────────────────────────────────────────────────────────── */
.section { margin-bottom: 2.8em; }

.section-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.20em;
  color: var(--ice-dim);
  text-transform: uppercase;
  margin-bottom: 1em;
  display: flex;
  align-items: center;
  gap: 0.8em;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── TYPOGRAPHY UTILITIES ────────────────────────────────────────────────── */
.prose {
  font-size: var(--fs-md);
  color: var(--text);
  line-height: 1.8;
}

.prose-sm {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  line-height: 1.75;
}

/* ── DEFINITION BLOCK ────────────────────────────────────────────────────── */
.definition-block {
  background: var(--navy-2);
  border: 1px solid var(--ice-border);
  border-left: 3px solid var(--ice);
  padding: 1.3em 1.5em;
  border-radius: 0 4px 4px 0;
  margin-bottom: 2em;
}

.definition-block p {
  font-size: var(--fs-md);
  color: var(--text);
  line-height: 1.8;
}

.definition-block p + p { margin-top: 0.8em; }

/* ── BULLET LISTS ────────────────────────────────────────────────────────── */
.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}

.bullet-list li {
  display: flex;
  gap: 0.9em;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--text);
  line-height: 1.65;
  padding: 0.7em 1em;
  background: var(--ice-faint);
  border: 1px solid var(--ice-border);
  border-radius: 3px;
}

.bullet-list.not-list li {
  background: rgba(240,90,90,0.05);
  border-color: rgba(240,90,90,0.15);
}

.bullet-icon {
  color: var(--ice);
  font-size: var(--fs-xs);
  margin-top: 0.3em;
  flex-shrink: 0;
}

.bullet-list.not-list .bullet-icon { color: var(--red); }

/* ── CLOSING BLOCK ───────────────────────────────────────────────────────── */
.closing-block {
  margin-top: 2.5em;
  padding: 1.5em 1.6em;
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.closing-block p {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  line-height: 1.8;
}

.closing-block strong { color: var(--ice); }

/* ── CALLOUT ─────────────────────────────────────────────────────────────── */
.callout {
  border-left: 3px solid var(--ice-dim);
  background: var(--ice-faint);
  padding: 1em 1.2em;
  border-radius: 0 3px 3px 0;
  margin: 1.5em 0;
}

.callout-warn {
  border-left-color: var(--amber);
  background: var(--amber-dim);
}

.callout p {
  font-size: var(--fs-sm);
  color: var(--text);
  line-height: 1.7;
}

.callout-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  color: var(--ice);
  margin-bottom: 0.4em;
  text-transform: uppercase;
}

.callout-warn .callout-label { color: var(--amber); }

/* ── ISSUES TABLE ────────────────────────────────────────────────────────── */
.issues-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-xs);
}

.issues-table th {
  text-align: left;
  padding: 0.6em 1em;
  color: var(--ice);
  letter-spacing: 0.14em;
  font-weight: 500;
  border-bottom: 1px solid var(--ice-border);
  background: var(--navy-2);
}

.issues-table td {
  padding: 0.75em 1em;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
  line-height: 1.55;
}

.issues-table tr:last-child td { border-bottom: none; }
.issues-table tr:hover td      { background: var(--ice-faint); }

/* ── STATUS BADGES ───────────────────────────────────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 0.15em 0.55em;
  border-radius: 2px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.badge-partial { background: rgba(240,169,68,0.15); color: var(--amber); border: 1px solid rgba(240,169,68,0.3); }
.badge-gap     { background: rgba(240,90,90,0.10);  color: var(--red);   border: 1px solid rgba(240,90,90,0.25); }
.badge-stable  { background: var(--green-dim);      color: var(--green); border: 1px solid rgba(61,232,138,0.25); }
.badge-working { background: var(--ice-faint);      color: var(--ice);   border: 1px solid var(--ice-border); }

.workaround { color: var(--text-dim); font-style: italic; }
.eta        { color: var(--ice-dim);  white-space: nowrap; }

/* ── DATA SOURCES ────────────────────────────────────────────────────────── */
.data-sources {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  margin-top: 1em;
}

.data-source-chip {
  background: var(--navy-2);
  border: 1px solid var(--border);
  padding: 0.4em 0.9em;
  border-radius: 2px;
  font-size: var(--fs-xs);
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.data-source-chip span { color: var(--ice); }

/* ── ROADMAP GRID ────────────────────────────────────────────────────────── */
.roadmap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  margin-bottom: 2em;
}

@media (max-width: 640px) {
  .roadmap-grid { grid-template-columns: 1fr; }
}

/* ── PHASE CARDS ─────────────────────────────────────────────────────────── */
.phase-card {
  background: var(--navy-1);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.2em 1.3em;
  position: relative;
  overflow: hidden;
}

.phase-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}

.phase-live::before     { background: var(--green); }
.phase-progress::before { background: var(--amber); }
.phase-planned::before  { background: var(--ice-dim); }
.phase-explore::before  { background: var(--text-muted); }

.phase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.9em;
}

.phase-name {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}

.phase-timeframe {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 0.15em;
}

.phase-badge {
  font-size: 0.60rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.2em 0.6em;
  border-radius: 2px;
  flex-shrink: 0;
}

.badge-live     { background: var(--green-dim); color: var(--green);    border: 1px solid rgba(61,232,138,0.3); }
.badge-progress { background: var(--amber-dim); color: var(--amber);    border: 1px solid rgba(240,169,68,0.3); }
.badge-planned  { background: var(--ice-faint); color: var(--ice-dim);  border: 1px solid var(--ice-border); }
.badge-explore  { background: rgba(90,120,150,0.1); color: var(--text-muted); border: 1px solid rgba(90,120,150,0.2); }

.phase-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45em;
}

.phase-features li {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  line-height: 1.5;
}

.phase-live .phase-features li     { color: var(--text); }
.phase-progress .phase-features li { color: var(--text); }

.feat-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-top: 0.45em;
  flex-shrink: 0;
}

.phase-live .feat-dot     { background: var(--green); }
.phase-progress .feat-dot { background: var(--amber); }
.phase-planned .feat-dot  { background: var(--ice-dim); }
.phase-explore .feat-dot  { background: var(--text-muted); }

/* ── WON'T BUILD ─────────────────────────────────────────────────────────── */
.wont-list {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}

.wont-item {
  display: flex;
  gap: 1em;
  align-items: flex-start;
  padding: 0.75em 1em;
  background: rgba(90,120,150,0.05);
  border: 1px solid rgba(90,120,150,0.12);
  border-radius: 3px;
}

.wont-x {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  flex-shrink: 0;
  margin-top: 0.1em;
}

.wont-item p        { font-size: var(--fs-sm); color: var(--text-dim); line-height: 1.6; }
.wont-item strong   { color: var(--text); }

/* ── CTA BAR ─────────────────────────────────────────────────────────────── */
.cta-bar {
  display: flex;
  align-items: center;
  gap: 1.2em;
  padding: 1.2em 1.4em;
  background: var(--navy-2);
  border: 1px solid var(--ice-border);
  border-radius: 4px;
  margin-top: 2em;
}

.cta-bar p {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  flex: 1;
  line-height: 1.5;
}

.cta-btn {
  background: var(--ice);
  color: var(--navy);
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0.55em 1.2em;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.cta-btn:hover { opacity: 0.85; }

/* ── DIVIDER ─────────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 2em 0;
}
