/* TerraCare: authentic calculator screens, captured from the public application.
   Phase changes finish on a clear screen even if scrolling stops mid-section. */
.project-terracare{--chapter-bg:#eef0e9;--chapter-ink:#25362a;--chapter-muted:#5b665c;--chapter-accent:#477441;--chapter-line:#45534225}
.scene-terracare.tc-analytics{display:flex;flex-direction:column;justify-content:center;gap:20px;padding:32px 28px 27px;background:#e5e9e0;container-type:inline-size}
.tc-analytics-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-inline:3px}
.tc-analytics-heading>img{width:155px;height:auto;max-width:42%;object-fit:contain}
.tc-analytics-heading>span{max-width:150px;font-size:8px;font-weight:600;line-height:1.5;letter-spacing:.13em;text-align:right;color:#5b6757}
.tc-analytics-window{display:flex;flex-direction:column;min-height:0;background:#fff;border:1px solid #cdd3c9;border-radius:3px;overflow:hidden;box-shadow:0 15px 35px -25px #23332050;transform:translateY(calc((1 - var(--reveal,1))*14px));width:100%}
.tc-analytics-toolbar{flex:none;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #e6e8e1;background:#fafbf8;padding:13px 17px;font-size:10px;line-height:1.3;font-weight:600;color:#28382e}
.tc-view-indicator{display:flex;align-items:center;gap:6px;font-size:8px;font-weight:400;color:#687267}
.tc-view-indicator i{width:5px;height:5px;border-radius:50%;background:#507a45}
.tc-analytics-views{flex:1 1 auto;min-height:0;position:relative;aspect-ratio:1.43;overflow:hidden}
.tc-analytics-view{position:absolute;inset:0;margin:0;padding:21px 18px 13px;opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .42s ease,transform .52s cubic-bezier(.22,.61,.36,1),visibility .42s;pointer-events:none;display:flex;flex-direction:column;gap:13px}
.tc-view-label{display:flex;flex-direction:column;gap:7px;flex:none}
.tc-view-label>span{font-size:8px;line-height:1.3;font-weight:600;letter-spacing:.12em;color:#677860}
.tc-view-label>strong{font-size:clamp(14px,2.7cqw,20px);font-weight:500;line-height:1.25;letter-spacing:-.025em;color:#23352a}
.tc-analytics-view>img{width:100%;height:auto;min-height:0;object-fit:contain;object-position:top;flex:1}
.tc-view-cashflow{opacity:1;visibility:visible;transform:none}
.tc-view-settings>img{margin-top:3px;object-position:center;max-height:72%}
.tc-settings-topics{display:flex;justify-content:space-between;gap:8px;font-size:8px;line-height:1.3;color:#657061;border-top:1px solid #e7eae2;padding-top:12px;margin-top:auto}
.tc-analytics-tabs{flex:none;display:flex;gap:20px;padding:13px 18px;border-top:1px solid #e5e8e0;background:#fbfcf9;font-size:9px;line-height:1.3;color:#84907e}
.tc-analytics-tabs>span{position:relative;transition:color .3s}
.tc-analytics-tabs>span:after{content:'';position:absolute;left:0;right:0;bottom:-13px;height:2px;background:#477441;opacity:0;transition:opacity .3s}
.tc-analytics-tabs .tc-tab-cashflow{color:#2e4d2b}
.tc-analytics-tabs .tc-tab-cashflow:after{opacity:1}
.tc-analytics-caption{font-size:9px;line-height:1.6;color:#66715f;margin:0;padding-inline:3px;max-width:400px}
.project-terracare:has(.project-milestones li:nth-child(2).is-current) .tc-view-cashflow,.project-terracare:has(.project-milestones li:nth-child(3).is-current) .tc-view-cashflow{opacity:0;visibility:hidden;transform:translateY(-8px)}
.project-terracare:has(.project-milestones li:nth-child(2).is-current) .tc-view-settings,.project-terracare:has(.project-milestones li:nth-child(3).is-current) .tc-view-savings{opacity:1;visibility:visible;transform:none}
.project-terracare:has(.project-milestones li:nth-child(2).is-current) .tc-tab-cashflow,.project-terracare:has(.project-milestones li:nth-child(3).is-current) .tc-tab-cashflow{color:#84907e}
.project-terracare:has(.project-milestones li:nth-child(2).is-current) .tc-tab-cashflow:after,.project-terracare:has(.project-milestones li:nth-child(3).is-current) .tc-tab-cashflow:after{opacity:0}
.project-terracare:has(.project-milestones li:nth-child(2).is-current) .tc-tab-settings,.project-terracare:has(.project-milestones li:nth-child(3).is-current) .tc-tab-savings{color:#2e4d2b}
.project-terracare:has(.project-milestones li:nth-child(2).is-current) .tc-tab-settings:after,.project-terracare:has(.project-milestones li:nth-child(3).is-current) .tc-tab-savings:after{opacity:1}
@media(max-width:1100px){.scene-terracare.tc-analytics{padding-inline:20px;gap:18px}.tc-analytics-heading>span{font-size:7px;max-width:118px}.tc-analytics-toolbar{padding-inline:13px}.tc-view-indicator{font-size:7px}}
@media(max-width:700px){
 .scene-terracare.tc-analytics{height:auto;min-height:380px;padding:25px 20px 24px;gap:18px}
 .tc-analytics-heading>img{width:142px}.tc-analytics-heading>span{font-size:7px;max-width:125px}
 .tc-analytics-views{aspect-ratio:1.3}.tc-analytics-view{padding:17px 12px 10px;gap:13px}
 .tc-analytics-toolbar{padding:12px;font-size:9px}.tc-view-indicator{display:none}
 .tc-view-label>span{font-size:7px}.tc-view-label>strong{font-size:16px}
 .tc-analytics-tabs{padding:12px;font-size:9px;gap:20px}.tc-analytics-tabs>span:after{bottom:-12px}
 .tc-settings-topics{font-size:7px;gap:5px;padding-top:9px}.tc-analytics-caption{font-size:9px;line-height:1.6}
}
@media(max-width:380px){.scene-terracare.tc-analytics{padding-inline:15px;min-height:345px;gap:15px}.tc-analytics-heading>span{max-width:107px;font-size:6px}.tc-view-label>strong{font-size:14px}.tc-analytics-views{aspect-ratio:1.25}}
@media(prefers-reduced-motion:reduce){.tc-analytics-window,.tc-analytics-view{transform:none!important;transition:none!important}}
