/* contact.css: the Contact page (plan.md, Contact). Places and sizes its parts with the tokens of system.css.
   Grounds (Tomer, 19 Nov): hero navy, form pale blue, skip white, faq blue-white; never two neighbors alike. */

/* ---------- 1. the header: the words on the navy band, a laptop on a kitchen counter with fastreply in glass ---------- */
.ct-hero { padding-block: clamp(48px, 7vw, 104px); }
.ct-hero__ring { width: 900px; height: 900px; left: -380px; bottom: -460px; }
.ct-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ct-hero__words { display: grid; gap: var(--space-4); max-width: 540px; }
.ct-hero__title { font-size: var(--fs-h1); color: var(--c-on-ink); }
.ct-hero__words .lead { font-size: 20px; line-height: 1.55; }
.ct-mail { color: var(--c-brand-on-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; overflow-wrap: anywhere; }
.ct-mail:hover { color: var(--c-on-ink); }
.ct-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ct-hero__note { background: transparent; color: var(--c-on-ink); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c-on-ink) 30%, transparent); }
.ct-hero__note:hover { box-shadow: inset 0 0 0 2px var(--c-brand-on-ink); color: var(--c-on-ink); }
.ct-hero__frame { width: min(600px, 100%); justify-self: end; aspect-ratio: 5 / 4; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.ct-hero__pic { position: absolute; inset: -18px; }
.ct-hero__pic img, .ct-hero__pic picture { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 30% 55%; }
/* the message thread sits on the bright wall, top right, leaving the laptop in view */
.ct-hero__scene { position: absolute; right: 20px; top: 20px; width: min(330px, 62%); }
.ct-hero__stop { position: absolute; left: 16px; bottom: 16px; z-index: 3; }
@media (max-width: 900px) {
  .ct-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .ct-hero__frame { justify-self: center; }
}
@media (max-width: 600px) {
  .ct-hero { padding-top: 36px; }
  .ct-hero__frame { aspect-ratio: 4 / 4.4; }
  .ct-hero__pic img { object-position: 24% 70%; }
  .ct-hero__scene { left: 12px; right: 12px; top: 12px; width: auto; }
  .ct-hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- 2. the form: three steps in a white petal box on the pale blue band ---------- */
.ct-box { position: relative; max-width: 780px; margin-inline: auto; padding: clamp(24px, 4vw, 48px); background: var(--c-paper); border-radius: var(--petal); box-shadow: 0 30px 70px -36px color-mix(in srgb, var(--c-ink) 45%, transparent); }
/* the step markers: small petals that fill as the steps pass */
.ct-marks { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: none; }
.ct-marks li { position: relative; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 3px solid var(--c-line); color: var(--c-ink-soft); font: 600 14px var(--font-ui); transition: border-color 0.4s var(--ease-out), color 0.4s var(--ease-out); }
.ct-marks__petal { flex: none; width: 26px; height: 26px; fill: transparent; stroke: var(--c-brand); stroke-width: 1.6; transition: fill 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.ct-marks__n { position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center; font: 700 11px var(--font-ui); color: var(--c-brand-text); padding-top: 5px; transition: color 0.4s var(--ease-out); }
.ct-marks li[aria-current="step"] { color: var(--c-ink); border-color: var(--c-brand); }
.ct-marks li[aria-current="step"] .ct-marks__petal { fill: var(--c-brand-light); transform: scale(1.12); }
.ct-marks li[data-kit-past] { color: var(--c-ink); border-color: var(--c-brand); }
.ct-marks li[data-kit-past] .ct-marks__petal { fill: var(--c-brand); }
.ct-marks li[data-kit-past] .ct-marks__n { color: var(--c-on-brand); }
.ct-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.ct-step__q { padding: 0; margin-bottom: var(--space-4); font: 700 clamp(22px, 2.2vw, 28px)/1.25 var(--font-display); letter-spacing: -0.01em; color: var(--c-ink); }
/* the choices: petal chips that answer the hover and the tap */
.ct-chips--want { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.ct-chip { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px 10px 10px; border: 1.5px solid var(--c-line); border-radius: 18px 5px 18px 5px; background: var(--c-paper); color: var(--c-ink); font: 600 16px var(--font-ui); cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out); }
.ct-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ct-chip svg { flex: none; width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--c-brand-light); color: var(--c-brand); transition: background 0.2s, color 0.2s; }
.ct-chip:hover { border-color: var(--c-brand); transform: translateY(-2px); box-shadow: var(--shadow-m); }
.ct-chip:has(input:focus-visible) { outline: 3px solid var(--c-brand); outline-offset: 2px; }
.ct-chip[data-kit-on] { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-on-brand); }
.ct-chip[data-kit-on] svg { background: color-mix(in srgb, var(--c-on-brand) 18%, transparent); color: var(--c-on-brand); }
.ct-chips .ct-error { grid-column: 1 / -1; }
/* how many: the same rising bars as the home page's picker, a step taller each */
.ct-chips--goal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: end; }
.ct-chip--num { flex-direction: column; justify-content: flex-end; gap: 0; min-height: calc(64px + var(--step) * 16px); padding: 10px 6px 12px; border-radius: 18px 5px 5px 5px; font: 700 22px/1 var(--font-display); color: var(--c-brand-text); }
.ct-chip__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-radius: inherit; background: var(--c-brand-light); transition: height 0.35s var(--ease-out); z-index: 0; }
.ct-chip--num span { position: relative; z-index: 1; }
.ct-chip--num:hover .ct-chip__bar { height: 100%; }
.ct-chip--num[data-kit-on] { color: var(--c-on-brand); }
.ct-chip--num[data-kit-on] .ct-chip__bar { height: 100%; background: var(--c-brand); }
/* the fields */
.ct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.ct-field { display: grid; gap: 6px; align-content: start; }
.ct-field--wide { grid-column: 1 / -1; }
.ct-step > .ct-field { margin-top: 16px; }
.ct-field label { font: 600 15px var(--font-ui); color: var(--c-ink); }
.ct-opt { font-weight: 500; color: var(--c-ink-soft); }
.ct-field input, .ct-field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--c-line); border-radius: 14px 4px 14px 4px; background: var(--c-paper); color: var(--c-ink); font: 400 16px/1.4 var(--font-text); transition: border-color 0.2s, box-shadow 0.2s; }
.ct-field textarea { resize: vertical; min-height: 112px; }
.ct-field input:hover, .ct-field textarea:hover { border-color: color-mix(in srgb, var(--c-brand) 55%, var(--c-line)); }
.ct-field input:focus, .ct-field textarea:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-brand) 18%, transparent); }
.ct-field [data-kit-invalid], .ct-field [aria-invalid="true"] { border-color: #B42318; }
.ct-error { margin: 4px 0 0; font: 600 14px var(--font-ui); color: #B42318; }
.ct-step__nav { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: var(--space-5); }
.ct-back { margin-right: auto; padding: 10px 4px; border: 0; background: none; color: var(--c-ink-soft); font: 600 16px var(--font-ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ct-back:hover { color: var(--c-brand-text); }
.ct-next { background: var(--c-ink); color: var(--c-on-ink); }
.ct-next:hover { background: var(--c-brand); }
.ct-box[data-kit-sending] .ct-send { opacity: 0.7; pointer-events: none; }
@media (max-width: 600px) {
  .ct-marks__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ct-marks li { justify-content: center; }
  .ct-marks__n { left: 50%; translate: -50% 0; }
  .ct-grid { grid-template-columns: minmax(0, 1fr); }
  .ct-chips--goal { gap: 6px; }
  .ct-chip--num { font-size: 19px; }
  .ct-step__nav .btn { flex: 1; }
}

/* ---------- 3. the faster way: the plan building on the spot, beside an owner smiling at his laptop at dusk ---------- */
.ct-skip__grid { display: grid; gap: clamp(32px, 4vw, 56px); }
.ct-skip__words { display: grid; gap: var(--space-3); justify-items: center; text-align: center; max-width: 680px; margin-inline: auto; }
.ct-skip__words h2 { font-size: var(--fs-h2); }
.ct-skip__words .cta-block { justify-items: center; }
.ct-skip__stage { position: relative; min-height: 600px; }
.ct-skip__frame { position: absolute; left: 0; top: 0; bottom: 0; width: 50%; box-shadow: 0 36px 70px -34px color-mix(in srgb, var(--c-ink) 55%, transparent); }
.ct-skip__pic { position: absolute; inset: -14px; }
.ct-skip__pic img, .ct-skip__pic picture { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 40% 40%; }
/* the card overlaps the photo's window side, never his face (on the photo's left half) */
.ct-skip__scene { position: absolute; right: 0; top: 50%; translate: 0 -50%; width: min(720px, 62%); height: 560px; filter: drop-shadow(0 30px 50px color-mix(in srgb, var(--c-ink) 24%, transparent)); }
.ct-skip__scene > [data-scene] { position: absolute; inset: 0; }
.ct-skip__stop { position: absolute; left: 16px; bottom: 16px; z-index: 3; }
@media (max-width: 1000px) {
  .ct-skip__stage { min-height: 0; display: grid; justify-items: center; }
  .ct-skip__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; }
  .ct-skip__scene { position: relative; right: auto; top: auto; translate: none; width: min(720px, 100%); margin-top: -64px; }
  .ct-skip__stop { left: auto; right: 12px; bottom: 12px; }
}
@media (max-width: 600px) {
  .ct-skip__frame { aspect-ratio: 4 / 3; }
  .ct-skip__scene { height: 700px; margin-top: -40px; }
}

/* ---------- 4. the FAQ, on the blue-white band; the footer follows ---------- */
.page-contact .site-footer { margin-top: 0; }
