/* Hypertrophy Coach showcase - local V1. Palette from the Website brief (Website choices, not app tokens). */
:root {
  --bg: #F7F8FC;
  --surface: #FFFFFF;
  --text: #141923;
  --muted: #4B5362;
  --accent: #145BFF;
  --accent-strong: #0B46D6;
  --accent-ink: #0B3FB8;
  --accent-soft: #E9F0FF;
  --line: #E2E6EF;
  --dark: #111827;
  --dark-raised: #1A2334;
  --on-dark: #F4F6FB;
  --on-dark-muted: #B9C2D3;
  --accent-on-dark: #9DBBFF;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(20, 25, 35, .06), 0 18px 40px -18px rgba(20, 25, 35, .28);
  --wrap: 1200px;
  --gutter: 16px;
  --lh: 1.6;
  --lh-head: 1.08;
  --tracking-head: -.025em;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}
[lang="ar"] { --font: "Segoe UI", "Noto Sans Arabic", "Noto Naskh Arabic", "Geeza Pro", Tahoma, Arial, sans-serif; }
[lang="hi"] { --font: "Nirmala UI", "Noto Sans Devanagari", "Kohinoor Devanagari", Mangal, system-ui, sans-serif; }
[lang="zh-Hans"] { --font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif; }
html[lang="ar"] { --lh: 1.85; --lh-head: 1.35; --tracking-head: 0; }
html[lang="hi"] { --lh: 1.8; --lh-head: 1.4; --tracking-head: 0; }
html[lang="zh-Hans"] { --lh: 1.75; --lh-head: 1.25; --tracking-head: 0; }
[lang] { font-family: var(--font); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: var(--lh);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 1.125rem; } }
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3 { line-height: var(--lh-head); letter-spacing: var(--tracking-head); margin: 0; overflow-wrap: anywhere; hyphens: auto; text-wrap: balance; }
p { margin: 0; overflow-wrap: anywhere; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
bdi { unicode-bidi: isolate; }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(820px + 2 * var(--gutter)); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -100px; z-index: 100;
  background: var(--text); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 650; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 68px; flex-wrap: wrap; position: relative; }
.brand { display: inline-flex; flex: none; border-radius: 8px; }
.brand img { height: 32px; width: auto; }
@media (min-width: 900px) { .brand img { height: 40px; } }

.main-nav { order: 3; width: 100%; padding-block-end: 10px; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--text); text-decoration: none; font-weight: 560; font-size: 1rem;
}
.main-nav a:hover { background: var(--accent-soft); color: var(--accent-ink); }
@media (min-width: 1200px) {
  /* Six entries since the Community section: the full menu from 1200 px, the compact menu below. One line at normal text size; with enlarged text the header wraps instead of overflowing. */
  .header-inner { flex-wrap: wrap; gap: 0 24px; }
  .main-nav { order: 0; width: auto; padding: 0; margin-inline-start: auto; }
  .main-nav ul { flex-wrap: wrap; justify-content: flex-end; }
}

.lang-switch { position: relative; margin-inline-start: auto; }
@media (min-width: 1200px) { .lang-switch { margin-inline-start: 0; } }
.lang-switch summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  cursor: pointer; list-style: none; font-weight: 560; font-size: .95rem; user-select: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { border-color: #C5CCDA; }
.lang-switch[open] summary { border-color: var(--accent); }
.lang-list {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 50;
  min-width: 208px; padding: 6px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.lang-option { display: block; padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.lang-option:hover { background: var(--bg); }
.lang-option[aria-current] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }

.menu-toggle { display: none; }
@media (max-width: 1199.98px) {
  .js .main-nav {
    display: none; position: absolute; top: 100%; inset-inline: 0; width: auto;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px var(--gutter) 16px;
  }
  .js .main-nav.is-open { display: block; }
  .js .main-nav ul { flex-direction: column; flex-wrap: nowrap; }
  .js .main-nav a { min-height: 48px; width: 100%; font-size: 1.0625rem; }
  .js .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--surface); color: var(--text); cursor: pointer;
  }
  .menu-toggle .i-close { display: none; }
  .menu-toggle[aria-expanded="true"] .i-open { display: none; }
  .menu-toggle[aria-expanded="true"] .i-close { display: inline; }
}
@media (max-width: 479.98px) {
  .lang-switch summary { padding: 0 11px; }
  .lang-current { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ------------------------------------------------------------ shared */
.section { padding-block: 64px; }
@media (min-width: 900px) { .section { padding-block: 104px; } }
.section-title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); font-weight: 780; max-width: 22em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink);
  font-weight: 650; font-size: .9rem; line-height: 1.4;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .dot { animation: pulse 2.6s ease-in-out infinite; }
  @keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(20, 91, 255, .35); } 50% { box-shadow: 0 0 0 6px rgba(20, 91, 255, 0); } }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 24px;
  border-radius: 999px; font-weight: 650; font-size: 1rem; line-height: 1.3; text-decoration: none; text-align: center;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: #CDD3DF; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-ink); }

/* screenshots */
.shot { margin: 0; min-width: 0; }
.zoom {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  background: #F5F6FA; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text);
  text-decoration: none; cursor: zoom-in;
}
.zoom img { width: 100%; }
.zoom-hint {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 12px;
  border-top: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font-size: .85rem; font-weight: 600; line-height: 1.3; text-align: center;
}
.zoom-hint svg { flex: none; }
.zoom:hover .zoom-hint, .zoom:focus-visible .zoom-hint { color: var(--accent-ink); }
.zoom:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }
.shot figcaption { margin-top: 12px; font-size: .9rem; line-height: 1.5; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.shot .cap { color: var(--text); font-weight: 600; }
.tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px; background: #EAEDF4; color: var(--muted);
  font-size: .78rem; font-weight: 560; line-height: 1.6;
}

/* ------------------------------------------------------------ hero */
.hero { padding-block: 40px 64px; background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; container-type: inline-size; }
/* No automatic hyphenation in the opening title: words stay whole. overflow-wrap (inherited rule) remains the emergency
   break for long words with enlarged text on narrow screens. */
.hero h1 { font-size: clamp(2.35rem, 1.3rem + 4.4vw, 4.4rem); font-weight: 820; max-width: 13em; hyphens: manual; }
.lead { font-size: 1.15em; color: var(--muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-shot { position: relative; width: 100%; max-width: 440px; justify-self: center; }
.hero-shot::before {
  content: ""; position: absolute; inset: -12% -16% 6% -16%; z-index: -1;
  background: radial-gradient(closest-side, rgba(20, 91, 255, .16), rgba(20, 91, 255, 0));
}
.hero-shot .zoom { border-radius: 28px; }
.hero-shot figcaption { font-size: .86rem; }
.hero-shot .cap { font-weight: 500; color: var(--muted); }
@media (min-width: 900px) {
  .hero { padding-block: 72px 112px; }
  .hero-grid { grid-template-columns: 55fr 45fr; gap: 56px; }
  .hero-shot { max-width: 480px; justify-self: end; }
  /* Two columns: the title size is also bounded by its column (12cqi). The longest measured title word is
     es "entrenamiento," at 7.25 x font-size, so it uses at most ~87 % of the column; fr "entrainement," ~80 %. */
  .hero h1 { font-size: min(clamp(2.35rem, 1.3rem + 4.4vw, 4.4rem), 12cqi); }
}

/* ------------------------------------------------------------ journey */
.steps { display: grid; gap: 64px; margin-top: 40px; counter-reset: step; }
.step { display: grid; gap: 28px; align-items: center; }
.step-copy { display: grid; gap: 14px; max-width: 34em; }
.step-copy h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 760; }
.step-copy p:not(.step-tag) { color: var(--muted); }
.step-tag { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-ink); font-weight: 700; font-size: .95rem; }
.num {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 32px; padding: 0 8px;
  border-radius: 10px; background: var(--accent-soft); font-variant-numeric: tabular-nums; font-size: .9rem; direction: ltr;
}
.duo { display: grid; gap: 24px; align-items: start; }
@media (min-width: 640px) { .duo { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 900px) {
  .steps { gap: 112px; margin-top: 64px; }
  .step { grid-template-columns: 5fr 7fr; gap: 64px; }
  .step-alt { grid-template-columns: 7fr 5fr; }
  .step-alt .step-copy { order: 2; }
  .step-media { min-width: 0; }
  .step:not(.step-alt) .step-media:not(.duo) { max-width: 520px; justify-self: end; width: 100%; }
  .step-alt .step-media { max-width: 560px; justify-self: start; width: 100%; }
}

/* ------------------------------------------------------------ progression */
.progression { background: var(--surface); border-block: 1px solid var(--line); }
.progression-grid { display: grid; gap: 36px; align-items: center; }
.progression-copy { display: grid; gap: 18px; }
.progression-copy > p:not(.note) { color: var(--muted); max-width: 34em; }
.note { font-size: .92rem; color: var(--muted); border-inline-start: 3px solid #C9D7FF; padding-inline-start: 14px; max-width: 34em; }
.shot-wide .zoom { border-radius: 26px; }
@media (min-width: 900px) { .progression-grid { grid-template-columns: 5fr 6fr; gap: 72px; } }

/* ------------------------------------------------------------ demos */
.media-note { margin-top: 16px; color: var(--muted); max-width: 44em; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; margin-top: 36px; }
.gallery .zoom { border-radius: 18px; }
.gallery .shot figcaption { font-size: .86rem; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.clips { display: grid; gap: 28px; margin-top: 48px; }
@media (min-width: 720px) { .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.clip { margin: 0; }
.clip video { width: 100%; border-radius: var(--radius); background: #000; }
.clip figcaption { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .9rem; }
.transcript { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.transcript summary { cursor: pointer; font-weight: 600; color: var(--text); }

/* ------------------------------------------------------------ beta (dark) */
.beta { background: var(--dark); color: var(--on-dark); }
.beta a { color: var(--accent-on-dark); }
.beta :focus-visible { outline-color: var(--accent-on-dark); }
.beta-grid { display: grid; gap: 40px; }
.beta-copy { display: grid; gap: 20px; justify-items: start; }
.beta-copy > p:not(.eyebrow) { color: var(--on-dark-muted); max-width: 34em; font-size: 1.08em; }
.eyebrow-dark { background: rgba(157, 187, 255, .14); color: var(--accent-on-dark); }
.eyebrow-dark .dot { background: var(--accent-on-dark); }
.channels-label { font-size: .95rem; font-weight: 650; color: var(--on-dark-muted); letter-spacing: 0; margin-bottom: 14px; }
.channels { display: grid; gap: 12px; container-type: inline-size; }
.channels li {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center;
  padding: 18px 20px; border-radius: 18px; background: var(--dark-raised); border: 1px solid rgba(255, 255, 255, .09);
}
.ch-name { font-weight: 700; font-size: 1.12rem; }
.ch-type { grid-column: 1; color: var(--on-dark-muted); font-size: .95rem; }
.ch-status {
  grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); color: var(--on-dark); font-size: .85rem; font-weight: 600;
}
.ch-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #F5B83D; }
/* The status pill goes under the channel name when the list itself is narrow (rem: follows enlarged text). */
@container (max-width: 26rem) {
  .channels li { grid-template-columns: minmax(0, 1fr); }
  .ch-status { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; white-space: normal; }
}
.community {
  display: grid; gap: 10px; justify-items: start; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .12); max-width: 46em;
}
.community h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: 0; }
.community p:not(.badge) { color: var(--on-dark-muted); font-size: .98rem; }
.badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .26);
  font-size: .8rem; font-weight: 650; color: var(--on-dark); line-height: 1.6;
}
.badge-light { border-color: #CDD3DF; color: var(--muted); }
@media (min-width: 900px) {
  .beta-grid { grid-template-columns: 6fr 5fr; column-gap: 80px; row-gap: 56px; align-items: start; }
  .community { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------ about / faq */
.about { background: var(--surface); border-bottom: 1px solid var(--line); }
.about-body { margin-top: 22px; font-size: clamp(1.12rem, 1rem + .6vw, 1.4rem); line-height: calc(var(--lh) + .05); max-width: 36em; }
.faq-list { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; min-height: 48px;
  cursor: pointer; list-style: none; font-weight: 650; font-size: 1.06em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-inline-end: 6px;
  border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: rotate(45deg) translateY(-3px);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 40em; }

/* ------------------------------------------------------------ info pages */
.info { min-height: 50vh; }
.info .narrow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; justify-items: start; }
.info .narrow > * { max-width: 100%; }
.info h1, .info h2 { overflow-wrap: anywhere; }
.info h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 800; }
.info-status { font-size: 1.2rem; font-weight: 700; letter-spacing: 0; }
.info p:not(.badge) { color: var(--muted); max-width: 38em; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 48px 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand { display: grid; gap: 12px; justify-items: start; color: var(--muted); }
.brand-footer img { height: 34px; }
.footer-links { display: grid; gap: 4px; }
.footer-links a, .footer-langs a { color: var(--text); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.footer-links a:hover, .footer-langs a:hover { color: var(--accent-ink); text-decoration: underline; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.footer-langs a { color: var(--muted); }
.footer-langs a[aria-current] { color: var(--text); font-weight: 650; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 4fr 3fr 5fr; align-items: start; } }

/* ------------------------------------------------------------ lightbox */
.lightbox {
  width: min(92vw, 560px); max-width: none; max-height: 94vh; max-height: 94dvh; padding: 0; border: 0; border-radius: 22px;
  background: var(--surface); color: var(--text); box-shadow: 0 24px 80px rgba(0, 0, 0, .4); overflow: auto;
}
.lightbox::backdrop { background: rgba(9, 13, 22, .8); }
.lightbox-inner { display: grid; gap: 12px; padding: 12px 12px 16px; }
.lightbox-close {
  justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
}
.lightbox-close:hover { border-color: var(--accent); }
.lightbox-img { width: auto; max-width: 100%; max-height: calc(94vh - 150px); max-height: calc(94dvh - 150px); margin-inline: auto; border-radius: 14px; border: 1px solid var(--line); }
.lightbox-caption { text-align: center; color: var(--muted); font-size: .92rem; padding-inline: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Long words (de, ru) at 200 % text: let grid items shrink and break words only when they cannot fit. */
.hero-grid > *, .step > *, .progression-grid > *, .beta-grid > *, .footer-grid > *, .gallery > li, .duo > * { min-width: 0; }
.shot figcaption > * { min-width: 0; overflow-wrap: anywhere; }

/* ------------------------------------------------------------ why Hypertrophy Coach */
.why { background: var(--surface); border-block: 1px solid var(--line); }
.why-head { display: grid; gap: 20px; }
.why-heading { display: grid; gap: 14px; }
.why-kicker { font-size: 1rem; font-weight: 700; color: var(--accent-ink); letter-spacing: 0; line-height: 1.4; }
.why-title { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); font-weight: 820; max-width: 16em; }
.why-body { font-size: 1.12em; color: var(--muted); max-width: 38em; }
.why > .wrap, .pro > .wrap { container-type: inline-size; }
/* Column counts follow the available width in rem, so enlarged text falls back to fewer columns. */
@container (min-width: 56rem) { .why-head { grid-template-columns: 7fr 5fr; column-gap: 64px; align-items: end; } }
.benefits { display: grid; gap: 16px; margin-top: 40px; }
@container (min-width: 58rem) { .benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; } }
.benefit {
  display: flex; flex-direction: column; gap: 12px; padding: 28px 24px 20px;
  border-radius: 24px; background: var(--bg); border: 1px solid var(--line);
}
.benefit-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 16px; background: var(--accent-soft); color: var(--accent);
}
.benefit h3, .pro-benefit h3 { font-size: 1.25rem; font-weight: 760; letter-spacing: 0; line-height: 1.3; }
.benefit p, .pro-benefit p, .pro-point p { color: var(--muted); }
.benefit-link {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; font-weight: 650; text-decoration: none;
}
.benefit-link:hover { text-decoration: underline; }
.arrow { flex: none; }
[dir="rtl"] .arrow { transform: scaleX(-1); }

.pro-mark {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; line-height: 1.6;
  background: var(--accent); color: #fff;
}
.pro-teaser {
  margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: 28px; border-radius: 26px; color: #fff;
  background: radial-gradient(120% 160% at 0% 0%, #1D4FE0 0%, #12309A 50%, #0D1730 100%);
}
[dir="rtl"] .pro-teaser { background: radial-gradient(120% 160% at 100% 0%, #1D4FE0 0%, #12309A 50%, #0D1730 100%); }
.pro-teaser-copy { display: grid; gap: 10px; justify-items: start; flex: 1 1 22rem; min-width: 0; }
.pro-teaser .pro-mark { background: rgba(255, 255, 255, .18); }
.pro-teaser h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 780; letter-spacing: 0; }
.pro-teaser p { color: #DCE5FF; max-width: 42em; }
.pro-teaser :focus-visible { outline-color: #fff; }
.btn { gap: 8px; }
.btn-light { background: #fff; color: #0D1730; }
.btn-light:hover { background: var(--accent-soft); }

/* ------------------------------------------------------------ Pro */
.pro { background: var(--bg); }
.pro-head { display: grid; gap: 18px; justify-items: start; max-width: 52rem; }
.pro-kicker { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 700; color: var(--accent-ink); }
.pro-lead { font-size: 1.12em; color: var(--muted); max-width: 40em; }
.badge-pro { border-color: #C9D3E6; color: var(--muted); background: var(--surface); }
.pro-benefits { display: grid; gap: 16px; margin-top: 40px; }
@container (min-width: 58rem) { .pro-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; } }
.pro-benefit {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px 24px 26px;
  border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
}
.pro-benefit::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px; background: linear-gradient(90deg, #145BFF, #7FA2FF); }
.pb-visual {
  align-self: flex-start;
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  border-radius: 16px; background: var(--accent-soft); color: var(--accent);
}
.pb-count { width: auto; height: 56px; gap: 10px; padding: 0 16px; font-size: 2.1rem; font-weight: 820; line-height: 1; }
.pb-from { color: #7A8396; }
.pb-to { color: var(--accent); font-size: 1.15em; }
.pro-details { display: grid; gap: 24px; margin-top: 40px; }
@container (min-width: 50rem) { .pro-details { grid-template-columns: 1fr 1fr; gap: 48px; } }
.pro-point h3 { font-size: 1.1rem; font-weight: 750; letter-spacing: 0; margin-bottom: 8px; }
.compare-wrap {
  margin-top: 40px; overflow-x: auto; border-radius: 22px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow);
}
.compare-wrap:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.compare { width: 100%; border-collapse: collapse; font-size: .98rem; }
.compare caption { caption-side: top; text-align: start; padding: 20px 20px 8px; font-weight: 750; font-size: 1.05rem; }
.compare th, .compare td { padding: 14px 16px; text-align: start; border-top: 1px solid var(--line); vertical-align: middle; }
.compare thead th, .compare thead td { border-top: 0; font-size: .9rem; color: var(--muted); font-weight: 700; }
.compare tbody th { font-weight: 600; }
.compare .row-key th { font-weight: 700; }
.compare .col-pro { background: var(--accent-soft); }
.compare thead .col-pro { color: var(--accent-ink); }
.compare td svg { display: inline-block; vertical-align: -4px; margin-inline-end: 6px; }
.ic-check { color: var(--accent); }
.cell-no { color: #5C6474; }
.pro-foot { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.pro-foot p { color: var(--muted); max-width: 40em; }
.pro-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .92rem; color: var(--muted); max-width: 34em; }
.pro-note a { font-weight: 650; }
.why-head > *, .benefits > *, .pro-benefits > *, .pro-details > * { min-width: 0; }
/* Comparison: stacked rows when the table has little room in rem (phones, enlarged text). */
@container (max-width: 34rem) {
  .compare-wrap { overflow-x: visible; }
  .compare, .compare tbody, .compare th, .compare td, .compare caption { display: block; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .compare tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
  .compare tbody th { grid-column: 1 / -1; border-top: 0; padding-bottom: 6px; }
  .compare td { border-top: 0; padding-top: 10px; }
  .compare th, .compare td, .compare caption { overflow-wrap: anywhere; }
  .compare td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: .78rem; font-weight: 700; color: var(--muted); }
  .compare td.col-pro::before { color: var(--accent-ink); }
}

/* ------------------------------------------------------------ contact */
.contact-lead { font-size: 1.12em; max-width: 36em; }
.contact-card { container-type: inline-size;
  width: 100%; display: grid; gap: 8px; justify-items: start; padding: 24px 26px;
  border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.contact-label { font-size: .85rem; font-weight: 700; color: var(--muted); }
.contact-email {
  font-size: clamp(1.25rem, 1rem + 1.4vw, 1.9rem); font-weight: 760; line-height: 1.3;
  color: var(--accent-ink); text-underline-offset: .2em; overflow-wrap: anywhere; max-width: 100%;
}
.contact-email:hover { color: var(--accent); }
.contact-note { font-size: .9rem; }
.contact-about { display: grid; gap: 12px; margin-top: 12px; padding-top: 28px; border-top: 1px solid var(--line); width: 100%; }
.contact-about h2 { font-size: 1.25rem; font-weight: 750; letter-spacing: 0; }
.contact-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; margin: 0; }
.contact-facts dt { font-weight: 650; }
.contact-facts dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.contact .actions { margin-top: 8px; }
.footer-mail { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.footer-mail:hover { color: var(--accent-ink); text-decoration: underline; }
/* The domain part stays on one line when the card can hold it at the current text size (about 12.2em of the address font); otherwise the address wraps instead of shrinking. */
@container (min-width: 16.5rem) { .contact-email .nw { white-space: nowrap; } }

/* ------------------------------------------------------------ legal notice */
.legal h2 { font-size: 1.2rem; font-weight: 750; letter-spacing: 0; margin-top: 16px; }
.legal .legal-identity strong { color: var(--text); }
.legal-facts { width: 100%; }
.legal-facts a { overflow-wrap: anywhere; }
/* Term / value pairs wrap onto two lines when space runs short (long terms, enlarged text). */
.legal-facts { display: grid; gap: 6px; grid-template-columns: none; }
.legal-facts .fact { display: flex; flex-wrap: wrap; gap: 0 16px; min-width: 0; }
.legal-facts dt { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.legal-facts dd { flex: 1 1 10rem; min-width: 0; overflow-wrap: anywhere; }
/* Telephone and SIRET numbers never break inside the number. */
.legal .nobreak { white-space: nowrap; }
/* Screenshot not delivered yet in the page language: explicit frame, no image, never another language. */
.pending-frame { display: grid; place-items: center; width: 100%; padding: 16px; border: 2px dashed #B7BFCE; border-radius: var(--radius); background: #F5F6FA; color: var(--muted); font-size: .95rem; font-weight: 600; line-height: 1.4; text-align: center; overflow-wrap: anywhere; }
.hero-shot .pending-frame { border-radius: 28px; }
.media-pending { margin-top: 16px; color: var(--muted); font-weight: 600; }
/* Home narrative carried by MHA SOFTWARE: short paragraphs, the three moments as a list (logical properties for RTL). */
.story { background: var(--surface); border-bottom: 1px solid var(--line); }
.story-kicker { margin: 0 0 8px; font-size: .9rem; font-weight: 700; letter-spacing: .06em; color: var(--accent-ink); }
.story-text { margin-top: 20px; max-width: 38em; font-size: 1.05rem; }
.story-text p { margin: 0 0 16px; }
.story-questions { font-weight: 600; color: var(--text); }
.story-answer { font-size: 1.2rem; font-weight: 750; color: var(--text); }
.story-moments { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.story-moments li { padding: 12px 16px; border-inline-start: 4px solid var(--accent); border-radius: 10px; background: var(--accent-soft); overflow-wrap: anywhere; }
.story-beta { font-weight: 600; margin-bottom: 0; }
/* Photographic illustrations (fictional people, AI-generated): breathing space around the narrative; never mirrored in RTL. */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--line); }
.story-photo { margin: 24px 0; }
.photo-band { padding-block: 48px; }
.photo-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .photo-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.photo-wide { max-width: 920px; margin-inline: auto; }
/* ADN narrative (2026-10-20): discipline line, four pillars, disciplines with photos, signatures. */
.hero-disciplines { margin: 0; font-size: .95rem; font-weight: 700; letter-spacing: .04em; color: var(--accent-ink); }
.story-ambition { font-weight: 650; color: var(--text); }
@container (min-width: 58rem) { .benefits.benefits-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 76rem) { .benefits.benefits-four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.disciplines { background: var(--surface); border-top: 1px solid var(--line); }
.discipline-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .discipline-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.discipline { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.discipline .photo { margin-bottom: 6px; }
.discipline h3 { font-size: 1.25rem; font-weight: 760; line-height: 1.3; letter-spacing: 0; overflow-wrap: anywhere; }
.discipline p { color: var(--muted); }
.progression-signature { font-weight: 650; color: var(--text) !important; border-inline-start: 4px solid var(--accent); padding-inline-start: 14px; }
.demos-lead { margin-top: 16px; max-width: 44em; font-size: 1.05rem; }
.pro-photo { margin-block: 32px 8px; }
.footer-signature { color: var(--text); font-weight: 600; max-width: 26em; }
.contact-headline { font-size: 1.3rem; font-weight: 760; color: var(--text); }
/* Long words of the technical FAQ questions may break at 200 % text on small screens. */
.faq summary { overflow-wrap: anywhere; }
/* Community and complete demonstration (2026-10-20): journey chips, two groups of app views, Community section. */
.hero-community { margin: 0; }
.hero-community a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 650; color: var(--accent-ink); text-underline-offset: .2em; overflow-wrap: anywhere; }
.demo-path ol { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: path; }
.demo-path li { counter-increment: path; min-width: 0; max-width: 100%; }
.demo-path a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 8px 16px 8px 8px;
  border: 1px solid #CDD3DF; border-radius: 999px; background: var(--surface); color: var(--text);
  font-weight: 600; font-size: .95rem; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere;
}
[dir="rtl"] .demo-path a { padding: 8px 8px 8px 16px; }
.demo-path a::before {
  content: counter(path); flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink); font-size: .85rem; font-weight: 700;
}
.demo-path a:hover { border-color: var(--accent); color: var(--accent-ink); }
.demo-group { margin-top: 56px; }
.demo-group-title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); font-weight: 760; line-height: 1.3; letter-spacing: 0; color: var(--text); }
.demo-group-title .num { flex: none; color: var(--accent-ink); }
.demo-group-lead { margin-top: 10px; color: var(--muted); max-width: 44em; }
.demo-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
@media (min-width: 720px) { .demo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; } }
@media (min-width: 1100px) { .demo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.demo-item { min-width: 0; scroll-margin-top: 96px; }
.demo-shot .zoom { border-radius: 18px; }
.demo-shot figcaption { display: grid; gap: 4px; font-size: .88rem; }
.demo-shot figcaption .tag { justify-self: start; }
.demo-body { color: var(--muted); }
.demo-frame { aspect-ratio: 1344 / 2992; border-radius: 18px; font-size: .9rem; }
.community-section { background: var(--surface); border-block: 1px solid var(--line); }
.community-grid { display: grid; gap: 40px; }
.community-grid > * { min-width: 0; }
.community-copy { display: grid; gap: 16px; justify-items: start; max-width: 42em; }
.community-kicker { font-size: 1.05rem; color: var(--accent-ink); }
.community-lead { font-size: 1.1rem; color: var(--text); }
.community-copy > p:not(.community-lead):not(.badge):not(.community-kicker):not(.note) { color: var(--muted); }
.community-steps-title { margin-top: 8px; font-size: 1.2rem; font-weight: 760; letter-spacing: 0; }
.community-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; width: 100%; counter-reset: cstep; }
.community-steps li { counter-increment: cstep; position: relative; padding: 14px 16px; padding-inline-start: 58px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.community-steps li::before {
  content: counter(cstep); position: absolute; inset-inline-start: 16px; top: 14px; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .9rem; font-weight: 700;
}
.community-steps h4 { margin: 0 0 4px; font-size: 1.02rem; font-weight: 720; line-height: 1.35; overflow-wrap: anywhere; }
.community-steps p { color: var(--muted); font-size: .98rem; }
.community-culture { display: grid; gap: 8px; width: 100%; padding-top: 20px; border-top: 1px solid var(--line); }
.community-culture h3 { font-size: 1.15rem; font-weight: 720; letter-spacing: 0; }
.community-culture p { color: var(--muted); }
.community-views { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; align-self: start; }
@media (min-width: 720px) { .community-views { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .community-views { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .community-grid { grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; } }
/* Product S2 captures (2026-10-21): tall crops of the opening, steps and Progression stay readable without dominating. */
.shot-portrait { width: 100%; max-width: 420px; justify-self: center; }
.progression .shot-portrait { max-width: 440px; }
@media (min-width: 900px) { .step-alt .step-media .shot-portrait, .step .step-media .shot-portrait { margin-inline: auto; } }
.demo-provenance { margin-top: 36px; max-width: 52em; }
.beta-copy .beta-availability { font-weight: 600; color: var(--on-dark); }
.beta a.btn-light { color: #0D1730; margin-top: 4px; }
/* Four planned Pro benefits (routines added 2026-10-21): two columns, then four on wide containers. */
@container (min-width: 58rem) { .pro-benefits.pro-benefits-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 76rem) { .pro-benefits.pro-benefits-four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Five planned Pro benefits (HC collection added 2026-11-01): one column, two columns with the fifth card across, then three above two. */
@container (min-width: 36rem) { .pro-benefits.pro-benefits-five { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pro-benefits-five > :last-child { grid-column: 1 / -1; } }
@container (min-width: 58rem) { .pro-benefits.pro-benefits-five { grid-template-columns: repeat(6, minmax(0, 1fr)); } .pro-benefits-five > .pro-benefit { grid-column: span 2; } .pro-benefits-five > .pro-benefit:nth-child(n+4) { grid-column: span 3; } }
.pro-composition { max-width: 46em; padding: 14px 18px; border-inline-start: 4px solid var(--accent); border-radius: 10px; background: var(--accent-soft); color: var(--text); font-weight: 600; }
.compare-notes { margin-top: 16px; display: grid; gap: 6px; max-width: 52em; font-size: .92rem; color: var(--muted); }
/* Future community home preview (v4b, 2026-10-22): never mistaken for a capture; caption outside the image. */
.future-preview .zoom { border-style: dashed; border-color: #9DB4E8; }
.future-preview .cap::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 8px; border-radius: 50%; background: #F5B83D; vertical-align: middle; }
.community-future { padding: 12px 16px; border-inline-start: 3px solid #F5B83D; border-radius: 8px; background: #FFF8E8; color: var(--text) !important; }
/* Five-step journey (v5, 2026-10-22): one section, five numbered parts, each with its title, short introduction and its own screens. */
.parcours-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 72px; }
.parcours-step { min-width: 0; padding-top: 40px; border-top: 1px solid var(--line); }
.parcours-step:first-child { border-top: 0; padding-top: 8px; }
.parcours-head { display: grid; gap: 10px; justify-items: start; max-width: 46em; }
.parcours-title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 780; line-height: 1.25; }
.parcours-title .num { flex: none; color: var(--accent-ink); }
.parcours-intro { color: var(--muted); font-size: 1.05rem; }
.parcours-step .demo-grid { margin-top: 24px; }
.parcours-complement { min-width: 0; align-self: start; }
.parcours-complement .zoom { border-radius: 18px; opacity: .92; }
.parcours-complement figcaption { font-size: .82rem; }
.parcours-hub { display: grid; gap: 24px; margin-top: 24px; align-items: start; }
.parcours-hub > * { min-width: 0; }
.hub-shot { width: 100%; max-width: 420px; }
.hub-shot .zoom { border-radius: 22px; }
.hub-shot figcaption { display: grid; gap: 4px; }
.hub-shot .tag { justify-self: start; }
.hub-note { padding: 10px 12px; border-inline-start: 3px solid #F5B83D; border-radius: 8px; background: #FFF8E8; color: var(--text) !important; font-size: .86rem; }
.hub-copy { display: grid; gap: 16px; max-width: 34em; }
@media (min-width: 900px) { .parcours-hub { grid-template-columns: 420px minmax(0, 1fr); gap: 48px; } }
.parcours-sub { margin: 36px 0 0; font-size: 1.15rem; font-weight: 750; }
.parcours-step .community-grid { margin-top: 24px; }
.parcours-step .community-steps h5 { margin: 0 0 4px; font-size: 1.02rem; font-weight: 720; line-height: 1.35; overflow-wrap: anywhere; }
.parcours-step .community-culture h4 { font-size: 1.15rem; font-weight: 720; }
.parcours-title > span:last-child, .parcours h4, .parcours h5, .parcours-head > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.zoom-hint > span { min-width: 0; overflow-wrap: anywhere; }
/* v5 corrections: layouts follow the content. One column on small screens; the lone cockpit is highlighted;
   preparation and history are duos; the four analyses are large enough to read their main values. */
.parcours-step .demo-grid.grid-solo, .parcours-step .demo-grid.grid-duo, .parcours-step .demo-grid.grid-analyses { grid-template-columns: minmax(0, 1fr); gap: 32px; }
.parcours-step .grid-solo { justify-items: center; }
.parcours-step .grid-solo .demo-item { width: 100%; max-width: 460px; }
.parcours-step .grid-solo .zoom { box-shadow: 0 2px 4px rgba(20, 25, 35, .08), 0 28px 60px -20px rgba(20, 91, 255, .35); border-color: #BFD0FF; }
.parcours-step .grid-solo figcaption { font-size: 1rem; }
.parcours-step .grid-duo .demo-shot figcaption, .parcours-step .grid-analyses .demo-shot figcaption { font-size: .95rem; }
.parcours-step .grid-prepare .parcours-complement { max-width: 300px; }
@media (min-width: 720px) {
  .parcours-step .demo-grid.grid-duo { grid-template-columns: repeat(2, minmax(0, 372px)); gap: 40px 32px; justify-content: start; }
  .parcours-step .demo-grid.grid-prepare { grid-template-columns: minmax(0, 372px) minmax(0, 240px); }
  .parcours-step .demo-grid.grid-analyses { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 32px; }
}
@media (min-width: 1232px) { .parcours-step .demo-grid.grid-analyses { grid-template-columns: repeat(2, minmax(0, 560px)); justify-content: start; } }
/* Language list: scrolls inside when the window is short (its height is set by site.js); no scroll chaining to the page. */
.lang-list { overflow-y: auto; overscroll-behavior: contain; }
.lang-option:focus-visible { outline-offset: -3px; }
