/* Contact (plan.md "Contact"): the photo first with the message's way in glass, the words at the right; the form in
   two steps on a white card; the free plan building itself on the designed ground. */

/* ---------- hero ---------- */
.ch { padding-block: clamp(1.5rem, 3vw, 2.5rem) var(--section-y); }
.ch__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--space-5); align-items: center; }
.ch__stage { position: relative; }
.ch__photo { position: relative; margin: 0; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--radius-l); background: var(--c-ink); box-shadow: var(--shadow-l); }
.ch__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
/* the message's way, one status at a time: each lands over the one before on its own white ground. "Message sent" is
   there from the start and stays under the others through the loop's turn (the kit's hold), so the card is never empty
   and the turn is one crossfade from the last status back to the first, never the story taken back line by line. */
.ch__way { position: absolute; z-index: 2; left: 20px; bottom: 20px; box-sizing: border-box; width: min(300px, calc(100% - 40px)); display: grid; overflow: hidden; border-radius: 18px; background: var(--c-paper); box-shadow: 0 24px 48px -24px color-mix(in srgb, var(--c-ink) 55%, transparent); }
.ch__step { grid-area: 1 / 1; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 14px 16px 14px 14px; background: var(--c-paper); opacity: var(--kit-in, 0); }
.ch__step:first-child { opacity: 1; }
/* the read status hides under the reply once the reply is fully in, so the turn fades the reply alone */
.ch__way:has(> .ch__step:nth-child(3)[data-kit-on]) > .ch__step:nth-child(2) { visibility: hidden; transition: visibility 0s linear 0.6s; }
.ch__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c-brand); color: var(--c-ink); font-size: 18px; }
.ch__text b { display: block; color: var(--c-ink); font: 600 15px/1.25 var(--font-display); }
.ch__text small { display: block; color: var(--c-ink-soft); font: 400 13px/1.3 var(--font-ui); }
.ch__stop { z-index: 3; top: 14px; left: 14px; right: auto; }
.ch__words h1 { max-width: 10em; }
.ch__words .lede { max-width: 26em; }
.ch__go .icon { font-size: 1.05em; }

/* ---------- the form ---------- */
.cf__in { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--space-5); align-items: start; }
.cf__side .lede { margin-bottom: var(--space-4); }
.cf__facts { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.cf__facts li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; color: var(--c-ink-soft); }
.cf__facts b { color: var(--c-ink); font-weight: 600; }
.cf__fico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--c-paper); color: var(--c-brand-text); font-size: 22px; box-shadow: var(--shadow-s); }
.cf__card { box-sizing: border-box; min-width: 0; padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-l); }
.cf__marks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--space-4); padding: 0; list-style: none; }
.cf__marks li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--c-paper-alt); color: var(--c-ink-soft); font: 600 var(--fs-small)/1.2 var(--font-ui); }
.cf__marks li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-paper); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line); font-size: 13px; }
.cf__marks li[aria-current="step"] { background: var(--c-ink); color: var(--c-on-ink); }
.cf__marks li[aria-current="step"] span { background: var(--c-brand); color: var(--c-ink); box-shadow: none; }
.cf__marks li[data-kit-past] span { background: var(--c-brand-light); color: var(--c-brand-text); box-shadow: none; }
.cf__step { min-width: 0; margin: 0; padding: 0; border: 0; }
.cf__legend { margin: 0 0 var(--space-3); padding: 0; color: var(--c-ink); font: 600 var(--fs-h3)/1.3 var(--font-display); }
.cf__choices { display: grid; gap: 10px; }
.cf__choice { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--c-paper); box-shadow: inset 0 0 0 1.5px var(--c-line); cursor: pointer; transition: box-shadow var(--dur-fast), background-color var(--dur-fast); }
.cf__choice:hover { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-brand) 60%, var(--c-line)); }
/* the radio covers its whole card (unseen), so a tap anywhere chooses it and its focus is the card's */
.cf__choice input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cf__choice[data-kit-on] { background: color-mix(in srgb, var(--c-brand-light) 60%, var(--c-paper)); box-shadow: inset 0 0 0 2px var(--c-brand); }
.cf__choice:has(input:focus-visible) { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.cf__cico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c-brand-light); color: var(--c-brand-text); font-size: 22px; }
.cf__choice[data-kit-on] .cf__cico { background: var(--c-brand); color: var(--c-ink); }
.cf__ctext b { display: block; color: var(--c-ink); font: 600 var(--fs-ui)/1.3 var(--font-display); }
.cf__ctext small { display: block; margin-top: 2px; color: var(--c-ink-soft); font: 400 var(--fs-small)/1.4 var(--font-ui); }
.cf__error { margin: 6px 0 0; color: #B42318; font: 600 var(--fs-small)/1.35 var(--font-ui); }
.cf__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: var(--space-4); }
.cf__send { --act: var(--c-ink); --act-on: var(--c-on-ink); }
.cf__about { margin: calc(-1 * var(--space-2)) 0 var(--space-3); color: var(--c-ink-soft); font-size: var(--fs-small); }
.cf__about b { color: var(--c-ink); }
.cf__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.cf__field { min-width: 0; }
.cf__field--wide { grid-column: 1 / -1; }
.cf__field label { display: block; margin-bottom: 6px; color: var(--c-ink); font: 600 var(--fs-small)/1.3 var(--font-ui); }
.cf__field label span { color: var(--c-ink-soft); font-weight: 500; }
.cf__field input, .cf__field textarea { box-sizing: border-box; width: 100%; margin: 0; padding: 0.8rem 0.95rem; border: 1.5px solid var(--c-line); border-radius: 12px; background: var(--c-paper); color: var(--c-ink); font: 400 var(--fs-body)/1.4 var(--font-ui); }
.cf__field textarea { min-height: 120px; resize: vertical; }
.cf__field input:focus-visible, .cf__field textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--c-brand) 50%, transparent); outline-offset: 1px; border-color: var(--c-brand); }
.cf__field [aria-invalid="true"] { border-color: #B42318; }
.cf__card[data-kit-sending] .cf__send { opacity: 0.7; pointer-events: none; }

/* ---------- skip: the free plan building itself, on the designed ground ---------- */
.cs__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-5); align-items: center; }
.cs__words .lede { margin-bottom: var(--space-4); }
.cs__stage { position: relative; container-type: inline-size; }
.cs__scene.scene { display: block; width: 100%; height: 560px; }
.cs__stop { top: -48px; right: 0; }
@container (max-width: 599px) { .cs__scene.scene { height: 700px; } }

@media (max-width: 960px) {
  .cs__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .ch__in, .cf__in { grid-template-columns: minmax(0, 1fr); }
  .ch__photo { aspect-ratio: 1; }
  .ch__way { left: 12px; right: 12px; bottom: 12px; width: auto; }
}
@media (max-width: 560px) {
  .cf__grid { grid-template-columns: minmax(0, 1fr); }
}
