/* /css/components/tier-cards.css
   The subscription offer as modern tier cards: what each tier includes, the
   price when known, one clear action. Shown on warranty success screens and
   reusable anywhere the offer belongs. */

.tc-wrap { margin-top: 26px; text-align: left; }

.tc-head { text-align: center; margin-bottom: 16px; }
.tc-h {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 900;
  background: linear-gradient(120deg, var(--brand-600, #21bca5), #bf7dff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tc-sub { margin: 0; font-size: .88rem; }

/* Horizontal card gallery: the tiers stand side by side in one row, and a
   narrow container scrolls the row instead of stacking the cards into a
   vertical pile. */
.tc-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(215px, 250px);
  gap: 14px;
  align-items: stretch;
  /* `safe` matters: plain center + overflow clips the row's leading edge
     unreachably when the gallery is wider than the container. */
  justify-content: safe center;
  overflow-x: auto;
  padding: 12px 4px 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.tc-grid > .tc-card { scroll-snap-align: start; }
.tc-grid::-webkit-scrollbar { height: 8px; }
.tc-grid::-webkit-scrollbar-track { background: rgba(255,255,255,.04); border-radius: var(--radius-pill); }
.tc-grid::-webkit-scrollbar-thumb {
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, rgba(255,255,255,.26), rgba(255,255,255,.12));
  border: 2px solid rgba(10,14,24,.65); background-clip: padding-box;
}

.tc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 18px;
  border-radius: 18px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid var(--border, rgba(255, 255, 255, .12));
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.tc-card:hover {
  border-color: rgba(33, 188, 165, .45);
  transform: translateY(-2px);
}
.tc-card.is-featured {
  border-color: var(--brand-600, #21bca5);
  background: linear-gradient(160deg, rgba(33, 188, 165, .10), rgba(162, 0, 255, .10));
  box-shadow: 0 14px 40px rgba(33, 188, 165, .18);
}

.tc-flag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #04130f;
  background: linear-gradient(120deg, #38ffb3, var(--brand-600, #21bca5));
  white-space: nowrap;
}

/* In-flow <header> element: needs the reset or the global
   header{position:fixed} rule pins every card title over the site nav. */
.tc-card-head {
  display: flex; flex-direction: column; gap: 2px;
  position: static; background: none; border: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.tc-name { font-size: 1.1rem; font-weight: 900; color: var(--ink, #dcdbf0e1); }
.tc-tag { font-size: .8rem; }

.tc-price { display: flex; align-items: baseline; gap: 8px; }
.tc-amount {
  font-size: 1.7rem;
  font-weight: 900;
  background: linear-gradient(120deg, var(--brand-600, #21bca5), #bf7dff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tc-amount-soft { font-size: 1rem; font-weight: 700; opacity: .85; }
.tc-cadence { font-size: .8rem; }

.tc-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  font-size: .86rem;
  line-height: 1.5;
  color: var(--ink, #dcdbf0e1);
}
.tc-features li {
  padding-left: 22px;
  position: relative;
}
.tc-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
  color: var(--brand-600, #21bca5);
}

.tc-cta { width: 100%; justify-content: center; }
.tc-cta[disabled] { opacity: .55; cursor: default; }
