/*
  Reusable components. Each block corresponds to an entry in the
  Component Inventory (DESIGN.md section 31). Add new components here;
  keep page-specific one-offs out of this file.
*/

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 42px;
  padding-inline: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--transition-base), border-color var(--transition-base),
    color var(--transition-base);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-lg {
  height: 48px;
  padding-inline: var(--space-6);
  font-size: 16px;
}

.btn-sm {
  height: 36px;
  padding-inline: var(--space-3);
  font-size: 14px;
}

/* Gradient reserved for this single CTA style -- do not extend it to
   secondary/tertiary buttons, badges, or icons (dilutes the signal). */
.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-text-on-primary);
}

.btn-primary:hover:not(:disabled) {
  background: var(--gradient-primary-hover);
  color: var(--color-text-on-primary);
  text-decoration: none;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--color-surface-subtle);
  color: var(--color-text);
  text-decoration: none;
}

.btn-tertiary {
  background: transparent;
  color: var(--color-primary);
  height: auto;
  padding-inline: 0;
}

.btn-tertiary:hover:not(:disabled) {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* Async/loading state -- pair with disabling the control in JS */
.btn[aria-busy="true"] {
  color: transparent;
  position: relative;
  pointer-events: none;
}

.btn[aria-busy="true"]::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  color: var(--color-text-on-primary);
  animation: btn-spin 700ms linear infinite;
}

.btn-secondary[aria-busy="true"]::after,
.btn-tertiary[aria-busy="true"]::after {
  color: var(--color-text-secondary);
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .btn[aria-busy="true"]::after {
    animation: none;
  }
}

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

.field {
  margin-bottom: var(--space-4);
}

.label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.input,
.select {
  display: block;
  width: 100%;
  height: 44px;
  padding-inline: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 16px;
  transition: border-color var(--transition-base);
}

.input::placeholder {
  color: var(--color-text-muted);
}

.input:hover,
.select:hover {
  border-color: var(--color-border-strong);
}

.input:focus-visible,
.select:focus-visible {
  border-color: var(--color-primary);
}

.input[aria-invalid="true"] {
  border-color: var(--color-danger);
}

.help-text {
  margin-top: var(--space-2);
  font-size: 13px;
  color: var(--color-text-muted);
}

.field-error {
  margin-top: var(--space-2);
  font-size: 13px;
  color: var(--color-danger);
}

/* Primary search interaction -- NPI/name/org/specialty lookup */
.search-box {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.search-box .input {
  flex: 1 1 260px;
  height: 48px;
  font-size: 16px;
}

.search-box .btn {
  height: 48px;
}

/* ---------- Provider search form ---------- */

.psearch-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.psearch-primary .input {
  height: 44px;
}

.psearch-primary .label {
  display: block;
  margin-bottom: var(--space-1);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.psearch-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.psearch-filters .input {
  height: 40px;
}

.psearch-filters .label {
  display: block;
  margin-bottom: var(--space-1);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.psearch-filters__divider {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  padding-bottom: 10px;
  white-space: nowrap;
}

/* ---------- NPI lookup advanced filters ---------- */

.lookup-filters {
  margin-top: var(--space-3);
}

.lookup-filters__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.lookup-filters__toggle::-webkit-details-marker { display: none; }

.lookup-filters__toggle .icon {
  transition: transform 200ms ease;
}

.lookup-filters[open] .lookup-filters__toggle .icon {
  transform: rotate(180deg);
}

.lookup-filters__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.lookup-filters__body .field {
  margin: 0;
}

.lookup-filters__body .label {
  display: block;
  margin-bottom: var(--space-1);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

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

.card--highlighted {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

a.card {
  display: block;
  color: inherit;
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

a.card:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-subtle);
  text-decoration: none;
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: var(--space-2);
}

.feature-card p {
  margin-bottom: 0;
}

/* ---------- Provider result / card ---------- */

.provider-card {
  padding: var(--space-5, 20px);
}

.provider-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-1);
}

.provider-card__name {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
}

.provider-card__specialty {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.provider-card__npi {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.provider-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.provider-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.provider-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

/* ---------- Badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.badge-neutral {
  background: var(--color-surface-subtle);
  border-color: var(--color-border);
  color: var(--color-text-secondary);
}

.badge-primary {
  background: var(--color-primary-subtle);
  color: var(--color-primary-hover);
}

.badge-success {
  background: var(--color-success-subtle);
  color: var(--color-success);
}

.badge-warning {
  background: var(--color-warning-subtle);
  color: var(--color-warning);
}

.badge-danger {
  background: var(--color-danger-subtle);
  color: var(--color-danger);
}

/* ---------- Code / API display ---------- */

.endpoint-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 2px var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-subtle);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text);
}

.endpoint-label__method {
  font-weight: 700;
}

.endpoint-label__method--get { color: var(--color-primary); }
.endpoint-label__method--post { color: var(--color-success); }
.endpoint-label__method--put,
.endpoint-label__method--patch { color: var(--color-warning); }
.endpoint-label__method--delete { color: var(--color-danger); }

.code-block {
  background: var(--color-code-bg);
  color: var(--color-code-text);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre;
}

.code-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(226, 232, 240, 0.12);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.6);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  height: 30px;
  padding-inline: var(--space-2);
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: border-color var(--transition-base), color var(--transition-base);
}

.copy-btn:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

.copy-btn--on-dark {
  border-color: rgba(226, 232, 240, 0.24);
  color: rgba(226, 232, 240, 0.85);
}

.copy-btn--on-dark:hover {
  border-color: rgba(226, 232, 240, 0.5);
  color: var(--color-code-text);
}

/* ---------- Alerts ---------- */

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid;
  border-radius: var(--radius-md);
  font-size: 14px;
}

.alert-icon {
  flex-shrink: 0;
}

.alert-info {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary);
  color: var(--color-text);
}

.alert-success {
  background: var(--color-success-subtle);
  border-color: var(--color-success);
  color: var(--color-text);
}

.alert-warning {
  background: var(--color-warning-subtle);
  border-color: var(--color-warning);
  color: var(--color-text);
}

.alert-danger {
  background: var(--color-danger-subtle);
  border-color: var(--color-danger);
  color: var(--color-text);
}

/* Standing NPPES data-source disclaimer (CLAUDE.md section 3) */
.disclaimer {
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ---------- Skeleton loading ---------- */

@keyframes skeleton-wave {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Solid placeholder block — no per-element animation; the card overlay does the shimmer */
.skeleton-block {
  background: var(--color-border);
  border-radius: var(--radius-sm);
  display: block;
}

/* Card: position:relative + overflow:hidden so the wave stays clipped inside */
.skeleton-card {
  position: relative;
  overflow: hidden;
}

/* Single shimmer wave that sweeps across the whole card */
.skeleton-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent               0%,
    rgba(255, 255, 255, 0.22) 40%,
    rgba(255, 255, 255, 0.34) 50%,
    rgba(255, 255, 255, 0.22) 60%,
    transparent               100%
  );
  transform: translateX(-100%);
  animation: skeleton-wave 1.7s ease-in-out var(--skeleton-delay, 0s) infinite;
  pointer-events: none;
}

/* Dark mode: lighter overlay needed since bg is dark */
:root[data-theme="dark"] .skeleton-card::after {
  background: linear-gradient(
    90deg,
    transparent              0%,
    rgba(255, 255, 255, 0.07) 40%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.07) 60%,
    transparent              100%
  );
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .skeleton-card::after {
    background: linear-gradient(
      90deg,
      transparent              0%,
      rgba(255, 255, 255, 0.07) 40%,
      rgba(255, 255, 255, 0.12) 50%,
      rgba(255, 255, 255, 0.07) 60%,
      transparent              100%
    );
  }
}

/* Accessibility: replace wave with a gentle pulse for users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .skeleton-card::after { display: none; }
  .skeleton-block {
    animation: skeleton-pulse 2s ease-in-out var(--skeleton-delay, 0s) infinite;
  }
}

.skeleton-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.skeleton-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.skeleton-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

/* Spinner inside the submit button */
@keyframes search-spin {
  to { transform: rotate(360deg); }
}

.search-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: search-spin 0.65s linear infinite;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ---------- Empty state ---------- */

.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-6);
  color: var(--color-text-secondary);
}

.empty-state__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.empty-state__action {
  margin-top: var(--space-6);
}

/* ---------- Tables ---------- */

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

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  white-space: nowrap;
}

.table th {
  background: var(--color-surface-subtle);
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 13px;
  border-bottom: 1px solid var(--color-border);
}

.table td {
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background: var(--color-surface-subtle);
}

/* ---------- Usage meter ---------- */

.usage-meter__track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.usage-meter__fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-pill);
  transition: width var(--transition-base);
}

.usage-meter__fill--warning {
  background: var(--color-warning);
}

.usage-meter__fill--danger {
  background: var(--color-danger);
}

/* ---------- Pagination ---------- */

.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding-inline: var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-size: 14px;
}

.pagination a:hover {
  background: var(--color-surface-subtle);
  text-decoration: none;
}

.pagination [aria-current="page"] {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  font-weight: 600;
}

/* ---------- Hero ---------- */

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

@media (min-width: 1024px) {
  .hero {
    padding-block: var(--space-20) var(--space-16);
  }
}

.hero-grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: var(--space-16);
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Decorative glow behind the primary hero mockup card only -- scoping it
   to one opaque card (rather than the whole stacked cluster) keeps the
   blend from showing through the gap between sibling elements. The
   source PNG has a white backing (no alpha support from the generator),
   so multiply blends it away on any light surface instead of a white box. */
.hero-mockup {
  position: relative;
}

.hero-mockup::before {
  content: "";
  position: absolute;
  inset: -56px;
  background: url("/assets/images/hero-glow.png") center / contain no-repeat;
  mix-blend-mode: multiply;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 639px) {
  .hero-mockup::before {
    display: none;
  }
}

/* ---------- Hero mockup chrome treatment ---------- */

.hero-mockup--chrome {
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-md), 0 0 0 1px var(--color-border);
}

.mockup-chrome-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px var(--space-4);
  background: var(--color-surface-subtle);
  border-bottom: 1px solid var(--color-border);
}

.mockup-chrome-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mockup-chrome-dot--red    { background: #FF5F57; }
.mockup-chrome-dot--yellow { background: #FEBC2E; }
.mockup-chrome-dot--green  { background: #28C840; }

.mockup-chrome-url {
  flex: 1;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 3px var(--space-3);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  text-align: center;
  margin-inline: var(--space-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-search-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.mockup-results {
  display: flex;
  flex-direction: column;
}

.mockup-result {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.mockup-result:last-child {
  border-bottom: none;
}

.mockup-result__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.mockup-result__avatar--org {
  background: linear-gradient(135deg, #059669, #0d9488);
  border-radius: var(--radius-sm);
}

.mockup-result__body {
  flex: 1;
  min-width: 0;
}

.mockup-result__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.mockup-result__specialty {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-result__npi {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
}

/* ---------- Hero code block (syntax-highlighted API response) ---------- */

.hero-code-block {
  padding: var(--space-4);
}

.code-status-ok {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: rgba(40, 200, 64, 0.15);
  color: #4ade80;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* JSON syntax highlighting spans */
.cs-k { color: #7dd3fc; } /* key   — sky-300  */
.cs-s { color: #86efac; } /* string — green-300 */
.cs-n { color: #fda4af; } /* number — rose-300  */
.cs-p { color: #94a3b8; } /* punct  — slate-400 */

/* Decorative network graphic behind the geographic-search section --
   already fully transparent (background path stripped from the SVG). */
.geo-section {
  position: relative;
  overflow: hidden;
}

.geo-section::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -100px;
  width: 720px;
  height: 410px;
  background: url("/assets/images/geo-network.svg") center / contain no-repeat;
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

.geo-section > .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .geo-section::before {
    display: none;
  }
}

/* ---------- Trust / source strip ---------- */

.trust-strip {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-subtle);
}

.trust-strip__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2) var(--space-8);
  padding-block: var(--space-6);
  text-align: center;
}

/* ---------- Pricing preview ---------- */

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card--highlight {
  border-color: var(--color-primary);
}

.pricing-card__tag {
  position: absolute;
  top: -11px;
  left: var(--space-5, 20px);
}

.pricing-card__plan {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.pricing-card__quota {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.pricing-card__burst {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.pricing-card .btn {
  margin-top: auto;
}

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-4);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
}

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

.faq-item summary .icon {
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

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

.faq-item p {
  margin-top: var(--space-3);
}

/* ---------- Site header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: -0.3px;
}

.site-header__logo:hover {
  color: var(--color-text);
  text-decoration: none;
}

.site-header__logo-icon {
  width: 22px;
  height: 19px;
  flex-shrink: 0;
}

.site-header__logo-text strong {
  font-weight: 700;
}

.site-nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.site-nav a:hover {
  color: var(--color-text);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--color-primary);
}

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

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
}

.mobile-nav {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: var(--space-4);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  display: block;
  padding-block: var(--space-3);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none;
  }
}

/* ---------- Site footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr repeat(3, 1fr);
  }
}

.footer-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: var(--space-2);
}

.footer-links a {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---------- Theme toggle ---------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background-color var(--transition-base), border-color var(--transition-base),
    color var(--transition-base);
}

.theme-toggle:hover {
  background: var(--color-surface-subtle);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

/* Show sun in dark mode, moon in light mode */
.theme-toggle__sun  { display: none; }
.theme-toggle__moon { display: flex; }

[data-theme="dark"] .theme-toggle__sun,
.theme-toggle[data-active-theme="dark"] .theme-toggle__sun  { display: flex; }
[data-theme="dark"] .theme-toggle__moon,
.theme-toggle[data-active-theme="dark"] .theme-toggle__moon { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun  { display: flex; }
  :root:not([data-theme="light"]) .theme-toggle__moon { display: none; }
}

/* ---------- Icons ---------- */

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
