/* ==========================================================================
   CBA 9 Fitness — shared stylesheet (home, pricing, trainers)
   Tokens follow style-guide.md: Catamaran + Rubik, coquelicot on rich black.
   ========================================================================== */

:root {
  --bg: hsl(210, 50%, 4%);
  --bg-2: hsl(210, 26%, 8%);
  --surface: hsl(210, 26%, 11%);
  --surface-2: hsl(210, 22%, 14%);
  --line: hsla(0, 0%, 100%, 0.09);
  --text: hsl(0, 0%, 96%);
  --muted: hsl(212, 9%, 67%);
  --accent: hsl(12, 98%, 52%);
  --accent-2: hsl(36, 100%, 55%);
  --accent-soft: hsla(12, 98%, 52%, 0.14);
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));

  --ff-head: 'Catamaran', system-ui, sans-serif;
  --ff-body: 'Rubik', system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px hsla(0, 0%, 0%, 0.45);
  --glow: 0 10px 30px hsla(12, 98%, 52%, 0.35);
  --ease: 0.25s ease;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--ff-body);
  font-size: 1.6rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html { font-size: 62.5%; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 110px); }
.section--alt { background: var(--bg-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
h1 { font-size: clamp(4.4rem, 7.2vw, 8.2rem); font-weight: 900; text-transform: uppercase; }
h2 { font-size: clamp(3rem, 4.4vw, 4.6rem); }
h3 { font-size: 2.2rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-head); font-weight: 800; font-size: 1.5rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--grad); }
.lead { color: var(--muted); font-size: 1.75rem; max-width: 62ch; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head h2 + .lead { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 28px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--ff-head); font-weight: 800; font-size: 1.6rem; letter-spacing: 0.04em;
  text-transform: uppercase; cursor: pointer; transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { box-shadow: 0 14px 38px hsla(12, 98%, 52%, 0.5); }
.btn-ghost { border-color: var(--line); background: hsla(0, 0%, 100%, 0.04); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-sm { min-height: 42px; padding: 8px 22px; font-size: 1.4rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; transition: background var(--ease), box-shadow var(--ease), backdrop-filter var(--ease);
}
.header.active, .header--solid {
  background: hsla(210, 50%, 4%, 0.82); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-head); font-weight: 900; font-size: 2.2rem; text-transform: uppercase; letter-spacing: 0.02em; }
.logo img { width: 56px; height: 56px; object-fit: contain; margin-block: -6px; }
.logo b { color: var(--accent); font-weight: 900; }
.navbar-list { display: flex; align-items: center; gap: 6px; }
.navbar-link { padding: 8px 14px; border-radius: 999px; font-weight: 500; color: var(--muted); transition: color var(--ease), background var(--ease); }
.navbar-link:hover, .navbar-link.active { color: var(--text); background: hsla(0, 0%, 100%, 0.07); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle, .nav-close { display: none; }
.nav-toggle { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: hsla(0, 0%, 100%, 0.05); cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 90px)); padding-bottom: clamp(60px, 8vw, 100px);
  background:
    radial-gradient(900px 520px at 78% 38%, hsla(12, 98%, 52%, 0.30), transparent 62%),
    radial-gradient(700px 420px at 8% 100%, hsla(36, 100%, 55%, 0.10), transparent 60%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
}
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 40px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; margin-bottom: 22px;
  border: 1px solid var(--line); border-radius: 999px; background: hsla(0, 0%, 100%, 0.05); font-size: 1.4rem; color: var(--muted);
}
.hero-pill i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px hsla(145, 70%, 55%, 0.2); }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art > img.model { position: relative; z-index: 1; width: min(520px, 100%); filter: drop-shadow(0 30px 40px hsla(0, 0%, 0%, 0.5)); }
.hero-art .ring { position: absolute; width: min(560px, 105%); aspect-ratio: 1; border-radius: 50%; border: 2px dashed hsla(12, 98%, 52%, 0.4); animation: spin 40s linear infinite; }
.hero-art .ring.r2 { width: min(430px, 80%); border-style: solid; border-color: hsla(36, 100%, 55%, 0.25); animation-direction: reverse; animation-duration: 55s; }
.float-img { position: absolute; z-index: 2; height: auto; filter: drop-shadow(0 14px 24px hsla(0, 0%, 0%, 0.45)); animation: bob 6s ease-in-out infinite; }
.fc-1 { top: 6%; left: -4%; width: clamp(110px, 16vw, 160px); }
.fc-2 { bottom: 8%; right: -4%; width: clamp(140px, 20vw, 210px); animation-delay: -3s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Stats strip ---------- */
.stats { margin-top: -1px; background: var(--bg-2); border-block: 1px solid var(--line); }
.stats ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 28px 20px; text-align: center; border-right: 1px solid var(--line); }
.stats li:last-child { border-right: 0; }
.stats strong { display: block; font-family: var(--ff-head); font-size: clamp(3rem, 4vw, 4.4rem); font-weight: 900; line-height: 1; }
.stats span { color: var(--muted); font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- About ---------- */
.about .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-photo { position: relative; }
.about-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--radius); background: var(--grad); opacity: 0.9; }
.about-photo img { position: relative; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-badge {
  position: absolute; z-index: 2; left: -14px; bottom: 28px; padding: 14px 20px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.about-badge strong { display: block; font-family: var(--ff-head); font-size: 3.2rem; line-height: 1; color: var(--accent); }
.about-badge span { font-size: 1.3rem; color: var(--muted); }
.about p + p { margin-top: 14px; }
.about .lead { margin-top: 16px; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 26px 0 32px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 1.5rem; }
.ticks li::before, .plan-features li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23ff6a2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.about-coach { display: flex; align-items: center; gap: 14px; margin-right: 8px; }
.about-coach img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 2px solid var(--accent); }
.about-coach strong { font-family: var(--ff-head); font-size: 2rem; display: block; line-height: 1.1; }
.about-coach span { color: var(--muted); font-size: 1.3rem; }
.about-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }

/* ---------- Classes ---------- */
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.class-card {
  position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 4.4; background: var(--surface);
  border: 1px solid var(--line); isolation: isolate; transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.class-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s ease; }
.class-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, hsla(210, 50%, 4%, 0.96) 6%, hsla(210, 50%, 4%, 0.35) 55%, transparent); }
.class-card:hover { transform: translateY(-6px); border-color: hsla(12, 98%, 52%, 0.55); box-shadow: var(--shadow); }
.class-card:hover img { transform: scale(1.07); }
.class-card .body { position: absolute; inset: auto 0 0 0; padding: 22px; }
.class-card .num { font-family: var(--ff-head); font-weight: 900; font-size: 1.4rem; letter-spacing: 0.14em; color: var(--accent-2); }
.class-card h3 { margin-top: 4px; }

/* ---------- Transformations (scroll-snap carousel) ---------- */
.carousel-wrap { position: relative; }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(440px, 82%); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 22px; scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
.carousel figure { scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.carousel img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.carousel-btns { display: flex; gap: 10px; margin-top: 8px; justify-content: flex-end; }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: hsla(0, 0%, 100%, 0.05); cursor: pointer; font-size: 2rem; transition: background var(--ease), border-color var(--ease); }
.icon-btn:hover { background: var(--accent-soft); border-color: var(--accent); }

/* ---------- Pricing ---------- */
.plans { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; align-items: stretch; }
.plans > .plan { flex: 1 1 280px; max-width: 380px; }
.plans--home > .plan { flex: 1 1 210px; max-width: none; }
@media (min-width: 1180px) { .plans--home { flex-wrap: nowrap; gap: 16px; } .plans--home > .plan { min-width: 0; } .plans--home .price strong { font-size: 3rem; } .plans--home > .plan { padding-inline: 20px; } }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 30px 26px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.plan:hover { transform: translateY(-6px); border-color: hsla(12, 98%, 52%, 0.5); box-shadow: var(--shadow); }
.plan.featured { background: linear-gradient(180deg, hsla(12, 98%, 52%, 0.16), var(--surface) 55%); border-color: hsla(12, 98%, 52%, 0.6); box-shadow: var(--glow); }
.plan .flag { position: absolute; top: -13px; left: 26px; padding: 4px 14px; border-radius: 999px; background: var(--grad); font-family: var(--ff-head); font-weight: 800; font-size: 1.3rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.plan h3 { font-size: 2.4rem; }
.plan .term { color: var(--muted); font-size: 1.4rem; min-height: 2.2em; }
.price { display: flex; flex-wrap: nowrap; align-items: baseline; gap: 6px; margin: 18px 0 22px; white-space: nowrap; }
.price strong { font-family: var(--ff-head); font-size: 5rem; font-weight: 900; line-height: 1; }
.price .per { color: var(--muted); font-size: 1.4rem; }
.plan-features { display: grid; gap: 11px; margin: 24px 0 28px; font-size: 1.45rem; flex: 1; align-content: start; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; }
.plan-features li.hl { font-weight: 500; }
.plan-features li.hl::before { background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.note { margin-top: 28px; text-align: center; color: var(--muted); font-size: 1.4rem; }

/* ---------- Trainers ---------- */
.trainer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 340px)); gap: 26px; justify-content: center; }
.trainer { overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.trainer:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: hsla(12, 98%, 52%, 0.5); }
.trainer img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 18%; }
.trainer .body { padding: 22px 24px 26px; }
.trainer .role { color: var(--accent); font-weight: 500; font-size: 1.4rem; margin: 2px 0 14px; }
.trainer .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 1.3rem; color: var(--muted); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(40px, 6vw, 70px); text-align: center;
  background: radial-gradient(700px 320px at 50% 0%, hsla(12, 98%, 52%, 0.26), transparent 70%), var(--bg);
}
.page-hero h1 { font-size: clamp(4rem, 6vw, 6.4rem); margin-bottom: 14px; }
.page-hero .lead { margin-inline: auto; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; border-radius: 26px; padding: clamp(36px, 6vw, 70px); text-align: center; background: var(--grad); color: #fff; }
.cta::before { content: ""; position: absolute; inset: 0; opacity: 0.18; background: repeating-linear-gradient(115deg, #fff 0 2px, transparent 2px 26px); }
.cta > * { position: relative; }
.cta h2 { margin-bottom: 12px; }
.cta p { max-width: 56ch; margin: 0 auto 26px; opacity: 0.95; font-size: 1.75rem; }
.cta .btn { background: #fff; color: hsl(12, 90%, 40%); box-shadow: 0 12px 30px hsla(0, 0%, 0%, 0.25); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 0.8fr 1.1fr 1.2fr; gap: 40px; padding-block: 70px 50px; }
.footer p, .footer address { color: var(--muted); font-style: normal; font-size: 1.5rem; }
.footer h4 { font-size: 1.8rem; margin-bottom: 18px; }
.footer .logo { margin-bottom: 14px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--muted); transition: color var(--ease), padding var(--ease); }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; color: var(--muted); font-size: 1.5rem; }
.footer-contact svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }
.footer-contact a:hover { color: var(--text); }
.footer-form { display: flex; gap: 8px; margin: 4px 0 20px; }
.footer-form input { flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: hsla(0, 0%, 100%, 0.05); }
.footer-form input::placeholder { color: var(--muted); }
.footer-form input:focus { outline: 0; border-color: var(--accent); }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); transition: all var(--ease); }
.social a:hover { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 22px; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--muted); font-size: 1.4rem; }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom ul { display: flex; gap: 22px; }

/* ---------- Back to top ---------- */
.back-top { position: fixed; right: 20px; bottom: 90px; z-index: 40; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: var(--glow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all var(--ease); }
.back-top.active { opacity: 1; visibility: visible; transform: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero .container, .about .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 460px; margin-inline: auto; }
  .about-photo { max-width: 460px; margin-inline: 14px auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(2) { border-right: 0; }
  .stats li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .navbar {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); padding: 90px 24px 24px; background: var(--bg-2); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform 0.35s ease; box-shadow: var(--shadow);
  }
  .navbar.active { transform: none; }
  .navbar-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .navbar-link { display: block; padding: 14px 16px; font-size: 1.8rem; }
  .nav-close { display: block; position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: none; font-size: 2.4rem; cursor: pointer; }
}
@media (max-width: 560px) {
  .ticks { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; padding-block: 50px 30px; }
  .fc-1 { left: 0; }
  .fc-2 { right: 0; }
  .logo span { font-size: 2rem; }
  .btn { width: 100%; }
  .hero-cta .btn, .about-foot .btn { width: auto; flex: 1 1 100%; }
}

/* ---------- Billing toggle + savings ---------- */
.p-y { display: none; }
body[data-billing="yearly"] .p-y { display: revert; }
body[data-billing="yearly"] .p-m { display: none; }
.billing { display: flex; width: fit-content; margin: 0 auto 36px; padding: 5px; gap: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.billing button { min-height: 46px; padding: 8px 24px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; font-family: var(--ff-head); font-weight: 800; font-size: 1.6rem; letter-spacing: 0.03em; text-transform: uppercase; transition: background var(--ease), color var(--ease); }
.billing button.on { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.billing button:not(.on):hover { color: var(--text); }
.billing em { margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: hsla(145, 70%, 50%, 0.16); color: #5be39b; font-style: normal; font-size: 1.2rem; letter-spacing: 0; text-transform: none; font-family: var(--ff-body); font-weight: 500; }
.billing button.on em { background: hsla(0, 0%, 100%, 0.22); color: #fff; }
.save { margin: -10px 0 18px; font-size: 1.4rem; color: #5be39b; min-height: 2.9em; }
.save strong { font-weight: 800; }
.save--none { color: var(--muted); }
.billing-note { max-width: 62ch; margin-inline: auto; }

/* ---------- Carousel pause state ---------- */
.carousel-btns .icon-btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease); }
.post-card:hover { transform: translateY(-6px); border-color: hsla(12, 98%, 52%, 0.5); box-shadow: var(--shadow); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; flex: 1; }
.post-body h3 { font-size: 2.2rem; line-height: 1.2; }
.post-body p { color: var(--muted); font-size: 1.5rem; }
.post-body .chip { align-self: flex-start; color: var(--accent-2); }
.post-meta { margin-top: auto; padding-top: 6px; font-size: 1.3rem; color: var(--muted); }
.post-title { font-size: clamp(3.2rem, 5vw, 5.2rem); max-width: 22ch; margin: 10px auto 14px; text-transform: none; }
.article { width: min(780px, 100% - 40px); margin-inline: auto; }
.article-img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius); margin-bottom: 36px; border: 1px solid var(--line); }
.article-body h2 { font-size: 2.8rem; margin: 40px 0 12px; }
.article-body p { font-size: 1.8rem; color: hsl(210, 14%, 82%); margin-bottom: 1.2em; line-height: 1.75; }
a.eyebrow:hover { color: var(--accent-2); }
@media (max-width: 560px) { .billing button { padding: 8px 14px; font-size: 1.4rem; } .billing em { display: none; } }

/* ---------- Pack-finder chat ---------- */
.chat-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; background: var(--grad); color: #fff; cursor: pointer; font-family: var(--ff-head); font-weight: 800; font-size: 1.6rem; letter-spacing: 0.03em; text-transform: uppercase; box-shadow: var(--glow); transition: transform var(--ease), box-shadow var(--ease); }
.chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 38px hsla(12, 98%, 52%, 0.5); }
.chat-panel { position: fixed; right: 20px; bottom: 90px; z-index: 61; display: flex; flex-direction: column; width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100dvh - 120px)); border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 24px 70px hsla(0, 0%, 0%, 0.6); overflow: hidden; animation: chat-in 0.25s ease; }
.chat-panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--grad); color: #fff; }
.chat-head strong { display: block; font-family: var(--ff-head); font-size: 2rem; line-height: 1.1; }
.chat-head span { font-size: 1.3rem; opacity: 0.92; }
.chat-close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: hsla(0, 0%, 0%, 0.18); color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }
.chat-close:hover { background: hsla(0, 0%, 0%, 0.3); }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; scroll-behavior: smooth; }
.msg { max-width: 88%; padding: 11px 15px; border-radius: 16px; font-size: 1.5rem; line-height: 1.5; }
.msg.bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 5px; }
.msg.user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.msg.typing { display: flex; gap: 5px; padding: 14px 16px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite ease-in-out; }
.msg.typing i:nth-child(2) { animation-delay: 0.15s; } .msg.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.chat-options { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px 16px; border-top: 1px solid var(--line); max-height: 40%; overflow-y: auto; }
.chat-options:empty { display: none; }
.chat-opt { padding: 9px 16px; border-radius: 999px; border: 1px solid hsla(12, 98%, 52%, 0.55); background: transparent; color: var(--text); font-size: 1.4rem; cursor: pointer; text-align: left; transition: background var(--ease), color var(--ease); }
.chat-opt:hover { background: var(--accent-soft); }
.chat-opt.primary { background: var(--grad); border-color: transparent; color: #fff; font-weight: 500; }
.reco { align-self: stretch; }
.msg:has(.reco) { max-width: 100%; width: 100%; padding: 16px; background: var(--surface); border: 1px solid var(--line); }
.reco h4 { font-size: 2.4rem; margin: 2px 0 4px; }
.reco-label { margin-top: 10px; font-family: var(--ff-head); font-weight: 800; font-size: 1.2rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.reco-label:first-child { margin-top: 0; }
.reco-price strong { font-family: var(--ff-head); font-size: 3.4rem; font-weight: 900; }
.reco-price { color: var(--muted); font-size: 1.4rem; }
.reco-facts { display: grid; gap: 4px; margin: 6px 0 4px 18px; list-style: disc; font-size: 1.4rem; }
.reco-facts .good { color: #5be39b; }
.reco-why { margin-top: 6px; color: var(--muted); font-size: 1.35rem; }
.reco-note { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 1.3rem; }
.find-link { margin-top: 10px; }
.find-link a { font-weight: 500; }
@media (max-width: 560px) {
  .chat-launcher { padding: 0; width: 56px; justify-content: center; }
  .chat-launcher-label { display: none; }
  .chat-panel { right: 16px; left: 16px; width: auto; bottom: 86px; }
  .back-top { bottom: 86px; right: 24px; }
}
@media (prefers-reduced-motion: reduce) { .chat-panel, .msg.typing i { animation: none; } .chat-log { scroll-behavior: auto; } }
