/* =====================================================================
   solutions.css — page-scoped extensions ONLY. base.css + theme-*.css
   are the shared foundation in the repo root.
   ===================================================================== */

/* =====  SHAPES — DECISION TREE  =====
   "If [situation] → Consider [shape]". Conversational routing,
   compacted to fit all 5 shapes in one viewport. */
.tree {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tree-row {
  display: grid;
  grid-template-columns: 1fr 60px 1.35fr;
  gap: 0;
  align-items: stretch;
}

/* ---- IF side ---- */
.tree-if {
  background: transparent;
  padding: 18px 26px 18px 0;
  border-right: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}
.tree-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}
.tree-situation {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-1);
  font-weight: 400;
  max-width: 42ch;
}

/* ---- Arrow connector ---- */
.tree-then-arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.arrow-line {
  position: absolute;
  left: 4px; right: 14px;
  top: 50%;
  height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
}
.arrow-head {
  position: relative;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: 4px;
  z-index: 2;
}
.arrow-head svg { width: 12px; height: 12px; stroke: currentColor; }

/* ---- THEN side (the shape card) ---- */
.tree-then {
  background: var(--surface-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 16px 22px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
}
.tree-icon {
  width: 38px; height: 38px;
  background: var(--accent-l);
  border-radius: var(--radius-button);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-top: 2px;
}
.tree-icon svg { width: 18px; height: 18px; stroke: currentColor; }
.tree-then-inner { display: flex; flex-direction: column; gap: 6px; }
.tree-then-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.tree-then-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}
.tree-then-head h3 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: var(--display-tracking);
  font-weight: var(--display-weight);
  color: var(--text-1);
  margin: 0;
}
.tree-then-body {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
  margin: 0;
}
.tree-spec {
  list-style: none;
  margin: 4px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tree-spec li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tree-spec li span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}
.tree-spec li strong {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-1);
  font-weight: 500;
}

/* ---- Theme: Lobby ---- */
.theme-lobby .tree-then {
  background: #f4f1ec;
  border: 1px solid #d9d4cb;
  border-radius: 0;
  box-shadow: none;
}
.theme-lobby .tree-if { border-right-color: #b3a586; }
.theme-lobby .tree-eyebrow { color: #8a7d62; }
.theme-lobby .tree-situation { font-weight: 300; font-size: 17px; }
.theme-lobby .tree-icon {
  background: transparent;
  border: 1px solid #8a7d62;
  border-radius: 0;
  color: #8a7d62;
}
.theme-lobby .tree-then-head h3 { font-weight: 400; }
.theme-lobby .tree-then-eyebrow { color: #8a7d62; }
.theme-lobby .arrow-line { background: #8a7d62; }
.theme-lobby .arrow-head {
  background: #8a7d62;
  color: #f4f1ec;
  border-radius: 0;
}
.theme-lobby .tree-spec li span { color: #8a7d62; }

/* ---- Theme: Corporate ---- */
.theme-corporate .tree-then {
  background: #ffffff;
  border-radius: 10px;
  border-color: #e2e8f0;
}
.theme-corporate .tree-if { border-right-color: #cbd5e1; }
.theme-corporate .tree-eyebrow { color: #226DB4; }
.theme-corporate .tree-situation { font-weight: 500; }
.theme-corporate .tree-icon {
  background: #e8f1fa;
  border-radius: 8px;
  color: #226DB4;
}
.theme-corporate .tree-then-head h3 { font-weight: 700; }
.theme-corporate .tree-then-eyebrow { color: #94a3b8; }
.theme-corporate .arrow-line { background: #226DB4; }
.theme-corporate .arrow-head { background: #226DB4; color: #ffffff; }
.theme-corporate .tree-spec li span { color: #94a3b8; }

/* Footnote under shapes list — directional pricing disclaimer */
.shapes-tail {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.shapes-tail-note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-3);
  font-style: italic;
  flex: 1;
  min-width: 260px;
}

/* "Not sure which?" sub-band — sits below the shapes list */
.shapes-guide {
  margin-top: 24px;
  padding: 28px 36px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.shapes-guide-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  flex: 1;
  min-width: 320px;
}
.shapes-guide-text strong {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  color: var(--text-1);
  letter-spacing: var(--display-tracking);
  font-size: 18px;
  display: block;
  margin-bottom: 4px;
}
.theme-lobby .shapes-guide { border-radius: 0; border-color: #b3a586; }
.theme-lobby .shapes-guide-text strong { font-weight: 400; font-size: 20px; }
.theme-corporate .shapes-guide { border-radius: 12px; }

/* =====  WHAT WE IMPLEMENT — Layered Stack
   Three vertical layers: foundation (Zoho One bundle) → focus apps →
   integrations + SEWP. Reads like a system architecture diagram from
   technical documentation. */
.stack-layered { /* applied alongside .cases */ }
.layers {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.layer {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 0;
  position: relative;
}
.layer + .layer { margin-top: 18px; }
.layer-rail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 24px 24px 0;
  border-right: 1px dashed var(--accent);
  position: relative;
  gap: 8px;
}
.layer-rail::after {
  content: '';
  position: absolute;
  right: -5px; top: 50%;
  transform: translateY(-50%);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface-card);
  z-index: 2;
}
.layer-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.layer-name {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  color: var(--text-1);
}
.layer-body { padding: 24px 0 24px 32px; }

/* Layer 1 — Foundation (Zoho One bundle band) */
.layer-base-body {
  background: var(--text-1);
  color: var(--invert-text);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
}
.base-head-mark {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1;
  color: var(--invert-text);
  margin-bottom: 10px;
}
.base-head-sub {
  font-size: 13px;
  line-height: 1.5;
  color: var(--invert-text-2);
}
.base-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0; padding: 0;
}
.base-chips li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
}
.base-chips li.more {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

/* Layer 2 — Focus apps */
.layer-mid-body {
  background: var(--surface-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 28px 32px 30px;
  box-shadow: var(--shadow-card);
}
.layer-mid-intro {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  margin-bottom: 20px;
  font-style: italic;
}
.focus-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.focus-mod {
  background: var(--bg-2);
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-button);
  padding: 18px 16px 16px;
  position: relative;
  min-height: 140px;
  display: flex;
  flex-direction: column;
}
.focus-mark {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  color: var(--text-1);
  margin-bottom: 10px;
  line-height: 1.1;
}
.focus-tail {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-3);
  letter-spacing: 0.01em;
  flex: 1;
}

/* Layer 3 — Bridges + SEWP */
.layer-top-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.layer-top-int {
  background: var(--surface-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 26px 30px 22px;
  box-shadow: var(--shadow-card);
}
.layer-sub { margin-bottom: 16px; }
.layer-sub-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.layer-sub-lede {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}
.bridge-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.bridge-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
}
.bridge-list li:first-child { border-top: 1px solid var(--line); }
.bridge-arrow {
  width: 28px; height: 28px;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-button);
  flex-shrink: 0;
}
.bridge-arrow svg { width: 13px; height: 13px; stroke: currentColor; }
.bridge-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}
.bridge-text strong {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.005em;
  font-size: 14px;
}
.layer-top-sewp {
  background: var(--text-1);
  color: var(--invert-text);
  border-radius: var(--radius-card);
  padding: 26px 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.layer-top-sewp::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 90px; height: 90px;
  background: linear-gradient(135deg, transparent 50%, var(--accent) 50%);
  opacity: 0.85;
}
.sewp-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}
.sewp-title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1;
  margin-bottom: 16px;
  color: var(--invert-text);
}
.sewp-title em { color: var(--accent); }
.sewp-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--invert-text-2);
  margin-bottom: 16px;
  max-width: 38ch;
}
.sewp-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; gap: 10px; align-items: center;
  font-weight: 600;
}
.sewp-mono .dot { color: rgba(255,255,255,0.4); }

/* Layered Stack — Lobby theme */
.theme-lobby .stack-layered { background: #f4f1ec; }
.theme-lobby .layer-rail { border-right-color: #b3a586; }
.theme-lobby .layer-rail::after {
  background: #8a7d62;
  border-color: #f4f1ec;
  border-radius: 0;
}
.theme-lobby .layer-tag { color: #8a7d62; }
.theme-lobby .layer-name { font-weight: 400; color: #1a1e26; }
.theme-lobby .layer-base-body { background: #1a1e26; border-radius: 0; }
.theme-lobby .base-head-mark { font-weight: 300; color: #f4f1ec; }
.theme-lobby .base-head-sub { color: rgba(244,241,236,0.7); }
.theme-lobby .base-chips li { border-radius: 0; color: rgba(244,241,236,0.78); border-color: rgba(244,241,236,0.18); }
.theme-lobby .base-chips li.more { color: #b3a586; border-color: #b3a586; }
.theme-lobby .layer-mid-body { background: #ebe6dd; border: 1px solid #d9d4cb; border-radius: 0; box-shadow: none; }
.theme-lobby .layer-mid-intro { color: #6b6147; font-style: italic; }
.theme-lobby .focus-mod { background: #f4f1ec; border: 1px solid #d9d4cb; border-top: 2px solid #8a7d62; border-radius: 0; }
.theme-lobby .focus-mark { font-weight: 400; color: #1a1e26; }
.theme-lobby .focus-tail { color: #6b6147; }
.theme-lobby .layer-top-int { background: #ebe6dd; border: 1px solid #d9d4cb; border-radius: 0; box-shadow: none; }
.theme-lobby .layer-sub-eyebrow { color: #8a7d62; }
.theme-lobby .bridge-arrow { border-radius: 0; border-color: #8a7d62; color: #8a7d62; }
.theme-lobby .bridge-text strong { font-weight: 500; color: #1a1e26; }
.theme-lobby .layer-top-sewp { background: #1a1e26; border-radius: 0; }
.theme-lobby .layer-top-sewp::before { background: linear-gradient(135deg, transparent 50%, #b3a586 50%); }
.theme-lobby .sewp-badge { color: #b3a586; }
.theme-lobby .sewp-title { color: #f4f1ec; font-weight: 300; }
.theme-lobby .sewp-title em { color: #b3a586; font-weight: 500; }
.theme-lobby .sewp-body { color: rgba(244,241,236,0.72); }
.theme-lobby .sewp-mono { color: #b3a586; }

/* Layered Stack — Corporate theme */
.theme-corporate .stack-layered { background: #f8fafc; }
.theme-corporate .layer-rail { border-right-color: #226DB4; }
.theme-corporate .layer-rail::after { background: #226DB4; border-color: #f8fafc; }
.theme-corporate .layer-tag { color: #226DB4; }
.theme-corporate .layer-name { color: #1e293b; font-weight: 700; }
.theme-corporate .layer-base-body { background: #1e293b; border-radius: 14px; }
.theme-corporate .base-head-mark { color: #ffffff; font-weight: 800; }
.theme-corporate .base-head-sub { color: rgba(255,255,255,0.75); }
.theme-corporate .base-chips li { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.22); }
.theme-corporate .base-chips li.more { background: #226DB4; color: #ffffff; border-color: #226DB4; font-weight: 700; }
.theme-corporate .layer-mid-body { background: #ffffff; border-radius: 14px; border-color: #e2e8f0; }
.theme-corporate .focus-mod { background: #f8fafc; border: 1px solid #e2e8f0; border-top: 3px solid #226DB4; border-radius: 10px; }
.theme-corporate .focus-mark { color: #1e293b; font-weight: 700; }
.theme-corporate .focus-tail { color: #64748b; }
.theme-corporate .layer-top-int { background: #ffffff; border-radius: 14px; border-color: #e2e8f0; }
.theme-corporate .layer-sub-eyebrow { color: #226DB4; }
.theme-corporate .bridge-arrow { border-color: #226DB4; color: #226DB4; background: #e8f1fa; }
.theme-corporate .bridge-text strong { color: #1e293b; font-weight: 700; }
.theme-corporate .layer-top-sewp { background: #1e293b; border-radius: 14px; box-shadow: 0 14px 32px rgba(30,41,59,0.18); }
.theme-corporate .layer-top-sewp::before { background: linear-gradient(135deg, transparent 50%, #226DB4 50%); }
.theme-corporate .sewp-badge { color: #60a5fa; }
.theme-corporate .sewp-title { color: #ffffff; font-weight: 800; }
.theme-corporate .sewp-title em { color: #60a5fa; font-style: normal; }
.theme-corporate .sewp-body { color: rgba(255,255,255,0.85); }
.theme-corporate .sewp-mono { color: #60a5fa; }
.theme-corporate .sewp-mono .dot { color: rgba(255,255,255,0.4); }

/* =====  PROCESS STRIP (Discover/Align/Build/Measure) — unchanged  ===== */
.process {
  background: var(--why-bg);
  padding: var(--section-pad-y) 0;
  border-top: 1px solid var(--line);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  position: relative;
}
.process-step {
  position: relative;
  padding-right: 14px;
}
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  right: -18px;
  width: 1px;
  height: calc(100% - 24px);
  background: var(--line);
  opacity: 0.7;
}
.process-num {
  font-family: var(--font-display);
  font-style: var(--em-style);
  font-size: 28px;
  font-weight: var(--display-weight);
  color: var(--accent);
  margin-bottom: 18px;
  line-height: 1;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: var(--display-tracking);
  font-weight: var(--display-weight);
  color: var(--text-1);
  margin-bottom: 12px;
}
.process-step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ============================================================
   FIX — CTA-band secondary button on Corporate theme
   theme-corporate.css gives .btn-secondary a white background;
   on the dark .cta-band that produces a white-on-white invisible
   button. Restore transparent bg so the inv-styled white text +
   thin border read against the blue CTA band.
   ============================================================ */
.theme-corporate .cta-band .btn-secondary { background: transparent; }
.theme-corporate .cta-band .btn-secondary.inv:hover { background: rgba(255,255,255,0.1); }
