/* Contact: plan.md, "Contact". The header: the words, the main button and how to reach us; a tall photo of an owner at his
   pickup with a short thread playing in glass over its foot (left on a computer, under the words on a phone). Then the
   three-step form beside the week we answer in, then the quicker way, the plan's chat. Only the site's tokens. */

/* ---------- #hero ---------- */
.ct-hero { padding-block: clamp(28px, 4.4vw, 64px) var(--section-y); }
.ct-hero__grid { display: grid; gap: var(--space-6); }
.ct-hero__text { display: grid; gap: var(--space-4); align-content: center; }
.ct-hero__text h1 { font-size: var(--fs-h1); letter-spacing: var(--track-display); }
.ct-hero__text .lead { margin: 0; max-width: 34rem; font-size: var(--fs-lead); color: var(--c-ink-soft); }
.ct-hero__cta .cta-note { max-width: 30rem; }
.ct-reach { display: grid; margin: var(--space-2) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--c-line); max-width: 30rem; }
.ct-reach li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.ct-reach__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--c-brand-light); color: var(--c-ink); }
.ct-reach__k { display: block; font-size: 13px; color: var(--c-ink-soft); }
.ct-reach__v { display: block; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--c-ink); text-decoration: none; overflow-wrap: anywhere; }
a.ct-reach__v:hover { text-decoration: underline; text-underline-offset: 3px; }
a.ct-reach__v:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }

.ct-hero__media { position: relative; display: grid; }
.ct-hero__photo { margin: 0; aspect-ratio: 4 / 5; background: var(--c-paper-alt); }
.ct-hero__img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 58% 30%; }
/* the thread: his message, read by our team, typing, the reply; a kit chat. Each message rises in (--kit-in); as the
   loop ends the whole thread rises on and fades together (--kit-out), and his message rises in again: it only ever
   moves up, never back the way it came, and the reply never leaves while his message stays */
.ct-thread { position: relative; z-index: 2; display: grid; align-content: start; gap: 10px; width: min(340px, calc(100% - 24px)); height: 272px; margin: -148px auto 0; padding: 14px; border-radius: var(--radius-l);
  background: color-mix(in srgb, var(--c-white) 82%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--c-white) 64%, transparent); box-shadow: var(--shadow-l); font-family: var(--font-ui); color: var(--c-ink); }
.ct-thread__bar { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid color-mix(in srgb, var(--c-line) 80%, transparent); font-size: 14px; }
.ct-thread__bar b { font-weight: 600; }
.ct-thread__mark { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--grad-sunrise); }
.ct-thread__mark svg { width: 12px; height: 12px; fill: var(--c-white); }
.ct-thread [data-kit-msg] { opacity: calc(var(--kit-in, 1) * (1 - var(--kit-out, 0))); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px - var(--kit-out, 0) * 28px)); }
.ct-msg { margin: 0; max-width: 90%; padding: 9px 13px; border-radius: 18px; font-size: 14px; line-height: 1.4; }
.ct-msg--me { justify-self: end; background: var(--c-ink); color: var(--c-paper); border-bottom-right-radius: 6px; }
.ct-read { justify-self: end; display: inline-flex; align-items: center; gap: 6px; margin: -4px 6px 0 0; font-size: 13px; color: var(--c-ink-soft); }
.ct-read svg { color: var(--c-brand-text); }
.ct-msg--team { justify-self: start; display: grid; gap: 2px; background: var(--c-white); border: 1px solid var(--c-line); border-bottom-left-radius: 6px; }
.ct-msg--team b { font-size: 13px; font-weight: 600; color: var(--c-brand-text); }
.ct-msg--typing { justify-self: start; display: flex; gap: 4px; padding: 12px 14px; background: var(--c-white); border: 1px solid var(--c-line); border-bottom-left-radius: 6px; }
.ct-msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ink-soft); animation: ct-dot 1s infinite var(--ease-in-out); }
.ct-msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.ct-msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ct-dot { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-3px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ct-msg--typing i { animation: none; } }

@media (min-width: 1024px) {
  .ct-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
  .ct-hero__media { order: -1; padding-bottom: 40px; }
  /* over the photo's foot, on its left (the truck bed: his face and his tablet stay clear), hanging 40 px below it */
  .ct-thread { position: absolute; left: 20px; bottom: 0; width: min(300px, 52%); height: 272px; margin: 0; }
}

/* ---------- #form: the three steps in a white card; beside it, the week we answer in ---------- */
.ct-form-part__grid { display: grid; gap: var(--space-5); align-items: start; }
.ct-form { display: grid; gap: 22px; padding: clamp(20px, 3vw, 36px); border-radius: var(--radius-xl); background: var(--c-white); box-shadow: 0 0 0 1px var(--c-line), var(--shadow-l); }
.ct-form__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ct-form__marks { display: flex; gap: 8px; }
.ct-form__mark { width: 14px; height: 14px; border-radius: 4.5px; border: 1.5px solid color-mix(in srgb, var(--c-ink) 25%, transparent); }
.ct-form__mark[aria-current="step"] { border-color: transparent; background: var(--grad-sunrise); }
.ct-form__mark[data-kit-past] { border-color: transparent; background: var(--c-ink); }
.ct-form__count { margin: 0; font-size: 13px; color: var(--c-ink-soft); }
.ct-form__n::before { content: "1"; }
.ct-form[data-kit-at="2"] .ct-form__n::before { content: "2"; }
.ct-form[data-kit-at="3"] .ct-form__n::before { content: "3"; }
.ct-step { display: grid; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ct-step__q { margin-bottom: 18px; padding: 0; font: var(--w-head) var(--fs-h3)/1.2 var(--font-display); letter-spacing: -0.02em; }
.ct-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 136px), 1fr)); gap: 10px; }
.ct-choice { position: relative; display: grid; justify-items: start; align-content: start; gap: 12px; min-height: 120px; padding: 16px; border-radius: var(--radius-l); border: 1.5px solid var(--c-line); background: var(--c-paper); cursor: pointer; transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.ct-choice:hover { border-color: color-mix(in srgb, var(--c-ink) 40%, transparent); }
.ct-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ct-choice:focus-within { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.ct-choice[data-kit-on] { border-color: var(--c-ink); background: var(--c-white); }
.ct-choice__art svg { display: block; width: 44px; height: 44px; }
.ct-choice__art .o { fill: none; stroke: var(--c-ink); stroke-width: 2.4; }
.ct-choice__art .f { fill: color-mix(in srgb, var(--c-ink) 16%, transparent); }
.ct-choice__art .s { fill: none; stroke: var(--c-ink); stroke-width: 2.4; stroke-linecap: round; }
.ct-choice__art .fp { fill: none; stroke: var(--c-ink); stroke-width: 2.4; stroke-linejoin: round; }
.ct-choice[data-kit-on] .f, .ct-choice[data-kit-on] .fp { fill: var(--c-brand); }
.ct-choice__t { font-size: 16px; font-weight: 600; line-height: 1.25; }
.ct-field { display: grid; gap: 6px; }
.ct-field__label { font-size: 15px; font-weight: 600; }
.ct-field__opt { font-weight: 400; color: var(--c-ink-soft); }
.ct-input { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--c-line); background: var(--c-paper); font: 400 16px/1.2 var(--font-ui); color: var(--c-ink); }
.ct-input::placeholder { color: var(--c-ink-soft); opacity: 1; }
.ct-input:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 1px; border-color: var(--c-ink); }
.ct-input[aria-invalid="true"], [data-kit-invalid] .ct-input, .ct-input[data-kit-invalid] { border-color: var(--c-brand-text); }
.ct-field__error { margin: 0; font-size: 14px; color: var(--c-brand-text); }
.ct-step__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 4px; }
.ct-step__nav .btn--ink, .ct-step__nav .btn--main { margin-left: auto; }
.ct-form[data-kit-sending] { opacity: 0.7; pointer-events: none; }

.ct-when { display: grid; gap: 16px; align-content: start; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-xl); background: var(--c-paper); box-shadow: 0 0 0 1px var(--c-line); }
.ct-when h3 { font-size: var(--fs-h3); }
.ct-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.ct-week__day { display: grid; justify-items: center; gap: 6px; font-size: 13px; color: var(--c-ink-soft); }
.ct-week__day i { width: 100%; max-width: 44px; aspect-ratio: 1; border-radius: 30%; background: color-mix(in srgb, var(--c-ink) 8%, transparent); }
/* the open days fill rose to amber across the week, as the picker's squares do */
.ct-week__day.is-on i { background: color-mix(in srgb, var(--c-brand) calc(100% - var(--k, 0) * 16%), var(--c-accent)); }
.ct-week__day:nth-child(1) { --k: 0; } .ct-week__day:nth-child(2) { --k: 1; } .ct-week__day:nth-child(3) { --k: 2; }
.ct-week__day:nth-child(4) { --k: 3; } .ct-week__day:nth-child(5) { --k: 4; } .ct-week__day:nth-child(6) { --k: 5; }
.ct-week__day.is-on span { color: var(--c-ink); font-weight: 600; }
.ct-when__hours { margin: 0; font-size: 16px; line-height: 1.55; }
.ct-when__hours span { font-size: 14px; color: var(--c-ink-soft); }
.ct-when__line { margin: 0; }
.ct-when__line .text-link { overflow-wrap: anywhere; }
.ct-when__line svg { flex: none; width: 18px; height: 18px; color: var(--c-ink-soft); }
@media (min-width: 1024px) {
  .ct-form-part__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.95fr); gap: clamp(32px, 4vw, 64px); }
  .ct-when { position: sticky; top: 112px; }
}

/* ---------- #skip: the quicker way ---------- */
.ct-skip__grid { display: grid; gap: var(--space-5); align-items: center; }
.ct-skip__tile { margin: 0; aspect-ratio: 4 / 3; background: var(--c-ink); }
.ct-skip__tile > video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 84% 40%; }
.ct-skip__body { display: grid; gap: var(--space-4); }
.ct-skip__body h2 { font-size: var(--fs-h2); letter-spacing: var(--track-display); max-width: 16ch; }
.ct-skip .picker { max-width: 540px; }
@media (min-width: 1024px) {
  .ct-skip__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 96px); }
  .ct-skip__tile { aspect-ratio: 5 / 4; }
  .ct-skip__tile > video { object-position: 78% 40%; }
}
