/* Three-tier pricing page (/tarifs/, /en/pricing/, /es/precios/).
   Source: learnfloo-v2/scripts/site/tiers.css, copied by scripts/build-tiers-page.ts. */

.tp-hero { text-align: center; }
.tp-hero > .container { max-width: 900px; }
.tp-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.tp-eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); background: var(--primary-bg); padding: 6px 14px; border-radius: 50px; margin-bottom: 18px; }
.tp-lead { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.7; max-width: 720px; margin: 0 auto; }

.tp-main { max-width: 1120px; padding-top: 0; }
.tp-section { padding: 48px 0 8px; }
.tp-section .section-title { font-size: clamp(1.5rem, 3vw, 2rem); text-align: left; margin-bottom: 8px; }
.tp-sub { color: var(--text-secondary); line-height: 1.6; max-width: 760px; margin-bottom: 26px; }

/* Cards */
.tp-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: -56px; position: relative; z-index: 1; }
.tp-tier { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.tp-tier.tp-featured { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08), var(--shadow-md); }
.tp-tier-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tp-tier h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.tp-pill { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; background: var(--primary); padding: 4px 10px; border-radius: 50px; white-space: nowrap; }
.tp-who { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.55; min-height: 2.9em; }
.tp-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.tp-price b { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.tp-price small { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); }
.tp-price .tp-from { font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); width: 100%; }
.tp-usage { font-size: 0.9rem; line-height: 1.55; padding: 10px 12px; background: var(--bg-alt); border-radius: var(--radius-sm); }
.tp-usage b { font-weight: 700; }
.tp-tier ul { list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 0.9rem; margin-top: 4px; }
.tp-tier li { padding-left: 24px; position: relative; line-height: 1.5; }
.tp-tier li::before { content: ''; position: absolute; left: 3px; top: 0.42em; width: 10px; height: 5px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.tp-tier li.tp-plus { color: var(--text-secondary); }
.tp-tier li.tp-plus::before { border-color: var(--text-secondary); }
.tp-tier .btn { margin-top: auto; text-align: center; }
.tp-tier-note { font-size: 0.8rem; color: var(--text-secondary); text-align: center; line-height: 1.5; }
.tp-free-note { margin: 22px auto 0; text-align: center; font-size: 0.88rem; color: var(--text-secondary); max-width: 760px; line-height: 1.6; }

/* Included in every tier */
.tp-base { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tp-base div { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; background: var(--bg); }
.tp-base h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 4px; }
.tp-base p { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.5; }

/* Matrix and tables */
.tp-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.tp-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.9rem; }
.tp-table th, .tp-table td { text-align: left; padding: 11px 14px; border-top: 1px solid var(--border); vertical-align: top; }
.tp-table thead th { border-top: 0; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); background: var(--bg-alt); font-weight: 600; }
.tp-table thead th.tp-col-featured { color: var(--primary); }
.tp-table td.c, .tp-table th.c { text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tp-table .muted { color: var(--text-secondary); font-size: 0.84rem; }
.tp-table .yes { color: var(--green); font-weight: 700; }
.tp-table .no { color: #cbd5e1; }
.tp-table .inc { color: var(--green); font-weight: 600; }
.tp-table .soon { display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--purple); background: #f3e8ff; padding: 2px 7px; border-radius: 50px; margin-left: 6px; vertical-align: middle; }
.tp-table tr.tp-group td { background: var(--bg-alt); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); padding: 8px 14px; }

/* Examples */
.tp-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tp-example { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.tp-example .tp-pill { align-self: flex-start; }
.tp-example h3 { font-size: 1.1rem; font-weight: 700; }
.tp-example .story { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.tp-example .month { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; padding-top: 10px; border-top: 1px dashed var(--border); }
.tp-example .month b { color: var(--text); font-weight: 600; }
.tp-lines { list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 0.86rem; margin-top: 6px; }
.tp-lines li { display: flex; justify-content: space-between; gap: 12px; line-height: 1.45; }
.tp-lines li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tp-lines li.tp-minus span:last-child { color: var(--green); }
.tp-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.tp-total b { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tp-total span { color: var(--text-secondary); font-size: 0.88rem; }

/* Sales modes */
.tp-sales { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tp-sale { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.tp-sale h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.tp-sale .big { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0; font-variant-numeric: tabular-nums; }
.tp-sale .big small { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); }
.tp-sale p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

.tp-note { margin-top: 16px; font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; max-width: 860px; }
.tp-links { margin-top: 18px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.92rem; }
.tp-links a { color: var(--primary); font-weight: 600; }
.tp-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Credits */
.tp-credits { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; }
.tp-packs { min-width: 0; }
.tp-points { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; line-height: 1.55; }
.tp-points li { padding-left: 22px; position: relative; color: var(--text-secondary); }
.tp-points li::before { content: ''; position: absolute; left: 4px; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.tp-split { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }
.tp-center { justify-content: center; }

@media (max-width: 960px) {
  .tp-tiers, .tp-examples { grid-template-columns: 1fr; margin-top: -32px; }
  .tp-base { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-sales, .tp-credits { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tp-base { grid-template-columns: 1fr; }
  .tp-tier { padding: 22px; }
}
