/* design\components.css: the CSS of the components in design\components.md, the director's. 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. */

/* The page frame */
.wrap { box-sizing: border-box; width: 100%; max-width: calc(var(--max-w) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section__head { max-width: 46rem; display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
.section__head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section__line { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: var(--c-ink-soft); text-wrap: pretty; }
.band { background: var(--c-brand-dark); color: var(--c-on-ink); }
.band h2, .band h3 { color: var(--c-on-ink); }
.band .section__line { color: var(--c-brand-on-ink); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; box-sizing: border-box; min-height: 52px; padding: 0.7em 1.5em; border: 0; border-radius: 999px; font-family: var(--font-ui); font-size: 1.0625rem; font-weight: 800; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast); }
.button--main { background: var(--c-brand); color: var(--c-on-brand); box-shadow: 0 6px 0 -1px color-mix(in srgb, var(--c-brand-dark) 55%, var(--c-brand)); }
.button--main:hover { transform: translateY(-2px); box-shadow: 0 8px 0 -1px color-mix(in srgb, var(--c-brand-dark) 55%, var(--c-brand)); }
.button--main:active { transform: translateY(3px); box-shadow: 0 3px 0 -1px color-mix(in srgb, var(--c-brand-dark) 55%, var(--c-brand)); }
.button--small { min-height: 44px; padding: 0.5em 1.15em; font-size: var(--fs-ui); box-shadow: none; }
.button--small:hover, .button--small:active { box-shadow: none; }
.button--line { background: transparent; color: var(--c-brand-dark); box-shadow: inset 0 0 0 2px var(--c-brand-dark); }
.button__arrow { width: 1.15em; height: 0.8em; background: currentColor; clip-path: polygon(0 42%, 68% 42%, 52% 8%, 62% 0, 100% 50%, 62% 100%, 52% 92%, 68% 58%, 0 58%); }
.link-more { font-weight: 800; color: inherit; text-underline-offset: 0.2em; }

/* The fear-removing line under a main button */
.promise { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.15em 1.1em; margin: 0; padding: 0; list-style: none; font-size: var(--fs-small); font-weight: 700; color: var(--c-ink-soft); }
.promise li { display: inline-flex; align-items: center; gap: 0.4em; }
.promise li::before { content: ""; width: 0.72em; height: 0.42em; border-left: 2.5px solid var(--c-brand-text); border-bottom: 2.5px solid var(--c-brand-text); transform: rotate(-45deg) translate(1px, -2px); }

/* The clients picker */
.picker { display: grid; gap: var(--space-3); box-sizing: border-box; padding: clamp(1rem, 0.7rem + 1vw, 1.5rem); background: var(--c-card); border-radius: var(--radius-l); box-shadow: var(--shadow-m); }
.picker__set { min-width: 0; margin: 0; padding: 0; border: 0; }
.picker__legend { padding: 0 0 var(--space-2); font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--c-brand-dark); }
.picker__choices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
.picker__choice { position: relative; display: block; cursor: pointer; }
.picker__choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.picker__choice span { display: grid; place-items: center; min-height: 52px; border-radius: var(--radius-s); background: var(--c-paper-alt); font-weight: 800; font-size: 1.125rem; color: var(--c-brand-dark); transition: background-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.picker__choice:hover span { background: var(--c-brand-light); }
.picker__choice input:checked + span { background: var(--c-brand-dark); color: var(--c-on-ink); }
.picker__choice input:focus-visible + span { outline: 3px solid var(--c-brand-text); outline-offset: 2px; }
.picker__go { width: 100%; }

/* The stop icon */
.stop { position: absolute; z-index: 6; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--c-card); color: var(--c-brand-dark); box-shadow: var(--shadow-s); cursor: pointer; }
.stop:hover { background: var(--c-brand-light); }

/* The hum lines */
.hum { display: block; width: 44px; height: auto; overflow: visible; fill: none; stroke-linecap: round; stroke-width: 6; }
.hum path { stroke: var(--c-brand); stroke-dasharray: 100; stroke-dashoffset: var(--hum-off, 0); }
.hum path:nth-child(2) { stroke: var(--c-brand-dark); }
.hum path:nth-child(3) { stroke: var(--c-accent); }
.hum--on-ink path:nth-child(2) { stroke: var(--c-brand-on-ink); }
.sun { position: absolute; display: block; pointer-events: none; overflow: visible; fill: none; stroke-linecap: round; stroke-width: 9; }
.sun__b { stroke: var(--c-brand); }
.sun__s { stroke: var(--c-brand-dark); }
.sun__m { stroke: var(--c-accent); }

/* The header */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: var(--space-4); box-sizing: border-box; min-height: 84px; padding: 0.4rem var(--gutter); background: var(--c-paper); }
.site-header__logo { flex: none; display: block; line-height: 0; }
.site-header__logo img { display: block; width: auto; height: 68px; }
.site-header__nav { margin-right: auto; }
.nav__list { display: flex; gap: clamp(0.25rem, 1vw, 1.25rem); margin: 0; padding: 0; list-style: none; }
.nav__item a { display: block; padding: 0.55rem 0.6rem; border-radius: 10px; font-weight: 700; color: var(--c-ink); text-decoration: none; }
.nav__item a:not([data-planned]):hover { background: var(--c-paper-alt); }
.nav__item a[aria-current="page"] { color: var(--c-brand-text); }
.site-header__phone { font-weight: 800; color: var(--c-brand-dark); text-decoration: none; white-space: nowrap; }
.site-header__phone:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.site-header__menu { display: none; min-height: 44px; padding: 0 1rem; border: 2px solid var(--c-brand-dark); border-radius: 999px; background: transparent; color: var(--c-brand-dark); font: 800 var(--fs-ui) var(--font-ui); cursor: pointer; }
@media (max-width: 1080px) {
  .site-header { gap: var(--space-2); min-height: 72px; }
  .site-header__logo img { height: 56px; }
  .site-header__menu { display: block; order: 3; }
  .site-header__phone { display: none; }
  .site-header__cta { margin-left: auto; }
  .site-header__nav { position: absolute; left: 0; right: 0; top: 100%; display: none; margin: 0; padding: var(--space-2) var(--gutter) var(--space-3); background: var(--c-paper); box-shadow: var(--shadow-m); }
  .site-header__nav[data-open], .site-header[data-menu-open] .site-header__nav, .site-header__menu[aria-expanded="true"] ~ .site-header__nav { display: block; }
  .nav__list { flex-direction: column; }
  .nav__item a { padding: 0.8rem 0.6rem; font-size: 1.125rem; }
}
@media (max-width: 480px) {
  .site-header__cta { display: none; }
  .site-header__menu { margin-left: auto; }
}

/* The footer */
.site-footer { background: var(--c-paper-alt); color: var(--c-ink); font-size: var(--fs-small); }
.site-footer__in { box-sizing: border-box; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.4fr; gap: var(--space-4); max-width: calc(var(--max-w) + 2 * var(--gutter)); margin-inline: auto; padding: var(--space-6) var(--gutter) var(--space-5); }
.site-footer__logo img { display: block; width: auto; height: 96px; }
.site-footer__line { margin-top: var(--space-2); max-width: 22ch; font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; color: var(--c-brand-dark); line-height: 1.3; }
.site-footer__title { margin-bottom: var(--space-1); font-weight: 800; color: var(--c-brand-dark); }
.site-footer__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.15rem; }
.site-footer a { color: var(--c-ink); text-underline-offset: 0.2em; display: inline-block; min-height: 28px; }
.site-footer__contact { display: grid; align-content: start; gap: 0.15rem; }
.site-footer__contact address { font-style: normal; }
.site-footer__phone { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; color: var(--c-brand-dark) !important; text-decoration: none; }
.site-footer__legal { box-sizing: border-box; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); justify-content: space-between; max-width: calc(var(--max-w) + 2 * var(--gutter)); margin-inline: auto; padding: var(--space-3) var(--gutter) var(--space-4); border-top: 1px solid var(--c-line); color: var(--c-ink-soft); }
.site-footer__legal ul { display: flex; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
@media (max-width: 960px) {
  .site-footer__in { grid-template-columns: 1fr 1fr; }
  .site-footer__brand, .site-footer__contact { grid-column: 1 / -1; }
}

/* The exit popup */
.exit { width: min(560px, calc(100vw - 2rem)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: var(--radius-l); background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-l); }
.exit::backdrop { background: color-mix(in srgb, var(--c-ink) 55%, transparent); }
.exit__in { position: relative; display: grid; gap: var(--space-2); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
.exit__line { color: var(--c-ink-soft); }
.exit .picker { margin-top: var(--space-2); box-shadow: none; }
.exit__close { position: absolute; top: 0.6rem; right: 0.6rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--c-paper-alt); color: var(--c-brand-dark); font-size: 1.5rem; line-height: 1; cursor: pointer; }
html[data-kit-modal] { overflow: hidden; }

/* The call bar on the phone */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.5fr; gap: 0.5rem; padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom)); background: var(--c-card); box-shadow: 0 -6px 20px rgba(70, 54, 28, 0.16); 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: 999px; font-weight: 800; text-decoration: none; }
.callbar__call { color: var(--c-brand-dark); box-shadow: inset 0 0 0 2px var(--c-brand-dark); }
.callbar__cta { background: var(--c-brand); color: var(--c-on-brand); }

/* The FAQ */
.faq-list { display: grid; gap: 0.75rem; max-width: 52rem; margin-inline: auto; }
.faq-list details { background: var(--c-card); border-radius: var(--radius-m); box-shadow: var(--shadow-s); }
.faq-list summary { position: relative; display: block; padding: 1.1rem 3.5rem 1.1rem 1.5rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--c-brand-dark); line-height: 1.25; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 1.4rem; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 3px solid var(--c-brand-text); border-bottom: 3px solid var(--c-brand-text); transform: rotate(45deg); transition: transform var(--dur-fast); }
.faq-list details[open] summary::after { transform: rotate(-135deg) translate(-4px, -4px); }
.faq-list .faq-a { padding: 0 1.5rem 1.35rem; color: var(--c-ink); }

/* The skeleton's own pages */
.thanks { box-sizing: border-box; max-width: 44rem; margin-inline: auto; padding: var(--section-y) var(--gutter); display: grid; gap: var(--space-3); text-align: center; justify-items: center; }
.thanks__next { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-4); margin: 0; padding: 0; list-style: none; }
.thanks__next li:first-child a { display: inline-flex; align-items: center; min-height: 52px; padding: 0.7em 1.5em; border-radius: 999px; background: var(--c-brand); color: var(--c-on-brand); font-weight: 800; text-decoration: none; }
.thanks__next li:not(:first-child) a { display: inline-flex; align-items: center; min-height: 52px; font-weight: 800; }
.legal h1 { font-size: var(--fs-h2); }
.legal h2 { font-size: var(--fs-h3); }

/* Part 2: the home page's close and the line over footage, the same rules, for every page */
.promise--on-photo { color: var(--c-on-ink); }
.promise--on-photo li::before { border-color: var(--c-accent); }
.close { position: relative; overflow: hidden; display: grid; align-items: center; min-height: clamp(640px, 52vw, 760px); padding-block: var(--section-y); background: var(--c-ink); color: var(--c-on-ink); }
.close__ground { position: absolute; inset: 0; }
.close__ground video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.close__ground::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 90%, transparent) 0%, color-mix(in srgb, var(--c-ink) 74%, transparent) 40%, transparent 68%); }
.close__stop { right: var(--gutter); top: var(--space-4); }
.close__in { position: relative; }
.close__words { display: grid; gap: var(--space-2); max-width: 33rem; }
.close__words h2 { color: var(--c-on-ink); }
.close__words .section__line { color: var(--c-on-ink); }
.close__hum { width: 72px; }
@media (max-width: 640px) {
  .close { min-height: 0; padding-block: 0 var(--space-5); align-items: end; }
  .close__ground { position: relative; inset: auto; height: 300px; }
  .close__ground::after { background: linear-gradient(180deg, transparent 55%, var(--c-ink) 100%); }
  .close__in { margin-top: var(--space-3); }
  .close__stop { top: 12px; right: 12px; }
}

/* The designed ground: Oat or Slate, the hum-line sun rising faint from the foot of the part, the hum lines at a corner */
.ground { position: relative; overflow: hidden; isolation: isolate; background: var(--c-paper-alt); }
.ground__sun { z-index: -1; left: 50%; bottom: 0; width: max(1180px, 118%); max-width: none; translate: -50% 16%; opacity: 0.2; }
.ground__hum { position: absolute; z-index: -1; top: var(--space-5); right: var(--gutter); width: clamp(64px, 6vw, 112px); }
.ground--slate { background: var(--c-brand-dark); color: var(--c-on-ink); }
.ground--slate h2, .ground--slate h3 { color: var(--c-on-ink); }
.ground--slate .section__line { color: var(--c-brand-on-ink); }
.ground--slate .ground__sun { opacity: 0.3; }
.ground--slate .sun__s { stroke: var(--c-brand-on-ink); }

/* The info card: one service on a solid card over a photo */
.infocard { display: grid; align-content: start; gap: 0.2rem; box-sizing: border-box; padding: 0.75rem 1rem 0.85rem; background: var(--c-card); border-radius: 18px; box-shadow: var(--shadow-m); font-size: var(--fs-small); line-height: 1.38; color: var(--c-ink-soft); }
.infocard b { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; line-height: 1.2; color: var(--c-brand-dark); }

/* The path card: one new customer's path, a kit sequence with the hold */
.pathcard { position: relative; display: grid; box-sizing: border-box; padding: 1.1rem 1.25rem 1.25rem; background: var(--c-card); border-radius: var(--radius-m); box-shadow: var(--shadow-l); color: var(--c-ink); }
.pathcard__head { margin: 0 0 0.35rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--c-brand-dark); }
.pathcard__row { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; padding: 0.6rem 0; border-top: 1px solid var(--c-line); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); }
.pathcard__row b { font-weight: 800; line-height: 1.3; }
.pathcard__row time { font-size: var(--fs-small); font-weight: 700; color: var(--c-ink-soft); font-variant-numeric: tabular-nums; }
.pathcard__tick { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--c-brand-light); }
.pathcard__tick::after { content: ""; position: absolute; left: 10px; top: 10px; width: 12px; height: 6px; border-left: 2.5px solid var(--c-brand-dark); border-bottom: 2.5px solid var(--c-brand-dark); transform: rotate(-45deg); }
.pathcard__row--booked { margin-top: 0.5rem; padding: 0.85rem 1rem; border: 0; border-radius: var(--radius-s); background: var(--c-brand); color: var(--c-on-brand); }
.pathcard__row--booked .pathcard__tick { background: var(--c-accent); }
.pathcard__row--booked .pathcard__tick::after { border-color: var(--c-ink); }
.pathcard__row--booked b { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; }
.pathcard__hum { position: absolute; right: -10px; top: -40px; width: 48px; --hum-off: calc((1 - var(--kit-in, 1)) * 100); }
/* The path card as a row of chips along the foot of a picture, joined by a Sky line that draws in as each lands */
@media (min-width: 1101px) {
  .pathcard--row { display: flex; align-items: stretch; gap: 26px; padding: 0; background: none; border-radius: 0; box-shadow: none; }
  .pathcard--row .pathcard__head { display: none; }
  .pathcard--row .pathcard__row { flex: 1 1 0; grid-template-columns: 30px minmax(0, 1fr); gap: 0.6rem; padding: 0.8rem 0.95rem; border: 0; border-radius: var(--radius-s); background: var(--c-card); box-shadow: var(--shadow-m); }
  .pathcard--row .pathcard__tick { width: 30px; height: 30px; }
  .pathcard--row .pathcard__tick::after { left: 9px; top: 9px; }
  .pathcard--row .pathcard__row time { display: none; }
  .pathcard--row .pathcard__row + .pathcard__row::before { content: ""; position: absolute; right: 100%; top: 50%; width: 26px; height: 3px; margin-top: -1.5px; background: var(--c-brand); transform: scaleX(var(--kit-in, 1)); transform-origin: 0 50%; }
  .pathcard--row .pathcard__row--booked { margin: 0; flex-grow: 1.15; background: var(--c-brand); }
  .pathcard--row .pathcard__row--booked b { font-size: 1.1875rem; }
}

/* The framed photo */
.frame { position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--c-paper-alt); box-shadow: var(--shadow-m); }
.frame > img, .frame > video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
