/* Start (PLAN-SITE A9): one screen of form over the homepage's Closing frame (the table cleared in the middle), then
   the rise, the colour shift and the credits. On kit/v3e/site.css (flow panels .fl, the reading glass, the form .fm,
   chips, the Closing, the credits); this file adds the composition, the steps, the phone field and the thank-you.
   Prefix st-. Motion: transform and opacity only, the kit's curves; the steps move in start.js (WAAPI). */

.st-page { --st-err: var(--gold, #f2c27a); --st-chosen: rgba(102, 45, 145, 0.34); }

/* ============================================================ the composition: words left, the table's middle in
   between, the form right (desktop); the table a band at the top, then the words and the form (phone) */
.st-sec { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; box-sizing: border-box; padding: calc(var(--nav-h, 72px) + 12px) var(--g-m, max(48px, 5vw)) 28px; }
.st-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; grid-template-rows: auto 1fr auto; min-height: calc(100svh - var(--nav-h, 72px) - 40px); }
.st-head { grid-column: 1 / span 4; grid-row: 1; margin-top: max(0px, calc(var(--z-title-top, 16vh) - var(--nav-h, 72px) - 12px)); width: auto; }
.st-head .xp__h1 { font-size: clamp(34px, 3.5vw, 60px); }
.st-head .xp__body { font-size: 15.5px; }
.st-head .xp__t { max-width: 11ch; }
.st-head .xp__body { max-width: 40ch; }
.st-talk { grid-column: 1 / span 4; grid-row: 3; align-self: end; width: auto; gap: 6px; padding-top: 16px; padding-bottom: 16px; }
.st-talk__line { margin: 0; font: 400 15px/1.5 var(--font-body); color: rgba(236, 233, 241, 0.92); max-width: 40ch; }
/* the four contacts two by two, as in the menu (W1 review D8) */
.st-talk__cts { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); }
.st-talk__cts .fz-ct { width: 100%; }
.st-talk__line a { color: var(--signal); text-decoration-color: var(--filament); text-underline-offset: 3px; white-space: nowrap; }
.st-panel { grid-column: 8 / span 5; grid-row: 1 / span 3; align-self: center; width: auto; padding: 26px 28px 22px; scroll-margin-top: calc(var(--nav-h, 72px) + 16px); }
@media (max-width: 1180px) and (min-width: 761px) { .st-head, .st-talk { grid-column: 1 / span 5; } .st-panel { grid-column: 7 / span 6; } }

/* ============================================================ the steps */
.st-form { gap: 18px; }
/* grid items never grow past their panel (an fr track under a min-content constraint takes its items' max-content) */
.st-panel > *, .st-form > *, .st-step > *, #st-services > li, .st-reach > * { min-width: 0; }
.st-progress { display: flex; gap: 6px 18px; flex-wrap: wrap; margin: 0; padding: 0 0 12px; list-style: none; border-bottom: 1px solid rgba(236, 233, 241, 0.1); font-size: 10px; letter-spacing: 0.14em; color: rgba(236, 233, 241, 0.6); }
.st-progress li { display: inline-flex; gap: 8px; align-items: baseline; transition: color 180ms ease; }
.st-progress li.is-now { color: var(--signal); }
.st-progress li.is-now span:first-child, .st-progress li.is-done span:first-child { color: var(--filament); }
.st-step { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 14px; }
.st-step__head { padding: 0; display: grid; gap: 6px; }
.st-step__n { font-size: 10.5px; letter-spacing: 0.16em; color: var(--filament); }
.st-step__q { font: 600 clamp(22px, 2vw, 30px)/1 var(--font-title); font-stretch: 88%; letter-spacing: -0.03em; text-transform: uppercase; }
.st-step__head .fz-form__req { justify-self: start; }
.fz-form__req { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; vertical-align: 0.15em; }
/* the eight disciplines and "Not sure yet": two columns of chips (each name whole on one or two lines) */
#st-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#st-services .fz-form__chip, #st-services .fz-form__chip span { width: 100%; box-sizing: border-box; }
#st-services .fz-form__chip span { min-height: 46px; padding: 8px 16px; border-radius: 14px; line-height: 1.2; }
#st-services .fz-form__chip { border-radius: 14px; }
.st-chips__unsure { grid-column: 1 / -1; }
.st-chips__unsure .fz-form__chip span { border-style: dashed; }
.st-chips .fz-form__chip input:checked + span { background: var(--signal); color: var(--void); }
.st-reach { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 10px; }
.st-sublabel { font-size: 14px; color: rgba(236, 233, 241, 0.86); }
.st-actions { justify-content: flex-start; margin-top: 4px; }
.st-actions .st-back { order: -1; }
.st-page .fz-btn { transition: transform 120ms var(--ease-out), background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out); }
.st-page .fz-btn:active { transform: scale(0.97); }
.st-count { margin: 0; font-size: 10px; letter-spacing: 0.1em; color: var(--dim); min-height: 0; }
.st-consent { margin: 0; font: 400 13px/1.55 var(--font-body); color: rgba(236, 233, 241, 0.76); max-width: 56ch; }
.st-consent a { color: var(--signal); text-underline-offset: 3px; }
.st-proto { margin: 0; font-size: 10px; letter-spacing: 0.14em; color: var(--gold); }
.st-sum h2 { margin: 0; }
.fz-form__field.is-error > .fz-form__input, .fz-form__field.is-error .st-phone { border-color: rgba(242, 194, 122, 0.75); }
/* a script and motion take the steps one at a time: before the script has run, only the first shows */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  html:not(.st-stepped) .st-step:not(#st-step-1) { display: none; }
}

/* ---- the suggestions under email and company (Phase P) */
.st-suggest { margin: 0; font: 400 13.5px/1.4 var(--font-body); color: rgba(236, 233, 241, 0.78); }
.st-suggest:empty { display: none; }
.st-suggest button { min-height: 32px; padding: 0 2px; border: 0; background: none; color: var(--signal); font: inherit; text-decoration: underline; text-decoration-color: var(--filament); text-underline-offset: 3px; cursor: pointer; }

/* ---- the phone field: the country button and the number in one control (phone.js) */
.st-phone { display: flex; align-items: stretch; min-width: 0; min-height: 50px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(236, 233, 241, 0.04); transition: border-color 180ms var(--ease-out); }
.st-phone:focus-within { border-color: var(--filament); }
.st-phone .fz-form__input { min-height: 48px; border: 0; background: transparent; border-radius: 0 12px 12px 0; }
.st-phone .fz-form__input:focus-visible { outline: none; }
.st-phone:has(.fz-form__input:focus-visible) { outline: 2px solid var(--filament); outline-offset: 2px; }
.st-cc-btn { appearance: none; display: inline-flex; align-items: center; gap: 10px; flex: none; padding: 0 12px 0 14px; border: 0; border-right: 1px solid var(--line); border-radius: 12px 0 0 12px; background: transparent; color: var(--signal); font: 400 16px/1 var(--font-body); cursor: pointer; }
.st-cc-btn:focus-visible { outline: 2px solid var(--filament); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .st-cc-btn:hover { background: var(--wash); } }
.st-cc-btn__chev { width: 8px; height: 8px; margin-top: -4px; border-right: 1.5px solid var(--dim); border-bottom: 1.5px solid var(--dim); transform: rotate(45deg); }
.st-flag { width: 24px; height: 16px; flex: none; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(236, 233, 241, 0.16); background: #1d1924; }
/* the country list: a modal dialog, a card under the field on a desktop, a sheet on a phone (phone.js) */
dialog.st-cc { position: fixed; margin: 0; padding: 0; width: 380px; max-width: calc(100vw - 32px); max-height: 460px; display: none; flex-direction: column; overflow: hidden; overscroll-behavior: contain; border: 1px solid var(--line-strong); border-radius: var(--r-m); background: #15121b; color: var(--signal); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); }
dialog.st-cc[open] { display: flex; }
dialog.st-cc::backdrop { background: rgba(7, 6, 10, 0.35); }
@media (prefers-reduced-motion: no-preference) { dialog.st-cc[open] { animation: st-pop 200ms var(--ease-out); } }
@keyframes st-pop { from { opacity: 0; transform: translateY(-6px) scale(0.985); } to { opacity: 1; transform: none; } }
.st-cc__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 0 16px; }
.st-cc__title { color: var(--dim); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0; }
.st-cc__close { appearance: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--signal); cursor: pointer; }
.st-cc__close span::before, .st-cc__close span::after { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; height: 1px; background: currentColor; }
.st-cc__close span::before { transform: rotate(45deg); }
.st-cc__close span::after { transform: rotate(-45deg); }
.st-cc__search { padding: 6px 12px 10px; border-bottom: 1px solid var(--line); }
.st-cc__q { width: 100%; height: 48px; box-sizing: border-box; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--void); color: var(--signal); font: 400 16px var(--font-body); }
.st-cc__q:focus { outline: none; border-color: var(--filament); }
.st-cc__q::placeholder { color: var(--dim); opacity: 1; }
.st-cc__list { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 6px; }
.st-cc__group { padding: 12px 10px 6px; color: var(--dim); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.st-cc__opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 44px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.st-cc__opt.is-active { background: rgba(236, 233, 241, 0.08); }
.st-cc__opt[aria-selected="true"] { background: var(--st-chosen); }
.st-cc__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-cc__dial { color: var(--dim); font-variant-numeric: tabular-nums; }
.st-cc__empty { padding: 18px 16px 22px; color: var(--dim); font-size: 15px; }

/* ============================================================ the thank-you */
.st-done { display: grid; gap: 14px; }
.st-done__t { margin: 0; font: 600 clamp(26px, 2.4vw, 38px)/1 var(--font-title); font-stretch: 88%; letter-spacing: -0.03em; text-transform: uppercase; }
.st-done__copy { margin: 0; font: 400 16px/1.5 var(--font-body); color: rgba(236, 233, 241, 0.9); }
.st-done__next { margin: 4px 0 0; font-size: 10.5px; letter-spacing: 0.14em; color: var(--filament); }
.st-done__steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.st-done__steps li { display: grid; grid-template-columns: 2.4em 1fr; column-gap: 8px; font: 400 15px/1.45 var(--font-body); color: rgba(236, 233, 241, 0.88); }
.st-done__steps li > .fz-mono { grid-row: 1 / 3; font-size: 10.5px; letter-spacing: 0.1em; color: var(--filament); padding-top: 3px; }
.st-done__steps b { font-weight: 600; color: var(--signal); }
.st-json summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 10.5px; letter-spacing: 0.14em; color: var(--filament); }
.st-json__line, .st-json__k { margin: 6px 0; font-size: 10.5px; letter-spacing: 0.1em; color: var(--dim); }
.st-json pre { margin: 0; max-height: 280px; overflow: auto; padding: 14px; border-radius: 10px; background: #0b0910; font: 400 12px/1.5 var(--font-mono); color: rgba(236, 233, 241, 0.86); white-space: pre-wrap; word-break: break-word; }
.st-json__mails { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font: 400 15px/1.45 var(--font-body); }
.st-json__mails a { color: var(--signal); text-underline-offset: 3px; }
.st-again { min-height: 44px; padding: 0; border: 0; background: none; color: var(--signal); font: 500 15px/1.2 var(--font-body); text-decoration: underline; text-decoration-color: var(--filament); text-underline-offset: 4px; cursor: pointer; }

/* ============================================================ phones: the table a band at the top, then the words,
   then the form (Send in the thumb's zone), then "Rather talk?" */
@media (max-width: 760px), (max-aspect-ratio: 9/10) {
  .st-sec { padding: calc(var(--nav-h, 60px) + 16px) 20px 24px; }
  .st-grid { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
  .st-head { order: 1; } .st-panel { order: 2; } .st-talk { order: 3; }
  .st-progress { display: none; }
  .st-head .xp__body { font-size: 15px; }
  .st-talk__line { font-size: 14.5px; }
  .st-head { margin-top: 0; }
  .st-head .xp__h1 { font-size: clamp(34px, 9.4vw, 46px); gap: 10px; }
  .st-panel { padding: 20px 18px 18px; }
  .st-talk { padding: 14px 18px; }
  #st-services { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #st-services .fz-form__chip span { font-size: 14px; padding: 8px 12px; }
  .st-actions { position: sticky; bottom: 0; z-index: 2; margin: 0 -18px -18px; padding: 12px 18px max(12px, env(safe-area-inset-bottom, 0px)); background: linear-gradient(rgba(14, 10, 22, 0), rgba(14, 10, 22, 0.94) 30%); border-radius: 0 0 16px 16px; }
  .st-actions .st-next, .st-actions .st-send { flex: 1 1 auto; }
  dialog.st-cc { left: 8px; right: 8px; top: max(8px, env(safe-area-inset-top, 0px)); width: auto; max-width: none; max-height: min(620px, calc(100dvh - 16px)); border-radius: var(--r-l); }
}

/* ============================================================ reduced motion: the steps one under another, still */
html.v3-reduced .st-step + .st-step { padding-top: 22px; border-top: 1px solid rgba(236, 233, 241, 0.1); }
html.v3-reduced .st-progress li { color: rgba(236, 233, 241, 0.72); }
html.v3-reduced .st-sec { min-height: 0; }
html.v3-reduced .st-panel { align-self: start; }
/* (PORT-SITE, check_contrast) a phone: the credits rise early on this short page, and the name's panel crosses the
   horizon's glow (2.86:1 for the 26 px "Fezey Media" on the tint-only panel); that one panel is a shade deeper */
@media (max-width: 899px) { .st-page .cr__id { --gl-tint: rgba(14, 10, 22, 0.62); } }
