/* =========================================================
   Techadmy — design system + pages
   Tokens first; everything else reads from them.
   ========================================================= */
:root {
  /* brand */
  --brand: #6964FF;          /* logo purple — decorative fills */
  --primary: #5B55F2;        /* buttons & links (AA on white) */
  --primary-hover: #4A43DE;
  --primary-ink: #3B33B8;
  --purple-50: #F4F3FF;
  --purple-100: #E8E6FF;
  --purple-200: #D3D0FF;
  --mint: #14C29F;           /* logo mint — accents only */
  --mint-ink: #087A63;       /* mint text on light */
  --mint-50: #E4F8F3;

  /* neutrals */
  --ink-900: #1C1A3A;
  --ink-700: #3F3D5C;
  --ink-500: #6B6987;
  --ink-300: #A9A8BF;
  --line: #E8E7F2;
  --bg: #FFFFFF;
  --bg-soft: #F8F8FC;
  --bg-band: #F1F0FD;        /* tinted section bands — clearly different from white */

  /* type */
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --fs-h1: clamp(2rem, 1.2rem + 3vw, 3rem);
  --fs-h2: clamp(1.5rem, 1.15rem + 1.3vw, 2rem);
  --fs-h3: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.125rem;
  --fs-small: .9375rem;
  --fs-label: .8125rem;

  /* shape */
  --r-card: 16px;
  --r-btn: 12px;
  --r-input: 10px;
  --shadow-sm: 0 1px 2px rgba(28, 26, 58, .04), 0 2px 8px rgba(28, 26, 58, .04);
  --shadow-md: 0 4px 12px rgba(28, 26, 58, .06), 0 16px 40px rgba(91, 85, 242, .08);
  --shadow-lg: 0 24px 64px rgba(28, 26, 58, .18);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 6vw, 80px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.75;
  color: var(--ink-700); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.35; margin: 0; font-weight: 700; }
h1 { font-size: var(--fs-h1); line-height: 1.25; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--purple-200); outline-offset: 2px; border-radius: 6px; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.muted { color: var(--ink-300); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: -9999px; top: 8px; z-index: 100; background: var(--ink-900); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { inset-inline-start: 8px; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: var(--h); padding: 0 1.4em; border-radius: var(--r-btn);
  font-weight: 600; font-size: 1rem; line-height: 1; border: 1.5px solid transparent;
  cursor: pointer; transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
  white-space: nowrap;
}
.btn .ic { width: 1.15em; height: 1.15em; transition: transform .2s var(--ease); }
.btn:hover .ic:last-child { transform: translateX(-3px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(91, 85, 242, .28); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--ghost { background: #fff; color: var(--primary); border-color: var(--purple-200); }
.btn--ghost:hover { border-color: var(--primary); background: var(--purple-50); }
.btn--ghost .ic:first-child { transform: none !important; }
.btn--light { background: #fff; color: var(--primary-ink); }
.btn--light:hover { background: var(--mint-50); }
.btn--text { background: none; color: var(--ink-500); padding-inline: .6em; }
.btn--text:hover { color: var(--ink-900); }
.btn--sm { --h: 42px; padding: 0 1.1em; font-size: .9375rem; }
.btn--lg { --h: 56px; padding: 0 1.8em; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-900); cursor: pointer;
}
.icon-btn:hover { background: var(--bg-soft); }

/* ---------- labels / chips ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-label); font-weight: 600; color: var(--mint-ink); letter-spacing: 0; margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--mint); }
.eyebrow--pill { background: var(--mint-50); padding: 6px 12px; border-radius: 999px; }
.eyebrow--pill::before { display: none; }
.chip { display: inline-flex; align-items: center; font-size: var(--fs-label); font-weight: 600; color: var(--primary-ink); background: var(--purple-50); padding: 3px 10px; border-radius: 999px; }
.ph-badge {
  display: inline-flex; font-size: 11px; font-weight: 600; line-height: 1; color: #9A6700;
  background: #FFF6DB; border: 1px dashed #E5C26A; padding: 3px 7px; border-radius: 6px; white-space: nowrap;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--ink-700); font-weight: 500; font-size: .9875rem; padding: 8px 14px; border-radius: 8px; position: relative; }
.nav a:hover { color: var(--ink-900); background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--primary); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--primary); }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.mobile-menu { border-top: 1px solid var(--line); background: #fff; }
.mobile-menu nav { display: flex; flex-direction: column; padding-block: 8px 20px; }
.mobile-menu a { padding: 14px 4px; font-size: 1.0625rem; font-weight: 500; color: var(--ink-900); border-bottom: 1px solid var(--line); }
.mobile-menu a[aria-current="page"] { color: var(--primary); }
.mobile-menu__minor { display: flex; align-items: center; gap: 8px; color: var(--ink-500) !important; font-size: .9375rem !important; border-bottom: 0 !important; }

/* ---------- section scaffolding ---------- */
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-band); }
.section__head { margin-bottom: clamp(32px, 4vw, 48px); max-width: 720px; }
.section__head--center { text-align: center; margin-inline: auto; }
.section__head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section__head--split > div { max-width: 680px; }
.section__lead { margin-top: 12px; font-size: var(--fs-lead); color: var(--ink-500); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; padding: 8px 0; }
.link-more .ic { transition: transform .2s var(--ease); }
.link-more:hover .ic { transform: translateX(-4px); }
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-sm); color: inherit; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--purple-200); }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 6vw, 80px) clamp(48px, 6vw, 72px); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 380px at 15% 40%, rgba(105, 100, 255, .12), transparent 70%),
    linear-gradient(180deg, var(--bg-band), var(--bg) 85%);
}
.hero__bg::after { /* faint grid derived from logo squares */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .45;
  mask-image: radial-gradient(520px 360px at 22% 45%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(520px 360px at 22% 45%, #000, transparent 75%);
}
.hero__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__title { margin-bottom: 20px; }
.hero__sub { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--ink-500); max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ecosystem visual */
.eco { position: relative; aspect-ratio: 520 / 500; width: 100%; max-width: 560px; justify-self: center; }
.eco__links { position: absolute; inset: 0; width: 100%; height: 100%; }
.eco__links path { stroke: var(--purple-200); stroke-width: 1.5; stroke-dasharray: 4 6; fill: none; animation: dash 18s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -200; } }
.eco__core {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 40%;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md); padding: 16px 16px 14px;
}
.eco__core-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-900); font-size: .95rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.eco__logo-sq { position: relative; width: 20px; height: 20px; flex: none; }
.eco__logo-sq i { position: absolute; background: var(--mint); border-radius: 2px; }
.eco__logo-sq i:nth-child(1) { width: 9px; height: 9px; top: 0; left: 8px; }
.eco__logo-sq i:nth-child(2) { width: 6px; height: 6px; top: 6px; left: 0; }
.eco__logo-sq i:nth-child(3) { width: 6px; height: 6px; top: 12px; left: 6px; }
.eco__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.eco__steps li { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--ink-500); padding: 6px 8px; border-radius: 8px; }
.eco__steps span { width: 10px; height: 10px; border-radius: 2px; border: 1.5px solid var(--ink-300); flex: none; }
.eco__steps .is-done { color: var(--ink-700); }
.eco__steps .is-done span { background: var(--mint); border-color: var(--mint); }
.eco__steps .is-active { background: var(--purple-50); color: var(--primary-ink); font-weight: 600; }
.eco__steps .is-active span { border-color: var(--primary); background: var(--primary); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(91, 85, 242, .18); } }

.eco__node {
  position: absolute; display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); padding: 10px 12px;
  font-size: .8rem; line-height: 1.4; animation: float 7s ease-in-out infinite;
}
.eco__node b { display: block; color: var(--ink-900); font-weight: 600; font-size: .85rem; }
.eco__node small { color: var(--ink-500); font-size: .72rem; }
.eco__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.eco__ic .ic { width: 18px; height: 18px; }
.eco__ic--purple { background: var(--purple-50); color: var(--primary); }
.eco__ic--mint { background: var(--mint-50); color: var(--mint-ink); }
.eco__ic--play { background: var(--primary); color: #fff; }
.eco__node--plan { top: 3%; right: 0; flex-wrap: wrap; width: 40%; animation-delay: -1s; }
.eco__check { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; display: grid; gap: 5px; }
.eco__check li { display: flex; align-items: center; gap: 6px; }
.eco__check .ic { width: 12px; height: 12px; color: var(--mint-ink); }
.eco__check span { height: 5px; border-radius: 3px; background: var(--line); flex: 1; }
.eco__check li:nth-child(2) span { flex: .7; }
.eco__check .o span { flex: .5; margin-inline-start: 18px; }
.eco__node--system { top: 0; left: 0; flex-wrap: wrap; width: 40%; animation-delay: -3s; }
.eco__bars { display: flex; align-items: flex-end; gap: 5px; height: 34px; width: 100%; margin-top: 4px; }
.eco__bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(var(--brand), var(--purple-200)); }
.eco__node--tool { top: 48%; left: 0; width: 28%; animation-delay: -5s; }
.eco__node--resource { bottom: 0; left: 50%; margin-left: -88px; width: 176px; animation-delay: -2s; }
.eco__node--growth { top: 46%; right: 0; flex-wrap: wrap; width: 28%; animation-delay: -4s; }
.eco__spark { width: 100%; height: 22px; }
.eco__spark path { fill: none; stroke: var(--mint); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.eco__sq { position: absolute; border-radius: 4px; background: var(--brand); opacity: .14; }
.eco__sq--a { width: 28px; height: 28px; top: 34%; left: 8%; }
.eco__sq--b { width: 16px; height: 16px; top: 36%; right: 4%; background: var(--mint); opacity: .5; }
.eco__sq--c { width: 22px; height: 22px; bottom: 6%; right: 14%; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* ---------- proof ---------- */
.proof { margin-top: -8px; }
.proof__list {
  list-style: none; margin: 0; padding: 8px; display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm);
}
.stat { position: relative; display: flex; align-items: center; gap: 14px; padding: 20px 24px; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat__ic { width: 36px; height: 36px; color: var(--primary); padding: 6px; background: var(--purple-50); border-radius: 10px; }
.stat__value { display: block; font-size: 1.625rem; font-weight: 700; color: var(--ink-900); line-height: 1.2; text-align: right; }
.stat__label { display: block; font-size: var(--fs-small); color: var(--ink-500); line-height: 1.5; }
.stat .ph-badge { position: absolute; top: 8px; inset-inline-end: 10px; }

/* ---------- solutions ---------- */
.solution { padding: 28px 24px; }
.solution__ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--purple-50); color: var(--primary); margin-bottom: 20px; transition: background .25s, color .25s; }
.solution__ic .ic { width: 24px; height: 24px; }
.solution h3 { margin-bottom: 8px; }
.solution p { font-size: var(--fs-small); color: var(--ink-500); }
.solution:hover .solution__ic { background: var(--primary); color: #fff; }

/* ---------- methodology (signature) ---------- */
.method__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.method__step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 28px 22px 24px; text-align: center; box-shadow: var(--shadow-sm);
}
.method__step + .method__step::before { /* square connector, RTL: points to the previous (right) card */
  content: ""; position: absolute; top: 50%; inset-inline-start: -16px; width: 12px; height: 12px;
  border-radius: 3px; background: var(--mint); transform: translateY(-50%); box-shadow: 0 0 0 4px var(--bg-band);
}
.method__num {
  position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(50%);
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-size: .8125rem; font-weight: 700;
}
.method__ic { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px; display: grid; place-items: center; background: var(--purple-50); color: var(--primary); }
.method__ic .ic { width: 26px; height: 26px; }
.method__step:last-child .method__ic { background: var(--mint-50); color: var(--mint-ink); }
.method__step h3 { margin-bottom: 6px; }
.method__step p { font-size: var(--fs-small); color: var(--ink-500); }

/* ---------- stories ---------- */
.story { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.story__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.story__client { font-size: 1.125rem; }
.story__flow { margin: 0; display: grid; gap: 10px; }
.story__flow dt { font-size: var(--fs-label); font-weight: 600; color: var(--ink-300); }
.story__flow dd { margin: 0; font-size: var(--fs-small); color: var(--ink-700); line-height: 1.65; }
.story__result { margin-top: auto; display: flex; align-items: baseline; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.story__result strong { font-size: 2rem; line-height: 1; color: var(--mint-ink); font-weight: 700; }
.story__result span { font-size: var(--fs-small); color: var(--ink-700); font-weight: 500; }

/* ---------- resources ---------- */
.res { overflow: hidden; display: flex; flex-direction: column; }
.res__cover {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, #6964FF, #4C46D9);
}
.res--template .res__cover { background: linear-gradient(135deg, #4C46D9, #2F2A99); }
.res--guide .res__cover { background: linear-gradient(135deg, #7B76FF, #5B55F2); }
.res--tool .res__cover { background: linear-gradient(135deg, #3B33B8, #5B55F2); }
.res__cover::before {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 28px 28px;
}
.res__ic { position: relative; width: 44px; height: 44px; color: #fff; }
.res--video .res__ic { width: 56px; height: 56px; }
.res__sq { position: absolute; border-radius: 4px; background: var(--mint); }
.res__sq--1 { width: 18px; height: 18px; top: 18%; left: 14%; }
.res__sq--2 { width: 10px; height: 10px; top: 32%; left: 9%; opacity: .7; }
.res__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.res__tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip--type { background: var(--mint-50); color: var(--mint-ink); }
.res__topic { font-size: var(--fs-label); color: var(--ink-500); }
.res__title { font-size: 1.0625rem; line-height: 1.55; }
.res__meta { margin-top: auto; font-size: var(--fs-label); color: var(--ink-500); }

/* ---------- final CTA ---------- */
.final-cta { padding-block: var(--section-y); }
.final-cta__inner {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: radial-gradient(500px 260px at 85% 0%, rgba(20, 194, 159, .22), transparent 70%), linear-gradient(135deg, #5B55F2, #3B33B8);
  border-radius: 28px; padding: clamp(48px, 7vw, 80px) var(--gutter);
  max-width: calc(var(--container) - 2 * var(--gutter));
}
.final-cta__inner::before {
  content: ""; position: absolute; inset: 0; opacity: .1;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 48px 48px;
  mask-image: radial-gradient(closest-side, #000, transparent); -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
}
.final-cta h2 { color: #fff; position: relative; }
.final-cta p { position: relative; margin: 14px auto 28px; max-width: 32em; font-size: var(--fs-lead); color: rgba(255, 255, 255, .86); }
.final-cta .btn { position: relative; }
.final-cta small { position: relative; display: block; margin-top: 14px; color: rgba(255, 255, 255, .7); font-size: var(--fs-label); }
.final-cta__squares { position: relative; display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.final-cta__squares i { width: 10px; height: 10px; border-radius: 2px; background: var(--mint); }
.final-cta__squares i:nth-child(2) { opacity: .6; } .final-cta__squares i:nth-child(3) { opacity: .3; }

/* ---------- footer ---------- */
.site-footer { background: #17153A; color: rgba(255, 255, 255, .72); padding-top: 64px; font-size: var(--fs-small); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 48px; }
.site-footer__brand img { height: 44px; width: auto; margin-bottom: 16px; }
.site-footer__brand p { max-width: 26em; }
.site-footer__h { font-size: .9375rem; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a, .site-footer .muted { color: rgba(255, 255, 255, .72); display: inline-flex; align-items: center; gap: 8px; }
.site-footer .muted { color: rgba(255, 255, 255, .4); }
.site-footer a:hover { color: #fff; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a { width: 40px; height: 40px; border-radius: 10px; justify-content: center; background: rgba(255, 255, 255, .07); }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--fs-label); }
.site-footer__squares { display: flex; gap: 4px; }
.site-footer__squares i { width: 8px; height: 8px; border-radius: 2px; background: var(--mint); }
.site-footer__squares i:nth-child(2) { opacity: .6; } .site-footer__squares i:nth-child(3) { opacity: .3; }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 35; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.sticky-cta.is-visible { transform: none; }

/* ---------- stub & start pages ---------- */
.stub__inner { padding-block: clamp(64px, 10vw, 120px); max-width: 720px; min-height: 50vh; }
.stub h1 { margin-bottom: 8px; }
.stub__note { margin-top: 24px; font-size: var(--fs-small); color: var(--ink-500); background: var(--bg-soft); border: 1px dashed var(--line); padding: 12px 16px; border-radius: 10px; }
.start-page { background: var(--bg-soft); }
.start-page__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); padding-block: clamp(40px, 6vw, 80px); align-items: start; }
.start-page__intro h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); margin-bottom: 14px; }
.start-page__intro > p { color: var(--ink-500); font-size: var(--fs-lead); }
.start-page__points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.start-page__points li { display: flex; gap: 10px; align-items: center; color: var(--ink-700); }
.start-page__points .ic { color: var(--mint-ink); }
.start-page__card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-md); }

/* =========================================================
   SMART START FLOW
   ========================================================= */
.flow-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; }
.flow-modal__backdrop { position: absolute; inset: 0; background: rgba(23, 21, 58, .52); backdrop-filter: blur(3px); animation: fade .2s ease; }
.flow-modal__panel {
  position: relative; width: 100%; max-width: 580px; max-height: min(760px, calc(100vh - 48px)); display: flex;
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); animation: rise .3s var(--ease); overflow: hidden;
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
body.has-modal { overflow: hidden; }

.flow { display: flex; flex-direction: column; width: 100%; min-height: 560px; }
.flow__top { display: flex; align-items: center; gap: 12px; padding: 18px 24px 0; }
.flow__logo { height: 26px; width: auto; }
.flow__close { margin-inline-start: auto; width: 40px; height: 40px; border: 0; }
.flow__progress { display: flex; align-items: center; gap: 10px; padding: 16px 24px 0; }
.flow__squares { display: flex; gap: 6px; flex: 1; }
.flow__squares i { flex: 1; height: 6px; border-radius: 2px; background: var(--line); transition: background .3s var(--ease); }
.flow__squares i.is-on { background: var(--mint); }
.flow__squares i.is-now { background: var(--primary); }
.flow__count { font-size: var(--fs-label); color: var(--ink-500); white-space: nowrap; }
.flow__body { flex: 1; overflow-y: auto; padding: 24px 24px 8px; }
.flow__screen { animation: screen-in .28s var(--ease); }
.flow__screen.is-back { animation-name: screen-in-back; }
@keyframes screen-in { from { opacity: 0; transform: translateX(-18px); } }
@keyframes screen-in-back { from { opacity: 0; transform: translateX(18px); } }
.flow__title { font-size: 1.375rem; line-height: 1.45; }
.flow__hint { margin-top: 6px; font-size: var(--fs-small); color: var(--ink-500); }
.flow__q + .flow__q { margin-top: 26px; }
.flow__qlabel { display: block; font-weight: 600; color: var(--ink-900); margin-bottom: 10px; font-size: 1rem; }
.flow__options { display: grid; gap: 10px; margin-top: 20px; }
.flow__q .flow__options { margin-top: 0; }
.flow__options--cards { grid-template-columns: 1fr 1fr; }
.flow__options--chips { display: flex; flex-wrap: wrap; gap: 8px; }

.opt {
  position: relative; display: flex; align-items: center; gap: 12px; text-align: start; width: 100%;
  min-height: 56px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  color: var(--ink-900); font-weight: 500; font-size: 1rem; line-height: 1.5; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.opt:hover { border-color: var(--purple-200); background: var(--purple-50); }
.opt__mark { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--ink-300); flex: none; display: grid; place-items: center; transition: all .15s; }
.opt__mark .ic { width: 14px; height: 14px; color: #fff; opacity: 0; }
.opt[aria-checked="true"] { border-color: var(--primary); background: var(--purple-50); box-shadow: 0 0 0 3px rgba(91, 85, 242, .12); }
.opt[aria-checked="true"] .opt__mark { background: var(--mint); border-color: var(--mint); }
.opt[aria-checked="true"] .opt__mark .ic { opacity: 1; }
.opt--card { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 128px; padding: 18px 16px; }
.opt--card .opt__ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--purple-50); color: var(--primary); }
.opt--card .opt__ic .ic { width: 22px; height: 22px; }
.opt--card .opt__mark { position: absolute; top: 14px; inset-inline-end: 14px; }
.opt--card[aria-checked="true"] .opt__ic { background: var(--primary); color: #fff; }
.opt--chip { width: auto; min-height: 46px; padding: 8px 16px; border-radius: 999px; }
.opt--chip .opt__mark { display: none; }

.field { display: grid; gap: 6px; }
.field + .field, .field-row + .field, .field + .field-row { margin-top: 16px; }
.field label, .field__label { font-weight: 600; color: var(--ink-900); font-size: .9375rem; }
.field__opt { font-weight: 400; color: var(--ink-500); font-size: var(--fs-label); }
.input, .textarea, .select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-input); border: 1.5px solid var(--line);
  background: #fff; font: inherit; font-size: 1rem; color: var(--ink-900); transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91, 85, 242, .14); }
.input::placeholder, .textarea::placeholder { color: var(--ink-300); }
.input.is-invalid { border-color: #D64545; }
.field__err { color: #C03535; font-size: var(--fs-label); }
.field-row { display: grid; grid-template-columns: 1fr 120px; gap: 10px; margin-top: 16px; }
.field-row .field + .field { margin-top: 0; }
.phone-input { direction: ltr; text-align: left; }
.select { direction: ltr; padding-inline: 10px; }
.check { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; cursor: pointer; font-size: var(--fs-small); color: var(--ink-700); }
.check input { width: 20px; height: 20px; accent-color: var(--primary); margin-top: 3px; flex: none; }
.other-input { margin-top: 10px; }
.check + .field { margin-top: 20px; }

.flow__foot { display: flex; align-items: center; gap: 12px; padding: 16px 24px 20px; border-top: 1px solid var(--line); background: #fff; }
.flow__foot .btn--primary { margin-inline-start: auto; min-width: 140px; }
.flow__privacy { padding: 0 24px 16px; font-size: 12px; color: var(--ink-500); margin-top: -8px; }

/* result */
.result { text-align: center; padding-top: 8px; }
.result__badge { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px; display: grid; place-items: center; background: var(--mint-50); color: var(--mint-ink); }
.result__badge .ic { width: 30px; height: 30px; }
.result h2 { font-size: 1.5rem; }
.result > p { margin: 10px auto 0; color: var(--ink-500); max-width: 30em; }
.result__summary { margin: 22px 0 0; text-align: start; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: var(--fs-small); }
.result__summary dt { color: var(--ink-500); font-size: var(--fs-label); }
.result__summary dd { margin: 0 0 8px; color: var(--ink-900); font-weight: 500; }
.result__summary dd:last-child { margin-bottom: 0; }
.result__actions { display: grid; gap: 10px; margin-top: 24px; }
.result__related { margin-top: 22px; text-align: start; }
.result__related h3 { font-size: var(--fs-label); color: var(--ink-500); font-weight: 600; margin-bottom: 8px; }
.result__link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-900); font-weight: 500; font-size: var(--fs-small); }
.result__link:hover { border-color: var(--purple-200); background: var(--purple-50); }
.result__link .ic:first-child { color: var(--primary); }
.result__link .ic:last-child { margin-inline-start: auto; color: var(--ink-300); }
.result__note { margin-top: 14px; font-size: var(--fs-label); color: var(--ink-500); }

.flow-loading { display: grid; place-items: center; gap: 14px; padding: 80px 0; color: var(--ink-500); }
.flow-loading__sq { display: flex; gap: 6px; }
.flow-loading__sq i { width: 12px; height: 12px; border-radius: 3px; background: var(--mint); animation: bounce 1s var(--ease) infinite; }
.flow-loading__sq i:nth-child(2) { animation-delay: .12s; background: var(--brand); }
.flow-loading__sq i:nth-child(3) { animation-delay: .24s; }
@keyframes bounce { 50% { transform: translateY(-8px); } }

/* video modal */
.video-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; }
.video-modal__panel { position: relative; width: min(960px, 100%); }
.video-modal__close { position: absolute; top: -52px; inset-inline-end: 0; }
.video-modal__frame { aspect-ratio: 16 / 9; background: #000; border-radius: 16px; overflow: hidden; }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .nav a { padding-inline: 10px; }
}
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .eco { max-width: 520px; }
  .proof__list { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .grid--3 { grid-template-columns: 1fr; }
  .method__steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .method__step:nth-child(3)::before { display: none; }
  .start-page__inner { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .site-header__inner { justify-content: space-between; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .brand img { height: 34px; }
  .site-header__actions .btn { --h: 40px; padding-inline: .9em; font-size: .875rem; }
  .site-header__actions .btn .ic { display: none; }
  .hero { padding-top: 32px; }
  .hero__copy { text-align: start; }
  .hero__sub { margin-inline: 0; }
  .hero__actions { justify-content: stretch; flex-direction: column; margin-top: 24px; }
  .hero__actions .btn { width: 100%; }
  /* text before visual; on phones the visual simplifies */
  .eco { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
  .eco__links, .eco__node--plan, .eco__node--growth, .eco__node--system, .eco__node--tool, .eco__node--resource, .eco__sq { display: none; }
  .eco__core, .eco__node { position: static; transform: none; width: auto; margin: 0; animation: none; }
  .eco__core { grid-column: 1 / -1; }
  .eco__steps { grid-template-columns: 1fr 1fr; }
  .section__head--split { flex-direction: column; align-items: flex-start; }
  .grid--4 { grid-template-columns: 1fr; }
  .solution { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px; }
  .solution__ic { grid-row: span 2; margin: 0; width: 44px; height: 44px; }
  .solution h3 { font-size: 1.0625rem; margin-bottom: 2px; }
  .method__steps { grid-template-columns: 1fr; gap: 14px; }
  .method__step { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; text-align: start; padding: 18px; }
  .method__step::before { display: none !important; }
  .method__num { position: static; transform: none; grid-row: span 2; align-self: center; width: 32px; height: 32px; }
  .method__ic { display: none; }
  .method__step h3 { font-size: 1.0625rem; margin-bottom: 0; }
  .method__steps { position: relative; }
  .method__steps::before { content: ""; position: absolute; top: 24px; bottom: 24px; inset-inline-start: 34px; width: 2px; background: var(--purple-100); }
  .res { flex-direction: row; }
  .res__cover { aspect-ratio: auto; width: 96px; flex: none; }
  .res__ic { width: 30px; height: 30px; }
  .res--video .res__ic { width: 34px; height: 34px; }
  .res__sq { display: none; }
  .res__body { padding: 14px 16px; gap: 4px; }
  .res__title { font-size: 1rem; }
  .final-cta { padding-bottom: calc(var(--section-y) + 24px); }
  .final-cta__inner { border-radius: 20px; }
  .final-cta .btn { width: 100%; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__bottom { padding-bottom: 96px; }
  .proof__list { padding: 4px; }
  .stat { padding: 16px 14px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .stat__value { font-size: 1.375rem; }
  .stat__label { font-size: .8125rem; }

  /* flow → full-screen sheet */
  .flow-modal { padding: 0; place-items: stretch; }
  .flow-modal__panel { max-width: none; max-height: none; height: 100%; border-radius: 0; }
  .flow { min-height: 100%; }
  .flow__top, .flow__progress { padding-inline: 16px; }
  .flow__body { padding: 20px 16px 8px; }
  .flow__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); position: sticky; bottom: 0; }
  .flow__privacy { padding-inline: 16px; }
  .flow__title { font-size: 1.25rem; }
  .flow__options--cards { grid-template-columns: 1fr; }
  .opt--card { flex-direction: row; align-items: center; min-height: 68px; padding: 14px 16px; }
  .opt--card .opt__mark { position: static; margin-inline-start: auto; }
  .field-row { grid-template-columns: 1fr 108px; }
  .start-page__inner { padding-top: 24px; gap: 20px; }
  .start-page__points { display: none; }
  .start-page__card { border-radius: 16px; margin-inline: calc(var(--gutter) * -1 + 8px); }
}
@media (min-width: 641px) { .sticky-cta { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   INNER PAGES (services, academy system, stories, resources, about)
   ========================================================= */
.section--tight { padding-top: clamp(28px, 4vw, 48px); }
.note { margin-top: 20px; font-size: var(--fs-small); color: var(--ink-500); }
.center-link { text-align: center; margin-top: 32px; }

/* page hero */
.page-hero { position: relative; overflow: hidden; background: var(--bg-band); border-bottom: 1px solid var(--line); padding-block: clamp(36px, 5vw, 64px); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(480px 300px at 12% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(480px 300px at 12% 30%, #000, transparent 75%);
}
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 20em; font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem); }
.page-hero .section__lead { max-width: 38em; }
.page-hero__inner--split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.page-hero__tags { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.crumbs { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: var(--fs-label); color: var(--ink-500); }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--ink-300); }
.crumbs a { color: var(--ink-500); }
.crumbs a:hover { color: var(--primary); }
.crumbs [aria-current] { color: var(--ink-900); font-weight: 500; }

/* tick lists */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-700); }
.ticks .ic { width: 20px; height: 20px; margin-top: .3em; padding: 3px; border-radius: 6px; background: var(--mint-50); color: var(--mint-ink); }
.ticks--box li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }

/* pills: topic navigation + type filter */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 6px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-700); font-family: inherit; font-weight: 500; font-size: var(--fs-small);
  white-space: nowrap; cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.pill:hover { border-color: var(--purple-200); background: var(--purple-50); color: var(--ink-900); }
.pill[aria-current="page"], .pill[aria-pressed="true"] { border-color: var(--primary); background: var(--purple-50); color: var(--primary-ink); font-weight: 600; }
.pill .ic { width: 16px; height: 16px; color: var(--primary); }
.pill--sm { min-height: 36px; padding: 4px 14px; font-size: var(--fs-label); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.filters__label { font-size: var(--fs-label); color: var(--ink-500); margin-inline-end: 4px; }
.pills + .res-grid, .filters + .res-grid { margin-top: 28px; }
.empty-line { margin-top: 24px; color: var(--ink-500); }
.empty-box { text-align: center; background: var(--bg-soft); border: 1px dashed var(--purple-200); border-radius: 20px; padding: clamp(32px, 6vw, 64px) var(--gutter); }
.pills + .empty-box { margin-top: 28px; }
.empty-box h2 { font-size: 1.375rem; }
.empty-box p { margin: 10px auto 0; max-width: 32em; color: var(--ink-500); }
.empty-box .hero__actions { justify-content: center; margin-top: 24px; }
.empty-box__sq { display: inline-flex; gap: 6px; margin-bottom: 16px; }
.empty-box__sq i { width: 10px; height: 10px; border-radius: 2px; background: var(--mint); }
.empty-box__sq i:nth-child(2) { opacity: .6; } .empty-box__sq i:nth-child(3) { opacity: .3; }
.ph-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: var(--fs-label); color: #7A5200; background: #FFFBEB; border: 1px dashed #E5C26A; border-radius: 10px; padding: 10px 14px; }

/* services */
.svc-list { display: grid; gap: 20px; }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(24px, 3vw, 36px); scroll-margin-top: calc(var(--header-h) + 16px); }
.svc__main { display: grid; justify-items: start; gap: 8px; }
.svc .solution__ic { margin-bottom: 8px; }
.svc h2 { font-size: 1.5rem; }
.svc__main p { color: var(--ink-500); }
.svc > .ticks { background: var(--bg-soft); border-radius: 14px; padding: 20px; }
.band, .soft-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px;
  border-radius: var(--r-card); background: var(--purple-50); border: 1px solid var(--purple-100);
}
.band { margin-top: 20px; }
.band h2, .soft-cta h2 { font-size: 1.25rem; }
.band p, .soft-cta p { margin-top: 4px; font-size: var(--fs-small); color: var(--ink-700); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.offer { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 24px; }
.offer .solution__ic { margin-bottom: 10px; }
.offer p { font-size: var(--fs-small); color: var(--ink-500); }
.offer .link-more { margin-top: auto; padding-bottom: 0; font-size: var(--fs-small); }
.method__steps--plain .method__step + .method__step::before { box-shadow: 0 0 0 4px #fff; }
.method__steps--3 { grid-template-columns: repeat(3, 1fr); }

/* academy system */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fit__col { padding: 28px; }
.fit__col h3 { margin-bottom: 16px; }
.fit__col--no { background: transparent; box-shadow: none; border-style: dashed; }
.fit__col--no .ticks .ic { background: var(--line); color: var(--ink-500); }
.fit__col .link-more { margin-top: 16px; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md); overflow: hidden; font-size: .8rem; line-height: 1.4; }
.mock__bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock__bar i { width: 9px; height: 9px; border-radius: 2px; background: var(--line); }
.mock__bar i:first-child { background: var(--mint); }
.mock__body { display: grid; grid-template-columns: 132px 1fr; }
.mock__side { list-style: none; margin: 0; padding: 12px 8px; display: grid; gap: 2px; align-content: start; background: var(--bg-soft); border-inline-end: 1px solid var(--line); }
.mock__side li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; color: var(--ink-500); }
.mock__side .ic { width: 16px; height: 16px; }
.mock__side .is-on { background: #fff; color: var(--primary-ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.mock__main { display: grid; gap: 14px; padding: 14px; align-content: start; }
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock__cards div { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.mock__cards small { color: var(--ink-500); }
.mock__cards i { display: block; width: 60%; height: 8px; border-radius: 4px; background: var(--purple-200); }
.mock__chart { height: 64px; margin: 0; }
.mock__rows { display: grid; gap: 10px; }
.mock__rows div { display: flex; align-items: center; gap: 8px; }
.mock__rows span { flex: 1; height: 8px; border-radius: 4px; background: var(--line); }
.mock__rows span:last-child { flex: .5; }
.mock__rows b { width: 10px; height: 10px; border-radius: 3px; background: var(--mint); flex: none; }
.mock__rows b.o { background: var(--purple-200); }

/* case study */
.case { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case__block { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); padding: 24px; }
.case__block + .case__block::before {
  content: ""; position: absolute; top: 34px; inset-inline-start: -16px; width: 12px; height: 12px;
  border-radius: 3px; background: var(--mint); box-shadow: 0 0 0 4px #fff;
}
.case__label { display: block; margin-bottom: 8px; font-size: var(--fs-label); font-weight: 600; color: var(--ink-500); }
.case__block--result { background: var(--mint-50); border-color: transparent; box-shadow: none; }
.case__block--result .case__label { color: var(--mint-ink); }
.case__block--result strong { font-size: 1.5rem; color: var(--mint-ink); }
.case__block .ticks { margin-top: 12px; }
.case__metric { justify-self: end; display: grid; gap: 6px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-md); padding: 28px 40px; }
.case__metric strong { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); line-height: 1; color: var(--mint-ink); }
.case__metric span { color: var(--ink-700); font-weight: 500; }
.case__extra, .case__services, .case__quote { margin-top: 40px; max-width: 760px; }
.case__extra h2, .case__services h2 { font-size: 1.25rem; margin-bottom: 14px; }
.case__quote { margin-inline: 0; padding-inline-start: 20px; border-inline-start: 4px solid var(--mint); }
.case__quote blockquote { margin: 0; font-size: 1.25rem; color: var(--ink-900); }
.case__quote figcaption { margin-top: 8px; font-size: var(--fs-small); color: var(--ink-500); }

/* single resource */
.article { padding-block: clamp(28px, 4vw, 48px) var(--section-y); }
.article__inner { max-width: calc(760px + 2 * var(--gutter)); }
.article__head { margin-bottom: 28px; }
.article__head h1 { margin-top: 12px; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); }
.res-media { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: var(--r-card); overflow: hidden; }
button.res-media { cursor: pointer; }
.res-media .res__cover { width: 100%; aspect-ratio: 16 / 9; }
.res-media .res__ic { width: 72px; height: 72px; }
.article__action { margin-top: 20px; }
.takeaways { margin-top: 28px; padding: 24px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-card); }
.takeaways h2 { font-size: 1.125rem; margin-bottom: 14px; }
.prose h2 { font-size: 1.375rem; margin: 36px 0 10px; }
.prose p + p { margin-top: 14px; }
.prose ul:not(.ticks) { margin: 8px 0 0; padding-inline-start: 1.3em; display: grid; gap: 6px; }
.prose ul:not(.ticks) li::marker { color: var(--mint); }
.prose .ticks { margin-top: 12px; }
.prose--lead { font-size: var(--fs-lead); }
.soft-cta { margin-top: 48px; }

/* about */
.founder { display: grid; grid-template-columns: 200px 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.founder__photo { width: 200px; aspect-ratio: 1; border-radius: 24px; object-fit: cover; }
.founder__photo--ph { display: flex; align-items: flex-end; gap: 6px; padding: 20px; background: linear-gradient(135deg, var(--purple-100), var(--purple-50)); border: 1px dashed var(--purple-200); }
.founder__photo--ph i { width: 14px; height: 14px; border-radius: 3px; background: var(--brand); opacity: .5; }
.founder__photo--ph i:nth-child(2) { background: var(--mint); opacity: 1; }
.founder__role { margin-inline-start: 6px; font-size: 1rem; font-weight: 500; color: var(--ink-500); }
.founder .link-more { margin-top: 12px; }
.page-about .proof { margin-top: clamp(28px, 4vw, 48px); }

@media (max-width: 960px) {
  .page-hero__inner--split, .split, .svc, .fit { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .case__block + .case__block::before { top: -16px; inset-inline-start: 24px; }
  .case__metric { justify-self: start; }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  .band, .soft-cta { flex-direction: column; align-items: flex-start; }
  .method__steps--3 { grid-template-columns: 1fr; }
  .method__steps--3 .method__step::before { display: none; }
}
@media (max-width: 640px) {
  .res-grid { grid-template-columns: 1fr; }
  .pills--scroll { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .pills--scroll::-webkit-scrollbar { display: none; }
  .page-hero .hero__actions .btn, .band .btn, .soft-cta .btn, .empty-box .btn { width: 100%; }
  .mock__body { grid-template-columns: 1fr; }
  .mock__side { display: none; }
  .founder { grid-template-columns: 1fr; }
  .founder__photo { width: 120px; border-radius: 18px; }
  .case__metric { width: 100%; padding: 20px; }
  .offer { padding: 20px; }
}

/* =========================================================
   SECTION RHYTHM — every section reads as its own block
   ========================================================= */
/* section labels as pills, so each section has a visible starting point */
.section__head .eyebrow { background: var(--mint-50); padding: 5px 12px; border-radius: 999px; }
/* two white sections in a row get a hairline between them */
.section { position: relative; }
.section:not(.section--soft) + .section:not(.section--soft)::before {
  content: ""; position: absolute; top: 0; height: 1px; background: var(--line);
  inset-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
}
/* on wide screens the tinted bands become rounded panels, like the methodology block in the mockup */
@media (min-width: 1024px) {
  .section--soft { margin-inline: 24px; border-radius: 32px; }
  .section--soft + .section--soft { margin-top: 24px; }
}

/* one dark band per page at most (homepage: methodology) — add section--dark next to section--soft */
.section--dark {
  background: radial-gradient(520px 280px at 88% 0%, rgba(20, 194, 159, .2), transparent 70%), linear-gradient(135deg, #5B55F2, #3B33B8);
}
.section--dark .section__head h2 { color: #fff; }
.section--dark .section__lead { color: rgba(255, 255, 255, .84); }
.section--dark .section__head .eyebrow { background: rgba(255, 255, 255, .14); color: #fff; }
.section--dark .method__step { border-color: transparent; box-shadow: 0 10px 30px rgba(23, 21, 58, .18); }
.section--dark .method__step + .method__step::before { box-shadow: none; }
.section--dark .method__num { background: var(--mint); color: #0B2B25; }
.section--dark .method__steps::before { background: rgba(255, 255, 255, .25); }

/* =========================================================
   HERO BLOCK — tinted block with a framed visual; the proof card sits on its bottom edge
   ========================================================= */
.hero { background: var(--bg-band); border-radius: 0 0 40px 40px; padding-bottom: clamp(96px, 9vw, 128px); }
.hero__bg { z-index: 0; background: radial-gradient(600px 380px at 15% 40%, rgba(105, 100, 255, .14), transparent 70%); }
.hero__inner { position: relative; z-index: 1; }
.page-home .proof { position: relative; z-index: 2; margin-top: -56px; }
.page-home .proof__list { box-shadow: var(--shadow-md); }
.page-home .proof + .section { padding-top: clamp(56px, 6vw, 80px); }

.eco__node, .eco__core { box-shadow: 0 8px 24px rgba(28, 26, 58, .1); }
@media (max-width: 640px) {
  .hero { border-radius: 0 0 24px 24px; padding-bottom: 72px; }
  .page-home .proof { margin-top: -40px; }
  .eco__node, .eco__core { box-shadow: var(--shadow-sm); }
}

/* materials attached to a resource (PDF, Google Sheet, link…) */
.materials { margin-top: 28px; }
.materials h2 { font-size: 1.125rem; margin-bottom: 12px; }
.materials__list { display: grid; gap: 8px; }
.materials__item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-900); font-weight: 500; transition: border-color .15s, background .15s; }
.materials__item:hover { border-color: var(--purple-200); background: var(--purple-50); }
.materials__item > .ic:first-child { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--purple-50); color: var(--primary); }
.materials__item small { display: block; font-weight: 400; font-size: var(--fs-label); color: var(--ink-500); }
.materials__item > .ic:last-child { margin-inline-start: auto; color: var(--ink-300); }

/* subscribe box (resource pages) — quieter than the soft CTA: white, one field */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.subscribe { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; align-items: center; margin-top: 32px; padding: 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.subscribe h2 { font-size: 1.125rem; }
.subscribe p { margin-top: 4px; font-size: var(--fs-small); color: var(--ink-500); }
.subscribe__form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.subscribe__form .input { text-align: left; }
.subscribe__msg { grid-column: 1 / -1; margin: 0 !important; color: var(--mint-ink) !important; font-weight: 500; }
.article .subscribe { grid-template-columns: 1fr; margin-top: 20px; }
@media (max-width: 960px) { .subscribe { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .subscribe { padding: 20px; } .subscribe__form { grid-template-columns: 1fr; } }

/* =========================================================
   HERO FRAME (wide screens) — title, text and the floating cards live inside ONE bounded frame of
   page width, so the first screen has clear edges and the eye stays inside it. No photo (Ahmed's choice).
   ========================================================= */
@media (min-width: 961px) {
  .hero { background: none; border-radius: 0; overflow: visible; padding: 12px var(--gutter) 0; }
  .hero__bg { display: none; }
  .hero__inner {
    max-width: calc(var(--container) - 2 * var(--gutter)); padding: 40px 48px; gap: 48px;
    grid-template-columns: 1fr 1fr; align-items: center;
    background: linear-gradient(135deg, #F7F6FF, #ECEAFD); border: 1px solid var(--purple-100); border-radius: 32px;
  }
  .eco { max-width: 500px; }
  .page-home .proof { margin-top: 20px; }
  .page-home .proof__list { box-shadow: var(--shadow-sm); }
}

/* HERO WITH PHOTO (wide screens, when site.json → heroImage is set) — "Mockup final":
   the photo fills the visual side of the frame and fades into the text side; three cards float over it. */
.hero__scene, .eco__node--chart, .eco__node--menu, .eco__node--idea { display: none; }
@media (min-width: 961px) {
  .hero--photo .hero__inner { overflow: hidden; min-height: 470px; }
  .hero--photo .hero__copy, .hero--photo .eco { position: relative; z-index: 1; }
  .hero--photo .hero__scene {
    display: block; position: absolute; inset: 0 auto 0 0; width: 58%;
    mask-image: linear-gradient(90deg, #000 68%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 68%, transparent);
  }
  .hero--photo .hero__scene img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; }
  .hero--photo .eco { max-width: none; justify-self: stretch; aspect-ratio: 5 / 4; }
  .hero--photo .eco__core, .hero--photo .eco__links,
  .hero--photo .eco__node--plan, .hero--photo .eco__node--system, .hero--photo .eco__node--tool,
  .hero--photo .eco__node--resource, .hero--photo .eco__node--growth { display: none; }
  .hero--photo .eco__node { box-shadow: 0 12px 30px rgba(23, 21, 58, .22); border-color: transparent; }
  .hero--photo .eco__node--menu { display: grid; gap: 2px; list-style: none; margin: 0; top: 2%; left: -3%; width: 30%; padding: 10px; animation-delay: -4s; }
  .hero--photo .eco__node--menu li { display: flex; align-items: center; gap: 10px; padding: 5px 8px; }
  .hero--photo .eco__node--menu .ic { width: 18px; height: 18px; color: var(--primary); }
  .hero--photo .eco__node--menu b { font-size: .875rem; }
  .hero--photo .eco__node--chart { display: flex; flex-wrap: wrap; top: 3%; right: -4%; width: 38%; animation-delay: -2s; }
  .hero--photo .eco__node--chart .eco__bars { height: 40px; direction: ltr; }
  .hero--photo .eco__node--idea { display: flex; bottom: 4%; left: -3%; animation-delay: -1s; }
  .hero--photo .eco__sq { background: var(--brand); opacity: .4; border-radius: 8px; }
  .hero--photo .eco__sq--a { width: 40px; height: 40px; top: 52%; left: 4%; }
  .hero--photo .eco__sq--b { width: 24px; height: 24px; top: 6%; right: 50%; background: var(--mint); opacity: .75; }
  .hero--photo .eco__sq--c { width: 48px; height: 48px; bottom: 6%; right: 2%; }
}

/* floating-cards visual: one purple gradient shape gathers the cards (approved by Ahmed) */
.eco::before { content: ""; position: absolute; inset: 9% 7% 7%; border-radius: 28px; background: linear-gradient(160deg, #B9B4FF 0%, #D2CFFF 45%, #E6E4FF 100%); }
.eco__links path { stroke: rgba(255, 255, 255, .95); }
.eco__sq { background: #fff; opacity: .55; }
.eco__sq--b { background: var(--mint); opacity: .6; }
@media (max-width: 640px) { .eco::before { display: none; } }
@media (min-width: 961px) {
  .hero--photo .eco::before { display: none; }
  .hero--photo .eco__sq { background: var(--brand); opacity: .4; }
  .hero--photo .eco__sq--b { background: var(--mint); opacity: .75; }
}

/* hero label: quieter, so it does not compete with the headline */
.hero .eyebrow--pill { background: rgba(228, 248, 243, .7); font-weight: 500; font-size: .75rem; padding: 4px 10px; }
.hero__sub { text-wrap: balance; }
/* HERO WITH PHOTO — calmer pass: two floating cards only, wider and softer fade, more room around the text */
@media (min-width: 961px) {
  .hero--photo .hero__inner { grid-template-columns: 1.08fr .92fr; padding-inline: 56px 48px; }
  .hero--photo .hero__title { font-size: clamp(2rem, 1.2rem + 2.6vw, 2.8rem); }
  .hero--photo .hero__sub { max-width: 27em; }
  .hero--photo .hero__scene {
    width: 55%;
    mask-image: linear-gradient(90deg, #000 42%, rgba(0, 0, 0, .55) 72%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 42%, rgba(0, 0, 0, .55) 72%, transparent);
  }
  .hero--photo .hero__scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 35%, rgba(247, 246, 255, .45)); }
  .hero--photo .eco__node--chart { top: 6%; right: 2%; width: 36%; }
  .hero--photo .eco__node--idea { bottom: 8%; left: -2%; }
  .hero--photo .eco__sq--a, .hero--photo .eco__sq--b { display: none; }
}

/* =========================================================
   METHOD STEPS (every page) — equal cards, 40px mint number badge on the top edge, arrows between steps.
   Four (or three) in a row while they fit, then one column in order with arrows pointing down.
   ========================================================= */
.method { --step-arrow: var(--ink-300); }
.method.section--dark { --step-arrow: rgba(255, 255, 255, .75); }
.method .method__steps { padding-top: 0; gap: 28px; }
.method .method__steps::before { display: none; }
.method .method__step { padding: 36px 22px 22px; border-radius: 18px; }
.method .method__num { top: -20px; width: 40px; height: 40px; border-radius: 11px; font-size: 1.0625rem; background: var(--mint); color: #0B2B25; box-shadow: none; }
.method .method__ic { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px; }
.method .method__ic .ic { width: 24px; height: 24px; }
.method .method__step h3 { font-size: 1.25rem; margin-bottom: 6px; }
.method .method__step p { font-size: .9375rem; line-height: 1.65; color: #59566F; }
/* arrow: sits in the gap and points to the next step (right → left) */
.method .method__step + .method__step::before {
  content: ""; display: block !important; position: absolute; top: 50%; inset-inline-start: -23px; width: 18px; height: 12px;
  transform: translateY(-50%); border-radius: 0; box-shadow: none; background: var(--step-arrow);
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 6H1M6 1 1 6l5 5'/%3E%3C/svg%3E");
  mask: var(--m) center / contain no-repeat; -webkit-mask: var(--m) center / contain no-repeat;
}
@media (max-width: 960px) {
  .method .method__steps { grid-template-columns: 1fr; gap: 30px; max-width: 560px; margin-inline: auto; }
  .method .method__step { display: grid; grid-template-columns: auto auto 1fr; column-gap: 14px; align-items: center; text-align: start; padding: 16px 18px; }
  .method .method__num { position: static; transform: none; grid-row: span 2; align-self: center; }
  .method .method__ic { display: grid; grid-row: span 2; margin: 0; }
  .method .method__step h3 { margin-bottom: 0; align-self: end; }
  .method .method__step p { align-self: start; }
  .method .method__step + .method__step::before {
    top: -24px; inset-inline-start: 50%; width: 12px; height: 18px; transform: translateX(50%);
    --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 18' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 1v16M1 12l5 5 5-5'/%3E%3C/svg%3E");
  }
}

/* HOMEPAGE #how — the one dark band: compact, with its own spacing around it */
#how { padding-block: 64px; }   /* anchor offset comes from html { scroll-padding-top } */
#how.section--dark { background: radial-gradient(520px 280px at 88% 0%, rgba(20, 194, 159, .1), transparent 70%), linear-gradient(135deg, #5B55F2, #3B33B8); }
.section:has(+ #how) { padding-bottom: min(72px, var(--section-y)); }
#how + .section { padding-top: min(72px, var(--section-y)); }
#how .section__head { margin-bottom: 44px; }
#how .section__lead { margin-top: 12px; font-size: 1.125rem; line-height: 1.7; color: rgba(255, 255, 255, .9); text-wrap: balance; }
#how .method__step { border-color: transparent; box-shadow: 0 4px 14px rgba(23, 21, 58, .08); }
@media (min-width: 961px) { #how .container { padding-inline: 32px; } }
@media (max-width: 960px) {
  #how { padding-block: 44px; }
  #how .container { padding-inline: 20px; }
  #how h2 { font-size: 1.6875rem; }
  #how .section__head { margin-bottom: 28px; }
}

/* spacing rhythm: a white section that ends right before a tinted panel (or the final CTA) needs less
   room below it, because the panel brings its own inner padding */
.section:not(.section--soft):has(+ .section--soft) { padding-bottom: min(64px, var(--section-y)); }
.section--soft + .final-cta { padding-top: min(64px, var(--section-y)); }
/* one rule everywhere: 64px of white before and after any block (panel, hero band, hairline, final CTA);
   panels keep their own 80px inner padding. (#how keeps its approved 72px.) */
.section--soft + .section:not(.section--soft),
.page-hero + .section:not(.section--tight),
.proof + .section,
.section:not(.section--soft) + .section:not(.section--soft) { padding-top: min(64px, var(--section-y)); }
.section:not(.section--soft):has(+ .section:not(.section--soft)),
.section:not(.section--soft):has(+ .final-cta),
.article:has(+ .section--soft) { padding-bottom: min(64px, var(--section-y)); }
.section:not(.section--soft) + .final-cta { padding-top: 0; }
main > .section--soft:last-child { margin-bottom: min(64px, var(--section-y)); }
.page-home .proof + .section { padding-top: min(64px, var(--section-y)); }

/* stories whose result is text or an Arabic word instead of a number */
.story__result > span:only-child { font-weight: 600; color: var(--mint-ink); }
.case__block--result p strong { margin-inline-end: 6px; }

/* client logo next to the name (only with the client's permission) */
.story__client { display: flex; align-items: center; gap: 12px; }
.story__logo { width: 48px; height: 48px; object-fit: contain; flex: none; }
.case__title { display: flex; align-items: center; gap: 16px; }
.case__logo { width: 84px; height: 84px; object-fit: contain; flex: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 6px; }

/* stand-in badge until the client's logo arrives */
.story__logo--ph, .case__logo--ph { display: grid; place-items: center; border-radius: 12px; background: var(--purple-50); border: 1px solid var(--purple-100); color: var(--primary); font-weight: 700; font-size: 1.375rem; line-height: 1; padding: 0; }
.case__logo--ph { border-radius: 16px; font-size: 2.25rem; }
.story__logo--ph .ic { width: 24px; height: 24px; }
.case__logo--ph .ic { width: 40px; height: 40px; }

/* detailed case study: facts strip, before/after table, project-by-project */
.case__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin: 0 0 28px; background: var(--bg-band); border: 1px solid var(--purple-100); border-radius: var(--r-card); overflow: hidden; }
.case__facts > div { padding: 18px 22px; }
.case__facts > div + div { border-inline-start: 1px solid var(--purple-100); }
.case__facts dt { font-size: var(--fs-label); font-weight: 600; color: var(--mint-ink); margin-bottom: 4px; }
.case__facts dd { margin: 0; font-weight: 600; color: var(--ink-900); line-height: 1.6; }
.case__wide { margin-top: 48px; }
.case__wide > h2 { font-size: 1.375rem; margin-bottom: 18px; }
.ba { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: #fff; }
.ba__row { display: grid; grid-template-columns: .8fr 1.1fr 1.1fr; }
.ba__row + .ba__row { border-top: 1px solid var(--line); }
.ba__row > * { padding: 14px 18px; font-size: var(--fs-small); line-height: 1.65; }
.ba__row--head > * { font-size: var(--fs-label); font-weight: 700; color: var(--ink-500); background: var(--bg-soft); }
.ba__row b { color: var(--ink-900); font-weight: 600; }
.ba__before { color: var(--ink-500); }
.ba__after { background: var(--mint-50); color: var(--mint-ink); font-weight: 600; }
.ba__row--head .ba__after, .ba__row--head span:last-child { background: var(--mint-50); color: var(--mint-ink); }
.case__project { gap: 10px; }
.case__project .ticks { gap: 6px; font-size: var(--fs-small); }
.case__project .ticks li { color: var(--ink-700); }
.case__outcome { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: var(--fs-small) !important; font-weight: 600; color: var(--mint-ink) !important; }
@media (max-width: 960px) { .case__projects { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .case__facts > div + div { border-inline-start: 0; border-top: 1px solid var(--purple-100); }
  .ba__row { grid-template-columns: 1fr 1fr; }
  .ba__row b { grid-column: 1 / -1; padding-bottom: 0; }
  .ba__row--head span:first-child { display: none; }
}
.story__result strong, .case__metric strong { white-space: nowrap; }
.case__block--result p { line-height: 1.9; }

/* proof strip adapts to 3 or 4 numbers */
@media (min-width: 961px) { .proof__list { grid-template-columns: repeat(var(--n, 4), 1fr); } }

/* proof numbers: larger, so the figures lead */
@media (min-width: 641px) { .stat__value { font-size: 2rem; } .stat { padding-block: 22px; } }

/* founder photo: round, with a brand ring */
img.founder__photo { border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--purple-200), var(--shadow-md); background: #fff; }
img.founder__photo { object-position: 50% 18%; }

/* founder video button + vertical (Shorts) video modal */
.founder__video { margin-top: 18px; }
.founder__video + .link-more { margin-top: 10px; }
.video-modal--vertical .video-modal__panel { width: min(400px, 100%); }
.video-modal--vertical .video-modal__frame { aspect-ratio: 9 / 16; max-height: calc(100vh - 140px); margin-inline: auto; }

/* resource cards with a real video thumbnail */
.res__cover--img { background-size: cover; background-position: center; background-color: #1C1A3A; }
.res__cover--img::before { opacity: 1; background: linear-gradient(180deg, rgba(23, 21, 58, 0) 40%, rgba(23, 21, 58, .45)); }
.res__cover--short { background-size: contain; background-repeat: no-repeat; }
.res__cover--img .res__ic { width: 52px; height: 52px; padding: 14px; border-radius: 50%; background: rgba(91, 85, 242, .92); color: #fff; box-shadow: 0 8px 24px rgba(23, 21, 58, .35); }
.res-media .res__cover--img .res__ic { width: 76px; height: 76px; padding: 22px; }
@media (max-width: 640px) { .res__cover--img .res__ic { width: 34px; height: 34px; padding: 9px; } }

/* document resources: first page as the cover */
.res__cover--doc { background: var(--bg-band); align-items: start; padding: 14px 14px 0; }
.res__cover--doc::before { display: none; }
.res__cover--doc img { width: 62%; margin-inline: auto; border-radius: 6px 6px 0 0; box-shadow: 0 8px 24px rgba(28, 26, 58, .18); }
.res-media--doc .res__cover--doc { aspect-ratio: 16 / 8; }
.res-media--doc .res__cover--doc img { width: 44%; }
@media (max-width: 640px) { .res__cover--doc { padding: 8px 8px 0; } .res__cover--doc img { width: 100%; } .res-media--doc .res__cover--doc img { width: 60%; } }

/* systems page: two paths */
.fit__tag { font-size: var(--fs-label); font-weight: 600; color: var(--mint-ink); margin-bottom: 6px; }
.fit__col h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.fit__links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 16px; }
.fit__links .link-more { margin-top: 0; }
.fit__text { color: var(--ink-500); }
.fit__col h3 { margin-bottom: 8px; }
.page-legal .prose a { text-decoration: underline; }
.page-legal .prose strong { color: var(--ink-900); }

/* About: the founder block is the strongest part of the page */
.page-about .founder { grid-template-columns: 260px 1fr; align-items: start; }
.page-about .founder__photo { width: 260px; }
.page-about .founder h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem); }
.founder__facts { list-style: none; margin: 14px 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.founder__facts li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--purple-100); font-size: var(--fs-small); font-weight: 500; color: var(--ink-900); }
.founder__facts .ic { width: 16px; height: 16px; color: var(--mint-ink); }
@media (max-width: 640px) { .page-about .founder { grid-template-columns: 1fr; } .page-about .founder__photo { width: 140px; } }
.stat__value { font-variant-numeric: tabular-nums; }

/* lead delivery failed: email fallback note */
.result__note--warn { background: #FFF6E5; border: 1px solid #F2D9A6; color: #6B4A00; padding: 12px 14px; border-radius: 12px; }
.result__note--warn a { color: inherit; font-weight: 700; text-decoration: underline; }

/* multi-answer list questions: the first pick is marked as the most important */
.flow__options--ranked .opt.is-primary .opt__l::after { content: "الأهم"; margin-inline-start: 10px; padding: 2px 8px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }

/* phones: the hero visual is decorative only, so it is dropped entirely */
@media (max-width: 640px) { .hero .eco { display: none; } }

/* /subscribe/ landing page */
.subscribe--page { display: block; margin-block: 8px 28px; }
.subscribe--page .subscribe__form { max-width: none; }
.subscribe-page__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.page-subscribe .prose ul + p { margin-top: 16px; }
