/* THE FLOW'S SPLIT LAYOUT, ON TRIAL (/design-system/sandbox-flow-split, design/SandboxFlow.astro layout "split"; Maayan,
   2026-11-22: "left is interface, right is image ... make it like catbears.com/login"): a wide screen in two halves, as
   the Catbears' sign-in: what to do at the left, one column starting at the same height on every step; at the right the
   step's picture filling its half edge to edge, the screen's height (the type's placeholders, the cover, the three to
   choose from, the chosen cover whole: no sheet or miniature once it is chosen, the made cover). A phone as ever. */
@media (min-width: 900px) {
  .gcf-try--split .gc[data-gc-flow] .gcf { max-width: none; padding: 0; }
  .gcf-try--split .gcf[data-gcf-step="details"] [data-step="details"], .gcf-try--split .gcf[data-gcf-step="cover"] [data-step="cover"],
  .gcf-try--split .gcf[data-gcf-step="choose"] [data-step="choose"], .gcf-try--split .gcf[data-gcf-step="all"] [data-step="all"],
  .gcf-try--split .gcf[data-gcf-step="done"] [data-step="done"] {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(10, auto) 1fr; gap: 0;
    min-height: calc(100dvh - var(--g-head-h)); }
  /* the left: one column, at most 560 wide, from the same height every step (its ::before the room above) */
  .gcf-try--split .gcf__step::before { content: ""; grid-column: 1; grid-row: 1; height: clamp(40px, 11vh, 120px); }
  .gcf-try--split .gcf .gcf__step > *, .gcf-try--split .gcf .gcf__side > * { grid-column: 1; justify-self: center; width: min(100% - 2 * var(--g-7), 560px); min-width: 0; margin: 0 0 var(--g-4); }
  .gcf-try--split .gcf__split, .gcf-try--split .gcf__side { display: contents; }
  /* the right: the step's picture filling its half */
  .gcf-try--split .gcf .gcf__step :is(.gcf__phs, .gcf__cover, .gcf__picks, .gcf__full, .gcf__done) {
    grid-column: 2; grid-row: 1 / -1; align-self: stretch; justify-self: stretch; width: auto; height: auto; max-width: none; aspect-ratio: auto;
    margin: 0; padding: var(--g-7); box-sizing: border-box; border-radius: 0; background: var(--g-cover-sepia); display: grid; place-items: center; align-content: center; }
  .gcf-try--split .gcf .gcf__step :is(.gcf__full, .gcf__done) img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - var(--g-head-h) - 2 * var(--g-7)); padding: 0; object-fit: contain; }
  .gcf-try--split .gcf .gcf__step .gcf__phs { display: flex; justify-content: center; align-items: center; gap: var(--g-5); }
  .gcf-try--split .gcf__ph { color: var(--g-ink-2, var(--g-text-2)); }
  .gcf-try--split .gcf .gcf__step .gcf__picks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g-4); }
  .gcf-try--split .gcf__pick { box-shadow: 0 0 0 var(--g-hair) var(--g-ink-3, var(--g-text-3)); }
  /* once chosen: the cover whole, no sheet or miniature */
  .gcf-try--split .gcf__show { display: none; }
  /* the left from its start */
  .gcf-try--split .gcf__bar, .gcf-try--split .gcf__go, .gcf-try--split .gcf__slot { justify-content: flex-start; }
  .gcf-try--split .gcf .g-tb--center, .gcf-try--split .gcf__side > .gcf__h { text-align: start; }
}

/* CHOOSING ONE OF THREE (Maayan, 2026-11-22: "remove right panel and show the 3 images large on screen"): one column across
   the screen, its title and link centred, the three large */
@media (min-width: 900px) {
  .gcf-try--split .gcf[data-gcf-step="choose"] [data-step="choose"] { grid-template-columns: minmax(0, 1fr); }
  .gcf-try--split [data-step="choose"]::before { height: var(--g-6); }
  .gcf-try--split .gcf .gcf__step .gcf__picks { grid-column: 1; grid-row: auto; align-self: start; justify-self: center; padding: 0; background: none;
    width: min(100% - 2 * var(--g-7), 960px, (100dvh - 430px) / 1.5 * 3 + 2 * var(--g-4)); }   /* the three and their Choose in the screen's height */
  .gcf-try--split [data-step="choose"] :is(.gcf__bar, .gcf__go) { justify-content: center; }
  .gcf-try--split .gcf [data-step="choose"] .g-tb--center { text-align: center; }
}

/* MOVING BETWEEN STEPS (Maayan, 2026-11-22: "sleek transitions of slide and fade, text show up sliding upwards while fading
   in, one by one, then cta is large and show up. a quick flare of light on the button"): a step slides in as it fades in;
   its parts rise into place one after another; its call to action, large, last, then a flare of light crosses it once */
@keyframes gcf-in { from { opacity: 0; transform: translateX(40px); } }
@keyframes gcf-rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes gcf-cta { from { opacity: 0; transform: translateY(16px) scale(.94); } }
@keyframes gcf-flare { from { opacity: 1; transform: translateX(-120%) skewX(-20deg); } to { opacity: 1; transform: translateX(320%) skewX(-20deg); } }
.gcf-try--split .gcf__step { animation: gcf-in .45s var(--g-ease-out, ease-out) backwards; }   /* released once in: a fixed footer inside it spans the screen */
.gcf-try--split .gcf__step > *, .gcf-try--split .gcf__side > * { animation: gcf-rise .5s var(--g-ease-out, ease-out) both; }
.gcf-try--split .gcf__step > :nth-child(1) { animation-delay: .08s; } .gcf-try--split .gcf__step > :nth-child(2) { animation-delay: .16s; }
.gcf-try--split .gcf__step > :nth-child(3) { animation-delay: .24s; } .gcf-try--split .gcf__step > :nth-child(4) { animation-delay: .32s; }
.gcf-try--split .gcf__step > :nth-child(5) { animation-delay: .4s; } .gcf-try--split .gcf__step > :nth-child(n+6) { animation-delay: .48s; }
.gcf-try--split .gcf__side > :nth-child(1) { animation-delay: .32s; } .gcf-try--split .gcf__side > :nth-child(2) { animation-delay: .4s; }
.gcf-try--split .gcf__side > :nth-child(3) { animation-delay: .48s; } .gcf-try--split .gcf__side > :nth-child(n+4) { animation-delay: .56s; }
/* the call to action: large, last, its flare once it is there */
.gcf-try--split .gcf :is(.gcf__go, .gcf__imggo, .g-prompt__go, .gcf__pickbox) .g-btn:not(.g-btn--plain, .g-btn--link) { min-height: 60px; padding-inline: var(--g-7); font-size: var(--g-t-title3); overflow: hidden;
  animation: gcf-cta .5s var(--g-ease-out, ease-out) .7s both; }
.gcf-try--split .gcf :is(.gcf__go, .gcf__imggo, .g-prompt__go, .gcf__pickbox) .g-btn.g-btn--important::after {   /* the call to action alone: never a secondary (Maayan, 2026-11-23) */
  content: ""; position: absolute; inset: 0; width: 40%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .55), transparent); opacity: 0; animation: gcf-flare .7s ease-in-out 1.25s; }   /* gone once it has passed */
@media (prefers-reduced-motion: reduce) {
  .gcf-try--split .gcf__step, .gcf-try--split .gcf__step > *, .gcf-try--split .gcf__side > *, .gcf-try--split .gcf .g-btn, .gcf-try--split .gcf .g-btn::after { animation: none !important; }
}

/* THE PICTURE SIDE ON THE PROMO'S BOARDS (Maayan, 2026-11-22: "use the promo's backgrounds with the slide effect"): the
   boards (Boards.astro, growlmaster-book.css .gm-boards: sliding, another now and then) behind the right half while the
   flow is on; each step's picture over them, no colour of its own. Not while choosing (the three across the screen) */
.gcf-try__boards { display: none; }
@media (min-width: 900px) {
  .gcf-try--split { position: relative; }
  .gcf-try--split:has(.gc[data-gc-flow]) .gcf-try__boards { display: block; position: absolute; inset: 0 0 0 50%; z-index: 0; }
  /* while choosing: out of sight, still running (shown again as it is, never anew: Maayan, 2026-11-22, "moving from step
     to step doesn't mean changing bg. bg change regardless") */
  .gcf-try--split .gcf-try__boards { transition: opacity .5s ease; }

  /* always blurred, inside its own edge (Maayan, 2026-11-22: "the bg is always blurry ... in a mask so its border is not
     blurry"): its two layers blurred, a little past its box, which cuts them clean */
  .gcf-try--split .gcf-try__boards::before, .gcf-try--split .gcf-try__boards::after { filter: blur(2px); inset: -12px -12%; }
  .gcf-try--split .gc { position: relative; z-index: 1; }
  .gcf-try--split .gcf .gcf__step :is(.gcf__phs, .gcf__cover, .gcf__full, .gcf__done) { background: none; }
  .gcf-try--split .gcf .gcf__step :is(.gcf__full, .gcf__done) img { filter: drop-shadow(0 18px 30px rgb(0 0 0 / .45)); }   /* the question card: none on its question (Maayan, 2026-11-22) */
  .gcf-try--split .gcf .gcf__step .gcf__cover img.is-placeholder { background: none; }
}

/* ITS TYPE'S PLACEHOLDERS ONE AT A TIME (Maayan, 2026-11-22: "show one large and then switch to the 2nd and then the 3rd
   and 1st... large and appealing ... the same light flicker effect as the battle cry from time to time"): stacked, the
   shown one (.is-on, the sandbox's script) sliding and fading in; a light crossing it now and then, in its own shape */
@keyframes gcf-turn-in { from { opacity: 1; transform: rotateY(90deg); } }
@keyframes gcf-turn-out { from { opacity: 1; transform: rotateY(0deg); } to { opacity: 1; transform: rotateY(-90deg); } }
@keyframes gcf-glint { 0%, 72% { background-position: 100% 0; } 100% { background-position: 0% 0; } }
@keyframes gcf-glow { 0%, 72%, 100% { filter: drop-shadow(0 18px 30px rgb(0 0 0 / .45)) brightness(1); } 84% { filter: drop-shadow(0 18px 30px rgb(0 0 0 / .45)) brightness(1.12); } }
@media (min-width: 900px) {
  .gcf-try--split .gcf .gcf__step .gcf__phs { position: relative; display: grid; place-items: center; }
  /* one turns away and the next turns in from behind it (Maayan, 2026-11-22: "have the card turn in 3d then the sheet
     appear like its behind"): the shown one turns on its upright axis till edge on, then the next turns from edge on to face us */
  .gcf-try--split .gcf .gcf__step .gcf__phs { perspective: 1400px; }
  /* (Maayan, 2026-11-22: "1st element exit - turns from left to right, 2nd element enter - turns from left to right as
     well"): one turn, left to right: the one shown turns till edge on (to -90deg), the next carries on the same turn
     from its other edge (from 90deg) the moment the last is gone */
  .gcf-try--split .gcf__ph { grid-area: 1 / 1; position: relative; opacity: 0; transform: rotateY(-90deg); backface-visibility: hidden; }
  .gcf-try--split .gcf__ph.is-off { animation: gcf-turn-out .55s cubic-bezier(.55, 0, .9, .45) both; }   /* the one leaving (the sandbox's script) */
  .gcf-try--split .gcf__ph.is-on { opacity: 1; transform: rotateY(0deg); animation: gcf-turn-in .65s cubic-bezier(.15, .6, .35, 1) .55s both; }
  .gcf-try--split .gcf__ph figcaption { display: none; }   /* the picture alone (Maayan, 2026-11-22) */
  .gcf-try--split .gcf__ph { --ph-h: min(58vh, 500px); }
  .gcf-try--split :is(.gcf__ph > img, .gcf__ph > .g-faceph) { height: var(--ph-h); animation: gcf-glow 7s ease-in-out infinite; }
  .gcf-try--split .gcf__ph::after { content: ""; position: absolute; inset: 0 0 auto 0; height: min(58vh, 500px); pointer-events: none;
    -webkit-mask: var(--ph-mask) center / contain no-repeat; mask: var(--ph-mask) center / contain no-repeat;
    background-image: linear-gradient(100deg, transparent 42%, rgb(255 250 232 / .75) 50%, transparent 58%); background-size: 300% 100%; animation: gcf-glint 7s ease-in-out infinite; }
}

/* ITS TYPE, ALREADY CHOSEN (Maayan, 2026-11-22: "a button. it has a border and text inside is centered. the border is sepia
   very light. on hover it shines a bit. tapping shows ... our drop down"): the button in the Type's place, its list hidden */
.gcf-try--split .gc[data-gc-flow] .gcf__typebtn { display: block; }
.gcf-try--split .gc[data-gc-flow] #gcType .g-select__input { display: none; }
.g-menu__item[aria-checked="true"] { color: var(--g-btn-gold); font-weight: var(--g-w-semibold); }   /* the type now, in its menu */

/* COVER IMAGE, AS MAAYAN'S MOCK (2026-11-22): its line gold under the title, its CTA from the start, the question card large
   on the boards, blurred behind it */
.gcf-try--split .gcf .g-tb__s { color: var(--g-cry-ink); font-family: var(--g-font-book); font-size: var(--g-t-title3); }
@media (min-width: 900px) {
  .gcf-try--split .gcf .g-prompt__go { justify-content: flex-start; }
  .gcf-try--split .gcf .gcf__step .gcf__cover .gcf__unknown { width: auto; height: min(62vh, 560px); }
}
.gcf-try--split .gcf .g-prompt__text { font-family: var(--g-font-book); font-size: var(--g-t-title3); line-height: 1.45; }
.gcf-try--split .gcf .g-prompt__label { font-size: var(--g-t); }
/* its board sliding slowly to one side and back, as the promo's, seen on half a screen (Maayan, 2026-11-22: "slide
   left/right slowly - like the promo"): the promo's own pan, quicker here, where 9% of half a screen is a short way */
.gcf-try--split .gcf-try__boards::before, .gcf-try--split .gcf-try__boards::after { animation-duration: 40s; }
@media (min-width: 900px) { .gcf-try--split .gcf__ph--front::after { border-radius: calc(var(--ph-h) * 5 / 7 * .07); } }   /* its light in the drawn card's own corners */

/* GENERATE: THE WAY TO THE THREE (Maayan, 2026-11-22; creator-flow.js data-gcf-moment): its words fade out (leaving), the
   boards slide to cover the whole screen (reveal, and while choosing), then the three cards and their Choose fade in
   together, its title and the rest after them; each card turned in turn once its picture is made */
@media (min-width: 900px) {
  .gcf-try--split .gcf-try__boards { transition: left .9s cubic-bezier(.6, 0, .25, 1); left: 50%; inset-inline-end: 0; }
  .gcf-try--split:has(.gcf[data-gcf-moment="reveal"]) .gcf-try__boards { left: 0; }
  .gcf-try--split .gcf[data-gcf-moment] [data-step="cover"] :is(.gcf__bar, .g-tb, .gcf__side > *, .gcf__cover) { opacity: 0; transition: opacity .4s ease; }
  .gcf-try--split .gcf[data-gcf-moment="reveal"] [data-step="cover"] .gcf__cover { transition-duration: .3s; }
  .gcf-try--split .gcf [data-step="choose"] { animation: none; }
  .gcf-try--split .gcf [data-step="choose"] > * { animation: gcf-rise .6s var(--g-ease-out, ease-out) .8s both; }
  .gcf-try--split .gcf [data-step="choose"] > .gcf__picks { animation: gcf-fade .7s ease-out both; }
  .gcf-try--split .gcf [data-step="choose"] .gcf__pickbox .g-btn { animation: none; }
  .gcf-try--split .gcf [data-step="choose"] .gcf__pickbox .g-btn::after { animation: none; }
  .gcf-try--split .gcf [data-step="choose"] .gcf__pick { background: none; box-shadow: none; }
  .gcf-try--split .gcf [data-step="choose"] .gcf__again { justify-self: center; width: min(100% - 2 * var(--g-7), 960px); }
}
@keyframes gcf-fade { from { opacity: 0; } }
@media (min-width: 900px) { .gcf-try--split .gcf [data-step="choose"] > :is(.g-tb, .gcf__bar) { width: min(100% - 2 * var(--g-7), 1100px); } }   /* its title on one line, as his mock */
@media (min-width: 900px) {
  /* one description: its first step's words fade out too as the three are made */
  .gcf-try--split .gcf[data-gcf-moment] [data-step="details"] > *, .gcf-try--split .gcf[data-gcf-moment] [data-step="details"] :is(.gcf__split, .gcf__side) > * { opacity: 0; transition: opacity .4s ease; }   /* its picture at the right too (Maayan, 2026-11-23: "the element on the right fade out") */
  /* its Continue's dark only under the left column (its own width) */
  .gcf-try--split .gcf[data-gcf-adv-open] [data-step="details"] .gcf__go--first { align-self: end; }
}
/* its picture held in view while its left grows (Advanced open): the screen's height, under the header */
@media (min-width: 900px) {
  .gcf-try--split .gcf .gcf__step :is(.gcf__phs, .gcf__cover, .gcf__full, .gcf__done) { position: sticky; top: var(--g-head-h); align-self: start; height: calc(100dvh - var(--g-head-h)); box-sizing: border-box; }
}
@media (min-width: 900px) { .gcf-try--split:has(.gc[data-gc-flow]) .gcf-try__boards { position: fixed; top: 0; bottom: 0; } }   /* its boards held in view too, up behind the header (Maayan, 2026-11-23: "the bg in the generator to be below the header, so the header is in it's transparent bg state") */
@media (min-width: 900px) {
  .gcf-try--split .gcf [data-step="reveal"] { animation: none; padding: var(--g-5) var(--g-7); align-items: center; }   /* its title and three high (Maayan, 2026-11-23: "too low") */
  .gcf-try--split .gcf [data-step="reveal"]::before { display: none; }
  .gcf-try--split .gcf [data-step="reveal"] > * { width: min(100%, 1000px); animation: gcf-rise .6s var(--g-ease-out, ease-out) .8s both; }
  .gcf-try--split .gcf [data-step="reveal"] > .gcf__rvs { animation: gcf-fade .7s ease-out both; }
  .gcf-try--split .gcf [data-step="reveal"] .gcf__rv { height: min(42vh, 420px); width: auto; margin: 0 auto; }
  .gcf-try--split .gcf [data-step="reveal"] .g-tb--center { text-align: center; }
}
/* its miniature placeholder in a box of one size for every type (Maayan, 2026-11-22: "we need the div to have the same size
   on each of the types"): the card's own box, the figure and its podium standing at its foot */
@media (min-width: 900px) {
  .gcf-try--split .gcf__ph--mini > img { width: calc(var(--ph-h) * 5 / 7); height: var(--ph-h); object-fit: contain; object-position: center bottom; }
  .gcf-try--split .gcf__ph--mini::after { -webkit-mask-position: center bottom; mask-position: center bottom; }   /* its light on its picture, which stands at its box's foot (Maayan, 2026-11-23: "glow mask ... isn't positioned correctly") */
}
/* its boards darker behind the reveal (Maayan, 2026-11-23: "the bg become more darker in this view"), darker still for Start Over */
.gcf-try--split .gcf-try__boards { transition: left .9s cubic-bezier(.6, 0, .25, 1), filter .9s ease; }
.gcf-try--split:has(.gcf[data-gcf-step="reveal"]) .gcf-try__boards { filter: brightness(.45); }
/* its title one line, "being created" and "ready" alike: nothing under it moves when it changes (Maayan, 2026-11-23) */
@media (min-width: 900px) { .gcf-try--split [data-step="reveal"] .g-tb { width: min(100% - 2 * var(--g-7), 1200px); } .gcf-try--split [data-step="reveal"] .g-tb__t { white-space: nowrap; font-size: min(54.4px, 4.2vw); } }
