/* simufit.app — marketing site. Colours and type follow docs/brand/brandbook.md (tokens mirror web/src/styles.css). */

@font-face { font-family: Vazirmatn; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/fonts/vazirmatn-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Vazirmatn; font-style: normal; font-display: swap; font-weight: 700; src: url(/assets/fonts/vazirmatn-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Vazirmatn; font-style: normal; font-display: swap; font-weight: 800; src: url(/assets/fonts/vazirmatn-arabic-800-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Vazirmatn; font-style: normal; font-display: swap; font-weight: 900; src: url(/assets/fonts/vazirmatn-arabic-900-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Vazirmatn; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/fonts/vazirmatn-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Vazirmatn; font-style: normal; font-display: swap; font-weight: 700; src: url(/assets/fonts/vazirmatn-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Vazirmatn; font-style: normal; font-display: swap; font-weight: 800; src: url(/assets/fonts/vazirmatn-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Vazirmatn; font-style: normal; font-display: swap; font-weight: 900; src: url(/assets/fonts/vazirmatn-latin-900-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --brand-navy-600: #3d4f70; --brand-navy-700: #2b3a55; --brand-navy-800: #1b2538; --brand-navy-900: #111827;
  --brand-ember-200: #ffd28a; --brand-ember-300: #ffa24d; --brand-ember-400: #ff8a1a; --brand-ember-500: #ff7a1f;
  --brand-ember-600: #f0590e; --brand-ember-700: #b93d0a; --brand-ink: #11141a; --brand-snow: #eef0f4;

  --bg: #f4f5f8; --surface: #ffffff; --surface-2: #f0f2f6; --surface-3: #e8ebf1; --border: #e3e6ec;
  --text: #11141a; --muted: #5a6376; --placeholder: #a3aab8;
  --accent: #f0590e; --accent-2: #ff8a1a; --accent-ink: #1a0b02; --accent-soft: #fff0e6; --accent-text: #b93d0a;
  --accent-line: color-mix(in srgb, var(--accent) 35%, transparent);
  --ok: #0c7a3c; --ok-soft: #e7f7ee; --ok-ink: #fff;
  --info: #2160e0; --info-soft: #e9f0ff; --warn: #975a00; --warn-soft: #fff6e0;
  --danger: #c8291d; --danger-soft: #fdecea;
  --hero: linear-gradient(150deg, var(--brand-navy-700), var(--brand-navy-800) 55%, var(--brand-navy-900));
  --hero-glow: color-mix(in srgb, var(--brand-ember-400) 22%, transparent);
  --hero-ink: #fff;
  --shadow: 0 1px 2px rgba(27, 37, 56, .06), 0 6px 18px rgba(27, 37, 56, .06);
  --shadow-lg: 0 2px 6px rgba(27, 37, 56, .08), 0 24px 60px rgba(27, 37, 56, .14);
  --header-bg: color-mix(in srgb, var(--bg) 84%, transparent);

  --radius-sm: 12px; --radius: 18px; --radius-lg: 24px; --radius-btn: 14px;
  --pad: 16px; --tap: 44px; --wrap: 1160px;
  --font: Vazirmatn, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0e1014; --surface: #171a21; --surface-2: #20242d; --surface-3: #282d38; --border: #2a2f3a;
    --text: #eef0f4; --muted: #9aa1ae; --placeholder: #5d6472;
    --accent: #ff7a1f; --accent-2: #ffa24d; --accent-soft: #2a1a0f; --accent-text: #ff7a1f;
    --ok: #3ccf91; --ok-soft: #10261c; --ok-ink: #04140c; --info: #7aa7ff; --info-soft: #121d33;
    --warn: #ffc65c; --warn-soft: #2b2210; --danger: #ff6b6b; --danger-soft: #2c1517;
    --hero: linear-gradient(150deg, #26324a, #1a2233 55%, #141a26);
    --shadow: none; --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0e1014; --surface: #171a21; --surface-2: #20242d; --surface-3: #282d38; --border: #2a2f3a;
  --text: #eef0f4; --muted: #9aa1ae; --placeholder: #5d6472;
  --accent: #ff7a1f; --accent-2: #ffa24d; --accent-soft: #2a1a0f; --accent-text: #ff7a1f;
  --ok: #3ccf91; --ok-soft: #10261c; --ok-ink: #04140c; --info: #7aa7ff; --info-soft: #121d33;
  --warn: #ffc65c; --warn-soft: #2b2210; --danger: #ff6b6b; --danger-soft: #2c1517;
  --hero: linear-gradient(150deg, #26324a, #1a2233 55%, #141a26);
  --shadow: none; --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-block-start: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-inline-size: 100%; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); font-weight: 900; letter-spacing: -.015em; }
h3 { font-size: 1.12rem; font-weight: 800; }
[lang='fa'] h1, [lang='fa'] h2, [lang='fa'] h3 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; inset-block-start: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 800; }
.skip:focus { inset-block-start: 12px; }
.ic { inline-size: 1.25em; block-size: 1.25em; flex: none; }
[dir='rtl'] .flip-rtl { transform: scaleX(-1); }
.wrap { inline-size: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
@media (min-width: 720px) { :root { --pad: 28px; } }
.num, .tabular { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-block-size: 50px;
  padding: 12px 22px; border-radius: var(--radius-btn); font-weight: 800; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease-out, box-shadow .15s ease-out, background .15s;
  font-family: inherit; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .ic { inline-size: 1.1em; block-size: 1.1em; }
.btn-sm { min-block-size: var(--tap); padding: 8px 16px; font-size: .94rem; }
.btn-primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); box-shadow: 0 8px 22px var(--accent-line); }
.btn-primary:hover { box-shadow: 0 12px 28px var(--accent-line); }
.btn-secondary { background: var(--accent-soft); color: var(--accent-text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-hero { background: #fff; color: var(--brand-navy-800); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.btn-hero-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-hero-ghost:hover { background: rgba(255, 255, 255, .14); }
.site-footer .btn-hero-ghost { color: var(--text); background: var(--surface-2); border-color: var(--border); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 520px) { .hero-card .btn-row .btn { flex: 1 1 100%; } .btn { white-space: normal; text-align: center; } }
.icon-btn {
  display: inline-grid; place-items: center; inline-size: var(--tap); block-size: var(--tap); border-radius: 12px; border: 0;
  background: transparent; color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-3); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 50; background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-block-end: 1px solid transparent; transition: background .2s, border-color .2s, box-shadow .2s;
  padding-block-start: env(safe-area-inset-top);
}
.site-header.scrolled { background: color-mix(in srgb, var(--surface) 92%, transparent); border-color: var(--border); box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 16px; min-block-size: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--text); flex: none; }
.brand .mark { border-radius: 22.6%; }
.wordmark { font-weight: 900; font-size: 1.4rem; letter-spacing: -.02em; line-height: 1; }
[lang='fa'] .wordmark { letter-spacing: 0; }
.wm-2 { color: var(--accent); }
.main-nav { margin-inline-start: auto; }
.main-nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: flex; align-items: center; min-block-size: var(--tap); padding: 8px 12px; border-radius: 10px; color: var(--text); font-weight: 700; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current='page'] { background: var(--surface-2); }
.main-nav a[aria-current='page'] { color: var(--accent-text); }
.has-sub { position: relative; }
.sub {
  position: absolute; inset-inline-start: -8px; inset-block-start: 100%; min-inline-size: 260px; list-style: none; margin: 0; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease-out;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { gap: 10px; font-weight: 700; }
.sub .ic { color: var(--accent-text); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.capsule { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 14px; background: var(--surface-2); }
.lang-menu { position: relative; }
.lang-menu > summary {
  display: flex; align-items: center; gap: 4px; block-size: 38px; padding-inline: 8px 6px; border-radius: 10px; list-style: none; cursor: pointer;
  color: var(--text); font-weight: 800; font-size: .86rem; user-select: none;
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover, .lang-menu[open] > summary { background: var(--surface); box-shadow: var(--shadow); }
.lang-menu > summary .ic { inline-size: 18px; block-size: 18px; color: var(--muted); }
.lang-menu .lm-chev, [dir='rtl'] .lang-menu .lm-chev { inline-size: 14px; block-size: 14px; transform: rotate(90deg); transition: transform .18s; }
.lang-menu[open] .lm-chev, [dir='rtl'] .lang-menu[open] .lm-chev { transform: rotate(-90deg); }
.lang-list {
  position: absolute; inset-inline-end: -3px; inset-block-start: calc(100% + 8px); z-index: 60; min-inline-size: 168px; list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.lang-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-block-size: var(--tap); padding-inline: 12px; border-radius: 10px;
  color: var(--text); font-weight: 700; text-decoration: none;
}
.lang-list a:hover { background: var(--surface-2); }
.lang-list a[aria-current='true'] { background: var(--surface-2); color: var(--accent-text); }
.lang-list small { color: var(--muted); font-weight: 800; font-size: .75rem; }
.capsule .icon-btn { inline-size: 38px; block-size: 38px; }
.only-dark { display: none; }
:root[data-theme='dark'] .only-dark { display: block; }
:root[data-theme='dark'] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .only-dark { display: block; }
  :root:not([data-theme='light']) .only-light { display: none; }
}
.main-nav .nav-cta { display: none; }
.menu-btn .when-open { display: none; }
.site-header[data-open] .menu-btn .when-open { display: block; }
.site-header[data-open] .menu-btn .when-closed { display: none; }

@media (max-width: 1023px) {
  .main-nav {
    position: fixed; inset: calc(68px + env(safe-area-inset-top)) 0 0; background: var(--bg); padding: 16px var(--pad) calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto; display: none; margin: 0;
  }
  .site-header[data-open] .main-nav { display: block; }
  .main-nav > ul { flex-direction: column; gap: 4px; }
  .main-nav a { font-size: 1.15rem; min-block-size: 52px; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 0; padding-inline-start: 12px; min-inline-size: 0; }
  .sub a { font-size: 1rem; color: var(--muted); }
  .main-nav .nav-cta { display: flex; margin-block-start: 20px; inline-size: 100%; font-size: 1.05rem; }
  .header-cta { display: none; }
  .header-tools { margin-inline-start: auto; }
}
@media (min-width: 1024px) {
  .menu-btn { display: none; }
}
@media (max-width: 400px) {
  .header-inner { gap: 8px; }
  .brand .wordmark { display: none; }
  .lang-menu > summary { padding-inline: 6px 4px; }
}

/* ---------- Hero ---------- */
.hero-surface { background: var(--hero); color: var(--hero-ink); position: relative; isolation: isolate; overflow: hidden; }
.hero-surface::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 88% 8%, var(--hero-glow), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(61, 79, 112, .5), transparent 70%);
}
[dir='rtl'] .hero-surface::before { transform: scaleX(-1); }
.hero { padding-block: 28px 8px; }
.hero-card > *, .article-layout > *, .ex-layout > *, .split > * { min-inline-size: 0; }
.hero-card { border-radius: 32px; padding: clamp(28px, 5vw, 64px); display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-card { grid-template-columns: 1.1fr .9fr; } }
.hero-card h1 { color: #fff; }
.hero-card h1 em { font-style: normal; background: linear-gradient(135deg, var(--brand-ember-200), var(--brand-ember-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-card .lead { color: rgba(255, 255, 255, .82); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-inline-size: 36em; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: .9rem; font-weight: 700; color: rgba(255, 255, 255, .9); margin-block-end: 18px; }
.hero-badge .dot { inline-size: 22px; block-size: 22px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--brand-ember-300), var(--brand-ember-600)); color: var(--accent-ink); }
.hero-badge .dot .ic { inline-size: 14px; block-size: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .78); font-size: .94rem; }
.hero-meta li { display: inline-flex; gap: 6px; align-items: center; }
.hero-meta .ic { color: var(--brand-ember-300); }
.hero-art { position: relative; display: flex; justify-content: center; min-block-size: 420px; }
@media (min-width: 960px) { .hero-art > .phone:first-child { margin-inline-end: 120px; } }
.hero-art > .phone:nth-child(2) { position: absolute; inset-inline-end: -30px; inset-block-end: -40px; transform: rotate(4deg) scale(.82); transform-origin: bottom; }
[dir='rtl'] .hero-art > .phone:nth-child(2) { transform: rotate(-4deg) scale(.82); }
@media (max-width: 959px) { .hero-art > .phone:nth-child(2) { display: none; } }

.page-hero { padding-block: 24px 8px; }
.page-hero .hero-card { border-radius: 28px; }
.page-hero.compact .hero-card { grid-template-columns: 1fr; padding-block: clamp(28px, 4vw, 48px); }
.page-hero.plain { padding-block: 32px 0; }
.page-hero.plain h1 { max-inline-size: 22ch; }
.page-hero.plain .lead { color: var(--muted); font-size: 1.15rem; max-inline-size: 42em; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 8vw, 96px); }
.section.tight { padding-block: clamp(32px, 5vw, 56px); }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-inline-size: 760px; margin-block-end: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { color: var(--muted); font-size: 1.1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 800; color: var(--accent-text); margin-block-end: .6em; }
[lang='fa'] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.lead { font-size: 1.1rem; }
.muted { color: var(--muted); }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid { gap: 20px; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; position: relative; }
.card h3 a { color: inherit; text-decoration: none; }
.card p:last-child { margin-block-end: 0; }
.stretched::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card:has(.stretched):hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card:has(.stretched) { transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s; }
.feature-card p { color: var(--muted); }
.ic-badge { display: inline-grid; place-items: center; inline-size: 48px; block-size: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); margin-block-end: 16px; }
.ic-badge .ic { inline-size: 26px; block-size: 26px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--accent-text); margin-block-start: 12px; }
.more .ic { inline-size: 1em; block-size: 1em; }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.chip .ic { inline-size: 1em; block-size: 1em; }
.chip-accent { background: var(--accent-soft); color: var(--accent-text); }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.checklist { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .ic { color: var(--ok); margin-block-start: .15em; inline-size: 1.25em; block-size: 1.25em; padding: 2px; border-radius: 50%; background: var(--ok-soft); stroke-width: 2.4; }
.hero-surface .checklist .ic { background: rgba(60, 207, 145, .16); color: #3ccf91; }

.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.reverse .split-copy { order: 2; }
}
.split-art { display: flex; justify-content: center; }
.split-copy h2 { margin-block-end: .4em; }
.split-copy > p { color: var(--muted); font-size: 1.08rem; }

/* Logos / trust strip */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--muted); font-weight: 700; padding: 0; margin: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .ic { color: var(--accent-text); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stat dt { color: var(--muted); font-size: .92rem; font-weight: 700; order: 2; }
.stat dd { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat { display: flex; flex-direction: column-reverse; }
.stat dd { background: linear-gradient(135deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 900px) { .steps.row { grid-template-columns: repeat(var(--n, 3), 1fr); } }
.step { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.step h3 { margin-block-end: .3em; }
.step p { color: var(--muted); margin: 0; }
.step-n { flex: none; inline-size: 40px; block-size: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; background: var(--hero); color: #fff; font-size: 1.1rem; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { border-collapse: collapse; inline-size: 100%; font-size: .95rem; }
th, td { padding: 12px 14px; text-align: start; border-block-end: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-2); font-weight: 800; font-size: .88rem; white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-block-end: 0; }
td.num, th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare .yes { color: var(--ok); font-weight: 900; }
.compare .no { color: var(--placeholder); }
.compare .us { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }

/* FAQ */
.faq { display: grid; gap: 10px; max-inline-size: 860px; }
.faq.center { margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; min-block-size: 60px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.04rem; }
.faq summary .ic { transition: transform .2s; color: var(--accent-text); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq-a { padding: 0 20px 18px; color: var(--muted); }
.faq-a p { margin: 0; }

/* CTA band */
.cta-band { border-radius: 32px; padding: clamp(28px, 5vw, 56px); display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.3fr .7fr; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .8); font-size: 1.08rem; max-inline-size: 34em; }
.cta-points { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 22px 0 0; color: rgba(255, 255, 255, .8); font-size: .94rem; }
.cta-points li { display: inline-flex; gap: 6px; align-items: center; }
.cta-points .ic { color: #3ccf91; }
.cta-art { display: flex; justify-content: center; max-block-size: 360px; }
@media (max-width: 899px) { .cta-art { display: none; } }

/* ---------- Phone mock-ups ---------- */
.phone {
  --w: 300px; inline-size: var(--w); max-inline-size: 100%; aspect-ratio: 9 / 19; flex: none; border-radius: 44px; padding: 10px;
  background: linear-gradient(160deg, #2a3142, #0b0e14); box-shadow: 0 30px 80px rgba(8, 12, 22, .45), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
  position: relative; font-size: 12.5px; line-height: 1.4; user-select: none;
}
.phone.sm { --w: 250px; font-size: 11px; }
.phone::before { content: ''; position: absolute; inset-block-start: 20px; inset-inline-start: 50%; translate: -50% 0; inline-size: 82px; block-size: 22px; background: #05070b; border-radius: 99px; z-index: 3; }
[dir='rtl'] .phone::before { translate: 50% 0; }
.phone-screen { block-size: 100%; border-radius: 35px; overflow: hidden; background: #f4f5f8; color: #11141a; padding: 46px 12px 12px; display: flex; flex-direction: column; gap: 9px; }
:root[data-theme='dark'] .phone-screen { background: #0e1014; color: #eef0f4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .phone-screen { background: #0e1014; color: #eef0f4; } }
.phone .ic { inline-size: 1.25em; block-size: 1.25em; }
.m-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 10px; box-shadow: var(--shadow); }
.m-dim { opacity: .75; }
.m-bar { display: flex; justify-content: space-between; align-items: center; padding: 0 2px; }
.m-clock { display: inline-flex; gap: 5px; align-items: center; font-weight: 900; font-size: 1.25em; font-variant-numeric: tabular-nums; }
.m-finish { background: var(--accent-soft); color: var(--accent-text); font-weight: 800; padding: 4px 10px; border-radius: 10px; }
.m-ex-head { display: flex; gap: 8px; align-items: center; }
.m-ex-head b { display: block; font-size: 1.12em; }
.m-ex-head small { color: var(--muted); }
.m-ex-n { inline-size: 24px; block-size: 24px; flex: none; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; }
.m-ring { --p: .5; margin-inline-start: auto; inline-size: 46px; block-size: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 360deg), var(--surface-2) 0); position: relative; }
.m-ring::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent-soft); }
.m-ring span { position: relative; font-weight: 900; color: var(--accent-text); font-variant-numeric: tabular-nums; font-size: .95em; display: grid; justify-items: center; line-height: 1.1; }
.m-ring.big { inline-size: 104px; block-size: 104px; }
.m-ring.big::before { inset: 9px; background: var(--surface); }
.m-ring.big span { font-size: 1.35em; color: var(--text); }
.m-ring.big small { font-size: .62em; color: var(--muted); font-weight: 700; }
.m-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-block: 8px 6px; }
.m-chips span { background: var(--surface-2); border-radius: 99px; padding: 1px 8px; font-weight: 700; font-size: .92em; }
.m-chips .warn { background: var(--warn-soft); color: var(--warn); }
.m-last { color: var(--muted); margin: 0 0 4px; font-size: .95em; }
.m-hint { display: flex; gap: 5px; align-items: center; background: var(--ok-soft); color: var(--ok); border-radius: 10px; padding: 4px 8px; margin: 0 0 8px; font-weight: 700; font-size: .95em; }
.m-set { display: grid; grid-template-columns: 20px 1fr 1fr 34px; gap: 6px; align-items: center; margin-block-start: 5px; }
.m-n { color: var(--muted); font-weight: 800; text-align: center; }
.m-in { background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 10px; block-size: 34px; display: flex; align-items: center; justify-content: center; gap: 3px; font-weight: 800; font-size: 1.1em; font-variant-numeric: tabular-nums; }
.m-in small { font-size: .65em; color: var(--muted); font-weight: 700; }
.m-in.ph { color: var(--placeholder); }
.m-tick { block-size: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--placeholder); }
.m-set.done .m-in { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.m-set.done .m-tick { background: var(--ok); color: var(--ok-ink); }
.m-set.active .m-in:first-of-type { border-color: var(--accent); background: var(--surface); }
.m-hero { border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.m-hero small { color: rgba(255, 255, 255, .75); }
.m-kicker { margin: 4px 0 0; color: var(--brand-ember-300); font-weight: 800; font-size: .9em; }
.m-big { font-size: 1.7em; font-weight: 900; line-height: 1.15; }
.m-meta { margin-block: 4px 10px; }
.m-btn { display: flex; justify-content: center; align-items: center; gap: 6px; background: #fff; color: var(--brand-navy-800); font-weight: 900; border-radius: 12px; padding: 9px; }
.m-btn-accent { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); margin-block-start: auto; }
.m-label { margin: 0 0 6px; color: var(--muted); font-weight: 800; font-size: .9em; }
.m-week { display: flex; justify-content: space-between; }
.m-day { display: grid; justify-items: center; gap: 3px; color: var(--muted); font-weight: 700; font-size: .85em; }
.m-day i { inline-size: 22px; block-size: 22px; border-radius: 8px; background: var(--surface-2); }
.m-day.on i { background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.m-day.today i { box-shadow: 0 0 0 2px var(--text); }
.m-row { display: flex; gap: 6px; align-items: center; margin: 0; padding-block: 4px; }
.m-row .ic { color: var(--muted); }
.m-row.ok .ic { color: var(--ok); }
.m-title { font-size: 1.6em; font-weight: 900; margin: 0; }
.m-seg { display: flex; background: var(--surface-2); border-radius: 10px; padding: 2px; }
.m-seg span { flex: 1; text-align: center; padding: 4px 2px; border-radius: 8px; font-weight: 700; color: var(--muted); font-size: .9em; }
.m-seg .on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.m-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.m-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 8px 10px; display: grid; }
.m-tile small { color: var(--muted); font-weight: 700; }
.m-tile b { font-size: 1.3em; font-weight: 900; font-variant-numeric: tabular-nums; }
.m-tile .up { color: var(--ok); font-weight: 800; font-size: .85em; }
.m-barrow { display: grid; grid-template-columns: 5.5em 1fr 1.6em; gap: 6px; align-items: center; margin-block: 5px; font-size: .92em; }
.m-barrow b { text-align: end; }
.m-track { block-size: 8px; border-radius: 99px; background: var(--surface-2); position: relative; overflow: hidden; display: block; }
.m-band { position: absolute; inset-block: 0; inset-inline-start: 50%; inline-size: 50%; background: color-mix(in srgb, var(--muted) 18%, transparent); }
.m-fill { position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.m-ai { align-items: flex-start; }
.m-orb { inline-size: 36px; block-size: 36px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, var(--brand-ember-200), var(--brand-ember-500)); color: var(--accent-ink); margin-block-end: 6px; box-shadow: 0 0 24px rgba(255, 138, 26, .6); }
.m-phases { display: flex; gap: 3px; inline-size: 100%; }
.m-phases span { flex: var(--f); background: rgba(255, 255, 255, .12); border-radius: 6px; padding: 3px 6px; font-weight: 700; font-size: .85em; }
.m-phases span:nth-child(2) { background: rgba(255, 138, 26, .35); }
.m-pill { display: flex; gap: 6px; align-items: center; justify-content: center; background: var(--ok-soft); color: var(--ok); border-radius: 12px; padding: 7px; margin: 0; font-weight: 800; }
.m-kcal { display: flex; gap: 12px; align-items: center; }
.m-macros { flex: 1; display: grid; gap: 7px; }
.m-macros div { display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; }
.m-macros small { color: var(--muted); font-weight: 700; }
.m-macros .m-track { grid-column: 1 / -1; }
.m-meta2 { color: var(--muted); }

/* ---------- Photo hero (home) ---------- */
.photo-hero .hero-copy { position: relative; z-index: 2; }
.ph-media { position: relative; border-radius: 20px; overflow: hidden; }
.ph-media img { display: block; inline-size: 100%; block-size: auto; }
/* Stats sit in the empty background between the two heads (image coordinates, not body parts). */
.ph-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ph-stat {
  display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: .82rem; font-weight: 700; color: #fff;
}
.ph-stat > span { padding: 7px 12px; border-radius: 12px; background: rgba(17, 24, 39, .7); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.ph-stat b { color: var(--brand-ember-200); font-weight: 900; margin-inline-start: 4px; }
.ph-stat .dot { inline-size: 12px; block-size: 12px; border-radius: 50%; background: var(--brand-ember-400); animation: pulse 2.4s ease-out infinite; }
.ph-phone { display: none; }
/* Mobile: the photo is the card's backdrop and the copy sits on it, rising out of a navy fade. */
@media (max-width: 959px) {
  .hero:has(.photo-hero) { padding-block-start: 6px; }
  .photo-hero {
    --ph-h: min(112cqw, 600px); --ph-ink: #121a2a;
    container-type: inline-size; display: block; padding: 0; background: var(--ph-ink); border-radius: 28px;
  }
  .photo-hero::before { display: none; }
  .photo-hero .ph-media { position: absolute; inset: 0 0 auto; block-size: var(--ph-h); border-radius: 0; z-index: 0; }
  .photo-hero .ph-frame { block-size: 100%; }
  .photo-hero .ph-media img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 54% 0; }
  .photo-hero .ph-media::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
      linear-gradient(to bottom, rgba(18, 26, 42, .55) 0, transparent 18%),
      linear-gradient(to bottom, transparent 34%, rgba(18, 26, 42, .72) 58%, var(--ph-ink) 84%);
  }
  .photo-hero .hero-copy { padding: calc(var(--ph-h) * .56 + 52px) clamp(20px, 6cqw, 40px) clamp(24px, 6cqw, 40px); }
  .photo-hero .hero-badge { display: none; }
  .photo-hero h1 { font-size: clamp(2rem, 9.4cqw, 2.9rem); line-height: 1.08; text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
  .photo-hero .lead { font-size: 1.02rem; color: rgba(255, 255, 255, .84); }
  .photo-hero .btn-row { margin-block-start: 22px; }
  .photo-hero .hero-meta { gap: 8px 16px; font-size: .9rem; }
  .ph-stats {
    position: absolute; z-index: 2; inset-block-start: calc(var(--ph-h) * .56); inset-inline: clamp(20px, 6cqw, 40px);
    justify-content: flex-start; flex-wrap: nowrap; gap: 8px;
  }
  .ph-stat { font-size: .78rem; gap: 0; }
  .ph-stat .dot { display: none; }
  .ph-stat > span { padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); box-shadow: none; }
}
@media (max-width: 359px) {
  .ph-stats { gap: 6px; }
  .ph-stat { font-size: .7rem; }
  .ph-stat > span { padding: 5px 9px; }
}
@media (min-width: 960px) {
  .photo-hero { min-block-size: 660px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .photo-hero .hero-copy { max-inline-size: 560px; }
  .photo-hero .ph-media { position: absolute; inset-block: 0; inset-inline-end: 0; inline-size: 66%; border-radius: 0; z-index: 0; container-type: size;
    mask-image: linear-gradient(to right, transparent 0, #000 34%); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 34%); }
  [dir='rtl'] .photo-hero .ph-media { mask-image: linear-gradient(to left, transparent 0, #000 34%); -webkit-mask-image: linear-gradient(to left, transparent 0, #000 34%); }
  /* Same crop as object-fit: cover + object-position: 42% 20%, but the stats share the image's coordinates. */
  .photo-hero .ph-frame {
    --fw: max(100cqw, 150cqh); --fh: max(100cqh, 66.667cqw);
    position: absolute; inline-size: var(--fw); block-size: var(--fh); top: calc((100cqh - var(--fh)) * .2); left: calc((100cqw - var(--fw)) * .42);
  }
  .photo-hero .ph-media img { inline-size: 100%; block-size: 100%; }
  .ph-stats { position: absolute; top: 7%; left: 49.3%; transform: translateX(-50%); flex-direction: column; align-items: center; flex-wrap: nowrap; }
  .ph-phone { display: block; position: absolute; z-index: 2; inset-inline-end: 3%; inset-block-end: -36px; transform: rotate(3deg); }
  [dir='rtl'] .ph-phone { transform: rotate(-3deg); }
  .ph-phone .phone { --w: 210px; font-size: 9px; padding: 7px; border-radius: 34px; }
  .ph-phone .phone::before { inset-block-start: 14px; inline-size: 60px; block-size: 16px; }
  .ph-phone .phone-screen { border-radius: 27px; padding-block-start: 34px; padding-inline: 8px; gap: 6px; }
}

/* ---------- Muscle figures (rendered from the app's 3D characters) ---------- */
.fig { inline-size: 100%; block-size: auto; }
.body-hero { position: relative; inline-size: min(100%, 500px); margin-inline: auto; }
.bh-glow { position: absolute; inset: 8% 10% 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 138, 26, .32), rgba(255, 138, 26, .08) 60%, transparent); filter: blur(10px); }
.bh-figure { position: relative; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35)); }
[dir='rtl'] .bh-figure { transform: scaleX(-1); }
.bh-phone { position: absolute; inset-inline-end: -6%; inset-block-end: -3%; }
.bh-phone .phone { --w: clamp(150px, 40vw, 210px); font-size: 9px; padding: 7px; border-radius: 34px; }
.bh-phone .phone::before { inset-block-start: 14px; inline-size: 60px; block-size: 16px; }
.bh-phone .phone-screen { border-radius: 27px; padding-block-start: 34px; padding-inline: 8px; gap: 6px; }
.callout {
  position: absolute; inset-inline-start: var(--x); inset-block-start: var(--y); display: flex; align-items: center; gap: 8px;
  translate: -7px -50%; white-space: nowrap; font-size: .8rem; font-weight: 700; color: #fff; pointer-events: none;
}
[dir='rtl'] .callout { translate: 7px -50%; }
.callout > span { padding: 6px 10px; border-radius: 12px; background: rgba(17, 24, 39, .74); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.callout b { color: var(--brand-ember-200); font-weight: 900; margin-inline-start: 4px; }
.callout .dot { flex: none; inline-size: 14px; block-size: 14px; border-radius: 50%; background: var(--brand-ember-400); box-shadow: 0 0 0 4px rgba(255, 138, 26, .3); animation: pulse 2.4s ease-out infinite; }
.callout.to-start { flex-direction: row-reverse; translate: calc(-100% + 7px) -50%; }
[dir='rtl'] .callout.to-start { translate: calc(100% - 7px) -50%; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 138, 26, .55); } 70% { box-shadow: 0 0 0 12px rgba(255, 138, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 138, 26, 0); } }
@media (max-width: 520px) { .callout { font-size: .7rem; } .callout > span { padding: 4px 8px; } }
.hero-art:has(.body-hero) { min-block-size: 0; }
.body-hero:has(img[src*='/figure-']) { inline-size: min(100%, 380px); }
.fig-panel { display: flex; gap: 0; justify-content: center; inline-size: min(100%, 520px); padding: 16px; border-radius: 32px; background: radial-gradient(70% 60% at 50% 40%, var(--accent-soft), transparent 75%); }
.fig-panel .fig { inline-size: 50%; }
.cat-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(7, 1fr); } }
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: var(--radius); background: var(--brand-navy-900); aspect-ratio: 3 / 4; box-shadow: var(--shadow); isolation: isolate; transition: transform .2s ease-out, box-shadow .2s ease-out; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-photo { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: center 30%; z-index: -1; transition: transform .4s ease-out; }
.cat-tile:hover .cat-photo { transform: scale(1.05); }
.cat-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(10, 14, 22, .92)); }
/* Not positioned, so the .stretched link overlay covers the whole tile (photo included). */
.cat-tile-copy { padding: 12px 14px; color: #fff; }
.cat-tile h3 { margin: 0; font-size: 1.02rem; }
.cat-tile h3 a { color: #fff; text-decoration: none; }
.cat-tile .count { margin: 2px 0 0; color: var(--brand-ember-200); font-size: .82rem; font-weight: 800; }
.cat-tile:focus-within { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; }
.cat-hero { display: grid; gap: 16px; align-items: center; }
@media (min-width: 820px) { .cat-hero { grid-template-columns: 1fr 300px; } }
.cat-hero-fig { max-inline-size: 300px; margin-inline: auto; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); }
.cat-hero-fig { position: relative; }
.cat-hero-fig .cat-photo { position: static; display: block; inline-size: 100%; block-size: auto; z-index: auto; }
@media (max-width: 819px) { .cat-hero-fig { max-inline-size: 200px; } }
.ex-card { padding-block-start: 0; overflow: hidden; }
.ex-thumb { margin-inline: -22px; margin-block-end: 14px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-block-end: 1px solid var(--border); }
.ex-thumb .fig { aspect-ratio: 600 / 400; object-fit: cover; object-position: top; }
.ex-thumb.is-photo { background: radial-gradient(70% 80% at 50% 35%, #2b3a55, #1b2538 60%, #111827); overflow: hidden; }
.ex-photo { display: block; inline-size: 100%; aspect-ratio: 3 / 2; block-size: auto; object-fit: cover; transition: transform .4s ease-out; }
.ex-card:hover .ex-photo { transform: scale(1.04); }
.ex-hero { display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .ex-hero.has-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; } }
.ex-hero-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: radial-gradient(70% 80% at 50% 35%, #2b3a55, #1b2538 60%, #111827); }
.ex-hero-photo img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.ex-fig { border-radius: var(--radius-sm); background: radial-gradient(70% 60% at 50% 45%, var(--accent-soft), transparent 75%); }

/* ---------- Breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0 0 16px; font-size: .9rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs .ic { inline-size: 14px; block-size: 14px; opacity: .6; }
.hero-surface .crumbs ol, .hero-surface .crumbs a { color: rgba(255, 255, 255, .7); }

/* ---------- Article (guides, legal) ---------- */
.article-layout { display: grid; gap: 40px; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; } }
.article-head { max-inline-size: 820px; }
.article-head .lead { font-size: 1.2rem; color: var(--muted); }
.byline { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .92rem; align-items: center; margin-block-end: 8px; }
.byline span { display: inline-flex; gap: 6px; align-items: center; }
.prose { max-inline-size: 760px; font-size: 1.06rem; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-block: 2em .6em; scroll-margin-block-start: 90px; }
.prose h3 { font-size: 1.18rem; margin-block: 1.6em .5em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin-block: 0 1.2em; }
.prose li { margin-block: .35em; }
.prose li::marker { color: var(--accent-text); font-weight: 800; }
.prose table { margin-block: 1.2em; }
.prose .table-wrap { margin-block: 1.4em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 20px; border-inline-start: 4px solid var(--accent); color: var(--muted); font-size: 1.1rem; }
.prose aside { margin: 1.6em 0; padding: 16px 18px; border-radius: var(--radius); display: block; }
.prose aside.note { background: var(--info-soft); border: 1px solid color-mix(in srgb, var(--info) 25%, transparent); }
.prose aside.tip { background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); }
.prose aside.warn { background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); }
.prose aside > :last-child { margin-block-end: 0; }
.takeaways { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); margin-block: 24px; max-inline-size: 760px; }
.takeaways h2 { font-size: 1.05rem; margin-block-end: 12px; }
.toc { position: sticky; inset-block-start: 92px; align-self: start; }
.toc h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
[lang='fa'] .toc h2 { letter-spacing: 0; }
.toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--border); }
.toc ol a { display: block; padding: 6px 14px; margin-inline-start: -2px; border-inline-start: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .94rem; font-weight: 700; }
.toc ol a:hover, .toc ol a.active { color: var(--accent-text); border-color: var(--accent); }
.toc .toc-cta { margin-block-start: 24px; padding: 18px; border-radius: var(--radius); }
.toc .toc-cta p { color: rgba(255, 255, 255, .85); font-size: .94rem; }
@media (max-width: 1023px) { .toc { position: static; } .toc ol { display: none; } .toc > h2 { display: none; } }
.sources { font-size: .9rem; color: var(--muted); max-inline-size: 760px; }
.sources ol { padding-inline-start: 1.3em; }
.sources a { word-break: break-word; }

/* ---------- Program card ---------- */
.program-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.pc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 20px 22px; min-block-size: 104px; }
.pc-days { display: flex; align-items: baseline; gap: 6px; font-size: 2.6rem; font-weight: 900; line-height: 1; color: #fff; }
.pc-days small { font-size: .9rem; font-weight: 700; color: var(--brand-ember-300); }
.pc-weeks { font-weight: 800; font-size: .9rem; color: rgba(255, 255, 255, .8); padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }
.pc-body { padding: 18px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pc-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.pc-body .chips { margin-block-start: 8px; }

/* ---------- Program page ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 24px 0 0; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 12px 14px; }
.facts dt { font-size: .82rem; color: rgba(255, 255, 255, .7); font-weight: 700; }
.facts dd { margin: 0; font-weight: 900; font-size: 1.15rem; color: #fff; }
.timeline { display: flex; gap: 4px; margin-block: 16px 8px; }
.timeline .ph { flex: var(--n); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; min-inline-size: 0; }
.timeline .ph:nth-child(2) { background: var(--accent-soft); }
.timeline .ph:nth-child(3) { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.timeline .ph b { display: block; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; }
.timeline .ph small { color: var(--muted); }
.weeks { display: flex; gap: 3px; flex-wrap: wrap; }
.weeks span { flex: 1 0 22px; block-size: 26px; border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: var(--muted); }
.weeks span.deload { background: repeating-linear-gradient(135deg, var(--accent-soft) 0 5px, color-mix(in srgb, var(--accent) 30%, var(--surface)) 5px 10px); color: var(--accent-text); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); margin-block-start: 8px; }
.legend i { display: inline-block; inline-size: 14px; block-size: 14px; border-radius: 4px; vertical-align: -2px; margin-inline-end: 6px; background: repeating-linear-gradient(135deg, var(--accent-soft) 0 3px, color-mix(in srgb, var(--accent) 30%, var(--surface)) 3px 6px); }
.day-card { padding: 0; overflow: hidden; }
.day-card header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-block-end: 1px solid var(--border); }
.day-card header h3 { margin: 0; }
.day-card header p { margin: 0; color: var(--muted); font-size: .92rem; }
.day-code { inline-size: 40px; block-size: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--hero); color: #fff; font-weight: 900; flex: none; }
.day-card table { font-size: .93rem; }
.day-card td a { font-weight: 700; color: var(--text); text-decoration: none; }
.day-card td a:hover { color: var(--accent-text); text-decoration: underline; }
.day-card .star { color: var(--accent); }
.day-card .ss { display: inline-block; font-size: .72rem; font-weight: 800; background: var(--info-soft); color: var(--info); border-radius: 6px; padding: 0 6px; margin-inline-start: 6px; }
.phase-switch { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 2px; margin-block-end: 16px; flex-wrap: wrap; }
.phase-switch button { border: 0; background: transparent; font: inherit; font-weight: 800; color: var(--muted); padding: 8px 14px; border-radius: 10px; cursor: pointer; min-block-size: 40px; }
.phase-switch button[aria-pressed='true'] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
[data-phase-panel][hidden] { display: none; }

/* ---------- Exercise page ---------- */
.ex-layout { display: grid; gap: 24px; }
@media (max-width: 959px) { .ex-aside { order: -1; display: grid; gap: 16px; } .ex-aside .card { margin: 0 !important; } }
@media (min-width: 960px) { .ex-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; } .ex-aside { position: sticky; inset-block-start: 92px; } }
.ex-card .ex-top { display: flex; gap: 6px; flex-wrap: wrap; margin-block-end: 10px; }
.ex-card p { color: var(--muted); font-size: .95rem; }
.ex-meta { display: flex; gap: 14px; color: var(--muted); font-size: .86rem; font-weight: 700; }
.ex-meta span { display: inline-flex; gap: 5px; align-items: center; }
.ex-meta .ic { inline-size: 1.05em; block-size: 1.05em; }
.video { position: relative; aspect-ratio: 9 / 14; max-inline-size: 340px; inline-size: 100%; border-radius: var(--radius); overflow: hidden; background: var(--brand-navy-900); margin-inline: auto; }
.video.wide { aspect-ratio: 16 / 9; }
.video button, .video iframe { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border: 0; }
.video button { cursor: pointer; padding: 0; background: var(--hero); display: grid; place-items: center; color: #fff; font: inherit; }
.video button::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 50% at 80% 10%, var(--hero-glow), transparent 70%); }
.v-art { position: absolute; inset-block-start: 28px; inset-inline: 20px; display: grid; justify-items: center; gap: 12px; text-align: center; }
.v-art b { font-size: 1.15rem; font-weight: 900; line-height: 1.3; }
.video button:hover .play { transform: scale(1.06); }
.video .play { transition: transform .2s ease-out; }
.video img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; opacity: .82; }
.video .play { position: relative; inline-size: 72px; block-size: 72px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-ember-300), var(--brand-ember-600)); color: var(--accent-ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.video .play .ic { inline-size: 30px; block-size: 30px; fill: currentColor; }
.video .vlabel { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 14px; display: flex; gap: 6px; align-items: center; justify-content: center; color: rgba(255,255,255,.8); font-size: .85rem; }
.video-note { font-size: .82rem; color: var(--muted); margin-block-start: 8px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: .95rem; }
.kv dt { color: var(--muted); font-weight: 700; }
.kv dd { margin: 0; font-weight: 700; }
.ex-section { margin-block-end: 28px; }
.ex-section h2 { font-size: 1.3rem; }
.cues { counter-reset: c; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cues li { counter-increment: c; display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.cues li::before { content: counter(c); flex: none; inline-size: 28px; block-size: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 900; }
[lang='fa'] .cues li::before { content: counter(c, persian); }
.mistakes { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mistakes li { display: flex; gap: 10px; align-items: flex-start; }
.mistakes .ic { color: var(--danger); flex: none; margin-block-start: .15em; }
.safety { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.safety li { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-soft); }
.safety .ic { color: var(--warn); flex: none; }
.map-legend { display: flex; gap: 14px; justify-content: center; font-size: .82rem; color: var(--muted); margin-block-start: 6px; }
.map-legend i { display: inline-block; inline-size: 10px; block-size: 10px; border-radius: 3px; margin-inline-end: 5px; }
.alt-group h3 { font-size: .95rem; color: var(--muted); margin-block: 14px 8px; }
.alt-links { display: flex; flex-wrap: wrap; gap: 8px; }
.alt-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 700; text-decoration: none; min-block-size: var(--tap); }
.alt-links a:hover { border-color: var(--accent); color: var(--accent-text); }
.cat-nav { display: flex; gap: 8px; overflow-x: auto; padding-block-end: 8px; margin-block-end: 20px; scrollbar-width: thin; }
.cat-nav a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 700; text-decoration: none; min-block-size: var(--tap); }
.cat-nav a[aria-current='page'] { background: var(--text); color: var(--bg); border-color: var(--text); }
.cat-nav small { color: var(--muted); font-weight: 700; }
.cat-nav a[aria-current='page'] small { color: inherit; opacity: .7; }
.cat-card { display: flex; flex-direction: column; gap: 4px; }
.cat-card .count { color: var(--muted); font-weight: 700; font-size: .9rem; }
.search-box { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 16px; box-shadow: var(--shadow); max-inline-size: 560px; margin-block-end: 24px; }
.search-box:focus-within { border-color: var(--accent); }
.search-box input { flex: 1; border: 0; background: transparent; font: inherit; color: var(--text); min-block-size: 48px; outline: none; font-size: 1rem; }
.search-box .ic { color: var(--muted); }
.no-results { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-grid .card a.big { font-size: 1.1rem; font-weight: 800; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-block-start: 1px solid var(--border); padding-block: 56px calc(28px + env(safe-area-inset-bottom)); margin-block-start: 40px; }
.f-top { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
.f-brand { grid-column: 1 / -1; max-inline-size: 380px; }
@media (min-width: 960px) { .f-top { grid-template-columns: 1.6fr repeat(4, 1fr); } .f-brand { grid-column: auto; } }
.f-brand p { color: var(--muted); font-size: .95rem; }
.f-tag { font-weight: 800; color: var(--text) !important; margin-block: 14px 6px; }
.f-col h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-block-end: 12px; }
[lang='fa'] .f-col h2 { letter-spacing: 0; font-size: .9rem; }
.f-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.f-col a { color: var(--text); text-decoration: none; font-weight: 600; display: inline-flex; min-block-size: 36px; align-items: center; }
.f-col a:hover { color: var(--accent-text); }
.f-note { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .86rem; margin-block: 36px 0; padding-block-start: 20px; border-block-start: 1px solid var(--border); }
.f-note .ic { flex: none; }
.f-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; color: var(--muted); font-size: .9rem; margin-block-start: 16px; }
.f-bottom p { margin: 0; }
.f-bottom a { color: var(--muted); }
.f-langs { display: flex; gap: 14px; align-items: center; }
.f-langs a { text-decoration: none; font-weight: 700; }
.f-langs a[aria-current='true'] { color: var(--text); }
.made-by a { color: var(--text) !important; font-weight: 800; text-decoration: none; }
.made-by a:hover { color: var(--accent-text) !important; }

/* Language suggestion */
.lang-hint { position: fixed; z-index: 60; inset-inline: 12px; inset-block-end: calc(12px + env(safe-area-inset-bottom)); max-inline-size: 440px; margin-inline: auto; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; padding-inline: 16px 8px; border-radius: 16px; background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg); font-size: .94rem; }
.lang-hint[hidden] { display: none; }
.lang-hint p { margin: 0; flex: 1; }
.lang-hint a { color: var(--brand-ember-300); font-weight: 800; }
.lang-hint .icon-btn { color: var(--bg); }

/* 404 */
.notfound { text-align: center; padding-block: 80px 40px; }
.notfound .big { margin: 0 0 12px; font-size: clamp(5rem, 18vw, 9rem); font-weight: 900; line-height: 1; background: linear-gradient(135deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound .btn-row { justify-content: center; }

/* Reveal on scroll (only when JS marks the page) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease-out, transform .5s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .cta-band, .toc, .lang-hint { display: none !important; }
  body { background: #fff; color: #000; }
}
