/* design\components.css: the CSS of the components in design\components.md, the director's: the header, the footer,
   the exit popup, the call bar, the stop icon, and each section pattern, card, form box and call-to-action block as the
   home page built them. Every page loads it (the build copies it to site\assets\css\components.css). Every page uses these
   classes as they are; a page's own CSS only places and sizes its parts, with the tokens of system.css.
   PageOne USA: warm paper, the logo's ink and blue, a serif for headlines, thin rules, small corners, no glass. */

*, *::before, *::after { box-sizing: border-box; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: var(--fw-display); letter-spacing: var(--track-display); line-height: var(--lh-tight); color: var(--c-ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--c-brand-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-sky); outline-offset: 3px; border-radius: 2px; }
main { display: block; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--max-w) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.band { position: relative; padding: var(--section-y) 0; }
.band--paper { background: var(--c-paper); }
.band--alt { background: var(--c-paper-alt); }
/* the rule between two parts on the same ground: a thin ink line inside the column */
.band--paper + .band--paper::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(calc(100% - 2 * var(--gutter)), var(--max-w)); height: 1px; background: var(--c-line); }

/* a part's head: its headline and one line */
.head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.head--center { margin-left: auto; margin-right: auto; text-align: center; }
.head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4); }
.head--row > div { max-width: 760px; }
.head__title { font-size: var(--fs-h2); }
.head__line { margin-top: var(--space-3); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--c-ink-soft); max-width: 640px; }
.head--center .head__line { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--radius-m); background: var(--c-brand); color: var(--c-on-brand); font: 600 var(--fs-ui)/1.1 var(--font-ui); text-decoration: none; letter-spacing: .005em; box-shadow: 0 1px 0 var(--c-brand-dark), var(--shadow-s); transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); white-space: nowrap; }
.button:hover { background: var(--c-brand-dark); text-decoration: none; }
.button:active { transform: translateY(1px); }
.button--big { min-height: 56px; padding: 0 26px; font-size: 1.0625rem; }
.button--light { background: var(--c-paper); color: var(--c-ink); box-shadow: none; }
.button--light:hover { background: var(--c-white); }
.button__arrow { flex: none; transition: transform var(--dur-fast) var(--ease-out); }
.button:hover .button__arrow { transform: translateX(3px); }
.more { display: inline-flex; align-items: center; gap: 8px; font: 600 var(--fs-ui)/1.2 var(--font-ui); color: var(--c-brand-text); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.more:hover .button__arrow { transform: translateX(3px); }
.more[data-planned] { color: var(--c-ink-soft); border-bottom-style: dotted; }

/* a small tag beside a step's title */
.tag { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 3px 9px; border-radius: 999px; background: var(--c-brand-light); color: var(--c-brand-text); font: 600 .8125rem/1.3 var(--font-ui); letter-spacing: 0; }

/* ---------- cards ---------- */
.card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius-l); box-shadow: var(--shadow-s); }
/* a notification over footage: a solid paper card with a blue check */
.note { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; background: var(--c-card); border-radius: var(--radius-m); box-shadow: var(--shadow-l); color: var(--c-ink); font-family: var(--font-ui); max-width: 340px; }
.note__mark { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); }
.note__text { display: grid; gap: 2px; }
.note__text b { font-weight: 700; font-size: .9688rem; line-height: 1.25; }
.note__text span { font-size: .875rem; color: var(--c-ink-soft); line-height: 1.3; }

/* ---------- the clients picker ---------- */
.picker { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius-l); padding: 22px 22px 18px; box-shadow: var(--shadow-l); color: var(--c-ink); }
.picker__set { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.picker__legend { padding: 0; margin-bottom: 12px; font: 700 1.0625rem/1.3 var(--font-ui); color: var(--c-ink); }
.picker__choices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.picker__choice { position: relative; display: block; }
.picker__choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.picker__choice span { display: grid; place-items: center; height: 48px; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); font: 600 1.0625rem/1 var(--font-ui); color: var(--c-ink); transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.picker__choice:hover span { border-color: var(--c-brand); }
.picker__choice input:checked + span { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-white); }
.picker__choice input:focus-visible + span { outline: 3px solid var(--c-sky); outline-offset: 2px; }
.picker__go { width: 100%; }
.picker__note { margin-top: 10px; text-align: center; font-size: var(--fs-small); color: var(--c-ink-soft); }

/* ---------- the stop icon ---------- */
.stop { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--c-line); border-radius: 50%; background: var(--c-card); color: var(--c-ink); cursor: pointer; box-shadow: var(--shadow-s); transition: background var(--dur-fast) var(--ease-out); }
.stop:hover { background: var(--c-white); }
.stop--on-dark { background: rgba(13, 15, 38, .55); border-color: rgba(255, 255, 255, .28); color: var(--c-white); box-shadow: none; }
.stop--on-dark:hover { background: rgba(13, 15, 38, .8); }
.stop--on-photo { background: rgba(255, 253, 249, .92); border-color: transparent; }
/* the tour and tab stops (data-kit-tabs-stop) show one icon at a time, like h.stop() */
[data-kit-tabs-stop] .stop__play { display: none; }
[data-kit-tabs-stop][aria-pressed="true"] .stop__play { display: inline; }
[data-kit-tabs-stop][aria-pressed="true"] .stop__pause { display: none; }

/* ---------- the masthead ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--c-paper); box-shadow: 0 1px 0 var(--c-ink), 0 4px 0 var(--c-paper), 0 6px 0 var(--c-ink); }
.site-header__in { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); max-width: calc(var(--max-w) + 2 * var(--gutter)); height: var(--masthead-h); margin: 0 auto; padding: 0 var(--gutter); }
.site-header__logo { flex: none; display: block; line-height: 0; }
.site-header__logo img { display: block; height: 50px; width: auto; }
.site-header__nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); margin-left: auto; }
.nav__list { display: flex; gap: clamp(14px, 2vw, 30px); margin: 0; padding: 0; list-style: none; }
.nav__item a { display: inline-block; padding: 8px 0; color: var(--c-ink); font: 500 var(--fs-ui)/1.2 var(--font-ui); text-decoration: none; border-bottom: 2px solid transparent; }
.nav__item a:hover, .nav__item a[aria-current="page"] { border-bottom-color: var(--c-sky); }
.nav__item a[data-planned] { color: var(--c-ink); }
.site-header__phone { color: var(--c-ink); font: 600 var(--fs-ui)/1.2 var(--font-ui); text-decoration: none; padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid var(--c-line); white-space: nowrap; }
.site-header__phone:hover { color: var(--c-brand-text); }
.site-header__cta { flex: none; min-height: 44px; padding: 0 18px; }
.site-header__menu { display: none; }
@media (max-width: 1020px) {
  .site-header { --masthead-h: 64px; }
  .site-header__logo img { height: 40px; }
  .site-header__menu { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 0 12px; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-card); color: var(--c-ink); font: 600 .9375rem/1 var(--font-ui); cursor: pointer; }
  .site-header__bars { display: grid; gap: 5px; width: 18px; }
  .site-header__bars i { display: block; height: 2px; background: currentColor; border-radius: 1px; transition: transform var(--dur-fast) var(--ease-out); }
  .site-header[data-open] .site-header__bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .site-header[data-open] .site-header__bars i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  /* the open menu fills the screen below the masthead, on its paper; the page stays still under it (core.css) */
  .site-header__nav { display: none; position: fixed; inset: calc(var(--masthead-h) + 6px) 0 0 0; overflow-y: auto; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px var(--gutter) 32px; background: var(--c-paper); }
  .site-header[data-open] .site-header__nav { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__item a { display: block; padding: 14px 0; border-bottom: 1px solid var(--c-line); font-size: 1.0625rem; }
  .site-header__phone { padding: 16px 0 0; border: 0; font-size: 1.0625rem; }
  .site-header__cta { order: 2; }
  .site-header__menu { order: 3; margin-left: 0; }
  .site-header__in { gap: 20px; }
  .site-header__logo { margin-right: auto; }
}
/* phones and small tablets: the logo and the menu only; the call bar (under 900px) carries the main button */
@media (max-width: 760px) {
  .site-header__cta { display: none; }
}

/* ---------- the footer ---------- */
.site-footer { background: var(--c-ink); color: rgba(255, 255, 255, .86); padding: clamp(56px, 7vw, 96px) 0 0; font-size: var(--fs-small); }
.site-footer a { color: var(--c-white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: var(--space-5); max-width: calc(var(--max-w) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 5vw, 64px); }
.site-footer__logo img { display: block; height: 58px; width: auto; }
.site-footer__line { margin: 18px 0 24px; font-family: var(--font-display); font-size: 1.5rem; font-style: italic; color: var(--c-white); letter-spacing: -.01em; }
.site-footer__cta { min-height: 48px; }
.site-footer__title { margin: 0 0 12px; font: 700 .875rem/1.3 var(--font-ui); color: var(--c-sky); letter-spacing: .02em; }
.site-footer__col ul { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; }
.site-footer__col a[data-planned] { color: rgba(255, 255, 255, .86); }
.site-footer__hours li { display: flex; justify-content: space-between; gap: 16px; max-width: 300px; }
.site-footer__base { border-top: 1px solid rgba(255, 255, 255, .16); }
.site-footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; max-width: calc(var(--max-w) + 2 * var(--gutter)); margin: 0 auto; padding: 22px var(--gutter) 28px; }
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.site-footer__legal ul { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 860px) {
  .site-footer__in { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer__in { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: 72px; }
}

/* ---------- the FAQ ---------- */
.faq__item { border-top: 1px solid var(--c-line); }
.faq__item:last-child { border-bottom: 1px solid var(--c-line); }
a[href^="tel:"] { white-space: nowrap; } /* a phone number never breaks across lines */
.faq__item summary { position: relative; display: block; padding: 22px 48px 22px 0; cursor: pointer; list-style: none; font: 600 1.125rem/1.35 var(--font-ui); color: var(--c-ink); }
.faq__item summary::-webkit-details-marker { display: none; }
/* the open/close mark: a 40px brand disc with a plus, filled when open, where the plus turns into a minus */
.faq__item summary { padding-right: 64px; }
.faq__item summary::before { content: ""; position: absolute; right: 0; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: var(--c-brand-light); transition: background var(--dur-fast) var(--ease-out); }
.faq__item summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: linear-gradient(var(--c-brand), var(--c-brand)) center / 16px 2.5px no-repeat, linear-gradient(var(--c-brand), var(--c-brand)) center / 2.5px 16px no-repeat; transition: transform var(--dur-fast) var(--ease-out); }
.faq__item summary:hover::before, .faq__item[open] summary::before { background: var(--c-brand); }
.faq__item summary:hover::after { background: linear-gradient(var(--c-on-brand), var(--c-on-brand)) center / 16px 2.5px no-repeat, linear-gradient(var(--c-on-brand), var(--c-on-brand)) center / 2.5px 16px no-repeat; }
.faq__item[open] summary::after { background: linear-gradient(var(--c-on-brand), var(--c-on-brand)) center / 16px 2.5px no-repeat; transform: rotate(180deg); }
.faq__item summary:hover { color: var(--c-brand-text); }
.faq__item p { padding: 0 48px 24px 0; color: var(--c-ink-soft); max-width: 720px; }

/* ---------- the exit popup ---------- */
.exit { margin: auto; padding: 0; border: 0; background: transparent; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); }
.exit::backdrop { background: rgba(13, 15, 38, .62); }
.exit__in { position: relative; width: min(560px, calc(100vw - 32px)); padding: 40px 36px 28px; background: var(--c-paper); border-radius: var(--radius-l); box-shadow: var(--shadow-l); border-top: 6px double var(--c-ink); }
.exit[data-kit-on] .exit__in { animation: exit-in var(--dur-med) var(--ease-out); }
@keyframes exit-in { from { opacity: 0; transform: translateY(14px); } }
.exit__title { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem); padding-right: 24px; }
.exit__line { margin: 14px 0 22px; color: var(--c-ink-soft); }
.exit .picker { box-shadow: none; }
.exit__later { display: block; margin: 16px auto 0; padding: 8px 12px; border: 0; background: none; color: var(--c-ink-soft); font: 600 var(--fs-small)/1 var(--font-ui); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.exit__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--c-ink); font-size: 28px; line-height: 1; cursor: pointer; }
.exit__close:hover { background: var(--c-paper-alt); }
html[data-kit-modal] { overflow: hidden; }

/* ---------- the call bar on the phone ---------- */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--c-paper); border-top: 1px solid var(--c-ink); box-shadow: 0 -8px 24px -12px rgba(21, 24, 56, .3); transform: translateY(110%); transition: transform var(--dur-med) var(--ease-out); }
.callbar[data-kit-on] { transform: none; }
.callbar a { display: grid; place-items: center; min-height: 48px; border-radius: var(--radius-m); font: 600 1rem/1 var(--font-ui); text-decoration: none; }
.callbar__call { border: 1px solid var(--c-ink); color: var(--c-ink); background: var(--c-card); }
.callbar__cta { background: var(--c-brand); color: var(--c-on-brand); }
@media (min-width: 900px) { .callbar { display: none; } }

/* ---------- the thank-you page ---------- */
.thanks { max-width: 760px; margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gutter); }
.thanks__headline { font-size: var(--fs-h1); }
.thanks__body { margin-top: 20px; font-size: 1.1875rem; color: var(--c-ink-soft); }
.thanks__next { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin: 36px 0 0; padding: 0; list-style: none; }
.thanks__next li:first-child a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: var(--radius-m); background: var(--c-brand); color: var(--c-on-brand); font: 600 1.0625rem/1 var(--font-ui); text-decoration: none; }
.thanks__next li:first-child a:hover { background: var(--c-brand-dark); }
.thanks__next li + li a { font-weight: 600; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* a phrase kept on one line inside a headline (no awkward break) */
.nb { white-space: nowrap; }
@media (max-width: 420px) { .nb { white-space: normal; } }

/* ---------- Part 2: the components the other pages share. The home page keeps its own copies in home.css, which load
   after these, so nothing on it changes. ---------- */

/* the site's motif: the front page's double rule */
.drule { display: block; height: 6px; border: 0; border-top: 1px solid var(--c-ink); border-bottom: 2px solid var(--c-ink); }
.drule--on-ink { border-color: rgba(255, 255, 255, .7); }

/* the FAQ's two columns, as the home page draws them */
.faq__grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq__side { position: sticky; top: calc(var(--masthead-h) + 40px); }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } .faq__side { position: static; } }

/* the designed ground: the page's own broadsheet: paper-alt, its column rules, the double rule across its top */
.ground { position: relative; padding: var(--section-y) 0; background-color: var(--c-paper-alt); background-image: linear-gradient(90deg, rgba(21, 24, 56, .07) 1px, transparent 1px); background-size: calc(100% / 6) 100%; background-position: 50% 0; }
.ground::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-top: 1px solid var(--c-ink); border-bottom: 2px solid var(--c-ink); }
@media (max-width: 760px) { .ground { background-size: calc(100% / 3) 100%; } }

/* the closing band: a footage band, its words, and the picker or the main button in its box */
.closing { position: relative; display: flex; align-items: center; min-height: 600px; padding: var(--section-y) 0; overflow: hidden; background: var(--c-ink-deep); color: var(--c-white); isolation: isolate; }
.closing__media { position: absolute; inset: 0; z-index: -1; }
.closing__video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.closing__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 15, 38, .86) 0%, rgba(13, 15, 38, .66) 45%, rgba(13, 15, 38, .25) 100%); }
.closing__stop { position: absolute; top: 20px; right: 20px; z-index: 3; }
.closing__in { display: grid; grid-template-columns: 1fr minmax(320px, 480px); gap: clamp(28px, 5vw, 72px); align-items: center; }
.closing__title { font-size: var(--fs-h1); color: var(--c-white); }
.closing__line { margin-top: 18px; max-width: 520px; font-size: 1.1875rem; color: rgba(255, 255, 255, .9); }
.closing__go { display: grid; gap: 10px; padding: 22px; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius-l); box-shadow: var(--shadow-l); color: var(--c-ink); }
.closing__go .button { width: 100%; }
.closing__go p { text-align: center; font-size: var(--fs-small); color: var(--c-ink-soft); }
@media (max-width: 860px) {
  .closing { min-height: 0; }
  .closing__in { grid-template-columns: 1fr; }
}

/* compare: drag the line (kit compare), as the home page draws it */
.cmp { position: relative; aspect-ratio: 2 / 1; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-l); background: var(--c-ink); user-select: none; }
.cmp__side { position: absolute; inset: 0; }
.cmp__before { z-index: 0; }
.cmp__after { z-index: 1; clip-path: inset(0 0 0 calc(var(--kit-v, .45) * 100%)); }
.cmp__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.cmp__tag { position: absolute; top: 18px; z-index: 2; padding: 7px 12px; border-radius: var(--radius-s); background: var(--c-ink); color: var(--c-white); font: 700 .875rem/1.2 var(--font-ui); }
.cmp__before .cmp__tag { left: 18px; background: rgba(21, 24, 56, .78); }
.cmp__after .cmp__tag { right: 18px; }
.cmp__tag--brand { background: var(--c-brand); }
.cmp__cards { position: absolute; z-index: 2; display: grid; gap: 10px; width: min(34%, 320px); }
.cmp__before .cmp__cards { left: 4%; top: 50%; transform: translateY(-46%); }
.cmp__after .cmp__cards { right: 4%; top: 50%; transform: translateY(-46%); }
.cmp__card { display: grid; gap: 3px; padding: 12px 14px; border-radius: var(--radius-m); background: var(--c-card); box-shadow: var(--shadow-m); font-family: var(--font-ui); }
.cmp__card b { font-size: .9688rem; line-height: 1.25; }
.cmp__card > span { font-size: .8438rem; color: var(--c-ink-soft); line-height: 1.3; }
.cmp__range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cmp__handle { position: absolute; top: 0; bottom: 0; left: calc(var(--kit-v, .45) * 100%); z-index: 3; width: 0; pointer-events: none; }
.cmp__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: var(--c-sky); box-shadow: 0 0 0 1px rgba(13, 15, 38, .25); }
.cmp__knob { position: absolute; top: 50%; left: 0; display: grid; place-items: center; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--c-card); color: var(--c-ink); border: 3px solid var(--c-sky); box-shadow: var(--shadow-l); }
.cmp__hint { position: absolute; top: calc(50% + 36px); left: 0; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: var(--c-ink); color: var(--c-white); font: 600 .8125rem/1.2 var(--font-ui); transition: opacity var(--dur-med) var(--ease-out); }
.cmp[data-kit-touched] .cmp__hint { opacity: 0; }
.cmp__range:focus-visible ~ .cmp__handle .cmp__knob { outline: 3px solid var(--c-sky); outline-offset: 3px; }
[data-kit-whole] { transition: opacity .2s, visibility 0s; }
[data-kit-under] { opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }

/* the paper phone and its chat (kit chat), as the home page draws them */
.phone { position: absolute; left: 50%; top: 50%; z-index: 2; display: flex; flex-direction: column; width: 318px; height: 560px; transform: translate(-50%, -50%); border-radius: 30px; background: var(--c-card); border: 8px solid var(--c-ink); box-shadow: var(--shadow-l); overflow: hidden; }
.phone__head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; border-bottom: 1px solid var(--c-line); font-family: var(--font-ui); }
.phone__head > span:last-child { display: grid; gap: 1px; }
.phone__head b { font-size: .9688rem; }
.phone__head span span { font-size: .8125rem; color: var(--c-ink-soft); }
.phone__avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-ink); color: var(--c-white); font: 600 .8125rem/1 var(--font-ui); }
.chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px; overflow: hidden; font-family: var(--font-ui); opacity: calc(1 - var(--kit-out, 0)); }
.chat [data-kit-msg] { opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); flex: none; }
.chat__msg { max-width: 84%; padding: 9px 13px; border-radius: 14px; font-size: .9375rem; line-height: 1.35; }
.chat__msg--in { align-self: flex-start; background: var(--c-paper-alt); color: var(--c-ink); border-bottom-left-radius: 4px; }
.chat__msg--out { align-self: flex-end; background: var(--c-brand); color: var(--c-on-brand); border-bottom-right-radius: 4px; }
.chat__typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--c-paper-alt); }
.chat__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ink-soft); animation: dot 1s infinite ease-in-out; }
.chat__typing i:nth-child(2) { animation-delay: .15s; }
.chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat__check { display: grid; gap: 8px; padding: 2px 2px 4px; font-size: .875rem; font-weight: 600; }
.chat__bar { display: block; height: 6px; border-radius: 3px; background: var(--c-paper-alt); overflow: hidden; position: relative; }
.chat__bar::after { content: ""; position: absolute; inset: 0; width: calc(var(--kit-fill, 0) * 100%); background: var(--c-brand); border-radius: 3px; }

/* the person card: Ross Hudson's real photo beside his own facts */
.person { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 22px; box-shadow: var(--shadow-m); }
.person__face { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.person h3 { font-size: 1.625rem; }
.person__role { margin: 2px 0 8px; font-weight: 700; color: var(--c-brand-text); }
.person p { font-size: 1rem; color: var(--c-ink-soft); }
.person a { font-weight: 600; word-break: break-word; }

/* the form (kit form), Contact */
.form { display: grid; gap: 24px; }
.form__marks { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.form__marks li { height: 3px; border-radius: 2px; background: var(--c-line); }
.form__marks li[aria-current="step"], .form__marks li[data-kit-past] { background: var(--c-brand); }
.form__step { display: grid; gap: 18px; margin: 0; padding: 0; border: 0; min-width: 0; }
.form__legend { padding: 0; margin-bottom: 4px; font: var(--fw-display) var(--fs-h3)/1.2 var(--font-display); letter-spacing: var(--track-display); color: var(--c-ink); }
.form__choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.form__choice { position: relative; display: block; cursor: pointer; }
.form__choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.form__choice span { display: flex; align-items: center; min-height: 64px; padding: 12px 16px; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); font: 600 1rem/1.3 var(--font-ui); color: var(--c-ink); transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.form__choice:hover span { border-color: var(--c-brand); }
.form__choice input:checked + span { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-white); }
.form__choice input:focus-visible + span { outline: 3px solid var(--c-sky); outline-offset: 2px; }
.form__field { display: grid; gap: 6px; }
.form__field label { font: 600 1rem/1.3 var(--font-ui); }
.form__field input, .form__field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-card); color: var(--c-ink); font: 400 1.0625rem/1.4 var(--font-text); }
.form__field textarea { min-height: 112px; resize: vertical; }
.form__field input:focus-visible, .form__field textarea:focus-visible { outline: 3px solid var(--c-sky); outline-offset: 1px; border-color: var(--c-brand); }
.form__field[data-kit-invalid] input, .form__field[data-kit-invalid] textarea { border-color: var(--c-accent-text); }
.form__error { font-size: var(--fs-small); font-weight: 600; color: var(--c-accent-text); }
.form__go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form__back { padding: 10px 4px; border: 0; background: none; color: var(--c-ink-soft); font: 600 1rem/1 var(--font-ui); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.form[data-kit-sending] .button { opacity: .7; }
@media (max-width: 520px) { .form__choices { grid-template-columns: 1fr; } }
