/* ==========================================================================
   omarfaruc.com · cohorts.css
   The cohorts page: the four side by side, the year at a glance, how a cohort
   runs, and the price ladder. Built on the kit in app.css.
   ========================================================================== */

/* ---------- Hero ---------- */
.cy-hero{padding-bottom:clamp(48px,6vw,96px)}
.cy-hero .phero__k{gap:10px 12px;justify-content:center}
.cy-hero .phero__k .syms{--syms-ring:var(--studio)}
.cy-hero .phero__h{max-width:13ch}

/* ---------- The four ---------- */
.cy-four .head--split .link{font-size:var(--fs-3);margin-bottom:6px}
.cy-four .p4{gap:8px}
.cy-part{margin-top:6px;font-size:var(--fs-ui);font-weight:600;color:var(--ink-3);letter-spacing:.005em}
.cy-four .p4__name{margin-top:-4px}
.cy-four .p4 .link{margin-top:2px}
.cy-four .p4 .link .ic{transition:transform .25s var(--ease)}
.cy-four .p4:hover .link .ic{transform:translateX(3px)}
/* the four cards line up row by row, so the eye can compare them across */
@supports (grid-template-rows:subgrid){
  .cy-four .p4{display:grid;grid-row:span 7;grid-template-rows:subgrid;row-gap:8px;align-content:start}
  .cy-four .p4__meta{align-self:end}
}

/* ---------- The year at a glance ---------- */
/* One track for the whole year. Each run sits on it in its own colour, with its symbol.
   Wide screens read left to right; phones and tablets read top to bottom. */
.yr{--track:112px;--axis:166px;position:relative;padding:clamp(22px,2.6vw,32px) clamp(20px,2.8vw,36px) 22px;border-radius:var(--r-xl);background:#fff;box-shadow:var(--sh-1)}
.yr__plot{position:relative;height:214px;margin:0 2px}
.yr__plot:empty{display:none}

/* months: a tick and a name along the bottom, a hairline up through the track */
.yr__m{position:absolute;top:calc(var(--track) - 34px);bottom:0;left:calc(var(--a) * 100%);width:calc(var(--b) * 100%);border-left:1px solid var(--line);pointer-events:none}
.yr__m b{position:absolute;left:8px;top:calc(var(--axis) - var(--track) + 34px);font-size:13px;font-weight:600;color:var(--ink-3);letter-spacing:-.005em;white-space:nowrap}
.yr__m i{position:absolute;left:8px;top:calc(var(--axis) - var(--track) + 52px);font-style:normal;font-size:12px;color:var(--ink-4);white-space:nowrap}
.yr__m.is-now{background:linear-gradient(180deg,rgba(124,75,176,.07),rgba(124,75,176,0))}
.yr__m.is-now b{color:var(--violet)}

/* the track */
.yr__line{position:absolute;left:0;right:0;top:calc(var(--track) - 2px);height:4px;border-radius:4px;background:var(--grey-2)}

/* a run: one box from its first Monday to its last pod, holding its label and its bars */
.yr__run{position:absolute;top:0;bottom:0;left:calc(var(--a) * 100%);width:calc((var(--e) - var(--a)) * 100%);color:var(--ink);z-index:1}
.yr__lab{position:absolute;left:0;top:14px;display:flex;align-items:center;gap:10px;white-space:nowrap;line-height:1.25;transition:transform .35s var(--ease)}
.yr__lab .sym{--s:36px}
.yr__lt{display:flex;flex-direction:column}
.yr__lt b{display:inline-flex;align-items:center;gap:8px;font-size:16px;letter-spacing:-.02em}
.yr__lt small{font-size:13px;color:var(--ink-3)}
.yr__lt .st{display:none}
.yr__offnote{display:none}
.yr__run--end .yr__lab{left:auto;right:0}
.yr__run:hover .yr__lab,.yr__run:focus-visible .yr__lab{transform:translateY(-2px)}
.yr__run:focus-visible{outline:none}
.yr__run:focus-visible .yr__lt b{text-decoration:underline;text-underline-offset:3px}

.yr__bar{position:absolute;top:calc(var(--track) - 8px);height:16px;left:calc(var(--sa) * 100%);width:calc(var(--sb) * 100%);border-radius:8px;background:linear-gradient(90deg,color-mix(in srgb,var(--cl) 45%,var(--c)),var(--c) 80%);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 6px 14px -6px var(--c);transition:transform .35s var(--ease),box-shadow .35s var(--ease)}
.yr__run:hover .yr__bar{transform:scaleY(1.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 10px 20px -8px var(--c)}
/* the weeks with no calls, inside a run */
.yr__off{position:absolute;top:calc(var(--track) - 1px);height:2px;left:calc(var(--sa) * 100%);width:calc(var(--sb) * 100%);background:repeating-linear-gradient(90deg,var(--c) 0 4px,transparent 4px 8px);opacity:.55}
.yr__off b{position:absolute;left:50%;top:-22px;transform:translateX(-50%);font-size:11.5px;font-weight:600;color:var(--ink-3);white-space:nowrap}
/* the last day for seats */
.yr__ring{position:absolute;top:calc(var(--track) - 6px);left:calc(var(--sa) * 100% - 6px);width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 2.5px var(--c)}
/* today */
.yr__today{position:absolute;top:var(--track);height:20px;left:calc(var(--a) * 100%);width:0;border-left:2px solid var(--violet-2);margin-left:-1px;z-index:2;pointer-events:none}
.yr__today::after{content:"";position:absolute;left:-8px;top:-7px;width:14px;height:14px;border-radius:50%;background:var(--violet-2);box-shadow:0 0 0 4px rgba(124,75,176,.18)}
.yr__today b{position:absolute;left:0;top:20px;transform:translateX(-50%);display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:999px;background:var(--violet);color:#fff;font-size:12px;font-weight:600;white-space:nowrap}
@media (prefers-reduced-motion:no-preference){
  .yr.is-drawn .yr__today::after{animation:yrpulse 2.4s ease-out infinite}
  .yr.is-drawn .yr__bar{transform-origin:0 50%}
  .yr.is-drawn:not(.is-live) .yr__bar{opacity:0}
  .yr.is-live .yr__bar{animation:yrgrow .9s var(--ease) backwards;animation-delay:calc(var(--i,0) * 110ms + 100ms)}
}
@keyframes yrpulse{0%{box-shadow:0 0 0 0 rgba(124,75,176,.4)}70%{box-shadow:0 0 0 9px rgba(124,75,176,0)}100%{box-shadow:0 0 0 0 rgba(124,75,176,0)}}
@keyframes yrgrow{from{transform:scaleX(0);opacity:0}}

/* the same year in words, for when scripts are off (the drawn runs carry their own labels) */
.yr__list{display:grid;gap:10px}
.yr__list a{display:flex;align-items:flex-start;gap:10px;font-size:var(--fs-3);line-height:1.45;color:var(--ink-2)}
.yr__list b{color:var(--ink)}
.yr.is-drawn .yr__list{display:none}
.yr__key{display:flex;flex-wrap:wrap;gap:8px 22px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line);font-size:13px;font-weight:500;color:var(--ink-3)}
.yr__key span{display:inline-flex;align-items:center;gap:8px}
.yr__k{display:inline-block;flex:none}
.yr__k--today{width:12px;height:12px;border-radius:50%;background:var(--violet-2);box-shadow:0 0 0 3px rgba(124,75,176,.18)}
.yr__k--run{width:26px;height:10px;border-radius:5px;background:linear-gradient(90deg,#C7C7CC,#6E6E73)}
.yr__k--off{width:22px;height:2px;background:repeating-linear-gradient(90deg,#86868B 0 4px,transparent 4px 8px)}
.yr__k--ring{width:12px;height:12px;border-radius:50%;box-shadow:inset 0 0 0 2.5px #86868B}
.cy-today{color:var(--ink);font-weight:600;white-space:nowrap}
.cy-note{margin-top:18px;max-width:none}
.cy-note .ic{margin-top:3px}

/* phones and tablets: the same year, top to bottom */
@media (max-width:1023px){
  .yr{--tx:66px;--lx:92px}
  .yr__plot{height:660px}
  .yr__m{top:calc(var(--a) * 100%);height:calc(var(--b) * 100%);bottom:auto;left:0;right:0;width:auto;border-left:0;border-top:1px solid var(--line)}
  .yr__m b{left:0;top:6px;font-size:13px}
  .yr__m i{left:0;top:23px;font-size:11.5px}
  .yr__m.is-now{background:linear-gradient(90deg,rgba(124,75,176,.07),rgba(124,75,176,0) 70%)}
  .yr__line{left:calc(var(--tx) - 2px);right:auto;top:0;bottom:0;width:4px;height:auto}
  .yr__run{left:0;right:0;width:auto;top:calc(var(--a) * 100%);bottom:auto;height:calc((var(--e) - var(--a)) * 100%)}
  .yr__lab{left:var(--lx);top:-2px;align-items:flex-start;white-space:normal;right:0}
  .yr__run--end .yr__lab{left:var(--lx);right:0}
  .yr__lab .sym{--s:34px}
  .yr__lt{gap:1px}
  .yr__lt .st{display:inline-flex}
  .yr__offnote{display:block}
  .yr__bar{left:calc(var(--tx) - 8px);width:16px;top:calc(var(--sa) * 100%);height:calc(var(--sb) * 100%);background:linear-gradient(180deg,color-mix(in srgb,var(--cl) 45%,var(--c)),var(--c) 80%)}
  .yr__run:hover .yr__bar{transform:scaleX(1.18)}
  .yr__off{left:calc(var(--tx) - 1px);width:2px;top:calc(var(--sa) * 100%);height:calc(var(--sb) * 100%);background:repeating-linear-gradient(180deg,var(--c) 0 4px,transparent 4px 8px)}
  .yr__off b{display:none}
  .yr__ring{left:calc(var(--tx) - 6px);top:calc(var(--sa) * 100% - 6px)}
  .yr__today{top:calc(var(--a) * 100%);bottom:auto;left:calc(var(--tx) - 20px);width:40px;height:0;margin:-1px 0 0;border-left:0;border-top:2px solid var(--violet-2)}
  .yr__today::after{left:13px;top:-8px}
  .yr__today b{left:calc(var(--lx) - var(--tx) + 20px);top:-12px;transform:none}
  .yr__today.is-busy b{display:none}
  @media (prefers-reduced-motion:no-preference){ .yr.is-drawn .yr__bar{transform-origin:50% 0} .yr.is-live .yr__bar{animation-name:yrgrowv} }
}
@keyframes yrgrowv{from{transform:scaleY(0);opacity:0}}
@media print{ .yr .yr__bar{opacity:1!important;animation:none!important} }
@media (max-width:480px){
  .yr{--tx:52px;--lx:76px}
  .yr__plot{height:640px}
  .yr__lab .sym{--s:30px}
  .yr__lt b{font-size:15px;flex-wrap:wrap;row-gap:2px}
  .yr__lt small{font-size:12.5px}
  .yr__key{gap:8px 16px}
}

/* ---------- How a cohort runs ---------- */
.cy-runs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.cy-run{display:flex;flex-direction:column;gap:12px;padding:clamp(22px,2.4vw,30px);border-radius:var(--r-l);background:var(--grey)}
.cy-run p{color:var(--ink-3);line-height:1.55}
.cy-run__day{align-self:flex-start;display:inline-flex;align-items:center;gap:4px;height:30px;padding:0 12px;border-radius:999px;background:#fff;font-size:var(--fs-ui);font-weight:700;letter-spacing:-.01em;box-shadow:var(--sh-1)}
.cy-run__day i{font-style:normal;font-weight:500;color:var(--ink-3)}
.cy-run__t{font-size:var(--fs-2b);font-weight:700;letter-spacing:-.03em;line-height:1.15;text-wrap:balance}
.cy-run__meta{margin-top:auto;display:flex;align-items:center;gap:8px;padding-top:6px;font-size:var(--fs-ui);font-weight:600;color:var(--ink-2)!important}
.cy-run__meta .ic{width:16px;height:16px;color:var(--violet)}
.cy-run--photo{grid-row:span 2;padding:0;overflow:hidden;min-height:320px;background:var(--grey-2);position:relative}
.cy-run--photo picture,.cy-run--photo img{position:absolute;inset:0;width:100%;height:100%}
.cy-run--photo img{object-fit:cover;object-position:60% 50%}
.cy-pods{grid-column:span 2;display:flex;flex-direction:column;gap:18px;padding:clamp(22px,2.4vw,30px);border-radius:var(--r-l);background:var(--grey)}
.cy-pods__head p{margin-top:8px;color:var(--ink-3);line-height:1.55;max-width:52ch}
.cy-pods__list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.cy-pods__list li{display:flex;flex-direction:column;gap:2px;padding:14px 14px 13px;border-radius:16px;background:#fff;box-shadow:var(--sh-1);min-width:0}
.cy-pods__list b{font-size:var(--fs-ui);color:var(--ink-3);font-weight:600;letter-spacing:-.005em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cy-pods__when{font-size:var(--fs-lead);font-weight:700;letter-spacing:-.03em;line-height:1.2}
.cy-pods__list small{font-size:var(--fs-4);color:var(--ink-3);line-height:1.4}
.cy-pods__list small em{display:block;font-style:normal;color:var(--violet);font-weight:600}
@media (max-width:1023px){
  .cy-runs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cy-run--photo{grid-row:auto;grid-column:1 / -1;order:1;min-height:0;aspect-ratio:16/9}
  .cy-run--photo img{object-position:50% 40%}
  .cy-pods{grid-column:1 / -1}
  .cy-pods__list{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:640px){
  .cy-runs{grid-template-columns:1fr}
  .cy-run--photo{aspect-ratio:4/3}
  .cy-pods__list{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ---------- The price ladder ---------- */
#price .head__lead{margin-inline:auto}
.cy-ladder{display:grid;gap:16px;max-width:1040px;margin-inline:auto}
.cy-pass{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(24px,4vw,64px);align-items:center;padding:clamp(24px,3.4vw,44px);border-radius:var(--r-xl);background:radial-gradient(90% 120% at 100% 0%,rgba(226,109,240,.16),transparent 60%),#fff;box-shadow:var(--sh-2)}
.cy-pass__k{display:inline-flex;align-items:center;gap:12px;font-size:var(--fs-ui);font-weight:600;color:var(--ink-3)}
.cy-pass__name{margin-top:16px;font-size:var(--fs-2b);font-weight:700;letter-spacing:-.04em;line-height:1.04}
.cy-pass__price{margin-top:6px;font-size:var(--fs-2b);font-weight:700;letter-spacing:-.05em;line-height:1;color:var(--violet);font-variant-numeric:tabular-nums}
.cy-pass__p{margin-top:16px;max-width:46ch;font-size:var(--fs-3);line-height:1.55;color:var(--ink-2)}
.cy-pass__cta{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px;margin-top:24px}
.cy-bars{display:grid;gap:18px}
.cy-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;font-size:var(--fs-ui);color:var(--ink-2)}
.cy-bar b{font-size:var(--fs-3);letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums}
.cy-bar i{grid-column:1 / -1;display:block;height:12px;border-radius:6px;background:var(--grey-2);position:relative;overflow:hidden}
.cy-bar i::after{content:"";position:absolute;inset:0;width:var(--w);border-radius:6px;background:#86868B}
.cy-bar--strike b{color:var(--ink-3);text-decoration:line-through;text-decoration-thickness:1.5px}
.cy-bar--strike i::after{background:#C7C7CC}
.cy-bar--win span{font-weight:600;color:var(--ink)}
.cy-bar--win b{color:var(--violet)}
.cy-bar--win i::after{background:var(--grad)}
.cy-one{text-align:center;font-size:var(--fs-3);color:var(--ink-3);margin-top:6px}
@media (max-width:767px){ .cy-pass{grid-template-columns:1fr} }

/* ---------- Questions ---------- */
.cy-faq{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);gap:clamp(28px,5vw,80px);align-items:start}
.cy-faq__head{position:sticky;top:calc(var(--nav-h) + 32px)}
.cy-faq__head .link{margin-top:22px;font-size:var(--fs-3)}
.cy-faq .faq{max-width:none}
.cy-a{color:var(--violet);font-weight:600;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
@media (max-width:899px){ .cy-faq{grid-template-columns:1fr} .cy-faq__head{position:static} }
