/* ============================================================
   TEXPÖ · Components
   ============================================================ */

/* — Top nav (style-guide chrome) — */
.tg-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,244,239,.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.tg-nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--sp-7);
}
.tg-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.tg-nav__brand img { height: 22px; width: auto; }
.tg-nav__brand .tag {
  background: var(--tx-blue);
  color: white;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  font-size: 10px;
}
.tg-nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.tg-nav__links::-webkit-scrollbar { display: none; }
.tg-nav__links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.tg-nav__links a:hover {
  color: var(--text);
  background: rgba(29,77,140,.08);
}

/* — Buttons — */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  line-height: 1;
  transition: transform .15s ease, background .15s, box-shadow .2s, border-color .15s;
  background: transparent;
  color: inherit;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--tx-red);
  color: white;
  box-shadow: 0 6px 18px -8px rgba(231,40,43,.55);
}
.btn--primary:hover { background: #c91f23; box-shadow: 0 12px 24px -10px rgba(231,40,43,.6); }

.btn--solid {
  background: var(--tx-blue);
  color: white;
}
.btn--solid:hover { background: var(--tx-blue-800); }

.btn--outline {
  background: transparent;
  color: var(--tx-blue);
  border-color: var(--tx-blue);
}
.btn--outline:hover { background: var(--tx-blue); color: white; }

.btn--ghost {
  color: var(--text);
  padding-left: 0;
  padding-right: 0;
}
.btn--ghost .arrow { margin-left: 4px; }
.btn--ghost:hover { color: var(--tx-red); }

.btn--sm { padding: 9px 14px; font-size: 13px; }
.btn--lg { padding: 18px 28px; font-size: 17px; }

.btn .arrow {
  display: inline-flex;
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.btn:hover .arrow { transform: translateX(4px) translateY(-2px); }

/* — Form — */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.field__label .req { color: var(--accent); margin-left: 2px; }
.input, .textarea, .select {
  font: inherit;
  width: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--tx-mute); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--tx-blue);
  box-shadow: 0 0 0 4px rgba(29,77,140,.12);
}
.textarea { min-height: 120px; resize: vertical; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-mute);
}
.checkbox-row input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--tx-blue);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
}
.checkbox-row input[type="checkbox"]:checked {
  background: var(--tx-blue);
}
.checkbox-row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.radio-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 14px;
  cursor: pointer;
  background: white;
  transition: all .15s;
}
.radio-chip:hover { border-color: var(--tx-blue); }
.radio-chip input { display: none; }
.radio-chip--active,
.radio-chip:has(input:checked) {
  background: var(--tx-blue);
  color: white;
  border-color: var(--tx-blue);
}

/* — Card — */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: border-color .2s, transform .25s, box-shadow .25s;
}
.card:hover {
  border-color: var(--tx-blue-300);
  box-shadow: var(--shadow-md);
}

.card--feature {
  padding: var(--sp-7);
  position: relative;
  overflow: hidden;
}
.card--feature .card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}
.card--feature .card__title {
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 6px 0 12px;
}
.card--feature .card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--tx-blue-100);
  color: var(--tx-blue);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-4);
}
.card--feature:hover .card__icon {
  background: var(--tx-blue);
  color: white;
}

/* — Image placeholder — */
.imgph {
  position: relative;
  background: var(--tx-blue-100);
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: var(--tx-blue);
}
.imgph::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 80% -10%, rgba(29,77,140,.18), transparent 60%),
    repeating-linear-gradient(135deg,
      rgba(29,77,140,.04) 0 10px,
      transparent 10px 20px);
  pointer-events: none;
}
.imgph__label {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: white;
  border: 1px solid var(--tx-blue-300);
  padding: 5px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.imgph__label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--tx-red);
}

/* — Tag / pill — */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--tx-blue-100);
  color: var(--tx-blue);
}
.tag--accent { background: var(--tx-red-100); color: var(--tx-red); }
.tag--ghost { background: transparent; border: 1px solid var(--line); color: var(--text-mute); }

/* — Divider w/ label — */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: var(--sp-6) 0;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* — Spec row — */
.spec {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.spec__k { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-mute); }
.spec__v { font-family: var(--font-mono); font-size: 13px; color: var(--text); }
