  /* ───── PRICING TIERS ───── */
  .pricing-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    perspective: 1200px;
  }

  .tier-card {
    border: 1px solid var(--divider);
    background: var(--slate-mid);
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s;
  }

  .tier-card:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 24px rgba(184,150,62,0.12);
  }

  .tier-card.featured {
    border-color: var(--gold);
    box-shadow: 0 4px 32px rgba(184,150,62,0.18);
  }

  .tier-card.featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--copper), var(--gold));
  }

  .tier-badge {
    font-family: 'Goldman', 'IBM Plex Serif', serif;
    font-size: 9px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--deep);
    background: var(--gold);
    display: inline-block;
    padding: 3px 10px;
    margin-bottom: 20px;
  }

  .tier-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--ink);
    margin-bottom: 8px;
  }

  .tier-card.featured .tier-name { color: white; }

  .tier-price {
    font-family: 'Oswald', sans-serif;
    font-size: 2.4rem;
    font-weight: 300;
    color: var(--ink);
    margin-bottom: 4px;
    line-height: 1.1;
  }

  .tier-card.featured .tier-price { color: var(--gold-light); }

  .tier-price span {
    font-size: 0.85rem;
    color: var(--muted);
    margin-left: 4px;
  }

  .tier-card.featured .tier-price span { color: #6a7a8a; }

  .tier-price-note {
    font-family: 'Goldman', 'IBM Plex Serif', serif;
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 24px;
  }

  .tier-card.featured .tier-price-note { color: #6a7a8a; }

  .tier-setup {
    font-family: 'Goldman', 'IBM Plex Serif', serif;
    font-size: 10px;
    letter-spacing: 0.05em;
    color: var(--gold);
    margin-bottom: 20px;
    padding: 4px 0;
    border-bottom: 1px solid var(--divider);
    opacity: 0.8;
  }

  .tier-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--divider);
    padding-top: 24px;
  }

  .tier-card.featured .tier-features { border-top-color: #3a4455; }

  .tier-features li {
    font-family: 'IBM Plex Serif', serif;
    font-size: 0.85rem;
    color: var(--muted);
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
  }

  .tier-card.featured .tier-features li { color: #8a9aaa; }

  .tier-features li::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 8px; height: 1px;
    background: var(--gold);
  }

  .pricing-total {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 28px 20px;
    background: var(--slate);
    margin-top: 24px;
    color: white;
    text-align: center;
  }

  .pricing-total .label {
    font-family: 'Goldman', 'IBM Plex Serif', serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #6a7a8a;
  }

  .pricing-total .label strong {
    color: var(--gold-light);
    font-weight: 400;
  }

  /* ───── FLIP CARD MECHANISM ───── */
.tier-card {
  transform-style: preserve-3d;
}

.tier-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.tier-front {
  position: relative;
  padding: 40px 32px;
}

.tier-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  overflow-y: auto;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.tier-card.flipped .tier-front { pointer-events: none; }
.tier-card.flipped .tier-back  { pointer-events: auto; }
.tier-card:not(.flipped) .tier-back { pointer-events: none; }

/* Flip hint */
.tier-flip-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  font-family: 'Goldman', sans-serif;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.5;
  transition: opacity 0.3s, color 0.3s;
  cursor: pointer;
}

.tier-card:hover .tier-flip-hint {
  opacity: 1;
  color: var(--gold);
}

.flip-icon {
  font-size: 14px;
  animation: flip-hint-pulse 2.5s ease-in-out infinite;
}

@keyframes flip-hint-pulse {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-3px); opacity: 1; }
}

/* ── Back face layout ── */
.tier-back-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.tier-back-header .tier-name {
  margin-bottom: 2px;
}

.tier-back-subtitle {
  font-family: 'IBM Plex Serif', serif;
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0.8;
}

.tier-flip-back {
  background: none;
  border: 1px solid var(--divider);
  color: var(--muted);
  width: 28px;
  height: 28px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, color 0.3s;
  flex-shrink: 0;
  line-height: 1;
}

.tier-flip-back:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Architecture mini-diagram */
.tier-arch-diagram {
  padding: 6px 0;
}

.arch-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.arch-flow-node {
  font-family: 'Goldman', sans-serif;
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid rgba(184,150,62,0.25);
  padding: 4px 6px;
  text-align: center;
  background: rgba(184,150,62,0.04);
  width: 100%;
}

/* Single vertical connector */
.arch-flow-arrow {
  font-size: 0;
  line-height: 0;
  width: 1px;
  height: 10px;
  background: rgba(184,150,62,0.4);
  flex-shrink: 0;
}

/* Row of nodes */
.arch-flow-row {
  display: flex;
  gap: 3px;
  width: 100%;
}

.arch-flow-row .arch-flow-node {
  flex: 1;
}

/* Branch: single stem down + horizontal bar + drops to each child */
.arch-flow-branch {
  font-size: 0;
  line-height: 0;
  width: var(--branch-width, 80%);
  height: 10px;
  flex-shrink: 0;
  position: relative;
  align-self: center;
}

/* Vertical stem from parent */
.arch-flow-branch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 50%;
  background: rgba(184,150,62,0.4);
}

/* Horizontal bar */
.arch-flow-branch::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(184,150,62,0.35);
}

/* Merge: horizontal bar + drops from each child + stem down to next */
.arch-flow-merge {
  font-size: 0;
  line-height: 0;
  width: var(--branch-width, 80%);
  height: 10px;
  flex-shrink: 0;
  position: relative;
  align-self: center;
}

.arch-flow-merge::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(184,150,62,0.35);
}

.arch-flow-merge::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 50%;
  background: rgba(184,150,62,0.4);
}

/* Component rows */
.tier-components {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tier-component {
  display: grid;
  grid-template-columns: 20px 20px 1fr auto;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid var(--divider);
  background: rgba(255,255,255,0.02);
  transition: opacity 0.3s, background 0.3s;
  position: relative;
}

.tier-component:hover {
  background: rgba(184,150,62,0.04);
}

.tier-component.deselected {
  opacity: 0.35;
}

.tier-component input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--gold);
  cursor: pointer;
}

/* Component icon */
.comp-icon {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
}

.comp-name {
  font-family: 'IBM Plex Serif', serif;
  font-size: 0.75rem;
  color: var(--ink);
  line-height: 1.3;
}

.comp-type {
  display: inline-block;
  font-family: 'Goldman', sans-serif;
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1px 5px;
  margin-left: 4px;
  vertical-align: middle;
  border-radius: 2px;
}

.comp-type-cloud {
  color: #6ec6ff;
  border: 1px solid rgba(110,198,255,0.3);
  background: rgba(110,198,255,0.08);
}

.comp-type-self {
  color: #a8e6a3;
  border: 1px solid rgba(168,230,163,0.3);
  background: rgba(168,230,163,0.08);
}

.comp-price {
  font-family: 'Goldman', sans-serif;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.comp-traits {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.trait {
  font-size: 10px;
  cursor: default;
}

/* Tooltip on hover */
.tier-component[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--deep, #0d1117);
  color: var(--ink, #e0e0e0);
  border: 1px solid var(--gold);
  padding: 6px 10px;
  font-family: 'IBM Plex Serif', serif;
  font-size: 0.68rem;
  line-height: 1.4;
  white-space: normal;
  width: max-content;
  max-width: 240px;
  z-index: 20;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

/* Alternatives dropdown */
.comp-alts {
  grid-column: 2 / -1;
  padding-top: 4px;
}

.comp-select {
  width: 100%;
  font-family: 'Goldman', sans-serif;
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--ink);
  background: rgba(184,150,62,0.04);
  border: 1px solid rgba(184,150,62,0.15);
  padding: 5px 24px 5px 8px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23b8963e' fill='none' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px;
  border-radius: 2px;
}

.comp-select:hover {
  border-color: var(--gold);
  background-color: rgba(184,150,62,0.08);
  box-shadow: 0 0 8px rgba(184,150,62,0.1);
}

.comp-select:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 2px rgba(184,150,62,0.15);
}

.comp-select option {
  background: var(--deep, #0d1117);
  color: var(--ink);
  padding: 6px;
}

.trait-pos { filter: saturate(1.2); }
.trait-neg { filter: saturate(0.6) brightness(0.8); }
.trait-low { opacity: 0.7; }
.trait-med { opacity: 0.85; }
.trait-high { opacity: 1; }
.trait-vhigh { opacity: 1; filter: brightness(1.2); }

/* Total bar */
.tier-back-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  margin-top: auto;
}

.total-label {
  font-family: 'Goldman', sans-serif;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.total-value {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  color: var(--gold);
  font-weight: 400;
}

/* "You pay only" callout */
.tier-you-pay {
  text-align: center;
  font-family: 'IBM Plex Serif', serif;
  font-size: 0.72rem;
  color: var(--gold);
  padding: 6px 10px;
  background: rgba(184,150,62,0.06);
  border: 1px solid rgba(184,150,62,0.15);
}

.tier-you-pay strong {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Provider tags */
.tier-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.provider-tag {
  font-family: 'Goldman', sans-serif;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--divider);
  padding: 3px 8px;
  opacity: 0.7;
}

/* ───── COST CONTROL BLOCK ───── */
.pricing-control {
  margin-bottom: 48px;
}

.pricing-control h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  text-align: center;
}

.pricing-control-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  margin-bottom: 16px;
}

.pricing-control-card {
  background: var(--slate-mid);
  padding: 24px;
  text-align: center;
  transition: background 0.3s;
}

.pricing-control-card:hover {
  background: rgba(184,150,62,0.08);
}

.pricing-control-card h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.pricing-control-card p {
  font-family: 'IBM Plex Serif', serif;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.pricing-transparency-note {
  font-family: 'Goldman', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  opacity: 0.7;
}

/* ───── WHY US (Premium Redesign) ───── */
  .why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .why-grid-5 {
    grid-template-columns: repeat(4, 1fr);
  }

  .why-item-wide {
    grid-column: 1 / -1;
    margin-top: 4px;
  }

  .why-item {
    padding: 32px 32px 28px;
    border: 1px solid rgba(184,150,62,0.08);
    background: linear-gradient(165deg, rgba(22,24,30,0.9) 0%, rgba(10,10,12,0.95) 100%);
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
    counter-increment: why-counter;
  }

  .why-grid {
    counter-reset: why-counter;
  }

  /* Numbered watermark */
  .why-item::after {
    content: '0' counter(why-counter);
    position: absolute;
    top: 16px;
    right: 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 42px;
    font-weight: 200;
    color: rgba(184,150,62,0.06);
    line-height: 1;
    pointer-events: none;
  }

  /* Gold bottom accent line */
  .why-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), rgba(184,150,62,0.2));
    transition: width 0.5s ease;
  }

  .why-item:hover::before {
    width: 100%;
  }

  .why-item:hover {
    border-color: rgba(184,150,62,0.25);
    box-shadow:
      0 4px 30px rgba(184,150,62,0.06),
      inset 0 1px 0 rgba(184,150,62,0.08);
    transform: translateY(-2px);
  }

  .why-item .why-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 18px;
    padding: 6px;
    border: 1px solid rgba(184,150,62,0.15);
    border-radius: 8px;
    background: rgba(184,150,62,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, background 0.3s;
  }

  .why-item:hover .why-icon {
    border-color: rgba(184,150,62,0.35);
    background: rgba(184,150,62,0.08);
  }

  .why-item .why-icon svg {
    width: 22px;
    height: 22px;
  }

  .why-item h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .why-item p {
    font-family: 'IBM Plex Serif', serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.7;
  }

  /* Wide item special styling */
  .why-item-wide .why-item,
  .why-item.why-item-wide {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 36px;
    background: linear-gradient(135deg, rgba(184,150,62,0.03) 0%, rgba(10,10,12,0.95) 100%);
    border-color: rgba(184,150,62,0.12);
  }

  .why-item-wide .why-icon,
  .why-item.why-item-wide .why-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .why-item-wide h3,
  .why-item.why-item-wide h3 {
    margin-bottom: 4px;
  }

/* ───── TIER TABS ───── */
.tier-tabs {
  display: flex;
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  margin-bottom: 12px;
}

.tier-tab {
  flex: 1;
  font-family: 'Goldman', sans-serif;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 4px;
  background: var(--slate-mid, #1a1f2e);
  border: none;
  color: var(--muted, #6a7a8a);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tier-tab:hover {
  color: var(--gold, #b8963e);
}

.tier-tab.active {
  background: var(--slate, #1e2530);
  color: var(--gold, #b8963e);
  border-bottom: 2px solid var(--gold, #b8963e);
}

.tier-tab-content {
  display: none;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
}

.tier-tab-content.active {
  display: flex;
}

/* Models grid */
.tier-models-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tier-model {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--divider, #2a3545);
  background: rgba(255,255,255,0.02);
  transition: background 0.2s;
}

.tier-model:hover {
  background: rgba(184,150,62,0.04);
}

.tier-model img {
  width: 18px;
  height: 18px;
  border-radius: 3px;
}

.tier-model span:first-of-type {
  font-family: 'IBM Plex Serif', serif;
  font-size: 0.78rem;
  color: var(--ink, #e0e0e0);
  flex: 1;
}

.model-type {
  font-family: 'Goldman', sans-serif;
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 2px;
  color: #6ec6ff;
  border: 1px solid rgba(110,198,255,0.3);
  background: rgba(110,198,255,0.08);
}

.tier-model.disabled {
  opacity: 0.35;
}

.tier-model.disabled .model-type {
  color: var(--muted, #6a7a8a);
  border-color: var(--divider, #2a3545);
  background: transparent;
}

.tier-models-note {
  font-family: 'Goldman', sans-serif;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted, #6a7a8a);
  text-align: center;
  padding: 8px;
  margin-top: auto;
}

/* Mermaid in tier back */
.tier-tab-content .mermaid-wrap {
  flex: 1;
  overflow: auto;
}

.tier-tab-content .mermaid-wrap .mermaid {
  font-size: 10px;
}

.tier-tab-content .mermaid-wrap svg {
  max-width: 100%;
  height: auto;
}
