/* ══════════════════════════════════════════════════════════════════════
   MNORY — About Us page
   Intro band uses the header's blue-to-black gradient. Class names avoid
   "hero"/"-banner": combined.css forces headings inside those white.
   ══════════════════════════════════════════════════════════════════════ */

.ab {
  --ab-surface: #ffffff;
  --ab-soft: #f6f8fc;
  --ab-border: #e5e9f0;
  --ab-text: #0f172a;
  --ab-muted: #64748b;
  --ab-brand: var(--mn-brand, #2563eb);
  --ab-brand-soft: rgba(37, 99, 235, .08);
  --ab-radius: 22px;
  --ab-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .06);
  color: var(--ab-text);
}
body.dark-mode .ab {
  --ab-surface: #151a24;
  --ab-soft: #0f141d;
  --ab-border: #262f3f;
  --ab-text: #f1f5f9;
  --ab-muted: #94a3b8;
  --ab-brand: #60a5fa;
  --ab-brand-soft: rgba(96, 165, 250, .12);
  --ab-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}

.ab h1, .ab h2, .ab h3 { color: inherit; }

/* ── Buttons & chips ─────────────────────────────────────────────── */
.ab-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.ab-btn .material-icons { font-size: 20px; }
.ab-btn:hover { transform: translateY(-2px); }
.ab-btn--light { background: #fff; color: var(--mn-brand, #2563eb); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.ab-btn--light:hover { color: var(--mn-brand, #2563eb); }
.ab-btn--outline { border: 1.5px solid rgba(255, 255, 255, .45); color: #fff; }
.ab-btn--outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.ab-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .2);
  font-size: .82rem;
  font-weight: 700;
}
.ab-chip .material-icons { font-size: 17px; }

/* ── Intro ───────────────────────────────────────────────────────── */
.ab-intro {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0;
  color: #fff;
  background: linear-gradient(135deg, #4f8bff 0%, var(--mn-brand, #2563eb) 45%, #000 100%);
  isolation: isolate;
}
.ab-intro::before,
.ab-intro::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}
.ab-intro::before { width: 520px; height: 520px; top: -220px; inset-inline-end: -120px; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%); }
.ab-intro::after { width: 380px; height: 380px; bottom: -220px; inset-inline-start: 10%; background: radial-gradient(circle, rgba(79, 139, 255, .45), transparent 70%); }

.ab-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
}
.ab .ab-intro-title {
  margin: 1.1rem 0 1rem;
  color: #fff;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.25;
}
.ab-intro-lead { margin: 0 0 1.75rem; max-width: 560px; color: rgba(255, 255, 255, .82); font-size: 1.02rem; line-height: 1.8; }
.ab-intro-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.ab-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.ab-stat {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1.5rem 1.25rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ab-stat strong { font-size: 2.1rem; font-weight: 800; line-height: 1.1; color: #fff; }
/* Keep "10K+" / "98%" in LTR order inside RTL pages, still aligned to the start edge */
.ab-stat strong { align-self: flex-start; direction: ltr; unicode-bidi: isolate; }
.ab-stat span { font-size: .88rem; color: rgba(255, 255, 255, .75); }

/* ── Sections ────────────────────────────────────────────────────── */
.ab-section { padding: 4.5rem 0; background: var(--ab-surface); }
.ab-section--soft { background: var(--ab-soft); }
.ab-section--last { padding-bottom: 5rem; }

.ab-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.ab-eyebrow {
  display: inline-block;
  margin-bottom: .6rem;
  color: var(--ab-brand);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ab .ab-title { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; line-height: 1.4; color: var(--ab-text); }

/* Shared icon tile */
.ab-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 24px;
  background: var(--tone-bg);
  color: var(--tone);
}
.ab-tone-blue   { --tone: #2563eb; --tone-bg: rgba(37, 99, 235, .1); }
.ab-tone-teal   { --tone: #0f766e; --tone-bg: rgba(15, 118, 110, .1); }
.ab-tone-violet { --tone: #7c3aed; --tone-bg: rgba(124, 58, 237, .1); }
.ab-tone-amber  { --tone: #d97706; --tone-bg: rgba(217, 119, 6, .12); }
.ab-tone-pink   { --tone: #db2777; --tone-bg: rgba(219, 39, 119, .1); }
.ab-tone-green  { --tone: #059669; --tone-bg: rgba(5, 150, 105, .1); }
body.dark-mode .ab-icon { filter: brightness(1.4); }

/* ── Story + mission ─────────────────────────────────────────────── */
.ab-story {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
}
.ab-story-text .ab-title { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.6; }
.ab-story-text p { margin: 1.25rem 0 0; color: var(--ab-muted); font-size: 1rem; line-height: 1.85; }

.ab-mission {
  position: relative;
  margin: 0;
  padding: 2rem;
  border-radius: var(--ab-radius);
  background: linear-gradient(160deg, var(--ab-brand-soft), transparent 70%), var(--ab-surface);
  border: 1px solid var(--ab-border);
  box-shadow: var(--ab-shadow);
}
.ab-mission-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4f8bff, var(--mn-brand, #2563eb));
  color: #fff;
  font-size: 26px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .3);
}
.ab-mission figcaption { margin: 1.1rem 0 .5rem; color: var(--ab-brand); font-weight: 800; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; }
.ab-mission blockquote { margin: 0; font-size: 1.05rem; line-height: 1.8; font-weight: 500; color: var(--ab-text); }

/* ── One platform paths ──────────────────────────────────────────── */
.ab-paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.ab-path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--ab-surface);
  border: 1px solid var(--ab-border);
  color: var(--ab-text);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ab-path:hover { transform: translateY(-4px); border-color: var(--ab-brand); box-shadow: var(--ab-shadow); color: var(--ab-text); }
.ab-path .ab-icon { margin-bottom: .6rem; }
.ab-path strong { font-size: 1.05rem; }
.ab-path > span:not(.ab-icon):not(.ab-path-go) { color: var(--ab-muted); font-size: .88rem; line-height: 1.55; }
.ab-path-go {
  position: absolute;
  top: 1.5rem;
  inset-inline-end: 1.25rem;
  color: var(--ab-muted);
  font-size: 20px;
  transition: color .2s ease, transform .2s ease;
}
[dir="rtl"] .ab-path-go { inset-inline-end: auto; left: 1.25rem; transform: scaleX(-1); }
.ab-path:hover .ab-path-go { color: var(--ab-brand); }

/* ── Values ──────────────────────────────────────────────────────── */
.ab-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.ab-value {
  padding: 1.75rem;
  border-radius: 20px;
  background: var(--ab-surface);
  border: 1px solid var(--ab-border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ab-value:hover { transform: translateY(-3px); box-shadow: var(--ab-shadow); }
.ab-value h3 { margin: 1.1rem 0 .45rem; font-size: 1.08rem; font-weight: 700; }
.ab-value p { margin: 0; color: var(--ab-muted); font-size: .92rem; line-height: 1.7; }

/* ── Timeline ────────────────────────────────────────────────────── */
.ab-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ab-timeline::before {
  content: "";
  position: absolute;
  top: 9px;
  inset-inline: 9px;
  height: 2px;
  background: linear-gradient(90deg, var(--ab-brand), var(--ab-border));
}
[dir="rtl"] .ab-timeline::before { background: linear-gradient(-90deg, var(--ab-brand), var(--ab-border)); }
.ab-timeline li { position: relative; padding-top: 2.25rem; }
.ab-timeline-dot {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ab-brand);
  box-shadow: 0 0 0 5px var(--ab-brand-soft), 0 0 0 1px var(--ab-surface) inset;
}
.ab-timeline li.is-future .ab-timeline-dot { background: var(--ab-surface); border: 2px dashed var(--ab-brand); box-shadow: none; }
.ab-timeline-year {
  display: inline-block;
  padding: .2rem .7rem;
  border-radius: 999px;
  background: var(--ab-brand-soft);
  color: var(--ab-brand);
  font-size: .82rem;
  font-weight: 800;
}
.ab-timeline h3 { margin: .8rem 0 .4rem; font-size: 1.08rem; font-weight: 700; }
.ab-timeline p { margin: 0; color: var(--ab-muted); font-size: .92rem; line-height: 1.7; }

/* ── Why Mnory ───────────────────────────────────────────────────── */
.ab-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 2rem; }
.ab-feature { display: flex; align-items: flex-start; gap: 1rem; }
.ab-feature > .material-icons {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ab-brand-soft);
  color: var(--ab-brand);
  font-size: 22px;
}
.ab-feature h3 { margin: 0 0 .3rem; font-size: 1rem; font-weight: 700; }
.ab-feature p { margin: 0; color: var(--ab-muted); font-size: .9rem; line-height: 1.65; }

/* ── CTA + contact ───────────────────────────────────────────────── */
.ab-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 2.75rem;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #4f8bff 0%, var(--mn-brand, #2563eb) 45%, #000 100%);
  box-shadow: 0 24px 60px rgba(37, 99, 235, .25);
}
.ab .ab-cta h2 { margin: 0 0 .6rem; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: #fff; }
.ab-cta-text p { margin: 0 0 1.5rem; color: rgba(255, 255, 255, .82); line-height: 1.75; max-width: 460px; }

.ab-contact {
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ab .ab-contact h3 { margin: 0 0 .9rem; font-size: 1.05rem; font-weight: 700; color: #fff; }
.ab-contact-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .65rem .5rem;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  transition: background .15s ease;
}
a.ab-contact-row:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ab-contact-row > .material-icons {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .15);
  font-size: 19px;
}
.ab-contact-row > span:last-child { display: flex; flex-direction: column; min-width: 0; font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.ab-contact-row small { color: rgba(255, 255, 255, .65); font-weight: 500; font-size: .76rem; }
[dir="rtl"] .ab-contact-row span[dir="ltr"] { text-align: right; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .ab-intro { padding: 3rem 0; }
  .ab-intro-grid, .ab-story, .ab-cta { grid-template-columns: 1fr; gap: 2rem; }
  .ab-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-values, .ab-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-section { padding: 3.5rem 0; }
  .ab-cta { padding: 2rem; }
}
@media (max-width: 575.98px) {
  .ab-intro { padding: 2.25rem 0; }
  .ab-stat { padding: 1.1rem 1rem; }
  .ab-stat strong { font-size: 1.6rem; }
  .ab-section { padding: 2.75rem 0; }
  .ab-head { margin-bottom: 1.75rem; }
  .ab-paths, .ab-values, .ab-features { grid-template-columns: 1fr; }
  .ab-timeline { grid-template-columns: 1fr; gap: 1.5rem; padding-inline-start: 2.25rem; }
  .ab-timeline::before { top: 9px; bottom: 9px; inset-inline: auto; inset-inline-start: 9px; width: 2px; height: auto; background: linear-gradient(180deg, var(--ab-brand), var(--ab-border)); }
  [dir="rtl"] .ab-timeline::before { background: linear-gradient(180deg, var(--ab-brand), var(--ab-border)); }
  .ab-timeline li { padding-top: 0; }
  .ab-timeline-dot { inset-inline-start: -2.25rem; }
  .ab-cta { padding: 1.5rem; border-radius: 22px; }
  .ab-intro-actions .ab-btn { flex: 1; justify-content: center; }
}
