/* DaisyChain sales playbook — Part 1 brand (docs/design_guidelines.md, BRAND_MANUAL.md) */

:root {
  --dc-gold: #e8b533;
  --dc-rose: #f56f5f;
  --dc-violet: #7a28cb;
  --dc-white: #fcfbf1;
  --dc-black: #090302;

  --accent: var(--dc-gold);
  --accent-2: var(--dc-violet);
  --negative: var(--dc-rose);
  --text: var(--dc-black);
  --muted: #6b7280;
  --border: #e2e8f0;
  --bg: #fcfbf1;
  --light-bg: #f8f8f4;
  --card: #ffffff;

  --surface-gold: rgba(232, 181, 51, 0.14);
  --surface-rose: rgba(245, 111, 95, 0.12);
  --surface-violet: rgba(122, 40, 203, 0.1);
  --surface-muted: var(--light-bg);

  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--dc-white);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* ——— Top bar ——— */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dc-black);
  color: var(--dc-white);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 28px;
  width: auto;
  display: block;
}

/* Black lockup asset: invert for contrast on Panel Black bar */
.top-bar .brand-logo img {
  filter: brightness(0) invert(1);
}

.top-bar nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.top-bar nav a {
  color: rgba(252, 251, 241, 0.78);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.top-bar nav a:hover,
.top-bar nav a:focus-visible {
  color: var(--dc-white);
  background: rgba(232, 181, 51, 0.15);
  outline: none;
}

.top-bar nav a.active {
  color: var(--dc-black);
  background: var(--dc-gold);
}

/* ——— Layout ——— */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--dc-violet);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ——— Home hero ——— */
.hero {
  background: linear-gradient(135deg, var(--dc-violet) 0%, #5a1f9a 100%);
  color: var(--dc-white);
  border-radius: 16px;
  padding: 48px 40px;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero .subtitle {
  font-size: 15px;
  opacity: 0.92;
  max-width: 720px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero .meta {
  margin-top: 18px;
  font-size: 12px;
  opacity: 0.72;
}

/* ——— TOC ——— */
.toc-intro {
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--muted);
  max-width: 720px;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.toc-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.toc-card:hover {
  box-shadow: 0 6px 20px rgba(9, 3, 2, 0.08);
  border-color: var(--dc-gold);
}

.toc-card .toc-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dc-violet);
  margin-bottom: 8px;
}

.toc-card .toc-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.toc-card .toc-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ——— Section pages ——— */
.page-intro {
  margin-bottom: 28px;
}

.page-intro h1 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--dc-gold);
}

section {
  margin-bottom: 40px;
}

section > h2 {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--dc-gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

section > h2 .badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-gold);
  color: var(--dc-black);
  border: 1px solid rgba(232, 181, 51, 0.45);
}

h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0 10px;
  color: var(--text);
}

h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 14px 0 6px;
  color: var(--text);
}

p {
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text);
}

.muted {
  color: var(--muted);
  font-weight: 400;
}

/* ——— Cards ——— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: box-shadow 0.15s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(9, 3, 2, 0.06);
}

.card .card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.card .card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.card .card-body {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}

.card .card-body p {
  font-size: 14px;
}

.label-gold {
  color: var(--dc-gold);
}

.label-violet {
  color: var(--dc-violet);
}

.label-rose {
  color: var(--dc-rose);
}

/* ——— Chips ——— */
.chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-right: 4px;
  margin-bottom: 4px;
}

.chip-have {
  background: var(--surface-gold);
  color: var(--dc-black);
  border: 1px solid rgba(232, 181, 51, 0.4);
}

.chip-improve {
  background: var(--surface-rose);
  color: var(--dc-black);
  border: 1px solid rgba(245, 111, 95, 0.35);
}

.chip-missing {
  background: var(--light-bg);
  color: var(--dc-black);
  border: 1px solid var(--border);
}

.chip-violet {
  background: var(--surface-violet);
  color: var(--dc-violet);
  border: 1px solid rgba(122, 40, 203, 0.25);
}

/* ——— Tables ——— */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

th {
  background: var(--light-bg);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

td {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
}

tr:hover td {
  background: rgba(248, 248, 244, 0.6);
}

.cat-note {
  font-size: 11px;
  display: block;
  margin-top: 4px;
}

.cat-note--ic {
  color: var(--dc-gold);
}

.cat-note--sc {
  color: var(--dc-rose);
}

.cat-note--sdp {
  color: var(--dc-violet);
}

.cat-note--pfc {
  color: var(--muted);
}

/* ——— Decision tree ——— */
.tree-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.tree-step {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.tree-node {
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.tree-node-violet {
  background: var(--dc-violet);
}

.tree-node-gold {
  background: var(--dc-gold);
  color: var(--dc-black);
}

.tree-node-rose {
  background: var(--dc-rose);
  color: var(--dc-black);
}

.tree-node-black {
  background: var(--dc-black);
  color: var(--dc-white);
}

.tree-content {
  flex: 1;
}

.tree-content h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.tree-content p {
  margin: 0;
  font-size: 14px;
}

.tree-branch {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.tree-outcome {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid var(--border);
}

.tree-outcome--violet {
  background: var(--surface-violet);
  color: var(--dc-violet);
  border-color: rgba(122, 40, 203, 0.2);
}

.tree-outcome--gold {
  background: var(--surface-gold);
  color: var(--dc-black);
}

.tree-outcome--rose {
  background: var(--surface-rose);
  color: var(--dc-black);
}

.tree-outcome--neutral {
  background: var(--light-bg);
  color: var(--text);
}

.tree-outcome--hold {
  background: var(--surface-rose);
  color: var(--dc-black);
  border-color: rgba(245, 111, 95, 0.35);
}

/* ——— Channels ——— */
.channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.channel-col {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.channel-header {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 14px;
}

.ch-gold .channel-header {
  background: var(--dc-black);
  color: var(--dc-gold);
}

.ch-violet .channel-header {
  background: var(--dc-violet);
  color: #fff;
}

.ch-rose .channel-header {
  background: var(--dc-rose);
  color: var(--dc-black);
}

.channel-body {
  padding: 16px 20px;
}

.channel-body dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 12px;
}

.channel-body dt:first-child {
  margin-top: 0;
}

.channel-body dd {
  font-size: 14px;
  color: var(--text);
  margin: 4px 0 0;
}

/* ——— Gap list ——— */
.gap-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}

.gap-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.gap-item:last-child {
  border-bottom: none;
}

.gap-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.gap-icon-improve {
  background: var(--surface-rose);
  color: var(--dc-black);
}

.gap-icon-missing {
  background: var(--surface-violet);
  color: var(--dc-violet);
}

.gap-text h4 {
  margin: 0 0 2px;
  font-size: 14px;
}

.gap-text p {
  margin: 0;
  font-size: 14px;
}

/* ——— Details ——— */
details {
  margin-bottom: 8px;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

details summary::before {
  content: "\25B8";
  font-size: 12px;
  transition: transform 0.15s;
}

details[open] summary::before {
  transform: rotate(90deg);
}

details summary::-webkit-details-marker {
  display: none;
}

details .detail-body {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 10px 10px;
}

/* ——— Roadmap phases ——— */
.phase-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
}

.phase-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.phase-num--gold {
  background: var(--dc-gold);
  color: var(--dc-black);
}

.phase-num--violet {
  background: var(--dc-violet);
  color: #fff;
}

.phase-num--rose {
  background: var(--dc-rose);
  color: var(--dc-black);
}

.phase-num--black {
  background: var(--dc-black);
  color: var(--dc-white);
}

.phase-info {
  flex: 1;
}

.phase-info .phase-title {
  font-weight: 700;
  font-size: 14px;
}

.phase-info .phase-desc {
  font-size: 12px;
  color: var(--muted);
}

/* ——— Callouts ——— */
.callout {
  padding: 16px 20px;
  border-radius: 10px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.55;
}

.callout-gold {
  background: var(--surface-gold);
  border-left: 4px solid var(--dc-gold);
}

.callout-rose {
  background: var(--surface-rose);
  border-left: 4px solid var(--dc-rose);
}

.callout-violet {
  background: var(--surface-violet);
  border-left: 4px solid var(--dc-violet);
}

.callout strong {
  font-weight: 700;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 700px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

ul.clean {
  list-style: none;
  padding: 0;
}

ul.clean li {
  padding: 4px 0 4px 18px;
  position: relative;
  font-size: 14px;
  color: var(--text);
}

ul.clean li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--dc-gold);
  font-weight: 700;
}

.scroll-anchor {
  scroll-margin-top: 64px;
}

.mt-lg {
  margin-top: 24px;
}

/* ——— Print ——— */
@page {
  size: letter;
  margin: 0.85in 0.85in 0.75in;
}

@media print {
  .top-bar {
    position: static;
    box-shadow: none;
  }

  body {
    background: #fff;
    font-size: 10pt;
  }

  .hero {
    break-inside: avoid;
  }

  section {
    page-break-inside: avoid;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }

  table {
    page-break-inside: avoid;
  }
}
