/* contact.css: the contact page (src\pages\contact.mjs; plan.md, "Contact (Part 2)"). Tokens only. */

/* ---------- hero: the desk from above with the team's chat on it; the words in a white card over its lower left edge ---------- */
.ct-hero { padding-block: clamp(1.25rem, .8rem + 1.6vw, 2.25rem) calc(var(--section-y) + 48px); }
.ct-hero__stage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, .5rem + 1.5vw, 2rem); }
.ct-hero__tile { grid-column: 4 / -1; grid-row: 1; height: clamp(520px, 30vw + 190px, 620px); }
.ct-hero__tile > video, .ct-hero__tile > .kit-first { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-position: 50% 50%; }
.ct-hero__shade { background: color-mix(in srgb, var(--c-ink) 6%, transparent); }
.ct-hero__stop { top: 16px; right: 16px; }
.ct-hero__card { grid-column: 1 / span 6; grid-row: 1; align-self: end; position: relative; z-index: 2; margin-bottom: -48px; display: grid; gap: 1rem; padding: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-l); }
.ct-hero__title { font-size: var(--fs-h1); font-weight: 800; line-height: var(--lh-tight); letter-spacing: -0.04em; text-wrap: balance; }
.ct-hero__line { font-size: var(--fs-lede); line-height: 1.45; color: var(--c-ink-soft); }
.ct-hero__line a { color: var(--c-ink); font-weight: 650; text-decoration: none; border-bottom: 2px solid var(--c-accent); }
.ct-hero__ways { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.ct-hero__ways a { display: grid; gap: .2rem; min-height: 48px; padding: .7rem 1.05rem; border-radius: var(--radius-m); background: var(--c-paper-alt); box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-ink); text-decoration: none; font: 650 var(--fs-body)/1.25 var(--font-display); overflow-wrap: anywhere; }
.ct-hero__ways b { font: 700 var(--fs-small)/1.2 var(--font-ui); color: var(--c-brand-text); }
.ct-hero__ways a:hover { box-shadow: inset 0 0 0 1.5px var(--c-ink); }
.ct-hero__go { display: grid; justify-items: start; margin-top: .35rem; }

/* the team's chat, a white card on the desk (nothing under it but the desk) */
.ct-chat { position: absolute; z-index: 2; right: clamp(16px, 4%, 56px); top: 50%; width: min(340px, calc(100% - 32px)); height: 318px; transform: translateY(-50%); display: flex; flex-direction: column; padding: 12px; border-radius: 28px; color: var(--c-ink); background: var(--c-paper); box-shadow: var(--shadow-l); }
.ct-chat__top { display: flex; align-items: center; gap: .7rem; padding: 6px 6px 12px; border-bottom: 1px solid var(--c-line); }
.ct-chat__app { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--c-accent); color: var(--c-ink); }
.ct-chat__app .mark { width: 18px; height: 18px; }
.ct-chat__top b { display: block; font: 650 1rem/1.2 var(--font-display); }
.ct-chat__top small { display: block; font-size: var(--fs-small); color: var(--c-ink-soft); }
.ct-chat__log { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .6rem; padding: 14px 4px 4px; overflow: hidden; opacity: calc(1 - var(--kit-out, 0)); }
.ct-chat__log [data-kit-msg] { flex: none; opacity: min(1, calc(var(--kit-in, 1) * 1.6)); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); }
.ct-chat__msg { max-width: 88%; padding: .65rem .9rem; border-radius: 18px; font-size: var(--fs-small); line-height: 1.45; }
.ct-chat__msg--me { align-self: flex-end; background: var(--c-ink); color: var(--c-on-ink); border-bottom-right-radius: 6px; }
.ct-chat__msg--team { align-self: flex-start; display: grid; gap: .2rem; background: var(--c-paper-alt); color: var(--c-ink); border-bottom-left-radius: 6px; }
.ct-chat__msg--team b { font: 650 var(--fs-small)/1.2 var(--font-display); color: var(--c-brand-text); }
.ct-chat__msg--team small { justify-self: end; font-size: var(--fs-small); color: var(--c-ink-soft); }
.ct-chat__typing { align-self: flex-start; display: flex; gap: 5px; padding: .8rem .95rem; border-radius: 18px; background: var(--c-paper-alt); }
.ct-chat__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ink-soft); animation: ct-dot 1s infinite ease-in-out; }
.ct-chat__typing i:nth-child(2) { animation-delay: .15s; }
.ct-chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ct-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ct-chat__typing i { animation: none; } }

/* ---------- the form: three short steps, marked by three keys; how we answer beside it ---------- */
.ct-form__in { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start; }
@media (min-width: 961px) { .ct-form__in { grid-template-columns: minmax(0, 7.6fr) minmax(0, 4.4fr); } }
.ct-steps { min-width: 0; padding: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-m); }

.ct-marks { list-style: none; margin: 0 0 1.75rem; padding: 0 0 1.4rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; border-bottom: 1px solid var(--c-line); }
.ct-mark { display: flex; align-items: center; gap: .65rem; min-width: 0; color: var(--c-ink-soft); font: 650 var(--fs-small)/1.2 var(--font-display); }
.ct-mark__key { position: relative; flex: none; width: 40px; height: 40px; }
.ct-mark__key::before { content: ""; position: absolute; inset: 4px 0 0; border-radius: 11px; background: var(--c-line); }
.ct-mark__cap { position: absolute; inset: 0 0 4px; display: grid; place-items: center; border-radius: 11px; background: var(--c-paper); box-shadow: inset 0 0 0 1.5px var(--c-line); font: 800 1rem/1 var(--font-display); color: var(--c-ink); transition: transform .25s ease, background-color .25s ease; }
.ct-mark[aria-current="step"] { color: var(--c-ink); }
.ct-mark[aria-current="step"] .ct-mark__key::before { background: var(--c-key-base); }
.ct-mark[aria-current="step"] .ct-mark__cap { background: linear-gradient(180deg, var(--c-key-top), var(--c-accent) 62%); box-shadow: none; transform: translateY(3px); }
.ct-mark[data-kit-past] .ct-mark__cap { background: var(--c-brand-light); box-shadow: inset 0 0 0 1.5px var(--c-brand); color: var(--c-brand-text); }
.ct-mark__name { min-width: 0; }

.ct-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.ct-step__legend { float: left; width: 100%; padding: 0; margin-bottom: 1.25rem; font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.ct-step__legend + * { clear: both; }
.ct-field + .ct-field, .ct-field + .ct-pair, .ct-pair + .ct-field { margin-top: 1.25rem; }
.ct-pair { display: grid; gap: 1.25rem; }
@media (min-width: 560px) { .ct-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ct-label { display: block; margin-bottom: .5rem; font: 650 var(--fs-small)/1.3 var(--font-display); color: var(--c-ink); }
.ct-label span { font-weight: 500; color: var(--c-ink-soft); }
.ct-input { display: block; width: 100%; min-height: 54px; padding: .8rem 1rem; border: 1.5px solid var(--c-line); border-radius: var(--radius-m); font: 500 var(--fs-body)/1.3 var(--font-ui); color: var(--c-ink); background: var(--c-paper); }
.ct-input::placeholder { color: var(--c-ink-soft); }
.ct-input:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; border-color: var(--c-ink); }
.ct-input[aria-invalid="true"] { border-color: var(--c-accent-text); }
.ct-error { display: flex; align-items: center; gap: .45rem; margin-top: .55rem; font: 600 var(--fs-small)/1.35 var(--font-ui); color: var(--c-accent-text); }
.ct-error::before { content: "!"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--c-accent); color: var(--c-ink); font: 800 13px/1 var(--font-ui); }

.ct-choices { display: grid; gap: .6rem; }
@media (min-width: 560px) { .ct-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ct-choice { position: relative; display: flex; align-items: center; gap: .75rem; min-height: 56px; padding: .75rem 1rem; border-radius: var(--radius-m); background: var(--c-paper); box-shadow: inset 0 0 0 1.5px var(--c-line); font: 600 var(--fs-body)/1.3 var(--font-ui); color: var(--c-ink); cursor: pointer; transition: box-shadow .2s ease, background-color .2s ease; }
.ct-choice::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--c-paper); box-shadow: inset 0 0 0 2px var(--c-line); transition: box-shadow .2s ease; }
.ct-choice:hover { box-shadow: inset 0 0 0 1.5px var(--c-ink-soft); }
.ct-choice[data-kit-on] { background: var(--c-brand-light); box-shadow: inset 0 0 0 2px var(--c-brand); }
.ct-choice[data-kit-on]::before { box-shadow: inset 0 0 0 6px var(--c-brand); }
.ct-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.ct-chip { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 48px; padding: .6rem 1.15rem; border-radius: 999px; background: var(--c-paper); box-shadow: inset 0 0 0 1.5px var(--c-line); font: 650 var(--fs-body)/1 var(--font-display); color: var(--c-ink); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.ct-chip:hover { box-shadow: inset 0 0 0 1.5px var(--c-ink-soft); }
.ct-chip[data-kit-on] { background: var(--c-ink); color: var(--c-on-ink); box-shadow: none; }
.ct-choice input, .ct-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ct-choice:has(input:focus-visible), .ct-chip:has(input:focus-visible) { outline: 3px solid var(--c-brand); outline-offset: 2px; }

.ct-step__go { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; margin-top: 1.75rem; }
.ct-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .8rem 1.6rem; border: 0; border-radius: 999px; font: 700 var(--fs-body)/1 var(--font-display); color: var(--c-on-ink); background: var(--c-ink); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease; }
.ct-btn:hover { background: color-mix(in srgb, var(--c-ink) 86%, var(--c-brand)); }
.ct-btn:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 3px; }
.ct-btn--back { margin-right: auto; color: var(--c-ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--c-line); }
.ct-btn--back:hover { background: var(--c-paper-alt); }
.ct-btn--send, .ct-btn--send:hover { color: var(--c-ink); background: linear-gradient(180deg, var(--c-key-top), var(--c-accent) 62%); box-shadow: 0 4px 0 var(--c-key-base); }
.ct-btn--send:hover { transform: translateY(1px); box-shadow: 0 3px 0 var(--c-key-base); }
.ct-steps[data-kit-sending] .ct-btn--send { transform: translateY(4px); box-shadow: 0 0 0 var(--c-key-base); cursor: progress; }

.ct-answer { padding: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); border-radius: var(--radius-l); background: var(--c-ink); color: var(--c-on-ink); }
.ct-answer__title { font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.ct-answer__list { list-style: none; margin: 1.35rem 0 0; padding: 0; display: grid; gap: 1.2rem; }
.ct-answer__list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: .8rem; align-items: start; }
.ct-answer__list li > .mark { width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: var(--c-accent); color: var(--c-ink); }
.ct-answer__list span { font-size: var(--fs-small); line-height: 1.5; color: color-mix(in srgb, var(--c-on-ink) 80%, var(--c-ink)); }
.ct-answer__list b { display: block; margin-bottom: .15rem; font: 700 var(--fs-body)/1.3 var(--font-display); color: var(--c-on-ink); }
.ct-answer__list a { color: var(--c-on-ink); font: 700 var(--fs-body)/1.3 var(--font-display); text-decoration: none; border-bottom: 2px solid var(--c-accent); }

/* ---------- the faster way: the owner's phone at the kitchen table; the free plan's chat answering beside it ---------- */
.ct-skip__in { display: grid; gap: clamp(2rem, 1rem + 3vw, 4.5rem); align-items: center; }
@media (min-width: 901px) { .ct-skip__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.ct-skip__pic { position: relative; }
.ct-skip__tile { height: 520px; }
.ct-skip__tile > img.tile__photo { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-position: 0% 50%; }
.ct-skip__shade { background: color-mix(in srgb, var(--c-ink) 10%, transparent); }
.ct-skip__stop { top: 14px; right: 14px; }
.scene.ct-skip__scene { position: absolute; z-index: 2; left: 24px; top: 24px; width: min(300px, calc(100% - 48px)); }
.ct-skip__title { font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-tight); letter-spacing: -0.035em; text-wrap: balance; }
.ct-skip__line { margin: 1.1rem 0 1.75rem; font-size: var(--fs-lede); line-height: 1.5; color: var(--c-ink-soft); }
.ct-skip__line strong { color: var(--c-ink); font-weight: 650; }
.ct-skip__go { display: grid; justify-items: start; }

/* ---------- narrower screens ---------- */
@media (max-width: 960px) {
  .ct-hero { padding-bottom: var(--section-y); }
  .ct-hero__stage { grid-template-columns: minmax(0, 1fr); }
  .ct-hero__tile { grid-column: 1; height: 440px; }
  .ct-hero__card { grid-column: 1; grid-row: 2; align-self: start; margin: -48px 12px 0; }
}
/* the phone: the chat in the middle of the desk; the plan's chat under the photo, its top edge over it */
@media (max-width: 760px) {
  .ct-hero__tile { height: 400px; }
  .ct-chat { right: auto; left: 50%; transform: translate(-50%, -50%); }
  .ct-hero__card { margin: -40px 8px 0; padding: 1.4rem 1.15rem; }
  .ct-hero__ways li { flex: 1 1 100%; }
  .ct-hero__ways a { font-size: clamp(.8125rem, 3.6vw, 1rem); overflow-wrap: normal; }
  .ct-marks { gap: .5rem; }
  .ct-mark { flex-direction: column; align-items: flex-start; gap: .45rem; }
  .ct-skip__tile { height: 620px; }
  .ct-skip__tile > img.tile__photo { object-position: 50% 50%; }
  .scene.ct-skip__scene { left: 50%; top: auto; bottom: 12px; width: min(320px, calc(100% - 24px)); transform: translateX(-50%); }
}
