/* components.css — the section vocabulary of the solution-page archetype.
   One block per macro in templates/macros/sections.html, same order. */

/* ---------- shared surfaces --------------------------------------------- */

.panel {
  background: var(--surface);
  border: var(--border) solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.panel--invert {
  background: var(--surface-invert);
  border-color: var(--surface-invert);
  color: var(--text-on-invert);
}
.panel--invert .panel__title,
.panel--invert .panel__body { color: var(--text-on-invert); }
.panel--accent { background: var(--surface-tint); border-color: var(--line-accent); }
.panel--tint   { background: var(--surface-tint); }

.panel__head { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; }
.panel__title { font-size: var(--step-3); color: var(--text-heading); }
.panel__lede  { color: var(--text-soft); font-size: var(--step--1); }
.panel__body  { color: var(--text-soft); }
.panel__foot  { color: var(--text-faint); font-size: var(--step--1); }

.btn {
  display: inline-block; border-radius: var(--radius-pill);
  padding: var(--sp-2) var(--sp-5); font-size: var(--step--1); font-weight: 600;
  border: var(--border) solid transparent; cursor: pointer; text-decoration: none;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.btn:hover { text-decoration: none; }
.btn--action { background: var(--action); color: var(--action-text); border-color: var(--action); }
.btn--action:hover { background: var(--action-hover); color: var(--action-text-hover); border-color: var(--action-hover); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--on-invert { background: var(--btn-invert-bg); color: var(--btn-invert-text); border-color: var(--btn-invert-bg); }
.btn--on-invert:hover { background: var(--btn-invert-hover-bg); color: var(--btn-invert-hover-text); }
.btn--ghost-invert { border-color: rgba(255,255,255,.7); color: var(--text-on-invert); }
.btn--ghost-invert:hover { background: rgba(255,255,255,.12); color: var(--text-on-invert); }
.btn-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-2); }

.pill {
  display: inline-block; border-radius: var(--radius-pill);
  border: var(--border) solid var(--line-strong);
  padding: 3px var(--sp-3); font-size: var(--step--1);
  color: var(--text-heading); font-weight: 600; background: var(--surface);
}
.pill--sm { font-size: var(--step--2); padding: 2px var(--sp-2); font-weight: 500; }
.pill--invert {
  border-style: dashed; border-color: var(--dashed-invert);
  color: var(--text-on-invert-soft); background: transparent; font-weight: 400;
}
.pill--link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pill.is-active { background: var(--surface-accent); border-color: var(--accent); }
.pill.is-future { border-style: dashed; color: var(--text-faint); }
.chip-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-2); }

/* ---------- 1. breadcrumb ----------------------------------------------- */

.breadcrumb {
  padding-top: var(--sp-5); font-size: var(--step--1); color: var(--text-faint);
  display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center;
}
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--text-heading); font-weight: 600; }
.breadcrumb__sep { color: var(--line-strong); }

/* ---------- 2. hero ------------------------------------------------------ */

.hero {
  display: grid; gap: var(--sp-6); align-items: center;
  padding: var(--sp-8) var(--sp-8);
}
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr); } }

.hero__copy { display: flex; flex-direction: column; gap: var(--sp-3); }
.hero__title { font-size: var(--step-4); letter-spacing: -0.02em; }
.hero__title--landing { font-size: var(--step-5); }
.hero__sub { color: var(--text-on-invert-soft); max-width: 54ch; font-size: var(--step-1); }

.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
.stat {
  padding: var(--sp-2) 0 0;
  border-top: var(--border) solid rgba(255, 255, 255, .22);
}
.stat__value {
  display: block; font-family: var(--font-mono);
  font-size: var(--step-2); font-weight: 600; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--text-on-invert);
}
.stat__label { display: block; font-size: var(--step--2); color: var(--text-on-invert-soft); line-height: 1.3; }
@media (max-width: 560px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 3. problem / instead ---------------------------------------- */

.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.check { font-size: var(--step--1); }
.check b { display: block; color: var(--text); }
.check b::before { content: "✓ "; color: var(--accent); }
.check span { color: var(--text-faint); }
@media (max-width: 560px) { .check-grid { grid-template-columns: 1fr; } }

/* ---------- 4. evidence chain ------------------------------------------- */

.exhibit {
  border: var(--border) solid var(--line-strong);
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
}
.exhibit { box-shadow: var(--shadow-sm); }
.exhibit__head {
  background: var(--surface-invert); color: var(--text-on-invert);
  padding: var(--sp-3) var(--sp-5);
  display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; align-items: baseline;
}
.exhibit__title {
  font-size: var(--step--2); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
}
.exhibit__sub { font-size: var(--step--1); color: var(--text-on-invert-soft); }

.exhibit__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step {
  padding: var(--sp-4) var(--sp-4);
  border-right: var(--border) solid var(--line);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.step:nth-child(even) { background: var(--surface-tint); }
.step:last-child { border-right: 0; }
.step__lead { font-weight: 600; color: var(--text-heading); font-size: var(--step--1); }
.step__body { font-size: var(--step--1); color: var(--text-soft); }
.step__foot { font-size: var(--step--2); color: var(--text-faint); margin-top: auto; }
.step__quote {
  margin: 0; padding-left: var(--sp-3);
  border-left: 3px solid var(--accent);
  font-size: var(--step--1); color: var(--text-soft);
}
@media (max-width: 900px) {
  .exhibit__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2n) { border-right: 0; }
  .step { border-bottom: var(--border) solid var(--line); }
}
@media (max-width: 560px) {
  .exhibit__steps { grid-template-columns: 1fr; }
  .step { border-right: 0; }
}

.spark { display: flex; gap: 2px; align-items: flex-end; height: 30px; }
.spark__bar {
  width: 6px; height: var(--h); border-radius: 1px;
  background: var(--bar); flex: none;
}
.spark__bar.is-high { background: var(--bar-high); }

.timeline { display: flex; gap: 3px; align-items: center; flex-wrap: wrap; }
.timeline__dash { color: var(--text-faint); }

/* ---------- 5. capabilities + shared card grid -------------------------- */

.card-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.card-grid[data-cols="3"] { --cols: 3; }
.card-grid[data-cols="4"] { --cols: 4; }
.card-grid[data-cols="5"] { --cols: 5; }
@media (max-width: 1000px) { .card-grid { --cols: 2 !important; } }
@media (max-width: 620px)  { .card-grid { --cols: 1 !important; } }

.card {
  position: relative; background: var(--surface);
  border: var(--border) solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-2);
  box-shadow: var(--shadow-sm);
}
/* Highlighted cards earn a top accent rule rather than just a tinted fill. */
.card.is-highlight { border-color: var(--line-strong); background: var(--surface-tint); }
.card.is-highlight::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--accent);
  border-radius: var(--radius) var(--radius) 0 0;
}
.card__title { font-size: var(--step-2); color: var(--text-heading); }
.card__body { font-size: var(--step--1); color: var(--text-soft); }
.card__foot { font-size: var(--step--1); color: var(--text-faint); margin-top: auto; padding-top: var(--sp-2); }
.card--link { text-decoration: none; transition: border-color .12s ease, box-shadow .12s ease; }
.card--link:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow-sm); }
.card__bullets { display: flex; flex-direction: column; gap: var(--sp-1); font-size: var(--step--2); }
.card__bullets b { color: var(--text); display: block; }
.card__bullets span { color: var(--text-faint); }

.rail-group { margin-bottom: var(--sp-8); }

/* ---------- 6. framework strip ------------------------------------------ */

.tile-grid { display: grid; gap: var(--sp-2); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.tile-grid[data-cols="3"] { --cols: 3; }
.tile-grid[data-cols="5"] { --cols: 5; }
@media (max-width: 900px) { .tile-grid { --cols: 2 !important; } }
@media (max-width: 560px) { .tile-grid { --cols: 1 !important; } }

.tile {
  border: var(--border) solid var(--line-strong); border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3); font-size: var(--step--1);
}
.tile b { display: block; color: var(--text-heading); }
.tile span { color: var(--text-faint); }

/* ---------- 7. roles (tabs) --------------------------------------------- */

.tabs {
  border: var(--border) solid var(--line-strong);
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
}
.tabs__list { display: flex; border-bottom: var(--border) solid var(--line-strong); }
.tabs__tab {
  flex: 1; padding: var(--sp-3); font-size: var(--step--1); font-family: inherit;
  background: var(--surface); color: var(--text-soft);
  border: 0; border-right: var(--border) solid var(--line); cursor: pointer;
}
.tabs__tab:last-child { border-right: 0; }
.tabs__tab:hover { background: var(--surface-tint); }
.tabs__tab[aria-selected="true"] {
  background: var(--surface-accent); color: var(--text-heading); font-weight: 600;
}
.tabs__panel { display: grid; }
/* an explicit display overrides [hidden] — put it back */
.tabs__panel[hidden] { display: none; }
@media (min-width: 860px) { .tabs__panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } }
.tabs__scenario {
  padding: var(--sp-4) var(--sp-5); border-right: var(--border) solid var(--line);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.tabs__name { font-size: var(--step-2); color: var(--text-heading); }
.tabs__points {
  padding: var(--sp-4) var(--sp-5); background: var(--surface-tint);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.point-list { display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--step--1); }
.point-list li { display: flex; gap: var(--sp-2); color: var(--text-soft); }
.point-list__mark { color: var(--accent); flex: none; }
@media (max-width: 700px) { .tabs__list { flex-wrap: wrap; } .tabs__tab { flex: 1 0 50%; } }

/* ---------- 8. product inventory ---------------------------------------- */

.inventory { gap: var(--sp-5); }
.inventory__group { display: flex; flex-direction: column; gap: var(--sp-3); }
.inventory__label {
  font-size: var(--step--2); letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; color: var(--text-heading);
  border-bottom: var(--border) solid var(--line); padding-bottom: var(--sp-2);
}
.mini-card {
  border: var(--border) solid var(--line-strong); border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3);
  display: flex; flex-direction: column; gap: 2px;
}
.mini-card.is-highlight { border-color: var(--accent); background: var(--surface-tint); }
.mini-card__name { font-size: var(--step--1); font-weight: 600; color: var(--text-heading); }
.mini-card__what { font-size: var(--step--2); color: var(--text-faint); }
.mini-card__tag {
  font-size: var(--step--2); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-faint); margin-top: auto; padding-top: 3px;
}

/* ---------- 9. delivery -------------------------------------------------- */

.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
.tool {
  border: var(--border) solid var(--line-strong); border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3);
  font-family: var(--font-mono); font-size: var(--step--1);
}
.tool.is-highlight { border-color: var(--accent); background: var(--surface); color: var(--text-heading); }
.tool.is-muted { border-style: dashed; color: var(--text-faint); font-family: var(--font-sans); }
.quote-inline {
  margin: 0; border-left: 3px solid var(--accent); background: var(--surface);
  padding: var(--sp-2) var(--sp-3); font-size: var(--step--1); color: var(--text-soft);
}
.stack-list { display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--step--1); }
.stack-list li {
  border: var(--border) solid var(--line-strong); border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3); color: var(--text-soft);
}

/* ---------- 10. comparison ---------------------------------------------- */

.table-scroll { overflow-x: auto; border-radius: var(--radius); border: var(--border) solid var(--line-strong); }
.compare { width: 100%; border-collapse: collapse; font-size: var(--step--1); min-width: 640px; }
.compare th, .compare td { padding: var(--sp-2) var(--sp-3); text-align: left; vertical-align: top; }
.compare thead th {
  background: var(--surface-invert); color: var(--text-on-invert-soft); font-weight: 500;
}
.compare thead th.is-ours { color: var(--text-on-invert); font-weight: 700; }
.compare__corner {
  font-size: var(--step--2); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-on-invert-kicker) !important;
}
.compare tbody th { font-weight: 600; color: var(--text-heading); background: var(--surface); }
.compare tbody td { color: var(--text-faint); background: var(--surface); }
.compare tbody td.is-ours { color: var(--text-heading); background: var(--surface-tint); }
.compare tbody tr { border-top: var(--border) solid var(--line); }

/* ---------- 11. proof ---------------------------------------------------- */

.pull-quote {
  margin: 0; font-family: var(--font-display);
  font-size: var(--step-4); line-height: 1.2;
  letter-spacing: var(--track-display);
  color: var(--text-on-invert); text-wrap: balance;
}
.pull-quote::before { content: "\201C"; }
.pull-quote::after  { content: "\201D"; }
.link-stack { display: flex; flex-direction: column; gap: var(--sp-2); }
.link-card {
  border: var(--border) solid var(--line-strong); border-radius: var(--radius);
  padding: var(--sp-2) var(--sp-3); font-size: var(--step--1);
  color: var(--text); background: var(--surface); text-decoration: none;
}
.link-card:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ---------- 12. cta ------------------------------------------------------ */

.cta { flex-direction: row; align-items: center; gap: var(--sp-6); flex-wrap: wrap; padding: var(--sp-6); }
.cta__copy { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: var(--sp-1); }
.cta .btn-row { margin-top: 0; }

/* ---------- 13. related -------------------------------------------------- */

.related {
  display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center;
  border-top: var(--border) solid var(--line-strong); padding-top: var(--sp-4);
}

/* Nav CTA sits at the larger nav scale, not the small in-page one. */
.nav__utility .btn { padding: var(--sp-3) var(--sp-5); font-size: var(--step-0); }

/* nav: "Schedule a Demo" — outlined partner to the orange trial button */
.nav__utility .nav__outline{background:transparent;color:var(--action);border:1.5px solid var(--action)}
.nav__utility .nav__outline:hover{background:var(--action);color:#fff}
