/* shadcn / Launch UI patterns — components */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    background 0.2s,
    border-color 0.2s;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 0 32px -8px hsl(42 96% 52% / 0.7);
}

.btn-ghost {
  background: hsl(248 25% 12% / 0.6);
  color: var(--foreground);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: hsl(42 96% 52% / 0.45);
  background: hsl(248 25% 16% / 0.85);
}

.btn-glow {
  background: transparent;
  color: var(--foreground);
  border-color: hsl(268 50% 45% / 0.6);
  box-shadow: inset 0 0 0 1px hsl(268 60% 60% / 0.25);
}

.btn-glow:hover {
  border-color: var(--secondary);
  box-shadow: 0 0 24px -6px hsl(268 60% 50% / 0.5);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: hsl(248 28% 10% / 0.85);
  color: var(--muted-foreground);
  backdrop-filter: blur(10px);
}

.badge-pill strong {
  color: var(--primary);
  font-weight: 700;
}

.card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  transition:
    transform 0.25s var(--ease-out),
    border-color 0.25s,
    box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: hsl(42 96% 52% / 0.35);
  box-shadow: var(--shadow), var(--shadow-glow);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.55;
}

.bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, 1fr);
}

.bento .card {
  height: 100%;
}

.bento__wide {
  grid-column: span 12;
}

.bento__half {
  grid-column: span 12;
}

@media (min-width: 768px) {
  .bento__wide {
    grid-column: span 8;
  }
  .bento__side {
    grid-column: span 4;
  }
  .bento__half {
    grid-column: span 6;
  }
  .bento__third {
    grid-column: span 4;
  }
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.stat {
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: hsl(248 28% 9% / 0.9);
}

.stat strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

/* Tabs (shadcn-like) */
.ui-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: var(--radius);
  background: var(--muted);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.ui-tabs__tab {
  flex: 1 1 auto;
  min-width: 5rem;
  padding: 0.55rem 0.85rem;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--muted-foreground);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.ui-tabs__tab.is-active,
.ui-tabs__tab[aria-selected="true"] {
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 1px 3px hsl(0 0% 0% / 0.25);
}

.ui-tabs__panel[hidden] {
  display: none;
}

/* Accordion */
.ui-accordion__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
  background: var(--card);
}

.ui-accordion__trigger {
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  border: none;
  background: transparent;
  color: var(--foreground);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ui-accordion__trigger::after {
  content: "+";
  color: var(--primary);
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.ui-accordion__item.is-open .ui-accordion__trigger::after {
  transform: rotate(45deg);
}

.ui-accordion__panel {
  display: none;
  padding: 0 1rem 1rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

.ui-accordion__item.is-open .ui-accordion__panel {
  display: block;
}

.data-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--muted);
  color: var(--foreground);
  font-weight: 600;
}

.data-table caption {
  padding: 0.65rem 1rem;
  text-align: left;
  color: var(--muted-foreground);
  font-size: 0.82rem;
}

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid hsl(42 96% 52% / 0.35);
  background: linear-gradient(135deg, hsl(248 32% 12%), hsl(268 40% 16%));
}

.cta-band .btn-row {
  justify-content: center;
}

.disclaimer {
  border-left: 3px solid var(--primary);
  padding: 1rem 1.15rem;
  background: hsl(248 28% 9%);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted-foreground);
}

.cross-links {
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  background: hsl(248 26% 8% / 0.6);
}

.cross-links ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted-foreground);
}

.page-hero.section {
  padding: 2rem 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  max-width: var(--container);
  margin-inline: auto;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  text-decoration: none;
}

main.section .container > section {
  margin-bottom: 2rem;
}

.page-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.15;
}

.page-hero .lead {
  margin: 0;
  max-width: 58ch;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.steps li {
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--primary);
  color: var(--primary-foreground);
}
