/* design\components.css: the CSS of the components in design\components.md, the director's: the header, the footer,
   the exit popup, the stop icon, the buttons, the clients picker, the section patterns and the pixel motif, 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.
   InstaVisible: charcoal first screens, white and soft gray paper, deep navy bands, one flat Electric Blue action, and
   the pixel step (the logo's rounded squares stepping up) in the edges, the grounds and the pictures. No gradient. */

/* ---- type ---- */
h1, h2, h3, h4 { margin: 0; color: inherit; text-wrap: balance; }
h1, .display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; line-height: var(--lh-tight); font-size: var(--fs-h1); }
h2 { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-h2); letter-spacing: -0.015em; line-height: 1.08; }
h3 { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-h3); letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--c-brand-text); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--c-electric); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--c-brand-light); color: var(--c-ink); }
main { display: block; }

/* ---- grounds and layout ---- */
.ground-charcoal { background: var(--c-charcoal); color: var(--c-on-ink); }
.ground-navy { background: var(--c-navy); color: var(--c-on-ink); }
.ground-alt { background: var(--c-paper-alt); }
.ground-charcoal a:not(.button), .ground-navy a:not(.button) { color: var(--c-brand-on-ink); }
.wrap { box-sizing: border-box; width: 100%; max-width: calc(var(--max-w) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-y); }

/* The section's head: its headline and one line. */
.head { display: grid; gap: var(--space-3); max-width: 780px; margin-bottom: clamp(32px, 4vw, 56px); }
.head--center { margin-inline: auto; text-align: center; justify-items: center; }
.head__line { font-size: var(--fs-lead); line-height: 1.5; color: var(--c-ink-soft); max-width: 62ch; }
.ground-charcoal .head__line, .ground-navy .head__line { color: var(--c-on-navy-soft); }

/* ---- the pixel motif ---- */
/* The grid of squares on a dark ground: a faint field of the logo's rounded squares (a mask, so its color is a token). */
.px-field { position: absolute; inset: 0; pointer-events: none; background: color-mix(in srgb, var(--c-on-ink) 5.5%, transparent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Crect x='7' y='7' width='14' height='14' rx='3'/%3E%3C/svg%3E") 0 0 / 28px 28px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Crect x='7' y='7' width='14' height='14' rx='3'/%3E%3C/svg%3E") 0 0 / 28px 28px; }
/* One square of the motif, placed by its part: lit in the exact Electric Blue, or mint (the live one). */
.px { position: absolute; width: var(--px); height: var(--px); border-radius: var(--px-radius); background: var(--c-electric); pointer-events: none; }
.px--mint { background: var(--c-accent); }
.px--dim { background: color-mix(in srgb, var(--c-on-ink) 14%, transparent); }
/* A frame whose upper left corner is cut in one square step (cards, tiles, frames). */
.px-cut { --cut: calc(var(--px) * 2); clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut), var(--cut) var(--cut)); }
/* The mark: three rounded squares rising to the upper right. */
.mark { display: inline-block; width: 1em; height: 1em; flex: none; }

/* ---- buttons and links ---- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; box-sizing: border-box; min-height: 54px; padding: 0 26px;
  border: 0; border-radius: var(--radius-s); background: var(--c-brand); color: var(--c-on-brand); font: 700 var(--fs-body)/1.1 var(--font-ui);
  text-decoration: none; text-align: center; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.button::after { content: ""; width: 10px; height: 10px; flex: none; border-radius: 2.5px; background: var(--c-accent); transition: transform var(--dur-med) var(--ease-out); }
.button:hover { background: var(--c-brand-dark); }
.button:hover::after { transform: translate(2px, -2px) scale(1.15); }
.button:active { transform: translateY(1px); }
.button--quiet { background: transparent; color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-line); }
.button--quiet:hover { background: var(--c-paper-alt); }
.button--quiet::after { display: none; }
.textlink { display: inline-flex; align-items: center; gap: 10px; font: 700 var(--fs-body)/1.3 var(--font-ui); color: var(--c-brand-text); text-decoration: none; }
.textlink::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; transition: transform var(--dur-fast) var(--ease-out); }
.textlink:hover::after { transform: translate(3px, -3px); }
.textlink[data-planned] { color: var(--c-ink-soft); }
/* The "Free Mockup" badge: her Mint Accent, charcoal words (12.7:1), a rounded square's corners (F2) */
.badge { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 6px; background: var(--c-accent); color: var(--c-ink); font: 700 var(--fs-tiny)/1.2 var(--font-ui); letter-spacing: 0.01em; white-space: nowrap; }

/* ---- the clients picker: header, close, exit popup ---- */
.picker { box-sizing: border-box; display: grid; gap: 14px; width: 100%; max-width: 520px; padding: 20px; border-radius: var(--radius-m);
  background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-l); }
.picker__set { margin: 0; padding: 0; border: 0; min-width: 0; }
.picker__legend { padding: 0; margin-bottom: 12px; font: 700 var(--fs-ui)/1.35 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; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.picker__choice span { display: grid; place-items: center; min-height: 48px; border-radius: var(--radius-s); background: var(--c-paper-alt);
  box-shadow: inset 0 0 0 1.5px var(--c-line); font: 700 var(--fs-body)/1 var(--font-ui); color: var(--c-ink); font-variant-numeric: tabular-nums;
  transition: background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), color var(--dur-fast); }
.picker__choice:hover span { box-shadow: inset 0 0 0 1.5px var(--c-ink-soft); }
.picker__choice input:checked + span { background: var(--c-charcoal); color: var(--c-on-ink); box-shadow: inset 0 0 0 1.5px var(--c-charcoal); }
.picker__choice input:focus-visible + span { outline: 3px solid var(--c-electric); outline-offset: 2px; }
.picker__go { width: 100%; }
.picker__note { display: flex; align-items: center; justify-content: center; gap: 8px; font: 500 var(--fs-small)/1.4 var(--font-ui); color: var(--c-ink-soft); text-align: center; }
.picker__note::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c-accent); flex: none; }

/* ---- the stop icon of a part that moves ---- */
.stop { position: absolute; z-index: 6; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--c-charcoal) 62%, transparent); color: var(--c-on-ink); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color var(--dur-fast); }
.stop:hover { background: var(--c-charcoal); }
.stop svg { width: 14px; height: 14px; }

/* ---- the site's header ---- */
.site-header { position: sticky; top: 0; z-index: 40; box-sizing: border-box; display: flex; align-items: center; gap: var(--space-4);
  min-height: 72px; padding: 0 var(--gutter); background: var(--c-charcoal); color: var(--c-on-ink);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--c-on-ink) 8%, transparent); }
.site-header__logo { display: block; flex: none; width: 150px; margin-right: auto; }
.logo { position: relative; display: block; overflow: hidden; width: 100%; }
.logo img { display: block; max-width: none; height: auto; }
.site-header__nav .nav__list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-header__nav a { display: block; padding: 10px 12px; border-radius: var(--radius-s); color: var(--c-on-ink); text-decoration: none;
  font: 500 var(--fs-ui)/1.2 var(--font-ui); transition: background-color var(--dur-fast); }
.site-header__nav a:hover { background: color-mix(in srgb, var(--c-on-ink) 9%, transparent); }
.site-header__nav a[data-planned] { color: color-mix(in srgb, var(--c-on-ink) 72%, transparent); }
.site-header__nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--c-accent); }
.site-header__cta { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: var(--radius-s);
  background: var(--c-brand); color: var(--c-on-brand); text-decoration: none; font: 700 var(--fs-ui)/1 var(--font-ui); flex: none; }
.site-header__cta::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c-accent); }
.site-header__cta:hover { background: var(--c-brand-dark); }
.site-header__menu { display: none; }
@media (max-width: 1080px) {
  .site-header { flex-wrap: wrap; min-height: 64px; gap: 12px; }
  .site-header__logo { width: 132px; }
  .site-header__menu { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--radius-s);
    background: color-mix(in srgb, var(--c-on-ink) 10%, transparent); color: var(--c-on-ink); font: 600 var(--fs-ui)/1 var(--font-ui); cursor: pointer; }
  .site-header__nav { display: none; order: 3; width: 100%; padding-bottom: 14px; }
  .site-header[data-open] .site-header__nav, .site-header__menu[aria-expanded="true"] ~ .site-header__nav { display: block; }
  .site-header__nav .nav__list { flex-direction: column; align-items: stretch; }
  .site-header__nav a { padding: 14px 12px; font-size: var(--fs-body); }
}
@media (max-width: 560px) {
  .site-header__cta { min-height: 40px; padding: 0 12px; font-size: var(--fs-ui-s); }
  .site-header__cta::after { display: none; }
  .site-header__logo { width: 116px; }
}

/* ---- the site's footer ---- */
.site-footer { box-sizing: border-box; display: grid; grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(160px, 1fr)); gap: var(--space-5) var(--space-6);
  padding: clamp(56px, 7vw, 96px) max(var(--gutter), calc((100% - var(--max-w)) / 2)) var(--space-5); border-top: 1px solid var(--c-navy-2); background: var(--c-navy); color: var(--c-on-ink); }
.site-footer__brand { display: grid; gap: var(--space-3); align-content: start; }
.site-footer__logo { display: block; width: 168px; }
.site-footer__line { max-width: 34ch; color: var(--c-on-navy-soft); font-size: var(--fs-small); }
.site-footer__title { margin-bottom: 12px; font: 700 var(--fs-small)/1.3 var(--font-ui); color: var(--c-on-ink); }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.site-footer a { display: inline-block; padding: 6px 0; color: var(--c-on-navy-soft); text-decoration: none; font: 500 var(--fs-small)/1.3 var(--font-ui); }
.site-footer a:hover { color: var(--c-on-ink); }
.site-footer__contact:empty { display: none; }
.site-footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: var(--space-4);
  border-top: 1px solid var(--c-navy-2); color: var(--c-on-navy-soft); font-size: var(--fs-small); }
.site-footer__legal ul { display: flex; gap: 20px; }
@media (max-width: 760px) { .site-footer { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ---- the exit popup ---- */
.exit { box-sizing: border-box; width: min(560px, calc(100% - 32px)); 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); overflow: visible; }
.exit::backdrop { background: color-mix(in srgb, var(--c-charcoal) 72%, transparent); }
.exit[data-kit-on] .exit__in { animation: exit-in var(--dur-med) var(--ease-out) both; }
@keyframes exit-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.exit__in { position: relative; display: grid; gap: var(--space-3); padding: clamp(28px, 5vw, 44px); }
.exit__logo { width: 150px; }
.exit__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); letter-spacing: -0.02em; line-height: 1.08; }
.exit__line { color: var(--c-ink-soft); }
.exit .picker { max-width: none; padding: 0; box-shadow: none; }
.exit__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0;
  border-radius: 50%; background: var(--c-paper-alt); color: var(--c-ink); font-size: 26px; line-height: 1; cursor: pointer; }
.exit__close:hover { background: var(--c-line); }
.exit__px { position: absolute; top: -10px; left: 36px; display: flex; align-items: flex-end; gap: 6px; }
.exit__px i { display: block; border-radius: 3px; background: var(--c-electric); }
.exit__px i:nth-child(1) { width: 10px; height: 10px; }
.exit__px i:nth-child(2) { width: 14px; height: 14px; }
.exit__px i:nth-child(3) { width: 20px; height: 20px; background: var(--c-accent); }

/* ---- the FAQ ---- */
.faq-list { display: grid; gap: 10px; }
.faq-item { border-radius: var(--radius-m); background: var(--c-paper); box-shadow: var(--shadow-s); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none;
  font: 700 var(--fs-body)/1.35 var(--font-ui); color: var(--c-ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 12px; height: 12px; border-radius: 3px; background: var(--c-line); transition: background-color var(--dur-fast), transform var(--dur-med) var(--ease-out); }
.faq-item[open] summary::after { background: var(--c-accent); transform: rotate(45deg); }
.faq-item__answer { padding: 0 22px 22px; color: var(--c-ink-soft); max-width: 68ch; }

/* ---- the inner pages (Part 2) ---- */
/* The grid of squares on a light ground (soft gray): the designed ground of an inner page's part. */
.px-field--ink { background: color-mix(in srgb, var(--c-ink) 4.5%, transparent); }
/* The main button with its line under it, outside the picker (headers, closes). */
.act { display: grid; gap: 12px; justify-items: start; }
.act__note { display: flex; align-items: center; gap: 8px; font: 500 var(--fs-small)/1.4 var(--font-ui); color: var(--c-ink-soft); }
.act__note::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c-accent); flex: none; }
.ground-charcoal .act__note, .ground-navy .act__note, .band .act__note { color: var(--c-on-navy-soft); }
/* Chips over a picture: a service and what it gives the owner, crisp white on the footage, its mint square. */
.chips { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chip { box-sizing: border-box; display: grid; grid-template-columns: 10px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 12px 16px 13px;
  border-radius: var(--radius-s); background: color-mix(in srgb, var(--c-paper) 95%, transparent); color: var(--c-ink); box-shadow: var(--shadow-m); }
.chip::before { content: ""; grid-row: 1; align-self: center; width: 10px; height: 10px; border-radius: 2.5px; background: var(--c-accent); }
.chip b { grid-column: 2; font: 700 var(--fs-small)/1.3 var(--font-ui); }
.chip > span { grid-column: 2; font: 500 var(--fs-tiny)/1.4 var(--font-ui); color: var(--c-ink-soft); }
.chip .textlink { grid-column: 2; margin-top: 4px; font-size: var(--fs-tiny); }
/* The close band of an inner page: footage full bleed, an even deep navy tint on the words' side whose lower edge steps
   in three squares (the pixel step), the close's headline, its line and the main button. On the phone, the footage on
   top and the words under it on navy. */
.band { --s: calc(var(--px) * 4); position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center;
  min-height: clamp(540px, 46vw, 700px); background: var(--c-navy); color: var(--c-on-ink); }
.band__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.band__media > video, .band__media > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none;
  object-fit: cover; object-position: var(--pos, 70% 50%); }
.band__tint { position: absolute; inset: 0 auto 0 0; z-index: -1; width: var(--tint-w, 54%); background: color-mix(in srgb, var(--c-navy) 90%, transparent);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s) * 3), calc(100% - var(--s)) calc(100% - var(--s) * 3), calc(100% - var(--s)) calc(100% - var(--s) * 2),
    calc(100% - var(--s) * 2) calc(100% - var(--s) * 2), calc(100% - var(--s) * 2) calc(100% - var(--s)), calc(100% - var(--s) * 3) calc(100% - var(--s)), calc(100% - var(--s) * 3) 100%, 0 100%); }
.band__words { box-sizing: border-box; display: grid; gap: var(--space-4); justify-items: start; width: 100%; max-width: calc(var(--max-w) + 2 * var(--gutter));
  margin-inline: auto; padding: clamp(56px, 7vw, 104px) var(--gutter); }
.band__words > * { max-width: min(560px, calc(var(--tint-w, 54%) - 64px)); }
.band__words > .band__title { max-width: min(600px, 44vw); }
.band__title { font-size: var(--fs-h1); }
.band__line { font-size: var(--fs-lead); line-height: 1.5; color: var(--c-on-navy-soft); max-width: 44ch; }
.band__stop { top: 18px; right: 18px; }
@media (max-width: 900px) {
  .band { --s: calc(var(--px) * 2); display: block; min-height: 0; }
  .band__media { position: relative; inset: auto; z-index: 0; aspect-ratio: 4 / 3; max-height: 62svh; }
  .band__tint { display: none; }
  .band__words { padding: 36px var(--gutter) 56px; }
  .band__words > *, .band__words > .band__title { max-width: none; }
}

/* ---- the thank-you page and the 404 ---- */
.page-thanks main, .thanks { background: var(--c-charcoal); color: var(--c-on-ink); }
.thanks { box-sizing: border-box; display: grid; align-content: center; justify-items: start; gap: var(--space-4); min-height: calc(100svh - 72px);
  padding: var(--section-y) max(var(--gutter), calc((100% - 760px) / 2)); }
.thanks__headline { font-size: var(--fs-h1); }
.thanks__body { max-width: 52ch; font-size: var(--fs-lead); color: var(--c-on-navy-soft); }
.thanks__next { display: flex; flex-wrap: wrap; gap: 14px 20px; margin: 0; padding: 0; list-style: none; }
.thanks__next li:first-child a { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 26px; border-radius: var(--radius-s);
  background: var(--c-brand); color: var(--c-on-brand); text-decoration: none; font: 700 var(--fs-body)/1 var(--font-ui); }
.thanks__next li:first-child a::after { content: ""; width: 10px; height: 10px; border-radius: 2.5px; background: var(--c-accent); }
.thanks__next li + li a { display: inline-flex; align-items: center; min-height: 54px; color: var(--c-on-ink); font: 600 var(--fs-body)/1 var(--font-ui); }
.not-found h1 { font-size: var(--fs-h1); }
.legal h1 { font-size: var(--fs-h1); }

@media (prefers-reduced-motion: reduce) {
  .button, .button::after, .textlink::after, .picker__choice span, .faq-item summary::after { transition: none; }
  .exit[data-kit-on] .exit__in { animation: none; }
}
