/* ==========================================================================
   iXRLabs - shared component styles for marketing site pages.
   Mirrors the inline <style> block established in the first 5 pages so every
   new page is visually indistinguishable. Pair with colors_and_type.css
   (tokens), the inline tailwind.config, and ixr-site.js (behavior).
   ========================================================================== */

:root { --ease-out: cubic-bezier(0.22, 1, 0.36, 1); }
html { scroll-behavior: smooth; }
body, html { overflow-x: clip; }
body {
  font-family: 'Silka', 'Inter', 'Avenir Next', 'Helvetica Neue', Arial, system-ui, sans-serif;
  color: #0F172A; background: #fff;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
body h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.028em; font-weight: 800; color: #0D4979; text-wrap: balance; }
body h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.05; letter-spacing: -0.026em; font-weight: 800; color: #0D4979; text-wrap: balance; }
body h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; color: #0D4979; }

.hero-h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.028em; font-weight: 800; }
@media (min-width: 768px) { .hero-h1 { line-height: 0.98; letter-spacing: -0.032em; } }
.hero-lead { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.5; color: #1F2937; font-weight: 450; }
.hero-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: #005689; display: inline-flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { content: ''; width: 28px; height: 2px; background: #005689; display: inline-block; }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #D71F27; }
.lead { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; color: #334155; }

.placeholder {
  background: #D5E9F0; color: #0D4979;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 12px; line-height: 1.4; border-radius: 18px; padding: 16px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  position: relative; overflow: hidden;
}
.placeholder::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.35) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.placeholder span { position: relative; max-width: 80%; }
.placeholder .dim { display: block; opacity: 0.55; margin-top: 6px; font-size: 11px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px; font-weight: 600; font-size: 15px;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out);
  border: 1.5px solid transparent; line-height: 1; white-space: nowrap;
}
.btn-primary { background: #005689; color: #fff; box-shadow: 0 2px 6px rgba(0,86,137,.18); }
.btn-primary:hover { background: #0D4979; box-shadow: 0 6px 14px rgba(0,86,137,.26); transform: translateY(-1px); }
.btn-secondary { background: #fff; color: #005689; border-color: #005689; }
.btn-secondary:hover { background: #F0F7FC; transform: translateY(-1px); }
.btn-on-blue { background: #fff; color: #005689; }
.btn-on-blue:hover { background: #E8F2FA; transform: translateY(-1px); }
.btn-ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-ghost-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.nav-link { color: #334155; font-weight: 500; font-size: 15px; position: relative; }
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: #005689; transition: right 220ms var(--ease-out);
}
.nav-link:hover { color: #0F172A; }
.nav-link:hover::after { right: 0; }
.nav-link-active { color: #005689; font-weight: 600; }
.nav-link-active::after { right: 0; }

/* Header dropdowns */
.nav-dd { position: relative; }
.nav-dd-trigger { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; padding: 0; font-family: inherit; }
.nav-dd-trigger > svg, .nav-dd-trigger > [data-lucide] { transition: transform 200ms var(--ease-out); }
.nav-dd.is-open .nav-dd-trigger > svg, .nav-dd.is-open .nav-dd-trigger > [data-lucide] { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 210px; background: #fff; border: 1px solid #E2E8F0; border-radius: 14px;
  box-shadow: 0 14px 40px rgba(13,73,121,0.13), 0 2px 6px rgba(13,73,121,0.06);
  padding: 8px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); z-index: 50;
}
.nav-dd:hover .nav-dd-menu, .nav-dd.is-open .nav-dd-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dd-menu::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-dd-menu a {
  display: block; padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: #334155;
  white-space: nowrap; transition: background-color 140ms, color 140ms;
}
.nav-dd-menu a:hover { background: #EDF5FA; color: #0D4979; }

/* Mobile nav groups */
.mob-group-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #94A3B8; padding: 14px 0 4px; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 560ms; }
.reveal-stagger.is-visible > *:nth-child(9) { transition-delay: 640ms; }
.reveal-stagger.is-visible > *:nth-child(10) { transition-delay: 720ms; }
.reveal-stagger.is-visible > *:nth-child(11) { transition-delay: 800ms; }
.reveal-stagger.is-visible > *:nth-child(12) { transition-delay: 880ms; }

.lift { transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
.lift:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.05); }

.thumb-zoom { overflow: hidden; border-radius: 14px; }
.thumb-zoom > .placeholder { border-radius: 0; transition: transform 320ms var(--ease-out); }
.thumb-zoom:hover > .placeholder { transform: scale(1.03); }
.thumb-zoom > img { display: block; width: 100%; height: auto; object-fit: cover; transition: transform 320ms var(--ease-out); }
.thumb-zoom:hover > img { transform: scale(1.04); }

.sec-pad { padding-block: 64px; }
@media (min-width: 768px) { .sec-pad { padding-block: 80px; } }
@media (min-width: 1024px) { .sec-pad { padding-block: 112px; } }

details.faq { border-bottom: 1px solid #E2E8F0; padding: 22px 0; }
details.faq:first-of-type { border-top: 1px solid #E2E8F0; }
details.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 600; font-size: 17px; color: #0F172A;
  transition: color 200ms var(--ease-out);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary:hover { color: #005689; }
details.faq summary .icon { transition: transform 220ms var(--ease-out); color: #005689; flex-shrink: 0; }
details.faq[open] summary .icon { transform: rotate(45deg); }
details.faq[open] summary { color: #005689; }
details.faq .answer { margin-top: 14px; color: #334155; font-size: 16px; line-height: 1.65; max-width: 64ch; }

.skip-link {
  position: absolute; left: 12px; top: -40px;
  background: #005689; color: #fff; padding: 10px 14px; border-radius: 8px;
  transition: top 180ms var(--ease-out); z-index: 100;
}
.skip-link:focus { top: 12px; }
*:focus-visible { outline: 2px solid #005689; outline-offset: 2px; border-radius: 4px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 12px;
  font-size: 15px; font-weight: 500; line-height: 1.3;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
}
.chip i { width: 18px; height: 18px; flex-shrink: 0; }

.discipline-chip {
  display: inline-flex; padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; line-height: 1;
  background: #EDF5FA; color: #005689; border: 1px solid #D5E9F0;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out);
  cursor: pointer;
}
.discipline-chip:hover, .discipline-chip.is-active {
  background: #005689; color: #fff; border-color: #005689;
}

/* Plain light chip for at-a-glance / spec rows */
.spec-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px;
  font-size: 14px; line-height: 1.2;
  background: #EDF5FA; border: 1px solid #D5E9F0; color: #0D4979;
}
.spec-chip .spec-label { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; color: #005689; }
.spec-chip .spec-val { font-weight: 600; color: #11233B; }

/* Form controls */
.field-label { display: block; font-size: 13px; font-weight: 600; color: #11233B; margin-bottom: 6px; }
.field {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid #E2E8F0; background: #fff; color: #0F172A;
  font-size: 15px; font-family: inherit; line-height: 1.4;
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.field::placeholder { color: #94A3B8; }
.field:focus { outline: none; border-color: #005689; box-shadow: 0 0 0 3px rgba(0,86,137,0.12); }
textarea.field { resize: vertical; min-height: 120px; }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23005689' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px 14px; padding-right: 38px; }

/* Custom dropdown - layout-positioned so it stays glued to the field at any zoom */
.cselect { position: relative; }
.cselect-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer; }
.cselect-btn .cselect-value { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect-btn[data-placeholder="true"] .cselect-value { color: #94A3B8; }
.cselect-chev { flex: 0 0 auto; width: 18px; height: 18px; color: #005689; transition: transform 180ms var(--ease-out); }
.cselect.open .cselect-chev { transform: rotate(180deg); }
.cselect-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1.5px solid #E2E8F0; border-radius: 12px; box-shadow: 0 14px 32px rgba(15,23,42,0.16); max-height: 280px; overflow: auto; display: none; }
.cselect.open .cselect-list { display: block; }
.cselect-opt { padding: 10px 12px; border-radius: 8px; font-size: 15px; color: #334155; cursor: pointer; }
.cselect-opt:hover { background: #F1F5F9; color: #0F172A; }
.cselect-opt[aria-selected="true"] { color: #005689; font-weight: 600; background: #EFF6FB; }

/* Checkbox group pill */
.check-pill { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 12px; border: 1.5px solid #E2E8F0; cursor: pointer; font-size: 14px; font-weight: 500; color: #334155; transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out); }
.check-pill:hover { border-color: #005689; }
.check-pill input { accent-color: #005689; width: 17px; height: 17px; }
.check-pill:has(input:checked) { border-color: #005689; background: #EDF5FA; color: #0D4979; }

/* Cycling chat prompt panel (7thi callouts) */
.chat-cycle { position: relative; }
.chat-cycle [data-chat-line] {
  position: absolute; inset: 0; opacity: 0; transform: translateY(8px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  pointer-events: none;
}
.chat-cycle [data-chat-line].is-active { opacity: 1; transform: translateY(0); }
.chat-bubble {
  background: #fff; border: 1px solid #E2E8F0; border-radius: 16px 16px 16px 4px;
  padding: 16px 18px; box-shadow: 0 4px 24px rgba(13,73,121,0.09);
  color: #11233B; font-size: 16px; line-height: 1.5; max-width: 520px;
}
.chat-bubble .who { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #64748B; margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}
