.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--font-size-sm);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.btn--primary {
  background: var(--gradient-brand);
  color: #1a1204;
  /* A soft resting glow, a touch stronger on hover — restrained, not a
     neon halo. */
  box-shadow: 0 2px 12px rgba(254, 119, 53, 0.3);
  transition: filter var(--transition-fast), box-shadow var(--transition-fast);
}

.btn--primary:hover {
  background: var(--color-primary-deep);
  filter: none;
  color: #fff;
  box-shadow: 0 4px 18px rgba(226, 95, 31, 0.4);
}

.btn--secondary {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
  transition: border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn--secondary:hover {
  border-color: var(--color-primary-deep);
  color: var(--color-primary-deep);
  box-shadow: 0 0 12px rgba(226, 95, 31, 0.2);
}

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

.card-grid {
  display: grid;
  /* auto-fit (not auto-fill): with fewer cards than would fit at 220px
     per column, auto-fill still reserves the extra empty column tracks,
     leaving real cards squeezed to the left with dead space on the
     right (most visible on 2-card sections like Login & Register on a
     wide desktop container). auto-fit collapses those empty tracks so
     the actual cards grow to fill the row. */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link .card {
  height: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card-link:hover .card {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.card-link h3 {
  margin-bottom: var(--space-1);
  color: var(--color-text);
}

.hero {
  background: linear-gradient(180deg, var(--color-primary-tint) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
  border-top: 3px solid transparent;
  border-image: var(--gradient-brand) 1;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.notice {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
}

.notice--muted {
  border-left-color: var(--color-text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary-deep);
  border: 1px solid transparent;
  /* Gradient border via layered backgrounds (padding-box fill + brand
     gradient underneath, showing through as the border ring), plus a
     soft, restrained glow — not a solid flat border. */
  background:
    linear-gradient(135deg, var(--color-primary-tint) 0%, #fff 100%) padding-box,
    var(--gradient-brand) border-box;
  box-shadow: 0 0 10px rgba(254, 119, 53, 0.18);
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  transition: box-shadow var(--transition-fast);
}

/* A little extra dimensionality when the badge sits inside a hovered
   card, tying it into the card's own hover state rather than reacting
   on its own (badges themselves aren't interactive elements). */
.card-link:hover .badge {
  box-shadow: 0 0 16px rgba(254, 119, 53, 0.35);
}

.badge--draft {
  background: var(--color-border);
  color: var(--color-text-muted);
  border-color: var(--color-border);
  box-shadow: none;
}

.meta-line {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-field label {
  font-weight: 600;
  font-size: var(--font-size-sm);
}

.form-field input {
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base);
  background: var(--color-surface);
  color: var(--color-text);
}

.form-field input:focus-visible {
  border-color: var(--color-primary-deep);
}

/* Small uppercase label with a brand-gradient text fill — a restrained
   decorative accent for a section heading (e.g. above the FAQ heading),
   not a full banner. Reusable anywhere a section wants the same touch. */
.section-kicker {
  display: inline-block;
  margin: 0 0 var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--color-primary-soft);
}

.faq-item[open] {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

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

.faq-item__question {
  flex: 1 1 auto;
  font-weight: 700;
  font-size: var(--font-size-md);
}

/* Plus/minus toggle drawn from two bars — no icon font or SVG asset.
   Opening the item swaps it to a filled gradient chip and collapses the
   vertical bar so "+" becomes "−"; both are plain transforms, so
   prefers-reduced-motion (handled globally in base.css) already makes
   the swap instant instead of animated. */
.faq-item__toggle {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary-tint);
  border: 1px solid var(--color-primary-soft);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.faq-item__toggle::before,
.faq-item__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--color-primary-deep);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.faq-item__toggle::before {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-item__toggle::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.faq-item[open] .faq-item__toggle {
  background: var(--gradient-brand);
  border-color: transparent;
}

.faq-item[open] .faq-item__toggle::before,
.faq-item[open] .faq-item__toggle::after {
  background: #fff;
}

.faq-item[open] .faq-item__toggle::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.faq-item p {
  margin: var(--space-3) 0 0;
  color: var(--color-text-muted);
}

.chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  padding: 0;
}
