/* ============================================================================
   Steps XL — a large expanding-panel presentation for the 3-step
   "how simple" story. One panel open huge (big headline + copy + a live-feel
   UI vignette), the others collapsed to slim teal columns. Click a collapsed
   panel to open it; auto-advances until the visitor interacts. Pair with
   steps-xl.js.

   MARKUP
   ------
   <div class="sxl rise" data-sxl>
     <article class="sxl-panel is-open">
       <button class="sxl-head" type="button" aria-expanded="true">
         <span class="sxl-badge">1</span><span class="sxl-lab">Label</span>
         <span class="sxl-more"><i class="ti ti-plus"></i></span>
       </button>
       <div class="sxl-body">
         <div class="sxl-copy"><span class="sxl-step">Step 1</span><h3>…</h3><p>…</p></div>
         <div class="sxl-art"> …white vignette card… </div>
       </div>
     </article>
     … one .sxl-panel per step …
   </div>
   <p class="sxl-punch">…</p>
   ============================================================================ */

#how-simple .wrap { max-width: 1360px; }

.sxl {
  display: flex;
  gap: 16px;
  height: 560px;
  margin-top: 56px;
}

.sxl-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(212,169,85,0.18);
  background: linear-gradient(180deg, #0f3236, #0a2629);
  box-shadow: 0 28px 56px -36px rgba(8,30,32,0.9);
  flex: 0 0 172px;
  min-width: 0;
  transition: flex-grow .65s cubic-bezier(.22,1,.36,1), flex-basis .65s cubic-bezier(.22,1,.36,1);
  cursor: pointer;
}
.sxl-panel.is-open {
  flex: 1 1 640px;
  cursor: default;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(212,169,85,0.14), transparent 55%),
    linear-gradient(180deg, #0f3236, #0a2629);
}

/* Collapsed overlay: gold number, label, plus hint */
.sxl-head {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  gap: 18px; padding: 34px 18px 30px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--sans); text-align: center;
  opacity: 1; transition: opacity .3s ease .2s;
}
.sxl-panel.is-open .sxl-head { opacity: 0; pointer-events: none; transition-delay: 0s; }
.sxl-badge {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto;
  font-size: 27px; font-weight: 700; color: #10302f;
  background: radial-gradient(circle at 50% 32%, #e7c473, #c2913f 80%);
  box-shadow: 0 12px 26px -10px rgba(0,0,0,0.65);
}
.sxl-lab {
  color: #f5efe2; font-size: 17px; font-weight: 600; line-height: 1.3;
  text-wrap: balance;
}
.sxl-more {
  margin-top: auto;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold-soft); font-size: 20px;
  border: 1px solid rgba(212,169,85,0.35);
  transition: background .2s, color .2s;
}
.sxl-head:hover .sxl-more { background: var(--gold-soft); color: #10302f; }

/* Open content */
.sxl-body {
  display: grid; grid-template-columns: 1.05fr 1fr;
  align-items: center; gap: 40px;
  height: 100%; min-width: 660px; box-sizing: border-box;
  padding: 48px 56px;
  opacity: 0; transition: opacity .3s ease;
}
.sxl-panel.is-open .sxl-body { opacity: 1; transition: opacity .45s ease .18s; }

.sxl-step {
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 600;
}
.sxl-copy h3 {
  color: #f5efe2; font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 3vw, 42px); line-height: 1.08; letter-spacing: -0.01em;
  margin: 14px 0 0; text-wrap: balance;
}
.sxl-copy p {
  color: rgba(245,239,226,0.8); font-size: 17.5px; line-height: 1.6;
  margin: 18px 0 0; max-width: 46ch; text-wrap: pretty;
}

/* White UI vignette card */
.sxl-art { display: grid; justify-items: center; }
.sxl-card {
  width: min(100%, 390px); box-sizing: border-box;
  background: #fff; border-radius: 16px; padding: 20px 22px 22px;
  box-shadow: 0 30px 60px -30px rgba(4,20,22,0.85);
  font-family: var(--sans);
}
.sxlc-top {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.sxlc-ic {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 21px;
  background: rgba(23,95,100,0.1); color: var(--accent);
}
.sxlc-top b { display: block; font-size: 15.5px; color: var(--brown); }
.sxlc-top small { display: block; font-size: 12.5px; color: var(--brown-4); margin-top: 1px; }
.sxlc-pill {
  margin-left: auto; flex: 0 0 auto;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
  color: #7c5a24; background: rgba(212,169,85,0.18);
  border: 1px solid rgba(179,136,74,0.35);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.sxlc-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; font-size: 14.5px; color: var(--brown-2);
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(6px);
}
.sxlc-row:last-of-type { border-bottom: 0; }
.sxlc-row > i { font-size: 18px; color: var(--accent); flex: 0 0 auto; }
.sxlc-row .ok { margin-left: auto; color: var(--success); font-size: 18px; }
.sxlc-row .val { margin-left: auto; color: var(--brown-4); font-size: 13.5px; white-space: nowrap; }
.sxlc-tag {
  margin-left: auto; font-size: 11.5px; font-weight: 600;
  color: var(--accent); background: rgba(23,95,100,0.08);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.sxlc-foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding-top: 13px; border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--gold);
  opacity: 0; transform: translateY(6px);
}
.sxlc-foot i { font-size: 16px; }
.sxlc-year {
  flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--accent);
  background: rgba(23,95,100,0.1); padding: 3px 8px; border-radius: 6px;
}
.sxlc-row.is-gold { color: var(--gold); font-weight: 600; }
.sxlc-row.is-gold > i { color: var(--gold); }

/* Rows cascade in each time a panel opens */
.sxl-panel.is-open .sxlc-row, .sxl-panel.is-open .sxlc-foot {
  animation: sxlRowIn .5s cubic-bezier(.22,1,.36,1) forwards;
}
.sxl-panel.is-open .sxlc-row:nth-of-type(1) { animation-delay: .35s; }
.sxl-panel.is-open .sxlc-row:nth-of-type(2) { animation-delay: .5s; }
.sxl-panel.is-open .sxlc-row:nth-of-type(3) { animation-delay: .65s; }
.sxl-panel.is-open .sxlc-row:nth-of-type(4) { animation-delay: .8s; }
.sxl-panel.is-open .sxlc-foot { animation-delay: .95s; }
@keyframes sxlRowIn { to { opacity: 1; transform: translateY(0); } }

/* Punch line */
.sxl-punch {
  text-align: center; margin: 38px auto 0; max-width: 62ch;
  font-size: 19px; line-height: 1.55; color: var(--brown-3); text-wrap: balance;
}
.sxl-punch strong { color: var(--accent); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .sxl-panel, .sxl-head, .sxl-body { transition: none; }
  .sxlc-row, .sxlc-foot { opacity: 1; transform: none; animation: none; }
  .sxl-panel.is-open .sxlc-row, .sxl-panel.is-open .sxlc-foot { animation: none; }
}

/* Mid screens: copy only, no vignette, so nothing clips */
@media (max-width: 1140px) and (min-width: 901px) {
  .sxl { height: 500px; }
  .sxl-panel { flex-basis: 136px; }
  .sxl-panel.is-open { flex-basis: 520px; }
  .sxl-body { grid-template-columns: 1fr; min-width: 520px; padding: 44px 48px; }
  .sxl-art { display: none; }
  .sxl-lab { font-size: 15.5px; }
}

/* Stacked accordion on small screens */
@media (max-width: 900px) {
  .sxl { flex-direction: column; height: auto; }
  .sxl-panel, .sxl-panel.is-open { flex: none; }
  .sxl-head {
    position: static; flex-direction: row; text-align: left;
    gap: 14px; padding: 18px 20px;
  }
  .sxl-badge { width: 46px; height: 46px; font-size: 21px; }
  .sxl-lab { font-size: 16px; }
  .sxl-more { margin-top: 0; margin-left: auto; width: 34px; height: 34px; font-size: 17px; }
  .sxl-panel.is-open .sxl-head { opacity: 1; pointer-events: none; }
  .sxl-panel.is-open .sxl-head .sxl-more { transform: rotate(45deg); }
  .sxl-body { display: none; }
  .sxl-panel.is-open .sxl-body {
    display: grid; grid-template-columns: 1fr; gap: 26px;
    min-width: 0; height: auto; padding: 4px 22px 28px; opacity: 1;
  }
  .sxl-copy h3 { margin-top: 4px; }
  .sxl-punch { font-size: 17px; }
}
