/* A cena é a abertura do site. A rolagem continua nativa, sem biblioteca. */
:root { --site-header-height: 78px; }
.site-header { position: sticky; top: 0; }
.site-header .shell { max-width: 1600px; min-height: 78px; gap: 28px; }
.site-header .brand img { width: 178px; }
.main-nav { gap: 27px; }
.hub-site section[id] { scroll-margin-top: calc(var(--site-header-height) + 24px); }
.hub-site #como-funciona { scroll-margin-top: var(--site-header-height); }
.story-section { color: #edf3e7; background: #082923; }
.story-sticky { width: calc(100% - 80px); max-width: 1600px; min-height: calc(100svh - var(--site-header-height)); margin-inline: auto; padding-block: 20px 14px; }
.story-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-inline: 12px; }
.story-heading .eyebrow { margin-bottom: 10px; color: #a8c3b1; font-size: 9px; letter-spacing: 1.7px; }
.story-heading h1 { margin: 0; color: #f2f5e9; font-size: clamp(30px, 3vw, 44px); line-height: 1.09; letter-spacing: -1.5px; font-weight: 500; }
.story-heading h1 em { color: #e0bd58; font-style: normal; }
.story-intro { max-width: 265px; }
.story-label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #d6c17b; font: 10px Consolas, monospace; letter-spacing: 1.4px; }
.story-label i { width: 5px; height: 5px; border-radius: 50%; background: #e0bd58; }
.story-intro p { margin: 0; color: #b7ccbc; font-size: 14px; line-height: 1.6; }
.story-board { display: flex; flex-direction: column; min-width: 0; min-height: 0; margin: 16px 0; }
.monitor-scene-svg { display: block; width: 100%; min-height: 0; }
.story-svg-mobile { display: none !important; }
.story-board figcaption { flex: none; padding-top: 2px; color: #96b39e; font-size: 9px; text-align: right; }
.story-bottom { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: 32px; border-top: 1px solid #335347; padding-top: 12px; }
.story-narration { min-width: 0; }
.story-narration article { display: flex; align-items: flex-start; gap: 16px; padding-block: 10px; }
.story-narration article[hidden] { display: none; }
.story-count { flex: none; padding-top: 5px; color: #c6b771; font: 10px/1.5 Consolas, monospace; }
.story-narration h2 { margin: 0 0 5px; color: #f0f4e9; font-size: 21px; line-height: 1.2; letter-spacing: -.4px; }
.story-narration p { margin: 0; max-width: 630px; color: #aec6b6; font-size: 13px; line-height: 1.5; }
.story-controls { display: none; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.story-controls button { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 52px; padding: 10px 7px; border: 0; border-top: 2px solid #38584b; background: transparent; color: #a0bdab; font-size: 12px; cursor: pointer; }
.story-controls button span { font: 10px Consolas, monospace; }
.story-controls button:hover { background: #143d30; color: #e9f3df; }
.story-controls button[aria-pressed="true"] { border-color: #e0bd58; background: #173c2d; color: #eed388; }
.story-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 9px; }
.story-hint { margin: 0 !important; color: #8fab98; font-size: 10px; }
.story-hint::before { content: "↓"; padding-right: 10px; color: #e0bd58; }
.story-skip { flex: none; color: #d7c684 !important; font-size: 11px; }
.story-skip span { padding-left: 18px; }
.story-skip:hover { text-decoration: underline; text-underline-offset: 4px; }
.story-section.is-enhanced .story-controls { display: grid; }
.story-section.is-enhanced [data-visual-step] { opacity: 0; transition: opacity .45s ease; }
.story-section.is-enhanced[data-step="1"] [data-visual-step="1"],
.story-section.is-enhanced[data-step="2"] [data-visual-step="1"],
.story-section.is-enhanced[data-step="2"] [data-visual-step="2"],
.story-section.is-enhanced[data-step="3"] [data-visual-step="1"],
.story-section.is-enhanced[data-step="3"] [data-visual-step="2"],
.story-section.is-enhanced[data-step="3"] [data-visual-step="3"],
.story-section.is-enhanced[data-step="4"] [data-visual-step] { opacity: 1; }
.story-section.is-scroll-story { height: 420vh; height: 420svh; }
.is-scroll-story .story-sticky { position: sticky; top: var(--site-header-height); display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 8px; height: calc(100vh - var(--site-header-height)); height: calc(100svh - var(--site-header-height)); min-height: 0; }
.is-scroll-story .story-board { margin: 0; }
.is-scroll-story .monitor-scene-svg { flex: 1; height: 100%; }
.is-scroll-story .story-narration { min-height: 78px; }
.is-scroll-story .story-footer { margin-top: 0; }

.applications-section { padding: 88px 0 0; }
.application-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 46px; padding-bottom: 66px; border-bottom: 1px solid #cfd7c9; }
.application { min-width: 0; }
.application-art { margin-bottom: 24px; border-bottom: 1px solid #d3dcca; }
.application-art svg { width: 100%; height: 145px; }
.application-art svg path, .application-art svg rect, .application-art svg circle { fill: none; stroke: #376750; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.application-art svg .app-road { stroke: #c9d7c8; stroke-width: 13; }
.application-art svg .app-trace { stroke: #ad8b34; stroke-width: 3; stroke-dasharray: 4 6; }
.application .eyebrow { font-size: 9px; letter-spacing: 1.5px; margin-bottom: 12px; }
.application h3 { margin-bottom: 15px; font-size: 25px; line-height: 1.2; letter-spacing: -.6px; }
.application > p:not(.eyebrow) { min-height: 72px; margin-bottom: 18px; color: #5b7361; font-size: 14px; line-height: 1.7; }
.application-example { display: block; color: #777348; font-size: 11px; }
.modes-section { padding: 90px 0 70px; }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.mode { min-width: 0; padding: 32px; border: 1px solid #ced7c9; border-radius: 7px; }
.mode-passive { border-color: #b2b88f; background: #edeee2; }
.mode-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 23px; }
.mode-symbol { color: #2f6249; font-size: 31px; line-height: 1; }
.mode-badge { color: #657449; font-size: 9px; letter-spacing: 1px; }
.mode h3 { margin-bottom: 10px; font-size: 28px; letter-spacing: -.7px; }
.mode > p { max-width: 420px; color: #586f5e; font-size: 15px; }
.mode-flow { display: grid; grid-template-columns: auto 36px auto; align-items: center; justify-content: start; margin: 25px 0; padding: 20px 0; border-block: 1px solid #cfd7c7; font-size: 13px; }
.mode-flow > span { padding: 9px 12px; border: 1px solid #b7c8b5; border-radius: 4px; }
.mode-flow > b { color: #8a722c; text-align: center; font-weight: 400; font-size: 20px; }
.mode-flow > i { grid-column: 1/-1; margin-top: 12px; color: #53704f; font-style: normal; font-size: 12px; }
.mode .check-list { margin-bottom: 0; font-size: 13px; }
.modes-section .section-note { margin: 20px 0 0; }

.white-label-section { padding: 0 0 90px; }
.white-label-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 64px; padding-top: 70px; border-top: 1px solid #cfd7c9; }
.white-label-copy h2 { margin-bottom: 24px; }
.white-label-copy > p:not(.eyebrow) { max-width: 390px; color: #617368; font-size: 16px; line-height: 1.8; }
.brand-features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.brand-features span { padding: 5px 9px; border: 1px solid #c9d4c4; color: #5b755e; font-size: 11px; }
.partner-demo { min-width: 0; margin: 0; }
.partner-window { overflow: hidden; border: 1px solid #a6b4a0; border-radius: 10px; box-shadow: 0 18px 45px #1b412518; background: #fff; transform: perspective(1200px) rotateY(-5deg); }
.partner-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 19px 22px; background: #123d30; color: #ecf4e7; }
.partner-brand { display: flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.partner-brand i { color: #e0bd58; font-size: 27px; font-style: normal; }
.partner-user { color: #b9cfb9; font-size: 8px; letter-spacing: 1px; }
.partner-workspace { display: flex; }
.partner-sidebar { display: flex; flex: 0 0 49px; flex-direction: column; align-items: center; gap: 18px; padding-top: 24px; color: #6e8873; background: #f5f7ee; }
.partner-sidebar span { font-size: 19px; }
.partner-sidebar .selected { color: #163e2b; }
.partner-map { position: relative; flex: 1; min-width: 0; }
.partner-map svg { width: 100%; height: 100%; min-height: 270px; object-fit: cover; }
.partner-card { position: absolute; bottom: 17px; left: 16px; right: 16px; display: flex; align-items: center; gap: 14px; padding: 15px; border: 1px solid #bccab7; border-radius: 6px; background: #fffff5f2; box-shadow: 0 6px 20px #16442d14; }
.partner-card > div { min-width: 0; flex: 1; }
.partner-card b { display: block; font-size: 11px; letter-spacing: .5px; }
.partner-card div > span { display: block; margin-top: 4px; color: #68816b; font-size: 10px; }
.partner-bottom { display: flex; gap: 25px; padding: 12px 20px; color: #5e7761; font-size: 10px; }
.partner-demo figcaption { margin-top: 17px; color: #6f7f6e; font-size: 10px; text-align: center; }

@media (max-width: 1100px) {
    .main-nav { gap: 19px; }
    .main-nav a { font-size: 12px; }
    .site-header .shell { gap: 22px; }
    .story-sticky { width: calc(100% - 56px); }
    .story-heading { padding-inline: 0; }
    .story-heading h1 { font-size: 35px; }
    .story-intro { max-width: 225px; }
    .story-narration h2 { font-size: 19px; }
    .story-bottom { gap: 25px; }
    .story-controls button { font-size: 10px; }
    .application-grid { gap: 28px; }
    .application h3 { font-size: 23px; }
    .mode { padding: 26px; }
    .mode h3 { font-size: 25px; }
    .mode-flow { font-size: 12px; }
    .white-label-grid { gap: 38px; }
}
@media (max-height: 800px) and (min-width: 761px) {
    .site-header .shell { min-height: 66px; }
    .story-sticky { padding-block: 12px 10px; }
    .story-heading h1 { font-size: 33px; }
    .story-heading .eyebrow { margin-bottom: 7px; }
    .story-narration h2 { font-size: 19px; }
    .story-narration p { font-size: 12px; }
    .is-scroll-story .story-narration { min-height: 68px; }
}
@media (max-width: 760px) {
    :root { --site-header-height: 107px; }
    .site-header .shell { min-height: 0; gap: 0 14px; padding-block: 13px 8px; }
    .site-header .brand img { width: 142px; }
    .main-nav { justify-content: space-between; gap: 18px; margin-top: 10px; }
    .main-nav a { font-size: 11px; }
    .hub-site .site-access summary { padding: 5px 10px; font-size: 10px; }
    .story-sticky { width: calc(100% - 32px); padding-block: 16px 12px; }
    .story-heading { display: block; }
    .story-heading .eyebrow { margin-bottom: 9px; font-size: 8px; letter-spacing: 1.2px; }
    .story-heading h1 { font-size: 32px; letter-spacing: -1.1px; }
    .story-intro { display: none; }
    .story-board { margin-block: 22px 15px; }
    .story-svg-desktop { display: none !important; }
    .story-svg-mobile { display: block !important; }
    .story-board figcaption { padding-top: 6px; font-size: 8px; text-align: center; }
    .story-section.is-scroll-story { height: 400vh; height: 400svh; }
    .is-scroll-story .story-sticky { gap: 8px; }
    .story-bottom { grid-template-columns: 1fr; gap: 0; padding-top: 5px; }
    .story-narration article { gap: 10px; padding-block: 5px 10px; }
    .story-narration h2 { font-size: 19px; }
    .story-narration p { font-size: 12px; }
    .story-count { font-size: 9px; padding-top: 4px; }
    .is-scroll-story .story-narration { min-height: 87px; }
    .story-controls { gap: 4px; }
    .story-controls button { align-items: center; min-height: 44px; padding: 6px 1px; gap: 4px; font-size: 10px; }
    .story-controls button span { font-size: 8px; }
    .story-footer { justify-content: space-between; margin-top: 12px; }
    .story-hint { max-width: 165px; font-size: 9px; line-height: 1.4; }
    .story-hint::before { padding-right: 5px; }
    .story-skip { font-size: 10px; }
    .story-skip span { padding-left: 5px; }
    .applications-section { padding-top: 58px; }
    .application-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 50px; }
    .application { display: grid; grid-template-columns: 110px 1fr; column-gap: 22px; }
    .application-art { grid-row: 1/5; align-self: center; border: 0; margin: 0; }
    .application-art svg { height: auto; }
    .application .eyebrow { margin-bottom: 8px; font-size: 8px; }
    .application h3 { margin-bottom: 10px; font-size: 23px; }
    .application > p:not(.eyebrow) { min-height: 0; margin-bottom: 10px; font-size: 13px; }
    .application-example { font-size: 10px; }
    .modes-section { padding-block: 60px; }
    .mode-grid { grid-template-columns: 1fr; gap: 20px; }
    .mode { padding: 25px; }
    .mode h3 { font-size: 26px; }
    .white-label-section { padding-bottom: 60px; }
    .white-label-grid { grid-template-columns: 1fr; gap: 38px; padding-top: 45px; }
    .white-label-copy > p:not(.eyebrow) { max-width: 500px; }
    .partner-window { transform: none; }
}
@media (max-width: 480px) {
    .main-nav { gap: 14px; }
    .story-heading h1 { font-size: clamp(24px, 7.4vw, 32px); }
    .story-heading .eyebrow { font-size: 7px; letter-spacing: .8px; }
    .story-narration h2 { font-size: 16px; }
    .story-narration p { font-size: 11px; }
    .story-controls button { font-size: 9px; }
    .story-board figcaption { font-size: 7px; }
    .story-hint { max-width: 138px; font-size: 8px; }
    .story-skip { font-size: 9px; }
    .application { grid-template-columns: 72px 1fr; column-gap: 18px; }
    .application h3 { font-size: 21px; }
    .mode { padding: 22px; }
    .mode h3 { font-size: 23px; }
    .mode-badge { font-size: 8px; letter-spacing: .6px; }
    .mode-flow { grid-template-columns: auto 25px auto; font-size: 11px; }
    .mode-flow > span { padding: 8px; }
    .partner-toolbar { padding: 15px; }
    .partner-brand { font-size: 13px; gap: 7px; }
    .partner-sidebar { flex-basis: 35px; }
    .partner-map svg { min-height: 230px; }
    .partner-card { left: 10px; right: 10px; padding: 10px; gap: 10px; }
    .partner-card b, .partner-card div > span { font-size: 9px; }
    .partner-bottom { gap: 18px; font-size: 9px; }
    .contact h2 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    .story-section.is-enhanced [data-visual-step] { transition: none; }
    .partner-window { transform: none; }
}