/* 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 uses these classes as they are; a page's own CSS only places and sizes its parts,
   with the tokens of system.css. Crisp 1px rings and distinct fills, never a drop shadow (the brand guide). */

/* ---- layout ---- */
.wrap { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.section { position: relative; padding-block: var(--section-y); }
.section--grid { background: var(--grid), var(--c-ink); }
.section--light { background: var(--c-paper); color: var(--c-body-light); }
.section--light h2, .section--light h3 { color: var(--c-heading-light); }
.section--light a { color: var(--c-brand-text); }

/* ---- the part's head: one headline, one line ---- */
.head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.head--center { margin-inline: auto; text-align: center; }
.head__title { margin: 0; font-size: var(--fs-h2); font-weight: var(--fw-display); line-height: var(--lh-tight); letter-spacing: -0.025em; }
.head__line { margin: var(--space-3) 0 0; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--c-text-soft); max-width: 40rem; }
.head--center .head__line { margin-inline: auto; }
.section--light .head__line { color: var(--c-body-light); }

/* ---- buttons ---- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; box-sizing: border-box; min-height: 3.25rem; padding: 0.85rem 1.5rem; border: 0; border-radius: var(--radius-m); font: 700 1.1875rem/1.2 var(--font-ui); letter-spacing: -0.005em; text-decoration: none; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.button--main { background: var(--c-brand); color: var(--c-on-brand); }
.button--main:hover { background: color-mix(in srgb, var(--c-brand) 88%, var(--c-paper)); }
.button--main:active { transform: translateY(1px); }
.button--line { background: transparent; color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-brand); }
.button--line:hover { background: rgba(115, 103, 240, 0.16); }
.button__arrow { flex: none; transition: transform var(--dur-fast) var(--ease-out); }
.button:hover .button__arrow { transform: translateX(3px); }

/* ---- small mono label (a time stamp, a status), never above a headline ---- */
.mono { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.01em; }

/* ---- the live line: the site's motif ---- */
.liveline { display: block; overflow: visible; }
.liveline__path { fill: none; stroke: var(--c-brand); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.liveline__head { fill: var(--c-accent); filter: drop-shadow(0 0 6px rgba(0, 207, 221, 0.65)); }

/* ---- the logo ---- */
.site-header__logo, .site-footer__logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--c-text); }
.logo__mark { width: 38px; height: auto; flex: none; }
.logo__word { font: 800 1.375rem/1 var(--font-display); letter-spacing: -0.02em; color: var(--c-text); }

/* ---- the header ---- */
.skip { background: var(--c-brand); color: var(--c-on-brand); }
.site-header { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: var(--space-4); box-sizing: border-box; height: 72px; padding-inline: var(--gutter); background: rgba(13, 14, 21, 0.86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--c-rule); }
.site-header__nav { margin-left: auto; }
.nav__list { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.nav__item a { display: block; padding: 0.55rem 0.85rem; border-radius: var(--radius-s); font: 600 var(--fs-ui)/1.2 var(--font-ui); color: var(--c-text-soft); text-decoration: none; }
.nav__item a:hover { color: var(--c-text); background: rgba(255, 255, 255, 0.06); }
.nav__item a[aria-current="page"] { color: var(--c-text); box-shadow: inset 0 -1px 0 var(--c-brand); }
.nav__item a[data-planned] { opacity: 1; }
.site-header__cta { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.55rem 1.05rem; border-radius: var(--radius-m); font: 700 var(--fs-ui)/1.2 var(--font-ui); color: var(--c-text); text-decoration: none; background: rgba(115, 103, 240, 0.18); box-shadow: inset 0 0 0 1px var(--c-brand); white-space: nowrap; }
.site-header__cta:hover { background: rgba(115, 103, 240, 0.32); }
.site-header__menu { display: none; margin-left: auto; min-height: 2.75rem; padding: 0.5rem 0.9rem; border: 0; border-radius: var(--radius-m); background: transparent; color: var(--c-text); font: 600 var(--fs-ui)/1 var(--font-ui); box-shadow: inset 0 0 0 1px var(--c-rule); cursor: pointer; }
@media (max-width: 960px) {
  .site-header { flex-wrap: wrap; height: auto; min-height: 64px; padding-block: 0.6rem; }
  .site-header__menu { display: inline-flex; align-items: center; }
  .site-header__cta { display: none; }
  .site-header__nav { display: none; flex-basis: 100%; margin: 0; }
  .site-header[data-open] .site-header__nav { display: block; }
  .site-header[data-open] .site-header__cta { display: inline-flex; margin-bottom: 0.6rem; }
  .nav__list { flex-direction: column; padding-block: 0.5rem; }
  .nav__item a { padding: 0.8rem 0.25rem; font-size: 1.0625rem; }
  .logo__mark { width: 32px; }
  .logo__word { font-size: 1.25rem; }
}

/* ---- the stop icon ---- */
.stop { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--radius-m); background: rgba(13, 14, 21, 0.62); color: var(--c-text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer; z-index: 6; }
/* on a solid panel (the calculator) the icon needs no blur, and a blur there redraws the picture under it */
.stop--solid { background: var(--c-panel-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
.stop:hover { box-shadow: inset 0 0 0 1px var(--c-brand); }

/* ---- the clients picker (the form box) ---- */
.picker { box-sizing: border-box; width: 100%; max-width: 31rem; padding: 1.15rem; border-radius: var(--radius-l); background: rgba(13, 14, 21, 0.7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); }
.picker__set { margin: 0; padding: 0; border: 0; min-width: 0; }
.picker__legend { padding: 0; margin-bottom: 0.7rem; font: 700 1rem/1.3 var(--font-ui); color: var(--c-text); }
/* the level meter: one joined strip of five cells, each bar a step higher, the last one capped by the peak arrow */
.picker__choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: hidden; border-radius: var(--radius-s); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.picker__choice { position: relative; display: block; cursor: pointer; }
.picker__choice + .picker__choice::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; z-index: 1; width: 1px; background: rgba(255, 255, 255, 0.14); pointer-events: none; }
.picker__choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.picker__choice span { display: grid; grid-template-rows: 2rem auto; justify-items: center; align-items: end; gap: 0.45rem; padding: 0.65rem 0 0.6rem; background: rgba(255, 255, 255, 0.035); color: rgba(255, 255, 255, 0.4); transition: background-color var(--dur-fast), box-shadow var(--dur-fast); }
.picker__choice b { font: 700 1.125rem/1 var(--font-ui); color: var(--c-text); }
.picker__bar { position: relative; display: block; width: 0.5rem; height: calc(var(--lv) * 2rem); border-radius: 2px 2px 0 0; background: currentColor; }
.picker__choice:nth-child(1) { --lv: 0.22; }
.picker__choice:nth-child(2) { --lv: 0.38; }
.picker__choice:nth-child(3) { --lv: 0.56; }
.picker__choice:nth-child(4) { --lv: 0.74; }
.picker__choice:nth-child(5) { --lv: 0.62; }
.picker__peak { position: absolute; left: 50%; bottom: calc(100% - 3px); width: 0.95rem; height: 0.95rem; margin-left: -0.62rem; fill: currentColor; }
.picker__choice:hover span { background: rgba(115, 103, 240, 0.14); color: rgba(255, 255, 255, 0.6); }
.picker__choice input:checked + span { background: rgba(115, 103, 240, 0.3); box-shadow: inset 0 0 0 1.5px var(--c-brand); color: var(--c-accent); }
.picker__choice:has(~ .picker__choice input:checked) span { color: rgba(0, 207, 221, 0.6); }
.picker__choice input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: -4px; }
.picker__go { width: 100%; margin-top: 0.85rem; }
.picker__line { margin: 0.7rem 0 0; text-align: center; font-size: var(--fs-small); color: var(--c-text-soft); }

/* ---- the booking readout: a stamp, the booking, and the live line turning up into the peak arrow, over footage ---- */
.live-card { display: grid; gap: 0.3rem; box-sizing: border-box; width: max-content; max-width: 20rem; padding: 0.7rem 0.9rem 0.55rem; border-radius: var(--radius-s); background: var(--c-glass); box-shadow: inset 0 0 0 1px var(--c-rule-strong), inset 0 1px 0 rgba(255, 255, 255, 0.14); backdrop-filter: blur(16px) saturate(1.25); -webkit-backdrop-filter: blur(16px) saturate(1.25); color: var(--c-text); }
.live-card__stamp { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1.3; color: var(--c-accent); }
.live-card__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 0 3px rgba(40, 199, 111, 0.22); }
.live-card__title { font: 700 1.0625rem/1.3 var(--font-ui); color: var(--c-text); }
/* the line draws itself as the card arrives with its slide (the kit's --kit-in), then turns up into the arrow */
.live-card__line { display: flex; align-items: flex-end; height: 18px; margin-top: 0.1rem; color: var(--c-accent); }
.live-card__line > i { flex: 1; height: 1.5px; margin-bottom: 1px; background: linear-gradient(90deg, rgba(0, 207, 221, 0), currentColor 70%); transform-origin: left; transform: scaleX(var(--kit-in, 1)); }
.live-card__line > svg { flex: none; width: 26px; height: 18px; overflow: visible; opacity: clamp(0, (var(--kit-in, 1) - 0.72) * 4, 1); }
.live-card__line path:first-child { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.live-card__line path + path { fill: currentColor; }

/* ---- the booked strip: a booking landing on a photo (who) ---- */
.booked { display: inline-grid; gap: 0.15rem; box-sizing: border-box; max-width: 100%; padding: 0.4rem 0.7rem 0.45rem 0.65rem; border-radius: var(--radius-s); background: rgba(13, 14, 21, 0.76); box-shadow: inset 0 0 0 1px var(--c-rule-strong), inset 0 1px 0 rgba(255, 255, 255, 0.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--c-text); }
.booked__what { font: 700 0.875rem/1.25 var(--font-ui); }
.booked__when { display: flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1.25; color: var(--c-accent); white-space: nowrap; }
.booked__dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--c-green); }

/* ---- the panel and the metric card (the guide's: a 4px green left edge) ---- */
.panel { position: relative; border-radius: var(--radius-l); background: var(--c-panel); box-shadow: inset 0 0 0 1px var(--c-rule); }
.metric { padding: 0.9rem 1rem; border-radius: var(--radius-m); background: var(--c-panel); box-shadow: inset 4px 0 0 var(--c-green), inset 0 0 0 1px var(--c-rule); }
.metric b { display: block; font: 800 1.75rem/1 var(--font-display); color: var(--c-text); letter-spacing: -0.02em; }
.metric span { font-size: var(--fs-small); color: var(--c-text-soft); }

/* ---- a framed picture (a clip or a photo in a 1px ring) ---- */
.frame { position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--c-panel); box-shadow: inset 0 0 0 1px var(--c-rule); isolation: isolate; }
.frame > video, .frame > img, .frame > picture > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; z-index: -1; }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); pointer-events: none; }

/* ---- the closing band (footage, the picker, the idea's line) ---- */
.band { position: relative; overflow: hidden; isolation: isolate; }
.band > video, .band > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 75% at 50% 62%, rgba(13, 14, 21, 0.86) 0%, rgba(13, 14, 21, 0.6) 55%, rgba(13, 14, 21, 0.25) 100%); }

/* ---- FAQ ---- */
.faq { max-width: 52rem; margin-inline: auto; }
.faq details { border-top: 1px solid var(--c-line); }
.faq details:last-child { border-bottom: 1px solid var(--c-line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0.25rem; font: 700 1.125rem/1.35 var(--font-display); color: var(--c-heading-light); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 0.7rem; height: 0.7rem; border-right: 2px solid var(--c-brand-text); border-bottom: 2px solid var(--c-brand-text); transform: rotate(45deg) translateY(-3px); transition: transform var(--dur-fast) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { margin: 0 0 1.35rem; padding-inline: 0.25rem; max-width: 44rem; color: var(--c-body-light); }

/* ---- the main button with its line under it (from home.css, the same rules, for every page) ---- */
.cta-row { display: grid; justify-items: center; gap: 0.6rem; margin-top: 2rem; }
.cta-row--left { justify-items: start; }
.cta-row__line { margin: 0; font-size: var(--fs-small); color: var(--c-text-soft); }

/* ---- the footer ---- */
.site-footer { position: relative; display: grid; grid-template-columns: 1.4fr repeat(2, minmax(0, 0.7fr)) 1fr; gap: var(--space-5) var(--space-4); box-sizing: border-box; max-width: var(--max-w); margin-inline: auto; padding: clamp(3.5rem, 7vw, 5rem) var(--gutter) 2rem; color: var(--c-text-soft); }
.site-footer::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: calc(var(--gutter) + 26px); height: 1px; background: linear-gradient(90deg, var(--c-rule) 0%, var(--c-rule) 70%, var(--c-brand) 100%); }
.site-footer::after { content: ""; position: absolute; top: -12px; right: var(--gutter); width: 24px; height: 24px; background: var(--c-accent); clip-path: path("M7 4H20V17L15.5 12.5L7.5 20.5L3.5 16.5L11.5 8.5Z"); filter: drop-shadow(0 0 6px rgba(0, 207, 221, 0.6)); }
.site-footer__line { margin: 1rem 0 0; max-width: 22rem; }
.site-footer__title { margin: 0 0 0.75rem; font: 700 var(--fs-ui)/1.2 var(--font-ui); color: var(--c-text); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 0.45rem; }
.site-footer a { color: var(--c-text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--c-text); text-decoration: underline; }
.site-footer__contact { display: grid; align-content: start; gap: 0.45rem; }
.site-footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--c-rule); font-size: var(--fs-small); color: var(--c-text-meta); }
.site-footer__legal p { margin: 0; }
.site-footer__legal ul { display: flex; gap: 1.25rem; }
.site-footer__legal li + li { margin-top: 0; }
@media (max-width: 760px) {
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* ---- the exit popup ---- */
.exit { margin: auto; padding: 0; border: 0; max-width: min(36rem, calc(100vw - 2rem)); max-height: none; background: transparent; color: var(--c-text-soft); }
.exit::backdrop { background: rgba(5, 6, 10, 0.72); backdrop-filter: blur(4px); }
.exit__in { position: relative; overflow: hidden; padding: 2.25rem clamp(1.25rem, 4vw, 2.25rem) 1.75rem; border-radius: var(--radius-l); background: var(--grid), var(--c-panel); box-shadow: inset 0 0 0 1px var(--c-rule-strong); opacity: 0; transform: translateY(10px); transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out); }
.exit[data-kit-on] .exit__in { opacity: 1; transform: none; }
.exit__line { position: absolute; left: 0; right: 0; top: 0.75rem; width: 100%; height: 5.5rem; opacity: 0.85; pointer-events: none; }
.exit__title { position: relative; margin: 2.5rem 0 0.6rem; font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.1rem); font-weight: var(--fw-display); line-height: 1.1; letter-spacing: -0.02em; }
.exit__line-text { position: relative; margin: 0 0 1.25rem; }
.exit .picker { max-width: none; background: rgba(13, 14, 21, 0.55); }
.exit__close { position: absolute; top: 0.75rem; right: 0.75rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: var(--radius-m); background: rgba(255, 255, 255, 0.06); color: var(--c-text); cursor: pointer; z-index: 2; }
.exit__close:hover { background: rgba(255, 255, 255, 0.14); }
html[data-kit-modal] { overflow: hidden; }

/* ---- the call bar on the phone (only when the agency takes calls) ---- */
.callbar { position: fixed; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; z-index: 55; display: grid; grid-template-columns: 1fr 1.4fr; gap: 0.5rem; padding: 0.5rem; border-radius: var(--radius-l); background: rgba(13, 14, 21, 0.9); box-shadow: inset 0 0 0 1px var(--c-rule-strong); backdrop-filter: blur(14px); transform: translateY(140%); transition: transform var(--dur-med) var(--ease-out); }
.callbar[data-kit-on] { transform: none; }
.callbar a { display: grid; place-items: center; min-height: 3rem; border-radius: var(--radius-m); font: 700 1.1875rem/1 var(--font-ui); text-decoration: none; }
.callbar__call { color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-rule); }
.callbar__cta { background: var(--c-brand); color: var(--c-on-brand); }

/* ---- the thank-you page ---- */
.thanks { box-sizing: border-box; max-width: 46rem; margin: 0 auto; padding: clamp(5rem, 12vw, 9rem) var(--gutter); text-align: center; }
.thanks__headline { margin: 0 0 1rem; font-size: var(--fs-h1); font-weight: var(--fw-display); line-height: var(--lh-tight); letter-spacing: -0.025em; }
.thanks__body { margin: 0 auto 2rem; max-width: 34rem; font-size: 1.125rem; }
.thanks__next { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.thanks__next a { display: inline-flex; align-items: center; min-height: 3.25rem; padding: 0.85rem 1.5rem; border-radius: var(--radius-m); font: 700 1.1875rem/1.2 var(--font-ui); text-decoration: none; color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-brand); }
.thanks__next li:first-child a { background: var(--c-brand); color: var(--c-on-brand); box-shadow: none; }

/* ---- legal and 404 on the dark ---- */
.legal h1, .legal h2, .legal h3, .not-found h1 { color: var(--c-text); }

@media (prefers-reduced-motion: reduce) {
  .button, .button__arrow, .exit__in, .callbar { transition: none; }
}
