/* The Contact page (plan.md, "Contact"). #hero: the words at the left, the laptop at the right in its rounded frame, our
   messages laid on its screen (an owner's question read, our team typing, our reply). #form: how it goes at the left
   (three plain steps), the kit's form in the site's form box at the right: what would help most as five cards, then
   where to write back. #skip: the florist in her frame with the kit's chat in glass at its clear side, building her
   plan; the words and the main button beside it. Tokens only. */

/* ---------- #hero ---------- */
.cth__in { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.cth__words { max-width: 30rem; }
.cth__title { margin-bottom: .9rem; font-size: clamp(2.75rem, 1.3rem + 3.4vw, 4.6rem); line-height: 1.02; }
.cth__line { margin: 0 0 1.75rem; }
.cth__cta { display: grid; justify-items: start; gap: 1.1rem; }
/* the arrow points down to the form, and steps down under the mouse */
.cth__cta .btn__arrow { rotate: 90deg; }
.cth__skip { color: var(--c-brand-text); font-family: var(--font-ui); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.cth__skip:hover { text-decoration-thickness: 2px; }
/* the laptop large in its frame, its screen near the size its messages are drawn at */
.cth__frame { position: relative; height: clamp(520px, 44vw, 640px); overflow: hidden; border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-l); }
.cth__photo { position: absolute; inset: 0; margin: 0; }
.cth__photo > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.cth__stop { top: 1rem; right: 1rem; }

/* the messages on the laptop's screen (430x268) */
.inbox { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; background: var(--c-paper); color: var(--c-ink); font-family: var(--font-ui); }
.inbox__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--c-line); }
/* every word at 15 px or more: the phone shows this screen at about three quarters of its size */
.inbox__brand { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; }
.inbox__mark { flex: none; width: 20px; height: 20px; fill: var(--c-brand); }
.inbox__tag { display: inline-flex; align-items: center; gap: 6px; color: var(--c-ink-soft); font-size: 15px; font-weight: 700; }
.inbox__tag .icon { width: 17px; height: 17px; }
/* three rows: the question, its read mark, then the typing and the reply in one place (the reply takes the dots' place,
   nothing above it moves) */
.inbox__thread { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; row-gap: 7px; margin: 0; padding: 10px 14px; list-style: none; background: color-mix(in srgb, var(--c-paper-alt) 45%, var(--c-paper)); }
.inbox__msg { max-width: 90%; padding: 9px 13px; border-radius: 16px; font-size: 18px; font-weight: 600; line-height: 1.28; }
.inbox__msg--me { justify-self: end; border-bottom-right-radius: 5px; background: var(--c-brand-dark); color: var(--c-paper); }
.inbox__msg--me small { display: block; margin-bottom: 3px; font-size: 15px; font-weight: 700; opacity: .85; }
.inbox__read { justify-self: end; display: inline-flex; align-items: center; gap: 5px; color: var(--c-ink-soft); font-size: 15px; font-weight: 700; }
.inbox__read .icon { width: 15px; height: 15px; color: var(--c-brand-text); }
.inbox__typing, .inbox__msg--team { grid-row: 3; grid-column: 1; justify-self: start; }
.inbox__msg--team { display: flex; align-items: flex-end; gap: 8px; max-width: 94%; padding: 0; background: none; }
.inbox__msg--team > span:last-child { padding: 9px 13px; border-radius: 16px; border-bottom-left-radius: 5px; background: var(--c-paper); box-shadow: var(--shadow-s), inset 0 0 0 1px var(--c-line); }
.inbox__av { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-paper); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-brand) 45%, var(--c-paper)); }
.inbox__avmark { width: 18px; height: 18px; fill: var(--c-brand); }
.inbox__typing { display: flex; align-items: flex-end; gap: 8px; }
.inbox__dots { display: flex; gap: 5px; padding: 12px 13px; border-radius: 16px; border-bottom-left-radius: 5px; background: var(--c-paper); box-shadow: inset 0 0 0 1px var(--c-line); }
.inbox__dots i, .cmsg--typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-ink-soft); opacity: .6; animation: ct-dot 1s infinite ease-in-out; }
.inbox__dots i:nth-child(2), .cmsg--typing i:nth-child(2) { animation-delay: .15s; }
.inbox__dots i:nth-child(3), .cmsg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ct-dot { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 0 -4px; } }
.inbox__thread:has(> .inbox__msg--team[data-kit-on]) .inbox__typing { visibility: hidden; }
.inbox__thread [data-kit-at] { opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); }
@media (scripting: enabled) {
  .inbox__thread [data-kit-at]:not(:first-child) { opacity: var(--kit-in, 0); transform: translateY(calc((1 - var(--kit-in, 0)) * 10px)); }
}

/* ---------- #form: how it goes, and the kit's form in the site's form box ---------- */
.ctf__in { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); align-items: start; gap: clamp(2rem, 5vw, 4.5rem); }
.ctf__how { padding-top: clamp(.5rem, 2vw, 1.75rem); }
.ctf__how h2 { max-width: 13ch; }
.ctf__steps { display: grid; gap: 1.4rem; margin: 1.9rem 0 0; padding: 0; list-style: none; }
.ctf__steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 1rem; }
.ctf__icon { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--c-paper); color: var(--c-brand-text); box-shadow: var(--shadow-s); }
.ctf__icon .icon { width: 1.3rem; height: 1.3rem; }
.ctf__steps h3 { margin: .3rem 0 .25rem; font-size: 1.15rem; }
.ctf__steps p { margin: 0; color: var(--on-soft); }

.ctf__form { display: grid; }
.ctf__marks { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 0 0 1.4rem; padding: 0 0 1.1rem; border-bottom: 1px solid color-mix(in oklab, var(--pane-edge), var(--on) 12%); list-style: none; color: var(--on-soft); font-family: var(--font-ui); font-size: var(--fs-small); font-weight: 700; }
.ctf__marks li { display: inline-flex; align-items: center; gap: .5rem; transition: color var(--dur-fast) var(--ease-out); }
.ctf__marks span { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--pane-edge), var(--on) 30%); font-size: .8125rem; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.ctf__marks [aria-current="step"] { color: var(--on); }
.ctf__marks [aria-current="step"] span { background: var(--c-ink); color: var(--c-paper); box-shadow: none; }
.ctf__marks [data-kit-past] span { background: var(--c-brand-light); color: var(--c-brand-dark); box-shadow: none; }
.ctf__step { min-width: 0; margin: 0; padding: 0; border: 0; }
.ctf__legend { margin: 0 0 1.1rem; padding: 0; color: var(--on); font-family: var(--font-display); font-size: clamp(1.55rem, 1.1rem + 1vw, 1.95rem); font-weight: 600; line-height: 1.15; }

/* step 1: the five choices as cards, each with its icon; the chosen one turns to the box's ink */
.ctf__choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.ctf__choice { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ctf__choice--wide { grid-column: 1 / -1; }
.ctf__choice input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ctf__card { box-sizing: border-box; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .85rem; height: 100%; min-height: 4.75rem; padding: .8rem .9rem; border: 1.5px solid color-mix(in oklab, var(--pane-edge), var(--on) 22%); border-radius: var(--radius-m); background: var(--c-paper); color: var(--on); transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), translate var(--dur-fast) var(--ease-out); }
.ctf__tile { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: var(--radius-s); background: var(--c-brand-light); color: var(--c-brand-dark); transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.ctf__tile .icon { width: 1.35rem; height: 1.35rem; }
.ctf__text b { display: block; font-family: var(--font-ui); font-size: 1rem; font-weight: 700; line-height: 1.25; }
.ctf__text small { display: block; margin-top: .2rem; color: var(--on-soft); font-family: var(--font-ui); font-size: .875rem; line-height: 1.3; transition: color var(--dur-fast) var(--ease-out); }
.ctf__tick { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--pane-edge), var(--on) 30%); color: transparent; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.ctf__tick .icon { width: .95rem; height: .95rem; stroke-width: 2.4; }
.ctf__choice--wide .ctf__card { min-height: 4rem; border-style: dashed; }
@media (hover: hover) and (pointer: fine) {
  .ctf__choice:hover > input:not(:checked) + .ctf__card { border-color: color-mix(in oklab, var(--pane-edge), var(--on) 62%); box-shadow: var(--shadow-s); translate: 0 -2px; }
}
.ctf__choice input:checked + .ctf__card { border-style: solid; border-color: var(--c-ink); background: var(--c-ink); color: var(--c-paper); box-shadow: 0 12px 24px -14px color-mix(in srgb, var(--c-ink) 75%, transparent); }
.ctf__choice input:checked + .ctf__card small { color: color-mix(in srgb, var(--c-paper) 80%, transparent); }
.ctf__choice input:checked + .ctf__card .ctf__tile { background: color-mix(in srgb, var(--c-paper) 16%, transparent); color: var(--c-paper); }
.ctf__choice input:checked + .ctf__card .ctf__tick { background: var(--c-paper); box-shadow: none; color: var(--c-ink); }
.ctf__choice input:focus-visible + .ctf__card { outline: 2px solid var(--c-ink); outline-offset: 3px; }
.ctf__next { justify-self: start; margin-top: 1.3rem; }

/* step 2: what was picked (and a way back), the details, the main button across the box */
.ctf__picked { display: flex; align-items: center; gap: .55rem; margin: 0 0 1.15rem; padding: .6rem .8rem; border-radius: var(--radius-s); background: color-mix(in srgb, var(--c-brand-light) 62%, var(--c-paper)); color: var(--on); font-family: var(--font-ui); font-size: .9375rem; font-weight: 700; line-height: 1.3; }
.ctf__picked > .icon { flex: none; color: var(--c-brand-dark); stroke-width: 2.4; }
.ctf__change { margin-left: auto; padding: .25rem .35rem; border: 0; background: none; color: var(--c-brand-text); font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.ctf__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ctf__field--wide { grid-column: 1 / -1; }
.ctf__field label { display: block; margin-bottom: .4rem; color: var(--on); font-family: var(--font-ui); font-size: .9375rem; font-weight: 700; line-height: 1.3; }
.ctf__field label span { color: var(--on-soft); font-weight: 600; }
.ctf__field :is(input, textarea) { box-sizing: border-box; width: 100%; min-height: 3.1rem; margin: 0; padding: .75rem .9rem; border: 1.5px solid color-mix(in oklab, var(--pane-edge), var(--on) 24%); border-radius: var(--btn-radius); background: var(--c-paper); color: var(--c-ink); font: 500 1rem/1.35 var(--font-ui); transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.ctf__field textarea { min-height: 7rem; resize: vertical; }
.ctf__field ::placeholder { color: color-mix(in srgb, var(--c-ink-soft) 78%, transparent); }
.ctf__field :is(input, textarea):focus { outline: none; border-color: var(--c-brand-dark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-brand) 30%, transparent); }
.ctf__field :is(input, textarea)[aria-invalid="true"] { border-color: var(--c-accent-text); }
.ctf__error { margin: .45rem 0 0; color: var(--c-accent-text); font-family: var(--font-ui); font-size: var(--fs-small); font-weight: 700; line-height: 1.35; }
.ctf__choices .ctf__error { grid-column: 1 / -1; margin-top: .1rem; }
.ctf__send { width: 100%; min-height: 3.5rem; margin-top: 1.4rem; font-size: calc(var(--fs-ui) * 1.0625); }
.ctf__form[data-kit-sending] .ctf__send { opacity: .7; pointer-events: none; }
.ctf__fine { margin: .9rem 0 0; color: var(--on-soft); font-family: var(--font-ui); font-size: var(--fs-small); text-align: center; }
.ctf__fine a { color: inherit; }

/* ---------- #skip: the florist, the kit's chat in glass at her photo's clear side, the words beside ---------- */
.cts__in { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); grid-template-areas: "frame head" "frame act"; column-gap: clamp(2rem, 5vw, 4.5rem); row-gap: 1.6rem; }
.cts__head { grid-area: head; align-self: end; }
.cts__head h2 { max-width: 13ch; }
.cts__head .lede { margin: 0; }
.cts__act { grid-area: act; align-self: start; display: grid; justify-items: start; }
.cts__act .cta-note { justify-content: flex-start; }
.cts__frame { grid-area: frame; position: relative; isolation: isolate; height: clamp(540px, 44vw, 620px); overflow: hidden; border-radius: var(--radius-l); background: var(--c-ink); box-shadow: var(--shadow-l); }
.cts__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 20% 45%; }
.cts__stop { top: 1rem; left: 1rem; }
.cts__chat { position: absolute; z-index: 2; top: 1.25rem; right: 1.25rem; bottom: 1.25rem; display: grid; grid-template-rows: minmax(0, 1fr); width: min(19rem, 46%); padding: .65rem; border-radius: var(--radius-l); background: color-mix(in srgb, var(--c-paper) 80%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: var(--shadow-l), inset 0 0 0 1px color-mix(in srgb, var(--c-paper) 70%, transparent); color: var(--c-ink); }
.cts__body { display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem; min-height: 0; padding: .3rem; overflow: hidden; opacity: calc(1 - var(--kit-out, 0)); }
.cts__body > * { flex: none; }
/* the chat's own top, as a chat app opens: the logo's O and what this is; the messages push it up and out */
.cts__intro { display: grid; justify-items: center; gap: .2rem; margin: 0 0 auto; padding: 1.5rem .5rem 1rem; color: var(--c-ink); text-align: center; }
.cts__logo { width: 4rem; margin-bottom: .5rem; }
.cts__intro b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.cts__intro small { color: var(--c-ink-soft); font-family: var(--font-ui); font-size: .8125rem; line-height: 1.35; }
.cmsg { margin: 0; max-width: 88%; padding: .55rem .8rem; border-radius: 16px; font-family: var(--font-ui); font-size: .9rem; font-weight: 600; line-height: 1.35; opacity: var(--kit-in, 1); translate: 0 calc((1 - var(--kit-in, 1)) * 10px); }
@media (scripting: enabled) {
  .cts__body > .cmsg ~ .cmsg { opacity: var(--kit-in, 0); translate: 0 calc((1 - var(--kit-in, 0)) * 10px); }
}
.cmsg--in { align-self: flex-start; border-bottom-left-radius: 5px; background: var(--c-paper); color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-line); }
.cmsg--out { align-self: flex-end; border-bottom-right-radius: 5px; background: var(--c-brand-dark); color: var(--c-paper); font-weight: 700; }
.cmsg--chips { display: flex; gap: .35rem; align-self: flex-start; padding: 0; }
.cmsg--chips span { padding: .42rem .78rem; border-radius: 999px; background: var(--c-paper); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-ink) 18%, transparent); color: var(--c-ink); font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; transition: background-color .3s, color .3s, box-shadow .3s; }
.cmsg--chips span[data-kit-on] { background: var(--c-ink); color: var(--c-paper); box-shadow: none; }
.cmsg--typing { display: flex; gap: 5px; align-self: flex-start; padding: .75rem .85rem; border-bottom-left-radius: 5px; background: var(--c-paper); box-shadow: inset 0 0 0 1px var(--c-line); }
.cmsg--check { min-width: 78%; }
.cmsg__bar { display: block; height: 6px; margin-top: .5rem; overflow: hidden; border-radius: 6px; background: color-mix(in srgb, var(--c-ink) 10%, transparent); }
.cmsg__bar i { display: block; height: 100%; border-radius: inherit; background: var(--c-brand); transform-origin: 0 50%; scale: var(--kit-fill, 0) 1; }
.cmsg--plan { align-self: stretch; max-width: none; padding: .8rem .9rem .75rem; background: var(--c-paper); box-shadow: var(--shadow-s), inset 0 0 0 1px var(--c-line); }
.cmsg__title { display: flex; align-items: center; gap: .4rem; margin: 0; color: var(--c-ink-soft); font-size: .78rem; font-weight: 800; }
.cmsg__mark { flex: none; width: 1rem; height: 1rem; fill: var(--c-brand); }
.cmsg__big { margin: .3rem 0 .6rem; color: var(--c-ink); font-size: .875rem; font-weight: 600; line-height: 1.3; }
.cmsg__big b { margin-right: .2rem; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1; }
/* her eight months: the first hatched (set-up), then the bars climb to 10 a month, growing as the plan lands */
.cmsg__bars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-items: end; gap: 4px; height: 46px; margin: 0; }
.cmsg__bars i { height: calc(var(--h) * 100% * var(--kit-in, 1)); border-radius: 4px 4px 2px 2px; background: var(--c-brand); }
.cmsg__bars i:last-child { background: var(--c-brand-dark); }
.cmsg__bars .cmsg__setup { height: 22%; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c-ink) 22%, transparent) 0 2px, transparent 2px 6px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-ink) 18%, transparent); }
.cmsg__from { margin: .5rem 0 0; color: var(--c-ink-soft); font-size: .78rem; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .inbox__dots i, .cmsg--typing i { animation: none; } }

/* ---------- the tablet and the phone ---------- */
@media (max-width: 1199px) {
  .cth__in { grid-template-columns: minmax(0, 1fr); }
  .cth__words { max-width: 40rem; }
  .cth__frame { height: 520px; }
  .ctf__in { grid-template-columns: minmax(0, 1fr); }
  .ctf__how { padding-top: 0; }
  .ctf__how h2 { max-width: none; }
  .ctf__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .ctf__steps li { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .cts__in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "frame" "act"; }
  .cts__head h2 { max-width: none; }
}
@media (max-width: 759px) {
  /* the laptop's screen nearly as wide as the frame, its words large enough to read */
  .cth__frame { height: 500px; }
  .cth__photo > img { object-position: 50% 56%; }
  .ctf__steps { grid-template-columns: minmax(0, 1fr); }
  .ctf__steps li { grid-template-columns: auto minmax(0, 1fr); gap: .9rem; }
  .ctf__choices, .ctf__fields { grid-template-columns: minmax(0, 1fr); }
  .ctf__card { min-height: 4.25rem; }
  /* the florist's face in the frame's upper half (the photo's middle), the chat on its lower part, the newest
     messages at its foot */
  .cts__frame { height: 640px; }
  .cts__media img { object-position: 21% 50%; }
  .cts__chat { top: auto; left: .75rem; right: .75rem; bottom: .75rem; width: auto; height: 262px; padding: .5rem; }
  .cts__intro { padding: .9rem .5rem .6rem; }
  .cts__logo { width: 2.75rem; margin-bottom: .3rem; }
  .cts__intro b { font-size: 1.15rem; }
}
