/* The homepage keeps its established type, forest palette and photographic backdrop. */
.hero-section:has(endiqo-demo) { display: block; padding-top: 64px; padding-bottom: 72px; }
.hero-section:has(endiqo-demo) .hero-copy { max-width: 940px; margin: 0 auto 48px; text-align: center; }
.hero-section:has(endiqo-demo) h1 { font-size: clamp(2.5rem, 4.3vw, 4rem); letter-spacing: -.025em; }
.hero-section:has(endiqo-demo) .hero-lede { margin-inline: auto; }
.hero-section:has(endiqo-demo) .hero-actions { justify-content: center; }
endiqo-demo { display: block; max-width: 1140px; margin-inline: auto; scroll-margin-top: 90px; --ed-mint: #a4e8b8; --ed-muted: #bcd0c2; color: #f7fff8; font-size: 15px; line-height: 1.5; }
endiqo-demo [hidden] { display: none !important; }
endiqo-demo * { box-sizing: border-box; }
.ed-frame { background: radial-gradient(ellipse at 48% 15%, #234b32 0, #102d1e 70%); border-radius: 16px; overflow: hidden; padding: 1px 1px 24px; box-shadow: 0 24px 54px #05170d66, inset 0 1px 0 #91c59e44; }
.ed-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px 0; gap: 20px; }
.ed-top img { object-fit: contain; }
.ed-playback { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #ffffff0a; color: #c2dac9; font-size: 14px; cursor: pointer; }
.ed-playback:hover { background: #ffffff18; color: #fff; }
.ed-heading { height: 126px; max-width: 880px; margin: 0 auto; padding: 28px 32px 20px; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.22; letter-spacing: -.02em; text-align: center; text-wrap: balance; font-weight: 650; }
.ed-board { position: relative; height: 430px; margin: 0 32px; }
.ed-board h3 { font-weight: 650; font-size: 18px; line-height: 1.35; letter-spacing: -.015em; }
.ed-board p { margin: 0; text-wrap: pretty; }
.ed-conversations { position: absolute; inset: 0 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ed-conversation { padding: 21px; background: linear-gradient(145deg, #285337, #1b3e2a 70%); border-radius: 10px; box-shadow: 0 12px 24px #03170c66, 0 3px 6px #03170c44, inset 0 1px 0 #a4e8b838; }
.ed-conversation header { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; }
.ed-initial { display: grid; place-items: center; background: #a4e8b8; color: #14351d; width: 30px; height: 30px; border-radius: 50%; font-weight: 700; font-size: 13px; }
.ed-question strong, .ed-answer strong, .ed-evidence strong { display: block; font-size: 12px; color: var(--ed-muted); font-weight: 600; margin-bottom: 5px; }
.ed-question, .ed-answer { position: relative; box-shadow: 0 8px 16px #03170c4d, inset 0 1px 0 #ffffff18; }
.ed-question { width: calc(100% - 18px); margin-bottom: 19px; padding: 11px 14px; border-radius: 12px 12px 12px 3px; background: #153b29; }
.ed-question strong { color: #a4e8b8; }
.ed-question::after, .ed-answer::after { content: ''; position: absolute; bottom: -6px; width: 13px; height: 13px; transform: rotate(45deg); }
.ed-question::after { left: 11px; background: #153b29; }
.ed-answer { width: calc(100% - 18px); min-height: 104px; margin-left: 18px; padding: 12px 14px; border-radius: 12px 12px 3px 12px; background: #d9f1e0; color: #173b24; }
.ed-answer strong { color: #3f7650; }
.ed-answer::after { right: 11px; background: #d9f1e0; }
.ed-answer mark { background: transparent; color: inherit; }
.ed-issue { box-shadow: 0 10px 24px #041b0e80, 0 2px 5px #041b0e55, inset 0 1px 0 #e7ffee; }
.ed-finding { box-shadow: 0 20px 40px #03180c80, 0 5px 10px #03180c55, inset 0 1px 0 #fff; }
.ed-finding.ed-accepted { box-shadow: 0 20px 40px #03180c80, 0 5px 10px #03180c55, 0 0 22px #a4e8b81a; }
endiqo-demo[data-scene="1"] mark { color: #f7fff8; background: #246d40; box-shadow: 0 0 0 3px #246d40; border-radius: 2px; }
endiqo-demo[data-scene="1"] .ed-conversations { top: 0; }
.ed-issue { position: absolute; top: 345px; left: 50%; transform-origin: center; width: 290px; margin-left: -145px; padding: 13px 20px; text-align: center; background: #a4e8b8; color: #14351d; border-radius: 8px; }
.ed-issue > span { font-size: 12px; }
.ed-finding { position: absolute; left: 3%; top: 48px; width: 48%; padding: 26px; border-radius: 10px; color: #173b24; background: #f3f8f4; }
.ed-finding header { display: flex; justify-content: space-between; color: #476450; font-size: 13px; margin-bottom: 20px; }
.ed-finding h3 { font-size: 25px; margin-bottom: 14px; }
.ed-description { line-height: 1.6; }
.ed-source-link { margin: 19px 0 20px; padding: 0 0 3px; border: 0; border-bottom: 1px solid #70967a; background: transparent; color: #255f39; font: inherit; cursor: pointer; }
.ed-finding-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 15px; border-top: 1px solid #ccddd0; font-size: 12px; }
.ed-state { color: #48624f; }
.ed-accepted .ed-state { color: #205934; font-weight: 700; }
.ed-accepted .ed-state::before { content: '✓ '; }
.ed-accept { padding: 8px 12px; border: 0; border-radius: 5px; background: #14351d; color: #f7fff8; font: inherit; cursor: pointer; }
.ed-accept:disabled { opacity: .6; cursor: default; }
.ed-related { position: absolute; top: 56px; right: 3%; width: 37%; }
.ed-related article { padding: 20px 0 24px; border-bottom: 1px solid #466c51; }
.ed-related span { font-size: 12px; color: var(--ed-mint); }
.ed-related h3 { margin: 5px 0 8px; }
.ed-related p { color: #c9dbcd; font-size: 14px; }
endiqo-demo[data-scene="3"] .ed-finding { left: 0; width: 47%; }
.ed-evidence { position: absolute; right: 0; top: 0; width: 48%; padding: 19px; background: linear-gradient(145deg, #254b33, #193b28); border-radius: 10px; box-shadow: 0 14px 28px #03170c66, inset 0 1px 0 #a4e8b838; }
.ed-evidence header { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 14px; }
.ed-evidence header span { color: var(--ed-muted); font-size: 12px; }
.ed-evidence blockquote { margin: 0 0 10px; padding: 16px 18px; border-radius: 6px; background: #21452f; }
.ed-evidence blockquote:last-child { margin-bottom: 0; }
.ed-evidence .ed-reading { background: #a4e8b8; color: #14351d; }
.ed-evidence .ed-reading strong { color: #31583d; }
.ed-evidence .ed-reading { box-shadow: 0 5px 10px #071e1444, inset 0 1px 0 #e7ffee88; }
.ed-cursor { position: absolute; z-index: 3; pointer-events: none; filter: drop-shadow(0 2px 2px #102d1e66); }
.ed-clicked { outline: 3px solid #76bb89; outline-offset: 5px; }
.ed-outputs { position: absolute; right: 0; top: 0; width: 41%; display: grid; gap: 10px; }
.ed-outputs article { height: 136px; padding: 17px 19px; border-radius: 10px; background: linear-gradient(145deg, #2b5239, #1b3e2a 75%); box-shadow: 0 12px 24px #03170c66, 0 3px 6px #03170c44, inset 0 1px 0 #b6eec64d; }
.ed-outputs header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 5px; }
.ed-outputs header span { font-size: 12px; color: var(--ed-mint); }
.ed-outputs p { font-size: 13px; line-height: 1.35; color: #dce9df; }
.ed-output-link { color: #b6eec6; font-size: 12px; margin-top: 7px; }
.ed-outputs small { display: block; color: #bfd1c4; font-size: 11px; margin-top: 2px; }
endiqo-demo[data-scene="4"] .ed-finding { left: 0; width: 46%; top: 65px; }
.ed-lines { position: absolute; width: 100%; height: 100%; inset: 0; overflow: visible; pointer-events: none; }
.ed-lines path { fill: none; stroke-width: 1.5; }
.ed-wire { stroke: #668b70; }
.ed-pulse { stroke: #b6f9cb; stroke-width: 3 !important; stroke-linecap: round; }
endiqo-demo[data-scene="5"] .ed-conversations { width: 25%; top: 18px; gap: 12px; grid-template-columns: 1fr; }
endiqo-demo[data-scene="5"] .ed-conversation { padding: 14px 16px; }
endiqo-demo[data-scene="5"] .ed-conversation header { margin-bottom: 8px; }
endiqo-demo[data-scene="5"] .ed-conversation h3 { font-size: 14px; }
endiqo-demo[data-scene="5"] .ed-initial, endiqo-demo[data-scene="5"] .ed-question, endiqo-demo[data-scene="5"] .ed-answer strong { display: none; }
endiqo-demo[data-scene="5"] .ed-answer { width: 100%; margin-left: 0; padding: 0; background: transparent; color: #f7fff8; min-height: 0; font-size: 13px; box-shadow: none; }
endiqo-demo[data-scene="5"] .ed-answer::after { display: none; }
endiqo-demo[data-scene="5"] .ed-finding { left: calc(32% * var(--ed-journey)); width: calc(46% - 16% * var(--ed-journey)); top: 65px; padding: 22px; }
endiqo-demo[data-scene="5"] .ed-finding h3 { font-size: 21px; }
endiqo-demo[data-scene="5"] .ed-description { display: none; }
endiqo-demo[data-scene="5"] .ed-outputs { width: calc(41% - 11% * var(--ed-journey)); }
endiqo-demo[data-scene="5"] .ed-outputs article { height: auto; padding: 13px 15px; }
endiqo-demo[data-scene="5"] .ed-outputs p { display: none; }
.ed-controls { display: flex; gap: 10px; align-items: center; padding: 18px 28px; border-top: 1px solid #375b42; }
.ed-controls button, .ed-controls select { font: inherit; font-size: 12px; color: #e0eee3; border: 1px solid #567960; border-radius: 5px; padding: 8px 12px; background: #193b28; cursor: pointer; min-height: 36px; }
.ed-controls button:hover { background: #2a5037; }
endiqo-demo :is(button, select, input):focus-visible { outline: 3px solid #6be18d; outline-offset: 4px; }
.ed-navigation { display: flex; gap: 10px; align-items: center; font-size: 12px; margin-left: auto; color: var(--ed-muted); }
.ed-counter { font-size: 12px; color: var(--ed-muted); margin-left: 10px; }
.ed-preview { display: flex; align-items: center; gap: 15px; padding: 12px 28px; background: #092016; font-size: 12px; color: var(--ed-muted); }
.ed-preview input { flex: 1; min-width: 40px; accent-color: #a4e8b8; }
.ed-preview output { min-width: 78px; font-variant-numeric: tabular-nums; }
.ed-motion-preview { display: flex; align-items: center; gap: 6px; }
.ed-motion-preview input { flex: none; width: 16px; height: 16px; min-width: 0; margin: 0; padding: 0; }
@media (min-width: 761px) and (max-width: 1000px) {
  .ed-board { height: 490px; }
  .ed-issue { top: 400px; }
  endiqo-demo[data-scene="5"] .ed-outputs p { display: none; }
}
@media (max-width: 760px) {
  .hero-section:has(endiqo-demo) { padding: 44px 16px; }
  .ed-top { padding: 18px 18px 0; }
  .ed-heading { height: 155px; padding: 24px 18px 18px; font-size: 23px; }
  .ed-board { height: 875px; margin: 0 18px; }
  .ed-conversations { top: 0; grid-template-columns: 1fr; gap: 14px; }
  .ed-conversation { padding: 16px; }
  .ed-conversation header { margin-bottom: 10px; }
  .ed-question { margin-bottom: 16px; padding: 10px 12px; }
  .ed-question p, .ed-answer p { font-size: 14px; }
  .ed-question strong, .ed-answer strong { margin-bottom: 3px; }
  .ed-answer { min-height: 0; padding: 10px 12px; }
  .ed-issue { top: 750px; width: calc(100% - 22px); left: 0; margin-left: 0; }
  .ed-finding, endiqo-demo[data-scene="3"] .ed-finding, endiqo-demo[data-scene="4"] .ed-finding { top: 10px; left: 0; width: 100%; padding: 22px; }
  .ed-finding h3 { font-size: 24px; }
  .ed-related { top: 342px; width: 100%; right: 0; }
  .ed-related article { padding: 24px 6px; }
  .ed-evidence { top: 347px; width: 100%; padding: 14px; }
  .ed-evidence h3 { font-size: 17px; }
  .ed-evidence blockquote { padding: 16px; }
  .ed-outputs { top: 370px; width: 100%; gap: 12px; }
  .ed-outputs article { height: 136px; padding: 17px 19px; }
  endiqo-demo[data-scene="5"] .ed-conversations { width: 100%; top: 0; gap: 9px; }
  endiqo-demo[data-scene="5"] .ed-conversation { padding: 10px 14px; }
  endiqo-demo[data-scene="5"] .ed-conversation header { margin-bottom: 3px; }
  endiqo-demo[data-scene="5"] .ed-finding { top: calc(10px + 273px * var(--ed-journey)); left: 0; width: 100%; padding: 18px; }
  endiqo-demo[data-scene="5"] .ed-finding header { margin-bottom: 8px; }
  endiqo-demo[data-scene="5"] .ed-finding h3 { margin-bottom: 6px; }
  endiqo-demo[data-scene="5"] .ed-source-link { margin: 6px 0 12px; }
  endiqo-demo[data-scene="5"] .ed-outputs { top: calc(370px + 131px * var(--ed-journey)); width: 100%; gap: 12px; }
  endiqo-demo[data-scene="5"] .ed-outputs article { height: auto; padding: 14px 18px; }
  endiqo-demo[data-scene="5"] .ed-outputs p { display: none; }
  endiqo-demo[data-scene="5"] .ed-output-link { margin-top: 9px; }
  .ed-controls { flex-wrap: wrap; padding: 16px; gap: 8px; }
  .ed-navigation { order: 3; width: 100%; margin: 4px 0 0; justify-content: space-between; }
  .ed-navigation select { flex: 1; max-width: 230px; }
  .ed-counter { margin-left: auto; }
  .ed-preview { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  .ed-preview label { width: 100%; }
  endiqo-demo:is([data-scene="1"], [data-scene="5"]) .ed-conversations { width: calc(100% - 22px); }
  endiqo-demo:is([data-scene="4"], [data-scene="5"]) :is(.ed-finding, .ed-outputs) { width: calc(100% - 22px); left: 0; right: auto; }
}
@media (max-width: 380px) {
  .ed-heading { height: 196px; font-size: 21px; }
  .ed-board { height: 950px; }
  .ed-issue { top: 848px; }
  .ed-finding-footer { flex-wrap: wrap; }
  .ed-outputs article { height: 170px; }
  .ed-outputs article:nth-child(2) { height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-section:has(endiqo-demo) .hero-copy * { animation: none; }
  endiqo-demo *, endiqo-demo *::before { animation: none !important; transition: none !important; }
}
