/**
 * TechHand front — page-specific layouts (depends on th-theme.css variables).
 */

/* --- Page head (replaces legacy #page-title) --- */
.th-page-head {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--th-border-soft);
  background: rgba(3, 8, 16, 0.5);
}

.th-page-head h1 {
  font-family: var(--th-font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.35rem;
  color: var(--th-text);
}

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

.th-breadcrumb a {
  color: var(--th-muted);
  text-decoration: none;
}

.th-breadcrumb a:hover {
  color: var(--th-accent);
}

.th-breadcrumb .sep {
  margin: 0 0.35rem;
  opacity: 0.6;
}

/* --- Contact --- */
.th-contact-section {
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.th-contact-section .section-title h1,
.th-contact-section h1.th-contact-title {
  font-family: var(--th-font-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  color: var(--th-text);
  margin-bottom: 0.75rem;
}

.th-contact-section .section-title p,
.th-contact-lead {
  color: var(--th-muted);
  max-width: 42rem;
}

.th-body .th-contact-alert.alert-success {
  background: rgba(0, 204, 255, 0.12);
  border-color: var(--th-accent);
  color: var(--th-text);
}

.th-body .th-contact-alert.alert-danger {
  background: rgba(220, 53, 69, 0.15);
  border-color: rgba(220, 53, 69, 0.5);
  color: #fecaca;
}

.contact-managed-it-note {
  margin-top: 1rem;
  max-width: 48rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--th-muted);
}

.contact-managed-it-note a {
  color: var(--th-accent);
  font-weight: 600;
}

.contact-managed-it-note a:hover {
  color: var(--th-accent-soft);
}

/* --- Privacy / legal --- */
.th-legal {
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.th-legal-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--th-card);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-lg);
  color: var(--th-muted);
}

.th-legal-inner h2 {
  color: var(--th-text);
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

.th-legal-inner h2:first-child {
  margin-top: 0;
}

/* --- 404 --- */
.th-404 {
  padding: clamp(3rem, 8vw, 5rem) 0;
  text-align: center;
}

.th-404-code {
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 800;
  color: var(--th-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.th-404 h1 {
  color: var(--th-text);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.th-404 p {
  color: var(--th-muted);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

/* --- Projects filters (URL-based) --- */
.th-projects-filters .filter-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--th-muted);
  margin-bottom: 0.4rem;
}

.th-projects-filters .filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.th-projects-filters a.filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--th-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--th-muted);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.th-projects-filters a.filter-btn:hover {
  color: var(--th-accent);
  border-color: rgba(0, 204, 255, 0.35);
}

.th-projects-filters a.filter-btn.active {
  color: #031018;
  background: linear-gradient(135deg, var(--th-accent) 0%, var(--th-accent-soft) 100%);
  border-color: transparent;
}

/* --- Projects listing --- */
.th-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.th-project-card {
  background: var(--th-card);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.th-project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--th-shadow-sm);
}

.th-project-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.th-project-card-body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.th-project-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--th-text);
}

.th-project-card p {
  font-size: 0.88rem;
  color: var(--th-muted);
  margin: 0 0 0.75rem;
}

.th-project-card a.th-link-more {
  color: var(--th-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.88rem;
}

.th-project-card a.th-link-more:hover {
  color: var(--th-accent-soft);
}

.th-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.th-filter-bar .filter-btn {
  border: 1px solid var(--th-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--th-muted);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.th-filter-bar .filter-btn:hover {
  border-color: rgba(0, 204, 255, 0.35);
  color: var(--th-accent);
}

.th-filter-bar .filter-btn.active {
  border-color: transparent;
  color: #031018;
  background: linear-gradient(135deg, var(--th-accent) 0%, var(--th-accent-soft) 100%);
}

/* --- Team --- */
.th-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.th-team-card {
  background: var(--th-card);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius);
  padding: 1.25rem;
  text-align: center;
}

.th-team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 2px solid var(--th-border);
}

.th-team-card h3 {
  font-size: 1.05rem;
  color: var(--th-text);
  margin: 0 0 0.25rem;
}

.th-team-card .role {
  color: var(--th-accent);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.th-team-card .bio {
  font-size: 0.88rem;
  color: var(--th-muted);
  text-align: left;
}

/* --- About --- */
.th-about-subnav {
  position: sticky;
  top: 72px;
  z-index: 50;
  background: rgba(5, 10, 18, 0.92);
  border-bottom: 1px solid var(--th-border-soft);
  backdrop-filter: blur(10px);
}

.th-about-subnav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  padding: 0.65rem 0;
}

.th-about-subnav a {
  color: var(--th-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
}

.th-about-subnav a:hover {
  color: var(--th-accent);
  background: rgba(0, 204, 255, 0.08);
}

.th-about-block {
  max-width: 820px;
}

.th-about-block h2 {
  font-family: var(--th-font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--th-text);
  margin: 2rem 0 0.75rem;
}

.th-about-block p {
  color: var(--th-muted);
}

.th-about-lead {
  font-size: 1.1rem;
  color: var(--th-text);
  line-height: 1.6;
}

.th-about-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--th-accent);
  background: rgba(0, 204, 255, 0.06);
  color: var(--th-muted);
  font-style: italic;
}

.th-about-pillar-grid {
  margin-top: 1rem;
}

.th-about-pillar {
  background: var(--th-card);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius);
  padding: 1.5rem 1.25rem;
  height: 100%;
}

.th-about-pillar-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: rgba(0, 204, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--th-accent);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.th-about-pillar h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--th-text);
  margin: 0 0 0.5rem;
}

.th-about-pillar p {
  font-size: 0.92rem;
  color: var(--th-muted);
  margin: 0;
}

/* --- Service detail inner --- */
.th-service-detail {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
}

.th-service-detail h2,
.th-service-detail h3 {
  color: var(--th-text);
  font-weight: 700;
}

.th-service-detail p,
.th-service-detail li {
  color: var(--th-muted);
}

.th-service-detail .bullet-list,
.th-service-detail ul.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.th-service-detail .bullet-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.45rem;
}

.th-service-detail .bullet-list li .fa-check {
  position: absolute;
  left: 0;
  color: var(--th-accent);
}

/* --- Managed IT (dark panels) --- */
body.page-msp-plans .msp-page-hero {
  max-width: 920px;
  margin: 0 auto 0.5rem;
  text-align: center;
  padding: 0.5rem 0 1.25rem;
}

body.page-msp-plans .msp-brand-line {
  font-family: var(--th-font-body);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--th-accent);
  margin-bottom: 0.65rem;
}

body.page-msp-plans .msp-display-title {
  font-family: var(--th-font-display);
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--th-text);
  font-weight: 800;
}

body.page-msp-plans .msp-lead {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--th-muted);
  margin: 0 auto;
  max-width: 720px;
}

body.page-msp-plans .msp-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
  margin-top: 0.5rem;
}

body.page-msp-plans .msp-plan-card {
  position: relative;
  background: var(--th-card);
  border-radius: var(--th-radius);
  border: 1px solid var(--th-border);
  box-shadow: var(--th-shadow-sm);
  padding: 1.5rem 1.35rem 1.6rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

body.page-msp-plans .msp-plan-card:hover {
  box-shadow: var(--th-shadow);
  transform: translateY(-2px);
}

body.page-msp-plans .msp-plan-card--featured {
  border-color: rgba(0, 204, 255, 0.45);
  box-shadow: 0 20px 48px rgba(0, 204, 255, 0.12);
  padding-top: 2.15rem;
}

body.page-msp-plans .msp-popular-badge {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #031018;
  background: linear-gradient(135deg, var(--th-accent) 0%, var(--th-accent-soft) 100%);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  line-height: 1.2;
}

body.page-msp-plans .msp-plan-header {
  margin-bottom: 0.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--th-border-soft);
}

body.page-msp-plans .msp-plan-name {
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  color: var(--th-text);
}

body.page-msp-plans .msp-plan-price {
  margin: 0 0 0.5rem;
}

body.page-msp-plans .msp-price-amount {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--th-accent);
}

body.page-msp-plans .msp-price-unit {
  font-size: 0.95rem;
  color: var(--th-muted);
  font-weight: 600;
}

body.page-msp-plans .msp-plan-tagline {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--th-muted);
}

body.page-msp-plans .msp-includes-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--th-muted);
  margin: 0.85rem 0 0.5rem;
}

body.page-msp-plans .msp-plan-list {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
}

body.page-msp-plans .msp-plan-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.45rem;
  font-size: 0.93rem;
  line-height: 1.45;
  color: var(--th-text);
}

body.page-msp-plans .msp-plan-list li .fa-check {
  position: absolute;
  left: 0;
  top: 0.2em;
  color: var(--th-accent);
}

body.page-msp-plans .msp-section-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--th-card);
  border-radius: var(--th-radius);
  border: 1px solid var(--th-border);
  box-shadow: var(--th-shadow-sm);
  padding: 1.65rem 1.5rem;
}

body.page-msp-plans .msp-section-card--wide {
  max-width: 880px;
}

body.page-msp-plans .msp-section-card--accent {
  max-width: 880px;
  border-color: rgba(0, 204, 255, 0.25);
  background: linear-gradient(180deg, rgba(0, 204, 255, 0.06) 0%, var(--th-card) 100%);
}

body.page-msp-plans .msp-section-card .section-title {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

body.page-msp-plans .msp-section-card .section-title span {
  font-size: 1.45rem;
  color: var(--th-text);
  font-weight: 800;
}

body.page-msp-plans .msp-inline-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-msp-plans .msp-inline-list li {
  padding-left: 1.35rem;
  margin-bottom: 0.5rem;
  position: relative;
  color: var(--th-text);
}

body.page-msp-plans .msp-inline-list li .fa-check {
  position: absolute;
  left: 0;
  color: var(--th-accent);
}

body.page-msp-plans .msp-strong-intro {
  font-weight: 700;
  margin: 1rem 0 0.5rem;
  color: var(--th-text);
}

body.page-msp-plans .msp-benefit-list li {
  padding-left: 1.35rem;
  position: relative;
  margin-bottom: 0.45rem;
  color: var(--th-text);
}

body.page-msp-plans .msp-benefit-list li .fa-check {
  position: absolute;
  left: 0;
  color: var(--th-accent);
}

body.page-msp-plans #msp-cta .section-title h2 {
  font-size: 1.65rem;
  color: var(--th-text);
  font-weight: 800;
}

body.page-msp-plans .msp-cta-lead {
  text-align: center;
  margin-bottom: 0.35rem;
  color: var(--th-muted);
}

body.page-msp-plans .msp-cta-site {
  text-align: center;
  margin-bottom: 1.25rem;
}

body.page-msp-plans .msp-cta-site a {
  color: var(--th-accent);
  font-weight: 600;
  word-break: break-all;
}

body.page-msp-plans #msp-cta .section-cta {
  text-align: center;
}

body.page-msp-plans .msp-compare-wrap {
  max-width: 960px;
  margin: 0 auto;
}

body.page-msp-plans .msp-compare-lead {
  color: var(--th-muted);
  max-width: 42rem;
}

body.page-msp-plans .msp-compare-responsive {
  border-radius: var(--th-radius);
  border: 1px solid var(--th-border);
  background: var(--th-card);
  box-shadow: var(--th-shadow-sm);
}

body.page-msp-plans .msp-compare-table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--th-text);
  color: var(--th-text);
  margin-bottom: 0;
}

body.page-msp-plans .msp-compare-table thead th {
  background: rgba(0, 204, 255, 0.1);
  color: var(--th-text);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.8rem 0.65rem;
  border-bottom: 1px solid var(--th-border);
  white-space: nowrap;
}

body.page-msp-plans .msp-compare-table thead th:first-child {
  text-align: left;
}

body.page-msp-plans .msp-compare-table tbody th {
  font-weight: 500;
  color: var(--th-text);
  font-size: 0.88rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--th-border-soft);
  vertical-align: middle;
}

body.page-msp-plans .msp-compare-table td {
  border-bottom: 1px solid var(--th-border-soft);
  vertical-align: middle;
  padding: 0.5rem 0.45rem;
  color: var(--th-muted);
}

body.page-msp-plans .msp-compare-table tbody tr:last-child th,
body.page-msp-plans .msp-compare-table tbody tr:last-child td {
  border-bottom: none;
}

body.page-msp-plans .msp-compare-table .msp-check {
  color: var(--th-accent);
  font-size: 1.05rem;
}

body.page-msp-plans .msp-compare-table .msp-dash {
  color: var(--th-muted);
  opacity: 0.4;
}

body.page-msp-plans .msp-compare-footnote {
  color: var(--th-muted);
  margin-top: 1rem;
  max-width: 52rem;
}

body.page-msp-plans ul.msp-check-only-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

body.page-msp-plans ul.msp-check-only-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--th-text);
}

body.page-msp-plans ul.msp-check-only-list li .fa-check {
  position: absolute;
  left: 0;
  top: 0.28em;
  color: var(--th-accent);
}

/* Legacy CTA class used in some PHP bodies */
.th-body a.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #031018 !important;
  background: linear-gradient(135deg, var(--th-accent) 0%, var(--th-accent-soft) 100%);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 204, 255, 0.28);
}

.th-body a.btn-cta:hover {
  color: #031018 !important;
  filter: brightness(1.05);
}

@media (max-width: 1199px) {
  body.page-msp-plans .msp-plan-grid {
    display: flex;
    flex-direction: column;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    gap: 1.25rem;
  }

  body.page-msp-plans .msp-plan-card--essential {
    order: 2;
  }

  body.page-msp-plans .msp-plan-card--featured {
    order: 1;
  }

  body.page-msp-plans .msp-plan-card--complete {
    order: 3;
  }
}

/* --- TNT capability page (techhand-network-toolkit.php) --- */
ul.th-tnt-feature-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  max-width: 52rem;
}

ul.th-tnt-feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--th-muted);
  line-height: 1.55;
}

ul.th-tnt-feature-list li .fa-check {
  position: absolute;
  left: 0;
  top: 0.28em;
  color: var(--th-accent);
}

/* TNT access row: avoid stretched columns + .th-panel { height:100% } creating giant side cards and layout bleed */
body.page-tnt-capabilities .th-tnt-access-row {
  align-items: flex-start;
}

body.page-tnt-capabilities .th-tnt-access-row .th-panel {
  height: auto;
}

/* --- Web development service page (web-development-flask-applications.php) --- */
body.page-webdev .th-webdev-chip-heading {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--th-muted);
  margin-bottom: 0.35rem;
}

body.page-webdev .th-webdev-trust-stats {
  grid-template-columns: 1fr;
}

@media (min-width: 400px) {
  body.page-webdev .th-webdev-trust-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* Offering cards are informational, not links */
body.page-webdev div.th-service-card.th-webdev-offering {
  cursor: default;
}

body.page-webdev #webdev-hero .section-title .th-section-title {
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
}

body.page-webdev #webdev-hero .th-panel {
  height: auto;
}

/* --- Managed web hosting page (managed-web-hosting.php) --- */
body.page-managed-hosting div.th-service-card.th-managed-offering {
  cursor: default;
}

body.page-managed-hosting #managed-hosting-hero .th-panel,
body.page-managed-hosting #managed-hosting-process .th-panel {
  height: auto;
}

/* --- Private local AI setup (private-local-ai-setup.php) --- */
body.page-local-ai-setup div.th-service-card.th-localai-offering {
  cursor: default;
}

body.page-local-ai-setup #local-ai-hero .th-panel,
body.page-local-ai-setup #local-ai-contract .th-panel {
  height: auto;
}

body.page-local-ai-setup .localai-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
  margin-top: 1.5rem;
}

body.page-local-ai-setup .localai-tier-card {
  position: relative;
  background: var(--th-card);
  border-radius: var(--th-radius);
  border: 1px solid var(--th-border);
  box-shadow: var(--th-shadow-sm);
  padding: 1.5rem 1.35rem 1.6rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

body.page-local-ai-setup .localai-tier-card:hover {
  box-shadow: var(--th-shadow);
  transform: translateY(-2px);
}

body.page-local-ai-setup .localai-tier-card--featured {
  border-color: rgba(0, 204, 255, 0.45);
  box-shadow: 0 20px 48px rgba(0, 204, 255, 0.12);
  padding-top: 2.15rem;
}

body.page-local-ai-setup .localai-popular-badge {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #031018;
  background: linear-gradient(135deg, var(--th-accent) 0%, var(--th-accent-soft) 100%);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  line-height: 1.2;
}

body.page-local-ai-setup .localai-tier-header {
  margin-bottom: 0.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--th-border-soft);
}

body.page-local-ai-setup .localai-tier-name {
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
  color: var(--th-text);
  font-weight: 700;
}

body.page-local-ai-setup .localai-tier-price {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--th-accent);
}

body.page-local-ai-setup .localai-tier-tagline {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--th-muted);
}

body.page-local-ai-setup .localai-tier-tagline a {
  color: var(--th-accent);
  font-weight: 600;
}

body.page-local-ai-setup .localai-includes-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--th-muted);
  margin: 0.85rem 0 0.5rem;
}

body.page-local-ai-setup .localai-tier-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
}

body.page-local-ai-setup .localai-tier-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.45rem;
  font-size: 0.93rem;
  line-height: 1.45;
  color: var(--th-text);
}

body.page-local-ai-setup .localai-tier-list li .fa-check {
  position: absolute;
  left: 0;
  top: 0.2em;
  color: var(--th-accent);
}

body.page-local-ai-setup .localai-tier-foot {
  margin-top: auto;
}

body.page-local-ai-setup .localai-compare-wrap {
  max-width: 960px;
  margin: 0 auto;
}

body.page-local-ai-setup .localai-compare-lead {
  color: var(--th-muted);
  max-width: 42rem;
}

body.page-local-ai-setup .localai-compare-responsive {
  border-radius: var(--th-radius);
  border: 1px solid var(--th-border);
  background: var(--th-card);
  box-shadow: var(--th-shadow-sm);
}

body.page-local-ai-setup .localai-compare-table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--th-text);
  color: var(--th-text);
  margin-bottom: 0;
}

body.page-local-ai-setup .localai-compare-table thead th {
  background: rgba(0, 204, 255, 0.1);
  color: var(--th-text);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.8rem 0.5rem;
  border-bottom: 1px solid var(--th-border);
  vertical-align: bottom;
}

body.page-local-ai-setup .localai-compare-table thead th:first-child {
  text-align: left;
}

body.page-local-ai-setup .localai-compare-table tbody th {
  font-weight: 500;
  color: var(--th-text);
  font-size: 0.88rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--th-border-soft);
  vertical-align: middle;
}

body.page-local-ai-setup .localai-compare-table td {
  border-bottom: 1px solid var(--th-border-soft);
  vertical-align: middle;
  padding: 0.5rem 0.45rem;
  color: var(--th-muted);
}

body.page-local-ai-setup .localai-compare-table tbody tr:last-child th,
body.page-local-ai-setup .localai-compare-table tbody tr:last-child td {
  border-bottom: none;
}

body.page-local-ai-setup .localai-compare-table .localai-check {
  color: var(--th-accent);
  font-size: 1.05rem;
}

body.page-local-ai-setup .localai-compare-table .localai-dash {
  color: var(--th-muted);
  opacity: 0.4;
}

body.page-local-ai-setup .localai-compare-footnote {
  color: var(--th-muted);
  margin-top: 1rem;
  max-width: 52rem;
}

body.page-local-ai-setup .localai-compare-footnote a {
  color: var(--th-accent);
  font-weight: 600;
}

@media (max-width: 1199px) {
  body.page-local-ai-setup .localai-tier-grid {
    display: flex;
    flex-direction: column;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    gap: 1.25rem;
  }

  body.page-local-ai-setup .localai-tier-card--essential {
    order: 2;
  }

  body.page-local-ai-setup .localai-tier-card--featured {
    order: 1;
  }

  body.page-local-ai-setup .localai-tier-card--complete {
    order: 3;
  }
}
