/*
 * Shared component: the plan cards. The one style source for them.
 *   Desktop: .tiers > .tier (.tier--growth is the deep-green card).
 *   Mobile 390: .tiers-m > .tier-m (.tier-m--growth), a compact stack with the
 *   Growth card first (Paper homepage mobile board; Services adds its small
 *   differences in pages/services.css under .svc-prices).
 * Used by the EN home (#prices) and /en/services. Values from Paper
 * "Onepct homepage · hi-fi" and "Services and prices".
 */

/* ── Plan cards ──────────────────────────────────────────────────────── */
.tiers { display: flex; gap: 16px; margin-top: 40px; }
.tier {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 36px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-tile);
  background: var(--white);
}
.tier__name-row { display: flex; flex-direction: column; gap: 6px; }
.tier__name { font-family: var(--font-display); font-size: 24px; font-weight: 800; line-height: 30px; }
.tier__for, .tier__per, .tier__bill { color: var(--muted); }
.tier__for { font-size: 15px; line-height: 18px; }
.tier__price { display: flex; align-items: baseline; gap: 8px; }
.tier__price .num { font-size: 76px; line-height: 76px; letter-spacing: -0.035em; }
.tier__per { font-size: 16px; line-height: 20px; }
.tier__bill { font-size: 13px; line-height: 16px; }
.tier__list { border-top: 1px solid var(--line-soft); }
.tier__list li { padding-block: 11px; font-size: 15px; line-height: 18px; }
.tier__list li + li { border-top: 1px solid var(--line-soft); }
.tier .btn { margin-top: auto; padding: 16px; }
.tier--growth { background: var(--deep-green); border-color: var(--deep-green); color: var(--paper); }
.tier--growth .tier__for, .tier--growth .tier__per, .tier--growth .tier__bill { color: var(--mint-on-green); }
.tier--growth .tier__list { border-top-color: rgb(246 248 244 / 0.18); }
.tier--growth .tier__list li + li { border-top-color: rgb(246 248 244 / 0.18); }
@media (prefers-reduced-motion: no-preference) {
  .js .tier--growth[data-reveal].is-in { transform: translateY(-4px); }
}

/* ── Card hover (desktop pointer only) ─────────────────────────────── */
/* Lift with the individual `translate` property so it never fights the reveal
   transform (same pattern as the home cards in pages/home.css). */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .tier { transition: translate 200ms var(--ease-out), box-shadow 200ms ease, border-color 200ms ease; }
  .js .tier[data-reveal] {
    transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out),
                translate 200ms var(--ease-out), box-shadow 200ms ease, border-color 200ms ease;
    transition-delay: calc(var(--i, 0) * var(--stagger)), calc(var(--i, 0) * var(--stagger)), 0s, 0s, 0s;
  }
  .tier:hover { translate: 0 -2px; box-shadow: var(--shadow-float); }
  .tier:not(.tier--growth):hover { border-color: var(--line-input); }
}

/* ── Mobile board (390) ──────────────────────────────────────────────── */
@media (max-width: 767px) {
  .tiers-m { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
  .tier-m { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius-card); background: var(--white); }
  .tier-m--growth { gap: 12px; background: var(--deep-green); color: var(--paper); }
  .tier-m__row { display: flex; align-items: center; justify-content: space-between; }
  .tier-m__row--base { align-items: baseline; }
  .tier-m__name { font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 28px; }
  .tier-m__badge { padding: 4px 10px; border-radius: var(--radius-pill); background: var(--emerald); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; line-height: 14px; }
  .tier-m__price { display: flex; align-items: baseline; gap: 6px; color: var(--mint-on-green); font-size: 14px; line-height: 18px; }
  .tier-m__price .num { color: var(--paper); font-size: 56px; line-height: 68px; letter-spacing: -0.035em; }
  .tier-m__price-sm { font-size: 13px; color: var(--muted); }
  .tier-m__price-sm .num { color: var(--ink); font-size: 32px; line-height: 40px; }
  .tier-m__list { color: var(--text-2); font-size: 14px; line-height: 22px; }
  .tier-m--growth .tier-m__list { color: var(--mint-on-growth); }
  .tier-m__cta { padding: 14px; font-size: 15px; line-height: 18px; }
  .tiers-m__bill { margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 16px; }
}

/* Tablet: wrap the cards before they crush */
@media (min-width: 768px) and (max-width: 1199px) {
  .tiers { flex-wrap: wrap; }
  .tier { flex-basis: 280px; }
}
