/* EASE Approach: training planner page (the tool opener, how to read your plan, practitioners, CTA) */

/* ---------- The tool ---------- */
.pl { padding-block: clamp(18px, 2vw, 28px) clamp(56px, 6vw, 96px); }
.bg-mist .drift { color: rgba(35, 48, 168, .12); height: 50%; }
.pl__band { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 48px; margin-bottom: clamp(14px, 1.6vw, 22px); }
.pl h1 { font-size: clamp(2.3rem, 4vw, 3.9rem); margin: 0; flex: 0 1 auto; }
.pl__intro { margin: 0 0 .5em; flex: 0 1 25em; color: var(--muted); font-size: 1.05rem; line-height: 1.5; }
.pl__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 1.8vw, 26px); align-items: stretch; }

/* controls */
.pl__ctl { position: relative; min-width: 0; background: #fff; border-radius: var(--r); padding: clamp(18px, 1.9vw, 28px); box-shadow: 0 30px 70px -44px rgba(5, 3, 102, .45), 0 0 0 1px rgba(5, 3, 102, .06); }
.pl__ctl fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pl__f { min-width: 0; }
.pl__lab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; padding: 0; margin: 0 0 8px; font: 600 .98rem/1.3 var(--sans); color: var(--ink); }
legend.pl__lab { display: block; }
.pl__lab small { font-weight: 400; font-size: .92rem; color: var(--muted); margin-left: 6px; }
.pl__lab output { font: 600 1.85rem/1 var(--serif); color: var(--navy); font-variant-numeric: tabular-nums; min-width: 2.2em; text-align: right; }
.pl__ctl .range { height: 44px; }
.pl__ctl .range::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--orange) var(--p, 30%), #DCDCF0 var(--p, 30%)); }
.pl__ctl .range::-moz-range-track { background: #DCDCF0; }
.pl__ctl .range::-webkit-slider-thumb { box-shadow: 0 4px 14px rgba(5, 3, 102, .3); transition: transform .25s var(--ease-out); }
.pl__ctl .range:active::-webkit-slider-thumb { transform: scale(1.15); }
.pl__ctl .range:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: var(--rb); }

/* segmented buttons (radio inputs, so they work with arrow keys) */
.seg { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--mist); border-radius: var(--r); padding: 4px; }
.seg--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg label { position: relative; z-index: 1; min-height: 46px; display: grid; place-items: center; padding: 0 6px; border-radius: 4px; font: 600 .98rem/1.1 var(--sans); color: var(--navy); text-align: center; cursor: pointer; transition: color .35s; }
.seg label:hover { color: var(--royal); }
.seg input:checked + label { color: #fff; }
.seg input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 1px; }
.seg__thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 4); border-radius: 4px; background: var(--navy); box-shadow: 0 8px 18px -8px rgba(5, 3, 102, .6); transition: transform .55s var(--ease-out); }
.seg--2 .seg__thumb { width: calc((100% - 8px) / 2); }
.seg:has(input:nth-of-type(2):checked) .seg__thumb { transform: translateX(100%); }
.seg:has(input:nth-of-type(3):checked) .seg__thumb { transform: translateX(200%); }
.seg:has(input:nth-of-type(4):checked) .seg__thumb { transform: translateX(300%); }
@supports not selector(:has(*)) { .seg__thumb { display: none; } .seg input:checked + label { background: var(--navy); } }

.pl__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pl__pair .field { gap: 0; }
.pl__pair .field label { font-size: .98rem; }
.step { display: flex; height: 52px; border: 1.5px solid #C9C9E2; border-radius: var(--r); background: #fff; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.step:focus-within { border-color: var(--royal); box-shadow: 0 0 0 4px rgba(35, 48, 168, .15); }
.step button { flex: none; width: 50px; border: 0; background: var(--mist); color: var(--navy); display: grid; place-items: center; transition: background-color .25s, color .25s; }
.step button:hover { background: var(--orange); }
.step button:disabled { opacity: .4; cursor: default; background: var(--mist); }
.step button svg { width: 14px; height: 14px; }
.step input { flex: 1; min-width: 0; border: 0; background: transparent; text-align: center; font: 600 1.35rem/1 var(--serif); color: var(--navy); -moz-appearance: textfield; appearance: textfield; }
.step input::-webkit-outer-spin-button, .step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step input:focus { outline: none; }

/* the live plan */
.pl__plan { position: relative; min-width: 0; background: var(--navy); color: #E8E8F8; border-radius: var(--r); padding: clamp(18px, 1.9vw, 28px); box-shadow: 0 40px 80px -44px rgba(5, 3, 102, .7); overflow: clip; --accent: var(--orange); }
.pl__plan::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 90% 0%, rgba(35, 48, 168, .7), rgba(35, 48, 168, 0) 70%); }
.pl__plan > * { position: relative; }
.pl__nojs { display: none; }
.no-js .pl__nojs { display: block; }
.no-js .pl__live { display: none; }
.no-js .pl__plan { align-self: start; }
.pl__nojs-h { font: 600 1.6rem/1.2 var(--serif); color: #fff; }
.pl__nojs a { color: #FFB07A; font-weight: 600; }
.pl__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 22px; margin-bottom: 16px; }
.stat { border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 12px; min-width: 0; }
.stat strong { display: block; font: 600 clamp(2.2rem, 3.1vw, 3rem)/1 var(--serif); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.stat span { display: block; margin-top: 6px; font-size: .98rem; line-height: 1.3; color: rgba(232, 232, 248, .9); }
.stat small { display: block; font-size: .875rem; color: rgba(232, 232, 248, .65); }
.stat--cost strong { color: var(--orange); }

.tl__key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; font-size: .9rem; color: rgba(232, 232, 248, .78); }
.tl__key span { display: inline-flex; align-items: center; gap: 7px; }
.tl__key i { width: 12px; height: 12px; border-radius: 2px; flex: none; }
.k-c { background: var(--orange); }
.k-r { background: #8C95F0; }
.k-p { background: repeating-linear-gradient(135deg, #FC6703 0 3px, #FFD2B3 3px 6px); }
.k-i { box-shadow: inset 0 0 0 2px var(--orange); }
.tl__key .k-pp, .tl__key .k-in { display: none; }
.has-p .tl__key .k-pp, .has-p .tl__key .k-in { display: inline-flex; }
.tl__grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.tl__col { min-width: 0; }
.tl__stack { position: relative; height: clamp(110px, 17vh, 150px); display: flex; flex-direction: column-reverse; gap: 3px; padding: 4px 3px; border-bottom: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .04); border-radius: 2px 2px 0 0; }
.tl__m { display: block; padding-top: 7px; text-align: center; font-size: .875rem; font-weight: 600; line-height: 1.2; color: rgba(232, 232, 248, .8); }
.tl__m .s { display: none; }
.tl__m small { display: block; font-weight: 400; font-size: .875rem; color: rgba(232, 232, 248, .55); }
.blk { flex: none; display: block; height: var(--bh, 24px); border-radius: 2px; background: var(--orange); }
.blk.r { background: #8C95F0; }
.blk.p { background: repeating-linear-gradient(135deg, #FC6703 0 4px, #FFD2B3 4px 8px); }
.blk.in { background: rgba(252, 103, 3, .14); box-shadow: inset 0 0 0 2px var(--orange); }
.blk.r.in { background: rgba(140, 149, 240, .14); box-shadow: inset 0 0 0 2px #8C95F0; }
.tl__play { position: absolute; top: 0; left: 0; width: 2px; height: clamp(110px, 17vh, 150px); background: linear-gradient(180deg, rgba(255, 176, 122, 0), rgba(255, 176, 122, .95) 60%, rgba(255, 176, 122, 0)); pointer-events: none; opacity: 0; }

.cmp { margin: 16px 0 12px; }
.cmp__off { margin: 0; padding: 11px 14px; border: 1px dashed rgba(255, 255, 255, .3); border-radius: 4px; color: rgba(232, 232, 248, .85); font-size: .95rem; }
.cmp__on { display: grid; gap: 10px; }
.has-p .cmp__off { display: none; }
.pl__plan:not(.has-p) .cmp__on { display: none; }
.cmp__row { display: grid; grid-template-columns: minmax(0, 17em) minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; }
.cmp__name { font-size: .93rem; line-height: 1.3; color: rgba(232, 232, 248, .9); }
.cmp__bar { position: relative; height: 16px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.cmp__bar i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: var(--orange); }
.cmp__bar i[data-bar="b"] { background: #8C95F0; }
.cmp__row b { min-width: 4.6em; text-align: right; font: 600 1.3rem/1 var(--serif); color: #fff; font-variant-numeric: tabular-nums; }
.pl__ex { margin: 0 0 14px; font-size: .9rem; line-height: 1.45; color: rgba(232, 232, 248, .72); }
.pl__ex strong { display: block; margin-bottom: 2px; font-size: .98rem; font-weight: 600; color: #fff; }
.pl__send { width: 100%; justify-content: center; min-height: 58px; font-size: 1.05rem; }

@media (max-width: 980px) {
  .pl__grid { grid-template-columns: minmax(0, 1fr); }
  .pl .drift { inset: 0 0 auto 0; height: 360px; color: rgba(35, 48, 168, .18); }
}
@media (max-width: 600px) {
  .pl__band { margin-bottom: 14px; }
  .pl__intro { flex-basis: 100%; }
  .pl__pair { grid-template-columns: 1fr; }
  .pl__stats { gap: 10px 12px; }
  .stat strong { font-size: 2rem; }
  .stat span { font-size: .9rem; }
  .stat small { font-size: .875rem; }
  .tl__grid { gap: 3px; }
  .tl__stack { padding: 3px 2px; height: 120px; }
  .tl__m { font-size: .875rem; }
  .tl__m .l { display: none; }
  .tl__m .s { display: inline; }
  .tl__m small { display: none; }
  .cmp__row { grid-template-columns: minmax(0, 1fr) auto; }
  .cmp__bar { grid-column: 1 / -1; grid-row: 2; }
  .seg label { font-size: .92rem; padding: 0 2px; }
}

/* ---------- How to read your plan ---------- */
.read__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 2.8vw, 44px); }
.read__card { min-width: 0; }
.read__media { position: relative; margin-bottom: 40px; }
.read__img { aspect-ratio: 4 / 3; max-height: min(44vh, 380px); width: 100%; }
.read__img img { transition: transform 1.2s var(--ease-out); }
.read__card:hover .read__img img { transform: scale(1.05); }
.read__chip { position: absolute; z-index: 2; left: 18px; bottom: -22px; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; background: #fff; border-radius: var(--r); box-shadow: 0 20px 40px -18px rgba(5, 3, 102, .45), 0 0 0 1px rgba(5, 3, 102, .06); font-size: .92rem; color: var(--navy); }
.read__chip b { font-weight: 600; }
.seats { display: grid; grid-template-columns: repeat(6, 9px); gap: 3px; }
.seats i { width: 9px; height: 9px; border-radius: 2px; background: #DCDCF0; transition: background-color .3s; }
.seats i.on { background: var(--orange); }
.read__chip svg { width: 40px; height: 40px; flex: none; }
.read__chip--tree svg { width: 58px; height: 31px; }
.read__card h3 { margin-bottom: .4em; }
.read__card p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .read__grid { grid-template-columns: 1fr; gap: 40px; } .read__img { max-height: 300px; } }

/* ---------- Train your own practitioners ---------- */
.own__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(36px, 5vw, 84px); align-items: center; }
.own__media { position: relative; padding-bottom: 56px; }
.own__frame-wrap { width: min(80%, calc(min(70vh, 620px) * .8)); }
.own__photo { aspect-ratio: 4 / 5; max-height: min(70vh, 620px); width: 100%; }
.own .frame-wrap::before { border-color: rgba(255, 255, 255, .35); }
.vid { position: absolute; z-index: 2; right: 0; bottom: 0; width: min(300px, 58%); padding: 10px; background: #fff; color: var(--ink); border-radius: var(--r); box-shadow: 0 34px 60px -26px rgba(4, 3, 52, .8); }
.vid__screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.vid__s { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; }
.vid__s.is-on { opacity: 1; }
.vid__play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 2l5 3-5 3z' fill='%232330A8'/%3E%3C/svg%3E") 58% 50% / 46% no-repeat; box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); }
.motion .vid__play { animation: playPulse 2.4s ease-out infinite; }
@keyframes playPulse { to { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); } }
.vid__t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 10px 4px 8px; font-weight: 600; font-size: .95rem; }
.vid__t small { font-weight: 400; color: var(--muted); font-size: .875rem; }
.vid__prog { display: block; height: 3px; margin: 0 4px 4px; background: var(--mist); }
.vid__prog i { display: block; height: 100%; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); }
.own__list { list-style: none; margin: 26px 0 30px; padding: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.own__list li { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.own__list strong { font: 600 1.15rem/1.35 var(--serif); color: #fff; }
.own__list span { color: rgba(241, 241, 252, .84); }
@media (max-width: 900px) {
  .own__grid { grid-template-columns: 1fr; }
  .own__list li { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .vid { width: 68%; } .own__frame-wrap { width: 86%; } .own__media { padding-bottom: 84px; } }
.tl__stack { transition: background-color .45s; }
.tl__stack.lit { background: rgba(255, 255, 255, .11); }
.blk { transition: box-shadow .45s; }
.tl__stack.lit .blk { box-shadow: 0 0 16px rgba(252, 103, 3, .75); }
.tl__stack.lit .blk.in { box-shadow: inset 0 0 0 2px var(--orange), 0 0 16px rgba(252, 103, 3, .75); }
.tl__stack.lit .blk.r.in { box-shadow: inset 0 0 0 2px #8C95F0, 0 0 16px rgba(140, 149, 240, .8); }

/* controls footnote fills the panel's foot with the calm line */
.pl__ctl { display: flex; flex-direction: column; gap: 16px; }
.pl__note { margin-top: auto; padding-top: 4px; }
.pl__note .calm { height: 22px; margin: 0 0 6px; }
.pl__note p { margin: 0; font-size: .92rem; color: var(--muted); }
.pl__plan { scroll-margin-top: calc(var(--head-h) + 16px); }

/* phones: a slim dock shows the plan's numbers while the controls are on screen */
.pl__dock { position: fixed; z-index: 80; left: 12px; right: 12px; bottom: 12px; display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.3fr) auto; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--r); background: var(--navy); color: rgba(232, 232, 248, .85); font-size: .875rem; line-height: 1.2; text-decoration: none; box-shadow: 0 20px 40px -16px rgba(5, 3, 70, .7); visibility: hidden; }
.pl__dock > span { min-width: 0; display: block; white-space: nowrap; overflow: hidden; }
.pl__dock b { display: block; font: 600 1.2rem/1.1 var(--serif); color: #fff; font-variant-numeric: tabular-nums; }
.pl__dock > span > span { display: block; }
.pl__dock > span:nth-child(3) b { color: var(--orange); }
.pl__dock em { font-style: normal; font-weight: 600; color: #FFB07A; white-space: nowrap; }
@media (max-width: 980px) { .motion .pl__dock { display: grid; } }

/* phones: the four settings sit two by two */
@media (max-width: 480px) {
  .seg--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg--4 .seg__thumb { width: calc((100% - 8px) / 2); bottom: auto; height: calc((100% - 8px) / 2); }
  .seg--4:has(input:nth-of-type(2):checked) .seg__thumb { transform: translateX(100%); }
  .seg--4:has(input:nth-of-type(3):checked) .seg__thumb { transform: translateY(100%); }
  .seg--4:has(input:nth-of-type(4):checked) .seg__thumb { transform: translate(100%, 100%); }
}
/* the plan panel breathes: a soft royal glow drifts behind the figures */
.pl__plan::before { content: none; }
.pl__plan > .pl__glow { position: absolute; z-index: 0; left: 30%; top: -45%; width: 90%; height: 120%; pointer-events: none; background: radial-gradient(closest-side, rgba(52, 66, 200, .85), rgba(35, 48, 168, 0)); }
.motion .pl__glow { animation: plGlow 11s ease-in-out infinite alternate; }
@keyframes plGlow { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-38%, 30%) scale(1.15); } 100% { transform: translate(-70%, 60%) scale(.9); } }
.tl__stack.lit { background: rgba(255, 255, 255, .16); }
.tl__play { width: 3px; }

.tl__for { margin-left: auto; font-weight: 600; color: #fff; }
@media (max-width: 600px) { .tl__for { margin-left: 0; flex-basis: 100%; order: -1; } }

/* the [hidden] attribute must win over the form's display rule */
form.pl__ctl[hidden] { display: none; }

/* seats chip: one svg, squares fill in turn */
.seats { display: block; width: 69px; height: 33px; flex: none; }
.seats rect { fill: #DCDCF0; transition: fill .3s; }
.seats rect.on { fill: var(--orange); }

/* train your own practitioners: fits one desktop screen */
.own { padding-block: clamp(64px, 6vw, 96px); }
.own__media { padding-bottom: 48px; }
.own__frame-wrap { width: min(80%, calc(min(62vh, 560px) * .8)); }
.own__photo { max-height: min(62vh, 560px); }
.own__text .calm { margin-bottom: 18px; }
.own__list { margin: 20px 0 26px; }
.own__list li { padding: 12px 0; }

/* short laptop screens (1366x768): keep the send button well inside the first screen */
@media (max-height: 820px) and (min-width: 981px) {
  .pl { padding-top: 10px; }
  .pl h1 { font-size: clamp(2.3rem, 3.5vw, 3.3rem); }
  .pl__band { margin-bottom: 12px; }
  .pl__ctl { gap: 12px; padding-top: 18px; padding-bottom: 18px; }
  .pl__plan { padding-top: 18px; padding-bottom: 18px; }
  .pl__stats { margin-bottom: 10px; }
  .tl__stack, .tl__play { height: 104px; }
  .cmp { margin: 10px 0 8px; }
}
@media (max-height: 820px) and (min-width: 901px) { .pl__note { display: none; } }
