/* ============================================================
   ScolerAI Marketing — plan-mocks.css (2026-11-25)
   The drawn study plans (js/plan_mocks.js), on both pages: the app's
   plan card (`PlanCard`), its topic pictures, and the plans-home phone.

   Colours are BentoPalette.light, sizes BentoMetrics, type BentoType:
   Bricolage Grotesque for everything the bento writes, as in the app.
   Namespaced `pc-` / `ph-` / `pic` / `pmk` / `pmock` — never `.mk`
   (the tour system's base class) or `.smk` (studio.js's canvas).
   ============================================================ */

.pc, .pmk {
  --b-ground: #E9EDF7; --b-tile: #FFFFFF; --b-ink: #0F1630; --b-ink-soft: #2C3557;
  --b-muted: #5A6384; --b-line: #E3E7F2; --b-chip: #E9EDF7; --b-cobalt: #2347E0;
  --b-lime: #D7FF5F; --b-deep: #0F1630; --b-blue: #D4DEFC; --b-lilac: #E4D8FB;
  --b-face: 'Bricolage Grotesque', Inter, system-ui, sans-serif;
}

/* ── The card ─────────────────────────────────────────────────── */
.pc {
  position: relative;
  background: var(--b-tile);
  color: var(--b-ink);
  border-radius: 24px;
  font-family: var(--b-face);
  text-align: left;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
.pc__head { display: flex; align-items: flex-start; gap: 14px; padding: 16px; }
.pc__stage {
  flex: none;
  width: 132px; height: 132px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--b-ground);
}
.pc__info { flex: 1; min-width: 0; }
.pc__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pc__chip {
  display: inline-flex; align-items: center; gap: 5px;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--b-chip);
  color: var(--b-ink-soft);
  font-size: 12px; font-weight: 700; line-height: 1.2;
}
.pc__chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc__chip svg { flex: none; }
.pc__chip--type { background: var(--b-deep); color: #FFFFFF; }
.pc__chip--blue { background: var(--b-blue); color: var(--b-ink); }
.pc__chip--lilac { background: var(--b-lilac); color: var(--b-ink); }
.pc__title {
  margin: 8px 0 0;
  font-family: var(--b-face);
  font-size: 20px; font-weight: 700; line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--b-ink);
}
.pc__meta { margin: 4px 0 0; font-size: 13px; font-weight: 500; color: var(--b-muted); }
.pc__bar { height: 6px; margin-top: 10px; border-radius: 999px; background: var(--b-ground); overflow: hidden; }
.pc__bar i { display: block; height: 100%; border-radius: inherit; background: var(--b-cobalt); }
.pc__done { margin: 6px 0 0; font-size: 13px; font-weight: 500; color: var(--b-muted); }
.pc__chev { flex: none; color: var(--b-ink-soft); line-height: 0; }
.pc--open .pc__chev { transform: rotate(180deg); }

.pc__next {
  display: flex; align-items: center; gap: 12px;
  margin: 0 16px 12px;
  padding: 12px;
  border-radius: 18px;
  background: var(--b-ground);
}
.pc__glyph {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 999px;
  display: grid; place-items: center;
  color: #FFFFFF;
}
.pc__nexttext { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pc__nextlabel { font-size: 12px; font-weight: 700; color: var(--b-muted); }
.pc__nexttext b { margin-top: 2px; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--b-ink); }
.pc__tool { font-size: 13px; font-weight: 500; color: var(--b-muted); }
.pc__start {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--b-cobalt);
  color: #FFFFFF;
  font-size: 15px; font-weight: 700; line-height: 1;
}
.pc__addons { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 14px; }

.pc__detail { padding: 4px 16px 18px; border-top: 1px solid var(--b-line); margin-top: 2px; }
.pc__sec {
  display: block;
  margin: 14px 0 6px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--b-muted);
}
.pc__why { margin: 0; font-family: Inter, sans-serif; font-size: 14px; line-height: 1.5; color: var(--b-ink-soft); }
/* PlanCardCurriculumNote (2026-11-28): the source a curriculum plan follows,
   and that every outcome of the unit is covered — Icons.account_balance in
   the cobalt, the words muted. */
.pc__source { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; font-family: Inter, sans-serif; font-size: 13px; line-height: 1.45; color: var(--b-ink-soft); }
.pc__source svg { flex: none; margin-top: 1px; color: #2347E0; }
.pc__phase ul { list-style: none; margin: 0; padding: 0; }
.pc__phase li { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; }
.pc__tick {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 1px;
  border-radius: 999px;
  border: 2px solid #C7CDE0;
  display: grid; place-items: center;
  color: #FFFFFF;
}
.pc__phase li.is-done .pc__tick { background: var(--b-cobalt); border-color: var(--b-cobalt); }
.pc__phase li.is-next .pc__tick { border-color: var(--b-cobalt); box-shadow: 0 0 0 3px rgba(35, 71, 224, 0.16); }
.pc__step { min-width: 0; display: flex; flex-direction: column; }
.pc__step b { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--b-ink); }
.pc__phase li.is-done .pc__step b { color: var(--b-muted); text-decoration: line-through; text-decoration-color: rgba(90, 99, 132, 0.5); }
.pc__step em { font-style: normal; font-size: 13px; font-weight: 500; color: var(--b-muted); }
.pc__more { display: block; margin: 2px 0 0 30px; font-size: 13px; font-weight: 600; color: var(--b-cobalt); }

/* Phases side by side (the builder, on a wide screen): each phase a
   column, joined by the arrow of time. A one-phase plan (a daily
   challenge) lays its days out instead. */
@media (min-width: 900px) {
  .pc__phases--cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
  .pc__phases--cols .pc__phase { position: relative; padding: 10px 12px 12px; border-radius: 16px; background: var(--b-ground); }
  .pc__phases--cols .pc__phase + .pc__phase::before {
    content: ''; position: absolute; left: -9px; top: 22px; width: 8px; height: 8px;
    border-top: 2px solid var(--b-cobalt); border-right: 2px solid var(--b-cobalt); transform: rotate(45deg);
  }
  .pc__phases--cols .pc__sec { margin: 0 0 6px; }
  .pc__phases--cols li { padding: 4px 0; gap: 8px; }
  .pc__phases--cols .pc__tick { width: 18px; height: 18px; }
  .pc__phases--cols .pc__step b { font-size: 13.5px; }
  .pc__phases--cols .pc__step em { font-size: 12px; }
  .pc__phases--cols .pc__more { margin-left: 26px; font-size: 12px; }
  .pc__phases--cols.pc__phases--one { display: block; }
  .pc__phases--cols.pc__phases--one ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pc__phases--cols.pc__phases--one li { padding: 8px; border-radius: 12px; background: var(--b-tile); }
}

/* The phone proportions (`compact`). */
.pc--compact { border-radius: 20px; }
.pc--compact .pc__head { padding: 14px; gap: 12px; }
.pc--compact .pc__stage { width: 96px; height: 96px; border-radius: 16px; }
.pc--compact .pc__next { margin: 0 14px 12px; }
.pc--compact .pc__addons { padding: 0 14px 14px; }
.pc--compact .pc__start { padding: 10px 13px; font-size: 14px; gap: 5px; }

/* A narrow box puts Start under the step, as `_NextStep` does below 300pt. */
@media (max-width: 420px) {
  .pc:not(.pc--compact) .pc__head { flex-wrap: wrap; }
  .pc:not(.pc--compact) .pc__stage { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .pc:not(.pc--compact) .pc__chev { position: absolute; top: 16px; right: 16px; color: #FFFFFF; }
  .pc:not(.pc--compact) .pc__next { flex-wrap: wrap; }
  .pc:not(.pc--compact) .pc__start { margin-left: auto; }
}

/* ── Topic pictures ───────────────────────────────────────────── */
.pic { display: block; width: 100%; height: 100%; }
.pic * { transform-box: fill-box; }

/* Magnifying glass: the lens drifts over the cell; outside it, a fog. */
.pic--magnifier .pic__lens,
.pic--magnifier .pic__hole { transform-box: view-box; animation: picLens 12s ease-in-out var(--d, 0s) infinite; }
.pic--magnifier .pic__fog { opacity: 0.66; }
@keyframes picLens {
  0%, 100% { transform: translate(-16px, -10px); }
  22% { transform: translate(14px, -14px); }
  45% { transform: translate(18px, 12px); }
  68% { transform: translate(-14px, 14px); }
  84%, 92% { transform: translate(0, 0); }
}

/* Sketch: the pen draws the curve, then the colour washes in. */
.pic--sketch .pic__ink { stroke-dasharray: 100; animation: picInk 12s ease-in-out var(--d, 0s) infinite; }
.pic--sketch .pic__ink2 { animation: picFadeLate 12s ease var(--d, 0s) infinite; }
.pic--sketch .pic__wash,
.pic--sketch .pic__tangent { animation: picFadeLate 12s ease var(--d, 0s) infinite; }
.pic--sketch .pic__dot { transform-origin: 50% 50%; animation: picPop 12s ease var(--d, 0s) infinite; }
@keyframes picInk {
  0% { stroke-dashoffset: 100; }
  34%, 92% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 100; }
}
@keyframes picFadeLate {
  0%, 34% { opacity: 0; }
  46%, 92% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes picPop {
  0%, 40% { transform: scale(0); }
  48% { transform: scale(1.35); }
  54%, 92% { transform: scale(1); }
  100% { transform: scale(0); }
}

/* Pop-up: the picture's layers fold up off the page, back to front. */
.pic--popup .pic__layer { transform-origin: 50% 100%; animation: picFold 12s cubic-bezier(.2, .8, .3, 1.15) var(--d, 0s) infinite; }
.pic--popup .pic__layer--2 { animation-delay: calc(var(--d, 0s) + 0.25s); }
.pic--popup .pic__layer--3 { animation-delay: calc(var(--d, 0s) + 0.5s); }
.pic--popup .pic__layer--4 { animation-delay: calc(var(--d, 0s) + 0.1s); }
@keyframes picFold {
  0%, 4% { transform: scaleY(0); }
  16%, 90% { transform: scaleY(1); }
  98%, 100% { transform: scaleY(0); }
}

/* Tiles: the tiles turn over one by one to show the picture beneath. */
.pic--tiles .pic__tile { transform-origin: 50% 50%; transform: scaleX(0); animation: picTile 12s ease-in-out var(--d, 0s) infinite; animation-delay: calc(var(--d, 0s) + var(--i) * 0.14s); }
@keyframes picTile {
  0%, 6% { transform: scaleX(1); }
  16%, 88% { transform: scaleX(0); }
  96%, 100% { transform: scaleX(1); }
}

/* Stardust: a night sky, the atom gathers, the stars breathe. */
.pic--stardust .pic__gather { transform-origin: 50% 50%; animation: picGather 12s ease var(--d, 0s) infinite; }
.pic--stardust .pic__star { animation: picTwinkle 3s ease-in-out infinite; animation-delay: calc(var(--i) * -0.4s); }
@keyframes picGather {
  0% { transform: scale(1.6) rotate(-30deg); opacity: 0; }
  18%, 92% { transform: none; opacity: 1; }
  100% { transform: scale(1.6) rotate(30deg); opacity: 0; }
}
@keyframes picTwinkle { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .pic *, .pic { animation: none !important; }
  .pic--tiles .pic__tile { transform: scaleX(0); }
}

/* ── The plans home, in a phone ───────────────────────────────── */
.pmock { position: relative; width: 100%; aspect-ratio: 420 / 900; }
.pmk {
  position: absolute; top: 0; left: 0;
  width: 420px; height: 900px;
  transform-origin: 0 0;
  font-family: var(--b-face);
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.ph { position: absolute; inset: 0; border-radius: 54px; background: #12141B; padding: 11px; box-shadow: 0 30px 70px rgba(15, 22, 48, 0.32); }
.ph__screen { position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: var(--b-ground); }
.ph__status { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 6px 30px 0 34px; color: var(--b-ink); font-family: Inter, sans-serif; font-size: 15px; }
.ph__status span { display: flex; gap: 6px; align-items: center; }
.ph__top { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 18px; color: var(--b-ink); }
.ph__brand { display: inline-flex; align-items: center; gap: 7px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.ph__brand img { border-radius: 6px; }
.ph__avatar { width: 32px; height: 32px; border-radius: 999px; background: var(--b-deep); color: #FFFFFF; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.ph__body { padding: 2px 14px 120px; display: flex; flex-direction: column; gap: 10px; }

/* BentoGreetingTile (compact): cobalt, the name large, the photo in a disc. */
.ph__greet { position: relative; min-height: 178px; padding: 16px 18px; border-radius: 20px; background: var(--b-cobalt); color: #FFFFFF; display: flex; flex-direction: column; overflow: hidden; }
.ph__photo { position: absolute; top: -18px; right: -22px; width: 118px; height: 118px; border-radius: 999px; background: url('../assets/bg_evening_sm.jpg') 62% 50% / cover; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18); }
.ph__hello { position: relative; font-size: 16px; font-weight: 500; }
.ph__name { position: relative; margin-top: 2px; padding-right: 84px; font-size: 44px; font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.ph__ins { position: relative; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ph__week { margin-top: auto; padding-top: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.ph__fig { display: flex; flex-direction: column; }
.ph__fig b { font-size: 22px; font-weight: 700; line-height: 1.05; }
.ph__fig em { font-style: normal; font-size: 13px; opacity: 0.9; }
.ph__dots { display: flex; gap: 3px; }
.ph__dot { display: block; width: 24px; height: 24px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.6); }
.ph__dot.is-on { background: var(--b-lime); border-color: var(--b-lime); }
.ph__dot.is-today { box-shadow: 0 0 0 2px #FFFFFF; }

/* BentoAskTile (compact): the hint IS the label. */
.ph__ask { padding: 16px; border-radius: 20px; background: var(--b-tile); display: flex; flex-direction: column; gap: 14px; }
.ph__hint { font-size: 19px; font-weight: 600; line-height: 1.25; color: #8C93AE; }
.ph__askrow { display: flex; align-items: center; gap: 8px; }
.ph__round { width: 38px; height: 38px; border-radius: 999px; background: var(--b-ground); color: var(--b-ink-soft); display: grid; place-items: center; }
.ph__sp { flex: 1; }
.ph__pill { display: inline-flex; align-items: center; gap: 5px; padding: 10px 15px; border-radius: 999px; background: var(--b-cobalt); color: #FFFFFF; font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap; }
.ph__pill--ghost { background: none; color: var(--b-cobalt); box-shadow: inset 0 0 0 1.5px #C9D2F4; }
.ph__pill--plus { background: var(--b-deep); }
.ph__coach { align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px; color: var(--b-cobalt); font-size: 14px; font-weight: 600; }
.ph__plans { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.ph__plans b { font-size: 22px; font-weight: 700; color: var(--b-ink); letter-spacing: -0.01em; }
.ph__plans b i { font-style: normal; margin-left: 8px; color: var(--b-muted); }

/* The four-item bar, as glass over the plans. */
.ph__bar {
  position: absolute; left: 14px; right: 14px; bottom: 22px;
  height: 64px; padding: 0 6px;
  display: flex; align-items: center; justify-content: space-around;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: 0 10px 30px rgba(15, 22, 48, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}
.ph__nav { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--b-muted); }
.ph__nav em { font-style: normal; font-size: 11.5px; font-weight: 600; }
.ph__nav.is-on { color: var(--b-cobalt); }
.ph__nav.is-on em { font-weight: 700; }

/* The tour page's open card sits on white; give it the bento's ground. */
.mk-slot[data-mock="planOpen"] .pc { box-shadow: 0 24px 60px rgba(15, 22, 48, 0.14), 0 0 0 1px rgba(15, 22, 48, 0.06); }
.dashboard__visual .mk-slot[data-mock="planOpen"] { width: 100%; max-width: 480px; margin: 0 auto; }

/* ── The wizard's screens (tour page planner section) ─────────── */
.pmock--short { aspect-ratio: 420 / 760; }
.pmk--short { height: 760px; }
.ph__top--wizard { justify-content: flex-start; gap: 6px; }
.ph__wtitle { font-size: 17px; font-weight: 700; color: var(--b-ink); }
.ph__wsp { flex: 1; }
.ph__body--wizard { gap: 8px; padding-bottom: 24px; }

/* The "taking shape" strip a phone shows above the questions. */
.ph__shape { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 20px; background: var(--b-tile); margin-bottom: 6px; }
.ph__shape-pic { flex: none; width: 74px; height: 74px; border-radius: 14px; overflow: hidden; }
.ph__shape-tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ph__shape-tx em { font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--b-muted); }
.ph__shape-tx b { font-size: 14px; font-weight: 700; color: var(--b-ink); }
.ph__shape-tx b i { font-style: normal; color: var(--b-muted); }
.ph__shape-tx span { font-family: Inter, sans-serif; font-size: 12.5px; line-height: 1.35; color: var(--b-ink-soft); }

.ph__qof { font-size: 12.5px; font-weight: 700; color: var(--b-muted); margin-top: 4px; }
.ph__q { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--b-ink); }
.ph__q--review { font-size: 26px; margin-top: 6px; }
.ph__qsub { font-family: Inter, sans-serif; font-size: 14px; line-height: 1.4; color: var(--b-muted); margin-bottom: 6px; }
.ph__opts { display: flex; flex-direction: column; gap: 8px; }
/* PlanWizardOption: chip-grey, or white with a cobalt rim and a check. */
.ph__opt { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 18px; background: var(--b-chip); border: 2px solid transparent; }
.ph__opt.is-on { background: var(--b-tile); border-color: var(--b-cobalt); }
.ph__opt-ic { flex: none; color: var(--b-cobalt); line-height: 0; }
.ph__opt-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ph__opt-tx b { font-size: 15.5px; font-weight: 600; color: var(--b-ink); }
.ph__opt-tx em { font-style: normal; font-size: 13px; font-weight: 500; color: var(--b-muted); }
.ph__opt-ok { flex: none; color: var(--b-cobalt); line-height: 0; }
.ph__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.ph__pill--tile { background: var(--b-tile); color: var(--b-ink); box-shadow: inset 0 0 0 1.5px var(--b-line); }

/* In the tour page's screenshot carousel: a phone on the bento ground. */
/* The carousel is centred with auto margins, which in a grid shrinks it to
   its content — and a phone sized in % has none. */
.shot-carousel--plan { width: 100%; }
.shot-carousel .mk-slot[data-mock^="plan"] { padding: 28px 0; background: radial-gradient(70% 60% at 50% 35%, #DCE4FB, #EEF1F9 70%); }
.shot-carousel .mk-slot[data-mock^="plan"] .pmock { width: min(76%, 300px); margin: 0 auto; }
