/* ================= Solution page template (Local / National) ================= */

/* Story Builder deck visual */
.sv-deck { position: relative; width: 82%; aspect-ratio: 4 / 3; }
.sv-slide { position: absolute; inset: 0; border-radius: 14px; background: #fff; border: 1px solid var(--border); box-shadow: 0 18px 44px rgba(10,32,92,.12); }
.sv-s3 { transform: translate(26px, 26px) rotate(3deg); opacity: .5; }
.sv-s2 { transform: translate(13px, 13px) rotate(1.5deg); opacity: .8; }
.sv-s1 { padding: 20px; display: flex; flex-direction: column; gap: 10px; animation: svrise .9s var(--ease) both; }
@keyframes svrise { from { transform: translateY(10px); opacity: 0; } }
.sv-row { display: flex; align-items: center; justify-content: space-between; }
.sv-wm { position: relative; display: inline-block; width: 22px; height: 17px; }
.sv-wm i { position: absolute; left: 0; height: 2.2px; border-radius: 2px; background: var(--grad); }
.sv-wm i:nth-child(1){top:0;width:22px} .sv-wm i:nth-child(2){top:5px;width:17px} .sv-wm i:nth-child(3){top:10px;width:12px} .sv-wm i:nth-child(4){top:15px;width:7px}
.sv-tag { font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-vibrant); background: #DEEAF7; padding: 4px 9px; border-radius: 999px; }
.sv-title { height: 16px; width: 68%; border-radius: 5px; background: linear-gradient(90deg, #0A205C, #2667D8); }
.sv-sub { height: 9px; width: 88%; border-radius: 4px; background: var(--surface-alt); }
.sv-bars { margin-top: auto; display: flex; align-items: flex-end; gap: 10px; height: 46%; }
.sv-bars span { flex: 1; border-radius: 5px 5px 0 0; background: var(--grad); animation: spgrow 1s var(--ease) backwards; }
.sv-bars span:nth-child(2){animation-delay:.08s} .sv-bars span:nth-child(3){animation-delay:.16s} .sv-bars span:nth-child(4){animation-delay:.24s} .sv-bars span:nth-child(5){animation-delay:.32s}

/* Data Explorer panel visual */
.dv-panel { position: relative; width: 100%; height: 100%; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 44px rgba(10,32,92,.12); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.dv-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.dv-pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-size: 11.5px; font-weight: 500; color: var(--text-3); background: var(--surface-alt); border: 1px solid var(--border); padding: 6px 11px; border-radius: 999px; }
.dv-pill span { width: 7px; height: 7px; border-radius: 999px; background: var(--n3); }
.dv-pill.on { color: var(--brand-dark); background: #DEEAF7; border-color: var(--brand-pale); }
.dv-pill.on span { background: var(--accent); }
.dv-chart { width: 100%; flex: 1; min-height: 0; }
.dv-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dv-cells span { height: 34px; border-radius: 8px; background: var(--surface-alt); border: 1px solid var(--border); }

/* Hero */
/* Hero */
.sp-hero {
  position: relative;
  padding-top: 150px;
  padding-bottom: clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.sp-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(58% 55% at 82% 6%, rgba(149,185,255,.36), transparent 60%),
    radial-gradient(52% 55% at 4% 100%, rgba(220,232,255,.62), transparent 60%);
  pointer-events: none;
}
.sp-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 980px) { .sp-hero-grid { grid-template-columns: 1fr; } }
.sp-hero h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.02; font-weight: 600; letter-spacing: -0.03em; color: var(--text);
  margin-top: 22px;
}
.sp-hero h1 .grad-text { display: block; }
.sp-hero p.lede { margin-top: 22px; max-width: 52ch; }
.sp-hero-ctas { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.sp-hero-meta { margin-top: 30px; display: flex; gap: 26px; flex-wrap: wrap; }
.sp-hero-meta .m .k {
  font-family: var(--font-display); font-size: 11.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--text-3); font-weight: 500;
}
.sp-hero-meta .m .v {
  font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px);
  font-weight: 600; letter-spacing: -.03em; color: var(--text); margin-top: 4px;
  font-feature-settings: "tnum";
}
.sp-hero-meta .m .v .grad-text { display: inline; }

/* Hero stage — map for local, national grid for national */
.sp-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 540px;
  justify-self: end;
}
@media (max-width: 980px) { .sp-stage { justify-self: center; margin-top: 12px; } }
.sp-map {
  position: absolute; inset: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: radial-gradient(130% 80% at 50% 0%, #EAF1FA, #fff 72%);
  border: 1px solid var(--border-2);
  box-shadow: 0 30px 80px rgba(10,32,92,.14);
}
.sp-map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(38,103,216,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(38,103,216,.07) 1px, transparent 1px);
  background-size: 38px 38px;
}
.sp-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.sp-chip-card {
  position: absolute;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 12px 15px; box-shadow: 0 12px 34px rgba(10,32,92,.12);
  z-index: 3; white-space: nowrap;
}
.sp-chip-card .h { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 600; margin-bottom: 6px; }
.sp-chip-card .h .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 4px rgba(90,204,155,.2); animation: pulse 2s infinite; }
.sp-chip-card .v { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--text); letter-spacing: -.02em; }
.sp-chip-card .v .u { font-size: 12px; color: var(--text-3); font-weight: 500; margin-left: 3px; }
.sp-cc-tl { top: 6%; left: -7%; animation: nfloat 7s ease-in-out infinite; }
.sp-cc-br { bottom: 8%; right: -6%; animation: nfloat 7s ease-in-out infinite .9s; }
@media (max-width: 1100px) { .sp-cc-tl { left: 0; } .sp-cc-br { right: 0; } }

.sp-pin { position: absolute; width: 12px; height: 12px; border-radius: 999px; background: var(--brand-bright); z-index: 2; }
.sp-pin::after { content: ""; position: absolute; inset: 3.5px; border-radius: 999px; background: #fff; }
.sp-pin.g { background: var(--accent); } .sp-pin.d { background: var(--brand-dark); }

/* Problem → shift band */
.sp-shift {
  padding: clamp(64px, 8vw, 104px) 0;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sp-shift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: stretch; }
@media (max-width: 820px) { .sp-shift-grid { grid-template-columns: 1fr; } }
.sp-shift-card {
  border-radius: var(--r-lg); padding: 30px 30px; border: 1px solid var(--border);
}
.sp-shift-card.old { background: #fff; }
.sp-shift-card.new {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: 0 24px 56px rgba(38,103,216,.24);
}
.sp-shift-card .tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  padding: 5px 11px; border-radius: var(--r-pill); margin-bottom: 18px;
}
.sp-shift-card.old .tag { background: var(--surface-alt); color: var(--text-3); border: 1px solid var(--border); }
.sp-shift-card.new .tag { background: rgba(255,255,255,.16); color: #fff; }
.sp-shift-card h3 { font-size: 22px; }
.sp-shift-card.new h3 { color: #fff; }
.sp-shift-card ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sp-shift-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.sp-shift-card.new li { color: rgba(255,255,255,.9); }
.sp-shift-card li .ic { flex-shrink: 0; width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; margin-top: 1px; }
.sp-shift-card.old li .ic { background: var(--surface-alt); color: var(--n4); }
.sp-shift-card.new li .ic { background: rgba(255,255,255,.2); color: #fff; }

/* Benefits grid */
.sp-benefits { padding: clamp(72px, 8vw, 116px) 0; }
.sp-benefits .sec-head { margin-bottom: 52px; }
.sp-ben-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .sp-ben-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sp-ben-grid { grid-template-columns: 1fr; } }
.sp-ben {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px 26px; box-shadow: 0 10px 30px rgba(10,32,92,.05);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.sp-ben:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(10,32,92,.10); }
.sp-ben .chip { margin-bottom: 18px; }
.sp-ben h3 { font-size: 19px; }
.sp-ben p { margin-top: 10px; font-size: 14.5px; line-height: 1.55; color: var(--text-3); }

/* Workflow / use-cases split */
.sp-use {
  padding: clamp(72px, 8vw, 116px) 0;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}
.sp-use-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .sp-use-grid { grid-template-columns: 1fr; } }
.sp-use-list { margin-top: 26px; display: flex; flex-direction: column; gap: 8px; }
.sp-use-item {
  display: flex; gap: 15px; align-items: flex-start; padding: 16px;
  border-radius: var(--r-md); transition: background .2s var(--ease);
}
.sp-use-item:hover { background: var(--surface-alt); }
.sp-use-item .chip { width: 42px; height: 42px; border-radius: 12px; }
.sp-use-item h4 { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--text); }
.sp-use-item p { margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--text-3); }

/* Pitch mock (reuses .ti-frame styles from intelligence.css if present; define fallback) */
.sp-pitch {
  position: relative; border-radius: var(--r-xl); background: #fff;
  border: 1px solid var(--border-2); box-shadow: 0 30px 80px rgba(10,32,92,.13); overflow: hidden;
}
.sp-pitch-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-alt); }
.sp-pitch-bar .dots { display: flex; gap: 6px; } .sp-pitch-bar .dots i { width: 9px; height: 9px; border-radius: 999px; background: var(--border-2); }
.sp-pitch-bar .t { font-family: var(--font-display); font-size: 12px; color: var(--text-3); font-weight: 500; margin-left: 4px; display: flex; align-items: center; gap: 8px; }
.sp-pitch-body { padding: 20px; }
.sp-pitch-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text); }
.sp-pitch-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; margin-bottom: 16px; }
.sp-pitch-bars { display: flex; align-items: end; gap: 10px; height: 130px; padding-top: 10px; border-bottom: 1px solid var(--border); }
.sp-pitch-bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.sp-pitch-bars .bar { width: 100%; border-radius: 6px 6px 0 0; background: var(--surface-alt); position: relative; overflow: hidden; }
.sp-pitch-bars .bar i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--grad); border-radius: 6px 6px 0 0; animation: spgrow 1.1s var(--ease) backwards; }
@keyframes spgrow { from { height: 0 !important; } }
.sp-pitch-bars .lab { font-family: var(--font-display); font-size: 10.5px; color: var(--text-3); font-weight: 500; }
.sp-pitch-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.sp-pitch-foot .pill { font-family: var(--font-mono); font-size: 11px; color: var(--brand-vibrant); background: var(--surface-alt); border: 1px solid var(--border); border-radius: 999px; padding: 5px 10px; }
.sp-pitch-foot .pill.g { color: #1F7A4D; background: rgba(90,204,155,.1); border-color: rgba(90,204,155,.28); }

/* Proof strip */
.sp-proof { padding: clamp(64px, 8vw, 100px) 0; }
.sp-proof-inner {
  border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px);
  background: radial-gradient(70% 100% at 100% 0%, rgba(90,204,155,.14), transparent 60%), var(--surface-2);
  border: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
}
@media (max-width: 760px) { .sp-proof-inner { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.sp-proof .stat .n { font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); font-weight: 600; letter-spacing: -.03em; color: var(--text); line-height: 1; font-feature-settings: "tnum"; }
.sp-proof .stat .n .grad-text { display: inline; }
.sp-proof .stat .k { margin-top: 10px; font-size: 13.5px; color: var(--text-3); line-height: 1.5; }
