/* Spend Sphere — site styles
   Sister brand to Acquire Procurement Support; shares the layout system,
   distinct palette (slate-navy + teal "data" accent). */
:root {
  --navy: #0B1E3A;          /* brand deep navy (from the live spendsphere.ai hero) */
  --navy-900: #06122A;
  --navy-500: #3A4F6B;
  --teal: #F99D25;          /* brand orange accent (var name kept to limit churn) */
  --teal-700: #EE931D;      /* brand orange — hover */
  --teal-100: #FDEFD8;      /* light amber tint */
  --amber: #F99D25;
  --rose: #C44536;
  --data-blue: #2F6FB0;     /* the blue used in the data-field hero */
  --ink: #1A2330;
  --grey-600: #57626F;
  --grey-300: #D5DAE1;
  --grey-100: #F3F6F9;
  --white: #FFFFFF;
  --radius: 8px;
  --maxw: 1120px;
  --shadow: 0 1px 3px rgba(8,24,38,.08), 0 6px 24px rgba(8,24,38,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, .brandfont {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 600;
}
h2 { overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; max-width: 70ch; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--teal-700); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--grey-600); }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--navy-500); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--teal); color: #231405; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-700); border-color: var(--teal-700); color: #231405; }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }

/* Header — dark brand bar carrying the white logo */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.10); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand-logo { height: 40px; width: auto; display: block; }
.wordmark { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.4rem; color: #fff; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 9px; }
.wordmark .accent { color: var(--teal); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { font-family: "Inter", sans-serif; font-weight: 500; color: rgba(255,255,255,.86); font-size: .98rem; }
.site-nav a:hover { color: var(--teal); }
.site-nav .nav-cta { color: #231405; }
.site-nav .nav-cta:hover { color: #231405; }
.nav-toggle, .nav-toggle-label { display: none; }

/* Hero — brand data-field background with a dark overlay for legibility */
.hero { background: linear-gradient(rgba(6,18,40,.86), rgba(7,18,40,.90)), url(../assets/hero-bg.jpg) center/cover no-repeat, var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero-logo { display: block; width: 70%; max-width: 460px; min-width: 260px; margin: 0 0 24px; }
.hero .container { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { color: #fff; max-width: 22ch; }
.hero p { color: rgba(255,255,255,.86); font-size: 1.2rem; max-width: 62ch; }
.hero-hook { margin-top: 18px; margin-bottom: 0; color: #fff; font-size: 1.15rem; max-width: 62ch; }
.hero .btns { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-eyebrow { color: var(--teal); font-weight: 600; font-family: "Poppins",sans-serif; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; margin-bottom: 12px; }
.hero-sub { margin-top: 16px; margin-bottom: 0; color: rgba(255,255,255,.72); font-size: .95rem; max-width: 62ch; }
.hero-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }

/* Proof strip */
.proof { background: var(--navy-900); color: rgba(255,255,255,.92); }
.proof .container { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 14px 24px; font-size: .95rem; justify-content: center; }
.proof span { display: inline-flex; align-items: center; }
.proof span::before { content: "›"; color: var(--teal); font-weight: 700; margin-right: 8px; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--grey-100); }
.section-head { max-width: 62ch; margin-bottom: 28px; }
.eyebrow { color: var(--teal-700); font-weight: 600; font-family:"Poppins",sans-serif; text-transform: uppercase; letter-spacing:.04em; font-size:.8rem; }

/* Three-state contract-linkage graphic (the hero answer) */
.tristate { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 22px 22px 18px; max-width: 460px; color: var(--ink); }
.tristate .tri-title { font-family:"Poppins",sans-serif; font-weight:600; color: var(--navy); font-size: 1rem; margin-bottom: 14px; }
.tristate .bar { display: flex; height: 30px; border-radius: 6px; overflow: hidden; }
.tristate .seg { height: 100%; }
.tristate .seg.linked { background: var(--data-blue); }
.tristate .seg.unlinked { background: var(--teal); }
.tristate .seg.none { background: var(--rose); }
.tristate .legend { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.tristate .legend li { display: flex; align-items: baseline; gap: 9px; font-size: .92rem; color: var(--grey-600); }
.tristate .legend .key { width: 12px; height: 12px; border-radius: 3px; flex: none; position: relative; top: 1px; }
.tristate .legend .linked { background: var(--data-blue); }
.tristate .legend .unlinked { background: var(--teal); }
.tristate .legend .none { background: var(--rose); }
.tristate .legend b { color: var(--navy); font-weight: 600; }
.tristate .tri-foot { font-size: .78rem; color: var(--grey-600); margin: 14px 0 0; font-style: italic; }
.tristate-compact { padding: 20px 20px 16px; }
.tristate-compact .bar { margin-top: 4px; }
.tristate-compact .tri-foot a { font-weight: 600; color: var(--navy); font-style: normal; }
.tristate-compact .tri-foot a:hover { color: var(--teal-700); }

/* Spend Control Score chart (v5 hero + sample visual) */
.scorechart { background:#fff; border-radius:14px; box-shadow:var(--shadow); padding:18px 18px 14px; color:var(--ink); max-width:520px; }
.scorechart svg { display:block; width:100%; height:auto; }
.scorechart .sc-cap { font-size:.76rem; color:var(--grey-600); font-style:italic; margin:12px 2px 0; line-height:1.45; }
.hero .scorechart { max-width:none; }
.hero .scorechart .sc-cap { color:var(--grey-600); font-style:italic; }

/* Score bands (0-10) reference table */
.bandtable { width:100%; border-collapse:collapse; margin:8px 0 4px; font-size:.95rem; }
.bandtable th, .bandtable td { text-align:left; padding:12px 14px; border-bottom:1px solid var(--grey-300); vertical-align:top; }
.bandtable th { font-family:"Poppins"; color:var(--navy); }
.bandtable td:first-child { font-weight:600; white-space:nowrap; font-variant-numeric:tabular-nums; }
.bandtable .band-dot { display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:8px; position:relative; top:0; }

/* "Five things to fix first" shortlist */
.fixlist { list-style:none; padding:0; margin:22px 0 0; display:grid; gap:12px; max-width:60ch; }
.fixlist li { display:flex; gap:14px; align-items:flex-start; background:#fff; border:1px solid var(--grey-300); border-left:4px solid var(--teal); border-radius:10px; padding:16px 18px; box-shadow:var(--shadow); }
.fixlist .rank { font-family:"Poppins",sans-serif; font-weight:700; color:var(--teal-700); font-size:1.1rem; line-height:1.3; flex:none; }
.fixlist .fix-body b { color:var(--navy); font-weight:600; }
.fixlist .fix-body { color:var(--grey-600); font-size:.95rem; }
section.alt .fixlist li { background:#fff; }

/* What vs how — same data, two readings (homepage §2) */
.whathow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0 0; }
.wh-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 20px 20px 16px; color: var(--ink); }
.wh-card .wh-head { font-family: "Poppins",sans-serif; font-weight: 600; font-size: 1rem; margin: 0 0 3px; }
.wh-card .wh-sub { font-size: .8rem; color: var(--grey-600); margin: 0 0 14px; }
.wh-what .wh-head { color: var(--navy); }
.wh-how .wh-head { color: var(--teal-700); }
.wh-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid #EEF1F5; font-size: .92rem; }
.wh-row:first-of-type { border-top: none; }
.wh-supplier { font-weight: 500; }
.wh-what .wh-val { color: var(--grey-600); font-variant-numeric: tabular-nums; }
.wh-how .wh-flag { color: var(--teal-700); font-weight: 600; text-align: right; }
.wh-card .wh-foot { font-size: .78rem; color: var(--grey-600); font-style: italic; margin: 12px 0 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--grey-300); border-radius: 12px; padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card .chev { color: var(--teal-700); font-size: 1.5rem; font-weight: 700; line-height: 1; margin-bottom: 10px; }
.card .q { font-family:"Poppins"; font-weight:600; color: var(--teal-700); font-size: .95rem; margin-bottom: 6px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--grey-600); flex: 1; }
.card a.more { font-weight: 600; color: var(--navy); margin-top: 10px; }
.card a.more:hover { color: var(--teal-700); }

/* Generic content */
.prose { max-width: 70ch; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.prose ul li::before { content: "›"; position: absolute; left: 0; color: var(--teal-700); font-weight: 700; }
.note { background: var(--teal-100); border-left: 4px solid var(--teal); padding: 14px 18px; border-radius: 6px; }
.outscope { background: var(--grey-100); border-left: 4px solid var(--navy-500); padding: 14px 18px; border-radius: 6px; color: var(--navy-500); }
.price-line { font-family:"Poppins",sans-serif; font-weight:600; color: var(--navy); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.step { background:#fff; border:1px solid var(--grey-300); border-radius:12px; padding:24px; }
.step .num { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%; background:var(--navy); color:#fff; font-family:"Poppins"; font-weight:600; margin-bottom:12px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--grey-300); padding: 16px 0; }
.faq summary { font-family:"Poppins",sans-serif; font-weight:600; color: var(--navy); cursor: pointer; list-style: none; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::before { content:"+"; color: var(--teal-700); font-weight:700; margin-right:10px; }
.faq details[open] summary::before { content:"–"; }
.faq p { margin-top: 12px; color: var(--grey-600); }

/* Tables (data → answer matrix) */
.matrix { width:100%; border-collapse: collapse; margin: 8px 0 4px; }
.matrix th, .matrix td { text-align:left; padding:14px 16px; border-bottom:1px solid var(--grey-300); vertical-align: top; }
.matrix th { font-family:"Poppins"; color: var(--navy); }
.matrix td:first-child { font-weight:600; color: var(--navy); white-space: nowrap; }

/* CTA band */
.cta-band { background: var(--navy); color:#fff; }
.cta-band h2 { color:#fff; }
.cta-band p { color: rgba(255,255,255,.85); }
.cta-band .btns { margin-top: 18px; display:flex; flex-wrap:wrap; gap:14px; }

/* Form */
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap:16px; max-width: 640px; }
.form-grid .full { grid-column: 1 / -1; }
label.field { display:block; font-weight:500; margin-bottom:6px; color: var(--navy); }
input, textarea, select { width:100%; padding:12px 14px; border:1px solid var(--grey-300); border-radius:8px; font:inherit; color:var(--ink); background:#fff; }
textarea { min-height: 120px; }

/* Links row */
.links-row { display:flex; flex-wrap:wrap; gap:18px; margin-top: 8px; }
.links-row a { font-weight:600; }
.links-row a::after { content:" →"; color: var(--teal-700); }
.cta-band .links-row { margin-top: 18px; }
.cta-band .links-row a { color:#fff; }
.cta-band .links-row a::after { color: var(--teal); }
.cta-band .links-row a:hover { color: rgba(255,255,255,.8); }

/* Consultant partner page — curiosity-led narrative visuals */
.viz-panel { margin: 0; }
.viz-panel figcaption { font-size: .78rem; color: var(--grey-600); font-style: italic; margin-top: 10px; line-height: 1.4; }
.hero .viz-panel figcaption { color: rgba(255,255,255,.65); font-style: normal; }

.content-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.content-split .prose { max-width: none; }

.journey-viz { background: rgba(255,255,255,.96); border-radius: 14px; padding: 18px 18px 14px; box-shadow: var(--shadow); max-width: 420px; margin-left: auto; color: var(--ink); }
.journey-viz svg { display: block; width: 100%; height: auto; }

.debate-viz { display: grid; gap: 12px; max-width: 380px; margin-left: auto; }
.debate-panel { border-radius: 10px; padding: 16px 18px; border: 1px solid var(--grey-300); background: #fff; }
.debate-panel.bad { border-color: rgba(196,69,54,.35); background: #fdf6f5; }
.debate-panel.good { border-color: rgba(47,111,176,.35); background: #f4f8fc; }
.debate-panel .label { font-family: "Poppins", sans-serif; font-weight: 600; font-size: .85rem; margin-bottom: 10px; }
.debate-panel.bad .label { color: var(--rose); }
.debate-panel.good .label { color: var(--data-blue); }
.debate-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; height: 48px; }
.debate-grid span { background: rgba(196,69,54,.18); border-radius: 2px; }
.debate-trace { display: flex; flex-direction: column; gap: 8px; }
.debate-trace .row { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--grey-600); }
.debate-trace .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--data-blue); flex-shrink: 0; }
.debate-trace .line { flex: 1; height: 2px; background: var(--data-blue); opacity: .45; }

.path-flow { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 28px; flex-wrap: wrap; }
.path-flow .node { font-family: "Poppins", sans-serif; font-weight: 600; font-size: .82rem; color: var(--navy); background: var(--teal-100); border: 1px solid var(--teal); padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.path-flow .arrow { color: var(--grey-600); font-size: 1.2rem; padding: 0 10px; line-height: 1; }

.proof-split { display: grid; grid-template-columns: 1.08fr .92fr; gap: 36px; align-items: start; }
.proof-split .prose { max-width: none; }
.proof-split .prose h3 { font-size: 1.125rem; margin-top: 1.5rem; }
.proof-split .prose h3 + h3 { margin-top: 2rem; }
.glimpse-preview { background: #fff; border: 1px solid var(--grey-300); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); position: sticky; top: 88px; }
.glimpse-preview .gp-title { font-family: "Poppins", sans-serif; font-weight: 600; color: var(--navy); font-size: .95rem; margin-bottom: 4px; }
.glimpse-preview .gp-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--grey-600); margin-bottom: 14px; }
.glimpse-habit { font-size: .85rem; color: var(--grey-600); padding: 8px 0; border-bottom: 1px solid var(--grey-300); display: flex; justify-content: space-between; gap: 12px; }
.glimpse-habit b { color: var(--navy); font-weight: 600; }
.glimpse-preview .gp-foot { font-size: .75rem; color: var(--grey-600); margin-top: 12px; font-style: italic; line-height: 1.4; }

/* Pattern list (patterns-we-detect page) */
.pattern-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; max-width: 52ch; }
.pattern-list li { padding: 10px 14px; background: #fff; border: 1px solid var(--grey-200); border-radius: 8px; font-size: .98rem; }
section.alt .pattern-list li { background: var(--grey-50); }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.8); padding: 48px 0 28px; }
.site-footer .brandline .wordmark { color:#fff; font-size:1.3rem; }
.site-footer .brandline .wordmark .accent { color: var(--teal); }
.footer-logo { height: 56px; width: auto; display: block; margin-bottom: 8px; }
.footer-cols { display:grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; margin-top: 18px; }
.site-footer h4 { color:#fff; font-family:"Poppins"; font-size:.95rem; margin:0 0 10px; }
.site-footer a { color: rgba(255,255,255,.78); display:block; padding:4px 0; font-size:.95rem; }
.site-footer a:hover { color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:28px; padding-top:18px; font-size:.85rem; color: rgba(255,255,255,.55); }
.footer-bottom a { display:inline; color: rgba(255,255,255,.7); text-decoration: underline; padding:0; font-size:inherit; }
.footer-bottom a:hover { color:#fff; }
.site-footer .footer-contact { margin-top:10px; }
.site-footer .footer-contact a { color:#fff; font-weight:500; }
.contact-direct { font-size:1.05rem; margin:0 0 22px; }

/* Responsive */
@media (max-width: 860px) {
  section { padding: 48px 0; }
  .hero .container { padding-top: 48px; padding-bottom: 48px; }
  .hero p { font-size: 1.1rem; }
  .cards, .cards.two, .steps { grid-template-columns: 1fr; }
  .hero-split { grid-template-columns: 1fr; gap: 28px; }
  .content-split, .proof-split { grid-template-columns: 1fr; gap: 28px; }
  .whathow { grid-template-columns: 1fr; gap: 14px; }
  .journey-viz, .debate-viz { margin-left: 0; max-width: none; }
  .glimpse-preview { position: static; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .nav-toggle-label { display: inline-flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
  .nav-toggle-label span, .nav-toggle-label::before, .nav-toggle-label::after {
    content: ""; display:block; width: 26px; height: 3px; background: #fff; border-radius: 2px;
  }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--navy);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 18px;
    border-bottom: 1px solid rgba(255,255,255,.10); box-shadow: var(--shadow);
  }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav .nav-cta { text-align:center; margin-top: 10px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .hero::after { display:none; }
  .matrix td:first-child { white-space: normal; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .container { padding: 0 18px; }
  section { padding: 40px 0; }
  .hero .container { padding-top: 40px; padding-bottom: 40px; }
  .footer-cols { grid-template-columns: 1fr; gap: 16px; }
  .hero .btns, .cta-band .btns, .btns { flex-direction: column; align-items: stretch; }
  .btns .btn { width: 100%; text-align: center; }
  .proof .container { justify-content: flex-start; }
}
