/* ============================================
   URIP — Advanced Ticketing
   Marketing section (index.html) + deep-dive page (ticketing-feature.html)
   Reuses brand tokens from landing.css.
   No new tokens introduced. No emojis. No competitor-bashing.
   ============================================ */

/* ============================================
   LANDING SECTION — index.html#ticketing
   Reuses: section.block.muted, .container, .section-head, .btn
   ============================================ */
.ticketing-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.ticketing-feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 250ms ease;
  position: relative;
}
.ticketing-feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal-accent);
  box-shadow: var(--shadow-lg);
}
.ticketing-feature-card .tf-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(26,188,156,0.12) 0%, rgba(26,188,156,0.04) 100%);
  color: var(--teal-accent);
  font-size: 1.25rem;
  margin-bottom: 18px;
}
.ticketing-feature-card h4 {
  font-size: 1.0625rem;
  color: var(--gray-900);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.ticketing-feature-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}
.ticketing-feature-card code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  background: var(--gray-100);
  color: var(--gray-800);
  padding: 1px 5px;
  border-radius: 4px;
}
.ticketing-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}
.ticketing-pricing-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
}
.ticketing-pricing-pill i {
  color: var(--teal-accent);
}

/* ============================================
   DEEP-DIVE PAGE — ticketing-feature.html
   ============================================ */

/* HERO */
.tf-hero {
  position: relative;
  padding: calc(var(--topbar-height) + 80px) 0 96px;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(26,188,156,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 28%, rgba(46,204,113,0.10) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy-primary) 0%, var(--navy-dark) 100%);
  color: var(--white);
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tf-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
}
.tf-breadcrumb {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
}
.tf-breadcrumb a {
  color: var(--teal-accent);
  font-weight: 500;
}
.tf-breadcrumb a:hover {
  color: var(--teal-light);
}
.tf-bc-sep {
  margin: 0 8px;
  color: rgba(255,255,255,0.3);
}
.tf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(26,188,156,0.12);
  border: 1px solid rgba(26,188,156,0.3);
  color: var(--teal-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}
.tf-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-accent);
  box-shadow: 0 0 0 0 rgba(26,188,156,0.6);
  animation: tf-pulse 2s infinite;
}
@keyframes tf-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(26,188,156,0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(26,188,156,0); }
  100% { box-shadow: 0 0 0 0 rgba(26,188,156,0); }
}
.tf-hero h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.tf-hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  max-width: 760px;
  margin-bottom: 32px;
}
.tf-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.tf-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.tf-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 7px 13px;
  border-radius: var(--radius-full);
}
.tf-tag i {
  color: var(--teal-accent);
}

/* CAPABILITIES GRID */
.tf-cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tf-cap-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 250ms ease;
}
.tf-cap-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal-accent);
  box-shadow: var(--shadow-lg);
}
.tf-cap-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(26,188,156,0.12) 0%, rgba(26,188,156,0.04) 100%);
  color: var(--teal-accent);
  font-size: 1.125rem;
  margin-bottom: 16px;
}
.tf-cap-card h3 {
  font-size: 1.0625rem;
  color: var(--gray-900);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.tf-cap-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}
.tf-cap-card code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  background: var(--gray-100);
  color: var(--gray-800);
  padding: 1px 5px;
  border-radius: 4px;
}

/* COMPARISON TABLE */
.tf-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(13,27,42,0.35);
  margin-bottom: 24px;
}
table.tf-comparison {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 880px;
}
table.tf-comparison thead th {
  text-align: left;
  padding: 18px 16px;
  background: rgba(13,27,42,0.7);
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
}
table.tf-comparison thead th.tf-col-urip .tf-vendor {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--teal-accent) 0%, var(--teal-hover) 100%);
  color: var(--white);
  font-weight: 700;
}
table.tf-comparison tbody td {
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.78);
  vertical-align: top;
}
table.tf-comparison tbody tr:last-child td {
  border-bottom: none;
}
table.tf-comparison tbody tr:hover td {
  background: rgba(255,255,255,0.02);
}
table.tf-comparison tbody tr.tf-row-strong td {
  background: rgba(26,188,156,0.04);
}
table.tf-comparison tbody tr.tf-row-strong:hover td {
  background: rgba(26,188,156,0.07);
}
.tf-cap {
  font-weight: 500;
  color: rgba(255,255,255,0.92);
}
.tf-cap strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}
.tf-cap-note {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}
.tf-cell {
  white-space: nowrap;
}
.tf-cell i {
  margin-right: 6px;
}
.tf-cell.tf-win {
  color: #5EEAD4;
  font-weight: 600;
}
.tf-cell.tf-win i.fa-trophy {
  color: #FCD34D;
}
.tf-cell.tf-parity {
  color: rgba(255,255,255,0.78);
}
.tf-cell.tf-defer {
  color: #FCD34D;
}
.tf-cell.tf-defer i {
  color: #FBBF24;
}
.tf-cell.tf-lose {
  color: rgba(255,255,255,0.55);
}
.tf-cell.tf-lose i {
  color: rgba(239,68,68,0.7);
}
.tf-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
}
.tf-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tf-legend-item i.fa-trophy {
  color: #FCD34D;
}
.tf-legend-item i.fa-circle-check {
  color: #5EEAD4;
}
.tf-legend-item i.fa-clock {
  color: #FBBF24;
}
.tf-legend-item i.fa-circle-xmark {
  color: rgba(239,68,68,0.7);
}
.tf-honesty {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  max-width: 920px;
  border-left: 3px solid rgba(26,188,156,0.5);
  padding: 4px 0 4px 16px;
  margin: 0;
}

/* HOW IT WORKS — flow */
.tf-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tf-flow-step {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: all 250ms ease;
}
.tf-flow-step:hover {
  transform: translateY(-3px);
  border-color: var(--teal-accent);
  box-shadow: var(--shadow-lg);
}
.tf-flow-num {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal-accent);
  margin-bottom: 12px;
}
.tf-flow-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal-accent) 0%, var(--teal-hover) 100%);
  color: var(--white);
  font-size: 1.375rem;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(26,188,156,0.3);
}
.tf-flow-step h3 {
  font-size: 1.125rem;
  color: var(--gray-900);
  margin-bottom: 10px;
}
.tf-flow-step p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}
.tf-flow-step code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  background: var(--gray-100);
  color: var(--gray-800);
  padding: 1px 5px;
  border-radius: 4px;
}
.tf-flow-arrow {
  display: grid;
  place-items: center;
  color: var(--teal-accent);
  font-size: 1.25rem;
  padding: 0 16px;
  list-style: none;
}

/* REUSE GRID */
.tf-reuse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tf-reuse-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 250ms ease;
}
.tf-reuse-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal-accent);
  box-shadow: var(--shadow-md);
}
.tf-reuse-card > i {
  font-size: 1.375rem;
  color: var(--teal-accent);
  margin-bottom: 14px;
  display: block;
}
.tf-reuse-card h4 {
  font-size: 1rem;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.tf-reuse-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}
.tf-reuse-card code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  background: var(--gray-100);
  color: var(--gray-800);
  padding: 1px 5px;
  border-radius: 4px;
}

/* PRICING POSITIONING */
.tf-pricing-pos {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
  padding: 36px 36px;
  background:
    linear-gradient(135deg, rgba(26,188,156,0.08) 0%, rgba(46,204,113,0.04) 100%),
    rgba(255,255,255,0.02);
  border: 1px solid rgba(26,188,156,0.25);
  border-radius: var(--radius-lg);
}
.tf-pricing-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal-accent) 0%, var(--teal-hover) 100%);
  color: var(--white);
  font-size: 1.5rem;
}
.tf-pricing-pos h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  margin-bottom: 12px;
}
.tf-pricing-pos p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin: 0;
}

/* CLOSING CTA */
.tf-final {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.tf-final h2 {
  margin-bottom: 14px;
}
.tf-final > p {
  font-size: 1.0625rem;
  color: var(--gray-600);
  margin: 0 auto 28px;
  max-width: 560px;
}
.tf-final-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}
.tf-final-tagline {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0.02em;
}

/* FOOTER override (page-specific minor tweak) */
.tf-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

/* ============================================
   RESPONSIVE — tablet (≤1024px)
   ============================================ */
@media (max-width: 1024px) {
  .ticketing-features { grid-template-columns: repeat(2, 1fr); }
  .tf-cap-grid { grid-template-columns: repeat(2, 1fr); }
  .tf-reuse-grid { grid-template-columns: repeat(2, 1fr); }
  .tf-flow {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tf-flow-arrow {
    transform: rotate(90deg);
    padding: 6px 0;
  }
}

/* ============================================
   RESPONSIVE — mobile (≤768px)
   ============================================ */
@media (max-width: 768px) {
  .ticketing-features { grid-template-columns: 1fr; gap: 16px; }
  .ticketing-feature-card { padding: 24px 22px; }
  .ticketing-cta-row { flex-direction: column; align-items: stretch; }
  .ticketing-cta-row .btn { justify-content: center; }
  .ticketing-pricing-pill { justify-content: center; }

  .tf-hero { padding: calc(var(--topbar-height) + 56px) 0 64px; }
  .tf-hero-sub { font-size: 1rem; }
  .tf-hero-cta { flex-direction: column; align-items: stretch; }
  .tf-hero-cta .btn { justify-content: center; }

  .tf-cap-grid { grid-template-columns: 1fr; gap: 16px; }
  .tf-cap-card { padding: 24px 22px; }
  .tf-reuse-grid { grid-template-columns: 1fr; gap: 16px; }

  .tf-pricing-pos {
    flex-direction: column;
    gap: 18px;
    padding: 28px 24px;
    text-align: left;
  }
  .tf-final-cta { flex-direction: column; align-items: stretch; }
  .tf-final-cta .btn { justify-content: center; }

  /* Comparison table — convert sticky header less aggressive on small */
  table.tf-comparison thead th { padding: 14px 12px; font-size: 0.75rem; }
  table.tf-comparison tbody td { padding: 12px; }
}

/* ============================================
   RESPONSIVE — small mobile (≤390px)
   ============================================ */
@media (max-width: 390px) {
  .ticketing-feature-card { padding: 22px 20px; }
  .tf-cap-card { padding: 22px 20px; }
  .tf-flow-step { padding: 26px 22px; }
  .tf-reuse-card { padding: 24px 20px; }
  .tf-pricing-pos { padding: 24px 20px; }
}

/* ============================================
   PRINT — keep tables readable in board-pack PDFs
   ============================================ */
@media print {
  .tf-hero, .tf-hero-cta, .tf-final-cta, .ticketing-cta-row, .nav-cta { display: none; }
  table.tf-comparison { font-size: 11px; min-width: 0; }
  table.tf-comparison thead th { background: #f0f0f0; color: #000; position: static; }
  table.tf-comparison tbody td { color: #000; }
  .tf-cap, .tf-cell { white-space: normal; }
}

/* ============================================
   A11Y — focus visibility
   ============================================ */
.tf-hero a:focus-visible,
.ticketing-feature-card a:focus-visible,
.tf-cap-card a:focus-visible,
.tf-final a:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 3px;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .tf-pulse { animation: none; }
  .ticketing-feature-card,
  .tf-cap-card,
  .tf-flow-step,
  .tf-reuse-card { transition: none; }
  .ticketing-feature-card:hover,
  .tf-cap-card:hover,
  .tf-flow-step:hover,
  .tf-reuse-card:hover { transform: none; }
}
