/* solutions.css — the /solutions page. Loaded after shell.css and uses its
   --sh-* tokens; nothing here restyles the shell. */

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--sh-void); color: var(--sh-signal);
  font: 400 16px/1.6 var(--sh-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: 16px; }
.mono { font-family: var(--sh-mono); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
.muted { color: var(--sh-muted); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  padding: calc(var(--sh-nav-h) + var(--sh-nav-top) + clamp(48px, 9vw, 110px)) 0 clamp(48px, 8vw, 96px);
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 0; z-index: -1;
  background:
    linear-gradient(var(--sh-line-soft) 1px, transparent 1px) 0 0 / 100% 96px,
    linear-gradient(90deg, var(--sh-line-soft) 1px, transparent 1px) 0 0 / 96px 100%;
  -webkit-mask-image: radial-gradient(70% 80% at 30% 20%, #000, transparent 78%);
  mask-image: radial-gradient(70% 80% at 30% 20%, #000, transparent 78%);
}
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--sh-muted); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--sh-muted); }
.hero h1 {
  margin: 22px 0 28px; max-width: 13ch; text-wrap: balance;
  font: 300 clamp(40px, 8.4vw, 112px)/.98 var(--sh-display); letter-spacing: -.035em;
}
h1 em, h2 em { font: italic 300 1em/1 var(--sh-accent); color: var(--sh-paper); letter-spacing: -.02em; }
.lead { margin: 0 0 36px; max-width: 56ch; color: var(--sh-slate); font-size: clamp(17px, 2vw, 20px); }
.stamp { margin-top: 56px; display: flex; flex-wrap: wrap; border-top: 1px solid var(--sh-line); }
.stamp > div { flex: 1 1 220px; padding: 18px 16px 0 0; display: grid; gap: 6px; align-content: start; }
.stamp b { font: 300 34px/1 var(--sh-display); letter-spacing: -.02em; }
/* Ember marks time and cost (ADR-026); the figure is the point. */
.stamp b.cost, .proof b { color: rgb(var(--sh-ember-rgb)); }
.stamp span { color: var(--sh-muted); font-size: 13px; }

.rise { animation: rise .9s var(--sh-ease) both; }
.hero .rise:nth-child(2) { animation-delay: .08s; }
.hero .rise:nth-child(3) { animation-delay: .16s; }
.hero .rise:nth-child(4) { animation-delay: .24s; }
.hero .rise:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- service blocks ---------- */
.svc {
  padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--sh-line);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 88px);
}
.svc .kicker { margin-bottom: 18px; color: var(--sh-muted); }
.svc h2 { margin: 0 0 20px; text-wrap: balance; font: 300 clamp(30px, 4.6vw, 56px)/1.03 var(--sh-display); letter-spacing: -.025em; }
.svc p { margin: 0 0 16px; max-width: 52ch; color: var(--sh-slate); }
.does { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--sh-line); align-self: start; }
.does li { display: grid; grid-template-columns: 116px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--sh-line); }
.does li > span { color: var(--sh-muted); font: 400 11px/1.9 var(--sh-mono); letter-spacing: .14em; text-transform: uppercase; }
.does li > div { color: var(--sh-slate); }
.does b { color: var(--sh-signal); font-weight: 500; }
.proof { margin-top: 28px; padding: 4px 0 4px 20px; max-width: 46ch; border-left: 1px solid rgb(var(--sh-ember-rgb) / .6); }
.proof b { display: block; font: 300 44px/1 var(--sh-display); letter-spacing: -.02em; }
.proof span { display: block; margin-top: 8px; color: var(--sh-slate); font-size: 14px; }

.pair { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--sh-line); }
.pair .svc { grid-template-columns: 1fr; gap: 0; border-top: 0; align-content: start; }
.pair .svc:first-child { padding-right: clamp(20px, 4vw, 56px); border-right: 1px solid var(--sh-line); }
.pair .svc:last-child { padding-left: clamp(20px, 4vw, 56px); }
.pair .does { margin-top: 26px; }
.pair .does li { grid-template-columns: 96px 1fr; }

/* ---------- the diagnosis walk (the page's one signature moment) ---------- */
.diag { padding: clamp(48px, 7vw, 88px) 0 40px; border-top: 1px solid var(--sh-line); }
.diag-head { display: grid; gap: 14px; max-width: 60ch; margin-bottom: 34px; }
.diag-head h2 { margin: 0; text-wrap: balance; font: 300 clamp(26px, 3.6vw, 42px)/1.08 var(--sh-display); letter-spacing: -.02em; }
.diag-head p { margin: 0; color: var(--sh-slate); }
.diag-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 6vw, 80px); align-items: start; }
.map {
  position: sticky; top: calc(var(--sh-nav-h) + var(--sh-nav-top) + 28px);
  padding: 26px 24px 22px; border: 1px solid var(--sh-line); border-radius: 18px;
  background: linear-gradient(180deg, var(--sh-surface), #0F0F0F);
}
.map-cap { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 20px; color: var(--sh-muted); }
.chain { list-style: none; margin: 0; padding: 0; }
.node { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: center; padding: 12px 0; transition: opacity .45s; }
.node::before { content: ""; position: absolute; left: 16.5px; top: -22px; height: 44px; width: 1px; background: var(--sh-line); }
.node:first-child::before { display: none; }
.glyph { position: relative; display: grid; place-items: center; width: 34px; height: 34px; }
.glyph i { display: block; width: 16px; height: 16px; transition: box-shadow .45s; }
.t-auto .glyph i { border-radius: 50%; background: var(--sh-signal); }
.t-gate .glyph i { width: 15px; height: 15px; border: 1.5px solid var(--sh-signal); transform: rotate(45deg); }
.t-hand .glyph i { border-radius: 50%; border: 1.5px dashed var(--sh-slate); }
.lbl { font-size: 15px; line-height: 1.3; }
.lbl small { display: block; color: var(--sh-muted); font: 400 10.5px/1.6 var(--sh-mono); letter-spacing: .14em; text-transform: uppercase; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--sh-line); color: var(--sh-muted); font-size: 12px; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i, .verdict i { display: inline-block; width: 10px; height: 10px; }
.lg-a { border-radius: 50%; background: var(--sh-signal); }
.legend .lg-g, .verdict .lg-g { width: 9px; height: 9px; border: 1.5px solid var(--sh-signal); transform: rotate(45deg); }
.lg-h { border-radius: 50%; border: 1.5px dashed var(--sh-slate); }

.steps { display: grid; }
.pstep { display: grid; gap: 10px; align-content: start; min-height: min(46vh, 380px); padding: 8px 0 44px; transition: opacity .45s; }
.pstep .n { color: var(--sh-muted); }
.pstep h3 { margin: 0; font: 300 clamp(22px, 2.6vw, 30px)/1.15 var(--sh-display); letter-spacing: -.01em; }
.pstep p { margin: 0; max-width: 46ch; color: var(--sh-slate); }
.verdict { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font: 500 11px/1 var(--sh-mono); letter-spacing: .14em; text-transform: uppercase; }

/* No JS, reduced motion or a phone: every node and step is fully lit. The
   markup is the fallback (same rule as #frases on the sales page); the
   script only adds .dg-live, which is what dims the inactive ones. */
.dg-live .node { opacity: .28; }
.dg-live .node.is-done { opacity: .6; }
.dg-live .node.is-on { opacity: 1; }
.dg-live .node.is-on .glyph i { box-shadow: 0 0 0 6px rgb(245 245 240 / .08); }
.dg-live .pstep { opacity: .3; }
.dg-live .pstep.is-on { opacity: 1; }

@media (max-width: 819px) {
  .svc, .diag-grid, .pair { grid-template-columns: 1fr; }
  .map { position: static; }
  .pstep { min-height: 0; padding-bottom: 26px; }
  .dg-live .node, .dg-live .pstep { opacity: 1; }
  .pair .svc:first-child { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--sh-line); }
  .pair .svc:last-child { padding-left: 0; }
  .does li { grid-template-columns: 1fr; gap: 4px; }
  .pair .does li { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  .node, .pstep, .glyph i { transition: none; }
  .map { position: static; }
}
