/* The start flow (js/flow.mjs, js/start.mjs): one modal dialog, the same on every page of the site (the film's page,
   index.html, and the pages beside it, the repository's src/layouts/Page.astro), so this sheet sets on the dialog all
   it needs: colours, sizes, type (every page loads the faces: assets/fonts/fonts.css). A centred card on wide screens,
   the whole window on phones; the page behind is dimmed and does not scroll (.start-open, set while it is open). The
   film's closing uses the flow's choices, "not sure" and price too (style.css sets their sizes there).
   The brand's values, each as the standard has it (bonafide-brand, copied in the repository's src/brand/tokens.css,
   whose unit test holds every one here equal to it); --line is the site's own hairline, as in style.css. */
.start-open{overflow:hidden}
.start-dialog{--ink:#1C1B18;--muted:#62615C;--exception:#A3341F;--font-text:'Space Grotesk', Arial, sans-serif;--weight-regular:400;--weight-medium:500;--type-body-size:14px;--type-small-size:12px}
.start-dialog{--line:#dfdfda;--choice-h:48px;--field-gap:12px;--block-gap:20px;box-sizing:border-box;width:min(560px,calc(100% - 48px));max-width:none;max-height:calc(100% - 48px);margin:auto;padding:0;border:0;border-radius:3px;background:#fff;color:var(--ink);font:16px/1.55 var(--font-text);font-synthesis:none;box-shadow:0 18px 60px #1c1b1826,0 2px 8px #1c1b180d;overflow:hidden}
.start-dialog[open]{display:flex;flex-direction:column;animation:start-in .2s ease-out}
.start-dialog::backdrop{background:#1c1b1873;animation:start-dim .2s ease-out}
@keyframes start-in{from{opacity:0;transform:translateY(8px)}}
@keyframes start-dim{from{opacity:0}}
/* the dialog's own resets, with no weight of their own (:where), so every rule below wins over them */
:where(.start-dialog) *{box-sizing:border-box}:where(.start-dialog) button{font:inherit;cursor:pointer}:where(.start-dialog) :is(h2,p){margin:0}
.start-dialog a:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
/* the close button: a visible ×, 44 px to touch, over the flow's top right corner */
.start-close{position:absolute;z-index:1;top:8px;right:8px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:3px;background:#fff;color:var(--ink)}
.start-close:hover{background:#f4f2ed}.start-close:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
/* the flow scrolls inside the dialog where the window is short; a new screen opens at its top (js/flow.mjs) */
.start-dialog .flow{display:grid;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:44px 44px 40px}
.start-dialog .flow-title{padding-right:28px;font:var(--weight-medium) 32px/1.1 var(--font-text);letter-spacing:-.045em;text-wrap:balance}
.start-dialog .body-copy{max-width:none;margin-top:12px;color:var(--muted);font-size:16px;line-height:1.55}
.start-dialog [data-done-body]{color:var(--ink)}
/* phones, upright or sideways: the whole window, the fields in one column */
@media (max-width:600px),(max-height:500px){
  .start-dialog{width:100%;height:100%;max-height:none;margin:0;border-radius:0;box-shadow:none}
  .start-dialog .flow{flex:1;padding:56px 22px 28px}
  .start-dialog .flow-title{font-size:27px}
  .start-dialog .flow-fields{grid-template-columns:minmax(0,1fr)}
}

/* four screens stacked in one box, the box the tallest of them, so nothing moves when the screen changes; one shows.
   The leaving screen fades out, then the new one in: under 200 ms, none with reduced motion */
.flow-screen{grid-area:1/1;align-self:start;min-width:0;transition:opacity .11s .08s}
.flow-screen:not(.is-current){visibility:hidden;opacity:0;transition:opacity .08s,visibility 0s .08s}
.flow-title:focus{outline:none}
.flow-choices{display:grid;gap:8px;margin-top:var(--block-gap)}.flow-pair{grid-template-columns:1fr 1fr}
.flow-choice{display:flex;align-items:center;gap:12px;min-height:var(--choice-h);padding:6px 16px;border:1px solid #1c1b1838;border-radius:3px;background:#fff;color:var(--ink);font-size:15px;font-weight:var(--weight-medium);line-height:1.25;text-align:left}
.flow-choice-label{flex:1}.flow-choice svg{flex-shrink:0;color:#8d8c86;transition:transform .2s}.flow-choice:hover{border-color:var(--ink)}.flow-choice:hover svg{transform:translateX(3px);color:var(--ink)}
.flow-choice[aria-current=true]{background:var(--ink);border-color:var(--ink);color:#fff}.flow-choice[aria-current=true] svg{color:#d6d5cf}.flow-choice[aria-current=true] .flow-proof{color:inherit}
.flow-optional,.flow-proof{color:var(--muted);font-weight:var(--weight-regular)}.flow-proof{font-size:var(--type-small-size);white-space:nowrap}
.flow-explore{position:relative;display:inline-flex;align-items:center;min-height:40px;margin-top:6px;padding:0;border:0;background:none;color:var(--muted);font-size:13px;text-decoration:underline;text-decoration-color:#c9c8c1;text-underline-offset:4px}.flow-explore:before{content:'';position:absolute;inset:-2px -6px}.flow-explore:hover{color:var(--ink)}
.flow-back{position:relative;display:inline-flex;align-items:center;gap:7px;height:24px;margin:0 0 10px;padding:0;border:0;background:none;color:var(--muted);font-size:var(--type-small-size)}.flow-back:before{content:'';position:absolute;inset:-6px -12px -14px}.flow-back:hover{color:var(--ink)}
.flow-choice:focus-visible,.flow-go:focus-visible,.flow-back:focus-visible,.flow-explore:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
/* the price, at the foot of the goal screen (and of the film's closing): under a hairline in the flow's border colour,
   after "not sure"; the note ends with the link to the price in full (44 px to touch, mostly below) */
.flow-price{margin-top:var(--block-gap);padding-top:12px;border-top:1px solid #1c1b1838}
.flow-price-line{font-size:15px;font-weight:var(--weight-medium);line-height:1.35}.flow-price-note{margin-top:2px;font-size:13px;line-height:1.4;color:var(--muted)}
.flow-price-note a{position:relative;color:var(--ink);text-underline-offset:3px;white-space:nowrap}.flow-price-note a:before{content:'';position:absolute;inset:-14px -4px -12px}
.flow-which{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;margin-top:var(--block-gap);visibility:hidden}.flow-which.is-asked{visibility:visible}
.flow-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--field-gap) 14px;margin-top:var(--block-gap)}
.flow-field{min-width:0}.flow-label{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:5px;font-size:var(--type-small-size);line-height:16px}.flow-label label{white-space:nowrap}.flow-error{min-width:0;color:var(--exception);text-align:right}
.flow-input{display:block;width:100%;height:44px;padding:0 12px;border:1px solid #1c1b1838;border-radius:3px;background:#fff;color:var(--ink);font:16px/1.2 var(--font-text);-webkit-appearance:none;appearance:none}.flow-input:hover{border-color:#1c1b1870}.flow-input:focus{outline:2px solid var(--ink);outline-offset:-1px;border-color:var(--ink)}.flow-input[aria-invalid=true]{border-color:var(--exception)}
.flow-honey{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.flow-quote{margin:16px 0 0;padding-left:14px;border-left:2px solid var(--line)}.flow-quote blockquote{margin:0}.flow-quote p{font:var(--weight-medium) 15px/1.4 var(--font-text);letter-spacing:-.02em}.flow-quote figcaption{margin-top:4px;font-size:var(--type-small-size);color:var(--muted)}
/* the bot check takes no room until Cloudflare shows it (js/flow.mjs marks it from the first challenge until a fresh
   start), then sits a field's gap below the fields; the send row keeps its own gap below it */
.flow-check.is-shown{margin-top:var(--field-gap)}
.flow-send{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;margin-top:var(--block-gap)}
.flow-go{display:inline-flex;align-items:center;gap:14px;height:44px;padding:0 17px;border:0;border-radius:3px;background:var(--ink);color:#fff;font-size:var(--type-body-size);font-weight:var(--weight-medium);white-space:nowrap}.flow-go svg{transition:transform .2s}.flow-go:hover{background:#393832}.flow-go:hover svg{transform:translateX(3px)}
.flow-foot{display:grid;flex:1 1 180px;min-width:0}.flow-foot>*{grid-area:1/1}.flow-note,.flow-alert{font-size:var(--type-small-size);line-height:1.45;color:var(--muted)}.flow-note a,.flow-alert a{position:relative;color:inherit}.flow-note a:before,.flow-alert a:before{content:'';position:absolute;inset:-8px -4px -22px}/* 44 px to touch, mostly below: above is the button */
.flow-alert:focus{outline:none}.flow-details[aria-busy=true] .flow-input{color:var(--muted)}[aria-disabled=true].flow-go{opacity:.55;cursor:progress}[aria-disabled=true].flow-back{opacity:.4;cursor:default}.flow-alert{visibility:hidden;color:var(--exception)}
.flow-details.is-failed .flow-alert{visibility:visible}.flow-details.is-failed .flow-note{visibility:hidden}
.flow-sign{margin-top:22px;font-size:var(--type-body-size)}
@media(prefers-reduced-motion:reduce){.flow-screen,.flow-screen:not(.is-current),.flow-choice svg,.flow-go svg{transition:none}.start-dialog[open],.start-dialog::backdrop{animation:none}}
