/* A single focal illustration and a centered, readable opening. */
.site-header { background: #fcfcfa; }
.header-nav .nav-link { font-size: 13px; font-weight: 600; }
.header-nav .contact-link { border-radius: 999px; }
.problem-opening { background-color: #fcfcfa; background-image: url('./assets/paper-grain.svg'); }
.problem-opening .opening-inner { width: calc(100% - 112px); max-width: 1100px; display: block; margin: 0 auto; padding: 42px 0 64px; }
.problem-opening .opening-intro { width: 100%; text-align: center; }
.opening-title-composition { position: relative; isolation: isolate; }
.opening-character { position: relative; top: -14px; width: 232px; margin: 0 auto -35px; pointer-events: none; user-select: none; }
.opening-character img { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
/* Reuse only the hands above the live text; the body stays behind it. */
.opening-character::after { content: ''; position: absolute; inset: 0; z-index: 3; background: url('./assets/zeli-personagem-titulo.png') center / 100% 100% no-repeat; clip-path: polygon(0 82%, 36% 82%, 36% 99.9%, 64% 99.9%, 64% 82%, 100% 82%, 100% 100%, 0 100%); }
.problem-opening h1 { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; font-size: clamp(48px, 5.8vw, 76px); font-weight: 800; line-height: 1.08; letter-spacing: -.045em; color: #15365d; text-wrap: balance; }
.problem-opening .opening-description { max-width: 690px; margin: 25px auto 0; font-size: 18px; font-weight: 600; line-height: 1.75; letter-spacing: 0; color: #253b4b; text-wrap: pretty; }
.opening-cta { display: inline-flex; justify-content: center; align-items: center; min-height: 56px; margin-top: 28px; padding: 15px 27px; background: #15365d; color: #fff; font-size: 16px; font-weight: 800; line-height: 1.5; border-radius: 999px; transition: background-color 180ms, transform 180ms; }
.opening-cta:hover { background: #21517c; transform: translateY(-2px); }
.opening-cta:active { transform: translateY(0); }
.opening-cta:focus-visible { outline: 3px solid #13765e; outline-offset: 5px; }

/* The supporting context follows the opening instead of competing with it. */
.context-panel { min-width: 0; background: #edf3ee; border-block: 1px solid #15365d10; color: #15365d; }
.context-card { width: calc(100% - 112px); max-width: 1020px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 58px; padding: 32px 0; }
.context-heading { margin: 0 0 12px; font-size: 13px; line-height: 1.6; font-weight: 700; }
.context-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 11px; margin: 0; }
.context-number { font-size: 72px; line-height: 1.05; letter-spacing: -.055em; font-weight: 800; font-variant-numeric: tabular-nums; }
.context-number .number-motion { font-weight: inherit; letter-spacing: inherit; }
.context-unit { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.04em; }
.context-description { max-width: 500px; margin: 0; font-size: 18px; line-height: 1.65; font-weight: 600; color: #253e3c; text-wrap: pretty; }
.context-scope { margin: 13px 0 5px; font-size: 12px; font-weight: 600; line-height: 1.7; color: #38534c; }
.context-source { font-size: 12px; font-weight: 500; line-height: 1.8; color: #285847; text-decoration: underline; text-decoration-color: #28584770; text-underline-offset: 3px; }
.context-source:hover { color: #15365d; }
.context-problem-title { max-width: 380px; margin: 0; font-size: clamp(30px, 3vw, 39px); line-height: 1.14; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.problem-slide { min-width: 0; }
.problem-slide + .problem-slide { border-top: 1px solid #15365d15; }
.problem-carousel { --problem-arrow-space: 80px; }
.problem-carousel.is-ready { display: grid; grid-template-columns: minmax(0, 1fr); }
.problem-carousel.is-ready .problem-viewport { grid-area: 1 / 1; display: grid; isolation: isolate; }
.problem-carousel.is-ready .problem-slide { grid-area: 1 / 1; display: flex; align-items: center; border-top: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 420ms ease, visibility 0s 420ms; }
.problem-carousel.is-ready .problem-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.problem-carousel.is-ready .context-card { width: calc(100% - var(--problem-arrow-space) - var(--problem-arrow-space)); padding-bottom: 18px; }
/* The full side strip is clickable; the icon stays compact. */
.problem-arrow { grid-area: 1 / 1; z-index: 2; align-self: stretch; justify-self: start; display: flex; align-items: center; justify-content: center; width: calc(var(--problem-arrow-space) - 8px); min-height: 44px; margin: 8px 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #15365d; cursor: pointer; touch-action: manipulation; }
.problem-arrow-next { justify-self: end; }
.problem-arrow[hidden] { display: none; }
.problem-arrow-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #15365d30; border-radius: 50%; background: #ffffff55; transition: background-color 180ms, color 180ms, border-color 180ms; }
.problem-arrow-icon svg { width: 21px; height: 21px; }
.problem-arrow:hover .problem-arrow-icon, .problem-arrow:focus-visible .problem-arrow-icon { background: #15365d; border-color: #15365d; color: #fff; }
.problem-arrow:active .problem-arrow-icon { background: #13765e; border-color: #13765e; color: #fff; }
.problem-arrow:focus-visible { outline: 2px solid #13765e; outline-offset: -3px; }
.problem-controls { grid-column: 1; grid-row: 2; width: calc(100% - 112px); max-width: 1020px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 19px; padding-bottom: 10px; }
.problem-controls[hidden] { display: none; }
.problem-selectors { display: flex; align-items: center; gap: 1px; }
.problem-selector { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 5px; background: transparent; cursor: pointer; }
.problem-selector::before { content: ''; width: 21px; height: 3px; border-radius: 2px; background: #15365d40; transition: width 180ms, background-color 180ms; }
.problem-selector[aria-current="true"]::before { width: 31px; background: #15365d; }
.problem-selector:hover::before { background: #13765e; }
.problem-toggle { min-width: 74px; min-height: 44px; padding: 9px 10px; border: 0; border-radius: 5px; background: transparent; color: #15365d; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #15365d50; }
.problem-toggle:hover { color: #13765e; }
.problem-selector:focus-visible, .problem-toggle:focus-visible { outline: 2px solid #13765e; outline-offset: 1px; }

.solution { background: #fff; color: #15365d; border-bottom: 1px solid #15365d0b; }
.solution-inner { width: calc(100% - 112px); max-width: 1176px; margin: 0 auto; padding: 52px 0 38px; }
.solution-intro { text-align: center; }
.solution-label { margin: 0 0 15px; font-size: 12px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: #13765e; }
.solution h2 { max-width: 960px; margin: 0 auto; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.2; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
.solution-description { max-width: 790px; margin: 18px auto 0; color: #253b4b; font-size: 17px; font-weight: 600; line-height: 1.8; text-wrap: pretty; }
.solution-scene { width: 100%; max-width: 920px; margin: 24px auto 0; }
.solution-image { display: block; width: 100%; height: auto; }
.solution-actions { text-align: center; margin-top: 13px; }
.solution-discover { display: inline-block; padding: 10px 4px; font-size: 13px; font-weight: 700; line-height: 1.7; color: #15365d; text-decoration: underline; text-decoration-color: #15365d55; text-underline-offset: 5px; }
.solution-discover:hover { color: #13765e; }
.permissions-image { mix-blend-mode: normal; }
@media (max-width: 1180px) {
  .problem-carousel { --problem-arrow-space: 64px; }
  .problem-opening .opening-inner { width: calc(100% - 72px); padding: 36px 0 57px; }
  .context-card { width: calc(100% - 72px); gap: 36px; }
  .problem-controls { width: calc(100% - 72px); }
  .context-number { font-size: 64px; }
  .context-unit { font-size: 24px; }
  .solution-inner { width: calc(100% - 72px); }
  .solution-scene { max-width: 850px; }
}
@media (max-width: 850px) {
  .problem-opening .opening-inner { width: calc(100% - 44px); max-width: 690px; padding: 32px 0 48px; }
  .opening-character { width: 204px; margin-bottom: -32px; }
  .problem-opening h1 { max-width: 690px; font-size: clamp(44px, 7.6vw, 58px); }
  .problem-opening .opening-description { max-width: 570px; font-size: 17px; margin-top: 22px; }
  .opening-cta { margin-top: 25px; }
  .context-card { width: calc(100% - 44px); grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 27px; padding: 29px 0; }
  .problem-controls { width: calc(100% - 44px); }
  .context-problem-title { font-size: 31px; }
  .context-number { font-size: 58px; }
  .context-unit { font-size: 22px; }
  .context-heading { font-size: 12px; }
  .context-description { font-size: 16px; }
  .solution-inner { width: calc(100% - 44px); padding: 42px 0 32px; }
  .solution h2 { max-width: 630px; font-size: 34px; }
  .solution-description { max-width: 600px; font-size: 16px; }
  .solution-scene { max-width: 700px; margin-top: 22px; }
}
@media (max-width: 580px) {
  .problem-carousel { --problem-arrow-space: 52px; }
  .problem-arrow-icon { width: 36px; height: 36px; }
  .header-nav .contact-link { font-size: 11px; }
  .problem-opening .opening-inner { width: calc(100% - 40px); padding: 26px 0 39px; }
  .opening-character { width: 168px; margin-bottom: -26px; }
  .problem-opening h1 { max-width: 440px; font-size: clamp(34px, 9vw, 48px); line-height: 1.12; letter-spacing: -.04em; }
  .problem-opening .opening-description { max-width: 430px; font-size: 16px; line-height: 1.75; margin-top: 20px; }
  .opening-cta { min-height: 52px; font-size: 15px; padding: 14px 24px; margin-top: 23px; }
  .context-card { width: calc(100% - 40px); max-width: 430px; grid-template-columns: 1fr; gap: 17px; padding: 26px 0 27px; }
  .problem-controls { width: calc(100% - 40px); max-width: 430px; }
  .context-problem-title { max-width: 340px; font-size: 30px; text-wrap: pretty; }
  .context-heading { margin-bottom: 9px; }
  .context-number { font-size: 54px; }
  .context-unit { font-size: 23px; }
  .context-scope { margin-top: 12px; }
  .solution-inner { width: calc(100% - 40px); padding: 35px 0 28px; }
  .solution-label { font-size: 11px; }
  .solution h2 { font-size: 30px; }
  .solution-description { margin-top: 17px; }
  .solution-scene { width: calc(100% + 16px); margin-left: -8px; margin-top: 20px; }
  .solution-discover { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .opening-cta { transition: none; }
  .opening-cta:hover { transform: none; }
  .problem-carousel.is-ready .problem-slide, .problem-selector::before, .problem-arrow-icon { transition: none; }
}
