/* ==========================================================================
   Inxcept — base design tokens & global styles
   Color/font values are injected as CSS custom properties from theme
   settings in layout/theme.liquid. Everything below reads those vars.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-background);
  color: var(--color-text);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main { flex: 1 0 auto; }

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button { cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

/* --------------------------------------------------------------------- */
/* Fluid type scale                                                       */
/* --------------------------------------------------------------------- */

:root {
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.18vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --text-xl: clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.8rem + 2.2vw, 3.5rem);
  --text-4xl: clamp(2.75rem, 2rem + 3.5vw, 5rem);
  --text-5xl: clamp(3.25rem, 2.2rem + 5vw, 6.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 7rem;
  --space-20: 9rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.5s;

  --container-width: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
}

/* --------------------------------------------------------------------- */
/* Layout helpers                                                         */
/* --------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-16);
}

@media (max-width: 749px) {
  .section { padding-block: var(--space-10); }
}

.section--tight { padding-block: var(--space-10); }

.section--light {
  background: var(--color-light-background);
  color: var(--color-light-text);
}

.section--alt { background: var(--color-background-alt); }

.grid { display: grid; gap: var(--space-6); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 1000;
  background: var(--color-accent);
  color: var(--color-accent-text);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: var(--space-4); }

/* --------------------------------------------------------------------- */
/* Focus states                                                           */
/* --------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* A bright accent tuned for dark backgrounds can fail contrast on light
   sections — fall back to the light section's own text color so the
   focus ring stays visible regardless of the chosen accent color. */
.section--light :focus-visible {
  outline-color: var(--color-light-text);
}

/* --------------------------------------------------------------------- */
/* Typography utilities                                                   */
/* --------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* On light sections, an accent that reads fine on dark backgrounds can
   drop below AA contrast — fall back to the light section's own text
   color for the label (the dot stays accent; it's decorative). */
.section--light .eyebrow { color: #4a4a4f; }

.text-muted { color: var(--color-text-muted); }
.section--light .text-muted { color: #4a4a4f; }

.section-heading { max-width: 46rem; }
.section-heading h2 { font-size: var(--text-3xl); margin-top: var(--space-3); }
.section-heading p { font-size: var(--text-lg); color: var(--color-text-muted); margin-top: var(--space-4); }
.section--light .section-heading p { color: #4a4a4f; }
.section-heading--center { margin-inline: auto; text-align: center; }

/* --------------------------------------------------------------------- */
/* Buttons                                                                 */
/* --------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  padding: 0.9em 1.6em;
  border-radius: var(--button-radius, 999px);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-accent);
  color: var(--color-accent-text);
}
.btn--primary:hover { filter: brightness(1.08); }

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--secondary:hover { border-color: var(--color-text); }

.btn--ghost {
  background: transparent;
  color: var(--color-accent);
  padding-inline: 0.2em;
}
.btn--ghost:hover { text-decoration: underline; }

.btn--block { width: 100%; }

.btn svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }

/* --------------------------------------------------------------------- */
/* Cards                                                                   */
/* --------------------------------------------------------------------- */

.card {
  background: var(--color-background-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

/* --------------------------------------------------------------------- */
/* Scroll reveal                                                          */
/* --------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* --------------------------------------------------------------------- */
/* Logo marquee                                                           */
/* --------------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

.marquee__item { flex-shrink: 0; opacity: 0.6; transition: opacity 0.25s var(--ease); height: 2.25rem; display: flex; align-items: center; }
.marquee__item img { height: 100%; width: auto; filter: grayscale(1) brightness(1.6); }
.section--light .marquee__item img { filter: grayscale(1) brightness(0.4); }
.marquee__item:hover { opacity: 1; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------- */
/* Accordion (FAQ)                                                        */
/* --------------------------------------------------------------------- */

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
}

.accordion-item summary::-webkit-details-marker { display: none; }

.accordion-item summary .accordion-icon {
  flex-shrink: 0;
  width: 1.25rem; height: 1.25rem;
  transition: transform 0.3s var(--ease);
}

.accordion-item[open] summary .accordion-icon { transform: rotate(45deg); }

.accordion-item__body {
  padding-bottom: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: 42rem;
}
.section--light .accordion-item__body { color: #4a4a4f; }

/* --------------------------------------------------------------------- */
/* Stat block                                                             */
/* --------------------------------------------------------------------- */

.stat-block__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--color-accent);
  line-height: 1;
}

.stat-block__label {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}
.section--light .stat-block__label { color: #4a4a4f; }

/* --------------------------------------------------------------------- */
/* Forms                                                                   */
/* --------------------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }

.field label { font-size: var(--text-sm); font-weight: 600; }

.field input,
.field textarea,
.field select {
  background: var(--color-background-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color 0.2s var(--ease);
}
.section--light .field input,
.section--light .field textarea,
.section--light .field select {
  background: #fff;
  color: var(--color-light-text);
}

.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--color-accent); }

.field textarea { min-height: 8rem; resize: vertical; }

.field__error {
  font-size: var(--text-xs);
  color: #ff6b6b;
}

.form-success {
  background: var(--color-background-alt);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.form-success__alt {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.form-success__alt a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  margin-left: var(--space-1);
}

/* honeypot */
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------- */
/* Sticky mobile CTA                                                      */
/* --------------------------------------------------------------------- */

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: var(--space-3) var(--space-4);
  padding-bottom: max(var(--space-3), env(safe-area-inset-bottom));
  background: var(--color-background);
  border-top: 1px solid var(--color-border);
  transform: translateY(0);
  transition: transform 0.3s var(--ease);
}

.sticky-cta.is-hidden { transform: translateY(100%); }

@media (min-width: 750px) {
  .sticky-cta { display: none; }
}

/* --------------------------------------------------------------------- */
/* Utility                                                                 */
/* --------------------------------------------------------------------- */

.hidden { display: none !important; }

@media (max-width: 989px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 990px) {
  .hide-desktop { display: none !important; }
}

/* --------------------------------------------------------------------- */
/* Announcement bar                                                       */
/* --------------------------------------------------------------------- */

.announcement-bar {
  background: var(--color-accent);
  color: var(--color-accent-text);
}

.announcement-bar__inner { padding-block: var(--space-2); }

.announcement-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
}

.announcement-bar__link { display: inline-flex; align-items: center; gap: var(--space-1); text-decoration: underline; }
.announcement-bar__icon { width: 0.85em; height: 0.85em; }

/* --------------------------------------------------------------------- */
/* Header                                                                  */
/* --------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--color-background) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}

.site-header__wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
}

.site-header__nav ul { display: flex; align-items: center; gap: var(--space-6); }
.site-header__nav a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color 0.2s var(--ease);
}
.site-header__nav a:hover { color: var(--color-text); }

.site-header__actions { display: flex; align-items: center; gap: var(--space-4); }

.site-header__menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}
.site-header__menu-toggle svg { width: 1.5rem; height: 1.5rem; }
.site-header__menu-toggle .icon-close { display: none; }
.site-header__menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.site-header__menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--color-background);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-6);
  padding-top: 6rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0.35s;
}

.mobile-menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }

.mobile-menu ul { display: flex; flex-direction: column; gap: var(--space-5); }
.mobile-menu a { font-family: var(--font-heading); font-size: var(--text-2xl); font-weight: 700; }

body.menu-open { overflow: hidden; }

/* --------------------------------------------------------------------- */
/* Footer                                                                   */
/* --------------------------------------------------------------------- */

.site-footer {
  background: var(--color-background-alt);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-12) var(--space-6);
  margin-top: auto;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1.3fr;
  gap: var(--space-8);
  padding-bottom: var(--space-10);
}

@media (max-width: 989px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-footer__top { grid-template-columns: 1fr; }
}

.site-footer__tagline { margin-top: var(--space-4); color: var(--color-text-muted); max-width: 22rem; }

.site-footer__social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.site-footer__social a {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.site-footer__social a:hover { border-color: var(--color-accent); color: var(--color-accent); }
.site-footer__social svg { width: 1.1rem; height: 1.1rem; }

.site-footer h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.site-footer__nav ul,
.site-footer__contact ul { display: flex; flex-direction: column; gap: var(--space-3); }
.site-footer__contact a { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); }
.site-footer__contact svg { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--color-accent); }

.footer__newsletter-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.footer__newsletter-row input {
  flex: 1 1 12rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  color: var(--color-text);
}
.footer__newsletter-success { display: flex; align-items: center; gap: var(--space-2); color: var(--color-accent); font-weight: 600; }
.footer__newsletter-success svg { width: 1.1em; height: 1.1em; }
.footer__newsletter-download { margin-top: var(--space-3); }
.footer__newsletter-note { margin-top: var(--space-2); font-size: var(--text-xs); }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.site-footer__bottom ul { display: flex; gap: var(--space-5); }
.site-footer__bottom a:hover { color: var(--color-text); }

/* --- Facet X brand logo (installed 2026-07-31) --- */
.site-logo { height: 38px; width: auto; display: block; }
.site-logo--footer { height: 34px; }
.site-footer__logo-link { display: inline-block; line-height: 0; }
@media (max-width: 640px) { .site-logo { height: 30px; } }

/* Collection / consent notices (Privacy Act) */
.form-notice { font-size: var(--text-sm); color: var(--color-text-muted); margin: var(--space-4) 0 var(--space-3); }
.form-notice a, .footer__newsletter-note a { color: var(--color-text); text-decoration: underline; text-underline-offset: 2px; }

.form-error { font-size: var(--text-sm); color: #ff9e8f; font-weight: 600; margin: var(--space-3) 0; }
