/* ============================================
   SugarCARE — Programmes page (programmes.html)
   Loaded after tokens.css + base.css + home.css.
   Reuses .sec-head, .pill, .btn-*, .faq-list, .cta-final from home.css.
   ============================================ */

/* ─── HERO ─────────────────────────────────────── */
.prog-hero {
  position: relative;
  padding: var(--s-2xl) 0;
  background: var(--c-white);
  text-align: center;
  overflow: hidden;
}
.prog-hero .pill { margin-bottom: var(--s-md); }
.prog-hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.06;
  color: var(--c-purple-deep);
  margin-bottom: var(--s-md);
  max-width: 18ch;
  margin-inline: auto;
}
.prog-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--c-purple) 0%, var(--c-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.show-en .prog-hero h1 { font-family: var(--font-en); }
.prog-hero p {
  font-size: var(--t-md);
  color: var(--c-muted);
  line-height: 1.65;
  max-width: 56ch;
  margin: 0 auto var(--s-lg);
}
.prog-hero .hero-ctas {
  justify-content: center;
  margin-bottom: var(--s-lg);
  flex-wrap: wrap;
}
.prog-hero-tags {
  display: inline-flex;
  gap: var(--s-md);
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-en);
  font-size: var(--t-sm);
  color: var(--c-muted);
  margin-top: var(--s-md);
}
.prog-hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.prog-hero-tags span::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-orange);
  flex-shrink: 0;
}

/* ─── SECTION 2: DECISION MATRIX ───────────────── */
.match { padding: var(--s-2xl) 0; }
.match-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-md);
  max-width: 1000px;
  margin: 0 auto;
}
.match-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  transition: border-color var(--t-base-d), box-shadow var(--t-base-d), transform var(--t-base-d);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.match-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-purple-tint);
  box-shadow: var(--sh-2);
}
.match-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--c-purple-tint);
  color: var(--c-purple);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-bottom: var(--s-md);
}
.match-icon svg { width: 22px; height: 22px; }
.match-if {
  font-size: var(--t-base);
  color: var(--c-text);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: var(--s-md);
  flex: 1;
}
.match-arrow {
  font-family: var(--font-en);
  font-size: .68rem;
  font-weight: 700;
  color: var(--c-muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.match-prog {
  font-family: var(--font-en);
  font-size: var(--t-md);
  font-weight: 800;
  color: var(--c-purple);
  letter-spacing: -.015em;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.match-prog-price {
  font-size: .82rem;
  color: var(--c-muted);
  font-weight: 600;
}
@media (max-width: 800px) { .match-grid { grid-template-columns: 1fr; } }

/* ─── SECTION 3: DETAILED PROGRAMMES ───────────── */
.prog-detail-section { padding: var(--s-2xl) 0; background: var(--c-bg); }
.prog-detail {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--s-xl);
  margin-bottom: var(--s-md);
  position: relative;
  overflow: hidden;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.prog-detail.featured {
  border: 2px solid var(--c-purple);
  box-shadow: var(--sh-2);
}
.prog-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-xl);
  align-items: start;
}
.prog-detail-tier {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--c-purple-tint-soft);
  color: var(--c-purple);
  font-family: var(--font-en);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: var(--s-md);
}
.prog-detail.featured .prog-detail-tier {
  background: var(--c-orange);
  color: var(--c-white);
}
.prog-detail-name {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  color: var(--c-purple-deep);
  margin-bottom: var(--s-sm);
}
body.show-en .prog-detail-name { font-family: var(--font-en); }
.prog-detail-for {
  font-size: var(--t-base);
  color: var(--c-muted);
  line-height: 1.65;
  margin-bottom: var(--s-lg);
}
.prog-detail-pricing {
  border-top: 1px solid var(--c-border);
  padding-top: var(--s-md);
  margin-bottom: var(--s-md);
}
.prog-detail-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}
.prog-detail-price-num {
  font-family: var(--font-en);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--c-purple);
  line-height: 1;
}
.prog-detail-price-unit {
  font-family: var(--font-en);
  font-size: .9rem;
  color: var(--c-muted);
  font-weight: 500;
}
.prog-detail-savings {
  font-family: var(--font-en);
  font-size: .85rem;
  color: var(--c-muted);
  margin-bottom: var(--s-md);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.prog-detail-savings s { color: var(--c-muted); }
.prog-detail-savings .save {
  background: var(--c-mint-tint);
  color: #0F8A5F;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: .72rem;
}
.prog-detail-duration {
  font-size: .82rem;
  color: var(--c-purple);
  font-weight: 600;
  background: var(--c-purple-tint-soft);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  display: inline-block;
  margin-bottom: var(--s-sm);
}
.prog-detail-duration-rationale {
  font-size: var(--t-sm);
  color: var(--c-muted);
  line-height: 1.6;
  font-style: italic;
}

.prog-detail-right h4 {
  font-family: var(--font-en);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--s-sm);
}
body.show-en .prog-detail-right h4 { font-family: var(--font-en); }
.prog-detail-includes {
  list-style: none;
  margin: 0 0 var(--s-lg);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
}
.prog-detail-includes li {
  font-size: var(--t-sm);
  line-height: 1.5;
  color: var(--c-text);
  padding: 4px 0 4px 22px;
  position: relative;
}
.prog-detail-includes li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  background: var(--c-mint-tint);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F8A5F' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 9px;
  background-position: center;
  background-repeat: no-repeat;
}

.prog-detail-timeline {
  background: var(--c-bg);
  border-radius: var(--r-md);
  padding: var(--s-md) var(--s-lg);
  margin-bottom: var(--s-md);
}
.prog-detail.featured .prog-detail-timeline { background: rgba(74,47,160,.06); }
.prog-detail-timeline h4 { color: var(--c-purple); margin-bottom: var(--s-sm); }
.prog-detail-timeline ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prog-detail-timeline li {
  font-size: var(--t-sm);
  color: var(--c-text);
  display: flex;
  gap: 12px;
  align-items: baseline;
  line-height: 1.5;
}
.prog-detail-timeline li strong {
  font-family: var(--font-en);
  font-size: .68rem;
  font-weight: 800;
  color: var(--c-orange);
  letter-spacing: .06em;
  text-transform: uppercase;
  flex-shrink: 0;
  min-width: 60px;
}

.prog-detail-cta {
  display: flex;
  gap: var(--s-md);
  align-items: center;
  flex-wrap: wrap;
  padding-top: var(--s-md);
  border-top: 1px solid var(--c-border);
}
.prog-detail-cta .btn { flex-shrink: 0; }
.prog-detail-cancel {
  font-size: var(--t-xs);
  color: var(--c-muted);
}

@media (max-width: 900px) {
  .prog-detail { padding: var(--s-lg); }
  .prog-detail-grid { grid-template-columns: 1fr; gap: var(--s-lg); }
  .prog-detail-includes { grid-template-columns: 1fr; }
}

/* ─── SECTION 4: HOW IT WORKS ──────────────────── */
.how { padding: var(--s-2xl) 0; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-md);
  position: relative;
}
.how-grid::before {
  content: '';
  position: absolute;
  top: 30px; left: 12.5%; right: 12.5%;
  height: 1px;
  background: var(--c-border);
  z-index: 0;
}
.how-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.how-step-num {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--c-white);
  border: 2px solid var(--c-purple);
  color: var(--c-purple);
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin: 0 auto var(--s-md);
  box-shadow: var(--sh-1);
}
.how-step:nth-child(2) .how-step-num { border-color: var(--c-purple-soft); color: var(--c-purple-soft); }
.how-step:nth-child(3) .how-step-num { border-color: var(--c-orange); color: var(--c-orange); }
.how-step:nth-child(4) .how-step-num { border-color: #0F8A5F; color: #0F8A5F; }
.how-step h3 {
  font-size: var(--t-md);
  font-weight: 700;
  color: var(--c-purple-deep);
  margin-bottom: var(--s-sm);
}
body.show-en .how-step h3 { font-family: var(--font-en); }
.how-step p {
  font-size: var(--t-sm);
  color: var(--c-muted);
  line-height: 1.6;
  max-width: 28ch;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr 1fr; gap: var(--s-lg); }
  .how-grid::before { display: none; }
}
@media (max-width: 540px) { .how-grid { grid-template-columns: 1fr; } }

/* ─── SECTION 5: ALWAYS INCLUDED ──────────────── */
.always { padding: var(--s-2xl) 0; background: var(--c-bg); }
.always-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-md);
  max-width: 1080px;
  margin: 0 auto;
}
.always-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--s-md);
  border: 1px solid var(--c-border);
  text-align: center;
  transition: transform var(--t-base-d), box-shadow var(--t-base-d);
}
.always-card:hover { transform: translateY(-3px); box-shadow: var(--sh-1); }
.always-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--c-purple-tint-soft);
  color: var(--c-purple);
  display: grid;
  place-items: center;
  margin: 0 auto var(--s-sm);
}
.always-icon svg { width: 22px; height: 22px; }
.always-card h3 {
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 4px;
  line-height: 1.3;
}
body.show-en .always-card h3 { font-family: var(--font-en); }
.always-card p {
  font-size: .75rem;
  color: var(--c-muted);
  line-height: 1.5;
}
@media (max-width: 900px) { .always-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .always-grid { grid-template-columns: 1fr; } }

/* ─── SECTION 6: NO TRAPS — DARK ──────────────── */
.trust-dark {
  background: var(--c-purple-deep);
  color: var(--c-white);
  padding: var(--s-2xl) 0;
  position: relative;
  overflow: hidden;
}
.trust-dark .sec-head { position: relative; }
.trust-dark .sec-head h2 { color: var(--c-white); }
.trust-dark .sec-head p { color: var(--c-purple-light); }
.trust-dark .sec-head .pill {
  background: rgba(255,255,255,.08);
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,.15);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-md);
  position: relative;
}
.trust-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  backdrop-filter: blur(10px);
}
.trust-num {
  font-family: var(--font-en);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--c-orange);
  margin-bottom: var(--s-sm);
  line-height: 1;
}
.trust-card h3 {
  font-size: var(--t-md);
  color: var(--c-white);
  font-weight: 700;
  margin-bottom: var(--s-sm);
  line-height: 1.3;
}
body.show-en .trust-card h3 { font-family: var(--font-en); }
.trust-card p {
  font-size: var(--t-sm);
  color: var(--c-purple-light);
  line-height: 1.65;
}
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }
