/* /agenda and /pauta: the pitch and the demo form side by side (components/taste/BookingHero),
   and the form itself (components/taste/LeadForm, `.lead-form`). Linked from each page. */

/* ---------------------------------------------------------------- the booking hero
   The split hero's columns, with the form as the picture. The form is taller than one screen, so
   this hero grows to it (an exception to the one-screen hero, like the home's platform window):
   the words and the form start on the same line under the nav. */
main > .hero.booking { height: auto; min-height: 100svh; }
.booking > .wrap { height: auto; display: block; }
.booking .booking__grid { align-items: start; row-gap: 0; grid-template-rows: auto 1fr; }
.booking .booking__grid > .booking__pitch { grid-column: 1 / span 5; grid-row: 1; }
.booking .booking__grid > .booking__card { grid-column: 7 / span 6; grid-row: 1 / span 2; }
.booking .booking__grid > .booking__covers { grid-column: 1 / span 5; grid-row: 2; align-self: start; margin-top: var(--s-7); }
.booking__pitch h1 { margin: var(--s-5) 0 0; max-width: 16ch; }
.booking__pitch .hero__lead { margin: var(--s-5) 0 0; max-width: 44ch; color: var(--muted); }
.booking__m { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: -0.02em; }
.booking .hero__kicker { font-size: var(--t-small); }

/* what the meeting covers: a plain list with the accent's check */
.booking__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.booking__list li { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-body); font-weight: 500; }
.booking__list svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--p-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.booking--inverse .booking__list svg { stroke: #7fa4ff; }
.booking__foot { margin: var(--s-6) 0 0; font: 500 12px/1.5 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.booking__foot .booking__m { font-size: 1em; letter-spacing: inherit; }

/* the form card: the one lit surface, on the page's line (span-6 start-7) */
.booking__card {
  scroll-margin-top: calc(var(--nav) + var(--s-4));
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: var(--ink);
  box-shadow: 0 1px 2px rgb(10 18 40 / .04), 0 12px 32px -12px rgb(10 18 40 / .12);
  overflow: hidden;
}
.booking--inverse .booking__card { border-color: transparent; box-shadow: 0 24px 64px -24px rgb(0 0 0 / .5); }
.booking__card-title { margin: 0; padding: var(--s-5) var(--s-6); border-bottom: 1px solid var(--line); font: 500 18px/1.3 var(--font-text); letter-spacing: -0.02em; }
.booking__card .lead-form { padding: var(--s-6); }

@media (max-width: 1023px) {
  .booking .booking__grid { display: flex; flex-direction: column; align-items: stretch; }
  .booking__covers { margin-top: var(--s-7); }
  .booking__card { margin-top: var(--s-6); }
  .booking__pitch h1 { max-width: 20ch; }
}
@media (max-width: 639px) {
  .booking__card-title { padding: var(--s-4) var(--s-5); }
  .booking__card .lead-form { padding: var(--s-5); }
}

/* ---------------------------------------------------------------- the lead form
   Fields on the system's control height, one radius, labels above (system.css .field), the hint
   under the control so two fields in a row line up. */
.lead-form { --lf-err: #d63c3c; --lf-ctl: 48px; display: grid; gap: var(--s-5); }
.lead-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.lead-form__set, .lead-form__field { display: grid; gap: var(--s-2); align-content: start; }
.lead-form__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-2); padding: 0; font-size: 15px; font-weight: 500; color: var(--ink); }
.lead-form__set > legend.lead-form__label { margin-bottom: var(--s-2); }
.lead-form__opt { font: 500 10px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lead-form__hint { margin: 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.lead-form__set > .lead-form__hint { margin: calc(-1 * var(--s-2)) 0 var(--s-1); }
.lead-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }

.lead-form__control {
  width: 100%; height: var(--lf-ctl); padding: 0 var(--s-3);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; color: var(--ink);
  font: 400 16px/1.4 var(--font-text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.lead-form__control::placeholder { color: color-mix(in oklab, var(--muted) 75%, transparent); }
.lead-form__control:focus { outline: none; border-color: var(--p-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p-accent) 20%, transparent); }
.lead-form__control.is-err { border-color: var(--lf-err); }
.lead-form__phone { display: flex; gap: var(--s-2); }
.lead-form__dial { width: 124px; flex: none; font-family: var(--font-mono); font-size: 14px; }
.lead-form__tel { min-width: 0; flex: 1 1 auto; font-family: var(--font-mono); }

/* the choices: radio and checkbox labels as tiles */
.lead-form__choices { display: grid; gap: var(--s-2); }
.lead-form__choices--inline { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.lead-form__choices--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lead-form__choices--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lead-form__choice {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px var(--s-4);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; color: var(--muted);
  font-size: 14px; line-height: 1.3; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.lead-form__choices--inline .lead-form__choice { min-width: 96px; font-size: 15px; }
.lead-form__choice:hover { background: var(--p-surface); }
.lead-form__choice.is-on { border-color: var(--p-accent); background: color-mix(in srgb, var(--p-accent) 8%, #fff); color: var(--ink); }
.lead-form__choice:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--p-accent) 25%, transparent); }
.lead-form__choice--size { justify-content: center; padding-inline: var(--s-2); }
.lead-form__num { white-space: nowrap; font: 400 13px/1 var(--font-mono); }
.lead-form__radio, .lead-form__box { width: 16px; height: 16px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-strong); }
.lead-form__radio { border-radius: 50%; }
.lead-form__box { border-radius: 4px; }
.is-on > .lead-form__radio { border-color: var(--p-accent); }
.is-on > .lead-form__radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--p-accent); }
.is-on > .lead-form__box { border-color: var(--p-accent); background: var(--p-accent); }
.lead-form__box svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* errors: said under the field, the first one focused on submit */
.lead-form__error { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--lf-err); }
.lead-form__icon { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lead-form__failed { display: flex; gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid var(--lf-err); border-radius: var(--r-sm); background: color-mix(in srgb, var(--lf-err) 8%, #fff); }
.lead-form__failed .lead-form__icon { width: 20px; height: 20px; color: var(--lf-err); }
.lead-form__failed p { margin: 0; font-size: 14px; line-height: 1.5; }
.lead-form__failed b { font-weight: 500; }
.lead-form__failed span { color: var(--muted); }

/* the send row */
.lead-form__foot { display: grid; gap: 14px; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.lead-form__req { margin: 0; font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lead-form__submit { height: 52px; padding-inline: var(--s-6); gap: 10px; font-size: 16px; }
.lead-form__submit:disabled { cursor: not-allowed; opacity: .6; }
.lead-form__spin { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; animation: lf-spin 900ms linear infinite; }
@keyframes lf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lead-form__spin { animation: none; } .lead-form__control, .lead-form__choice { transition: none; } }
.lead-form__reassure { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

@media (max-width: 639px) {
  .lead-form__row, .lead-form__choices--two { grid-template-columns: minmax(0, 1fr); }
  .lead-form__choices--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-form__submit { width: 100%; }
  .lead-form .btn-row { width: 100%; }
}

/* ---------------------------------------------------------------- the 404 (app/(taste)/[locale]/not-found.tsx
   and app/global-not-found.tsx): one centred screen, the way back and the pages a lost visitor wanted */
.nf > .wrap > .hero-text { justify-content: center; }
.nf .hero__c { gap: var(--s-5); }
.nf__code { margin: 0; font: 500 13px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.nf h1 { margin: 0; max-width: 18ch; }
.nf .hero__lead { margin: 0; }
.nf .btn-row { margin-top: 0; }
.nf__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-6); margin-top: var(--s-4); max-width: 720px; }

/* the booking h1 at the legacy page's 48px: /pauta's 59-character headline in three lines */
.hero.booking .booking__pitch h1 { font-size: clamp(36px, 3.4vw, 48px); line-height: 1.06; }
@media (max-width: 639px) { .hero.booking .booking__pitch h1 { font-size: 32px; } }
