/* FitFam Gym: mint, sunshine and coral on white.
   Change the colours and fonts here; base.css reads these variables. */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --soft: #F2FAF7;
  --ink: #14213D;
  --muted: #56607A;
  --line: #E1ECE8;
  --line-strong: #C6DAD3;
  --mint: #14A37F;
  --sun: #FFC83D;
  --coral: #FF6B6B;
  --violet: #7B61FF;
  --brand: #0E8A6A;
  --brand-hover: #0B7258;
  --brand-ink: #FFFFFF;
  --brand-text: #0E7A5E;
  --eyebrow: #0E7A5E;
  --head: "Baloo 2", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 24px;
  --btn-radius: 999px;
  --wrap: 1180px;
  --gap: 18px;
}
h1, h2, h3 { font-weight: 800; letter-spacing: -.01em; }
h1 em, h2 em, .f-statement em { font-style: normal; color: var(--coral); }
.eyebrow { letter-spacing: .14em; font-weight: 800; }
.btn { font-weight: 800; }
.btn svg { width: 18px; height: 18px; }
.text-link { color: var(--brand-text); font-weight: 800; text-underline-offset: 5px; }
.sub-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.tt-class[data-type="dance"] { --type: var(--coral); }
.tt-class[data-type="strength"] { --type: var(--mint); }
.tt-class[data-type="women"] { --type: #E0569A; }
.tt-class[data-type="mind"] { --type: var(--violet); }
.tt-class[data-type="family"] { --type: var(--sun); }

/* ---------- header ---------- */
.header { background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 40px; height: 40px; }
.logo span { display: grid; line-height: 1; }
.logo b { font: 800 1.7rem var(--head); color: var(--ink); }
.logo small { font-size: .72rem; font-weight: 700; color: var(--muted); }
.nav a { color: var(--muted); font-weight: 700; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--brand-text); background: #E2F5EE; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(32px, 5vw, 72px); background: linear-gradient(180deg, #F2FAF7, #FFFFFF); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); line-height: 1; margin: 14px 0 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.from { margin-top: 18px; color: var(--muted); }
.from b { color: var(--ink); }

/* ---------- sections ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head h2, .sec-title { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.05; }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 860px) { .feature-row { grid-template-columns: minmax(0, 1fr); } }
.feat { display: grid; gap: 6px; padding: 26px; border-radius: var(--radius-lg); text-decoration: none; transition: transform .2s; }
.feat:hover { transform: translateY(-4px); }
.feat b { font: 800 1.6rem var(--head); }
.feat-0 { background: #E2F5EE; }
.feat-1 { background: #FFF3D1; }
.feat-2 { background: #FFE5EF; }
.soft-band { background: var(--soft); }
.mini-plans { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 860px) { .mini-plans { grid-template-columns: minmax(0, 1fr); } }
.mini-plans li { display: grid; gap: 4px; padding: 24px; border-radius: var(--radius-lg); background: #fff; border: 2px solid var(--line); }
.mini-plans li.is-best { border-color: var(--mint); }
.mini-plans b { font: 800 1.4rem var(--head); }
.mini-plans span { font: 800 2.2rem var(--head); color: var(--brand-text); }
.mini-plans small { font: 600 .9rem var(--body); color: var(--muted); }
.mini-plans em { font-style: normal; color: var(--muted); }

/* ---------- calculator (signature) ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc-in { display: grid; gap: 20px; padding: clamp(18px, 2.6vw, 28px); border-radius: var(--radius-lg); background: var(--soft); }
.calc-out { display: grid; gap: 16px; padding: clamp(18px, 2.6vw, 28px); border-radius: var(--radius-lg); background: #fff; border: 2px solid var(--line); position: sticky; top: 96px; }
@media (max-width: 900px) { .calc-out { position: static; } }
.bmi-meter { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline; }
.bm-label { grid-column: 1 / -1; font-weight: 800; color: var(--muted); }
.bm-val { font: 800 3.6rem/1 var(--head); }
.bm-cat { font-weight: 800; font-size: 1.2rem; }
.bm-cat.is-ok { color: var(--brand-text); }
.bm-cat.is-over { color: #B7791F; }
.bm-cat.is-obese, .bm-cat.is-under { color: #C53030; }
.bm-bar { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: 3.5fr 4.5fr 2fr 7fr; height: 12px; border-radius: 999px; overflow: visible; margin-top: 10px; }
.bm-bar span:nth-child(1) { background: #93C5FD; border-radius: 999px 0 0 999px; }
.bm-bar span:nth-child(2) { background: var(--mint); }
.bm-bar span:nth-child(3) { background: var(--sun); }
.bm-bar span:nth-child(4) { background: var(--coral); border-radius: 0 999px 999px 0; }
.bm-bar i { position: absolute; top: -6px; width: 6px; height: 24px; border-radius: 3px; background: var(--ink); transform: translateX(-50%); transition: left .3s; }
.bm-scale { grid-column: 1 / -1; position: relative; height: 1.2em; font-size: .78rem; color: var(--muted); }
.bm-scale span { position: absolute; transform: translateX(-50%); }
.bm-scale span:nth-child(1) { left: 20.6%; }
.bm-scale span:nth-child(2) { left: 47%; }
.bm-scale span:nth-child(3) { left: 58.8%; }
.calc-out h3 { font-size: 1.4rem; }
.plate { list-style: none; display: grid; gap: 6px; }
.plate li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius); background: var(--soft); }
.plate span { display: grid; }
.plate small { color: var(--muted); }
.plate i { font-style: normal; font-weight: 800; color: var(--brand-text); white-space: nowrap; }
.plate .plate-total { background: var(--ink); color: #fff; }
.plate .plate-total i { color: var(--sun); }

/* ---------- crowd meter ---------- */
.crowd { display: grid; gap: 14px; padding: clamp(18px, 2.6vw, 28px); border-radius: var(--radius-lg); background: var(--soft); }
.crowd-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.crowd-tabs button { min-height: 44px; padding: 8px 18px; border: 2px solid var(--line-strong); border-radius: 999px; background: #fff; font-weight: 800; cursor: pointer; }
.crowd-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.crowd-now { font: 800 1.4rem var(--head); }
.crowd-bars { display: flex; gap: 6px; align-items: end; height: 220px; overflow-x: auto; padding-bottom: 4px; }
.cb { flex: 1 0 34px; display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; text-align: center; }
.cb-bar { position: relative; display: flex; align-items: end; border-radius: 10px; background: #fff; overflow: hidden; }
.cb-bar i { display: block; width: 100%; background: var(--sun); border-radius: 10px 10px 0 0; transition: height .3s; }
.cb.is-quiet .cb-bar i { background: var(--mint); }
.cb.is-busy .cb-bar i { background: var(--coral); }
.cb.is-ladies .cb-bar { box-shadow: inset 0 0 0 3px #E0569A; }
.cb.is-now .cb-h { background: var(--ink); color: #fff; border-radius: 999px; }
.cb-h { font-size: .7rem; font-weight: 800; color: var(--muted); padding: 2px 0; }
.crowd-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .86rem; font-weight: 700; }
.crowd-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.k-quiet::before { background: var(--mint); }
.k-busy::before { background: var(--coral); }
.k-ladies::before { box-shadow: inset 0 0 0 3px #E0569A; background: #fff; }

/* ---------- inner pages ---------- */
.page-head { background: linear-gradient(180deg, #F2FAF7, #fff); }
.page-head h1 { font-size: clamp(2.6rem, 5.4vw, 4rem); }
.plan.is-best { border-color: var(--mint); }

/* ---------- CTA + footer ---------- */
.cta-band { padding-block: clamp(56px, 8vw, 104px); text-align: center; background: var(--sun); }
.cta-band h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.cta-band h2 em { color: var(--ink); text-decoration: underline wavy var(--coral); text-underline-offset: 10px; }
.cta-band p { margin: 12px auto 0; max-width: 52ch; }
.cta-band .btn-primary { background: var(--ink); }
.cta-band .btn-ghost { border-color: var(--ink); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.footer { background: var(--ink); color: #BAC2D6; --footer-line: rgba(255,255,255,.12); }
.f-statement { font: 800 clamp(2rem, 5vw, 3.4rem)/1.05 var(--head); color: #fff; margin-bottom: 48px; }
.f-statement em { color: var(--sun); }
.footer .logo b { color: #fff; }
.footer .logo small { color: #9AA3BA; }
.footer h2 { color: var(--sun); opacity: 1; }
.f-about { margin: 14px 0 10px; max-width: 34ch; }
.footer .credit a { color: #fff; }
