/* AI Org Diagnostic — sgabenchmarking.com native styling.
   Canon: web/industry/building-products/index.html (free industry benchmark template).
   Tokens and patterns ported 1:1: hero grid + card, cotable bars,
   btn-p/btn-s, steps3, twocol free/paid, FAQ accordion, closing band. */

:root {
  --primary: #002856;
  --accent: #e5006d;
  --steel: #33619e;      /* site chart color: bars, dots */
  --steel-2: #7d9cc6;    /* lighter steel: stacked-bar 2nd segment */
  --steel-3: #b9cbdf;    /* lightest steel: stacked-bar tail segment */
  --ink-2: #434a54;
  --ink-3: #6b7280;
  --ink-4: #9aa3b0;
  --slate: #334966;
  --rule: #e1e6ec;
  --rule-2: #eef1f5;
  --track: #f0f3f7;
  --paper: #f7f9fb;
  --foot-text: #cdd6e3;
  --foot-head: #8fa6c4;
  --foot-dim: #6f8aab;
  --foot-rule: #143b63;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--primary);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
a { color: var(--accent); text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ===== Nav ===== */
.nav-bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  padding-top: 16px; padding-bottom: 16px;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px;
}
.nav-brand { display: flex; align-items: center; gap: 11px; }
.nav-brand img { height: 22px; width: auto; display: block; flex-shrink: 0; }
.nav-brand span { font-weight: 800; font-size: 18px; letter-spacing: -0.025em; color: var(--primary); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.nav-link { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 8px;
}

/* ===== Hero (industry-page hero spec) ===== */
.hero { max-width: 1180px; margin: 0 auto; padding: 84px 32px 64px; }
.herogrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px; align-items: center; }
.kicker {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 14px;
}
h1 {
  font-weight: 800; font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.03; letter-spacing: -0.03em; margin: 0 0 22px;
}
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 540px; margin: 0 0 34px; }
.lede strong { color: var(--primary); font-weight: 600; }
.hero-btns { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-hero {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 600;
  padding: 14px 24px; border-radius: 10px; box-shadow: 0 1px 2px rgba(28,26,23,0.12);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-size: 16px; font-weight: 600;
  padding: 14px 20px; border-radius: 10px; border: 1px solid #cdd6e3;
}
.hero-stats { display: flex; align-items: center; gap: 22px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats > div { font-size: 12px; color: var(--ink-4); }
.hero-stats span { color: var(--primary); font-weight: 600; }
.hero-stats .sep { width: 1px; height: 14px; background: #cdd6e3; padding: 0; }

.hero-card {
  background: #ffffff; border: 1px solid var(--rule); border-radius: 12px;
  padding: 30px 30px 26px; box-shadow: 0 24px 60px -34px rgba(0,40,86,0.45);
}
.hero-card__kicker {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 10px;
}
.hero-card__head { font-weight: 800; font-size: 22px; letter-spacing: -0.01em; color: var(--primary); margin-bottom: 12px; }
.hero-card__body { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin-bottom: 18px; }
.hero-card__btn {
  display: block; text-align: center; background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 700; padding: 15px; border-radius: 8px;
}
.hero-card__foot {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule-2);
  font-size: 13px; line-height: 1.5; color: var(--ink-3);
}
.hero-card__foot a { color: var(--accent); font-weight: 700; }

/* ===== Full-bleed grey band (home-page "The problem" band spec) ===== */
.band { border-top: 1px solid var(--rule); background: #f3f6f9; }
.band__inner { max-width: 1180px; margin: 0 auto; padding: 88px 32px; }
.band__inner h2 {
  font-weight: 800; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1;
  letter-spacing: -0.02em; color: var(--primary); margin: 0 0 24px; max-width: 780px;
}
.execsum { margin: 0; padding-left: 20px; }
.execsum li { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin-bottom: 12px; }
.execsum li:last-child { margin-bottom: 0; }
.execsum b { color: var(--primary); }

/* ===== Sections ===== */
.sec { padding-top: 60px; }
.sec h2 { font-weight: 800; font-size: clamp(22px, 2.8vw, 30px); letter-spacing: -0.02em; margin: 0 0 6px; }
.sec .sub { font-size: 15px; color: var(--ink-3); max-width: 780px; margin: 0 0 22px; line-height: 1.55; }
.sec .sub b { color: var(--primary); }

/* ===== Company tables with bars (industry cotable spec) ===== */
.tscroll { overflow-x: auto; }
table.cotable { width: 100%; border-collapse: collapse; }
table.cotable th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 700; padding: 0 14px 10px 0; border-bottom: 1px solid var(--rule);
}
table.cotable th.num, table.cotable td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.cotable td {
  padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule-2);
  font-size: 14.5px; color: var(--slate); vertical-align: middle;
}
table.cotable td.co { font-weight: 700; color: var(--primary); white-space: nowrap; }
table.cotable td.key { font-weight: 700; color: var(--primary); }
.barcell { width: 30%; min-width: 140px; }
.bartrack { position: relative; height: 14px; background: var(--track); border-radius: 4px; overflow: hidden; }
/* Stacked bars + legend chip row (tools-benchmark exhibit idiom) */
.bartrack--stack { display: flex; }
.barseg { height: 100%; flex: 0 0 auto; }
.c-navy { background: var(--primary); }
.c-steel { background: var(--steel); }
.c-steel2 { background: var(--steel-2); }
.c-steel3 { background: var(--steel-3); }
.c-gold { background: #b8860b; }
.c-pale { background: #e8ecf2; }
.c-gray { background: #9aa3b0; }
.legend-note { margin-left: auto; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-4); }
.chartlegend { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 0 0 14px; }
.chartlegend .lg {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.chartlegend .sw { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }
.co-sub { display: block; white-space: normal; max-width: 220px; font-size: 11.5px; font-weight: 500; color: var(--ink-4); margin-top: 2px; }
.tfoot { font-size: 12.5px; color: var(--ink-4); line-height: 1.55; margin-top: 12px; max-width: 820px; }
.tfoot div + div { margin-top: 4px; }

/* ===== SVG exhibits (site dot-plot idiom: steel dots, gray annotations) ===== */
.chartbox svg { width: 100%; height: auto; display: block; }
.lbl { font: 700 13px 'Archivo', sans-serif; fill: var(--primary); }
.sublbl { font: 500 12px 'Archivo', sans-serif; fill: var(--ink-3); }
.val { font: 800 13px 'Archivo', sans-serif; fill: var(--primary); font-variant-numeric: tabular-nums; }
.val.soft { fill: var(--ink-4); font-weight: 600; }
.tick { font: 500 11px 'Archivo', sans-serif; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.zero { stroke: var(--ink-3); stroke-width: 1.25; }
.conn { stroke: #cdd6e3; stroke-width: 1; stroke-dasharray: 2 2; }
.anno { font: 700 11px 'Archivo', sans-serif; fill: var(--ink-4); letter-spacing: 0.06em; }
.sdot { fill: var(--steel); stroke: #ffffff; stroke-width: 2; }
.scrollhint { display: none; }
@media (max-width: 700px) {
  .chartbox { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .chartbox > svg { min-width: 720px; }
  .scrollhint {
    display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--ink-4); margin-top: 8px;
  }
}

/* ===== Use-case cards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 16px; }
.uc-card { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 20px 22px; border-top: 3px solid var(--primary); overflow: hidden; }
.uc-card__img {
  display: block; width: calc(100% + 44px); margin: -20px -22px 14px;
  aspect-ratio: 2 / 1; object-fit: cover; border-bottom: 1px solid var(--rule-2);
}
.uc-card__name { font-weight: 800; font-size: 16px; color: var(--primary); }
.uc-chipline { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.chip {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-3); background: var(--track); border: 1px solid var(--rule);
  border-radius: 999px; padding: 3px 10px;
}
.uc-card ul { margin: 0 0 12px; padding-left: 18px; }
.uc-card li { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); margin-bottom: 6px; }
.uc-caveat { font-size: 12.5px; line-height: 1.55; color: var(--ink-3); border-top: 1px solid var(--rule-2); padding-top: 10px; }
.uc-none { font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }

/* ===== Method steps (industry steps3 spec) ===== */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { border-top: 3px solid var(--primary); padding-top: 14px; }
.step .n { font-weight: 800; font-size: 13px; color: var(--accent); }
.step h3 { font-size: 16px; font-weight: 800; margin: 4px 0 6px; }
.step p { font-size: 14px; line-height: 1.55; color: var(--ink-3); margin: 0; }

/* ===== Free vs paid (industry twocol spec) ===== */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.freecard { border: 1px solid var(--rule); border-radius: 10px; padding: 22px; }
.freecard.paid { background: var(--primary); border-color: var(--primary); }
.freecard h3 { font-size: 15px; font-weight: 800; margin: 0 0 12px; color: var(--primary); }
.freecard.paid h3 { color: #fff; }
.freecard ul { margin: 0; padding-left: 18px; }
.freecard li { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin-bottom: 8px; }
.freecard.paid li { color: var(--foot-text); }

/* ===== FAQ (home-page accordion spec, ported 1:1 from web/index.html) ===== */
.faq-band { border-top: 1px solid var(--rule); background: #ffffff; }
.faq-band__inner { max-width: 1180px; margin: 0 auto; padding: 92px 32px; }
.faq-band__kicker {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 16px;
}
.faq-band__inner h2 {
  font-weight: 800; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1;
  letter-spacing: -0.02em; color: var(--primary); margin: 0 0 40px; max-width: 720px;
}
.faqpanel { max-width: 820px; display: flex; flex-direction: column; gap: 12px; }
details.faq { background: #ffffff; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
details.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 26px; font-weight: 800; font-size: 18px; color: var(--primary);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .faq-ind {
  flex-shrink: 0; width: 22px; height: 22px; border: 1.5px solid #cdd6e3; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 16px; font-weight: 700;
}
details.faq .faq-a { padding: 0 26px 22px; font-size: 15px; line-height: 1.6; color: var(--ink-3); max-width: 760px; }

/* ===== Closing band + Notes (industry final-CTA spec) ===== */
.closing-wrap { padding-top: 52px; padding-bottom: 72px; }
.cta-band {
  background: var(--primary); border-radius: 12px; padding: 44px 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band__copy { max-width: 560px; }
.cta-band__title { font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; color: #fff; margin-bottom: 8px; }
.cta-band__sub { font-size: 16px; line-height: 1.55; color: #a9bdd6; }
.cta-band__btns { display: flex; flex-direction: column; gap: 10px; }
.btn-p {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 700;
  padding: 13px 22px; border-radius: 10px; white-space: nowrap;
}
.btn-s {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: var(--primary); border: 1px solid #cdd6e3;
  font-size: 15px; font-weight: 600; padding: 12px 20px; border-radius: 10px; white-space: nowrap;
}
.btn-s:hover { border-color: var(--primary); }

/* ===== Tooltip (industry spec) ===== */
#tooltip {
  position: fixed; display: none; z-index: 100; background: var(--primary); color: #fff;
  font-size: 12.5px; font-weight: 600; padding: 7px 11px; border-radius: 7px;
  pointer-events: none; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,40,86,.25);
}

@media (max-width: 900px) { .herogrid { grid-template-columns: 1fr !important; gap: 28px !important; } }
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 56px 20px 48px; }
  .twocol, .steps3 { grid-template-columns: 1fr !important; }
  .nav-link { display: none !important; }
  .barcell { min-width: 100px; }
  .cta-band { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .nav-link { display: none !important; }
  .barcell { min-width: 64px; width: 22%; }
  table.cotable td { padding-right: 10px; font-size: 13.5px; }
  table.cotable th { padding-right: 10px; }
  table.cotable td.co { white-space: normal; }
}
