/* site\assets\css\pages\contact.css: the Contact page (plan.md, Contact). Tokens from design\system.css only (the form's
   errors take --c-alert, 5.2:1 on white); the form is the kit's, in this site's look (design\components.md, the form box).
   Under 900 px the header's words stand on the navy above the photo, whose band carries the message cards over its foot
   (Lessons: half of a card sequence or more on its photo). */

/* ---------- 1. the header: a short band, his message and our answer over the window, the words at its lower left ---------- */
.ct-hero { padding: 0 12px; }
.ct-hero__frame { position: relative; display: flex; align-items: flex-end; height: clamp(460px, 50vh, 560px); border-radius: var(--radius-l); overflow: hidden; isolation: isolate; background: var(--c-navy); }
.ct-hero__media { position: absolute; inset: 0; z-index: -1; }
.ct-hero__img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 45%; }
.ct-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--c-shade) / .86) 0%, rgb(var(--c-shade) / .7) 28%, rgb(var(--c-shade) / .2) 46%, rgb(var(--c-shade) / 0) 54%), linear-gradient(0deg, rgb(var(--c-shade) / .55) 0%, rgb(var(--c-shade) / 0) 46%); }
.ct-hero__copy { position: relative; z-index: 1; width: min(520px, 44%); margin-left: max(var(--gutter), calc((100% - var(--max-w)) / 2)); padding: 0 0 clamp(40px, 5vw, 64px); color: var(--c-on-brand); }
.ct-hero__copy h1 { font-size: var(--fs-h1); color: var(--c-on-brand); }
.ct-hero__line { margin-top: 14px; max-width: 460px; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.5; color: var(--c-on-brand); }
/* the two cards, solid white, over the window and the truck (the right third holds no face) */
/* the hold keeps its first item, the day tag, on through the turn: at the loop the whole exchange (the question, its tick, the reply) fades out as one, never the reply alone */
.ct-thread { position: absolute; z-index: 2; top: 32px; right: clamp(16px, 4vw, 72px); width: min(340px, 33%); display: grid; gap: 12px; }
.ct-thread__day { justify-self: start; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: rgb(var(--c-shade) / .8); color: var(--c-on-brand); font-family: var(--font-ui); font-size: 13px; font-weight: 600; line-height: 1; }
.ct-card { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--radius-m); background: var(--c-paper); box-shadow: var(--shadow-l); box-sizing: border-box; }
.ct-thread [data-kit-at] { opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); }
.ct-card__label { font-family: var(--font-ui); font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--c-brand-text); }
.ct-card__text { margin: 0; font-size: 15px; line-height: 1.45; color: var(--c-ink); text-wrap: pretty; }
.ct-card--me .ct-card__text { font-weight: 600; }
.ct-card__sent { display: flex; align-items: center; gap: 6px; padding-top: 8px; border-top: 1px solid var(--c-line); font-family: var(--font-ui); font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--c-ink-soft); }
.ct-card__sent svg { flex: none; color: var(--c-brand); }
.ct-card--team { background: var(--c-paper); border-left: 4px solid var(--c-brand); }
.ct-card__who { display: flex; align-items: center; gap: 6px; font-family: var(--font-ui); font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--c-brand-text); }
.ct-card__who img { width: 18px; height: 18px; }
.ct-hero__stop { top: 16px; right: 16px; }
/* the phone and the tablet: the words on the navy first, then the photo as a band with the cards over its foot */
@media (max-width: 899px) {
  .ct-hero__frame { --band: 430px; --top: 250px; display: flex; flex-direction: column; align-items: stretch; height: auto; }
  .ct-hero__copy { width: auto; margin: 0; padding: 30px 22px 26px; }
  .ct-hero__media { position: relative; inset: auto; z-index: 0; padding: var(--top) 0 16px; }
  .ct-hero__img { inset: 0 -1px auto -1px; width: calc(100% + 2px); height: var(--band); object-position: 61% 50%; }
  .ct-hero__shade { height: var(--band); background: linear-gradient(180deg, rgb(var(--c-shade) / .35) 0, rgb(var(--c-shade) / 0) 70px), linear-gradient(0deg, var(--c-navy) 0, rgb(var(--c-shade) / 0) 26%); }
  .ct-thread { position: relative; top: auto; right: auto; width: min(400px, calc(100% - 32px)); margin: 0 auto; }
  .ct-hero__stop { top: calc(var(--top) - 56px); right: 16px; }
}

/* ---------- 2. the form: its markers beside it, the card rising over the header's lower edge ---------- */
.ct-form { position: relative; z-index: 2; padding: 0 0 var(--section-y); }
.ct-form__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); align-items: start; gap: 40px clamp(32px, 5vw, 80px); }
.ct-form__side { padding-top: clamp(48px, 5vw, 72px); }
.ct-form__side h2 { font-size: var(--fs-h2); }
.ct-form__line { margin-top: 14px; max-width: 420px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); line-height: 1.55; color: var(--c-ink-soft); }
.ct-marks { display: grid; gap: 4px; margin: 32px 0 0; padding: 0; list-style: none; }
.ct-mark { display: flex; align-items: center; gap: 14px; padding: 8px 0; font-family: var(--font-ui); font-size: 16px; font-weight: 600; color: var(--c-ink-soft); }
.ct-mark__n { position: relative; display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 1.5px solid var(--c-line); border-radius: 50%; background: var(--c-paper); color: var(--c-ink-soft); font-size: 14px; font-weight: 700; box-sizing: border-box; }
.ct-mark__n svg { display: none; }
.ct-mark[aria-current="step"] { color: var(--c-ink); }
.ct-mark[aria-current="step"] .ct-mark__n { border-color: var(--c-brand-dark); background: var(--c-brand-dark); color: var(--c-on-brand); }
.ct-mark[data-kit-past] { color: var(--c-ink); }
.ct-mark[data-kit-past] .ct-mark__n { border-color: var(--c-brand-light); background: var(--c-brand-light); color: var(--c-brand-dark); }
.ct-mark[data-kit-past] .ct-mark__n b { display: none; }
.ct-mark[data-kit-past] .ct-mark__n svg { display: block; }
.ct-form__card { margin-top: -96px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--c-line); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-l); }
.ct-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.ct-step:focus { outline: none; }
.ct-step__q { margin: 0 0 20px; padding: 0; font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--c-ink); }
.ct-step__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.ct-step__nav .button { margin-left: auto; }
.ct-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--c-brand-text); font: 600 15px/1 var(--font-ui); cursor: pointer; }
.ct-back:hover { text-decoration: underline; }
.ct-back:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; border-radius: 8px; }
.ct-form[data-kit-sending] .ct-send, .ct-form__in[data-kit-sending] .ct-send { opacity: .7; pointer-events: none; }
/* the three choices, each with its small picture */
.ct-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ct-choice { position: relative; display: grid; align-content: start; gap: 10px; padding: 10px 10px 14px; border: 1.5px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); cursor: pointer; }
.ct-choice input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.ct-choice:hover { border-color: var(--c-brand); }
.ct-choice:has(input:focus-visible) { outline: 3px solid var(--c-brand); outline-offset: 2px; }
.ct-choice[data-kit-on] { border-color: var(--c-brand-dark); background: var(--c-brand-light); box-shadow: inset 0 0 0 1px var(--c-brand-dark); }
.ct-choice__name { padding: 0 4px; font-family: var(--font-ui); font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--c-ink); }
.ct-pic { display: block; border-radius: 12px; background: var(--c-brand-light); }
.ct-choice[data-kit-on] .ct-pic { background: var(--c-paper); }
.ct-pic svg { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; }
.ct-pic__card { fill: var(--c-paper); stroke: var(--c-line); stroke-width: 1.5; }
.ct-choice[data-kit-on] .ct-pic__card { stroke: var(--c-brand); }
.ct-pic__stamp { fill: var(--c-brand); }
.ct-pic__tick { fill: none; stroke: var(--c-paper); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ct-pic__q { fill: none; stroke: var(--c-brand); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.ct-pic__fold { fill: var(--c-brand-light); stroke: var(--c-line); stroke-width: 1.5; stroke-linejoin: round; }
.ct-pic__ln { fill: var(--c-brand-dark); }
.ct-pic__ln2 { fill: var(--c-line); }
.ct-choices .ct-error { grid-column: 1 / -1; }
/* the fields */
.ct-field + .ct-field { margin-top: 18px; }
.ct-field label { display: block; margin-bottom: 8px; font-family: var(--font-ui); font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--c-ink); }
.ct-field__opt { font-weight: 400; color: var(--c-ink-soft); }
.ct-field input, .ct-field textarea { display: block; width: 100%; padding: 0 16px; border: 1.5px solid color-mix(in srgb, var(--c-ink) 22%, transparent); border-radius: 14px; background: var(--c-paper); color: var(--c-ink); font: 400 16px/1.4 var(--font-ui); box-sizing: border-box; }
.ct-field input { height: 52px; }
.ct-field textarea { min-height: 148px; padding-top: 13px; padding-bottom: 13px; resize: vertical; }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: var(--c-ink-soft); opacity: 1; }
.ct-field input:focus, .ct-field textarea:focus { border-color: var(--c-brand); outline: 3px solid color-mix(in srgb, var(--c-brand) 26%, transparent); outline-offset: 0; }
.ct-field[data-kit-invalid] input, .ct-field[data-kit-invalid] textarea, .ct-field input[aria-invalid="true"], .ct-field textarea[aria-invalid="true"] { border-color: var(--c-alert); }
.ct-error { margin: 8px 0 0; font-family: var(--font-ui); font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--c-alert); }
@media (max-width: 899px) {
  .ct-form { padding-top: 40px; }
  .ct-form__in { grid-template-columns: minmax(0, 1fr); }
  .ct-form__side { padding-top: 0; }
  .ct-marks { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
  .ct-mark { flex-direction: column; align-items: flex-start; gap: 8px; padding: 0; font-size: 13px; line-height: 1.3; }
  .ct-form__card { margin-top: 0; }
}
@media (max-width: 559px) {
  .ct-choices { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ct-choice { grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 14px; padding: 8px 12px 8px 8px; }
  .ct-choice__name { padding: 0; }
  .ct-form__card { padding: 22px 16px 20px; }
}

/* ---------- 3. the quicker way: the plan builds itself, on the designed ground ---------- */
.ct-skip__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; justify-items: center; }
.ct-skip__copy { max-width: 560px; text-align: center; }
.ct-skip__copy h2 { font-size: var(--fs-h2); }
.ct-skip__copy > p { margin: 16px auto 28px; max-width: 460px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); line-height: 1.55; color: var(--c-ink-soft); }
.ct-skip__cta { justify-content: center; margin-top: 0; }
.ct-skip__stage { position: relative; width: min(100%, 680px); }
.scene.ct-skip__scene { width: 100%; height: 560px; }
.ct-skip__stop { top: -56px; right: 0; }
/* from 1180 px the words beside the scene, the scene 640 wide (it lays out by its own width from 600 px) */
@media (min-width: 1180px) {
  .ct-skip__in { grid-template-columns: minmax(0, 1fr) 640px; align-items: center; justify-items: stretch; gap: clamp(40px, 5vw, 80px); }
  .ct-skip__copy { text-align: left; }
  .ct-skip__copy > p { margin-left: 0; }
  .ct-skip__cta { justify-content: flex-start; }
  .ct-skip__stage { width: 640px; }
}
/* under 680 px the box is under 600 wide: the scene's own narrow layout, 700 high */
@media (max-width: 679px) {
  .scene.ct-skip__scene { height: 700px; }
  /* the stop over the card's empty top-right corner, so it and the scene fit in one view */
  .ct-skip__stop { top: 12px; right: 12px; }
}
