/* design\components.css: EngageZing's components (design\components.md), on the tokens of system.css only. */

/* ---------- the page ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { background: var(--c-night); color: var(--c-mist); }
body, button, input, select, textarea { font-family: var(--font-text); }
::selection { background: var(--c-azure); color: var(--c-night); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }
main { display: block; overflow-x: clip; }
h1, h2, h3, .h-display { font-family: var(--font-display); font-stretch: var(--stretch-display); font-weight: 700; line-height: var(--lh-head); letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0; }
.lead { font-size: var(--fs-lead); color: var(--c-mist-soft); max-width: 40em; text-wrap: pretty; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max-w)); margin-inline: auto; }

/* ---------- bands: the ground of each part ---------- */
.band { position: relative; padding-block: var(--section-y); }
.band--night2 { background: var(--c-night-2); }
.band--ice { background: var(--c-paper-alt); color: var(--c-ink); }
.band--ice .lead { color: var(--c-ink-soft); }
.band--footage { isolation: isolate; overflow: hidden; }
.band__video, .band__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--c-shade), 0.92) 0%, rgba(var(--c-shade), 0.78) 45%, rgba(var(--c-shade), 0.4) 100%); }
.sec-head { display: grid; gap: var(--space-3); margin-bottom: clamp(2rem, 1.2rem + 2.5vw, 3.5rem); max-width: 46rem; }

/* ---------- buttons: the main button (azure, navy words) and quiet links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 52px; padding: 0.7em 1.5em; border-radius: var(--radius-s); font-family: var(--font-display); font-stretch: 100%; font-weight: 650; font-size: 1.0625rem; letter-spacing: 0.005em; text-decoration: none; cursor: pointer; border: 0; transition: background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.btn--main { background: var(--c-azure); color: var(--c-night); box-shadow: 0 10px 30px -10px rgba(51, 176, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn--main:hover { background: var(--c-azure-hover); box-shadow: 0 14px 36px -10px rgba(0, 197, 251, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn--main:active { transform: translateY(1px); }
.btn--small { min-height: 44px; padding: 0.5em 1.1em; font-size: 1rem; }
.btn__arrow { flex: none; transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.cta-note { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; font-size: var(--fs-ui); color: var(--c-mist-soft); }
.cta-note span { display: inline-flex; align-items: center; gap: 0.4em; }
.cta-note svg { color: var(--c-accent); }
.band--ice .cta-note { color: var(--c-ink-soft); }
.band--ice .cta-note svg { color: var(--c-accent-text); }
.text-link { color: var(--c-azure); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4em; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
[data-planned].text-link, [data-planned] { opacity: 0.75; }

/* ---------- the clients picker ---------- */
.picker { display: grid; gap: var(--space-3); padding: clamp(1.1rem, 0.8rem + 1vw, 1.6rem); border-radius: var(--radius-m); background: var(--c-glass); border: 1px solid var(--c-glass-line); box-shadow: var(--shadow-l), inset 0 1px 0 rgba(255, 255, 255, 0.07); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); max-width: 34rem; }
.picker__intro { font-size: var(--fs-small); color: var(--c-mist); font-weight: 600; }
.picker__set { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 0.6rem; }
.picker__legend { padding: 0; font-family: var(--font-display); font-stretch: 100%; font-weight: 600; font-size: 1.0625rem; color: var(--c-mist); margin-bottom: 0.6rem; }
.picker__choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; }
.picker__choice { position: relative; display: block; }
.picker__choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.picker__choice span { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--radius-s); border: 1px solid rgba(224, 244, 255, 0.24); background: rgba(224, 244, 255, 0.06); font-family: var(--font-display); font-stretch: 100%; font-weight: 650; font-size: 1.125rem; color: var(--c-mist); transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.picker__choice:hover span { border-color: rgba(99, 196, 255, 0.7); background: rgba(51, 176, 255, 0.12); }
.picker__choice input:checked + span { background: rgba(0, 197, 251, 0.16); border-color: var(--c-accent); box-shadow: var(--glow-s); }
.picker__choice input:focus-visible + span { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.picker__btn { width: 100%; }

/* ---------- the stop icon (one per moving part) ---------- */
.stop { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c-glass-line); background: rgba(3, 15, 43, 0.55); color: var(--c-mist); cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background-color var(--dur-fast) var(--ease-out); }
.stop:hover { background: rgba(18, 36, 90, 0.85); }
.band--ice .stop { background: rgba(3, 15, 43, 0.08); color: var(--c-ink); border-color: rgba(3, 15, 43, 0.18); }
.stop .stop__play { display: none; }
.stop[aria-pressed="true"] .stop__play { display: inline; }
.stop[aria-pressed="true"] .stop__pause { display: none; }
.stop--corner { position: absolute; right: var(--gutter); bottom: var(--gutter); z-index: 5; }

/* ---------- glass: a card over footage ---------- */
.glass { background: var(--c-glass); border: 1px solid var(--c-glass-line); border-radius: var(--radius-m); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }
.signal-icon { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--g-signal); color: var(--c-on-brand); box-shadow: 0 6px 18px -6px rgba(0, 197, 251, 0.8); }

/* ---------- the header: a solid night bar ---------- */
.skip { background: var(--c-azure); color: var(--c-night); padding: 0.6em 1em; border-radius: var(--radius-s); font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(3, 15, 43, 0.94); border-bottom: 1px solid var(--c-night-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header__in { display: flex; align-items: center; gap: clamp(0.75rem, 0.3rem + 1.4vw, 2rem); height: var(--header-h); width: min(100% - 2 * var(--gutter), 1360px); margin-inline: auto; }
.site-header__logo { display: block; flex: none; line-height: 0; }
.site-header__logo img { height: 42px; width: auto; }
.site-header__nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(0.25rem, 0.1rem + 0.8vw, 1.4rem); list-style: none; margin: 0; padding: 0; }
.nav__item a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.35rem; color: var(--c-mist-soft); text-decoration: none; font-weight: 600; font-size: 1rem; border-bottom: 2px solid transparent; transition: color var(--dur-fast) var(--ease-out); }
.nav__item a:hover { color: var(--c-mist); }
.nav__item a[aria-current="page"] { color: var(--c-mist); border-bottom-color: var(--c-accent); }
.nav__phone { display: none; }
.site-header__phone { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; color: var(--c-mist); text-decoration: none; font-weight: 600; font-size: 1rem; white-space: nowrap; }
.site-header__phone svg { color: var(--c-accent); }
.site-header__phone:hover span { text-decoration: underline; text-underline-offset: 4px; }
.site-header__cta { flex: none; white-space: nowrap; }
.site-header__menu { display: none; flex: none; width: 44px; height: 44px; border-radius: var(--radius-s); border: 1px solid var(--c-glass-line); background: transparent; color: var(--c-mist); cursor: pointer; }
.site-header__menu-bars { display: grid; gap: 4px; justify-items: center; }
.site-header__menu-bars i { display: block; width: 18px; 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__menu-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .site-header__menu-bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .site-header__menu-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1180px) { .site-header__in > .site-header__phone span { display: none; } }
@media (max-width: 980px) {
  .site-header__menu { display: inline-grid; place-items: center; order: 3; }
  .site-header__cta { margin-left: auto; }
  .site-header__in > .site-header__phone { display: none; }
  .site-header__nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: var(--space-3) var(--gutter) var(--space-4); background: var(--c-night); border-bottom: 1px solid var(--c-night-line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
  .site-header[data-open] .site-header__nav { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__item a { width: 100%; min-height: 52px; font-size: 1.125rem; border-bottom: 1px solid var(--c-night-line); }
  .nav__item a[aria-current="page"] { border-bottom-color: var(--c-accent); }
  .nav__phone { display: block; padding-top: var(--space-3); }
}
@media (max-width: 520px) {
  .site-header__logo img { height: 34px; }
  .site-header__cta { display: none; }
  .site-header__menu { margin-left: auto; }
}

/* ---------- the footer ---------- */
.site-footer { background: var(--c-night); border-top: 1px solid var(--c-night-line); padding-top: clamp(3rem, 2rem + 3vw, 5rem); }
.site-footer__in { width: min(100% - 2 * var(--gutter), var(--max-w)); margin-inline: auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(2rem, 1rem + 3vw, 4rem); }
.site-footer__logo img { height: 46px; width: auto; }
.site-footer__line { margin-top: var(--space-3); color: var(--c-mist-soft); max-width: 22rem; font-size: var(--fs-small); }
.site-footer__cta { margin-top: var(--space-4); }
.site-footer__title { font-family: var(--font-display); font-stretch: 100%; font-weight: 650; font-size: 1rem; color: var(--c-mist); margin-bottom: var(--space-3); }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.site-footer__col a, .site-footer__contact > a { display: inline-flex; min-height: 40px; align-items: center; color: var(--c-mist-soft); text-decoration: none; font-size: var(--fs-small); }
.site-footer__col a:hover, .site-footer__contact > a:hover { color: var(--c-mist); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__contact { display: grid; align-content: start; justify-items: start; }
.site-footer__contact address { font-style: normal; color: var(--c-mist-soft); font-size: var(--fs-small); padding-block: 0.5rem; }
.social { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.social__link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--c-night-line); color: var(--c-mist-soft); transition: color var(--dur-fast), border-color var(--dur-fast), background-color var(--dur-fast); }
.social__link:hover { color: var(--c-night); background: var(--c-azure); border-color: var(--c-azure); }
.site-footer__legal { width: min(100% - 2 * var(--gutter), var(--max-w)); margin: clamp(2.5rem, 1.5rem + 3vw, 4rem) auto 0; padding-block: var(--space-4); border-top: 1px solid var(--c-night-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); color: var(--c-mist-soft); font-size: var(--fs-ui); }
.site-footer__legal ul { list-style: none; display: flex; gap: var(--space-4); margin: 0; padding: 0; }
.site-footer__legal a { color: var(--c-mist-soft); display: inline-flex; min-height: 40px; align-items: center; }
@media (max-width: 980px) { .site-footer__in { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-footer__in { grid-template-columns: 1fr; } .site-footer__legal { padding-bottom: 6rem; } }

/* ---------- the exit popup ---------- */
.exit { margin: auto; padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: min(100% - 2rem, 34rem); color: var(--c-mist); }
.exit::backdrop { background: rgba(1, 6, 20, 0.72); backdrop-filter: blur(4px); }
.exit__in { position: relative; display: grid; gap: var(--space-3); padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); border-radius: var(--radius-l); background: radial-gradient(120% 80% at 100% 0%, rgba(18, 109, 238, 0.35), transparent 60%), var(--c-night-2); border: 1px solid var(--c-glass-line); 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__signal { display: inline-flex; align-items: flex-end; gap: 4px; height: 26px; }
.exit__signal i { width: 9px; border-radius: 3px; background: var(--g-signal); }
.exit__signal i:nth-child(1) { height: 30%; } .exit__signal i:nth-child(2) { height: 55%; } .exit__signal i:nth-child(3) { height: 78%; } .exit__signal i:nth-child(4) { height: 100%; background: var(--c-accent); box-shadow: 0 0 14px var(--c-glow); }
.exit__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); padding-right: 2.5rem; }
.exit__line { color: var(--c-mist-soft); }
.picker--exit { max-width: none; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.exit__close { position: absolute; top: 0.85rem; right: 0.85rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--c-glass-line); background: transparent; color: var(--c-mist); cursor: pointer; }
.exit__close:hover { background: rgba(224, 244, 255, 0.08); }
html[data-kit-modal] { overflow: hidden; }

/* ---------- the call bar on the phone ---------- */
.callbar { position: fixed; left: 0.75rem; right: 0.75rem; bottom: max(0.75rem, env(safe-area-inset-bottom)); z-index: 60; display: grid; grid-template-columns: 1fr 1.4fr; gap: 0.5rem; padding: 0.5rem; border-radius: var(--radius-m); background: rgba(10, 26, 68, 0.92); border: 1px solid var(--c-glass-line); box-shadow: var(--shadow-l); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); visibility: hidden; transform: translateY(calc(100% + 1.5rem)); transition: transform var(--dur-med) var(--ease-out), visibility 0s linear var(--dur-med); }
.callbar[data-kit-on] { visibility: visible; transform: none; transition: transform var(--dur-med) var(--ease-out), visibility 0s; }
.callbar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--radius-s); font-family: var(--font-display); font-stretch: 100%; font-weight: 650; text-decoration: none; font-size: 1rem; }
.callbar__call { color: var(--c-mist); border: 1px solid var(--c-glass-line); }
.callbar__cta { background: var(--c-azure); color: var(--c-night); }
@media (min-width: 900px) { .callbar { display: none; } }

/* ---------- the FAQ ---------- */
.faq-list { display: grid; gap: 0.75rem; }
.faq-list details { border-radius: var(--radius-m); background: var(--c-paper); border: 1px solid var(--c-line); box-shadow: var(--shadow-s); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.35rem; min-height: 44px; font-family: var(--font-display); font-stretch: 100%; font-weight: 650; font-size: 1.15rem; color: var(--c-ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--c-brand-text); border-bottom: 2.5px solid var(--c-brand-text); transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--dur-fast) var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq-list details > :not(summary) { padding: 0 1.35rem 1.25rem; color: var(--c-ink-soft); max-width: 44rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; } }
