/* Public software demonstrations; scoped separately from the shared site styles. */
.software-showcase { padding: 42px 44px 52px; background: radial-gradient(ellipse at 85% 0%, #e3eddf, transparent 60%), #f3f6f1; }
.showcase-intro { max-width: var(--max); margin: 0 auto 30px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: end; }
.showcase-intro h1 { max-width: none; color: #152b2a; font-size: clamp(2.1rem, 3.7vw, 3.6rem); line-height: 1.08; letter-spacing: -.035em; }
.showcase-intro h1 span { color: #386b36; }
.showcase-intro .eyebrow { margin-bottom: 12px; color: #386b36; }
.showcase-lead > p { margin: 0 0 18px; max-width: 48ch; color: #415651; font-size: 1.02rem; }
.demo-jump-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.demo-jump-links a { color: #2c603d; font-size: .82rem; font-weight: 750; text-underline-offset: 5px; }
.live-demo { width: min(var(--max), 100%); margin: 0 auto; border: 1px solid #cddbd2; border-radius: 16px; background: #fff; box-shadow: 0 12px 40px #17352b0c; overflow: hidden; scroll-margin-top: 110px; }
.demo-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 25px 28px 22px; }
.demo-kicker { color: #376848; font-size: .72rem; line-height: 1.4; text-transform: uppercase; letter-spacing: .085em; font-weight: 800; margin: 0 0 8px; }
.demo-heading h2 { font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.15; letter-spacing: -.025em; }
.demo-heading p:not(.demo-kicker) { margin: 9px 0 0; color: #52645d; font-size: .92rem; max-width: 70ch; }
.demo-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 17px; border: 1px solid #abbeb0; border-radius: 7px; background: #fff; color: #23422e; cursor: pointer; font-family: inherit; font-size: .85rem; font-weight: 750; line-height: 1.4; text-align: center; transition: background .15s; }
.demo-button:hover { background: #eaf2e8; }
.demo-button.demo-primary { background: #28573b; border-color: #28573b; color: #fff; }
.demo-button.demo-primary:hover { background: #1a422a; }
.demo-heading > .demo-button { flex: 0 0 auto; }
.live-demo :is(button, a, input, select, summary, [tabindex]):focus-visible, .demo-jump-links a:focus-visible { outline: 3px solid #186baf; outline-offset: 4px; }
.cleanup-workspace { display: grid; grid-template-columns: .9fr 1.1fr; border-block: 1px solid #dce5de; }
.sheet-panel { min-width: 0; background: #fafcf9; border-right: 1px solid #dce5de; display: flex; flex-direction: column; }
.panel-label { min-height: 44px; padding: 12px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: #354c42; font-size: .78rem; }
.panel-label > span { color: #5d6b63; font-size: .72rem; }
.sheet-scroll { height: 265px; overflow: auto; overscroll-behavior: contain; border-block: 1px solid #dce5de; }
.demo-sheet { width: 100%; border-collapse: collapse; text-align: left; font-size: .78rem; line-height: 1.35; }
.demo-sheet th { position: sticky; top: 0; z-index: 1; background: #edf2ec; color: #4c6054; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.demo-sheet :is(th, td) { padding: 10px 14px; border-bottom: 1px solid #e3eae3; }
.demo-sheet td:first-child { font-weight: 650; }
.demo-sheet tr.row-review td { background: #fff3df; }
.demo-sheet tr.row-duplicate td { color: #6b5643; background: #f9f2eb; }
.row-status { font-size: .68rem; font-weight: 650; white-space: nowrap; }
.row-review .row-status { color: #804b07; }
.row-valid .row-status { color: #326343; }
.sheet-switch { display: flex; align-items: center; gap: 6px; padding: 10px 14px; margin-top: auto; }
.sheet-switch button { padding: 7px 12px; min-height: 36px; cursor: pointer; border: 1px solid transparent; border-radius: 5px; font-size: .73rem; font-weight: 650; font-family: inherit; background: transparent; color: #4a5c50; }
.sheet-switch button[aria-pressed="true"] { color: #28573b; background: #e4efdf; border-color: #a7bba3; }
.map-panel { min-width: 0; background: #edf3eb; }
.demo-map { position: relative; width: 100%; overflow: hidden; }
.demo-map svg { width: 100%; height: auto; aspect-ratio: 600 / 360; fill: none; stroke: none; font-family: inherit; }
.cleanup-demo .demo-map svg { max-height: 285px; }
.map-key { min-height: 38px; padding: 8px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; color: #475e50; font-size: .68rem; }
.map-key span { display: inline-flex; align-items: center; gap: 7px; }
.map-key i { display: inline-block; width: 10px; height: 10px; flex-shrink: 0; }
.key-point { border-radius: 100%; background: #2c6547; border: 2px solid white; box-shadow: 0 0 0 1px #2c6547; }
.key-area { background: #f8cd91; border: 1px solid #9c520e; }
.key-hit { background: #8f440c; transform: rotate(45deg); }
.cleanup-footer { padding: 18px 26px 20px; }
.cleanup-steps { display: flex; gap: 5px; padding: 0; margin: 0 0 10px; list-style: none; counter-reset: steps; }
.cleanup-steps li { flex: 1; padding: 6px 9px; font-size: .71rem; font-weight: 650; color: #506252; border-top: 3px solid #dce5d8; }
.cleanup-steps li::before { counter-increment: steps; content: counter(steps) ". "; }
.cleanup-steps li.is-complete { border-color: #478254; color: #2e653e; }
.cleanup-steps li.is-active { background: #eff5e9; }
.demo-caption { color: #4c5f54; font-size: .8rem; line-height: 1.55; margin: 10px 0; }
.cleanup-footer > .demo-caption { min-height: 25px; }
.demo-bottom-line { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.result-counts { display: flex; gap: 24px; }
.result-counts span { color: #576858; font-size: .73rem; }
.result-counts strong { color: #244e34; font-size: 1.3rem; padding-right: 4px; }
.download-links { display: flex; flex-wrap: wrap; gap: 5px 17px; }
.download-links button { padding: 7px 0; border: 0; background: none; font-family: inherit; font-weight: 700; font-size: .74rem; color: #2c6340; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.demo-explanation { margin-top: 13px; font-size: .76rem; color: #4b5f50; }
.demo-explanation summary { cursor: pointer; width: fit-content; padding: 5px 0; }
.demo-explanation ul { padding-left: 20px; }
.demo-section { padding: 28px 44px 52px; scroll-margin-top: 90px; }
.storm-section { background: #e6ede6; padding-top: 48px; }
.scenario-badge { font-size: .7rem; font-weight: 700; color: #79460f; background: #fff1d9; border: 1px solid #e8cea5; border-radius: 5px; padding: 8px 12px; flex-shrink: 0; }
.storm-workspace { display: grid; grid-template-columns: 1.7fr 1fr; border-top: 1px solid #dce5de; }
.storm-map-column { min-width: 0; background: #edf3eb; border-right: 1px solid #dce5de; }
.storm-map-column .demo-map { padding: 8px 8px 0; }
.storm-controls { display: flex; align-items: center; gap: 20px; padding: 18px 22px; background: #f4f7f1; border-top: 1px solid #d7e2d5; }
.storm-controls button { flex: 0 0 132px; }
.slider-wrap { flex: 1; min-width: 0; }
.live-demo label { display: block; font-size: .77rem; font-weight: 700; color: #3b5544; margin-bottom: 8px; }
.slider-wrap input { width: 100%; min-height: 28px; accent-color: #2d603e; cursor: pointer; margin: 0; }
.impact-panel { padding: 24px; background: #fbfcf9; }
.live-demo select { width: 100%; min-height: 44px; padding: 9px 30px 9px 12px; border: 1px solid #a9bdac; border-radius: 6px; color: #2d4836; background: #fff; font-family: inherit; font-size: .85rem; }
.impact-number { display: flex; align-items: center; gap: 16px; margin: 22px 0 10px; }
.impact-number strong { font-size: 4rem; line-height: 1; font-weight: 750; color: #82440f; letter-spacing: -.06em; }
.impact-number span { max-width: 14ch; font-size: .9rem; line-height: 1.4; color: #4b5b4d; }
.impact-list { list-style: none; margin: 18px 0; padding: 0; min-height: 135px; }
.impact-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #dce5d9; font-size: .83rem; color: #304a36; }
.impact-list small { color: #5c6c5e; font-size: .7rem; }
.impact-list .empty-impact { line-height: 1.6; border: 0; color: #5d6b5d; }
.demo-footnote { border-top: 1px solid #dce5de; padding: 15px 24px; color: #5c695c; background: #fafcf8; font-size: .73rem; }
.briefing-section { padding-top: 48px; background: #f1f3ed; }
.briefing-workspace { display: grid; grid-template-columns: .78fr 1.22fr; border-top: 1px solid #dce5de; }
.briefing-controls { padding: 28px; }
.briefing-inputs { margin: 26px 0; }
.briefing-inputs > div { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #e1e7dc; }
.briefing-inputs > div > span { font-size: .8rem; font-weight: 750; padding: 8px; background: #edf3e8; border-radius: 5px; color: #426542; }
.briefing-inputs p { margin: 0; }
.briefing-inputs strong { display: block; color: #324c39; font-size: .85rem; }
.briefing-inputs small { display: block; margin-top: 4px; color: #61705f; font-size: .73rem; }
.briefing-controls > button { width: 100%; margin-bottom: 9px; }
.briefing-controls > .demo-caption { min-height: 40px; }
.briefing-exports { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.briefing-exports button { font-size: .75rem; padding-inline: 9px; }
.export-note { font-size: .7rem; line-height: 1.6; color: #5f6d60; }
.report-stage { padding: 28px; background: #e8ece3; }
.briefing-report { padding: 28px; background: #fffefa; border: 1px solid #d2d8ca; box-shadow: 0 7px 20px #1f392312; color: #243c2c; }
.report-masthead { display: flex; justify-content: space-between; gap: 15px; border-bottom: 2px solid #2e5c3a; padding-bottom: 12px; margin-bottom: 20px; }
.report-masthead strong { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.report-masthead span { font-size: .62rem; color: #79501a; }
.briefing-report h3 { font-size: 1.55rem; line-height: 1.15; letter-spacing: -.025em; }
.report-subtitle { color: #5c6b5a; font-size: .72rem; margin: 8px 0 16px; }
.report-summary { font-size: .83rem; line-height: 1.6; }
.report-metrics { display: flex; gap: 18px; padding: 12px 0; border-block: 1px solid #dce4d6; margin: 16px 0; }
.report-metrics div { flex: 1; }
.report-metrics strong { display: block; font-size: 1.45rem; line-height: 1.2; }
.report-metrics span { font-size: .65rem; color: #596b55; }
.report-map svg { width: 100%; height: auto; aspect-ratio: 600 / 360; stroke: none; fill: none; }
.report-list { margin-top: 16px; }
.report-list h4 { margin: 0 0 8px; font-size: .8rem; }
.report-list ul { list-style: none; padding: 0; margin: 0; }
.report-list li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .74rem; border-bottom: 1px solid #e4e8df; }
.report-list li span { color: #596b55; }
.report-note { color: #606e5c; font-size: .65rem; line-height: 1.6; margin: 16px 0 0; }
.report-part { transition: opacity .35s, transform .35s; }
.report-part.is-pending { opacity: .15; transform: translateY(6px); }
.demo-noscript { max-width: var(--max); margin: 20px auto; color: #3a593e; }
@media (min-width: 1500px) { .software-showcase { padding-top: 48px; } }
@media (max-width: 1000px) {
  .showcase-intro { gap: 24px; }
  .demo-heading { align-items: flex-start; }
  .demo-heading .scenario-badge { max-width: 180px; flex-shrink: 1; }
  .demo-bottom-line { align-items: flex-start; flex-direction: column; gap: 9px; }
  .demo-sheet :is(th, td) { padding-inline: 9px; }
  .briefing-workspace { grid-template-columns: .85fr 1.15fr; }
  .report-stage, .briefing-controls { padding: 20px; }
  .briefing-report { padding: 20px; }
}
@media (max-width: 760px) {
  .software-showcase { padding: 26px 16px 32px; }
  .showcase-intro { grid-template-columns: 1fr; gap: 14px; margin-bottom: 24px; }
  .showcase-intro .eyebrow { font-size: .68rem; margin-top: 0; margin-bottom: 9px; }
  .showcase-intro h1 { font-size: clamp(2rem, 7vw, 3rem); }
  .showcase-lead > p { font-size: .87rem; margin-bottom: 14px; }
  .demo-jump-links { gap: 8px 14px; }
  .demo-jump-links a { font-size: .72rem; }
  .demo-heading { flex-wrap: wrap; padding: 20px; gap: 16px; }
  .demo-heading h2 { font-size: 1.45rem; }
  .demo-heading p:not(.demo-kicker) { font-size: .82rem; }
  .demo-heading .demo-kicker { font-size: .65rem; }
  .cleanup-workspace { grid-template-columns: 1fr; }
  .map-panel { grid-row: 1; }
  .cleanup-demo .demo-map svg { max-height: none; }
  .sheet-panel { border-right: 0; border-top: 1px solid #dce5de; }
  .sheet-scroll { height: 178px; }
  .demo-sheet { font-size: .76rem; }
  .demo-sheet :is(th, td) { padding: 9px 12px; }
  .cleanup-footer { padding: 18px; }
  .cleanup-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .cleanup-steps li { font-size: .68rem; }
  .result-counts { gap: 15px; }
  .result-counts strong { font-size: 1.15rem; }
  .result-counts span { font-size: .69rem; }
  .demo-section { padding: 32px 16px; }
  .storm-workspace, .briefing-workspace { grid-template-columns: 1fr; }
  .storm-map-column { border-right: 0; }
  .storm-controls { padding: 16px; gap: 13px; }
  .storm-controls button { flex-basis: 118px; padding-inline: 8px; }
  .live-demo label { font-size: .72rem; }
  .impact-panel { padding: 20px; border-top: 1px solid #dce5de; }
  .impact-number { margin: 18px 0; }
  .impact-number strong { font-size: 3rem; }
  .impact-list { min-height: 0; }
  .demo-footnote { padding: 16px 20px; }
  .briefing-inputs { display: none; }
  .briefing-controls select { margin-bottom: 18px; }
  .briefing-controls > .demo-caption { min-height: 0; }
  .report-stage { padding: 16px; }
  .briefing-report { padding: 19px; }
  .report-metrics { gap: 12px; }
  .report-list li { font-size: .68rem; }
  .report-masthead { gap: 8px; }
  .report-masthead strong { font-size: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .live-demo *, .live-demo *::before, .live-demo *::after { transition: none !important; animation: none !important; }
}
@media print {
  body > *:not(main), main > *:not(.briefing-section), .briefing-section .demo-heading, .briefing-controls { display: none !important; }
  .briefing-section, .live-demo, .briefing-workspace, .report-stage { display: block; padding: 0; margin: 0; border: 0; box-shadow: none; background: white; }
  .briefing-report { max-width: 180mm; margin: auto; padding: 8mm; border: 0; box-shadow: none; }
  .report-part.is-pending { opacity: 1; transform: none; }
  .report-map { max-width: 130mm; margin: auto; }
  .briefing-report { break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  @page { size: A4; margin: 12mm; }
}

.map-progress { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: max-content; max-width: 85%; padding: 15px 20px; border: 1px solid #b6c9ac; border-radius: 8px; background: #fffef8f2; box-shadow: 0 5px 18px #22402c10; text-align: center; }
.map-progress strong { display: block; color: #31563a; font-size: .85rem; }
.map-progress span { display: block; color: #586950; font-size: .73rem; margin-top: 4px; }
.map-marker-enter { animation: map-marker-arrive .4s both; }
@keyframes map-marker-arrive { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 760px) {
  .briefing-workspace { padding-top: 20px; }
  .briefing-controls { display: contents; }
  .briefing-controls > label { order: 0; margin: 0 20px 8px; }
  .briefing-controls > select { order: 1; width: calc(100% - 40px); margin: 0 20px 12px; }
  #briefing-build { order: 2; width: calc(100% - 40px); margin: 0 20px 12px; }
  .report-stage { order: 3; }
  #briefing-status { order: 4; margin: 16px 20px 8px; }
  #briefing-use-storm { order: 5; width: calc(100% - 40px); margin: 0 20px 12px; }
  .briefing-exports { order: 6; margin: 0 20px; }
  .export-note { order: 7; margin: 12px 20px 20px; }
  .result-counts { gap: 12px; flex-wrap: wrap; }
}
