/* MyHub Pitch — Technical deep-dive page additions */

:root {
  --at-color: #2563eb;       /* Automated = blue */
  --at-soft: #dbeafe;
  --ft-color: #ea580c;       /* Free Text = orange */
  --ft-soft: #ffedd5;
  --ct-color: #7c3aed;       /* Cross-Message = purple */
  --ct-soft: #ede9fe;
  --code-bg: #1e293b;
  --code-text: #e2e8f0;
  --code-key: #93c5fd;
  --code-str: #fcd34d;
  --code-cmt: #94a3b8;
  --code-fn: #f472b6;
}

/* ============== Page hero (small) ============== */
.tech-hero {
  padding: 56px 0 24px;
}
.tech-hero h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }

/* ============== Message-type comparison cards ============== */
.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
@media (max-width: 900px) {
  .types-grid { grid-template-columns: 1fr; }
}
.type-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.type-card__top {
  height: 4px;
  border-radius: 2px;
  margin-bottom: 4px;
}
.type-card--at .type-card__top { background: var(--at-color); }
.type-card--ft .type-card__top { background: var(--ft-color); }
.type-card--ct .type-card__top { background: var(--ct-color); }

.type-card__badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.type-card--at .type-card__badge { background: var(--at-soft); color: var(--at-color); }
.type-card--ft .type-card__badge { background: var(--ft-soft); color: var(--ft-color); }
.type-card--ct .type-card__badge { background: var(--ct-soft); color: var(--ct-color); }

.type-card h3 {
  margin: 0;
  font-size: 22px;
}
.type-card p {
  margin: 0;
  font-size: 16px;
}
.type-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--text-subtle);
}
.type-card__meta b {
  color: var(--text);
  font-weight: 600;
  margin-right: 4px;
}

/* ============== Section heading "anchored" with side bar ============== */
.deep-section {
  padding-top: 32px;
}
.deep-section .container {
  max-width: 920px;
}
.deep-section__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.deep-section__bar {
  width: 4px;
  border-radius: 2px;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 56px;
}
.deep-section--at .deep-section__bar { background: var(--at-color); }
.deep-section--ft .deep-section__bar { background: var(--ft-color); }
.deep-section--ct .deep-section__bar { background: var(--ct-color); }
.deep-section__heading h2 { margin: 0 0 4px; font-size: clamp(28px, 4vw, 38px); }
.deep-section__heading p { margin: 0; }

/* ============== Flow diagram (horizontal pipeline) ============== */
.pipeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 24px 0 8px;
  flex-wrap: wrap;
}
@media (max-width: 800px) {
  .pipeline { flex-direction: column; }
}
.pipe-step {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pipe-step__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.pipe-step__title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.pipe-step__desc {
  font-size: 13px;
  color: var(--text-muted);
}
.pipe-step--accent {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.pipe-arrow {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  padding: 0 10px;
}
@media (max-width: 800px) {
  .pipe-arrow { transform: rotate(90deg); padding: 4px 0; }
}

/* ============== Code block ============== */
.code {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 18px 20px;
  border-radius: var(--radius-m);
  overflow-x: auto;
  font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 16px 0;
}
.code__title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--code-cmt);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.code .k { color: var(--code-key); }
.code .s { color: var(--code-str); }
.code .c { color: var(--code-cmt); font-style: italic; }
.code .fn { color: var(--code-fn); }

/* ============== Distribution diagram ============== */
.dist-diagram {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 32px 24px;
  margin: 32px 0;
}
.dist-diagram svg {
  width: 100%;
  height: auto;
}

/* ============== Glossary / reference ============== */
.gloss {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 700px) { .gloss { grid-template-columns: 1fr; } }
.gloss__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 18px 20px;
}
.gloss__item dt {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gloss__item dd {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}
.tag-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
}
.tag-pill--at { background: var(--at-soft); color: var(--at-color); }
.tag-pill--ft { background: var(--ft-soft); color: var(--ft-color); }
.tag-pill--ct { background: var(--ct-soft); color: var(--ct-color); }

/* ============== Status lifecycle visualization ============== */
.lifecycle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px 24px;
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 700px) { .lifecycle { grid-template-columns: 1fr; } }
.lifecycle h4 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
}
.lifecycle__chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.lifecycle__node {
  background: var(--bg-cream);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.lifecycle__node--start { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.lifecycle__node--ok { background: var(--green-soft); border-color: transparent; color: var(--green); }
.lifecycle__node--end { background: #fef3c7; border-color: transparent; color: #b45309; }
.lifecycle__sep { color: var(--text-subtle); font-weight: 700; }
.lifecycle small {
  display: block;
  font-size: 12px;
  color: var(--text-subtle);
  margin-top: 12px;
}

/* ============== Callout in the main pitch page (link to technical) ============== */
.tech-callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-m);
  padding: 24px 28px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.tech-callout__copy { flex: 1 1 280px; }
.tech-callout h3 { margin: 0 0 4px; font-size: 18px; font-family: var(--font-body); font-weight: 700; }
.tech-callout p { margin: 0; font-size: 15px; }
