/* =====================================================================
   GiveRefer About Us redesign — genie design system.
   All classes are gr-prefixed and the page is wrapped in .gr-about so
   these styles never leak into the rest of the Bootstrap-based site.
   Uses px (never rem — legacy html{font-size:10px} contaminates rem).
   ===================================================================== */

.gr-about {
  /* brand tokens (mirrors giverefer-home.css) */
  --gr-pink: #ec2d7a;
  --gr-magenta: #c026d3;
  --gr-purple: #9333ea;
  --gr-violet: #6d28d9;
  --gr-indigo: #4f46e5;

  --gr-bg: #fdfcff;
  --gr-fg: #1c1530;
  --gr-muted: #6b6580;
  --gr-card: #ffffff;
  --gr-border: #ece8f2;

  --gr-gradient: linear-gradient(100deg, var(--gr-pink) 0%, var(--gr-magenta) 50%, var(--gr-violet) 100%);
  --gr-shadow-soft: 0 10px 40px -12px rgba(80, 20, 90, 0.12);
  --gr-shadow-brand: 0 18px 40px -12px rgba(192, 38, 211, 0.45);
  --gr-radius: 16px;

  font-family: 'Inter', 'Open Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: var(--gr-fg);
  background: transparent;
  overflow-x: clip;
}
/* Pale purple wash behind the whole about page. */
body.grx-about-page { background: linear-gradient(180deg, #faf5ff 0%, #fdf4fa 30%, #fdfcff 60%) no-repeat; }

.gr-about *,
.gr-about *::before,
.gr-about *::after { box-sizing: border-box; }

/* Zero-specificity resets (see homepage notes: bare .gr-about h3 would
   out-rank single-class margins and collapse spacing). */
.gr-about :where(h1, h2, h3) {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -0.025em;
  margin: 0;
}
.gr-about :where(p, ul) { margin: 0; }
.gr-about :where(ul) { padding: 0; list-style: none; }
.gr-about img { max-width: 100%; display: block; }

/* Typography hardening vs legacy `#wrapper h1{…}` etc. */
.gr-about h1, .gr-about h2, .gr-about h3 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  color: var(--gr-fg);
}

/* ---------- shared ---------- */
.gr-about .gr-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gr-about .gr-gradient-text {
  background-image: var(--gr-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gr-about .gr-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px;
  border-radius: 999px; border: 1px solid rgba(236, 45, 122, .25);
  background: rgba(255, 255, 255, .8);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gr-pink); box-shadow: var(--gr-shadow-soft);
}

/* buttons — must defeat `button,.btn{background:#FB6765!important}` in upgrade/css/main.css */
.gr-about .gr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 16px !important; line-height: 1 !important;
  padding: 15px 26px !important; border-radius: 999px !important;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.gr-about .gr-btn:hover { text-decoration: none; }
.gr-about .gr-btn--primary {
  background-image: var(--gr-gradient) !important;
  background-color: transparent !important;
  color: #fff !important;
  box-shadow: var(--gr-shadow-brand) !important;
}
.gr-about .gr-btn--primary:hover { transform: scale(1.02); opacity: .96; }
.gr-about .gr-btn--outline {
  background-image: none !important;
  background-color: #fff !important;
  color: var(--gr-fg) !important;
  border-color: var(--gr-border) !important;
  box-shadow: var(--gr-shadow-soft) !important;
}
.gr-about .gr-btn--outline:hover { border-color: rgba(236, 45, 122, .35) !important; }

/* tinted icon chips */
.gr-about .gr-tint--purple { background: rgba(147, 51, 234, .12); color: var(--gr-purple); }
.gr-about .gr-tint--violet { background: rgba(109, 40, 217, .12); color: var(--gr-violet); }
.gr-about .gr-tint--green  { background: rgba(22, 163, 74, .12);  color: #16a34a; }
.gr-about .gr-tint--orange { background: rgba(245, 158, 11, .15); color: #f59e0b; }
.gr-about .gr-tint--blue   { background: rgba(59, 130, 246, .12); color: #3b82f6; }
.gr-about .gr-tint--pink   { background: rgba(236, 45, 122, .12); color: var(--gr-pink); }

/* =====================================================================
   HERO
   ===================================================================== */
.gr-abhero { position: relative; padding: 96px 0 40px; overflow: visible; }
.gr-abhero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 992px) { .gr-abhero__grid { grid-template-columns: 1fr 1.05fr; gap: 48px; } }

.gr-abhero__title { font-size: clamp(36px, 4.4vw, 56px) !important; line-height: 1.1 !important; margin-top: 22px; }
.gr-abhero__subtitle { margin-top: 20px; font-size: 18px; line-height: 1.65; color: var(--gr-muted); max-width: 460px; }

.gr-abhero__ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 575px) { .gr-abhero__ctas .gr-btn { width: 100%; } }

.gr-abhero__trust { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.gr-abhero__avatars { width: 96px; height: auto; flex: none; }
.gr-abhero__trustcopy { display: flex; flex-direction: column; gap: 2px; }
.gr-abhero__stars { display: flex; gap: 2px; color: #f5a623; }
.gr-abhero__stars svg { fill: currentColor; stroke: currentColor; }
.gr-abhero__trusttext { font-size: 14px; font-weight: 600; color: var(--gr-fg); }

.gr-abhero__stage { position: relative; }
.gr-abhero__halo {
  position: absolute; inset: -8% -6%;
  border-radius: 40px;
  background: radial-gradient(65% 65% at 50% 45%, rgba(196, 126, 235, .28) 0%, rgba(236, 45, 122, .10) 55%, rgba(253, 252, 255, 0) 100%);
  filter: blur(8px);
}
.gr-abhero__art { position: relative; z-index: 1; width: 100%; height: auto; border-radius: 28px; box-shadow: var(--gr-shadow-soft); }

/* =====================================================================
   STATS ROW
   ===================================================================== */
.gr-abstats { padding: 32px 0 8px; }
.gr-abstats__grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .gr-abstats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .gr-abstats__grid { grid-template-columns: repeat(4, 1fr); } }

.gr-abstat {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  background: var(--gr-card); border: 1px solid var(--gr-border); border-radius: 20px;
  padding: 28px 20px; box-shadow: var(--gr-shadow-soft);
}
.gr-abstat__icon {
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 14px; margin-bottom: 12px;
}
.gr-abstat__value { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 28px; font-weight: 800; color: var(--gr-fg); }
.gr-abstat__label { font-size: 15px; font-weight: 700; color: var(--gr-fg); }
.gr-abstat__sub { margin-top: 4px; font-size: 13px; color: var(--gr-muted); }

/* =====================================================================
   OUR STORY — timeline
   ===================================================================== */
.gr-abstory { padding: 72px 0 40px; }
.gr-abstory__grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 992px) { .gr-abstory__grid { grid-template-columns: 300px 1fr; gap: 44px; } }

.gr-abstory__title { margin-top: 18px; font-size: 30px !important; }
.gr-abstory__sub { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--gr-muted); }

.gr-abstory__timeline { position: relative; display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .gr-abstory__timeline { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
.gr-abstory__line { display: none; }
@media (min-width: 768px) {
  .gr-abstory__line {
    display: block; position: absolute; left: 10%; right: 10%; top: 28px; height: 0;
    border-top: 2px dashed rgba(147, 51, 234, .3);
  }
}
.gr-abstory__item { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.gr-abstory__icon {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  box-shadow: 0 0 0 6px #fff, var(--gr-shadow-soft);
}
.gr-abstory__year { margin-top: 16px; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 18px; font-weight: 800; color: var(--gr-fg); }
.gr-abstory__year--now { color: var(--gr-pink); }
.gr-abstory__body { margin-top: 8px; font-size: 13px; line-height: 1.55; color: var(--gr-muted); max-width: 190px; }

/* =====================================================================
   MISSION + HOW IT WORKS
   ===================================================================== */
.gr-abmission { padding: 48px 0; }
.gr-abmission__grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 992px) { .gr-abmission__grid { grid-template-columns: 0.92fr 1.08fr; gap: 40px; } }

.gr-abmission__card {
  background: linear-gradient(160deg, #fdf2f8 0%, #f7f2fd 100%);
  border: 1px solid var(--gr-border); border-radius: 24px;
  padding: 32px 28px; box-shadow: var(--gr-shadow-soft);
}
.gr-abmission__title { margin-top: 18px; font-size: clamp(26px, 2.6vw, 34px) !important; }
.gr-abmission__accent {
  background-image: var(--gr-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gr-abmission__row { margin-top: 20px; display: flex; gap: 20px; align-items: center; }
@media (max-width: 575px) { .gr-abmission__row { flex-direction: column-reverse; } }
.gr-abmission__text { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.gr-abmission__text p { font-size: 13.5px; line-height: 1.65; color: var(--gr-muted); }
.gr-abmission__bold { font-weight: 700 !important; color: var(--gr-fg) !important; }
.gr-abmission__art { flex: none; width: 235px; max-width: 100%; height: auto; }

.gr-abhow__title { margin-top: 18px; font-size: clamp(26px, 2.6vw, 34px) !important; }
.gr-abhow__grid {
  margin-top: 28px; display: grid; gap: 20px; align-items: stretch;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .gr-abhow__grid { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 8px; } }
.gr-abhow__step {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--gr-card); border: 1px solid var(--gr-border); border-radius: 18px;
  padding: 24px 14px; box-shadow: var(--gr-shadow-soft);
}
.gr-abhow__chip {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  color: #fff; font-size: 13px; font-weight: 800; margin-bottom: 10px;
}
.gr-chip--purple { background: var(--gr-purple); }
.gr-chip--green  { background: #16a34a; }
.gr-chip--orange { background: #f59e0b; }
.gr-chip--blue   { background: #3b82f6; }
.gr-abhow__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; }
.gr-abhow__steptitle { margin-top: 14px; font-size: 16px !important; font-weight: 800 !important; }
.gr-abhow__stepbody { margin-top: 8px; font-size: 12.5px; line-height: 1.55; color: var(--gr-muted); }
.gr-abhow__arrow { display: none; }
@media (min-width: 768px) { .gr-abhow__arrow { display: grid; place-items: center; align-self: center; color: rgba(107, 101, 128, .6); } }

/* =====================================================================
   WHY CHOOSE + GENIE PANEL
   ===================================================================== */
.gr-abwhy { padding: 48px 0; }
.gr-abwhy__grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 992px) { .gr-abwhy__grid { grid-template-columns: 1.15fr 1fr; gap: 44px; } }

.gr-abwhy__title { margin-top: 18px; font-size: clamp(26px, 2.6vw, 34px) !important; }
.gr-abwhy__accent { color: var(--gr-purple); }
.gr-abwhy__list { margin-top: 28px; display: grid; gap: 24px 20px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .gr-abwhy__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .gr-abwhy__list { grid-template-columns: repeat(4, 1fr); } }
.gr-abwhy__item { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 991px) { .gr-abwhy__item { flex-direction: row; align-items: flex-start; } }
.gr-abwhy__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; }
.gr-abwhy__itemtitle { font-size: 13.5px !important; font-weight: 800 !important; line-height: 1.3 !important; }
.gr-abwhy__itembody { margin-top: 5px; font-size: 12px; line-height: 1.5; color: var(--gr-muted); }

/* genie panel */
.gr-abgenie {
  position: relative; overflow: hidden; display: grid; gap: 12px; align-items: center;
  grid-template-columns: 1fr; border-radius: 26px; padding: 32px 28px;
  /* gradient tuned to the baked background of about/genie-card.webp so the
     art blends into the panel (sampled: #4311a3 top-left → #9322e6 bottom) */
  background: linear-gradient(160deg, #4a16a8 0%, #6525b9 48%, #8a2ae0 100%);
  box-shadow: 0 30px 60px -20px rgba(91, 33, 182, .55);
}
@media (min-width: 576px) { .gr-abgenie { grid-template-columns: 200px 1fr; gap: 20px; } }
.gr-abgenie__art { width: 100%; max-width: 210px; margin: 0 auto; border-radius: 18px; }
.gr-abgenie__pill {
  display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12);
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.gr-abgenie__title { margin-top: 14px; font-size: clamp(22px, 2.2vw, 28px) !important; color: #fff !important; line-height: 1.2 !important; }
.gr-abgenie__checks { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.gr-abgenie__checks li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .95); font-size: 14.5px; font-weight: 600; }
.gr-abgenie__checks svg { flex: none; color: #fbbf24; }
.gr-abgenie__btn {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px !important; border-radius: 999px !important;
  background: #fff !important; background-image: none !important;
  color: var(--gr-violet) !important; font-size: 15px !important; font-weight: 700;
  text-decoration: none; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35) !important;
  border: 0 !important; line-height: 1 !important; cursor: pointer;
  transition: transform .2s ease;
}
.gr-abgenie__btn:hover { transform: scale(1.03); color: var(--gr-violet) !important; text-decoration: none; }

/* =====================================================================
   COMMUNITY
   ===================================================================== */
.gr-abcommunity { padding: 48px 0 32px; }
.gr-abcommunity__head { max-width: 640px; margin: 0 auto; text-align: center; }
.gr-abcommunity__title { margin-top: 18px; font-size: clamp(26px, 2.6vw, 34px) !important; }
.gr-abcommunity__sub { margin-top: 12px; font-size: 15px; color: var(--gr-muted); }

.gr-abcommunity__grid { margin-top: 40px; display: grid; gap: 28px 20px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .gr-abcommunity__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .gr-abcommunity__grid { grid-template-columns: repeat(4, 1fr); } }
.gr-abcommunity__item { display: flex; align-items: center; gap: 14px; }
@media (min-width: 992px) {
  .gr-abcommunity__item + .gr-abcommunity__item { border-left: 1px solid var(--gr-border); padding-left: 20px; }
}
.gr-abcommunity__avatars { flex: none; width: 50px; height: auto; }
.gr-abcommunity__itemtitle { font-size: 14.5px !important; font-weight: 800 !important; }
.gr-abcommunity__itembody { margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--gr-muted); }

/* =====================================================================
   FINAL CTA
   ===================================================================== */
.gr-abcta { padding: 40px 0 80px; }
.gr-abcta__panel {
  position: relative; overflow: hidden; display: grid; gap: 24px; align-items: center;
  grid-template-columns: 1fr; border-radius: 24px; padding: 40px 24px; min-height: 150px;
  background: linear-gradient(90deg, #ea1d75 0%, #a526b7 55%, #632cdf 100%);
  box-shadow: 0 30px 60px -20px rgba(165, 38, 183, .5);
}
@media (min-width: 992px) {
  .gr-abcta__panel { grid-template-columns: 200px 1fr 240px; gap: 16px; padding: 24px 0; }
}
.gr-abcta__art { display: none; }
@media (min-width: 992px) {
  .gr-abcta__art { display: block; width: 100%; height: 100%; object-fit: contain; }
  /* fade the crop's inner edge into the panel gradient */
  .gr-abcta__art--gift {
    -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 70%, transparent 100%);
  }
  .gr-abcta__art--phone {
    -webkit-mask-image: linear-gradient(270deg, #000 78%, transparent 100%);
            mask-image: linear-gradient(270deg, #000 78%, transparent 100%);
  }
}
.gr-abcta__copy { position: relative; z-index: 1; text-align: center; }
.gr-abcta__title { font-size: clamp(26px, 2.8vw, 34px) !important; color: #fff !important; }
.gr-abcta__lead { margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, .9); }
.gr-abcta__ctas { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.gr-abcta__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px !important; border-radius: 999px !important;
  font-size: 15px !important; font-weight: 700; line-height: 1 !important;
  text-decoration: none; cursor: pointer; transition: transform .2s ease, opacity .2s ease;
}
.gr-abcta__btn:hover { transform: scale(1.03); text-decoration: none; }
.gr-abcta__btn--solid {
  background: #fff !important; background-image: none !important;
  color: var(--gr-magenta) !important; border: 0 !important;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .3) !important;
}
.gr-abcta__btn--ghost {
  background: rgba(255, 255, 255, .12) !important; background-image: none !important;
  color: #fff !important; border: 1px solid rgba(255, 255, 255, .7) !important;
}
@media (max-width: 575px) { .gr-abcta__btn { width: 100%; } }

/* =====================================================================
   Scroll-reveal (giverefer.js IntersectionObserver targets .gr-reveal)
   ===================================================================== */
.gr-about .gr-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.gr-about .gr-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .gr-about .gr-reveal { opacity: 1; transform: none; } }
