@font-face {
  font-family: 'Libron';
  src: url('../fonts/Libron-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libron';
  src: url('../fonts/Libron-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Libron';
  src: url('../fonts/Libron-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libron';
  src: url('../fonts/Libron-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --font-serif: 'Libron', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --brand-forest: #0B281B;
  --brand-forest-card: #0D2D1E;
  --brand-forest-border: #1B4430;
  --brand-cream: #FAF9F5;
  --brand-surface: #FFFFFF;
  --brand-border: #E5E2DA;
}

body {
  font-family: var(--font-sans);
  background-color: var(--brand-cream);
  color: #1A1F1C;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-libron {
  font-family: var(--font-serif);
}

.font-mono-code {
  font-family: var(--font-mono);
}

/* Custom Accordion transition */
.faq-answer {
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

.faq-answer.open {
  max-height: 400px;
  opacity: 1;
}

/* Custom toggle switch */
.switch-input:checked + .switch-track {
  background-color: #0B281B;
}

.switch-input:checked + .switch-track .switch-thumb {
  transform: translateX(18px);
  background-color: #FFFFFF;
}

/* Scorecard table badges */
.pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}
.pill-behind {
  background-color: rgba(239, 68, 68, 0.2);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.pill-ahead {
  background-color: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.pill-level {
  background-color: rgba(156, 163, 175, 0.2);
  color: #D1D5DB;
  border: 1px solid rgba(156, 163, 175, 0.3);
}


/* ========================================================================= */
/* YUTA AUDIT SEARCH BAR & TERMINAL (EXPLICIT BULLETPROOF STYLING)           */
/* ========================================================================= */

.yuta-search-container {
  max-width: 760px;
  margin: 0 auto 3rem auto;
  position: relative;
}

.yuta-search-bar {
  display: flex;
  align-items: center;
  background-color: #071910;
  border: 1.5px solid #1C4530;
  border-radius: 16px;
  padding: 6px 6px 6px 16px;
  box-shadow: 0 10px 30px -5px rgba(11, 40, 27, 0.25), 0 0 20px rgba(16, 185, 129, 0.08);
  transition: all 0.2s ease;
  position: relative;
  z-index: 10;
}

.yuta-search-bar:focus-within {
  border-color: #10B981;
  box-shadow: 0 10px 30px -5px rgba(11, 40, 27, 0.35), 0 0 25px rgba(16, 185, 129, 0.25);
}

.yuta-search-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  color: #10B981;
  margin-right: 12px;
  flex-shrink: 0;
}

.yuta-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  min-width: 0;
  padding: 8px 0;
}

.yuta-search-input::placeholder {
  color: #628571;
}

.yuta-search-btn {
  background-color: #10B981;
  color: #071910;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.yuta-search-btn:hover {
  background-color: #34D399;
  transform: translateY(-1px);
}

.yuta-search-btn:active {
  transform: scale(0.98);
}

.yuta-search-btn-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
}

.yuta-console-window {
  background-color: #081F14;
  border: 1.5px solid #1F4A34;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  margin-top: 1.5rem;
}

.yuta-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #05140D;
  border-bottom: 1px solid #1A3D2A;
  padding: 12px 20px;
}

.yuta-card {
  background-color: #05160E;
  border: 1px solid #1A3D2A;
  border-radius: 12px;
  padding: 16px;
}

/* ========================================================================= */
/* HERO: ROTATING QUERY TICKER, DELIVERABLE PILLS & LIVE TRUST CHIP          */
/* ========================================================================= */

.yuta-hero {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}

.yuta-hero-title {
  font-size: 2.25rem;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.yuta-hero-intro {
  line-height: 1.5;
}

@media (min-width: 640px) {
  .yuta-hero { padding-top: 2.5rem; }
  .yuta-hero-title { font-size: 3.75rem; }
}

@media (min-width: 1024px) {
  .yuta-hero-title { font-size: 68px; }
}

.yuta-query-ticker {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 12px;
  margin: 0 0 0.75rem 0;
}

.yuta-query-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FAF9F5;
  background-color: var(--brand-forest);
  padding: 4px 9px;
  border-radius: 9999px;
  white-space: nowrap;
  margin-top: 2px;
}

.yuta-query-window {
  position: relative;
  overflow: hidden;
  min-width: 0;
  flex: 1 1 320px;
}

.yuta-query-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.0625rem, 2vw, 1.3125rem);
  line-height: 1.35;
  color: #1B5E3C;
  margin: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.yuta-query-text.is-leaving {
  opacity: 0;
  transform: translateY(-10px);
}

.yuta-query-text.is-entering {
  opacity: 0;
  transform: translateY(10px);
  transition: none;
}

.yuta-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.yuta-deliverable-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 5px;
  background-color: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-forest);
  box-shadow: 0 1px 2px rgba(11, 40, 27, 0.04);
}

.yuta-deliverable-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 9999px;
  background-color: var(--brand-forest);
  color: #FAF9F5;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}

.yuta-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background-color: #F1EFE7;
  border: 1px solid #DDD9CE;
  border-radius: 9999px;
  font-size: 11px;
  line-height: 1.4;
  color: #3E4942;
}

.yuta-live-chip strong {
  color: var(--brand-forest);
  font-weight: 700;
}

.yuta-live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: #10B981;
  flex-shrink: 0;
}

.yuta-live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: #10B981;
  animation: yuta-live-pulse 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes yuta-live-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  75%, 100% { transform: scale(2.6); opacity: 0; }
}

/* Reserve two lines so longer queries never push the content below around */
@media (max-width: 1023px) {
  .yuta-query-text { min-height: 2.7em; }
}

@media (max-width: 640px) {
  .yuta-live-chip { border-radius: 14px; }
  .yuta-live-sep { display: none; }
  .yuta-live-sub { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .yuta-live-dot::after { animation: none; }
  .yuta-query-text { transition: none; }
}
