/* Original Curava service examples, adapted to the chosen Figma panels.
   Equal-height grid layers keep the tab rail stable while content defines height. */
.panels { display: grid; height: auto; min-height: calc(650 * var(--u)); }
.panel { position: relative; inset: auto; grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); align-items: center; gap: clamp(32px,4vw,64px); padding: clamp(28px,2.7778vw,56px); }
.panel-copy { align-self: start; padding-top: 4px; min-width: 0; }
.panel-copy h2 { width: 100%; font-size: clamp(32px,3.3333vw,56px); }
.panel-copy > p { width: 100%; max-width: 526px; font-size: clamp(17px,1.25vw,22px); line-height: 1.45; margin-top: 24px; }
.panel-copy .text-button { font-size: clamp(17px,1.3889vw,22px); margin-top: 28px; min-height: 48px; gap: 16px; }
.panel-copy .text-button img { width: 24px; height: 24px; }
.service-visual { min-width: 0; width: 100%; max-width: 620px; justify-self: center; color: var(--teal); }
.service-visual h3,.service-visual h4 { margin: 0; letter-spacing: -.025em; }
.service-visual p { width: auto; margin: 0; font-size: 15px; line-height: 1.4; }
.example-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-bottom: 14px; margin-bottom: 22px; border-bottom: 1px solid #183f4233; font-size: 12px; line-height: 1.4; }
.support-path { background: var(--cream); padding: clamp(24px,2.2vw,36px); }
/* Display the complete approved 2:1 support photograph. */
.support-photo { position: relative; aspect-ratio: 2 / 1; overflow: hidden; margin-bottom: 22px; }
.support-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.support-path .example-meta { margin-bottom: 0; }
.support-path ul { list-style: none; padding: 0; margin: 0; }
.support-path li { padding: 17px 0; border-bottom: 1px solid #183f422b; }
.support-path li:last-child { border: 0; padding-bottom: 0; }
.support-path h4 { font-family: var(--font-text); font-size: 21px; font-weight: 700; letter-spacing: normal; margin-bottom: 6px; }
.service-visual button:focus-visible { outline: 3px solid var(--teal); }

/* Stable, equal-height outer cards prevent pointer-edge flicker.
   Only the inner surfaces move; all original copy stays visible. */
.begin { height: auto; padding: clamp(240px,39vw,570px) 0 24px; }
.classroom { position: absolute; inset: 0; width: 100%; height: 100%; }
.steps { position: relative; left: auto; right: auto; bottom: auto; margin: 0 clamp(16px,1.6667vw,32px); align-items: stretch; grid-auto-rows: 1fr; }
.step { position: relative; padding: 0; background: transparent; }
.step-surface { height: 100%; min-height: inherit; padding: clamp(16px,1.6667vw,24px); border-top: 4px solid transparent; background: var(--cream); transition: transform .3s cubic-bezier(.2,.7,.2,1),background-color .3s ease,border-color .3s ease,box-shadow .3s ease; }
.step h3 { font-size: clamp(26px,2.7778vw,40px); }
.step p { font-size: clamp(16px,1.25vw,18px); line-height: 1.45; }
@media (hover:hover) and (pointer:fine) {
  .step:hover { z-index: 1; }
  .step:hover .step-surface { transform: translateY(-10px); background: var(--blue); border-color: var(--coral); box-shadow: 0 12px 24px #183f421f; }
}
@media (hover:none) {
  .step:active .step-surface { background: var(--blue); border-color: var(--coral); }
}
@media (max-width:1000px) {
  .panel { grid-template-columns: minmax(0,1fr); align-content: start; gap: 32px; padding: 32px; }
  .panel-copy { width: 100%; max-width: 620px; justify-self: center; }
  .panel-copy h2 { font-size: clamp(30px,5vw,42px); }
  .panel-copy > p { max-width: none; }
  .panel-copy .text-button { margin-top: 20px; }
  .service-visual { align-self: start; }
  .approach-tabs { height: auto; min-height: 112px; }
  .approach-tab { padding: 24px 16px; gap: 12px; font-size: 17px; }
  .approach-tab strong,.approach-tab small { white-space: normal; }
  .begin { padding-top: 300px; }
}
@media (max-width:760px) {
  /* Only the selected panel contributes height; keep the approved crossfade. */
  .panels { min-height: 0; overflow: clip; overflow-anchor: none; }
  .panel:not(.is-active) { position: absolute; inset: 0; }
  .panel { padding: 28px 20px; gap: 30px; }
  .panel-copy h2 { font-size: clamp(30px,7.8vw,46px); }
  .service-visual p { font-size: 14px; }
  .support-path { padding: 22px 18px; }
  .example-meta { font-size: 11px; margin-bottom: 20px; }
  .support-path h4 { font-size: 20px; }
  .approach-tabs { min-height: 128px; }
  .approach-tab { padding: 18px 8px; font-size: 14px; }
  .begin { padding: 0 0 24px; }
  .classroom { position: relative; height: 440px; object-position: 50% 40%; }
  .steps { margin: -90px 16px 0; }
  .step { padding: 0; }
  .step-surface { padding: 24px; }
  .step h3 { font-size: 32px; }
  .step p { font-size: 17px; }
}
@media (prefers-reduced-motion:reduce) {
  .step-surface { transition: none; }
  .step:hover .step-surface { transform: none; }
}

/* Approved platform screenshot: preserve the entire source image at every width. */
.platform-preview { margin: 0; }
.platform-preview-title { font-family: var(--font-display); font-size: 26px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; margin: 0 0 20px; }
.platform-screen { display: block; width: 100%; background: var(--ink); padding: 5px; border-radius: 8px; box-shadow: 0 20px 34px #183f4229; }
.platform-screen img { width: 100%; height: auto; border-radius: 3px; }
@media (max-width:760px) {
 .platform-preview-title { font-size: 25px; margin-bottom: 18px; }
 .platform-screen { padding: 4px; }
}
