/* Reformwell — design system
   Generated palette/typography from the brand workflow. */

:root {
  --primary: #0E7C86;
  --primary-dark: #0A5B63;
  --primary-tint: rgba(14, 124, 134, 0.10);
  --accent: #E8A33D;
  --accent-tint: rgba(232, 163, 61, 0.15);
  --bg: #F6F8F8;
  --surface: #FFFFFF;
  --text: #13202A;
  --muted: #5B6B73;
  --border: #DCE4E5;
  --success: #2E7D5B;
  --success-tint: rgba(46, 125, 91, 0.12);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(19, 32, 42, 0.07);
  --shadow-md: 0 4px 20px rgba(19, 32, 42, 0.10);
  --shadow-lg: 0 16px 48px rgba(14, 124, 134, 0.14);
  --shadow-glow: 0 4px 24px rgba(14, 124, 134, 0.30);

  --maxw: 1200px;
  --readw: 680px;

  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--surface { background: var(--surface); }
.narrow { max-width: var(--readw); }
.center { text-align: center; }
.muted { color: var(--muted); }

@media (max-width: 720px) {
  .section { padding: 64px 0; }
}

/* Eyebrow + section headers */
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-tint);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { font-size: 1.05rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.97rem;
  min-height: 44px; padding: 0 22px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer; transition: all .18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; border-radius: var(--radius-pill); box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(14,124,134,0.40); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary-dark); border-radius: var(--radius-pill); }
.btn-outline:hover { background: var(--primary-tint); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--bg); }
.btn-accent { background: var(--accent); color: var(--text); }
.btn-accent:hover { filter: brightness(0.96); transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn:focus-visible { outline: 3px solid rgba(14,124,134,0.35); outline-offset: 2px; }

/* Pills / badges */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); color: var(--muted); background: var(--surface);
}
.pill--primary { background: var(--primary-tint); color: var(--primary-dark); border-color: transparent; }
.pill--accent { background: var(--accent-tint); color: #8A5A12; border-color: transparent; }
.pill--success { background: var(--success-tint); color: var(--success); border-color: transparent; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--primary);
  display: grid; place-items: center; color: #fff; font-size: 17px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 0.95rem; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; right: 0; height: 2px; background: var(--primary); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.nav-links a:hover { color: var(--primary-dark); text-decoration: none; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.cart-btn { position: relative; background: var(--primary-tint); border: none; width: 44px; height: 44px; border-radius: var(--radius-sm); cursor: pointer; font-size: 18px; color: var(--primary-dark); }
.cart-count { position: absolute; top: -6px; right: -6px; background: var(--accent); color: var(--text); font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; }
.cart-count[hidden] { display: none; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--text); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--surface); padding: 16px 24px 24px; gap: 18px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
  }
}

/* Trust strip */
.trust-strip { background: var(--primary-dark); color: rgba(255,255,255,0.92); font-size: 13.5px; }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; padding-top: 10px; padding-bottom: 10px; }
.trust-strip span { display: inline-flex; align-items: center; gap: 7px; }

/* Stats bar */
.stats-bar { background: var(--surface); border-bottom: 1px solid var(--border); }
.stats-bar .container { display: flex; align-items: center; justify-content: center; gap: 0; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; align-items: center; padding: 0 32px; }
.stat-n { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: var(--primary); line-height: 1; }
.stat-l { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }
.stat-div { width: 1px; height: 36px; background: var(--border); }
@media (max-width: 560px) { .stat { padding: 0 18px; } .stat-n { font-size: 1.35rem; } .stat-div { height: 28px; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #dff5f7 0%, #eef7f8 35%, var(--bg) 70%); }
.hero::before {
  content: ''; position: absolute; top: -150px; right: -150px; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(14,124,134,0.13), transparent 65%); pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -100px; left: -100px; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,163,61,0.07), transparent 65%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding: 80px 0; }
.hero h1 { margin-bottom: 20px; }
.hero-sub { font-size: 1.18rem; color: var(--muted); margin-bottom: 28px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-trust { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--muted); }
.hero-trust .stars { color: var(--accent); letter-spacing: 2px; }
.hero-media { position: relative; }
.hero-card-img {
  background: var(--primary-tint); border-radius: var(--radius-lg);
  aspect-ratio: 3/4; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.hero-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-card-img .body-icon { font-size: 120px; opacity: 0.92; }
.float-card {
  position: absolute; bottom: 24px; left: -24px; border-radius: var(--radius);
  background: rgba(255,255,255,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(14,124,134,0.18); padding: 16px 18px; width: 230px; border: 1px solid rgba(255,255,255,0.7);
}
.float-card .fc-top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.float-card .fc-bar { height: 7px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.float-card .fc-bar i { display: block; height: 100%; width: 33%; background: var(--primary); }
.float-card .fc-title { font-family: var(--font-head); font-weight: 600; font-size: 14px; margin-top: 10px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  /* Text first on mobile: headline + CTA above the fold, image follows. */
  .hero-media { max-width: 340px; margin: 0 auto; }
  .float-card { left: auto; right: 12px; }
}

/* Value props */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.feature .ficon { font-size: 30px; width: 64px; height: 64px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-tint), rgba(14,124,134,0.04)); border-radius: 18px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(14,124,134,0.12); }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step .num { width: 34px; height: 34px; border-radius: 999px; background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* Program catalog cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .cards { grid-template-columns: 1fr; } }

.pcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 0; display: flex; flex-direction: column; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.pcard:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(14,124,134,0.16); border-color: var(--primary); }
.pcard-banner { height: 96px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: grid; place-items: center; color: #fff; font-size: 40px; }
.pcard-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.pcard-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pcard h3 { margin-bottom: 8px; }
.pcard .desc { color: var(--muted); font-size: 0.93rem; flex: 1; }
.pcard-meta { display: flex; gap: 16px; margin: 14px 0; font-size: 0.85rem; color: var(--muted); flex-wrap: wrap; }
.pcard-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.pcard-foot .from { font-size: 0.8rem; color: var(--muted); }
.pcard-foot .price { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--text); }

/* Pricing tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.tier.popular { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--primary), var(--accent)) border-box; border: 2px solid transparent; box-shadow: var(--shadow-lg); position: relative; }
.tier.popular .pop-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); }
.tier h3 { font-size: 1.15rem; }
.tier .price { font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; margin: 8px 0 4px; }
.tier .price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.tier .tdesc { color: var(--muted); font-size: 0.92rem; min-height: 42px; }
.tier ul { list-style: none; padding: 0; margin: 20px 0; flex: 1; }
.tier li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 0.92rem; }
.tier li::before { content: '✓'; color: var(--success); font-weight: 700; }
.tier .guarantee { text-align: center; font-size: 0.82rem; color: var(--muted); margin-top: 12px; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.quote:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.quote::before { content: '\201C'; font-family: Georgia, serif; font-size: 6rem; color: var(--primary); opacity: 0.10; position: absolute; top: -8px; left: 16px; line-height: 1; pointer-events: none; }
.quote .stars { color: var(--accent); letter-spacing: 3px; margin-bottom: 14px; font-size: 15px; }
.quote blockquote { margin: 0 0 20px; font-size: 0.98rem; line-height: 1.65; position: relative; }
.quote .who { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: var(--muted); }
.quote .who-avatar { width: 38px; height: 38px; border-radius: 999px; background: linear-gradient(135deg, var(--primary-tint), rgba(14,124,134,0.15)); display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.quote .who b { color: var(--text); display: block; font-family: var(--font-head); font-size: 0.9rem; }

/* Accordion (FAQ / program detail) */
.accordion { border-top: 1px solid var(--border); }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 0; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.acc-q .chev { transition: transform .2s; color: var(--muted); }
.acc-item.open .chev { transform: rotate(180deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.acc-a p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Disclaimer band */
.disclaimer-band { background: #FFF8EC; border-top: 1px solid #F0E2C4; border-bottom: 1px solid #F0E2C4; }
.disclaimer-band .container { display: flex; gap: 16px; align-items: flex-start; padding: 24px; }
.disclaimer-band .di { font-size: 24px; }
.disclaimer-band p { margin: 0; font-size: 0.9rem; color: #6b5a32; }

/* Footer */
.footer { background: var(--text); color: rgba(255,255,255,0.78); padding: 64px 0 28px; }
.footer a { color: rgba(255,255,255,0.78); }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 5px 0; font-size: 0.9rem; }
.footer .fbrand { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: #fff; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.footer .fmark { width: 30px; height: 30px; border-radius: 9px; background: var(--primary); display: grid; place-items: center; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 20px; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Cart drawer */
.overlay { position: fixed; inset: 0; background: rgba(19,32,42,0.45); opacity: 0; visibility: hidden; transition: opacity .2s; z-index: 90; }
.overlay.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: 400px; max-width: 92vw; background: var(--surface); z-index: 100; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { margin: 0; }
.drawer-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--muted); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 22px; }
.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-line .cl-main { flex: 1; }
.cart-line .cl-title { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; }
.cart-line .cl-sub { font-size: 0.8rem; color: var(--muted); }
.cart-line .cl-price { font-family: var(--font-head); font-weight: 600; }
.cart-line .cl-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.8rem; text-decoration: underline; padding: 0; margin-top: 4px; }
.cart-empty { text-align: center; color: var(--muted); padding: 48px 0; }
.drawer-foot { padding: 20px 22px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 110; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-box { background: var(--surface); border-radius: var(--radius-lg); max-width: 560px; width: 100%; max-height: 86vh; overflow-y: auto; box-shadow: var(--shadow-lg); padding: 32px; position: relative; }
.modal-box h3 { margin-bottom: 12px; }
.modal-box pre { white-space: pre-wrap; font-family: var(--font-body); font-size: 0.9rem; color: var(--muted); background: var(--bg); padding: 16px; border-radius: var(--radius-sm); }
.modal-close { position: absolute; top: 16px; right: 18px; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--muted); }

/* Program detail page */
.detail-hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.detail-hero .container { padding-top: 48px; padding-bottom: 48px; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.buy-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-md); position: sticky; top: 92px; }
.buy-option { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.buy-option:hover, .buy-option.sel { border-color: var(--primary); background: var(--primary-tint); }
.buy-option .bo-top { display: flex; justify-content: space-between; align-items: center; }
.buy-option .bo-name { font-family: var(--font-head); font-weight: 600; }
.buy-option .bo-price { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.buy-option .bo-meta { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

.tabs { display: inline-flex; background: var(--primary-tint); border-radius: var(--radius-pill); padding: 4px; margin: 8px 0 28px; }
.tab { border: none; background: none; cursor: pointer; padding: 9px 20px; border-radius: var(--radius-pill); font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; color: var(--primary-dark); }
.tab.active { background: var(--surface); box-shadow: var(--shadow-sm); }

.phase { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.phase-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 6px; }
.phase-head h3 { margin: 0; }
.phase .focus { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }
.ex { border-top: 1px solid var(--border); padding: 16px 0; display: flex; gap: 18px; align-items: flex-start; }
.ex:last-child { padding-bottom: 0; }
.ex-body { flex: 1; min-width: 0; }
.ex-media { flex: 0 0 132px; width: 132px; height: 132px; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--primary-tint); position: relative; }
.ex-img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* placeholder glyph shown until the ComfyUI image exists (or if it fails to load) */
.ex-media.is-empty::after { content: "🏋"; position: absolute; inset: 0;
  display: grid; place-items: center; font-size: 2rem; opacity: .3; }
/* Lock gate — shown after free preview exercises */
.lock-gate { text-align: center; padding: 32px 24px; margin-top: 8px;
  border: 2px dashed var(--border); border-radius: 16px;
  background: linear-gradient(to bottom, transparent, var(--surface)); }
.lock-icon { font-size: 2rem; margin-bottom: 10px; }
.lock-msg { color: var(--muted); margin-bottom: 20px; font-size: 1rem; line-height: 1.5; }
.lock-msg strong { color: var(--text); }
@media (max-width: 560px) {
  .ex { gap: 14px; }
  .ex-media { flex-basis: 88px; width: 88px; height: 88px; }
}
.ex-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ex-name { font-family: var(--font-head); font-weight: 600; }
.ex-dose { font-size: 0.85rem; color: var(--primary-dark); font-weight: 600; white-space: nowrap; }
.ex-row { font-size: 0.92rem; margin-top: 6px; }
.ex-row b { color: var(--text); }
.ex-row.why { color: var(--muted); }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 8px 0 8px 28px; position: relative; font-size: 0.95rem; }
.info-list li::before { content: ''; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; border-radius: 999px; background: var(--primary); }
.info-list.warn li::before { background: var(--accent); }
.callout { background: var(--bg); border-left: 4px solid var(--primary); border-radius: var(--radius-sm); padding: 18px 20px; margin: 20px 0; }
.callout.warn { border-left-color: var(--accent); background: #FFF8EC; }
.callout h4 { margin: 0 0 8px; font-family: var(--font-head); }
.callout p, .callout li { color: #4a5560; font-size: 0.92rem; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
