/* ==========================================================================
   Components: reusable pieces derived from the home. Documented in
   design-system.html and DESIGN_SYSTEM.md.
   ========================================================================== */

/* ---- Button ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--color-white);
  --btn-fg: var(--color-black);
  --btn-border: var(--color-white);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: var(--btn-height);
  padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-ui);
  font-weight: var(--weight-regular);
  line-height: 1;
  white-space: nowrap;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out), scale var(--dur-base) var(--ease-out);
}
.btn:hover { --btn-bg: var(--color-gray-100); --btn-border: var(--color-gray-100); }
.btn:active { scale: 0.97; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--color-white); --btn-border: rgb(255 255 255 / 0.9); }
.btn--outline:hover { --btn-bg: var(--color-white); --btn-fg: var(--color-black); --btn-border: var(--color-white); }
.btn--dark { --btn-bg: var(--color-gray-850); --btn-fg: var(--color-white); --btn-border: var(--color-gray-800); }
.btn--dark:hover { --btn-bg: var(--color-gray-800); --btn-border: var(--color-gray-700); }
.btn--inverse { --btn-bg: var(--color-black); --btn-fg: var(--color-white); --btn-border: var(--color-black); }
.btn--inverse:hover { --btn-bg: #222; --btn-border: #222; }
.btn--sm { height: 2.25rem; padding: 0 var(--space-4); font-size: var(--fs-small); }

/* ---- Icon button (35px disc) ------------------------------------------ */
.icon-btn {
  width: var(--icon-btn); height: var(--icon-btn);
  display: inline-grid; place-items: center;
  border-radius: 50%;
  background: var(--color-gray-900);
  color: var(--color-white);
  transition: background var(--dur-fast), scale var(--dur-base) var(--ease-out), opacity var(--dur-fast);
}
.icon-btn:hover { background: var(--color-gray-800); }
.icon-btn:active { scale: 0.92; }
.icon-btn[disabled] { opacity: 0.35; cursor: default; }
.icon-btn svg { width: 1.05rem; height: 1.05rem; }

/* ---- Plus button (56px) ------------------------------------------------ */
.plus-btn {
  width: var(--plus-btn); height: var(--plus-btn);
  display: inline-grid; place-items: center;
  border-radius: 50%;
  background: var(--color-white); color: var(--color-black);
  transition: scale var(--dur-slow) var(--ease-out), background var(--dur-base);
}
.plus-btn svg { width: 0.875rem; height: 0.875rem; transition: transform var(--dur-slow) var(--ease-out); }
.plus-btn[aria-expanded="true"] svg { transform: rotate(45deg); }
.plus-btn:hover { scale: 1.06; }
.plus-btn--sm { width: 1.75rem; height: 1.75rem; }
.plus-btn--sm svg { width: 0.625rem; height: 0.625rem; }

/* ---- Chip / pill ------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  height: 2.5rem; padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--color-gray-850);
  border: 1px solid var(--color-gray-800);
  font-size: var(--fs-body); color: var(--color-white);
}

/* ---- Counter ("01 / 03") ---------------------------------------------- */
.counter {
  display: inline-flex; gap: 0.35em; align-items: center;
  height: 2.25rem; padding: 0 var(--space-4);
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--fs-body-lg);
  color: var(--color-gray-400);
  font-variant-numeric: tabular-nums;
}
.counter b { font-weight: var(--weight-light); color: var(--color-white); }

/* ---- Slider dots + arrows --------------------------------------------- */
.dots { display: inline-flex; gap: 6px; align-items: center; }
.dots button {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-gray-700);
  transition: background var(--dur-base), width var(--dur-base) var(--ease-out);
}
.dots button[aria-current="true"] { background: var(--color-white); width: 18px; border-radius: 3px; }
.slider-controls { display: flex; align-items: center; gap: var(--space-2); }
.slider-controls .dots { margin-left: var(--space-3); }
/* Slider arrows: 48 px disc; the 38-unit icon box fills it, so the arrow itself is ~12 px. */
.slider-controls .icon-btn { width: var(--icon-btn-lg); height: var(--icon-btn-lg); }
.slider-controls .icon-btn svg { width: 100%; height: 100%; }

/* ---- Nav --------------------------------------------------------------- */
.nav {
  position: fixed; z-index: var(--z-nav);
  top: clamp(1rem, 2.1vw, 2.5rem); left: 50%;
  width: min(var(--nav-width), calc(100% - 2rem));
  height: var(--nav-height);
  translate: -50% 0;
  display: flex; align-items: center; gap: var(--space-4);
  padding: 0 var(--space-2) 0 0.625rem;
  border-radius: var(--radius-pill);
  background: var(--glass-dark);
  -webkit-backdrop-filter: blur(var(--blur-glass));
  backdrop-filter: blur(var(--blur-glass));
  color: var(--color-gray-250);
  transition: background var(--dur-slow) var(--ease-out), color var(--dur-slow) var(--ease-out);
}
.nav__burger {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--glass-disc);
  display: grid; place-items: center;
  transition: background var(--dur-base);
}
.nav__burger:hover { background: rgb(255 255 255 / 0.08); }
.nav__burger svg { width: 1.75rem; height: 0.5rem; }
.nav__logo { width: 8.25rem; flex: none; margin-left: var(--space-2); }
.nav__logo img { width: 100%; transition: filter var(--dur-slow); }
.nav__links { margin-left: auto; display: flex; gap: var(--space-8); font-size: var(--fs-ui); }
.nav__links button { display: inline-flex; align-items: center; gap: 2px; color: inherit; transition: color var(--dur-fast); }
.nav__links button:hover, .nav__links button[aria-expanded="true"] { color: var(--color-white); }
.nav__links svg { width: 14px; height: 14px; transition: rotate var(--dur-base) var(--ease-out); }
.nav__links button[aria-expanded="true"] svg { rotate: 180deg; }
.nav .btn { margin-left: var(--space-4); }
/* Light variant: used while a white section sits under the nav */
.nav[data-theme="light"] { background: rgb(235 235 235 / 0.85); color: #555; }
.nav[data-theme="light"] .nav__burger { background: rgb(0 0 0 / 0.06); }
.nav[data-theme="light"] .nav__burger path { stroke: #111; }
.nav[data-theme="light"] .nav__logo img { filter: invert(1); }
.nav[data-theme="light"] .nav__links button:hover,
.nav[data-theme="light"] .nav__links button[aria-expanded="true"] { color: #000; }
.nav[data-theme="light"] .nav__links path { stroke: currentColor; }
.nav[data-theme="light"] .btn { --btn-bg: #000; --btn-fg: #fff; --btn-border: #000; }

/* ---- Nav dropdown ------------------------------------------------------
   Same glass as the nav pill. It is a sibling of .nav, positioned by JS under
   its trigger, because a backdrop-filter inside the nav would only blur the nav. */
.nav-drop {
  position: fixed; z-index: var(--z-nav);
  top: 0; left: 0;
  min-width: 13.5rem;
  padding: var(--space-3);
  border-radius: 1.25rem;
  background: var(--glass-dark);
  -webkit-backdrop-filter: blur(var(--blur-glass));
  backdrop-filter: blur(var(--blur-glass));
  color: var(--color-gray-250);
  opacity: 0; translate: 0 -8px; scale: 0.98;
  transform-origin: top left;
  transition: opacity var(--dur-fast) ease, translate var(--dur-base) var(--ease-out), scale var(--dur-base) var(--ease-out), background var(--dur-slow) var(--ease-out), color var(--dur-slow) var(--ease-out);
}
.nav-drop.is-open { opacity: 1; translate: 0 0; scale: 1; }
.nav-drop__list { display: grid; }
.nav-drop__list a {
  display: block; padding: 0.55rem var(--space-3);
  border-radius: 0.75rem;
  font-size: var(--fs-ui); white-space: nowrap;
  transition: color var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out), translate var(--dur-base) var(--ease-out);
}
/* Hover focus: the option under the pointer (or keyboard focus) stays at 100%,
   turns full white and slides slightly right; its siblings drop their opacity. */
.nav-drop__list:hover a, .nav-drop__list:has(a:focus-visible) a { opacity: 0.35; }
.nav-drop .nav-drop__list a:hover, .nav-drop .nav-drop__list a:focus-visible { opacity: 1; color: #fff; translate: 0.375rem 0; }
.nav-drop[data-theme="light"] { background: rgb(235 235 235 / 0.85); color: #555; }
.nav-drop[data-theme="light"] .nav-drop__list a:hover, .nav-drop[data-theme="light"] .nav-drop__list a:focus-visible { color: #000; }

@media (max-width: 1024px) { .nav-drop { display: none; } }

/* ---- Menu overlay ------------------------------------------------------ */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: start;
  padding-top: clamp(1rem, 2.1vw, 2.5rem);
  pointer-events: none;
}
.menu__scrim { position: absolute; inset: 0; background: rgb(0 0 0 / 0.55); opacity: 0; transition: opacity var(--dur-slow) var(--ease-out); }
/* Closed state = the nav pill. Closing collapses the panel back into that pill
   (height first, then the sides) and only fades at the very end, so it reads as
   the rectangle shrinking rather than a fade. */
.menu__panel {
  position: relative;
  width: min(var(--nav-width), calc(100% - 2rem));
  border-radius: 1.875rem;
  background: rgb(22 22 24 / 0.92);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid rgb(255 255 255 / 0.06);
  padding: 0.625rem 0.5rem 2rem 0.625rem;
  clip-path: inset(0 1.5% calc(100% - var(--nav-height)) 1.5% round 1.875rem);
  opacity: 0; visibility: hidden;
  transition: clip-path 700ms var(--ease-in-out), opacity 180ms linear 560ms, visibility 0s linear 740ms;
}
.menu__top { display: flex; align-items: center; gap: var(--space-4); height: 2.5rem; }
.menu__top .nav__logo img { filter: none; }
.menu__actions { margin-left: auto; display: flex; gap: var(--space-2); }
.menu__account { display: inline-flex; align-items: center; gap: var(--space-2); }
.menu__account-label { display: inline; }
.menu__q { width: 1.25rem; height: 1.125rem; flex: none; color: currentColor; }
.menu__body { display: grid; grid-template-columns: 1fr minmax(0, 14.7rem); align-items: start; gap: var(--space-8); padding: var(--space-8) var(--space-6) 0; }
.menu__list { display: grid; gap: var(--space-4); font-size: var(--fs-body); }
.menu__list a, .menu__toggle { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--color-gray-100); transition: color var(--dur-fast), translate var(--dur-base) var(--ease-out); }
.menu__list a:hover, .menu__toggle:hover { color: #fff; translate: 4px 0; }
.menu__toggle svg { transition: rotate var(--dur-base) var(--ease-out); }
.menu__toggle[aria-expanded="true"] { color: #fff; }
.menu__toggle[aria-expanded="true"] svg { rotate: 180deg; }
/* Sub list: grid-rows 0fr to 1fr animates to the content height */
.menu__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-base) var(--ease-out); }
.menu__sub > ul { overflow: hidden; min-height: 0; display: grid; gap: var(--space-2); padding-left: var(--space-4); border-left: 1px solid rgb(255 255 255 / 0.08); margin-left: 2px; }
.menu__sub li:first-child { margin-top: var(--space-3); }
.menu__sub li:last-child { margin-bottom: var(--space-1); }
.menu__sub a { font-size: var(--fs-ui); color: var(--color-gray-250); opacity: 0; transition: color var(--dur-fast), translate var(--dur-base) var(--ease-out), opacity var(--dur-fast); }
.menu__group.is-open .menu__sub { grid-template-rows: 1fr; }
.menu__group.is-open .menu__sub a { opacity: 1; transition-delay: 0s, 0s, 120ms; }
/* Same hover focus as the nav dropdowns: the option under the pointer (or
   keyboard focus) stays at 100%, turns white and slides right; siblings dim.
   :where() keeps the dim rule lighter than the highlight rule. */
.menu__group.is-open .menu__sub ul:where(:hover, :has(a:focus-visible)) a { opacity: 0.35; transition-delay: 0s; }
.menu__group.is-open .menu__sub a:is(:hover, :focus-visible) { opacity: 1; color: #fff; translate: 0.375rem 0; transition-delay: 0s; }
.menu__list > li { opacity: 0; transform: translateY(10px); transition: opacity 160ms, transform var(--dur-slow) var(--ease-out); }
.menu__media { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 5; background: #000; }
.menu__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.menu.is-open { pointer-events: auto; }
.menu.is-open .menu__scrim { opacity: 1; }
.menu.is-open .menu__panel { clip-path: inset(0 0 0 0 round 1.875rem); opacity: 1; visibility: visible; transition: clip-path var(--dur-slow) var(--ease-in-out), opacity var(--dur-fast), visibility 0s; }
.menu.is-open .menu__list > li { opacity: 1; transform: none; transition: opacity var(--dur-base), transform var(--dur-slow) var(--ease-out); }
.menu.is-open .menu__list > li:nth-child(2) { transition-delay: 40ms; }
.menu.is-open .menu__list > li:nth-child(3) { transition-delay: 80ms; }
.menu.is-open .menu__list > li:nth-child(4) { transition-delay: 120ms; }
.menu.is-open .menu__list > li:nth-child(5) { transition-delay: 160ms; }
.menu.is-open .menu__list > li:nth-child(6) { transition-delay: 200ms; }
.menu.is-open .menu__list > li:nth-child(7) { transition-delay: 240ms; }

/* ---- Accordion pill (Performance) ------------------------------------- */
.acc { display: grid; gap: var(--space-3); justify-items: start; }
.acc__item {
  max-width: 23rem;
  border-radius: 1.5rem;
  background: var(--color-gray-900);
  border: 1px solid rgb(255 255 255 / 0.04);
  overflow: hidden;
  transition: background var(--dur-base);
}
.acc__head {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 0.625rem 1.25rem 0.625rem 0.625rem;
  font-size: var(--fs-subtitle); color: var(--color-white);
  font-weight: var(--weight-light); text-align: left;
  width: 100%;
}
.acc__icon { width: 2.25rem; height: 2.25rem; flex: none; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.12); display: grid; place-items: center; }
.acc__icon svg { width: 1rem; height: 1rem; }
.acc__plus { margin-left: auto; padding-left: var(--space-6); font-size: 1.25rem; line-height: 1; transition: transform var(--dur-base) var(--ease-out); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-slow) var(--ease-out); }
.acc__body > p { overflow: hidden; padding: 0 1.25rem; font-size: var(--fs-ui); color: var(--color-gray-300); line-height: 1.4; }
.acc__item.is-active .acc__body { grid-template-rows: 1fr; }
.acc__item.is-active .acc__body > p { padding-bottom: 1rem; }
.acc__item.is-active .acc__plus { transform: rotate(45deg); }
.acc__item.is-active .acc__head { padding-bottom: 0.375rem; }

/* ---- Media card (ROI, Partnership) ------------------------------------ */
.media-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-md);
  background: #000;
  isolation: isolate;
}
.media-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-reveal) var(--ease-out), filter var(--dur-slow) var(--ease-out); }
.media-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgb(0 0 0 / 0.25) 0%, transparent 30%, transparent 55%, rgb(0 0 0 / 0.65) 100%); pointer-events: none; }
.media-card__label { position: absolute; z-index: 2; left: 1.5rem; top: 1.25rem; font-size: var(--fs-ui); color: #fff; }
.media-card__title { position: absolute; z-index: 2; left: 1.5rem; bottom: 1.5rem; right: 5rem; font-size: var(--fs-title-sm); font-weight: var(--weight-regular); line-height: 1.2; color: #fff; }
.media-card .plus-btn { position: absolute; z-index: 2; right: 1.5rem; bottom: 1.5rem; }
.media-card--mono .media-card__img { filter: grayscale(1) contrast(1.05); }
.media-card--mono:hover .media-card__img, .media-card--mono:focus-within .media-card__img { filter: grayscale(0); transform: scale(1.04); }

/* ---- Thumbnail tile (product slider) ---------------------------------- */
.thumb {
  width: 5.75rem; height: 4.75rem;
  border-radius: var(--radius-sm);
  background: var(--color-gray-900);
  border: 1px solid rgb(255 255 255 / 0.05);
  display: grid; place-items: center;
  overflow: hidden;
  transition: background var(--dur-base), border-color var(--dur-base);
}
.thumb img { max-width: 72%; max-height: 72%; object-fit: contain; opacity: 0.55; transition: opacity var(--dur-base); }
.thumb img.is-photo { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: cover; }
.thumb:hover img { opacity: 0.85; }
.thumb[aria-selected="true"] { background: #4a4a4c; border-color: rgb(255 255 255 / 0.2); }
.thumb[aria-selected="true"] img { opacity: 1; }

/* ---- Spec card --------------------------------------------------------- */
.spec-card {
  width: 18.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgb(31 31 31 / 0.88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgb(255 255 255 / 0.06);
  display: grid; gap: var(--space-4);
  font-size: var(--fs-ui);
}
.spec-card__title { color: #fff; }
.spec-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-4); margin: 0; }
.spec-card dt { font-size: var(--fs-small); color: var(--color-gray-600); }
.spec-card dd { margin: 0; color: #fff; }
.spec-card .full { grid-column: 1 / -1; }
.spec-card .specs { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.spec-card .specs span + span::before { content: "|"; margin-right: var(--space-3); color: var(--color-gray-600); }
.spec-card .btn { justify-self: start; }

/* ---- Input (newsletter) ----------------------------------------------- */
.field {
  display: flex; align-items: center; gap: var(--space-2);
  height: 3.25rem; padding: 0 0.4rem 0 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-gray-700);
  transition: border-color var(--dur-base);
}
.field:focus-within { border-color: var(--color-gray-400); }
.field input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; font-size: var(--fs-ui); color: #fff; }
.field input::placeholder { color: var(--color-gray-400); }
.field button { width: 2.375rem; height: 2.375rem; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; transition: transform var(--dur-base) var(--ease-out); }
.field button:hover { transform: translateX(2px); }
.field button svg { width: 1.125rem; height: 1.125rem; } /* i-arrow-sm (Figma 16 px arrow-right) drawn at 18 px, arrow ~10.5 px: Ana tuned it in rounds 17-19 */

/* ---- Marquee ----------------------------------------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: clamp(3rem, 6vw, 7rem); padding-right: clamp(3rem, 6vw, 7rem); }
.marquee__group img { height: clamp(2rem, 3.4vw, 3.75rem); width: auto; opacity: 0.9; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---- Form controls (round 14, Enquire page) ---------------------------
   Underlined fields after the layout reference Ana shared, sized with the
   QUAD type scale. Labels sit above the line so they never disappear. */
.form { display: grid; gap: var(--space-12); }
.form__title { font-family: var(--font-display); font-weight: var(--weight-light); font-size: var(--fs-title); line-height: var(--lh-display); }
.form__group { display: grid; gap: var(--space-6); min-width: 0; margin: 0; padding: 0; border: 0; }
.form__legend { float: left; width: 100%; padding: 0; margin-bottom: var(--space-1); font-size: var(--fs-small); color: var(--text-secondary); }
.form__legend + * { clear: both; }
.form__legend span, .input__label span { margin-left: 0.15em; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }

.input { display: grid; gap: var(--space-1); }
.input__label { font-size: var(--fs-small); color: var(--text-secondary); transition: color var(--dur-fast); }
.input:focus-within .input__label { color: #fff; }
.input__control {
  width: 100%; padding: var(--space-2) 0 var(--space-3);
  background: transparent; border: 0; border-bottom: 1px solid var(--border-subtle); border-radius: 0;
  font-size: var(--fs-body-lg); color: #fff; outline: 0;
  transition: border-color var(--dur-base) var(--ease-out);
}
.input__control:hover { border-color: var(--color-gray-600); }
.input__control:focus { border-color: #fff; }
.input__control--area { resize: vertical; min-height: 6.5rem; line-height: var(--lh-body); }
.input__control:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: inset 0 0 0 100px #000; caret-color: #fff; }
.input__error { display: none; font-size: var(--fs-small); color: var(--color-danger); }
.is-invalid > .input__error, .is-invalid ~ .input__error { display: block; }
.input.is-invalid .input__control { border-color: var(--color-danger); }

/* Option chips: radio groups that read as the system chip */
.options { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.option { position: relative; display: inline-flex; cursor: pointer; }
.option input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.option span {
  display: inline-flex; align-items: center; height: 2.5rem; padding: 0 var(--space-5);
  border-radius: var(--radius-pill); background: var(--color-gray-850); border: 1px solid var(--color-gray-800);
  font-size: var(--fs-small); color: var(--color-gray-100); white-space: nowrap;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.option:hover span { border-color: var(--color-gray-600); color: #fff; }
.option input:checked + span { background: #fff; border-color: #fff; color: #000; }
.option input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.is-invalid .option span { border-color: rgb(240 138 138 / 0.45); }

/* Checkbox */
.check { display: grid; grid-template-columns: 1.125rem 1fr; gap: var(--space-3); align-items: start; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  width: 1.125rem; height: 1.125rem; margin-top: 0.1rem; display: grid; place-items: center;
  border: 1px solid var(--color-gray-600); border-radius: 0.3rem; color: #000;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.check__box svg { width: 0.75rem; height: 0.75rem; opacity: 0; transition: opacity var(--dur-fast); }
.check:hover .check__box { border-color: var(--color-gray-400); }
.check input:checked + .check__box { background: #fff; border-color: #fff; }
.check input:checked + .check__box svg { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid #fff; outline-offset: 2px; }
.check__text { font-size: var(--fs-small); color: var(--text-secondary); line-height: var(--lh-body); }
.check__text a { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }
.is-invalid .check__box { border-color: var(--color-danger); }

/* ---- Glass card (Figma "newsletter" frame) ---------------------------- */
.glass-card {
  display: grid; justify-items: center; gap: var(--space-5);
  max-width: 68rem; margin-inline: auto;
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  /* Figma "newsletter" card: #d9d9d9 at 5%, 30 px radius, #353535 to #2a2a2a
     border, 70 px background blur (35 px in CSS). Needs a texture behind it. */
  border-radius: 1.875rem;
  border: 1px solid #303030; /* midpoint of the Figma gradient stroke */
  background: rgb(217 217 217 / 0.05);
  backdrop-filter: blur(var(--blur-card)); -webkit-backdrop-filter: blur(var(--blur-card));
}
.glass-card__text { max-width: 34rem; }
.glass-card .btn { margin-top: var(--space-3); }

/* ---- CTA band (texture + Q ring behind a glass card) ------------------ */
/* Promoted from Enquire "Already Part of QUAD?" in round 20; used by Enquire
   and Training. Markup: section.cta-band > .cta-band__tex + img.cta-band__ring
   (icons/q-ring.svg) + .container > .glass-card. */
.cta-band { position: relative; overflow: hidden; padding: var(--section-y) 0; }
/* Figma "newsletter" frame: a soft-lit photo at 12% that fades to black, so the
   glass card has something to blur and reads with depth. Top edge masked so the
   texture does not start or end with a hard line against its neighbours. */
.cta-band__tex {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.3; /* Figma 12%, raised at Ana's request (round 16) */
  background: linear-gradient(176deg, rgb(0 0 0 / 0) 35%, rgb(0 0 0 / 0.85) 100%), url("../img/support-texture.jpg") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 72%, transparent 100%);
}
.cta-band__ring { position: absolute; left: 50%; top: 50%; width: min(108vw, 110rem); max-width: none; translate: -50% -50%; opacity: 0.55; pointer-events: none; }
.cta-band .container { position: relative; }
.cta-band .t-display { line-height: 1.1; }
@media (max-width: 640px) { .cta-band__ring { width: 130vw; } }

/* ---- Contact item (label + value under a hairline) -------------------- */
.contact-item { display: grid; align-content: start; gap: var(--space-3); padding-top: var(--space-6); border-top: 1px solid var(--border-subtle); }
.contact-item__label { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-small); color: var(--text-secondary); }
.contact-item__label img, .contact-item__label svg { width: 1rem; height: 1rem; color: #fff; }
.contact-item__value { justify-self: start; font-family: var(--font-display); font-weight: var(--weight-light); font-size: var(--fs-title-sm); line-height: 1.3; font-style: normal; color: #fff; transition: color var(--dur-fast); }
a.contact-item__value:hover { color: var(--color-gray-150); }
