/* Home story: product surfaces inside the existing landing-page visual language. */
.home-scenes { position: relative; background: var(--bg-page); }
.home-scene { padding: clamp(96px, 10vw, 152px) 0; border-top: 1px solid var(--line-strong); }
.home-scene-heading { max-width: 53rem; margin-bottom: 62px; }
.home-scene-heading-center { text-align: center; margin-inline: auto; }
.home-scene-heading-center .section-description { margin-inline: auto; }
.home-scene-title { margin: 0; color: var(--text-strong); font: 500 clamp(50px, 6.5vw, 86px)/.98 'Newsreader', Georgia, serif; letter-spacing: -.045em; text-wrap: balance; }
.home-scene .section-description { max-width: 51ch; font-size: 18px; line-height: 1.65; }
.home-map-stage { width: min(100%, 1028px); margin: auto; overflow: hidden; }
.home-map-frame { width: 1186px; height: 484px; transform-origin: top left; border: 1px solid #d4d4d4; border-radius: 6px; overflow: hidden; background: #fbfaf9; box-shadow: 0 22px 62px rgba(36,30,23,.06); }
/* Keep native widget rules from re-enabling controls inside this illustration. */
.home-scene-work .home-map-frame, .home-scene-work .home-map-frame * { pointer-events: none !important; }
.home-window-bar { position: relative; display: flex; align-items: center; justify-content: center; height: 30px; border-bottom: 1px solid #dedede; background: #f6f6f6; color: #777; font: 11px/1 -apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif; }
.home-window-dots { position: absolute; left: 12px; display: flex; gap: 8px; }
.home-window-dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.home-window-dots i:nth-child(2) { background: #febc2e; }
.home-window-dots i:nth-child(3) { background: #28c840; }
.home-map-canvas { position: relative; width: 1184px; background-color: #fbfaf9; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Crect x='17.5' y='17.5' width='1' height='1' fill='%23666' fill-opacity='.38'/%3E%3C/svg%3E"); font: 14px/normal ui-sans-serif,system-ui,sans-serif; }
.home-map-canvas-work { height: 740px; }
.home-scene-work .home-map-frame { height: 806px; }
.home-map-canvas-context { height: 382px; }
.home-map-canvas > svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.home-map-canvas > svg path { fill: none; stroke-width: 1.2; }
.home-map-level { position: absolute; width: 344px; }
.home-work-level-one { left: 40px; top: 40px; }
.home-work-level-two { left: 420px; top: 112px; }
.home-work-level-three { left: 800px; top: 184px; }
.home-context-level-one { left: 40px; top: 55px; }
.home-context-level-two { left: 420px; top: 101px; }
.home-context-level-three { left: 800px; top: 184px; }
/* Business EntryNodeContent, themed BriefContent and CAS reading layout.
   Presentation scaling must not change the native entry geometry. */
.home-map-head { height: 32px; padding: 0 20px 0 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-radius: 2px 2px 0 0; background: rgb(49,46,46); opacity: .94; color: rgba(255,255,255,.98); box-shadow: inset 0 1px rgba(255,255,255,.08),inset 0 -1px rgba(255,255,255,.04),0 0 4px #0003; font: italic 400 10px/32px ui-sans-serif,system-ui,sans-serif; letter-spacing: 0; }
.home-map-row { position: relative; display: block; box-sizing: border-box; width: 344px; min-height: 32px; margin: 0; border: 1px solid #f0f0f0; border-top-color: #fafafa; border-radius: 0; background: #fdfdfd; color: #2a2a2a; font: 14px/normal ui-sans-serif,system-ui,sans-serif; }
.home-map-row + .home-map-row { margin-top: 1px; }
.home-map-row.is-active { filter: contrast(1.06); box-shadow: inset -2px 0 rgba(0,0,0,.38); }
.home-agent-row { background: #fafafa; }
.home-map-text { display: block; margin: 0; padding: 6px 20px 6px 40px; max-height: 72px; overflow: hidden; color: #36383a; font: 13px/1.6 'Open Sans','Helvetica Neue',Arial,'Hiragino Sans GB','STHeiti','Microsoft YaHei',SimSun,Song,sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.home-map-doc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; margin: 1px; overflow: hidden; }
.home-map-heading { font-size: 13px; font-weight: 700; }
.home-map-doc strong { font-weight: 700; }
.home-map-doc code { padding: 0 3px; border-radius: 4px; margin: 1px 2px; background: rgba(31,35,40,.04); color: inherit; font-family: monospace; }
.home-map-comment { opacity: .67; }
.home-map-prefix { color: #d99e00; }
.home-map-prefix-comment { color: #7a7a7a; }
.home-map-badge { display: inline-block; padding: 0 2px; border-radius: 3px; color: #008000; }
.home-map-count { position: absolute; right: 0; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; min-width: 12px; padding: 0 8px; border-radius: 0 36px; color: #555; font: italic 10px/14px ui-sans-serif,system-ui,sans-serif; user-select: none; }
.home-map-count > span { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 14px; min-height: 14px; padding: 1px 4px; line-height: 1; font-size: 10px; font-style: normal; font-weight: normal; background: transparent; border: 1px solid transparent; border-radius: 8px; transform: scale(.8); }
.home-map-count.is-empty { color: rgba(80,80,80,.28); letter-spacing: .08em; font-size: 11px; }
.home-map-row.is-active .home-map-count { color: #222; border-radius: 0; }
.home-map-swipe { display: none; }

.home-work-binding:empty { display: none; }
.home-work-binding { width: 344px; min-height: 32px; margin-bottom: 1px; }
.home-map-row.has-work-chat > .home-map-text, .home-map-row.has-work-chat > .home-map-count { visibility: hidden; }
.home-work-entry { position: absolute; inset: 0; }
.home-work-entry > .entry-like { vertical-align: top; }
.home-work-chat-trigger { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.home-work-chat-trigger:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.home-work-chat-dialog { width: min(580px,calc(100vw - 24px)); height: min(680px,calc(100dvh - 32px)); max-width: none; max-height: none; padding: 0; border: 1px solid #dce1e6; background: #eef1f4; overflow: hidden; }
.home-work-chat-dialog::backdrop { background: #1116; }
.home-work-chat-content { width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.home-work-chat-close { position: absolute; z-index: 4; top: 4px; right: 6px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 3px; background: #eef1f4; color: #515559; font: 20px/26px sans-serif; cursor: pointer; }
.home-scene-context { background: #f8f8f6; }
.home-context-layout { display: grid; grid-template-columns: minmax(130px,1fr) minmax(0,7fr) minmax(130px,1fr); gap: clamp(16px,2vw,32px); align-items: start; }
.home-context-notes { padding-top: 70px; }
.home-context-notes-last { align-self: end; padding: 0 0 95px; }
.home-context-note { display: block; width: 100%; margin: 0 0 76px; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line-emphasis); background: transparent; text-align: left; cursor: pointer; font: inherit; }
.home-context-note > span { display: block; color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.home-context-note strong { display: block; margin-top: 6px; color: var(--text-strong); font-size: 14px; line-height: 1.5; font-weight: 600; }
.home-context-note small { display: block; margin-top: 10px; color: var(--text-muted); font-size: 14px; line-height: 1.65; }
.home-context-note:focus-visible, .home-diff button:focus-visible { outline: 2px solid #386371; outline-offset: 3px; }
.home-context-scene { min-width: 0; }
.home-context-frame { height: 448px; }
.home-context-execution { position: relative; width: min(100%,580px); margin: -24px 0 0 auto; }
.home-context-pin { position: absolute; z-index: 3; display: grid; place-items: center; box-sizing: border-box; width: 28px; height: 28px; padding: 0; border: 1px solid #111; border-radius: 50%; background: var(--bg-page); color: #111; cursor: pointer; font: 700 11px/1 ui-sans-serif,system-ui,sans-serif; box-shadow: 0 2px 8px #0002; }
.home-context-pin-intention { left: -14px; top: -14px; }
.home-context-pin-boundary { right: 16px; top: -14px; }
.home-context-pin-execution { left: -14px; top: 20px; }
.home-context-pin:focus-visible { outline: 2px solid #111; outline-offset: 4px; }
.home-context-layout[data-active-phase='intention'] .home-context-pin-intention, .home-context-layout[data-active-phase='boundary'] .home-context-pin-boundary, .home-context-layout[data-active-phase='execution'] .home-context-pin-execution { background: #111; color: #fff; box-shadow: 0 0 0 5px #1112; }
.home-idp-panel { display: flex; flex-direction: column; min-height: 270px; border: 1px solid #dfe3e7; background: #f9f9f9; color: #141a21; box-shadow: 0 22px 55px rgba(17,17,17,.07); font: 12px/1.5 'Open Sans','Helvetica Neue',Arial,sans-serif; }
.home-idp-question { padding: 9px 13px; background: #2b3036; color: white; }
.home-idp-response { flex: 1; padding: 11px 14px; }
.home-idp-response p { margin: 9px 0; }
.home-idp-response details { color: #747c82; }
.home-idp-response details + details { margin-top: 11px; }
.home-idp-response summary { width: fit-content; margin-left: 12px; cursor: pointer; }
.home-idp-actions { margin: 7px 0 0 16px; padding-left: 10px; border-left: 1px solid #dce1e6; color: #515559; }
.home-idp-delta { margin-left: 8px; color: #227a47; font: 10px monospace; }
.home-idp-running, .home-idp-input { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 5px 12px; border-top: 1px solid #e1e4e7; background: white; color: #414a50; font-family: monospace; }
.home-idp-stop { width: 10px; height: 10px; background: #141a21; border-radius: 2px; }
.home-idp-dots { animation: home-dots 1.2s ease-in-out infinite; }
@keyframes home-dots { 50% { opacity: .2; } }
.home-context-layout[data-active-phase] .home-context-note, .home-context-layout[data-active-phase] [data-phase-area] { opacity: .3; transition: opacity .2s ease; }
.home-context-layout[data-active-phase='intention'] [data-phase='intention'], .home-context-layout[data-active-phase='intention'] [data-phase-area='intention'], .home-context-layout[data-active-phase='boundary'] [data-phase='boundary'], .home-context-layout[data-active-phase='boundary'] [data-phase-area='boundary'], .home-context-layout[data-active-phase='execution'] [data-phase='execution'], .home-context-layout[data-active-phase='execution'] [data-phase-area='execution'] { opacity: 1; }
.home-context-note[aria-pressed='true'] { border-top-color: #111; }
.home-build-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(290px,.42fr); gap: clamp(22px,3vw,44px); align-items: start; }
.home-diff { min-width: 0; overflow: hidden; border: 1px solid #d9dde0; background: #fff; color: #141a21; font-family: 'Open Sans','Helvetica Neue',Arial,sans-serif; }
.home-diff-tabs { display: flex; gap: 22px; padding: 0 16px; border-bottom: 1px solid #dfe3e7; background: #f5f6f7; }
.home-diff-tabs button { min-height: 43px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #6a6f74; font: 12px 'Open Sans',Arial,sans-serif; cursor: pointer; }
.home-diff-tabs button[aria-selected='true'] { border-bottom-color: #313d46; color: #141a21; font-weight: 600; }
.home-diff-panel[hidden] { display: none; }
.home-diff-file, .home-diff-labels { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #e5e7ea; font: 11px monospace; }
.home-diff-file { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-diff-file span { color: #227a47; white-space: nowrap; }
.home-diff-labels { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); background: #f4f4f5; color: #777; font-size: 10px; }
.home-diff-block { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.home-diff-side { min-width: 0; border-right: 1px solid #e5e7ea; background: #fff; }
.home-diff-side code { display: block; overflow: hidden; min-height: 28px; padding: 6px 10px; color: #343b42; font: 11px/16px monospace; white-space: nowrap; text-overflow: ellipsis; }
.home-diff-side.home-diff-empty { background: #f8f8f8; }
.home-diff-side.home-diff-added code { background: #e6f3e9; color: #166534; }
.home-diff-side.home-diff-deleted code { background: #fae8e2; color: #9a3412; }
.home-diff-separator { padding: 11px; background: #f7f8f9; color: #80858a; font: 10px monospace; }
.home-diff-caption { margin: 0; padding: 14px 16px; border-top: 1px solid #e5e7ea; color: #555e65; font-size: 13px; line-height: 1.65; }
.home-diff-sides { display: none; }
.home-build-inspection { min-width: 0; }

.home-idp-toolbar { display: flex; justify-content: space-between; padding: 9px 12px; border-bottom: 1px solid #e1e4e7; background: #fff; }
.home-idp-toolbar span { color: #747c82; }
.home-idp-files { background: #f8fafc; }
.home-idp-files div { display: flex; justify-content: space-between; gap: 10px; overflow: hidden; padding: 8px 10px; border-bottom: 1px solid #e1e4e7; font: 10px monospace; white-space: nowrap; }
.home-idp-files span { color: #227a47; }
.home-build-inspection .home-idp-response { min-height: 0; overflow-y: auto; }

.home-conclusion .cta-title { font: 500 clamp(58px,7vw,100px)/.98 'Newsreader',Georgia,serif; letter-spacing: -.045em; }
.home-conclusion .cta-subtitle { max-width: 47ch; }
.home-conclusion .cta-buttons .button { gap: 20px; }
@media (max-width: 1100px) {
    .home-context-layout { grid-template-columns: minmax(0,1fr); }
    .home-context-notes { display: flex; gap: 24px; padding: 0; }
    .home-context-note { flex: 1; margin: 0; }
    .home-context-notes-last { margin-top: 20px; }
    .home-build-layout { grid-template-columns: 1fr; }
    .home-build-inspection { width: min(100%,580px); }
}
@media (max-width: 700px) {
    .home-scene { padding: 84px 0; }
    .home-scene-heading { margin-bottom: 36px; }
    .home-scene-title { font-size: clamp(46px,11vw,68px); }
    .home-scene .section-description { font-size: 16px; }
    .home-map-stage { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
    .home-map-frame { transform: none !important; }
    .home-map-swipe { display: block; margin: 12px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.65; }
    .home-context-notes { display: block; }
    .home-context-note { margin: 0 0 20px; }
    .home-context-execution { margin: 22px auto 0; }

    .home-diff-labels { display: none; }
    .home-diff-sides { display: flex; gap: 22px; padding: 6px 12px; border-bottom: 1px solid #e5e7ea; }
    .home-diff-sides button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: #777; font: 11px 'Open Sans',Arial,sans-serif; cursor: pointer; }
    .home-diff-sides button[aria-pressed='true'] { border-bottom-color: #313d46; color: #141a21; }
    .home-diff-block { display: block; }
    .home-diff-block .home-diff-side { display: none; }
    .home-diff[data-side='before'] .home-diff-block .home-diff-side:first-child:not(.home-diff-empty), .home-diff[data-side='after'] .home-diff-block .home-diff-side:last-child:not(.home-diff-empty) { display: block; }

}
@media (prefers-reduced-motion: reduce) { .home-idp-dots { animation: none; } .home-context-layout [data-phase-area], .home-context-layout .home-context-note, .home-context-layout .home-context-pin { transition: none; } }
@media (max-width: 360px) { .conversion-hero .hero-title { font-size: 54px; } }
