/**
 * T3thr hub — three-tier matrix, public data-bridge pull, deployment copy controls. No glass.
 */

.t3thr-hub main {
  padding-bottom: 3rem;
}

.t3thr-hero {
  text-align: center;
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--fors33-border);
}

.t3thr-matrix-section {
  margin-top: 2.5rem;
  width: 100%;
}

.t3thr-matrix-section-title {
  text-align: center;
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--fors33-text);
}

.t3thr-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .t3thr-tier-grid {
    grid-template-columns: 1fr;
  }
}

.t3thr-tier-grid:has(> :only-child) {
  justify-items: center;
}

.t3thr-tier-card {
  background: var(--fors33-surface);
  border: 1px solid var(--fors33-border);
  border-radius: 2px;
  padding: 1.5rem 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100%;
  box-sizing: border-box;
}

.t3thr-tier-card--ecosystem {
  border-color: var(--fors33-accent-cyan);
}

.t3thr-tier-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fors33-text);
}

.t3thr-tier-card > p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--fors33-text-muted);
  max-width: 42ch;
}

.t3thr-tier-price {
  font-family: var(--fors33-font-mono);
  font-size: 1rem;
  color: var(--fors33-accent-cyan);
  margin: 0 0 1rem;
  min-height: 1.5em;
}

.t3thr-tier-price [hidden] {
  display: none !important;
}

.t3thr-billing-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-family: var(--fors33-font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.t3thr-billing-toggle-label {
  color: var(--fors33-text-muted);
  margin-right: 0.35rem;
}

.t3thr-billing-toggle button {
  font: inherit;
  cursor: pointer;
  padding: 0.45rem 0.85rem;
  border-radius: 2px;
  border: 1px solid var(--fors33-border);
  background: var(--fors33-bg);
  color: var(--fors33-text-muted);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.t3thr-billing-toggle button[aria-pressed='true'] {
  border-color: var(--fors33-accent-cyan);
  color: var(--fors33-accent-cyan);
  background: var(--fors33-surface);
}

.t3thr-billing-toggle button:focus-visible {
  outline: 2px solid var(--fors33-accent-magenta);
  outline-offset: 2px;
}

.t3thr-tier-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  width: 100%;
  text-align: left;
  flex: 1;
}

.t3thr-tier-specs li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--fors33-text-muted);
}

.t3thr-tier-specs li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--fors33-accent-magenta);
}

.t3thr-tier-actions {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.t3thr-tier-actions .primary-cta {
  width: 100%;
  max-width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.t3thr-public-pull {
  width: 100%;
  margin: 0 0 1rem;
}

.t3thr-public-pull pre {
  margin: 0 0 0.5rem;
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--fors33-font-mono);
  font-size: 0.75rem;
  text-align: center;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid var(--fors33-border);
  border-radius: 2px;
  color: var(--fors33-accent-cyan);
  background: var(--fors33-bg);
  box-sizing: border-box;
}

body.fors33-brand main .t3thr-infra-hub-link {
  font-family: var(--fors33-font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fors33-text-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--fors33-border);
  padding-bottom: 0.15rem;
}

body.fors33-brand main .t3thr-infra-hub-link:hover,
body.fors33-brand main .t3thr-infra-hub-link:focus-visible {
  color: var(--fors33-text-muted);
  border-bottom-color: var(--fors33-accent-cyan);
  text-decoration: none;
}

/* Deployment */
.t3thr-deploy-section {
  margin-top: 2.5rem;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1.5rem;
  background: var(--fors33-surface);
  border: 1px solid var(--fors33-border);
  border-radius: 2px;
  box-sizing: border-box;
}

.t3thr-deploy-section h2 {
  text-align: center;
  margin: 0 0 1.5rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.t3thr-deploy-block {
  margin-bottom: 2rem;
}

.t3thr-deploy-block:last-child {
  margin-bottom: 0;
}

.t3thr-deploy-block h3 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--fors33-text);
  text-align: center;
}

.t3thr-deploy-note {
  text-align: center;
  margin: 0 0 1rem;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9rem;
}

.t3thr-deploy-note--after {
  margin-top: 1rem;
  margin-bottom: 0;
}

.t3thr-copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
  justify-content: center;
  width: 100%;
}

.t3thr-copy-row pre {
  flex: 1 1 280px;
  margin: 0;
  max-width: 100%;
  text-align: center;
}

.t3thr-copy-btn {
  font-family: var(--fors33-font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.6rem 1rem;
  border: 1px solid var(--fors33-border);
  border-radius: 2px;
  background: var(--fors33-bg);
  color: var(--fors33-text-muted);
  cursor: pointer;
  flex-shrink: 0;
}

.t3thr-copy-btn:hover,
.t3thr-copy-btn:focus-visible {
  border-color: var(--fors33-accent-cyan);
  color: var(--fors33-accent-cyan);
}

.t3thr-copy-btn:focus-visible {
  outline: 2px solid var(--fors33-accent-magenta);
  outline-offset: 2px;
}

.t3thr-hub-disclaimer {
  max-width: 72ch;
  margin: 2.5rem auto 1rem;
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: center;
}

.t3thr-hub-footer {
  margin-top: 0;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--fors33-border);
  border-radius: 2px;
  background: var(--fors33-surface);
  text-align: center;
}

.t3thr-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.t3thr-footer-links a {
  color: var(--fors33-accent-cyan);
  text-decoration: none;
}

.t3thr-footer-links a:hover,
.t3thr-footer-links a:focus-visible {
  text-decoration: underline;
  color: var(--fors33-accent-magenta);
}
