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

/* ---------- the page ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { overflow-x: clip; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
main { display: block; }
a { color: var(--c-brand-text); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--c-brand-text); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); box-sizing: content-box; }
.section { position: relative; padding-block: var(--section-y); }
.section--grey { background: var(--c-paper-alt); }
.section--paper { background: var(--c-paper-warm) url('../img/paper-1920.webp') center / cover; }
.section__head { max-width: 780px; margin: 0 auto var(--space-5); text-align: center; }
.h2 {
  font: 900 var(--fs-h2) / 1.04 var(--font-display); text-transform: uppercase; letter-spacing: .004em;
  color: var(--c-teal-head); text-wrap: balance;
}
.lede { margin-top: var(--space-3); font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); line-height: 1.55; color: var(--c-purple); text-wrap: pretty; }
.section__head .lede { margin-inline: auto; max-width: 640px; }

/* ---------- torn paper edges ---------- */
.torn-top {
  clip-path: polygon(0 16px, 3% 7px, 7% 15px, 11% 4px, 15% 13px, 20% 6px, 24% 16px, 29% 3px, 33% 11px, 38% 6px, 42% 17px, 47% 5px, 51% 12px, 56% 2px, 60% 14px, 65% 7px, 69% 17px, 74% 4px, 78% 11px, 83% 5px, 87% 15px, 92% 3px, 96% 12px, 100% 6px, 100% 100%, 0 100%);
}
.torn-bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), 96% calc(100% - 15px), 92% calc(100% - 4px), 87% calc(100% - 13px), 83% calc(100% - 5px), 78% calc(100% - 16px), 74% calc(100% - 6px), 69% calc(100% - 14px), 65% calc(100% - 3px), 60% calc(100% - 12px), 56% calc(100% - 6px), 51% calc(100% - 17px), 47% calc(100% - 4px), 42% calc(100% - 13px), 38% calc(100% - 7px), 33% calc(100% - 16px), 29% calc(100% - 3px), 24% calc(100% - 11px), 20% calc(100% - 5px), 15% calc(100% - 15px), 11% calc(100% - 6px), 7% calc(100% - 14px), 3% calc(100% - 4px), 0 calc(100% - 12px));
}

/* ---------- the sphere: the logo's mark, drawn anew ---------- */
.sphere {
  --s: 28px; --sc: var(--c-brand);
  display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s); border-radius: 50%;
  background:
    var(--sphere-hi),
    radial-gradient(circle at 36% 32%, color-mix(in srgb, var(--sc) 55%, var(--c-paper)) 0%, var(--sc) 46%, color-mix(in srgb, var(--sc) 72%, var(--c-ink)) 100%);
  box-shadow: 0 0 calc(var(--s) * .55) color-mix(in srgb, var(--sc) 42%, transparent), inset calc(var(--s) * -.08) calc(var(--s) * -.12) calc(var(--s) * .22) color-mix(in srgb, var(--c-ink) 22%, transparent);
  color: var(--c-on-brand); font: 900 calc(var(--s) * .44) / 1 var(--font-display);
}
.sphere--teal { --sc: var(--c-brand); }
.sphere--blue { --sc: var(--c-blue); }
.sphere--orange { --sc: var(--c-accent); }
.sphere--red { --sc: var(--c-red); color: var(--c-paper); }
.sphere--purple { --sc: var(--c-purple); color: var(--c-paper); }
.sphere svg { width: 52%; height: 52%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em; box-sizing: border-box;
  min-height: 56px; padding: 0 12px 0 26px; border: 0; border-radius: var(--radius-s);
  background: var(--c-brand); color: var(--c-on-brand); text-decoration: none; cursor: pointer;
  font: 900 .9375rem / 1 var(--font-display); letter-spacing: var(--track-caps); text-transform: uppercase;
  box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--c-brand-dark) 90%, transparent), inset 0 1px 0 color-mix(in srgb, var(--c-paper) 40%, transparent);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast), box-shadow var(--dur-fast);
}
.btn:hover { background: color-mix(in srgb, var(--c-brand) 86%, var(--c-paper)); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn__arrow { position: relative; display: inline-block; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--c-ink); }
.btn__arrow::before { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-top: 2.5px solid var(--c-paper); border-right: 2.5px solid var(--c-paper); transform: translate(-65%, -50%) rotate(45deg); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: .8125rem; }
.btn--block { width: 100%; }
.btn--outline { background: transparent; color: var(--c-purple); box-shadow: inset 0 0 0 2px var(--c-purple); }
.btn--outline:hover { background: color-mix(in srgb, var(--c-purple) 8%, transparent); }
.btn--onDark.btn--outline { color: var(--c-paper); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c-paper) 80%, transparent); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- 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 color-mix(in srgb, var(--c-paper) 70%, transparent); color: var(--c-ink); cursor: pointer;
  background: color-mix(in srgb, var(--c-paper) 78%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-s);
}
.stop:hover { background: var(--c-paper); }
.stop--dark { color: var(--c-paper); background: color-mix(in srgb, var(--c-ink) 55%, transparent); border-color: color-mix(in srgb, var(--c-paper) 25%, transparent); }
/* the tour keeps its own stop icon (data-kit-tabs-stop): the same pause and play states as core.css gives h.stop() */
[data-kit-tabs-stop] .stop__play { display: none; }
[data-kit-tabs-stop][aria-pressed="true"] .stop__play { display: inline; }
[data-kit-tabs-stop][aria-pressed="true"] .stop__pause { display: none; }

/* ---------- the header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--c-paper) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--c-line); }
.site-header__in { display: flex; align-items: center; gap: var(--space-4); max-width: calc(var(--max-w) + 2 * var(--gutter)); margin-inline: auto; padding: 10px var(--gutter); box-sizing: border-box; min-height: 76px; }
.site-header__logo { display: block; flex: none; line-height: 0; }
.site-header__logo img { width: auto; height: 54px; }
.site-header__nav { display: flex; align-items: center; gap: var(--space-4); margin-left: auto; }
.nav__list { display: flex; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.nav__item a { display: block; padding: 10px 12px; border-radius: var(--radius-s); color: var(--c-ink); text-decoration: none; font: 700 var(--fs-ui) / 1 var(--font-ui); }
.nav__item a:hover { color: var(--c-brand-text); background: var(--c-brand-light); }
.nav__item a[aria-current="page"] { color: var(--c-brand-text); }
.nav__actions { display: flex; gap: var(--space-2); }
.site-header__menu { display: none; }
@media (max-width: 999px) {
  .site-header__in { min-height: 64px; gap: var(--space-2); }
  .site-header__logo img { height: 44px; }
  .site-header__menu {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto; min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--radius-s);
    background: var(--c-paper-alt); color: var(--c-ink); font: 800 var(--fs-small) / 1 var(--font-ui); cursor: pointer;
  }
  .site-header__burger { display: grid; gap: 4px; width: 18px; }
  .site-header__burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast); }
  .site-header[data-open] .site-header__burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-header[data-open] .site-header__burger i:nth-child(2) { opacity: 0; }
  .site-header[data-open] .site-header__burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-header__nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: var(--space-3);
    padding: var(--space-3) var(--gutter) var(--space-4); background: var(--c-paper); box-shadow: var(--shadow-l);
  }
  .site-header[data-open] .site-header__nav { display: flex; }
  .nav__list { flex-direction: column; }
  .nav__item a { padding: 14px 8px; font-size: 1.0625rem; border-bottom: 1px solid var(--c-line); border-radius: 0; }
  .nav__actions { flex-direction: column; }
  .nav__actions .btn { min-height: 52px; }
}

/* ---------- the clients picker ---------- */
.picker { box-sizing: border-box; padding: 20px 20px 16px; border-radius: var(--radius-l); background: var(--c-paper); border: 1px solid var(--c-line); box-shadow: var(--shadow-m); }
.picker__set { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.picker__legend { padding: 0; margin-bottom: 12px; font: 800 1.0625rem / 1.25 var(--font-ui); color: var(--c-ink); }
.picker__choices { display: grid; grid-template-columns: repeat(5, minmax(0, 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; height: 52px; border-radius: 12px; border: 1.5px solid var(--c-line); background: var(--c-paper);
  font: 900 1.25rem / 1 var(--font-display); color: var(--c-ink); transition: border-color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-fast);
}
.picker__choice:hover span { border-color: var(--c-brand); }
.picker__choice input:checked + span { border-color: var(--c-brand); background: var(--c-brand-light); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-brand) 28%, transparent); }
.picker__choice input:focus-visible + span { outline: 3px solid var(--c-brand-text); outline-offset: 2px; }
.picker__note { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 12px 0 0; padding: 0; list-style: none; font: 600 var(--fs-small) / 1.3 var(--font-ui); color: var(--c-ink-soft); }
.picker__note li { display: inline-flex; align-items: center; gap: 6px; }
.picker__note li::before { content: ''; width: 9px; height: 5px; border-left: 2.5px solid var(--c-brand-text); border-bottom: 2.5px solid var(--c-brand-text); transform: translateY(-2px) rotate(-45deg); }
@media (max-width: 380px) { .picker { padding: 16px 14px 14px; } .picker__choices { gap: 6px; } .picker__choice span { height: 48px; font-size: 1.1rem; } }

/* ---------- glass cards ---------- */
.gcard {
  display: flex; align-items: center; gap: 12px; box-sizing: border-box; padding: 12px 16px 12px 12px; border-radius: var(--radius-m);
  background: color-mix(in srgb, var(--c-paper) 84%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--c-paper) 75%, transparent); box-shadow: var(--shadow-l); color: var(--c-ink);
}
.gcard__icon { --s: 38px; }
.gcard__title { display: block; font: 800 .975rem / 1.2 var(--font-ui); }
.gcard__sub { display: block; margin-top: 2px; font: 600 .8125rem / 1.3 var(--font-ui); color: var(--c-ink-soft); }
.gcard--new { position: relative; }
.gcard--new::after { content: ''; position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-red); box-shadow: 0 0 0 3px var(--c-paper); }

/* ---------- the FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { border-radius: var(--radius-m); background: var(--c-paper); border: 1px solid var(--c-line); box-shadow: var(--shadow-s); }
.faq__item summary { position: relative; display: block; padding: 20px 60px 20px 22px; cursor: pointer; list-style: none; font: 800 1.0625rem / 1.35 var(--font-ui); color: var(--c-ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ''; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background:
  linear-gradient(var(--c-on-brand), var(--c-on-brand)) center / 12px 2.5px no-repeat, linear-gradient(var(--c-on-brand), var(--c-on-brand)) center / 2.5px 12px no-repeat, var(--c-brand); transition: transform var(--dur-med) var(--ease-out); }
.faq__item[open] summary::after { transform: rotate(135deg); }
.faq__a { padding: 0 22px 22px; color: var(--c-ink-soft); }

/* ---------- the footer ---------- */
.site-footer { position: relative; margin-top: -18px; padding-top: calc(var(--space-6) + 18px); background: var(--c-paper-warm) url('../img/paper-1920.webp') center / cover; color: var(--c-ink);
  clip-path: polygon(0 16px, 3% 7px, 7% 15px, 11% 4px, 15% 13px, 20% 6px, 24% 16px, 29% 3px, 33% 11px, 38% 6px, 42% 17px, 47% 5px, 51% 12px, 56% 2px, 60% 14px, 65% 7px, 69% 17px, 74% 4px, 78% 11px, 83% 5px, 87% 15px, 92% 3px, 96% 12px, 100% 6px, 100% 100%, 0 100%); }
.site-footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-5); max-width: var(--max-w); margin-inline: auto; padding: 0 var(--gutter) var(--space-5); box-sizing: content-box; }
.site-footer__logo img { width: 190px; height: auto; }
.site-footer__line { margin: var(--space-3) 0; font: 800 1.0625rem / 1.4 var(--font-ui); color: var(--c-purple); }
.site-footer__title { margin-bottom: var(--space-2); font: 900 .8125rem / 1 var(--font-display); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--c-teal-head); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer__col a, .site-footer__contact a { display: inline-block; padding: 7px 0; color: var(--c-ink); text-decoration: none; font-weight: 600; }
.site-footer__col a:hover, .site-footer__contact a:hover { color: var(--c-brand-text); text-decoration: underline; }
.site-footer__contact { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer__contact p { margin-top: 6px; color: var(--c-ink-soft); font-size: var(--fs-small); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-4); max-width: var(--max-w); margin-inline: auto; padding: var(--space-3) var(--gutter) var(--space-4); box-sizing: content-box; border-top: 1px solid color-mix(in srgb, var(--c-ink) 14%, transparent); font-size: var(--fs-small); color: var(--c-ink-soft); }
.site-footer__legal ul { display: flex; gap: var(--space-3); }
.site-footer__legal a { color: var(--c-ink-soft); }
@media (max-width: 899px) {
  .site-footer__in { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 899px) { body:has(.callbar) .site-footer { padding-bottom: 76px; } }

/* ---------- the exit popup ---------- */
.exit { margin: auto; padding: 0; border: 0; max-width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: transparent; overflow: visible; }
.exit::backdrop { background: color-mix(in srgb, var(--c-ink) 62%, transparent); backdrop-filter: blur(3px); }
.exit__in { position: relative; padding: 40px 34px 28px; border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-l); text-align: center; }
.exit[data-kit-on] .exit__in { animation: exit-in var(--dur-med) var(--ease-out); }
@keyframes exit-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.exit__orbit { display: flex; justify-content: center; gap: 10px; margin-bottom: var(--space-3); }
.exit__orbit .sphere { --s: 22px; }
.exit__orbit .sphere:nth-child(2) { --s: 30px; }
.exit__headline { font: 900 var(--fs-h2) / 1.05 var(--font-display); text-transform: uppercase; color: var(--c-teal-head); }
.exit__line { margin: 12px auto 22px; max-width: 420px; color: var(--c-purple); font-weight: 600; }
.exit .picker { padding: 0; border: 0; box-shadow: none; text-align: left; }
.exit__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--c-paper-alt); color: var(--c-ink); font: 400 26px / 1 var(--font-ui); cursor: pointer; }
.exit__close:hover { background: var(--c-line); }
html[data-kit-modal] { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .exit[data-kit-on] .exit__in { animation: none; } }

/* ---------- the call bar on the phone ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--c-paper) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -8px 24px -12px color-mix(in srgb, var(--c-ink) 30%, transparent);
  transform: translateY(110%); transition: transform var(--dur-med) var(--ease-out), visibility 0s var(--dur-med);
}
.callbar[data-kit-on] { transform: none; transition: transform var(--dur-med) var(--ease-out); }
.callbar a { display: grid; place-items: center; min-height: 50px; border-radius: var(--radius-s); text-decoration: none; font: 900 .8125rem / 1.1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.callbar__call { color: var(--c-purple); box-shadow: inset 0 0 0 2px var(--c-purple); }
.callbar__cta { background: var(--c-brand); color: var(--c-on-brand); }
@media (min-width: 900px) { .callbar { display: none; } }

/* ---------- the thank-you page ---------- */
.thanks { box-sizing: border-box; min-height: 62vh; display: grid; align-content: center; justify-items: center; gap: var(--space-3); padding: var(--space-6) var(--gutter); text-align: center; background: var(--c-paper-warm) url('../img/paper-1920.webp') center / cover; }
.thanks__headline { max-width: 820px; font: 900 var(--fs-h1) / 1.05 var(--font-display); text-transform: uppercase; color: var(--c-teal-head); text-wrap: balance; }
.thanks__body { max-width: 620px; color: var(--c-purple); font-size: 1.125rem; }
.thanks__next { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.thanks__next a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: var(--radius-s); text-decoration: none; font: 900 .875rem / 1 var(--font-display); letter-spacing: var(--track-caps); text-transform: uppercase; background: var(--c-brand); color: var(--c-on-brand); }
.thanks__next li + li a { background: transparent; color: var(--c-purple); box-shadow: inset 0 0 0 2px var(--c-purple); }
