/* GroupFitPro — marketing site
   One stylesheet for every page, EN and FR. No build step, no dependencies. */

:root {
  --brand:        #5B5BF5;
  --brand-light:  #8B6CF7;
  --brand-dark:   #3F3FD8;

  --bg:           #ffffff;
  --bg-soft:      #f5f5f9;
  --bg-card:      #ffffff;
  --text:         #16161d;
  --text-soft:    #5c5c6b;
  --text-faint:   #8a8a99;
  --border:       #e4e4ec;
  --shadow:       0 1px 2px rgba(22,22,29,.04), 0 8px 24px rgba(22,22,29,.06);
  --shadow-lg:    0 2px 4px rgba(22,22,29,.04), 0 24px 60px rgba(22,22,29,.12);

  --radius:       16px;
  --radius-lg:    28px;
  --maxw:         1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:         #0d0d12;
    --bg-soft:    #15151d;
    --bg-card:    #16161f;
    --text:       #f2f2f7;
    --text-soft:  #a8a8bb;
    --text-faint: #7b7b8f;
    --border:     #26262f;
    --shadow:     0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg:  0 2px 4px rgba(0,0,0,.4), 0 24px 60px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.muted { color: var(--text-soft); }
.small { font-size: .9rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 16px;
  height: 62px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--text); text-decoration: none;
  letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text-soft); font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); }

.lang {
  display: inline-flex; border: 1px solid var(--border);
  border-radius: 999px; overflow: hidden; font-size: .8rem; font-weight: 600;
}
.lang a { padding: 4px 11px; color: var(--text-faint); }
.lang a:hover { color: var(--text); text-decoration: none; }
.lang a.on { background: var(--brand); color: #fff; }

@media (max-width: 780px) {
  .nav { gap: 14px; }
  .nav a { font-size: .88rem; }
  .nav .hide-sm { display: none; }
}

/* Below ~520px the brand word and the nav fight for the same row. Collapse the
   header brand to its icon (font-size:0 hides the text node, the img keeps its
   fixed size) and tighten the nav. The footer brand keeps its label. */
@media (max-width: 520px) {
  .site-header .wrap { gap: 10px; }
  .site-header .brand { font-size: 0; gap: 0; }
  .nav { gap: 13px; }
  .nav a { font-size: .85rem; }
  .lang a { padding: 4px 9px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  color: #fff; box-shadow: 0 6px 20px rgba(91,91,245,.32);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(91,91,245,.4); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-soft); }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 0;
  background:
    radial-gradient(900px 420px at 15% -5%, rgba(139,108,247,.20), transparent 65%),
    radial-gradient(760px 420px at 88% 5%, rgba(91,91,245,.16), transparent 62%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.hero-icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 22px; }
.hero p.lead { font-size: 1.2rem; color: var(--text-soft); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.hero-note { font-size: .87rem; color: var(--text-faint); margin-top: 16px; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}

.phone {
  border-radius: 38px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-width: 300px; margin: 0 auto;
  transform: translateY(28px);
}

@media (max-width: 860px) {
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .phone { transform: none; max-width: 250px; margin-top: 8px; }
}

/* ---------- Sections ---------- */

section { padding: 84px 0; }
section.soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Feature cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--text-soft); font-size: .96rem; }
.card .ico {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(139,108,247,.16), rgba(91,91,245,.16));
  color: var(--brand);
}
.card .ico svg { width: 21px; height: 21px; }

.tag {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand);
  background: rgba(91,91,245,.11); border-radius: 999px;
  padding: 2px 9px; margin-left: 8px; vertical-align: 3px;
}

/* ---------- Alternating showcase ---------- */

.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 84px; }
.showcase:last-child { margin-bottom: 0; }
.showcase.flip .showcase-media { order: -1; }
.showcase ul { margin: 18px 0 0; padding-left: 20px; color: var(--text-soft); }
.showcase li { margin-bottom: 8px; }
.showcase-media img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.showcase-media.phone-shot img { max-width: 270px; margin: 0 auto; border-radius: 34px; }
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .showcase.flip .showcase-media { order: 0; }
}

/* ---------- Pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 820px; margin: 0 auto; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow);
}
.plan.featured { border-color: var(--brand); box-shadow: 0 10px 40px rgba(91,91,245,.18); }
.plan h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 2px; }
.price span { font-size: 1rem; font-weight: 500; color: var(--text-faint); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; }
.plan li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--text-soft); font-size: .96rem; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 14px; height: 8px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* ---------- Privacy strip ---------- */

.strip {
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  color: #fff; border-radius: var(--radius-lg); padding: 52px 44px;
  text-align: center;
}
.strip h2 { color: #fff; }
.strip p { color: rgba(255,255,255,.86); max-width: 46em; margin-left: auto; margin-right: auto; }
.strip .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.strip .btn-ghost:hover { background: rgba(255,255,255,.14); }
@media (max-width: 620px) { .strip { padding: 38px 24px; } }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--border); padding: 18px 0;
}
.faq summary {
  cursor: pointer; font-weight: 650; list-style: none; display: flex; gap: 12px; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 12px 0 0; color: var(--text-soft); }

/* ---------- Legal / doc pages ---------- */

.doc { padding: 56px 0 84px; }
.doc h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin-bottom: .3em; }
.doc .updated { color: var(--text-faint); font-size: .9rem; margin-bottom: 40px; }
.doc h2 {
  font-size: 1.35rem; margin-top: 2.4em; padding-top: 1.4em;
  border-top: 1px solid var(--border);
}
.doc h2:first-of-type { border-top: 0; padding-top: 0; }
.doc h3 { font-size: 1.05rem; margin-top: 1.8em; }
.doc ul, .doc ol { color: var(--text-soft); padding-left: 22px; }
.doc li { margin-bottom: .5em; }
.doc p { color: var(--text-soft); }
.doc strong { color: var(--text); }

.callout {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 12px; padding: 18px 22px; margin: 28px 0;
}
.callout p { margin: 0; color: var(--text); }
.callout p + p { margin-top: .7em; }

.toc {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 26px; margin-bottom: 44px;
}
.toc p { font-weight: 700; color: var(--text); margin: 0 0 10px; font-size: .9rem;
         text-transform: uppercase; letter-spacing: .05em; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 5px; font-size: .93rem; }
@media (max-width: 620px) { .toc ol { columns: 1; } }

table.data {
  width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .93rem;
}
table.data th, table.data td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.data th { font-weight: 700; color: var(--text); background: var(--bg-soft); }
table.data td { color: var(--text-soft); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border); background: var(--bg-soft);
  padding: 48px 0 40px; margin-top: 0;
}
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--text-soft); font-size: .92rem; }
.site-footer a:hover { color: var(--text); }
.copyright { color: var(--text-faint); font-size: .86rem; margin: 28px 0 0; }
