/* contact.css: Contact (plan.md, "Contact"), with the tokens of system.css only. */

/* ---------- #hero: the words above in two columns; under them a wide night photo of a bakery owner writing to us from
   her closed shop, small at the left, her message going out and the reply landing over the dim shop at the right ---------- */
.ph--contact { padding-top: 140px; padding-bottom: 130px; }
.ct-hero__top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: end; gap: 24px clamp(40px, 6vw, 96px); }
.ct-hero__top .ph__title { max-width: 10ch; }
.ct-hero__side .ph__line { margin-top: 0; }
.ct-hero__side .ph__cta { margin-top: 26px; }
.ct-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ct-hero__pic {
  position: relative; margin: clamp(40px, 5vw, 64px) 0 0; aspect-ratio: 1220 / 600;
  --deep-shade: linear-gradient(90deg, rgb(2 8 16 / 0) 38%, rgb(2 8 16 / 0.55) 100%), linear-gradient(180deg, rgb(2 8 16 / 0) 58%, rgb(2 8 16 / 0.45) 100%);
}
/* her shop around her, her laptop in view: an owner at work, never a portrait. A night photo in warm lamp light,
   graded by light: the deep's color wash kept faint, so her skin and the bread keep their warmth */
.ct-hero__pic > img { object-position: 50% 70%; filter: saturate(0.92) contrast(1.05) brightness(0.88); }
.ct-hero__pic::before { opacity: 0.14; }
/* the messages float over the free wall beside her, growing down from the top, clear of her laptop */
.ct-chat { position: absolute; z-index: 2; top: 24px; bottom: 24px; right: clamp(16px, 3vw, 36px); width: min(370px, 34%); display: flex; flex-direction: column; justify-content: flex-start; gap: 9px; }
.ct-chat .msg { opacity: calc(var(--kit-in, 1) * (1 - var(--kit-out, 0))); box-shadow: inset 0 0 0 1px var(--border-strong), 0 18px 40px -18px rgb(0 0 0 / 0.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
/* her message holds through the turn: the chat is never empty at its seam */
.ct-chat .msg:first-child { opacity: 1; transform: none; }
.msg { max-width: 92%; margin: 0; padding: 11px 15px; border-radius: 18px; font: 400 15px/1.45 var(--font-ui); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); }
.msg--in { align-self: flex-start; color: var(--text); background: rgb(15 30 55 / 0.92); border-bottom-left-radius: 6px; }
.msg--out { align-self: flex-end; color: var(--bg-0); font-weight: 500; background: linear-gradient(105deg, var(--accent-bright), var(--accent)); border-bottom-right-radius: 6px; }
.msg--typing { display: flex; gap: 5px; padding: 14px 16px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); animation: ct-dot 1.1s ease-in-out infinite; }
.msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ct-dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.55; } 30% { transform: translateY(-4px); opacity: 1; } }
/* a person on the team answers her: their reply, signed by the team */
.msg--reply { display: grid; gap: 7px; background: linear-gradient(160deg, rgb(15 30 55 / 0.96), rgb(10 22 40 / 0.96)); }
.msg__from { display: flex; align-items: center; gap: 8px; font: 600 13px/1.2 var(--font-ui); color: var(--accent-bright); }
.msg__mark { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 8px; color: var(--bg-0); background: linear-gradient(135deg, var(--accent-bright), var(--accent)); }
.msg__mark .mark { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .msg--typing i { animation: none; } }
@media (max-width: 899px) {
  .ph--contact { padding-top: 100px; padding-bottom: 96px; }
  .ct-hero__top { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ct-hero__pic { aspect-ratio: auto; overflow: visible; background: none; box-shadow: none; border-radius: 0; margin-top: 36px; }
  /* on a phone a taller crop around her, so she reads large in her shop, and the chat stays on the photo, over the dim
     window at its top, growing down toward her and clear of her face */
  .ct-hero__pic { --deep-shade: linear-gradient(180deg, rgb(2 8 16 / 0.62) 0%, rgb(2 8 16 / 0) 52%); }
  .ct-hero__pic > img { position: relative; inset: auto; display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; border-radius: var(--radius-l); object-position: 29% 50%; }
  .ct-hero__pic::before, .ct-hero__pic::after { bottom: auto; aspect-ratio: 3 / 4; border-radius: var(--radius-l); }
  .ct-chat { top: 12px; bottom: auto; left: 12px; right: 12px; width: auto; }
}

/* ---------- #form: the kit's form in a glass panel; beside it, how we answer ---------- */
.ct-form { padding-top: clamp(3rem, 1.5rem + 4vw, 5.5rem); }
.ct-form__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; gap: clamp(28px, 4vw, 64px); max-width: var(--max-w); margin: 0 auto; }
.ct-form__main {
  padding: clamp(28px, 3.4vw, 48px); border-radius: var(--radius-l);
  background: var(--glass); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.25); backdrop-filter: blur(var(--glass-blur)) saturate(1.25);
  box-shadow: inset 0 1px 0 var(--edge-light), inset 0 0 0 1px var(--border-strong), 0 40px 100px -40px rgb(0 0 0 / 0.85);
}
.ct-form__main .part__title { text-align: left; }
.ct-form__main .part__line { margin: 14px 0 0; }
.ct-kform { margin-top: 30px; }
.ct-kform fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.ct-steps { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 24px; padding: 0; list-style: none; counter-reset: ct; }
.ct-steps li { display: inline-flex; align-items: center; gap: 9px; font: 500 var(--fs-small)/1 var(--font-ui); color: var(--text-muted); }
.ct-steps li::before { counter-increment: ct; content: counter(ct); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 600 13px/1 var(--font-ui); box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.ct-steps li[aria-current="step"] { color: var(--text-bright); }
.ct-steps li[aria-current="step"]::before { color: var(--bg-0); background: var(--accent-bright); box-shadow: 0 0 18px -4px var(--glow); }
.ct-steps li[data-kit-past]::before { color: var(--accent-bright); box-shadow: inset 0 0 0 1.5px var(--accent-bright); }
.ct-legend { float: left; width: 100%; margin: 0 0 18px; padding: 0; font: 600 clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem)/1.25 var(--font-display); color: var(--text-bright); }
.ct-legend + * { clear: both; }
.ct-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ct-tile {
  position: relative; display: grid; align-content: start; gap: 4px; min-height: 150px; padding: 18px 18px 16px; border-radius: 18px; cursor: pointer;
  background: rgb(10 22 40 / 0.6); box-shadow: inset 0 0 0 1px var(--border-strong), inset 0 1px 0 var(--edge-light);
  transition: background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.ct-tile:hover { box-shadow: inset 0 0 0 1px rgb(93 173 226 / 0.5), inset 0 1px 0 var(--edge-light); }
.ct-tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ct-tile:has(input:focus-visible) { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.ct-tile[data-kit-on] { background: rgb(52 152 219 / 0.16); box-shadow: inset 0 0 0 1.5px var(--accent-bright), 0 0 32px -12px var(--glow); }
.ct-tile__pic { display: flex; align-items: center; height: 44px; margin-bottom: 8px; color: var(--accent-bright); }
.ct-tile__mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--bg-0); background: linear-gradient(135deg, var(--accent-bright), var(--accent)); }
.ct-tile__mark .mark { width: 26px; height: 26px; }
.ct-stars { font-size: 22px; letter-spacing: 0.06em; color: var(--gold); }
.ct-tile b { font: 600 1.0625rem/1.25 var(--font-ui); color: var(--text-bright); }
.ct-tile small { font: 400 var(--fs-small)/1.4 var(--font-ui); color: var(--text-muted); }
.ct-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ct-field { display: grid; align-content: start; gap: 7px; }
.ct-field--wide { grid-column: 1 / -1; }
.ct-field label { font: 500 var(--fs-small)/1.25 var(--font-ui); color: var(--text); }
.ct-field label span { color: var(--text-muted); font-weight: 400; }
.ct-field input, .ct-field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border: 0; border-radius: 14px; color: var(--text-bright); font: 400 1rem/1.4 var(--font-ui);
  background: rgb(5 13 26 / 0.72); box-shadow: inset 0 0 0 1px var(--border-strong);
}
.ct-field textarea { min-height: 116px; resize: vertical; }
.ct-field input:focus-visible, .ct-field textarea:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 1px; }
.ct-field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--accent-bright); }
.ct-err { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font: 500 var(--fs-small)/1.3 var(--font-ui); color: var(--text-bright); }
.ct-err::before { content: '!'; display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; font: 700 12px/1 var(--font-ui); color: var(--bg-0); background: var(--accent-bright); }
.ct-tiles .ct-err { grid-column: 1 / -1; }
.ct-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ct-go { color: var(--bg-0); background: linear-gradient(105deg, var(--accent-bright) 0%, var(--accent) 100%); box-shadow: inset 0 1px 0 rgb(232 244 255 / 0.5), 0 12px 30px -14px var(--glow); }
.ct-go:hover { transform: translateY(-1px); }
.ct-kform[data-kit-sending] .ct-go { opacity: 0.7; pointer-events: none; }
/* how we answer: the phone to tap, the days we answer lit, where we are */
.ct-reach { display: grid; gap: 14px; }
.ct-reach__title { margin: 6px 0 4px; font: 600 1.25rem/1.2 var(--font-display); color: var(--text-bright); }
.ct-call, .ct-hours, .ct-where {
  display: grid; gap: 6px; padding: 20px 22px; border-radius: var(--radius-m); color: inherit; text-decoration: none;
  background: rgb(10 22 40 / 0.55); box-shadow: inset 0 0 0 1px var(--border-strong), inset 0 1px 0 var(--edge-light);
}
.ct-call { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; transition: box-shadow var(--dur-fast) var(--ease-out); }
.ct-call:hover, .ct-call:focus-visible { box-shadow: inset 0 0 0 1px var(--accent-bright), 0 0 30px -10px var(--glow); }
.ct-call > span + span { display: grid; gap: 4px; }
.ct-call__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--bg-0); background: linear-gradient(135deg, var(--accent-bright), var(--accent)); box-shadow: 0 0 24px -6px var(--glow); }
.ct-reach small { font: 500 13px/1.2 var(--font-ui); letter-spacing: 0.01em; color: var(--text-muted); }
.ct-reach b { font: 600 1.0625rem/1.35 var(--font-ui); color: var(--text-bright); }
.ct-call b { font: 600 1.375rem/1.2 var(--font-display); letter-spacing: 0.01em; }
.ct-week { display: flex; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.ct-week li { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font: 600 13px/1 var(--font-ui); color: var(--text-muted); box-shadow: inset 0 0 0 1px var(--border); }
.ct-week li.on { color: var(--bg-0); background: linear-gradient(160deg, var(--accent-bright), var(--accent)); box-shadow: none; }
@media (min-width: 900px) { .ct-reach { position: sticky; top: 110px; } }
@media (max-width: 899px) {
  .ct-form__in { grid-template-columns: minmax(0, 1fr); }
  .ct-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) {
  .ct-tiles { grid-template-columns: minmax(0, 1fr); }
  .ct-tile { min-height: 0; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .ct-tile__pic { grid-row: span 2; margin: 0; width: 56px; justify-content: center; }
  /* the five stars as a small badge, three over two, inside the picture's column */
  .ct-stars { display: grid; justify-items: center; font-size: 18px; line-height: 1.1; letter-spacing: 0.04em; }
}

/* ---------- #skip: the chat as the quicker way; the plan itself arriving as three cards on the designed ground, the
   words beside it ---------- */
.ct-skip__stop { position: absolute; z-index: 3; top: 26px; right: var(--gutter); }
.ct-skip__in { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: center; gap: clamp(32px, 4vw, 64px); max-width: var(--max-w); margin: 0 auto; }
.ct-skip__in > .ct-skip__scene { display: block; min-width: 0; }
/* the three cards float on the designed ground: their stage paints no box of its own */
.ct-skip .ct-skip__in [data-scene="plancards"] .pc-stage { background: none; border-color: transparent; box-shadow: none; overflow: visible; }
.ct-skip .ct-skip__in [data-scene="plancards"] .pc-stage::before { background: none; }
/* the goal's label in the site's dark on-brand ink on the light blue (the piece's brand-dark reads at 2:1 here), kept
   on a phone too, so the goal reads as the visitor's own, never as a promise */
.ct-skip .ct-skip__in [data-scene="plancards"] .pc-pick-l { display: block; color: var(--c-on-brand); }
/* the plan drawn larger in its two thirds: wider cards, their rows read at 14 px and up */
@container (width >= 700px) {
  .ct-skip .ct-skip__in [data-scene="plancards"] .pc-card { width: min(470px, 84%); padding: 22px 22px 20px; }
  .ct-skip .ct-skip__in [data-scene="plancards"] .pc-h b { font-size: 19px; }
  .ct-skip .ct-skip__in [data-scene="plancards"] .pc-h span { font-size: 14px; }
  .ct-skip .ct-skip__in [data-scene="plancards"] .pc-row { padding: 9px 6px; font-size: 14.5px; }
  .ct-skip .ct-skip__in [data-scene="plancards"] .pc-cost li { font-size: 15px; }
}
/* review stars are gold on this site, in every scene */
.ct-skip .ct-skip__in [data-scene="plancards"] .pc-ic.stars { color: var(--gold); background: color-mix(in srgb, var(--gold) 16%, transparent); }
.ct-skip__words .part__title { text-align: left; }
.ct-skip__words .part__line { margin-left: 0; }
.ct-skip__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; margin-top: 30px; }
.ct-skip__cta .picker__note { justify-content: flex-start; }
@media (max-width: 899px) { .ct-skip__in { grid-template-columns: minmax(0, 1fr); } }
