/* ============ Animoir — brand design system (Figma "Brand guidelines v1.0") ============
 * Mostly vanilla and white · ink for text · berry only for the main action ·
 * sunshine and grape as small sparks. "Sticker" look on cards and buttons only:
 * soft rounded shape, thin ink outline, short solid shadow.
 * Mobile first; breakpoints at 640px and 960px.
 */
:root{
  --berry:#F2545B; --berry-soft:#FFE1E3; --berry-tint:#FFF7F7;
  --ink:#2B2350; --muted:#6B6390;
  --vanilla:#FFF6E5; --butter:#FFEFC7; --line:#F0E3CC;
  --sun:#FFC93C; --grape:#4B2FBF; --grape-ink:#352C5C;
  --mint:#2FB37F; --mint-soft:#DDF6EC; --white:#fff;
  --r-pill:62.4375rem; --r-panel:2rem; --r-card:1.375rem; --r-input:.875rem;
  --sticker:0 .25rem 0 var(--ink); --sticker-sel:0 .3125rem 0 var(--ink);
  --font:'Hanken Grotesk','Hanken Grotesk Fallback',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --wrap:75rem;
}
/* Arial scaled to Hanken Grotesk's metrics (measured from the 400 weight), so the
   text does not reflow when the web font arrives (display=swap) */
@font-face{font-family:'Hanken Grotesk Fallback';src:local('Arial'),local('ArialMT'),local('Liberation Sans'),local('Helvetica');
  size-adjust:101.7%;ascent-override:98.32%;descent-override:29.79%;line-gap-override:0%}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);font-size:.9375rem;line-height:1.55;color:var(--ink);background:var(--vanilla);
  -webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
button,input,select{font:inherit;color:inherit}
h1,h2,h3,h4{margin:0;font-weight:600;line-height:1.08}
p{margin:0}
[hidden]{display:none !important}
.sr-only{position:absolute;width:.0625rem;height:.0625rem;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 1rem}
@media (min-width:640px){.wrap{padding:0 2rem}}

/* ---------- type ---------- */
.display{font-size:clamp(2.75rem,calc(8.6vw*var(--ui-scale,1)),4.75rem);letter-spacing:-.04em;line-height:1.02}
.h1{font-size:clamp(2.125rem,calc(6vw*var(--ui-scale,1)),3.5rem);letter-spacing:-.035em;line-height:1.04}
.h2{font-size:clamp(1.625rem,calc(4vw*var(--ui-scale,1)),2.25rem);letter-spacing:-.02em;line-height:1.1}
.h3{font-size:1.375rem;letter-spacing:-.01em}
.lead{font-size:1.0625rem;line-height:1.6;color:var(--muted)}
.label{font-size:.6875rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.muted{color:var(--muted)}

/* ---------- icons ---------- */
.ico{width:1.25rem;height:1.25rem;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ico-wrap{display:inline-flex;align-items:center;justify-content:center}

/* ---------- chips & badges ---------- */
.eyebrow{display:inline-flex;align-items:center;gap:.625rem;background:var(--sun);color:var(--ink);border-radius:var(--r-pill);
  padding:.5rem 1rem;font-size:.6875rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.eyebrow::before{content:"";width:.4375rem;height:.4375rem;border-radius:50%;background:var(--berry)}
.tag{display:inline-flex;align-items:center;gap:.375rem;border-radius:var(--r-pill);padding:.25rem .625rem;font-size:.6562rem;font-weight:700;
  letter-spacing:.12em;text-transform:uppercase;white-space:nowrap;background:var(--line);color:var(--muted)}
.tag--req{background:var(--berry-soft);color:var(--berry)}
.tag--ok{background:var(--mint-soft);color:#1d8a5e}
/* a Required tag whose field is filled in and accepted (builder.js markRequired) */
.tag--req.tag--ok::before{content:"\2713";font-weight:700;margin-right:.1875rem}
.tag--opt{background:var(--butter);color:#8a6a10}
.tag--busy{background:var(--butter);color:#8a6a10}
.tag--loved{background:var(--berry-soft);color:var(--berry)}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.625rem;min-height:3.25rem;padding:0 1.625rem;border-radius:var(--r-pill);
  border:2px solid var(--ink);background:var(--white);color:var(--ink);font-weight:600;font-size:1rem;text-decoration:none;
  cursor:pointer;box-shadow:var(--sticker);transition:transform .12s ease,box-shadow .12s ease,background .15s;-webkit-tap-highlight-color:transparent}
.btn:hover{transform:translateY(-.0625rem);box-shadow:0 .3125rem 0 var(--ink)}
.btn:active{transform:translateY(.1875rem);box-shadow:0 .0625rem 0 var(--ink)}
.btn:focus-visible,.choice:focus-visible,.slot__drop:focus-within,.chip:focus-visible,.faq__q:focus-visible{outline:3px solid var(--sun);outline-offset:3px}
.btn--primary{background:var(--berry);color:#fff}
.btn--primary[disabled],.btn--primary.is-disabled{background:#F7A9A4;border-color:#a59fb5;box-shadow:0 .25rem 0 #a59fb5;cursor:not-allowed;transform:none}
.btn--ghost{border-color:var(--line);box-shadow:none;background:var(--white)}
.btn--ghost:hover{box-shadow:none}
.btn--ghost[disabled]{color:#b9b3cc;cursor:default;transform:none}
.btn--block{width:100%}
.btn--sm{min-height:2.5rem;padding:0 1rem;font-size:.875rem;box-shadow:0 .1875rem 0 var(--ink)}
.btn--cta{padding:0 .5rem 0 1.75rem;min-height:3.75rem;font-size:1.0625rem;gap:1.125rem}
.btn--cta .btn__dot{width:2.75rem;height:2.75rem;border-radius:50%;background:rgba(255,255,255,.22);display:inline-flex;align-items:center;justify-content:center}
.link{color:var(--berry);font-weight:600;background:none;border:0;padding:0;cursor:pointer;text-decoration:none}
.link:hover{text-decoration:underline}
.chip{display:inline-flex;align-items:center;gap:.5rem;min-height:2.75rem;padding:0 1.125rem;border:1.5px solid var(--ink);border-radius:var(--r-pill);
  background:var(--white);font-weight:500;font-size:.9375rem;cursor:pointer}
.chip:hover{background:var(--vanilla)}
.chip[disabled]{opacity:.4;cursor:not-allowed}

/* ---------- forms ---------- */
.input{width:100%;min-height:3rem;padding:0 1rem;border:1.5px solid var(--ink);border-radius:var(--r-input);background:var(--white);font-size:1rem}
.input::placeholder{color:#9d97b5}
.input:focus{outline:none;border-color:var(--berry);box-shadow:0 0 0 .25rem var(--berry-soft)}
.input--sm{min-height:2.625rem;font-size:.9375rem;padding:0 .75rem}
select.input{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--ink) 50%),linear-gradient(135deg,var(--ink) 50%,transparent 50%);
  background-position:calc(100% - 1.125rem) 50%,calc(100% - .8125rem) 50%;background-size:.3125rem .3125rem;background-repeat:no-repeat;padding-right:1.875rem}
.field{display:grid;gap:.375rem}
.field__label{font-weight:600;font-size:.875rem}
.check{display:flex;gap:.875rem;align-items:flex-start;padding:1rem 1.125rem;border:1.5px solid var(--line);border-radius:1.125rem;background:var(--vanilla);cursor:pointer;font-size:.9375rem;line-height:1.5}
.check input{appearance:none;flex:none;width:1.5rem;height:1.5rem;margin:0;border:1.5px solid var(--ink);border-radius:.4375rem;background:#fff;display:grid;place-items:center;cursor:pointer}
.check input:checked{background:var(--berry);border-color:var(--berry)}
.check input:checked::after{content:"";width:.6875rem;height:.375rem;border:2.5px solid #fff;border-top:0;border-right:0;transform:translateY(-.125rem) rotate(-45deg)}
.check input:focus-visible{outline:3px solid var(--sun);outline-offset:2px}
.check.is-error{border-color:var(--berry);background:var(--berry-tint)}
.slot input.is-error,.slot select.is-error,.slot__drop.is-error,.sendto input.is-error{border-color:var(--berry)!important;background:var(--berry-tint);box-shadow:0 0 0 2px var(--berry-tint)}
.slot.has-error{border-color:var(--berry)}
.cast-todo{margin:.5rem 0 0;color:var(--berry);font-size:.9375rem;font-weight:500}
.toggle{position:relative;flex:none;width:3.25rem;height:1.875rem;border-radius:var(--r-pill);border:1.5px solid var(--ink);background:#5b5675;cursor:pointer;appearance:none;margin:0;transition:background .15s}
.toggle::after{content:"";position:absolute;top:.1562rem;left:.1875rem;width:1.375rem;height:1.375rem;border-radius:50%;background:#fff;transition:transform .15s}
.toggle:checked{background:var(--berry)}
.toggle:checked::after{transform:translateX(1.3125rem)}
.toggle:focus-visible{outline:3px solid var(--sun);outline-offset:2px}

/* ---------- surfaces ---------- */
.card{background:var(--white);border:1.5px solid var(--ink);border-radius:var(--r-card);box-shadow:var(--sticker)}
.panel{background:var(--vanilla);border:1.5px solid var(--ink);border-radius:var(--r-panel);box-shadow:var(--sticker)}
.flat{background:var(--vanilla);border-radius:var(--r-card)}

/* ================================================================ BRAND (footer; the top nav is nav.css) */
.brand{display:inline-flex;align-items:center;gap:.625rem;text-decoration:none;color:var(--ink)}
.brand .mark{display:block}
.brand__name{font-size:1.375rem;font-weight:600;letter-spacing:-.03em}
.brand__sub{font-size:.6875rem;font-weight:600;letter-spacing:.24em;color:var(--muted);text-transform:uppercase;transform:translateY(.125rem)}

/* ================================================================ SECTIONS */
.section{padding:4.5rem 0}
.section--white{background:var(--white)}
.section__head{display:grid;gap:1.125rem;margin-bottom:2.5rem}
.section__head .lead{max-width:44ch;text-wrap:balance}
@media (min-width:960px){
  .section{padding:6.875rem 0}
  .section__head{grid-template-columns:1fr minmax(0,27.5rem);align-items:end;gap:2.5rem;margin-bottom:3.5rem}
}

/* ---- hero ---- */
.hero{padding:2.5rem 0 1.5rem}
.hero__grid{display:grid;gap:2.75rem;align-items:center}
.hero__copy{display:grid;gap:1.5rem;justify-items:start}
.hero h1 .accent{color:var(--berry)}
.hero__pill{display:inline-block;height:.82em;width:auto;border-radius:var(--r-pill);border:2px solid var(--ink);vertical-align:-.06em;margin-left:.12em}
/* the lead is as wide as the headline block and sets in three lines on a desktop (Zaid's design, 12 Nov) */
.hero .lead{max-width:27.5rem;font-size:1.125rem}
.film{margin:0;position:relative;border:2px solid var(--ink);border-radius:var(--r-panel);overflow:hidden;background:var(--grape);box-shadow:0 .375rem 0 var(--ink)}
/* the clip and its poster are 1280x720, so a 16:9 box shows the whole picture: no bars, no crop */
.film__img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:var(--grape)}
.film__play{position:absolute;left:2.2%;top:3.6%;width:12.4%;aspect-ratio:1;padding:0;border-radius:50%;border:2px solid var(--ink);background:#fff;display:grid;place-items:center;color:var(--berry);cursor:pointer;transition:transform .15s}
.film__play:hover{transform:scale(1.06)}
.film__play:focus-visible{outline:3px solid var(--sun);outline-offset:3px}
.film.is-started .film__play{display:none}
/* once the film plays, the browser controls show time and progress; hide our bar so the time is not shown twice */
.film.is-started .film__bar{display:none}
.film__play .ico{width:38%;height:38%;fill:var(--berry);stroke:var(--berry)}
/* the bar lies over the foot of the picture, so the box is exactly the 16:9 video and nothing moves when the bar goes on Play */
.film__bar{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;gap:1rem;padding:1.75rem 1.25rem .875rem;color:#fff;font-size:.8125rem;font-weight:500;background:linear-gradient(rgba(43,35,80,0),rgba(43,35,80,.82));pointer-events:none}
.film__track{flex:1;height:.25rem;border-radius:.25rem;background:rgba(255,255,255,.25);position:relative}
.film__track i{position:absolute;inset:0 auto 0 0;width:0;border-radius:.25rem;background:var(--berry)}
.film__bar span:first-child,.film__bar span:last-child{font-variant-numeric:tabular-nums}
@media (min-width:960px){
  .hero{padding:4.5rem 0 2.5rem}
  .hero__grid{grid-template-columns:1fr 1.05fr;gap:4rem}
  /* desktop: an inline sticker about the cap height of the headline, not a second line of type */
  .hero__pill{height:.62em;vertical-align:.02em;border-width:1.5px}
}

/* ---- the cast as portrait cards: the style picker's cards, size and grid; the picture
   in the card and the name and role under it, in the card, as the style cards do ---- */
.castrow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.875rem;align-items:start;margin:.25rem 0 1.25rem}
@media (min-width:640px){.castrow{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}}
@media (min-width:960px){.castrow{grid-template-columns:repeat(4,minmax(0,1fr))}}
.castface{display:block;text-align:left;padding:.5rem;background:#fff;border:1.5px solid var(--ink);
  border-radius:var(--r-card);font:inherit;color:inherit;cursor:pointer;transition:transform .12s,box-shadow .12s}
.castface:hover{transform:translateY(-.125rem);box-shadow:var(--sticker)}
.castface:focus-visible{outline:3px solid var(--sun);outline-offset:2px}
.castface__ring{position:relative;width:100%;aspect-ratio:1;border-radius:.875rem;overflow:hidden;
  background:var(--butter);display:grid;place-items:center}
/* the same picture shape as the style cards: square on phones, 4:3 from 960px */
@media (min-width:960px){.castface__ring{aspect-ratio:4/3}}
/* the saved photo is a square; the card shows the same window the editor frames: its top
   4:3 on desktop, the whole square on phones */
.castface__ring img{width:100%;height:100%;object-fit:cover;object-position:50% 0;display:block}
.castface__ring .ico{width:2.25rem;height:2.25rem;color:var(--muted)}
/* the caption: the style card's title and description, in the card under the picture */
.castface__name{display:block;margin:.5rem .25rem 0;font-size:clamp(.9375rem,calc(1.5vw*var(--ui-scale,1)),1.125rem);
  font-weight:600;letter-spacing:-.01em;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.castface__role{display:block;margin:.125rem .25rem 0;font-size:.8125rem;color:var(--muted);line-height:1.3;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.castface--todo{border-style:dashed;border-color:var(--berry);background:var(--berry-tint)}
.castface--todo .castface__ring{background:transparent}
.castface--todo .castface__ring .ico{color:var(--berry)}
.castface--add{border-style:dashed;background:#fff;box-shadow:none}
.castface--add .castface__ring{background:transparent}
.castface--add .castface__name{color:var(--muted);font-weight:500}

/* ---- add / edit one member ---- */
.castdlg__backdrop{position:fixed;inset:0;z-index:55;background:rgba(43,35,80,.55)}
.castdlg__backdrop[hidden]{display:none}
.castdlg{position:fixed;z-index:56;left:50%;top:50%;transform:translate(-50%,-50%);width:min(34rem,calc(100vw - 1.5rem));
  max-height:calc(100dvh - 1.5rem);overflow-y:auto;overscroll-behavior:contain;padding:1.5rem;outline:none;background:#fff}
.castdlg[hidden]{display:none}
.castdlg__head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:.75rem}
.castdlg__head h3{margin:0;font-size:1.375rem;line-height:1.2}
.castdlg__lead{margin:0 0 .625rem;font-size:.9375rem;color:var(--muted)}
.castdlg__roles[hidden]{display:none}
.castdlg__chips{display:flex;flex-wrap:wrap;gap:.5rem;margin:0}
.castdlg__body:empty{display:none}
.castdlg__body .slot{margin:0;padding:.875rem;gap:1rem;align-items:center}
/* The dialog is where the photo is chosen and framed, so here it is shown at a size worth
   looking at — the thumbnails in the cast row stay small (Zaid, 18 Nov: "the dialogue box is
   too small ... enough visible to see the photo in that thumbnail"). It shows the square the
   editor saved, whatever crop the row takes, and the name and age keep their own line beside
   it (the .slot container query would put them next to a small thumbnail). */
.castdlg__body .slot .slot__drop{width:8.5rem;aspect-ratio:1}
.castdlg__body .slot .slot__fields{grid-template-columns:minmax(0,1fr);gap:.4375rem}
.castdlg__body .slot .slot__row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.4375rem}
.castdlg__body .slot .input--sm{min-height:2.625rem;font-size:.9375rem;padding:0 .75rem}
.castdlg__body .slot select.input--sm{padding-right:1.75rem}
/* "Add to the film" is the height of "Create your film" on the page (Zaid, 18 Nov) */
.castdlg__acts .btn{min-height:3.75rem;font-size:1.0625rem}
.castdlg__acts{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1.25rem}
.castdlg__acts[hidden]{display:none}
.castdlg__remove{font-size:.875rem;text-decoration:underline;min-height:2.5rem}
.castdlg__remove[hidden]{display:none}
.castdlg__remove:focus-visible{outline:3px solid var(--sun);outline-offset:3px;border-radius:.25rem}
@media (max-width:639px){.castrow{gap:.75rem}}

/* ---- likeness ---- */
.likeness{display:grid;gap:1.375rem}
.likeness__main{position:relative;border:2px solid var(--ink);border-radius:var(--r-panel);overflow:hidden;box-shadow:0 .375rem 0 var(--ink);background:#fbefe2}
.likeness__main img{width:100%;aspect-ratio:1489/884;object-fit:cover}
/* before/after slider: --pos is where the photo ends and the drawing begins */
.ba{--pos:50%;touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:ew-resize}
.ba__img{display:block;pointer-events:none}
.ba__after{position:absolute;inset:0;-webkit-clip-path:inset(0 0 0 var(--pos));clip-path:inset(0 0 0 var(--pos))}
.ba__line{position:absolute;top:0;bottom:0;left:var(--pos);width:3px;margin-left:-1.5px;background:#fff;pointer-events:none}
.ba__knob{position:absolute;top:50%;left:var(--pos);width:3.25rem;height:3.25rem;margin:-1.625rem 0 0 -1.625rem;border-radius:50%;border:2px solid var(--ink);background:#fff;display:grid;place-items:center;color:var(--ink);cursor:ew-resize;touch-action:none}
.ba__knob svg{width:1.375rem;height:1.375rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ba__knob:focus-visible{outline:3px solid var(--sun);outline-offset:3px}
.ba.is-dragging .ba__knob{transform:scale(1.08)}
.ba__tag{position:absolute;z-index:1;top:1.25rem;padding:.375rem .75rem;border-radius:var(--r-pill);font-size:.875rem;font-weight:500;line-height:1.2;pointer-events:none;white-space:nowrap}
.ba__tag--photo{left:1.25rem;background:var(--ink);color:#fff}
.ba__tag--art{right:1.25rem;background:#fff;color:var(--ink)}
@media (max-width:639px){.ba__tag{top:.75rem;font-size:.75rem;padding:.3125rem .625rem}.ba__tag--photo{left:.75rem}.ba__tag--art{right:.75rem}.ba__knob{width:2.75rem;height:2.75rem;margin:-1.375rem 0 0 -1.375rem}}
/* "One face, N styles": a carousel of the style cards (landing.js). --per cards fit in the row;
   the rest scroll sideways inside the row (never the page), snapping card by card. */
.stylecar{display:grid;gap:.875rem;min-width:0;margin-top:.375rem}
.stylecar__head{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:2.75rem}
.stylecar__head h3{font-size:clamp(1.25rem,calc(2.2vw*var(--ui-scale,1)),1.5rem)}
.stylecar__nav{display:none;gap:.625rem}
.stylecar.is-paged .stylecar__nav{display:flex}
.stylecar__arrow{width:2.75rem;height:2.75rem;border-radius:50%;border:1.5px solid var(--ink);background:var(--ink);color:#fff;display:grid;place-items:center;padding:0;cursor:pointer}
.stylecar__arrow .ico{width:1.125rem;height:1.125rem;stroke-width:2.2}
.stylecar__arrow[disabled]{background:#fff;color:#b9b3cc;border-color:var(--line);cursor:default}
.stylecar__arrow:focus-visible{outline:3px solid var(--sun);outline-offset:3px}
.stylecar__dots{display:none;gap:.375rem;align-items:center;min-height:.375rem}
/* the page dots are kept in the DOM (landing.js counts pages) but not shown: the arrows are enough */
.stylecar__dots span{width:.375rem;height:.375rem;border-radius:var(--r-pill);background:var(--line);transition:width .2s ease,background-color .2s ease}
.stylecar__dots span.is-on{width:1.375rem;background:var(--ink)}
.stylerow{--per:2.15;--gap:1rem;display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - var(--gap) * (var(--per) - 1)) / var(--per));gap:var(--gap);
  overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;
  /* room inside the scroll area for the cards' hard shadow, the hover lift and the focus ring */
  margin:-.5rem -.5rem -.25rem;padding:.5rem .5rem .75rem;scroll-padding:0 .5rem}
.stylerow::-webkit-scrollbar{display:none}
.stylerow .stylecard{scroll-snap-align:start;min-width:0}
/* Each card is as tall as its own content; landing.js (fitStyleCards) then evens out the cards
   shown together on one page of the carousel, and their title lines, so a row is still level.
   Without it every card was stretched to the tallest of all eight, including the ones on the
   other page, and the shorter ones had an empty band under the text (Zaid, 16 Nov). */
.stylerow.is-fit{align-items:start}
.stylerow .stylecard[hidden]{display:none}
@media (min-width:640px){.stylerow{--per:3.15}}
@media (prefers-reduced-motion:reduce){.stylecar__dots span{transition:none}}
.stylecard{padding:.75rem;display:grid;gap:.75rem;align-content:start;text-align:left;font:inherit;color:inherit;cursor:pointer;border-radius:var(--r-card);background:#fff;border:2px solid var(--ink);box-shadow:0 .3125rem 0 var(--ink);transition:transform .15s ease}
.stylecard:hover{transform:translateY(-2px)}
.stylecard:focus-visible{outline:3px solid var(--sun);outline-offset:3px}
.stylecard.is-sel{border:2.5px solid var(--berry);background:var(--berry-tint);box-shadow:0 .3125rem 0 #d4502f}
.stylecard img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:1rem}
.stylecard__title{display:flex;align-items:center;align-content:flex-start;justify-content:space-between;gap:.5rem;flex-wrap:wrap;padding:0 .375rem}
/* a narrow phone card: a long "Most loved" (DE, FR, ES) wraps inside the card instead of
   widening it (the picture grew past the card's padding and the title row slid down) */
.stylecard{grid-template-columns:minmax(0,1fr)}
.stylecard__title .tag{max-width:100%;white-space:normal}
.stylecard__title strong{font-size:clamp(1.125rem,calc(2vw*var(--ui-scale,1)),1.5rem);font-weight:600}
.stylecard__blurb{display:block;padding:0 .375rem;font-size:.875rem;color:var(--muted)}
@media (min-width:960px){
  /* one column: the side panel that filled the second one is gone */
  .stylecar{grid-column:1/-1}
  .stylerow{--per:4;--gap:1.375rem}
}

/* ---- three acts ---- */
.acts{position:relative;background:var(--grape);color:#fff;padding:6rem 0}
.acts::before,.acts::after{content:"";position:absolute;left:0;right:0;height:1.375rem;
  background:radial-gradient(circle at 1.25rem -.125rem,var(--vanilla) 1.3125rem,transparent 1.375rem) 0 0/2.5rem 1.375rem repeat-x}
.acts::before{top:0}
.acts::after{bottom:0;transform:scaleY(-1)}
.acts .lead{color:rgba(255,255,255,.9)}
.acts__grid{display:grid;gap:1.375rem}
.act{background:var(--grape-ink);border:2px solid #2a2252;border-radius:var(--r-panel);padding:1.75rem;display:grid;gap:1.375rem;align-content:start;box-shadow:0 .375rem 0 #2a2252}
.act__top{display:flex;justify-content:space-between;align-items:baseline}
.act__num{font-size:3.5rem;font-weight:600;color:var(--sun);letter-spacing:-.04em;line-height:1}
.act__tag{font-size:.75rem;letter-spacing:.2em;color:rgba(255,255,255,.7);font-weight:600}
.act__demo{background:#fff;color:var(--ink);border-radius:1.375rem;padding:1rem;min-height:7.375rem;display:grid;align-content:center}
.act h3{font-size:clamp(1.375rem,calc(2.6vw*var(--ui-scale,1)),1.875rem)}
.act p{color:rgba(255,255,255,.75);font-size:1rem}
.avatars{display:flex;gap:.875rem;flex-wrap:wrap}
.avatars figure{margin:0;display:grid;justify-items:center;gap:.375rem;font-size:.875rem;color:var(--muted)}
.avatars img,.avatars .add{width:3.5rem;height:3.5rem;border-radius:50%}
.avatars .add{border:2px dashed #f7a9a4;display:grid;place-items:center;color:var(--berry)}
.pills{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:.75rem}
.pills span{padding:.4375rem .875rem;border-radius:var(--r-pill);border:1.5px solid var(--line);font-size:.875rem}
.pills span.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.narrator{background:var(--vanilla);border-radius:.75rem;padding:.625rem .875rem;font-size:.875rem;color:var(--muted)}
.narrator b{color:var(--ink);font-weight:500;margin-left:.5rem}
.ticks{list-style:none;margin:0;padding:0;display:grid;gap:.625rem}
.ticks li{display:flex;align-items:center;gap:.75rem;font-size:.9375rem}
.dot-ok,.dot-now{width:1.5rem;height:1.5rem;border-radius:50%;display:grid;place-items:center;flex:none}
.dot-ok{background:var(--mint);color:#fff}
.dot-ok .ico{width:.875rem;height:.875rem;stroke-width:2.4}
.dot-now{background:var(--berry)}
.dot-now::after{content:"";width:.5rem;height:.5rem;border-radius:50%;background:#fff}
.acts__cta{display:flex;justify-content:center;margin-top:3rem}
@media (min-width:960px){.acts{padding:8.125rem 0}.acts__grid{grid-template-columns:repeat(3,1fr)}}

/* ---- prices ---- */
.prices__aside{display:flex;gap:1.125rem;align-items:center}
.prices__aside img{width:5.25rem;flex:none}
.prices__grid{display:grid;gap:1.5rem}
.tier{background:#fff;border:2px solid var(--ink);border-radius:var(--r-panel);box-shadow:0 .375rem 0 var(--ink);padding:1.75rem;display:grid;gap:1.375rem;align-content:start}
.tier--feature{border-color:#d4502f;box-shadow:0 .375rem 0 #d4502f}
/* The price cards on the landing and pricing pages (Zaid 12 Nov): both look the same at rest. The
   dark border with the hard shadow read as "hovered" on Basic and the orange one as "chosen" on
   Premium, though nothing was hovered or chosen. The raised look is now the hover (and keyboard
   focus) state only. The creator's Quality cards (.tiers .tier) are not touched. */
.prices__grid .tier{border-color:var(--ink);box-shadow:none;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
@media (hover:hover){.prices__grid .tier:hover{box-shadow:0 .375rem 0 var(--ink);transform:translateY(-2px)}}
.prices__grid .tier:focus-within{box-shadow:0 .375rem 0 var(--ink)}
/* the cards have different numbers of points: the list takes the spare height, so the add-on and the
   button sit at the same height in both cards (flex column, same gap as the grid had) */
.prices__grid .tier{display:flex;flex-direction:column}
.prices__grid .tier ul{flex:1;align-content:start}
/* the creator's Quality cards have the same problem: Basic lists five points and Premium
   four, so the "Remove watermark" rows sat at different heights */
.tiers .tier{display:flex;flex-direction:column}
.tiers .tier ul{flex:1;align-content:start}
@media (prefers-reduced-motion:reduce){.prices__grid .tier{transition:none}.prices__grid .tier:hover{transform:none}}
.tier.is-sel{border-color:var(--berry);background:var(--berry-tint);box-shadow:0 .375rem 0 #d4502f}
.tier__top{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}
.tier__name{display:grid;gap:.5rem;justify-items:start}
.tier__name h3{font-size:clamp(1.75rem,calc(3.4vw*var(--ui-scale,1)),2.5rem);letter-spacing:-.02em}
.tier__name p{font-size:1rem}
/* how long this tier takes: the one line on the card a customer looks for */
.tier__name .tier__delivery{font-size:1.0625rem;font-weight:700;color:var(--ink);margin-top:.125rem}
.tier__price{text-align:right;display:grid;gap:.125rem}
.tier__price strong{font-size:clamp(2.375rem,calc(5vw*var(--ui-scale,1)),3.75rem);font-weight:600;letter-spacing:-.05em;line-height:1}
.tier__price span{color:var(--muted);font-size:.875rem}
/* A/B price test (?p=): the normal price struck through before the lower one (common.js setPrice) */
.price-was{color:var(--muted);font-weight:500;font-size:.6em;letter-spacing:-.01em;text-decoration-thickness:.08em}
.tier__price .price-was{display:block;font-size:.42em;margin-bottom:.2em}
.pay__lines .price-was{font-size:.9em;margin-right:.125rem}
.tier ul{list-style:none;margin:0;padding:0;display:grid;gap:.75rem}
.tier li{display:flex;gap:.875rem;align-items:center;font-size:1rem}
.tier li::before{content:"";flex:none;width:1.75rem;height:1.75rem;border-radius:50%;
  background:var(--berry-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23F2545B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/1rem no-repeat}
.addon{display:flex;align-items:center;gap:.875rem;padding:.875rem 1.125rem;border:1.5px solid var(--ink);border-radius:1.25rem;background:#fff;cursor:pointer;font-size:1rem}
.addon.is-on{background:var(--berry-soft)}
.addon__label{flex:1}
.addon__price{font-weight:500}
@media (min-width:960px){.prices__grid{grid-template-columns:1fr 1fr;gap:2.5rem}.tier{padding:2.5rem 3rem}}

/* ---- faq ---- */
.faq{display:grid;gap:2rem}
.faq__intro{display:grid;gap:1.25rem;align-content:start;justify-items:start}
.faq__list{display:grid;gap:1rem}
.faq__item{border:1.5px solid var(--line);border-radius:1.75rem;background:#fff}
.faq__q{width:100%;display:flex;justify-content:space-between;align-items:center;gap:1.25rem;padding:1.5rem 1.625rem;border:0;background:none;
  text-align:left;font-size:clamp(1.125rem,calc(2.2vw*var(--ui-scale,1)),1.5rem);font-weight:500;letter-spacing:-.01em;cursor:pointer;border-radius:1.75rem}
.faq__sign{flex:none;width:2.75rem;height:2.75rem;border-radius:50%;background:var(--butter);display:grid;place-items:center}
.faq__item.is-open .faq__sign{background:var(--ink);color:#fff}
/* no single word left alone on the last line (Zaid 12 Nov) */
.faq__a{padding:0 1.625rem 1.625rem;color:var(--muted);font-size:1rem;max-width:62ch;text-wrap:pretty}
.faq__intro .lead{text-wrap:balance}
.faq__a a{color:var(--berry)}
@media (min-width:960px){.faq{grid-template-columns:.8fr 1.2fr;gap:5rem}}

/* ---- final CTA ---- */
.final{padding:1.5rem 0 6rem}
.final__card{position:relative;overflow:hidden;background:var(--grape);color:#fff;border:2px solid var(--ink);border-radius:var(--r-panel);
  box-shadow:0 .5rem 0 var(--ink);padding:2.5rem 1.5rem 0;display:grid}
.final__copy{position:relative;z-index:1;display:grid;gap:1.25rem;justify-items:start}
.final__copy p{color:rgba(255,255,255,.82);font-size:1.0625rem}
.final__art{position:relative;margin:1.5rem -1.5rem 0;height:15rem;background:url(assets/img/cta-kids.webp) 60% 100%/cover no-repeat;
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 30%);mask-image:linear-gradient(180deg,transparent,#000 30%)}
@media (min-width:960px){
  .final__card{padding:6rem 7.5rem;min-height:26.25rem;align-content:center}
  .final__art{position:absolute;inset:0 0 0 38%;margin:0;height:auto;background-position:100% 100%;
    -webkit-mask-image:linear-gradient(90deg,transparent,#000 40%);mask-image:linear-gradient(90deg,transparent,#000 40%)}
}

/* ---- footer ---- */
.footer{background:var(--white);border-top:1px solid var(--line);padding:3rem 0 2rem;font-size:.875rem;color:var(--muted)}
.footer__grid{display:grid;gap:2rem}
/* "An Alteox product": the company behind the studio, with the logo its press kit
   publishes — never recoloured, never redrawn (alteox.com/en/press-kit) */
.footer__alteox{display:inline-flex;flex-direction:column;align-items:flex-start;gap:.4375rem;
  margin-top:1.25rem;color:var(--muted);font-size:.8125rem;text-decoration:none}
.footer__alteox img{display:block;width:6.125rem;height:auto}
.footer__alteox:hover{color:var(--ink)}
.footer__alteox:focus-visible{outline:3px solid var(--sun);outline-offset:3px;border-radius:.5rem}
.footer__brand p{margin-top:.75rem;max-width:34ch}
.footer__cols{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem}
.footer__cols h4{font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ink);margin-bottom:.625rem}
.footer__cols a{display:block;text-decoration:none;padding:.25rem 0}
.footer__cols a:hover{color:var(--ink)}
.footer__bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.75rem;margin-top:2.25rem;padding-top:1.25rem;border-top:1px solid var(--line)}
/* company details (imprint) — the same block on every page, also legal/legal.css */
.footer__imprint{display:grid;gap:.375rem;margin-top:2.25rem;padding-top:1.25rem;border-top:1px solid var(--line);font-size:.8125rem;line-height:1.55;max-width:90ch}
.footer__imprint strong{color:var(--ink);font-weight:600}
.footer__imprint a{color:inherit}
.footer__imprint + .footer__bottom{margin-top:1.25rem}
/* a fact nobody has confirmed yet (e.g. the support address until config.js sets it) */
.ph-inline{background:#fff1a8;color:#5a4300;border:1px dashed #c9a600;border-radius:.25rem;padding:0 .25rem;text-decoration:none}
@media (min-width:960px){.footer__grid{grid-template-columns:1fr 1fr}.footer__cols{grid-template-columns:repeat(3,1fr)}}

/* ================================================================ CREATOR */
.creator{background:var(--white);padding:3.5rem 0 5rem}
.creator__head{display:grid;gap:1rem;margin-bottom:2rem}
@media (min-width:960px){.creator{padding:6rem 0 7.5rem}.creator__head{grid-template-columns:1fr minmax(0,27.5rem);align-items:end;margin-bottom:3rem}}
/* the creator is as wide as the other sections, so its edges line up with the sticky top bar
   (Branimir, 11 Nov; it was 97rem, about 1300px at 1440) */

.builder{background:#fff;border:2px solid var(--ink);border-radius:var(--r-panel);box-shadow:0 .5rem 0 var(--ink);position:relative}
.builder__alert{margin:1rem 1rem 0;padding:.875rem 1.125rem;border-radius:1rem;background:var(--berry-soft);color:#a3262c;font-weight:500}
/* the studio is unreachable but the creator works from the offline catalogue:
   that is something to know, not something that went wrong */
.builder__alert.is-notice{background:var(--butter);color:var(--ink)}
/* an order waiting on this device for the studio to answer */
.builder__held{margin:1rem 1rem 0;padding:.875rem 1.125rem;border-radius:1rem;background:var(--mint-soft);color:var(--ink);
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem .875rem}
.builder__held[hidden]{display:none}
.builder__heldtext{margin:0;font-weight:500;flex:1 1 16rem}
.builder__heldacts{display:flex;align-items:center;gap:.875rem}
.builder__heldacts .btn{background:#fff}
.builder__heldrop{font-size:.8125rem;text-decoration:underline;min-height:2.5rem}
.builder__heldrop:focus-visible{outline:3px solid var(--sun);outline-offset:3px;border-radius:.25rem}
.builder__demo{margin:1rem 1rem 0;padding:.625rem 1rem;border-radius:.875rem;background:var(--butter);font-size:.875rem}

/* stepper: from 640px the steps sit in a centred group with short connectors */
.stepper{list-style:none;margin:0;padding:1rem 1rem;display:flex;align-items:flex-start;justify-content:center;border-bottom:1.5px solid var(--line)}
.stepper li{flex:1;display:flex;flex-direction:column;align-items:center;gap:.375rem;position:relative;min-width:0}
.stepper li:not(:last-child)::after{content:"";position:absolute;top:1.0625rem;left:calc(50% + 1.5rem);right:calc(-50% + 1.5rem);height:.125rem;background:var(--line)}
.stepper li.is-done:not(:last-child)::after{background:var(--mint)}
.stepper button{width:2.25rem;height:2.25rem;border-radius:50%;border:1.5px solid var(--line);background:#fff;color:var(--muted);font-weight:600;font-size:.9375rem;
  display:grid;place-items:center;padding:0;cursor:default}
.stepper .is-done button{background:var(--mint);border-color:var(--ink);color:#fff;box-shadow:0 .1875rem 0 var(--ink);cursor:pointer}
/* a step already visited that lies ahead (after going back): opens on a click, like the done ones */
.stepper .is-reached button{border-color:var(--ink);color:var(--ink);cursor:pointer}
.stepper .is-done button:hover,.stepper .is-reached button:hover{background-color:var(--butter);color:var(--ink)}
.stepper .is-now button{background:var(--berry);border-color:var(--ink);color:#fff;box-shadow:0 .1875rem 0 var(--ink)}
.stepper .ico{width:1rem;height:1rem;stroke-width:2.4}
.stepper span{font-size:.75rem;color:var(--muted);white-space:nowrap}
.stepper .is-now span{color:var(--ink);font-weight:600}
@media (max-width:639px){
  .stepper span{display:none}
  .stepper .is-now span{display:block;position:absolute;top:2.5rem;white-space:nowrap}
  .stepper{padding:.875rem .75rem 2.25rem}
  .stepper button{width:1.875rem;height:1.875rem;font-size:.8125rem}
  .stepper li:not(:last-child)::after{top:.875rem;left:calc(50% + 1.125rem);right:calc(-50% + 1.125rem)}
}
@media (min-width:640px){.stepper li{flex:0 0 5.75rem}}
@media (min-width:960px){.stepper{padding:1.125rem 2rem}.stepper li{flex-basis:6.5rem}.stepper button{width:2.5rem;height:2.5rem;font-size:1rem}
  .stepper li:not(:last-child)::after{top:1.1875rem;left:calc(50% + 1.75rem);right:calc(-50% + 1.75rem)}.stepper span{font-size:.875rem}}

/* panels */
.step{display:none;padding:1.25rem 1rem 1.5rem}
/* the slide-in moves the margins, not a transform: a transform (even mid-animation) makes the step
   the containing block of position:fixed children, and the photo editor modal (.editor)
   would then sit inside the step instead of over the viewport */
.step.is-active{display:block;animation:fade .25s ease}
@keyframes fade{from{opacity:0;margin-top:.375rem;margin-bottom:-.375rem}to{opacity:1;margin-top:0;margin-bottom:0}}
.step__grid{display:grid;gap:1.75rem}
/* compact titles: the description sits directly under the title, smaller */
.step__title{display:grid;gap:.25rem;margin-bottom:1.125rem}
.step__title .h2{font-size:clamp(1.375rem,calc(3vw*var(--ui-scale,1)),2.125rem);letter-spacing:-.02em}
.step__title .lead{font-size:.9375rem;line-height:1.5}
.step__title .lead b{color:var(--ink);font-weight:600}
@media (min-width:640px){.step{padding:1.5rem 1.75rem 1.75rem}}
@media (min-width:960px){.step{padding:1.75rem 2.5rem 2rem}.step__grid--aside{grid-template-columns:minmax(0,1fr) 23.75rem;gap:2.5rem;align-items:start}}

/* cast: compact horizontal cards, a 4:3 photo thumbnail on the left (builder.js makeSlot) */
.slots{display:grid;grid-template-columns:minmax(0,1fr);gap:.75rem}
@media (min-width:640px){.slots{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* 3 cast cards per row from 960px: the creator is as wide as the top bar, 4 did not fit their fields */
@media (min-width:960px){.slots{grid-template-columns:repeat(3,minmax(0,1fr));gap:.875rem}}
.slot{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:.625rem;align-items:start;padding:.625rem;
  background:#fff;border:1.5px solid var(--line);border-radius:1.125rem;transition:border-color .15s;container-type:inline-size}
.slot.is-filled{border-color:var(--ink)}
.slot__drop{position:relative;display:grid;place-items:center;width:4.125rem;aspect-ratio:1;border:2px dashed #f48b8f;border-radius:.875rem;background:var(--vanilla);
  cursor:pointer;color:var(--berry);transition:background .15s}
@media (min-width:960px){.slot__drop{aspect-ratio:4/3}}
.slot--optional .slot__drop{border-color:#b9b3cc;color:var(--muted)}
.slot__drop:hover,.slot__drop.is-over{background:var(--butter)}
.slot__empty{display:grid;place-items:center}
.slot__empty .ico{width:1.5rem;height:1.5rem;stroke-width:2}
/* the saved photo is a square (the editor's crop); the thumbnail shows the same window as
   the cast row and the editor's frame (top 4:3 on desktop, whole square on phones). A photo
   that was never cropped is not square: the top-aligned crop shows its upper part, where a
   head usually is. */
.slot__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 0;background:#e8e8e8;border-radius:.875rem}
.slot.is-filled .slot__drop{border:1.5px solid var(--ink);background:#e8e8e8;border-radius:.875rem}
.slot.is-filled .slot__empty{display:none}
.slot__ok{position:absolute;top:0;right:0;width:1.25rem;height:1.25rem;border-radius:50%;background:var(--mint);border:2px solid #fff;color:#fff;display:none;place-items:center;z-index:1}
.slot__ok .ico{width:.6875rem;height:.6875rem;stroke-width:3}
.slot.is-filled .slot__ok{display:grid}
/* the crop button at the photo's bottom-right corner: opens the photo editor */
.slot__edit{position:absolute;right:0;bottom:0;z-index:1;display:none;place-items:center;width:1.625rem;height:1.625rem;padding:0;
  border-radius:50%;background:#fff;border:1.5px solid var(--ink);color:var(--ink);cursor:pointer}
.slot__edit .ico{width:.875rem;height:.875rem}
.slot.is-filled .slot__edit{display:grid}
.slot__edit:focus-visible{outline:3px solid var(--sun);outline-offset:2px}
.slot.is-editing .slot__drop{border-color:var(--berry);box-shadow:0 0 0 2px var(--berry-soft)}
.slot.is-editing .slot__edit{background:var(--berry);border-color:var(--berry);color:#fff}
.slot__busy{position:absolute;inset:0;border-radius:.75rem;background:rgba(43,35,80,.55);display:none;place-items:center}
.slot__busy::after{content:"";width:1.25rem;height:1.25rem;border-radius:50%;border:.1875rem solid rgba(255,255,255,.35);border-top-color:#fff;animation:spin 1s linear infinite}
.slot.is-busy .slot__busy{display:grid}
.slot__main{display:grid;gap:.4375rem;min-width:0}
/* role pill, then "Add photo" and the remove x on the right */
.slot__meta{display:flex;align-items:center;gap:.5rem;min-height:1.5rem;padding-right:1.625rem}
.slot:not(.slot--optional) .slot__meta{padding-right:0}
.rolepill{display:inline-block;max-width:100%;padding:.1875rem .5625rem;border-radius:var(--r-pill);background:var(--berry-soft);color:var(--berry);
  font-size:.6562rem;font-weight:700;letter-spacing:.1em;line-height:1.4;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.slot--optional .rolepill{background:var(--vanilla);color:var(--ink)}
.slot__meta .rolepill{flex:0 1 auto;min-width:0}
.slot__addlink{margin-left:auto;flex:none;color:var(--berry);font-size:.8125rem;font-weight:600;cursor:pointer;white-space:nowrap}
.slot__addlink:hover{text-decoration:underline}
.slot.is-filled .slot__addlink{display:none}
.slot__fields{display:grid;gap:.375rem}
.slot .input--sm{min-height:2.25rem;font-size:.875rem;padding:0 .625rem;border-width:1.5px}
.slot select.input--sm{padding-right:1.625rem;background-position:calc(100% - .875rem) 50%,calc(100% - .5625rem) 50%}
/* age + pronoun share one row */
.slot__row{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:.375rem}
.slot__row select.input--sm{padding-left:.5rem;padding-right:1.375rem;background-position:calc(100% - .75rem) 50%,calc(100% - .4375rem) 50%}
/* a card with a second row of fields (age + pronoun, or gender): a bigger thumbnail beside the
   two rows under the role pill, same 4:3 crop as everywhere else */
.slot--tall .slot__drop{width:6.75rem}
/* a wide card (Figma): the fields on ONE line next to the thumbnail, under the role pill */
@container (min-width:22rem){
  .slot--tall .slot__drop{width:4.125rem}
  .slot--tall .slot__fields{grid-template-columns:minmax(0,1fr) auto;align-items:center}
  .slot__fields .slot__row{grid-template-columns:5rem 4.375rem}
  .slot__fields .slot__gender{width:7.5rem}
}
.slot__age:invalid,.slot__gender:invalid{color:var(--muted)}
.slot__age option,.slot__gender option{color:var(--ink)}
.slot__gender{width:100%;min-width:0}
.slot__remove{position:absolute;top:.5rem;right:.5rem;width:1.5rem;height:1.5rem;border-radius:50%;border:1.5px solid var(--line);background:#fff;display:grid;place-items:center;cursor:pointer;padding:0;color:var(--muted)}
.slot__remove:hover{border-color:var(--ink);color:var(--ink)}
.slot__remove .ico{width:.75rem;height:.75rem}
.addmore{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:1.125rem}
.addmore > span{color:var(--muted);margin-right:.25rem;font-size:.875rem}
.addmore .chip{min-height:2.25rem;padding:0 .875rem;font-size:.875rem;gap:.375rem}
.addmore .chip .ico{width:1rem;height:1rem}
.consent{margin-top:1rem}
.step[data-step="cast"] .check{padding:.75rem 1rem}
.check--optional{margin-top:.75rem;background:#fff}
.check small{display:block;margin-top:.125rem;font-size:.8125rem}
/* "Where should we send it?": the order's email, asked before payment */
.aside{padding:1.75rem;display:grid;gap:1.25rem}
.aside h3{font-size:1.375rem}
.note{display:flex;gap:.625rem;align-items:center;padding:.75rem 1rem;border-radius:.875rem;background:var(--line);font-size:.875rem;color:var(--ink)}
.note .ico{width:1rem;height:1rem}

/* photo editor: a modal over the page at every width (crop, zoom, rotate, flip). The backdrop
   is its own element (#editorBackdrop) so a click beside the modal closes it. */
.editor__backdrop{position:fixed;inset:0;z-index:59;background:rgba(43,35,80,.55)}
.editor{position:fixed;z-index:60;left:50%;top:50%;transform:translate(-50%,-50%);width:min(calc(100vw - 1.5rem),27rem);
  max-height:calc(100dvh - 1.5rem);overflow-y:auto;overscroll-behavior:contain;display:grid;gap:.75rem;padding:1.25rem;outline:none;background:#fff}
.editor__head{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem}
.editor__head > div{display:grid;gap:.375rem;justify-items:start}
.editor__head h3{font-size:1.375rem;line-height:1.2}
.editor__close{flex:none;width:2.25rem;height:2.25rem;border-radius:50%;border:1.5px solid var(--ink);background:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
.editor__close .ico{width:1rem;height:1rem}
.editor__view{position:relative;width:100%;aspect-ratio:1/1;justify-self:center;overflow:hidden;border-radius:1.125rem;border:1.5px solid var(--ink);
  background:#e8e8e8;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;min-width:10rem}
/* #e8e8e8 shows only while a photo loads: the photo always covers the whole square (builder.js edRender) */
.editor__view.is-dragging{cursor:grabbing}
.editor__view.is-loading img{visibility:hidden}
.editor__view:focus-visible{outline:3px solid var(--sun);outline-offset:3px}
.editor__view img{position:absolute;left:50%;top:50%;max-width:none;transform-origin:50% 50%;pointer-events:none}
/* the crop frame is the window the card shows (object-position:50% 0 on a square): the whole
   square on phones, its top 4:3 from 960px, everything outside it dimmed; the saved photo is
   the whole square around it (builder.js savePhoto) */
.editor__ring{position:absolute;inset:0;border-radius:.875rem;border:2px dashed #fff;
  box-shadow:0 0 0 100vmax rgba(43,35,80,.38);pointer-events:none}
@media (min-width:960px){.editor__ring{inset:0 0 25% 0}}
.editor__face{position:absolute;top:.625rem;left:.625rem;display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .625rem;border-radius:var(--r-pill);
  background:var(--mint);color:#fff;font-size:.6875rem;font-weight:700;pointer-events:none}
.editor__face .ico{width:.75rem;height:.75rem;stroke-width:2.4}
.editor__hint{position:absolute;left:50%;bottom:.625rem;transform:translateX(-50%);padding:.375rem .875rem;border-radius:var(--r-pill);
  background:rgba(43,35,80,.82);color:#fff;font-size:.8125rem;font-weight:600;line-height:1.3;text-align:center;width:max-content;max-width:calc(100% - 1.5rem);pointer-events:none;opacity:0;transition:opacity .25s}
.editor__view.is-hinting .editor__hint{opacity:1}
.editor__view.is-dragging .editor__hint{opacity:0}
.editor__help{font-size:.875rem;color:var(--muted);text-align:center}
/* a face was found in the photo and the frame leaves it out: shown in place of the help line */
.editor__warn{margin:0;padding:.5rem .75rem;border:1.5px solid var(--berry);border-radius:.75rem;background:var(--berry-tint);color:#b3262d;font-size:.875rem;font-weight:600;line-height:1.35;text-align:center}
.editor__view.is-noface{border-color:var(--berry);box-shadow:0 0 0 2px var(--berry-soft)}
.editor__checks{display:flex;align-items:center;justify-content:center;gap:.375rem;color:#1d8a5e;font-size:.8125rem;font-weight:600}
.editor__checks .ico{width:.875rem;height:.875rem;stroke-width:2.4}
.editor__zoom{display:flex;align-items:center;gap:.625rem}
.editor__zoom input{flex:1;min-width:0;accent-color:var(--berry);height:1.75rem;cursor:pointer}
.editor__round{flex:none;width:2.25rem;height:2.25rem;border-radius:50%;border:1.5px solid var(--ink);background:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
.editor__round .ico{width:1rem;height:1rem}
.editor__round[disabled]{color:#b9b3cc;border-color:#b9b3cc;cursor:default}
.editor__zoom output{flex:none;min-width:3rem;padding:.25rem .5rem;border:1.5px solid var(--line);border-radius:.625rem;background:#fff;text-align:center;font-size:.8125rem;font-weight:600}
.editor__tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
.editor__tool{display:inline-flex;align-items:center;justify-content:center;gap:.3125rem;min-height:2.375rem;padding:0 .375rem;border:1.5px solid var(--ink);border-radius:.75rem;
  background:#fff;font-size:.8125rem;font-weight:600;cursor:pointer}
.editor__tool .ico,.editor__actions .ico{width:1rem;height:1rem}
.editor__tool:hover,.editor__round:not([disabled]):hover,.editor__close:hover{background:var(--butter)}
.editor__tool:focus-visible,.editor__round:focus-visible,.editor__close:focus-visible{outline:3px solid var(--sun);outline-offset:2px}
.editor__actions{display:grid;grid-template-columns:auto 1fr;gap:.75rem}
.editor__actions .btn{padding:0 1.125rem}

/* selectable cards (style, story): just image + title. On hover and when chosen the title panel
   grows UPWARDS over the bottom of the picture and shows the description under the title: the
   card keeps its size, so nothing below moves (Zaid, 11 Nov). Chosen: coral border + light tint. */
.choices{display:grid;gap:.875rem}
.choices--styles,.choices--themes{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:640px){.choices--styles,.choices--themes{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}}
@media (min-width:960px){.choices--styles{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* Desktop: the 8 styles as 4+4 and the 6 stories as 3+3 (Zaid, 11 Nov: "6, or 3 if too tight"),
   both full rows across the card. The style pictures are 4:3 there (faces stay in the crop) so
   both rows fit at 1440x900 without the inner scroll. Mia's square portraits are cut from the
   top there, so the whole head stays in the card and the 4:3 cut takes sweater, not hair
   (Zaid, 16 Nov: the top of the head was cropped in every card). */
@media (min-width:960px){.choices--styles .choice__img{aspect-ratio:4/3;object-position:50% 30%}.choices--styles .choice__img--face{object-position:50% 0}}
.choice{--title-h:1.75rem;position:relative;overflow:hidden;text-align:left;display:block;padding:.5rem .5rem calc(var(--title-h) + .75rem);background:#fff;
  border:1.5px solid var(--ink);border-radius:var(--r-card);cursor:pointer;transition:transform .12s,box-shadow .12s}
.choice:hover{transform:translateY(-.125rem);box-shadow:var(--sticker)}
.choice.is-sel{border:2.5px solid var(--berry);background:var(--berry-tint);box-shadow:0 .3125rem 0 #d4502f}
.choice:focus-visible{outline:3px solid var(--sun);outline-offset:2px}
.choice__img{display:block;width:100%;aspect-ratio:1;border-radius:.875rem;object-fit:cover;background:linear-gradient(135deg,var(--a,#f4b45a),var(--b,#e0893a))}
/* the style faces are square already: show them whole */
.choice__img--face{object-position:50% 50%}
.choice--theme .choice__img{aspect-ratio:16/9;border:1.5px solid var(--ink)}
/* the title panel sits on the card's bottom edge; it only grows upwards */
.choice__body{position:absolute;left:0;right:0;bottom:0;z-index:1;display:grid;gap:.125rem;padding:.375rem .75rem .5rem;background:inherit}
.choice__title{display:flex;align-items:center;gap:.375rem;min-height:var(--title-h);min-width:0}
.choice__title strong{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:clamp(.9375rem,calc(1.5vw*var(--ui-scale,1)),1.125rem);font-weight:600;letter-spacing:-.01em}
.choice__title .tag{flex:none;margin-left:auto;padding:.1875rem .5rem;font-size:.5938rem}
.choice__sub{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-height:0;
  font-size:.8125rem;line-height:1.3;color:var(--muted);visibility:hidden;opacity:0;transition:max-height .18s ease,opacity .15s}
@media (hover:hover){.choice:hover .choice__sub{visibility:visible;opacity:1;max-height:2.6em}}
.choice:focus-visible .choice__sub,.choice.is-sel .choice__sub{visibility:visible;opacity:1;max-height:2.6em}
.choice__tick{position:absolute;top:.875rem;right:.875rem;z-index:2;width:1.625rem;height:1.625rem;border-radius:50%;background:var(--berry);color:#fff;border:2px solid #fff;display:none;place-items:center}
.choice__tick .ico{width:.875rem;height:.875rem;stroke-width:2.4}
.choice.is-sel .choice__tick{display:grid}
@media (max-width:639px){.choice{--title-h:1.5rem}.choice__sub{font-size:.75rem}.choice__body{padding:.25rem .625rem .4375rem}}
/* touch screens (no hover) and phones: only the chosen card shows its description, under the
   title and below the picture (the card grows, the small picture stays whole); the others keep
   their height */
@media (hover:none),(max-width:639px){
  .choices{align-items:start}
  .choice{padding-bottom:.5rem}
  .choice__body{position:static;padding:.375rem .25rem 0}
  .choice__sub{display:none}
  .choice.is-sel .choice__sub{display:-webkit-box;max-height:none;-webkit-line-clamp:3}
}
@media (prefers-reduced-motion:reduce){.choice__sub{transition:none}}

/* preview: one free watermarked clip (preview-view.js), Figma frames 06 / 09 */
.clip{display:grid;gap:1.5rem}
.clip__head{margin-bottom:0;justify-items:start}
.eyebrow--ai::before{display:none}
.eyebrow--ai .ico{width:.875rem;height:.875rem;stroke-width:2}
.clip__progress{margin-top:0}
.clip__progress.is-held{background:var(--berry-tint)}
.clip__label{display:inline-flex;align-items:center;gap:.625rem}
.clip__label .ico{color:var(--muted)}
.clip__grid{display:grid;gap:1.25rem}
@media (min-width:960px){.clip:not(.clip--compact) .clip__grid{grid-template-columns:minmax(0,1fr) 20rem;gap:1.75rem;align-items:stretch}}
.clip__stage{position:relative;aspect-ratio:16/9;border-radius:var(--r-card);overflow:hidden;display:grid;place-items:center;padding:1rem;
  background:radial-gradient(circle at 30% 30%,rgba(255,201,60,.35),transparent 45%),radial-gradient(circle at 75% 70%,rgba(242,84,91,.35),transparent 50%),linear-gradient(160deg,#3a2f74,var(--ink))}
.clip__stage.has-clip{padding:0;background:var(--ink);border:1.5px solid var(--ink);box-shadow:var(--sticker)}
.clip__video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.clip__card{display:grid;justify-items:center;gap:.375rem;text-align:center;background:#fff;border:1.5px solid var(--ink);border-radius:var(--r-card);
  padding:1.125rem 1.375rem;min-width:min(13.75rem,100%);max-width:100%;box-shadow:var(--sticker)}
.clip__card strong{font-size:1rem;font-weight:600}
.clip__card small{color:var(--muted);font-size:.8438rem}
.clip__spin{width:2.5rem;height:2.5rem;border-radius:50%;border:.25rem solid rgba(43,35,80,.1);border-top-color:var(--berry);border-right-color:var(--berry);animation:spin 1.1s linear infinite;margin-bottom:.25rem}
.clip__icon{width:2.5rem;height:2.5rem;border-radius:50%;display:grid;place-items:center;background:var(--berry-soft);color:var(--berry);margin-bottom:.25rem}
[data-phase="failed"] .clip__icon{background:var(--butter);color:var(--ink)}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.clip__spin{animation-duration:3s}}
.clip__side{background:var(--butter);border-radius:var(--r-card);padding:1.375rem 1.5rem;display:grid;gap:.875rem;align-content:start}
.clip__sidetitle{font-size:1.0625rem;font-weight:600}
.clip__steps{list-style:none;margin:0;padding:0;display:grid;gap:.875rem}
.clip__steps li{display:flex;align-items:center;gap:.75rem;color:var(--muted);font-size:.9375rem}
.clip__steps li.is-done,.clip__steps li.is-now,.clip__steps li.is-held{color:var(--ink)}
.clip__steps li.is-now{font-weight:600}
.clip__dot{flex:none;width:1.625rem;height:1.625rem;border-radius:50%;border:1.5px solid var(--line);background:#fff;display:grid;place-items:center}
.clip__dot .ico{width:.875rem;height:.875rem;stroke-width:2.4}
.is-done .clip__dot{background:var(--mint);border-color:var(--ink);color:#fff}
.is-now .clip__dot{background:var(--sun);border-color:var(--ink)}
.is-held .clip__dot{background:var(--berry);border-color:var(--ink);color:#fff}
.clip__flags{display:grid;gap:.75rem}
@media (min-width:640px){.clip__flags{grid-template-columns:repeat(auto-fill,minmax(17.5rem,1fr))}}
.clip__note{display:flex;gap:.625rem;align-items:center;color:var(--muted);font-size:.9375rem}
.clip__note .ico{flex:none}
.clip__cta{justify-self:start}
@media (max-width:639px){.clip__cta{justify-self:stretch}}
.status .clip{margin-bottom:1.5rem}

/* photo check (upload moderation): message on the person's card */
.flag{display:grid;gap:.625rem;padding:.75rem .875rem;border-radius:1rem;background:var(--berry-tint);border:1.5px solid var(--berry);color:#8f1f25;font-size:.875rem;line-height:1.45}
.flag strong{display:block;font-weight:600;color:var(--ink)}
.flag--wait{background:var(--butter);border-color:var(--ink);color:var(--ink)}
.flag .btn{justify-self:start;white-space:nowrap;min-height:2.5rem;padding:0 .75rem;font-size:.875rem;gap:.375rem;box-shadow:0 .1875rem 0 var(--ink)}
.flag .btn .ico{width:1rem;height:1rem}
.slot.is-flagged .slot__drop{border:2.5px solid var(--berry);box-shadow:0 .25rem 0 var(--berry)}
.slot.is-flagged .slot__ok{display:none}
.previewmail{margin-top:1.75rem;max-width:28.75rem;display:grid;gap:.5rem}
.previewmail .muted{font-size:.875rem}

/* quality */
.tiers{display:grid;gap:1.375rem}
@media (min-width:960px){.tiers{grid-template-columns:1fr 1fr;gap:2.5rem}
  /* The creator's finish cards sit tighter than the landing's price cards: the step has only
     the card's height, and at the landing's spacing the taller languages scrolled inside it
     (Zaid, 18 Nov: "remove the scroll effect ... reduce the spacing between the bullet
     points"). A short laptop window packs them further down the file. */
  .tiers .tier{padding:1.5rem 2rem;gap:1rem}
  .tiers .tier ul{gap:.5rem}}
.tiers .tier{cursor:pointer;text-align:left;font:inherit;color:inherit}
.tiers__hint{grid-column:1/-1;margin:0;color:var(--muted);font-size:.9375rem}
.tiers .tier:not(.is-sel){box-shadow:none}
/* keyboard focus is a yellow ring, never the berry border of the chosen card */
.tiers .tier:focus{outline:none}
.tiers .tier:focus-visible{outline:3px solid var(--sun);outline-offset:3px}

/* delivery */
.dcards{display:grid;gap:1.125rem}
@media (min-width:768px){.dcards{grid-template-columns:1fr 1fr;gap:1.75rem}}
.dcard{position:relative;text-align:left;display:grid;gap:.875rem;padding:1.625rem;background:#fff;border:1.5px solid var(--ink);border-radius:var(--r-panel);cursor:pointer}
.dcard.is-sel{border:2.5px solid var(--berry);background:var(--berry-tint);box-shadow:0 .375rem 0 #d4502f}
.dcard__icon{width:3.5rem;height:3.5rem;border:1.5px solid var(--ink);border-radius:1rem;display:grid;place-items:center;background:#fff}
.dcard__icon .ico{width:1.5rem;height:1.5rem}
.dcard strong{font-size:clamp(1.375rem,calc(2.4vw*var(--ui-scale,1)),1.75rem);font-weight:600}
.dcard p{color:var(--muted);font-size:1rem}
.dcard__tick{position:absolute;top:1.625rem;right:1.625rem;width:2rem;height:2rem;border-radius:50%;border:1.5px solid var(--line);display:grid;place-items:center;color:#fff}
.dcard.is-sel .dcard__tick{background:var(--berry);border:2px solid var(--ink)}
.dcard__tick .ico{width:1rem;height:1rem;stroke-width:2.4}

/* review & checkout */
.review__film{display:flex;gap:1.25rem;align-items:center;margin:.5rem 0 1.5rem}
.review__film img{width:7.5rem;aspect-ratio:1.5;border-radius:1.125rem;border:1.5px solid var(--ink);object-fit:cover;flex:none;background:linear-gradient(135deg,var(--a,#ffe1e3),var(--b,#ffefc7))}
.review__film h3{font-size:clamp(1.1875rem,calc(2.4vw*var(--ui-scale,1)),1.625rem);margin:.25rem 0 .5rem}
.faces{display:flex;align-items:center;gap:.625rem;color:var(--muted);font-size:.9375rem;flex-wrap:wrap}
.faces span{display:flex}
.faces img{width:2.625rem;aspect-ratio:4/3;border-radius:.5rem;border:2px solid #fff;object-fit:cover;object-position:50% 0;margin-left:-.625rem;background:var(--butter)}
.faces img:first-child{margin-left:0}
.rows{border-top:1.5px solid var(--line)}
.rows > div{display:grid;grid-template-columns:5.625rem 1fr auto;gap:.75rem;align-items:center;padding:1rem 0;border-bottom:1.5px solid var(--line);font-size:1rem}
.rows dt{color:var(--muted)}
.rows dd{margin:0;font-weight:600;min-width:0;overflow-wrap:anywhere}
@media (min-width:640px){.rows > div{grid-template-columns:12.5rem 1fr auto;padding:1.25rem 0;font-size:1.0625rem}}
.human{display:flex;gap:.625rem;align-items:center;color:#1d8a5e;margin-top:1.375rem;font-size:.9375rem}
.contact{display:grid;gap:.875rem;margin-top:1.25rem;max-width:26rem}
/* the invoice name and the order's email side by side: the checkout is the tallest step, and
   its two fields stacked pushed the whole page out of the card (in French, German, Spanish).
   Both labels keep the height of two lines, so the two inputs start on the same line, and the
   input never stretches to the taller field's height (the email carries a help line). */
@media (min-width:640px){
  .contact{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.75rem 1.25rem;max-width:44rem;align-items:start}
  .contact .field{align-content:start}
  /* both labels are the same height, so the two inputs start on one line, whatever the
     language does with "Required" beside the label */
  .contact .field__label{display:block;height:2.9em;overflow:hidden}
  /* "Required" under the label on its own line, in both fields: the two labels then look the
     same in every language, instead of one inline tag and one wrapped one */
  .contact .tag--req{display:block;width:max-content;margin-top:.125rem;padding:.125rem .375rem;font-size:.5625rem}
  .contact .field__help{grid-column:1 / -1;margin:0}
  .contact .field__err{grid-column:1 / -1}
}
/* Checkout's "‹ Back" (the bottom bar is hidden on that step) */
/* Checkout has no bottom bar: its Back is the same button as the bar's, above the heading */
.checkout__back{margin:0 0 .75rem}
.field__err{margin:-.375rem 0 0;color:#b3262d;font-size:.875rem;font-weight:600}
.contact input.is-error{border-color:var(--berry)!important;background:var(--berry-tint);box-shadow:0 0 0 2px var(--berry-tint)}
.backlink{display:inline-flex;align-items:center;gap:.25rem;margin:0 0 .5rem;padding:.25rem 0;border:0;background:none;color:var(--muted);font-weight:600;font-size:.9375rem;cursor:pointer}
.backlink:hover{color:var(--ink)}
.backlink[disabled]{opacity:.5;cursor:default}
.backlink span{font-size:1.25rem;line-height:1}
.pay{padding:1.75rem;display:grid;gap:1.125rem}
.pay h3{font-size:1.5rem}
.pay__stripe{display:flex;gap:.875rem;align-items:center;padding:1rem 1.125rem;border:2px solid var(--berry);border-radius:1.125rem;background:#fff}
.pay__stripe small{display:block;color:var(--muted);font-size:.8438rem}
.pay__lines{display:grid;gap:.625rem;padding-bottom:1rem;border-bottom:1.5px solid var(--line);font-size:1rem}
.pay__lines div{display:flex;justify-content:space-between;gap:.75rem}
.pay__lines span{color:var(--muted)}
.pay__total{display:flex;justify-content:space-between;align-items:flex-end;gap:.75rem}
.pay__total > strong{font-size:clamp(2.25rem,calc(4.6vw*var(--ui-scale,1)),3.25rem);font-weight:600;letter-spacing:-.04em;line-height:1}
.pay__total div strong{font-size:1.25rem}
.pay__total small{display:block;color:var(--muted);font-size:.8438rem}
.pay__stub{padding:.75rem .875rem;border:1.5px dashed var(--ink);border-radius:.875rem;font-size:.875rem;background:#fff}
/* the two acceptances (terms, withdrawal waiver) sit together above Pay; the panel's gap spaces them */
.pay .consent{margin-top:0}
.pay__legal{text-wrap:balance;font-size:.8438rem;color:var(--muted);text-align:center}
.pay__legal a{color:var(--ink)}
.pay__fine{font-size:.8438rem;color:var(--muted);text-align:center}
/* Checkout without the inner scroll at 1440x900 (Zaid, 11 Nov): a narrower review pane, a wider
   Payment pane (the withdrawal consent wraps into fewer lines) and tighter spacing */
.step[data-step="checkout"] #payBtn{min-height:3.75rem}
.step[data-step="checkout"] .review__film{margin:.25rem 0 .625rem}
.step[data-step="checkout"] .review__film > img{width:5.5rem}
.step[data-step="checkout"] .contact{margin-top:.75rem}
.step[data-step="checkout"] .human{margin-top:.5rem;font-size:.875rem}
/* the checkout's own padding: its content is the tallest in the card, so it starts a little
   higher than the other steps (the card's top is the stepper, not the step) */
@media (min-width:960px){.step[data-step="checkout"]{padding-top:1.25rem;padding-bottom:.5rem}
  .step[data-step="checkout"] .step__title{margin-bottom:.875rem}}
@media (min-width:640px){.step[data-step="checkout"] .rows > div{grid-template-columns:9rem 1fr auto;padding:.375rem 0;font-size:1rem}}
@media (min-width:960px){
  /* the checkout is the tallest step and has to fit the card in every language, so its
     Payment pane is packed: tighter gaps, smaller consent boxes and a smaller total */
  .step[data-step="checkout"] .pay{padding:1rem 1.25rem;gap:.4375rem}
  .step[data-step="checkout"] .pay h3{font-size:1.25rem}
  .step[data-step="checkout"] .pay__stripe{padding:.625rem 1rem}
  .step[data-step="checkout"] .pay__lines{gap:.25rem;padding-bottom:.5rem;font-size:.9375rem}
  .step[data-step="checkout"] .pay__stub{padding:.5rem .625rem;font-size:.8125rem}
  .step[data-step="checkout"] .pay__total > strong{font-size:2.25rem}
  .step[data-step="checkout"] .pay .check{padding:.5rem .875rem;font-size:.875rem;line-height:1.35}
  .step[data-step="checkout"] .pay .check small{font-size:.7813rem}
  .step[data-step="checkout"] .pay__legal{font-size:.8125rem}
  .step[data-step="checkout"] .pay__fine{font-size:.8125rem}
  .step[data-step="checkout"] #payBtn{min-height:3rem}
}
/* Zaid 12 Nov: the film title must not leave one word alone on a second line: a little more room
   for the review pane (the Payment pane 32rem -> 30rem; its consent still wraps into 4 lines), a
   slightly smaller title, and a title that does need two lines is split evenly */
@media (min-width:1200px){.step[data-step="checkout"] .step__grid--aside{grid-template-columns:minmax(0,1fr) minmax(0,30rem);gap:2.5rem}}
.review__film h3{text-wrap:balance}
.step[data-step="checkout"] .review__film h3{font-size:clamp(1.1875rem,calc(2.4vw*var(--ui-scale,1)),1.5rem)}

/* builder footer */
.bfoot{position:sticky;bottom:0;z-index:5;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.625rem;padding:.875rem .875rem calc(.875rem + env(safe-area-inset-bottom));
  background:var(--vanilla);border-top:1.5px solid var(--line);border-radius:0 0 1.875rem 1.875rem}
.bfoot__total{text-align:center;display:grid;gap:.125rem;min-width:0}
.bfoot__total .label{color:var(--muted);font-size:.625rem}
.bfoot__total strong{font-size:1.375rem;font-weight:600;letter-spacing:-.03em;line-height:1.1}
.bfoot__total small{font-size:.75rem;color:var(--muted);line-height:1.3}
.bfoot .btn{min-height:3rem;padding:0 1.125rem;font-size:.9375rem}
.bfoot .btn--ghost .txt{display:none}
@media (min-width:640px){.bfoot{padding:1rem 1.75rem;gap:1.25rem}.bfoot .btn--ghost .txt{display:inline}.bfoot .btn{min-height:3.25rem;padding:0 1.75rem;font-size:1.0625rem}}
@media (min-width:960px){.bfoot{padding:1rem 2.5rem}.bfoot__total strong{font-size:1.75rem}.bfoot__total small{font-size:.875rem}}
@media (max-width:639px){.bfoot__total small{display:none}.bfoot__total strong{font-size:1.25rem}}

/* Fixed-height creator card (tablet/desktop with room for it): the stepper and the bottom bar stay put,
   only the step content scrolls inside the card. Phones and short windows keep normal page scrolling.
   The card has the whole window: 1rem of air above it and 1rem below its .5rem shadow. builder.js go()
   scrolls it to 1rem under the top of the window and hides the top nav (it was the window less 7.5rem,
   room for the nav above the card: a gap whenever the nav was hidden). The nav returns when the visitor
   scrolls up; by then the page, and the card with it, has moved down.
   max-height from 960px, where the steps are laid out to fit (Zaid 12 Nov: no big empty band
   under the cards on a tall screen; a tablet's stacked steps scroll and keep 62rem): the tallest step,
   Checkout (two columns: review + payment), needs the whole height, so the card is 56rem there and
   the checkout's own spacing is packed to fit in every language (www/tests/test_creator_layout.py,
   test_every_step_fits_the_card_without_scrolling_in_every_language). The card is the same height
   on every step. */
@media (min-width:768px) and (min-height:600px){
  .builder--fit{display:flex;flex-direction:column;height:calc(100vh - 2.5rem);height:calc(100dvh - 2.5rem);max-height:62rem}
  .builder--fit > .stepper,.builder--fit > .builder__alert,.builder--fit > .builder__demo{flex:none}
  .builder--fit > .builder__body{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;scroll-padding-top:1rem;
    scrollbar-width:none;-ms-overflow-style:none}
  /* no scrollbar in the card (the step still scrolls with the wheel, a finger or the arrow keys):
     the card is a picture frame, and a bar down its side was the one thing that did not belong */
  .builder--fit > .builder__body::-webkit-scrollbar{width:0;height:0}
  .builder--fit > .bfoot{position:relative;flex:none}
  .builder--fit > .builder__body:focus-visible{outline:3px solid var(--sun);outline-offset:-3px}
  /* The checkout is the one step that can want more room than the window: there the card grows
     with its content and the page scrolls, so the review and the payment panel are whole and
     nothing scrolls inside the frame (Zaid, 18 Nov: "we extend the container vertically to fit
     all the content. (For this step only)"). builder.js go() sets the class. */
  .builder--fit.builder--grow{height:auto;max-height:none;min-height:min(calc(100vh - 2.5rem),62rem);min-height:min(calc(100dvh - 2.5rem),62rem)}
  .builder--fit.builder--grow > .builder__body{overflow:visible}
}
@media (min-width:960px) and (min-height:600px){.builder--fit{max-height:56rem}.builder--fit .step{padding-bottom:1rem}
  /* the grown checkout keeps the same frame as the other steps until its content asks for more */
  .builder--fit.builder--grow{min-height:min(calc(100vh - 2.5rem),56rem);min-height:min(calc(100dvh - 2.5rem),56rem)}}

/* ================================================================ SHORT LAPTOP WINDOWS
   A 13" laptop shows about 1440x700-790 (CEO, 13 Nov: "none of the blocks is fully visible").
   In a desktop-wide window that is 880px high or less, together with the smaller --ui-scale
   (scale.css): less air between the sections, smaller headline maxima and compact blocks, so the
   creator card, the likeness block, the price cards and the FAQ each fit in the window whole.
   Taller windows and phones are not touched. www/tests/test_laptop_fit.py measures it. */
@media (min-width:960px) and (max-height:880px){
  .display{font-size:clamp(2.75rem,calc(8.6vw*var(--ui-scale,1)),4rem)}
  .h1{font-size:clamp(2.125rem,calc(6vw*var(--ui-scale,1)),3rem)}
  .section{padding:4rem 0}
  .section__head{margin-bottom:2rem}
  .hero{padding:2.5rem 0 1.5rem}
  .creator{padding:3.5rem 0 4.5rem}
  .creator__head{margin-bottom:1.5rem}
  .acts{padding:5.25rem 0}
  .acts__cta{margin-top:2rem}
  .final{padding:1rem 0 4rem}
  .final__card{padding:4rem 5rem;min-height:21rem}
  /* likeness: the style cards show a 3:2 cut of the face, so the slider and the row fit together;
     cut from the top, so the hair is never cut off (the chin and the collar stay in) */
  .likeness{gap:1.125rem}
  .stylecar{gap:.625rem;margin-top:0}
  .stylecar__head{min-height:2.25rem}
  .stylerow .stylecard{padding:.625rem;gap:.5rem}
  .stylerow .stylecard img{aspect-ratio:3/2;object-position:50% 0}
  /* prices */
  .tier{padding:1.75rem 2.25rem;gap:1.125rem}
  .tier__name h3{font-size:clamp(1.75rem,calc(3.4vw*var(--ui-scale,1)),2.125rem)}
  .tier__price strong{font-size:clamp(2.375rem,calc(5vw*var(--ui-scale,1)),3rem)}
  .tier ul{gap:.5rem}
  /* faq */
  .faq__list{gap:.75rem}
  .faq__q{padding:1.125rem 1.5rem}
  .faq__sign{width:2.5rem;height:2.5rem}
  .faq__a{padding:0 1.5rem 1.25rem}
  /* creator card: a lower stepper and bottom bar and tighter steps, so Story, Style, Quality and
     Delivery show whole inside the card (no scrolling in it) down to a 680px-high window */
  .stepper{padding:.625rem 2rem}
  .bfoot{padding:.625rem 2.5rem}
  .bfoot .btn{min-height:3rem}
  .builder__demo{margin-top:.625rem;padding:.375rem 1rem}
  .step{padding-top:1.125rem}
  .builder--fit .step{padding-bottom:.75rem}
  .step__title{margin-bottom:.75rem}
  .choices--styles,.choices--themes{gap:.75rem}
  .tiers{gap:1.5rem}
  .tiers .tier{padding:1.125rem 1.75rem;gap:.75rem}
  .tiers .tier ul{gap:.375rem}
  .tiers .tier li{font-size:.9375rem}
  .tiers .tier li::before{width:1.5rem;height:1.5rem}
  .checkout__back{margin-bottom:.375rem}
  .step[data-step="checkout"] .pay{padding:.875rem 1.25rem;gap:.375rem}
  .step[data-step="checkout"] .pay .check{padding:.375rem .75rem;font-size:.8438rem}
  .step[data-step="checkout"] .pay__legal,.step[data-step="checkout"] .pay__fine{font-size:.75rem}
  .step[data-step="checkout"] .human{margin-top:.625rem}
  /* a short window: the checkout drops its intro line and the film's eyebrow rather than
     scroll inside the card (its rows, fields and consents all stay) */
  .step[data-step="checkout"] .step__title .lead{display:none}
  .step[data-step="checkout"] .review__film .label{display:none}
  .step[data-step="checkout"] .rows > div{padding:.3125rem 0}
}

/* ================================================================ STATUS / CONFIRMATION */
.status{padding:1.5rem 0 5rem}
.status .builder{overflow:hidden}
.status__body{display:grid;gap:2.25rem;padding:2rem 1rem 2.5rem}
@media (min-width:640px){.status__body{padding:2.75rem 2rem}}
@media (min-width:960px){.status__body{grid-template-columns:minmax(0,1fr) 26.25rem;gap:4rem;padding:4rem 3.5rem}}
.status__intro{display:grid;gap:1rem;justify-items:start;margin-bottom:2rem}
.paid{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem 1rem;border-radius:var(--r-pill);background:var(--mint-soft);color:#1d8a5e;font-weight:600;font-size:.9375rem}
.paid--wait{background:var(--butter);color:#8a6a10}
.timeline{list-style:none;margin:0;padding:0}
.timeline li{position:relative;display:grid;grid-template-columns:2.75rem 1fr auto;gap:1.125rem;padding-bottom:1.875rem}
.timeline li:not(:last-child)::before{content:"";position:absolute;left:1.3125rem;top:2.75rem;bottom:0;width:.125rem;background:var(--line)}
.timeline li.is-done:not(:last-child)::before{background:var(--mint)}
.tl__dot{position:relative;width:2.75rem;height:2.75rem;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center;background:#fff}
/* the small centre dot is placed on the circle's centre itself: as a second grid item next to the
   (hidden) tick's wrapper it sat below the centre, off the line's axis (Zaid 12 Nov) */
.tl__dot::after{content:"";position:absolute;inset:0;margin:auto;width:.625rem;height:.625rem;border-radius:50%;background:var(--line)}
.is-done .tl__dot{background:var(--mint);border-color:var(--ink);box-shadow:0 .1875rem 0 var(--ink);color:#fff}
.is-done .tl__dot::after{display:none}
.is-done .tl__dot .ico{width:1.125rem;height:1.125rem;stroke-width:2.4}
.is-now .tl__dot{background:var(--berry);border-color:var(--ink);box-shadow:0 .1875rem 0 var(--ink)}
.is-now .tl__dot::after{background:#fff}
.tl__dot .ico{display:none}
.is-done .tl__dot .ico{display:block}
.timeline strong{display:block;font-size:clamp(1.125rem,calc(2vw*var(--ui-scale,1)),1.375rem);font-weight:600;letter-spacing:-.01em}
.timeline li:not(.is-done):not(.is-now) strong{color:var(--muted)}
.timeline small{color:var(--muted);font-size:.9375rem}
.tl__when{font-size:.875rem;color:var(--muted);text-align:right;white-space:nowrap}
.is-done .tl__when{color:#1d8a5e}
.is-now .tl__when span{display:inline-block;padding:.3125rem .75rem;border-radius:var(--r-pill);background:var(--berry-soft);color:var(--berry);font-weight:600}
@media (max-width:520px){.timeline li{grid-template-columns:2.75rem 1fr}.tl__when{grid-column:2;text-align:left}}
.ordercard{padding:1.5rem;display:grid;gap:1.125rem;align-content:start;align-self:start}
.ordercard__img{width:100%;aspect-ratio:682/364;border-radius:1.375rem;border:1.5px solid var(--ink);object-fit:cover;background:linear-gradient(135deg,var(--berry-soft),var(--butter))}
.ordercard__title{display:flex;justify-content:space-between;align-items:center;gap:.75rem}
.ordercard__title strong{font-size:clamp(1.25rem,calc(2.2vw*var(--ui-scale,1)),1.625rem);font-weight:600;letter-spacing:-.01em}
.ordercard__title small{display:block;color:var(--muted);font-size:.9375rem;margin-top:.25rem}
.info{display:flex;gap:1rem;align-items:center;padding:1rem 1.125rem;background:#fff;border:1.5px solid var(--line);border-radius:1.25rem}
.info__ico{width:3rem;height:3rem;border-radius:.875rem;display:grid;place-items:center;background:var(--butter);flex:none}
.info__ico--mint{background:var(--mint-soft);color:#1d8a5e}
.info small{display:block;color:var(--muted);font-size:.875rem}
.info strong{font-weight:600;font-size:1.0625rem;overflow-wrap:anywhere}
.lookup{display:flex;gap:.625rem;flex-wrap:wrap;margin-top:1.25rem}
.lookup .input{flex:1;min-width:12.5rem}

/* toast */
.toast{position:fixed;left:50%;bottom:1.5rem;transform:translate(-50%,1.25rem);max-width:min(92vw,32.5rem);padding:.875rem 1.25rem;border-radius:1.125rem;background:var(--ink);color:#fff;
  font-weight:500;box-shadow:0 .625rem 1.875rem rgba(43,35,80,.3);opacity:0;pointer-events:none;transition:.25s;z-index:100;text-align:center}
.toast.show{opacity:1;transform:translate(-50%,0)}

@media (prefers-reduced-motion:reduce){*{animation:none !important;transition:none !important;scroll-behavior:auto !important}}
