/* design\components.css: the components of MjS Local Growth (design\components.md), as the home page built them.
   Every page loads it (the build copies it to site\assets\css\components.css). A page's own CSS only places and
   sizes its parts, with the tokens of system.css. */

/* ---------- layout ---------- */
.wrap { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); box-sizing: content-box; }
.band { padding-block: var(--section-y); background: var(--c-paper); color: var(--c-ink); }
.band--alt { background: var(--c-paper-alt); }
.band--ink { background: var(--c-ink); color: var(--c-on-brand); }
.band--blue { background: var(--c-brand); color: var(--c-on-brand); }
.on-ink { color: var(--c-on-brand); }
.lede { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--c-ink-soft); max-width: 60ch; margin-top: var(--space-3); }
.on-ink .lede, .band--ink .lede, .band--blue .lede { color: var(--c-on-ink-soft); }
.band--blue .lede { color: color-mix(in srgb, var(--c-on-brand) 86%, transparent); }
.mono { font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 500; letter-spacing: 0.01em; }
.card { background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius-l); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-s); }
main { display: block; }
body:not(.over-footage) main { padding-top: var(--header-h); }

/* ---------- the brand (the mark on its white disc, the name set in Archivo) ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.brand__disc { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-paper); overflow: hidden; }
.brand__disc img { display: block; width: 100%; height: 100%; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-stretch: var(--stretch-display); font-size: 1.125rem; letter-spacing: -0.02em; white-space: nowrap; line-height: 1; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 1rem/1.1 var(--font-ui); font-stretch: 104%; padding: 17px 22px; border-radius: var(--radius-s); text-decoration: none; cursor: pointer; border: 0; transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.btn--main { background: var(--c-accent); color: var(--c-on-accent); box-shadow: inset 0 0 0 2px var(--c-ink); }
.btn--main:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--c-accent) 82%, var(--c-paper)); }
.btn--small { padding: 11px 16px; font-size: var(--fs-ui); }
.btn__arrow { flex: none; transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .btn__arrow, .link-arrow:hover .btn__arrow { transform: translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.cta-note { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.875rem; color: var(--c-ink-soft); }
.cta-note li { display: inline-flex; align-items: center; gap: 6px; }
.cta-note svg { color: var(--c-brand-text); }
.on-ink .cta-note { color: var(--c-on-ink-soft); }
.on-ink .cta-note svg { color: var(--c-accent); }
.picker--light .cta-note { color: var(--c-ink-soft); }
.picker--light .cta-note svg { color: var(--c-brand-text); }

/* ---------- the picker ---------- */
.picker { background: var(--c-paper); color: var(--c-ink); border-radius: var(--radius-l); padding: clamp(18px, 2.4vw, 24px); box-shadow: var(--shadow-l); max-width: 540px; box-sizing: border-box; }
.picker__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.picker__legend { font-weight: 700; font-size: 1.0625rem; padding: 0; margin-bottom: 12px; }
.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: block; text-align: center; padding: 13px 0; border: 1.5px solid var(--c-line); border-radius: var(--radius-s); font-weight: 700; font-size: 1.0625rem; transition: border-color var(--dur-fast), background-color var(--dur-fast), color var(--dur-fast); }
.picker__choice:hover span { border-color: var(--c-ink); }
.picker__choice input:checked + span { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-on-brand); }
.picker__choice input:focus-visible + span { outline: 3px solid var(--c-brand); outline-offset: 2px; }
.picker__go { width: 100%; margin-top: 14px; box-sizing: border-box; }
.picker .cta-note { justify-content: center; }
.picker--dark { background: var(--c-ink-raised); color: var(--c-on-brand); border: 1px solid var(--c-line-on-ink); box-shadow: none; }
.picker--dark .picker__choice span { border-color: var(--c-line-on-ink); }
.picker--dark .picker__choice:hover span { border-color: var(--c-on-brand); }
.picker--dark .picker__choice input:checked + span { background: var(--c-paper); color: var(--c-ink); border-color: var(--c-paper); }
.picker--dark .picker__choice input:focus-visible + span { outline-color: var(--c-accent); }

/* ---------- cards over pictures ---------- */
.note-card { display: inline-flex; align-items: center; gap: 12px; background: var(--c-paper); color: var(--c-ink); border-radius: var(--radius-m); padding: 12px 16px 12px 14px; box-shadow: var(--shadow-l); font-size: 0.9375rem; line-height: 1.25; max-width: 320px; box-sizing: border-box; }
.note-card b { display: block; font-weight: 700; }
.note-card small { display: block; color: var(--c-ink-soft); font-size: 0.8125rem; margin-top: 3px; }
.note-card small.mono { margin: 0 0 3px; }
.note-card--muted { background: var(--c-paper-alt); color: var(--c-ink-soft); box-shadow: var(--shadow-m); }
.note-card--muted b { color: var(--c-ink); }
.live-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 1.5px var(--c-ink), 0 0 0 5px color-mix(in srgb, var(--c-accent) 32%, transparent); }

/* ---------- the stop icon ---------- */
.stop { position: absolute; z-index: 6; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--c-line-on-ink); background: rgb(16 19 23 / 0.6); color: var(--c-on-brand); cursor: pointer; transition: background-color var(--dur-fast); }
.stop:hover { background: var(--c-ink); }
.stop--corner { top: 20px; right: 20px; }
.stop .stop__play { display: none; }
.stop[aria-pressed="true"] .stop__play { display: inline; }
.stop[aria-pressed="true"] .stop__pause { display: none; }

/* ---------- the header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); background: var(--c-ink); color: var(--c-on-brand); }
.site-header__in { display: flex; align-items: center; gap: 20px; height: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }
.site-header__logo { margin-right: auto; color: inherit; text-decoration: none; border-radius: var(--radius-s); }
.nav__list { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav__item a { display: block; padding: 9px 12px; border-radius: var(--radius-s); color: var(--c-on-ink-soft); font-weight: 600; font-size: var(--fs-ui); text-decoration: none; transition: color var(--dur-fast), background-color var(--dur-fast); }
.nav__item a:hover { color: var(--c-on-brand); background: rgb(255 255 255 / 0.06); }
.nav__item a[aria-current="page"] { color: var(--c-on-brand); }
.site-header__cta .cta-short { display: none; }
.site-header__menu { display: none; width: 44px; height: 44px; border: 1px solid var(--c-line-on-ink); border-radius: var(--radius-s); background: transparent; color: inherit; cursor: pointer; padding: 0; }
.site-header__bars { display: grid; gap: 6px; width: 20px; margin: auto; }
.site-header__bars i { display: block; height: 2px; background: currentColor; border-radius: 1px; transition: transform var(--dur-fast); }
.site-header[data-open] .site-header__bars i:first-child { transform: translateY(4px) rotate(45deg); }
.site-header[data-open] .site-header__bars i:last-child { transform: translateY(-4px) rotate(-45deg); }
.over-footage .site-header { background: transparent; transition: background-color var(--dur-med); }
.over-footage .nav__item a { color: var(--c-on-brand); text-shadow: 0 1px 8px rgb(16 19 23 / 0.7); }
@supports (animation-timeline: scroll()) {
  .over-footage .site-header { animation: header-solid linear both; animation-timeline: scroll(root); animation-range: 0 140px; }
}
@supports not (animation-timeline: scroll()) {
  .over-footage .site-header { background: var(--c-ink); }
}
@keyframes header-solid { from { background-color: rgb(16 19 23 / 0); } to { background-color: var(--c-ink); } }
@media (max-width: 1023px) {
  .site-header__menu { display: grid; order: 3; }
  .site-header__nav { display: none; position: fixed; inset: var(--header-h) 0 0 0; overflow-y: auto; overscroll-behavior: contain; background: var(--c-ink); border-top: 1px solid var(--c-line-on-ink); padding: 12px var(--gutter) 96px; }
  html:has(.site-header[data-open]) { overflow: hidden; } /* the page stays still under the open menu */
  .site-header[data-open] { background: var(--c-ink); animation: none; }
  .site-header[data-open] .site-header__nav { display: block; }
  .nav__list { flex-direction: column; }
  .nav__item a { font-size: 1.25rem; padding: 14px 4px; color: var(--c-on-brand); border-bottom: 1px solid var(--c-line-on-ink); border-radius: 0; }
}
@media (max-width: 559px) {
  :root { --header-h: 64px; }
  .site-header__in { gap: 14px; }
  /* the name sits on two lines beside the disc, so the logo, the button and the menu keep clear room between them down to 340 px */
  .site-header .brand__name { font-size: 0.9375rem; line-height: 1.05; white-space: normal; max-width: 6.2em; }
  .site-header__cta .cta-long { display: none; }
  .site-header__cta .cta-short { display: inline; }
  .site-header__cta { padding: 10px 14px; white-space: nowrap; }
  .site-header__cta, .site-header__menu { flex: none; }
}
@media (max-width: 339px) { .site-header .brand__name { display: none; } }

/* ---------- tabs (the kit's tour) and the console ---------- */
.tabs { display: grid; gap: 10px; margin-top: 32px; }
.tabs__tab { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; width: 100%; padding: 18px 20px; border: 1.5px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); font: inherit; text-align: left; cursor: pointer; overflow: hidden; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.tabs__tab:hover { border-color: var(--c-ink-soft); }
.tabs__n { display: inline-block; padding: 3px 7px; border-radius: 4px; color: var(--c-ink-soft); line-height: 1.3; }
.tabs__text b { display: block; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.tabs__text span { display: block; color: var(--c-ink-soft); font-size: var(--fs-small); margin-top: 2px; }
.tabs__tab[aria-selected="true"] { border-color: var(--c-ink); box-shadow: var(--shadow-m); }
.tabs__tab[aria-selected="true"] .tabs__n { background: var(--c-accent); color: var(--c-on-accent); box-shadow: inset 0 0 0 1.5px var(--c-ink); }
.tabs__fill { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c-brand); transform: scaleX(var(--kit-fill, 0)); transform-origin: left; }
.tabs__tab:not([aria-selected="true"]) .tabs__fill { display: none; }
.console { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-l); background: var(--c-ink); min-height: 580px; }
/* the neighborhood stays in its own colors: the white cards read on it as they are; the veil only deepens the top
   (the tag and the stop) and the bottom edge */
.console__clip { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; filter: saturate(0.95) brightness(0.92); }
.console__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(16 19 23 / 0.4) 0%, rgb(16 19 23 / 0.06) 24%, rgb(16 19 23 / 0.06) 72%, rgb(16 19 23 / 0.32) 100%); }
.console__tag { position: absolute; z-index: 2; top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px 7px 11px; border-radius: 999px; background: rgb(16 19 23 / 0.78); border: 1px solid var(--c-line-on-ink); color: var(--c-on-brand); }
.console__stop { top: 16px; right: 16px; }

/* ---------- the chat phone (who-we-help `anyway`) ---------- */
.phone { position: relative; width: min(360px, 100%); height: 620px; box-sizing: border-box; margin-inline: auto; display: flex; flex-direction: column; background: var(--c-paper); color: var(--c-ink); border: 8px solid var(--c-ink); border-radius: 40px; padding: 14px 14px 16px; box-shadow: var(--shadow-l); overflow: hidden; }
.phone__bar { display: flex; align-items: center; gap: 10px; padding: 6px 4px 12px; border-bottom: 1px solid var(--c-line); }
.phone__avatar { width: 36px; height: 36px; }
.phone__bar b { display: block; font-size: 0.9375rem; }
.phone__bar small { display: block; font-size: 0.8125rem; color: var(--c-ink-soft); }
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 12px 2px 0; overflow: hidden; }
.chat [data-kit-msg] { opacity: calc(var(--kit-in, 1) * (1 - var(--kit-out, 0))); }
.msg { margin: 0; font-size: 0.9375rem; line-height: 1.35; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); }
.chat__stamp { align-self: center; margin: 0 0 auto; padding: 3px 10px; border-radius: 999px; background: var(--c-paper-alt); color: var(--c-ink-soft); }
.msg--static { opacity: 1; transform: none; }
.msg--in { align-self: flex-start; max-width: 86%; background: var(--c-paper-alt); border-radius: 16px 16px 16px 4px; padding: 10px 13px; }
.msg--out { align-self: flex-end; background: var(--c-brand); color: var(--c-on-brand); border-radius: 16px 16px 4px 16px; padding: 10px 14px; font-weight: 600; }
.msg--chips { display: flex; gap: 6px; align-self: flex-start; }
.msg--chips span { padding: 8px 14px; border: 1.5px solid var(--c-line); border-radius: 999px; font-weight: 700; transition: background-color var(--dur-fast), color var(--dur-fast); }
.msg--chips span[data-kit-on] { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-on-brand); }
.msg--typing { display: flex; gap: 5px; padding: 14px 15px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ink-soft); animation: typing 1s infinite ease-in-out; }
.msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-4px); opacity: 1; } }
.msg__bar { position: relative; display: block; height: 6px; margin-top: 10px; border-radius: 3px; background: var(--c-line); overflow: hidden; }
.msg__bar::after { content: ""; position: absolute; inset: 0; background: var(--c-brand); transform: scaleX(var(--kit-fill, 0)); transform-origin: left; }
@media (prefers-reduced-motion: reduce) { .msg--typing i { animation: none; } }

/* ---------- the calculator (kit worth and year) ---------- */
.range { margin-bottom: 26px; }
.range__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.range__top label { font-weight: 600; }
.range__top output { font-family: var(--font-display); font-weight: 800; font-stretch: var(--stretch-display); font-size: 1.75rem; letter-spacing: -0.02em; white-space: nowrap; }
.range__input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 30px; margin: 8px 0 0; background: transparent; cursor: pointer; }
.range__input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--c-brand) var(--kit-fill, 50%), var(--c-line) var(--kit-fill, 50%)); }
.range__input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--c-accent); border: 2px solid var(--c-ink); box-shadow: var(--shadow-m); }
.range__input::-moz-range-track { height: 6px; border-radius: 3px; background: var(--c-line); }
.range__input::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--c-brand); }
.range__input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--c-accent); border: 2px solid var(--c-ink); }
.range__ends { display: flex; justify-content: space-between; color: var(--c-ink-soft); margin-top: 2px; }
.year { display: grid; gap: 24px; align-content: start; background: var(--c-ink); color: var(--c-on-brand); border-radius: var(--radius-l); padding: clamp(24px, 3vw, 36px); }
.year__label { display: block; color: var(--c-on-ink-soft); }
.year__total { display: block; font-family: var(--font-display); font-weight: 800; font-stretch: var(--stretch-display); font-size: clamp(2.75rem, 2rem + 3vw, 4.25rem); letter-spacing: -0.035em; line-height: 1; margin: 8px 0 6px; }
.year__by { color: var(--c-on-ink-soft); }
.year__bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 170px; }
.year__month { display: grid; grid-template-rows: 1fr auto; height: 100%; }
.year__month i { align-self: end; height: var(--h); border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--c-brand) 72%, var(--c-on-brand)); }
[data-kit-worth] { --kit-grow: calc(.28 + .72 * var(--kit-size, 1)); }
.year__month i { height: calc(var(--h) * var(--kit-grow, 1)); transition: height .3s cubic-bezier(.25, .8, .35, 1); } /* the bars grow with the year's revenue (the kit's --kit-size), so the picture follows every slider */
.year__month:last-child i { background: var(--c-accent); }
.year__month em { font-style: normal; text-align: center; color: var(--c-on-ink-soft); margin-top: 6px; }
.year__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.year__tiles div { border: 1px solid var(--c-line-on-ink); border-radius: var(--radius-m); padding: 14px; }
.year__tiles dt { color: var(--c-on-ink-soft); font-size: 0.875rem; line-height: 1.3; }
.year__tiles dd { margin: 6px 0 0; font-family: var(--font-display); font-weight: 800; font-stretch: var(--stretch-display); font-size: 1.5rem; letter-spacing: -0.02em; }
.year__note { font-size: 0.875rem; color: var(--c-on-ink-soft); }
@media (max-width: 559px) {
  .year__tiles { grid-template-columns: 1fr; }
  .year__bars { gap: 4px; height: 130px; }
}


/* ---------- compare (kit compare) ---------- */
.cmp { position: relative; aspect-ratio: 16 / 9; margin-top: clamp(28px, 4vw, 44px); border-radius: var(--radius-l); overflow: hidden; background: var(--c-ink); user-select: none; -webkit-user-select: none; }
.cmp__side { position: absolute; inset: 0; }
.cmp__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp__before .cmp__photo { filter: grayscale(1) contrast(0.92) brightness(0.92); }
.cmp__after { clip-path: inset(0 0 0 calc(var(--kit-v, 0.52) * 100%)); }
.cmp__photo--mirror { transform: scaleX(-1); }
.cmp__tag { position: absolute; top: 18px; padding: 7px 13px; border-radius: 999px; background: var(--c-ink); color: var(--c-on-brand); }
.cmp__before .cmp__tag { left: 18px; }
.cmp__tag--ours { right: 18px; background: var(--c-accent); color: var(--c-on-accent); box-shadow: inset 0 0 0 1.5px var(--c-ink); }
.cmp__cards { position: absolute; bottom: 18px; display: grid; gap: 10px; width: min(290px, 38%); }
.cmp__before .cmp__cards { left: 18px; }
.cmp__after .cmp__cards { right: 18px; justify-items: end; }
.cmp__cards .note-card { width: 100%; }
.cmp__range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cmp__handle { position: absolute; z-index: 2; top: 0; bottom: 0; left: calc(var(--kit-v, 0.52) * 100%); width: 3px; margin-left: -1.5px; background: var(--c-paper); pointer-events: none; }
.cmp__knob { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 54px; height: 54px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent); box-shadow: 0 0 0 3px var(--c-ink), var(--shadow-l); }
.cmp__hint { position: absolute; top: calc(50% + 40px); left: 50%; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: var(--c-ink); color: var(--c-on-brand); }
.cmp[data-kit-touched] .cmp__hint { display: none; }
.cmp:has(.cmp__range:focus-visible) { outline: 3px solid var(--c-brand); outline-offset: 4px; }
@media (max-width: 699px) {
  .cmp { aspect-ratio: 4 / 5; }
  .cmp__cards { width: calc(48% - 34px); gap: 8px; }
  .cmp__hint { top: auto; bottom: calc(50% + 36px); }
  .cmp__cards .note-card { padding: 10px 11px; font-size: 0.8125rem; max-width: none; }
  .cmp__cards .note-card:nth-child(3) { display: none; }
  .cmp__tag { top: 12px; }
  .cmp__before .cmp__tag { left: 12px; }
  .cmp__tag--ours { right: 12px; }
  .cmp__before .cmp__cards { left: 12px; bottom: 12px; }
  .cmp__after .cmp__cards { right: 12px; bottom: 12px; }
}

/* ---------- who we help: tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(28px, 4vw, 44px); }
.tile { position: relative; display: block; min-height: 300px; border-radius: var(--radius-l); overflow: hidden; background: var(--c-ink); color: var(--c-on-brand); text-decoration: none; isolation: isolate; }
.tile:nth-child(1), .tile:nth-child(7) { grid-column: span 2; }
.tile__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-med) var(--ease-out); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(16 19 23 / 0.92), rgb(16 19 23 / 0.35) 50%, rgb(16 19 23 / 0) 75%); }
.tile__text { position: absolute; left: 22px; right: 76px; bottom: 20px; }
.tile__name { display: block; font-family: var(--font-display); font-weight: 800; font-stretch: var(--stretch-display); font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); letter-spacing: -0.02em; line-height: 1.1; }
.tile__fields { display: block; margin-top: 8px; color: rgb(255 255 255 / 0.88); line-height: 1.45; }
.tile__more { display: block; margin-top: 10px; color: rgb(255 255 255 / 0.88); max-width: 46ch; }
.tile__go { position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius-s); background: var(--c-accent); color: var(--c-on-accent); box-shadow: inset 0 0 0 2px var(--c-ink); transition: transform var(--dur-fast) var(--ease-out); }
.tile:hover .tile__photo { transform: scale(1.04); }
.tile:hover .tile__go { transform: translateX(3px); }
.tile--more .tile__photo { object-position: 50% 30%; }
.tile--more::after { background: linear-gradient(to top, rgb(16 19 23 / 0.94), rgb(16 19 23 / 0.6) 45%, rgb(16 19 23 / 0) 80%); }
@media (max-width: 899px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile:nth-child(1) { grid-column: span 2; }
  .tile:nth-child(7) { grid-column: span 2; }
}
@media (max-width: 559px) {
  .tiles { grid-template-columns: 1fr; }
  .tile:nth-child(1), .tile:nth-child(7) { grid-column: auto; }
  .tile { min-height: 240px; }
}

/* ---------- FAQ ---------- */
.qa { border-bottom: 1px solid var(--c-line); }
.qa:first-child { border-top: 1px solid var(--c-line); }
.qa__q { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 0; font-weight: 700; font-size: 1.1875rem; line-height: 1.3; cursor: pointer; }
.qa__q::-webkit-details-marker { display: none; }
.qa__icon { position: relative; flex: none; box-sizing: border-box; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--c-ink); transition: transform var(--dur-med) var(--ease-out), background-color var(--dur-fast); }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--c-ink); border-radius: 1px; }
.qa__q:hover .qa__icon { background: var(--c-accent); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon { transform: rotate(45deg); background: var(--c-accent); border-color: var(--c-ink); }
.qa__a { padding-bottom: 22px; color: var(--c-ink-soft); max-width: 62ch; }
/* on ink (How it works) */
.on-ink .qa { border-color: var(--c-line-on-ink); }
.on-ink .qa__a { color: var(--c-on-ink-soft); }
.on-ink .qa__icon { border-color: var(--c-on-ink); }
.on-ink .qa__icon::before, .on-ink .qa__icon::after { background: var(--c-on-ink); }
.on-ink .qa__q:hover .qa__icon::before, .on-ink .qa__q:hover .qa__icon::after, .on-ink .qa[open] .qa__icon::before, .on-ink .qa[open] .qa__icon::after { background: var(--c-on-accent); }
.on-ink .qa[open] .qa__icon { border-color: var(--c-accent); }

/* ---------- a footage band with a shade (the close) ---------- */
.close { position: relative; overflow: hidden; isolation: isolate; background: var(--c-ink); padding-block: clamp(96px, 12vw, 168px); }
.close__clip { position: absolute; inset: -1px; z-index: -2; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.close__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(16 19 23 / 0.94) 0%, rgb(16 19 23 / 0.86) 38%, rgb(16 19 23 / 0.35) 64%, rgb(16 19 23 / 0.1) 100%); }
.close__in { display: grid; gap: 28px; justify-items: start; }
.close__copy { max-width: 640px; }
.close__title { font-size: var(--fs-display); }
.close__line { margin-top: 16px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--c-on-ink-soft); max-width: 48ch; }
.close .picker { width: 100%; }
@media (max-width: 699px) { .close__shade { background: rgb(16 19 23 / 0.82); } }
/* the inner pages' close: the main button with its line in place of the picker; on the phone the people stay in sight
   above the words */
.close--inner .close__action { display: grid; justify-items: start; }
@media (max-width: 699px) {
  .close--inner { padding-block: 250px 48px; }
  .close--inner .close__clip { height: 62%; }
  .close--inner .close__shade { background: linear-gradient(180deg, rgb(16 19 23 / 0) 22%, rgb(16 19 23 / 0.72) 42%, var(--c-ink) 60%); }
}

/* ---------- inner page headers (Part 2; never two the same) ---------- */
.page-hero { position: relative; background: var(--c-paper); color: var(--c-ink); }
.page-hero__stage { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-l); background: var(--c-ink); }
.page-hero__grade { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.page-hero__stage .page-hero__scene { position: absolute; z-index: 4; }
.page-hero__stop { z-index: 6; }
.page-hero__action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; }
.page-hero__action .cta-note { margin: 0; }
/* the kit's header that changes its picture, for a stage inside a page-hero (kit.md, as it stands) */
.page-hero__stage[data-kit-scene="rotate"] [data-kit-slide] { position: absolute; inset: 0; margin: 0; visibility: hidden; overflow: hidden; }
.page-hero__stage[data-kit-scene="rotate"] [data-kit-slide][data-kit-on] { visibility: visible; z-index: 2; opacity: var(--kit-move, 1); transform: translateX(var(--kit-glide, calc((1 - var(--kit-move, 1)) * 4%))); }
.page-hero__stage[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-prev])) [data-kit-slide][data-kit-on] { transform: none; opacity: 1; }
.page-hero__stage[data-kit-scene="rotate"] [data-kit-slide][data-prev] { visibility: visible; z-index: 1; opacity: clamp(0, (1 - var(--kit-move, 0)) * 1000, 1); }
.page-hero__stage[data-kit-scene="rotate"] [data-kit-slide] video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; clip-path: inset(2px); }
.page-hero__stage[data-kit-scene="rotate"] [data-kit-slide] video[data-kit-shown] { clip-path: none; }
.page-hero__stage[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-kit-on])) [data-kit-slide]:not([data-kit-slide] ~ [data-kit-slide]) { visibility: visible; }
/* Services: the words centered on paper, a wide footage stage under them */
.page-hero--centered-stage { padding-block: clamp(36px, 4.4vw, 60px) clamp(48px, 6vw, 88px); }
.page-hero--centered-stage .page-hero__words { display: grid; justify-items: center; text-align: center; }
.page-hero--centered-stage .page-hero__words .lede { max-width: 58ch; }
.page-hero--centered-stage .page-hero__action { justify-content: center; }
.page-hero--centered-stage .cta-note { justify-content: center; }
.page-hero--centered-stage .page-hero__stage { aspect-ratio: 16 / 7; margin-top: clamp(26px, 3vw, 40px); }
@media (max-width: 899px) { .page-hero--centered-stage .page-hero__stage { aspect-ratio: 4 / 5; max-height: 680px; width: 100%; } }
/* How it works: on ink, the words at the left, a tall footage stage at the right */
.page-hero--split-ink { position: static; background: none; color: var(--c-on-ink); padding-block: clamp(40px, 5vw, 72px); }
.page-hero--split-ink .page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.page-hero--split-ink .page-hero__stage { aspect-ratio: 4 / 5; max-height: calc(100vh - var(--header-h) - 48px); margin-inline: auto; width: 100%; }
.page-hero--split-ink .page-hero__clip { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
@media (max-width: 899px) { .page-hero--split-ink .page-hero__grid { grid-template-columns: 1fr; } .page-hero--split-ink .page-hero__stage { max-height: none; } }

/* ---------- the footer ---------- */
.site-footer { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 32px 40px; padding: 72px max(var(--gutter), calc((100% - var(--max-w)) / 2)) 32px; background: var(--c-ink); color: var(--c-on-ink-soft); font-size: var(--fs-small); border-top: 1px solid var(--c-line-on-ink); }
/* the footer reads at body size: 16 px, near-white (about 14:1 on ink) */
.site-footer { font-size: 1rem; color: rgb(255 255 255 / 0.86); }
.site-footer a { color: rgb(255 255 255 / 0.86); text-decoration: none; }
.site-footer a:hover { color: var(--c-on-brand); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__logo { display: inline-flex; color: var(--c-on-brand); }
.site-footer__line { margin-top: 18px; font-family: var(--font-display); font-weight: 800; font-stretch: var(--stretch-display); font-size: 1.375rem; line-height: 1.15; letter-spacing: -0.02em; color: var(--c-on-brand); max-width: 16ch; }
.site-footer__title { color: var(--c-on-brand); font-weight: 700; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer__contact { display: grid; align-content: start; gap: 9px; }
.site-footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--c-line-on-ink); }
.site-footer__legal ul { display: flex; gap: 20px; }
@media (max-width: 859px) { .site-footer { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 899px) { body:has(.callbar) .site-footer { padding-bottom: 104px; } }

/* ---------- the exit popup ---------- */
.exit { margin: auto; padding: 0; border: 0; background: transparent; width: min(560px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px); overflow: visible; color: var(--c-on-brand); }
.exit::backdrop { background: rgb(16 19 23 / 0.72); }
.exit:focus, .exit:focus-visible { outline: none; }
.exit__in { position: relative; background: var(--c-ink); border: 1px solid var(--c-line-on-ink); border-radius: var(--radius-l); padding: 34px 30px 28px; box-shadow: var(--shadow-l); opacity: 0; transform: translateY(14px) scale(0.98); 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__mark { width: 52px; height: 52px; }
.exit__headline { margin: 18px 0 10px; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); }
.exit__line { color: var(--c-on-ink-soft); }
.exit .picker { margin-top: 22px; max-width: none; }
.exit__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 0.08); color: var(--c-on-brand); cursor: pointer; }
.exit__close:hover { background: rgb(255 255 255 / 0.16); }
@media (prefers-reduced-motion: reduce) { .exit__in { transition: none; } }

/* ---------- the bar on the phone ---------- */
.callbar { position: fixed; z-index: 40; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 8px; background: var(--c-ink); border: 1px solid var(--c-line-on-ink); border-radius: var(--radius-l); box-shadow: var(--shadow-l); transform: translateY(140%); transition: transform var(--dur-med) var(--ease-out); }
.callbar[data-kit-on] { transform: none; }
.callbar__call { display: grid; place-items: center; padding: 0 16px; border: 1px solid var(--c-line-on-ink); border-radius: var(--radius-s); color: var(--c-on-brand); font-weight: 700; text-decoration: none; }
.callbar__cta { padding-block: 15px; }
@media (min-width: 900px) { .callbar { display: none; } }

/* ---------- thank-you and 404 ---------- */
/* ---------- the legal pages (privacy, terms) and the 404 page ---------- */
.legal { max-width: 760px; margin-inline: auto; padding: clamp(56px, 9vw, 112px) var(--gutter) clamp(72px, 10vw, 128px); }
.legal h1 { font-size: var(--fs-h1); margin-bottom: 20px; }
.legal h2 { font-size: var(--fs-h3); margin: 2.2em 0 0.6em; }
.legal p, .legal li { color: var(--c-ink-soft); line-height: 1.7; max-width: 68ch; }
.legal p + p { margin-top: 0.9em; }
.legal ul, .legal ol { margin: 0.6em 0 0; padding-left: 1.3em; }
.legal li + li { margin-top: 0.4em; }
.legal a { color: var(--c-brand-text); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.not-found { max-width: 760px; margin-inline: auto; padding: clamp(80px, 12vw, 160px) var(--gutter); }
.not-found__headline { font-size: var(--fs-h1); }
.not-found__body { margin-top: 18px; font-size: 1.1875rem; color: var(--c-ink-soft); max-width: 56ch; }
.not-found__home { display: inline-flex; margin-top: 28px; padding: 17px 22px; border-radius: var(--radius-s); background: var(--c-accent); color: var(--c-on-accent); border: 2px solid var(--c-ink); font-weight: 700; text-decoration: none; }

.thanks { max-width: 760px; margin-inline: auto; padding: clamp(80px, 12vw, 160px) var(--gutter); }
.thanks__headline { font-size: var(--fs-h1); }
.thanks__body { margin-top: 18px; font-size: 1.1875rem; color: var(--c-ink-soft); max-width: 56ch; }
.thanks__next { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; padding: 0; }
.thanks__next li:first-child a { display: inline-flex; align-items: center; gap: 10px; padding: 17px 22px; border-radius: var(--radius-s); background: var(--c-accent); color: var(--c-on-accent); box-shadow: inset 0 0 0 2px var(--c-ink); font-weight: 700; text-decoration: none; }
.thanks__next li + li a { display: inline-flex; padding: 17px 6px; font-weight: 700; color: var(--c-brand-text); }
