/* ==========================================================================
   pages.css -- marketing pages (about, services, reviews, use cases, contact,
   legal, auth) + the shared navbar and footer.
   Loaded after home.css, so it can reuse .sec, .sec-head, .cta2, .t-* etc.
   ========================================================================== */

/* ---------- navbar: floating glass bar ---------- */
.navbar-ap { padding: .75rem 0; background: transparent !important; box-shadow: none !important; border: 0 !important; transition: padding .3s, background .3s; }
.navbar-ap > .container { background: rgba(255,255,255,.78); backdrop-filter: blur(16px) saturate(1.6); border: 1px solid rgba(15,27,23,.07); border-radius: 20px;
  padding: .55rem .8rem .55rem 1.1rem; box-shadow: 0 10px 30px -18px rgba(15,27,23,.25); max-width: min(1180px, calc(100% - 1.5rem)); transition: box-shadow .3s, background .3s; }
.navbar-ap.scrolled > .container { background: rgba(255,255,255,.92); box-shadow: 0 16px 40px -18px rgba(15,27,23,.35); }
.navbar-ap .navbar-nav { gap: .15rem; }
.navbar-ap .nav-link { padding: .5rem .9rem !important; border-radius: 12px; color: #3b4a45; font-weight: 580; font-size: var(--fs-md); transition: background .2s, color .2s; }
.navbar-ap .nav-link::after { display: none !important; }
.navbar-ap .nav-link:hover { background: #f1f6f4; color: var(--ap-dark); }
.navbar-ap .nav-link.active { background: var(--ap-green-light); color: var(--ap-green-dark); }
.navbar-ap .nav-cta { display: flex; align-items: center; gap: .5rem; }
.navbar-ap .nav-cta .btn-ap { min-height: 42px; padding: .55rem 1.1rem; }
.navbar-toggler { width: 42px; height: 42px; border-radius: 12px; background: #f1f6f4; display: grid; place-items: center; font-size: 1.3rem; padding: 0; }
.navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) {
  .navbar-ap .navbar-collapse { padding: .8rem 0 .4rem; }
  .navbar-ap .nav-link { padding: .75rem .9rem !important; }
  .navbar-ap .nav-cta { flex-direction: column; align-items: stretch; margin-top: .5rem; padding-top: .7rem; border-top: 1px solid var(--ap-border); }
  .navbar-ap .nav-cta .nav-link { text-align: center; }
}

/* ---------- page hero ---------- */
.ph { position: relative; overflow: hidden; padding: clamp(7.5rem, 6rem + 6vw, 11rem) 0 clamp(3.5rem, 3rem + 3vw, 6rem); background: linear-gradient(180deg, #f3faf7, #fff); text-align: center; }
.ph-bg { position: absolute; inset: 0; pointer-events: none; }
.ph-bg::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(14,159,110,.16) 1px, transparent 1.2px); background-size: 26px 26px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent); -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent); }
.ph-bg i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: phFloat 14s ease-in-out infinite; }
.ph-bg i:nth-child(1) { width: 380px; height: 380px; background: #b8f0d9; left: -80px; top: -60px; }
.ph-bg i:nth-child(2) { width: 320px; height: 320px; background: #ffe9a8; right: -60px; top: 20px; animation-delay: -5s; }
.ph-bg i:nth-child(3) { width: 260px; height: 260px; background: #cfe0ff; left: 45%; bottom: -120px; animation-delay: -9s; opacity: .45; }
@keyframes phFloat { 50% { transform: translate(30px, -24px) scale(1.08); } }
.ph-in { position: relative; z-index: 1; }
.ph-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .85rem; border-radius: 999px; background: #fff; border: 1px solid var(--ap-border); box-shadow: var(--ap-shadow-sm);
  font-size: var(--fs-xs); font-weight: 700; color: var(--ap-green-dark); margin-bottom: 1.2rem; }
.ph-chip .ico { font-size: 1rem; }
.ph h1 { font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.9rem); max-width: 18ch; margin: 0 auto; }
.ph p.ph-sub { max-width: 42rem; margin: 1.1rem auto 0; font-size: var(--fs-lead); color: var(--ap-muted); }
.ph-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.8rem; }
.crumbs { display: flex; gap: .4rem; justify-content: center; align-items: center; margin-top: 1.5rem; font-size: var(--fs-xs); color: var(--ap-muted); }
.crumbs a { color: var(--ap-muted); } .crumbs a:hover { color: var(--ap-green); } .crumbs .ico { font-size: .8rem; }

/* ---------- reveal with stagger ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--apx-ease, cubic-bezier(.2,.8,.2,1)), transform .7s var(--apx-ease, cubic-bezier(.2,.8,.2,1)); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; } .js .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .ph-bg i { animation: none; } }

/* ---------- service rows with CSS mock-ups ---------- */
.svc-nav { position: sticky; top: 76px; z-index: 40; display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; padding: .5rem; margin: 0 auto 1rem; width: fit-content; max-width: 100%;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border: 1px solid var(--ap-border); border-radius: 18px; box-shadow: var(--ap-shadow-sm); }
.svc-nav a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 12px; font-size: var(--fs-sm); font-weight: 600; color: #3b4a45; }
.svc-nav a:hover, .svc-nav a.on { background: var(--ap-dark); color: #fff; }
@media (max-width: 767.98px) { .svc-nav { position: static; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; } .svc-nav a { white-space: nowrap; } }
.sx { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(3rem, 2rem + 4vw, 6rem) 0; scroll-margin-top: 90px; }
.sx.flip .sx-vis { order: 2; }
.sx-tag { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--fs-xs); font-weight: 700; padding: .3rem .75rem; border-radius: 999px; margin-bottom: 1rem; }
.sx h2 { font-size: clamp(1.7rem, 1.3rem + 1.7vw, 2.6rem); margin-bottom: .8rem; }
.sx p { color: var(--ap-muted); }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .6rem; }
.ticks li { display: flex; gap: .65rem; align-items: flex-start; font-size: var(--fs-md); }
.ticks .ico { color: var(--ap-green); font-size: 1.2rem; margin-top: .1rem; flex: none; }
@media (max-width: 991.98px) { .sx { grid-template-columns: minmax(0,1fr); } .sx.flip .sx-vis { order: 0; } }

.vis { position: relative; min-height: 340px; border-radius: 32px; display: grid; place-items: center; padding: 2rem; overflow: hidden; }
.vis::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(15,27,23,.07) 1px, transparent 1.2px); background-size: 22px 22px; }
.vis.g { background: linear-gradient(145deg, #e3f7ee, #f4fbf8); } .vis.y { background: linear-gradient(145deg, #fff3cf, #fffaf0); }
.vis.b { background: linear-gradient(145deg, #e3eeff, #f5f9ff); } .vis.r { background: linear-gradient(145deg, #ffe6ec, #fff6f8); } .vis.v { background: linear-gradient(145deg, #efe8ff, #f9f6ff); }
.mk { position: relative; z-index: 1; background: #fff; border: 1px solid rgba(15,27,23,.08); border-radius: 22px; box-shadow: 0 24px 50px -24px rgba(15,27,23,.35); padding: 1.1rem; width: min(100%, 330px); }
.mk + .mk { position: absolute; width: 190px; }
.mk-h { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: var(--fs-sm); margin-bottom: .8rem; }
.mk-h i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-style: normal; }
.mk-row { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; border-top: 1px dashed var(--ap-border); font-size: var(--fs-sm); }
.mk-row b { font-variant-numeric: tabular-nums; }
.mk .code { font-family: var(--font-mono); font-size: 1.9rem; letter-spacing: .14em; color: var(--ap-green); font-weight: 700; text-align: center; padding: .6rem 0; }
.float { animation: bob 5s ease-in-out infinite; } .float.s2 { animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-9px); } }
.mk-bars { display: flex; align-items: flex-end; gap: 7px; height: 110px; padding-top: .5rem; }
.mk-bars i { flex: 1; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #34d399, var(--ap-green)); transform-origin: bottom; animation: grow 1.2s var(--apx-ease, ease) both; }
.mk-bars i:nth-child(1){height:28%}.mk-bars i:nth-child(2){height:42%;animation-delay:.07s}.mk-bars i:nth-child(3){height:38%;animation-delay:.14s}.mk-bars i:nth-child(4){height:60%;animation-delay:.21s}
.mk-bars i:nth-child(5){height:55%;animation-delay:.28s}.mk-bars i:nth-child(6){height:78%;animation-delay:.35s}.mk-bars i:nth-child(7){height:96%;animation-delay:.42s}
@keyframes grow { from { transform: scaleY(0); } }
.nets { display: flex; gap: .5rem; margin-bottom: .8rem; } .nets img { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--ap-border); background: #fff; object-fit: contain; }
.credit { position: relative; width: min(100%, 320px); aspect-ratio: 1.6; border-radius: 22px; color: #fff; padding: 1.2rem; z-index: 1; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 120% at 100% 0%, #6d4ae6 0%, transparent 55%), linear-gradient(135deg, #1b2a24, #0f1b17); box-shadow: 0 30px 50px -22px rgba(30,20,90,.6); }
.credit .chip-ic { width: 38px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, #f8d77a, #d9a521); }
.credit .no { font-family: var(--font-mono); letter-spacing: .12em; font-size: 1.05rem; } .credit small { opacity: .7; }

/* ---------- value / feature cards ---------- */
.vgrid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }
.vc { background: #fff; border: 1px solid var(--ap-border); border-radius: 24px; padding: 1.6rem; transition: transform .3s var(--apx-ease, ease), box-shadow .3s, border-color .3s; }
.vc:hover { transform: translateY(-5px); box-shadow: var(--ap-shadow); border-color: rgba(14,159,110,.35); }
.vc i { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1.1rem; font-style: normal; }
.vc h3 { margin-bottom: .4rem; } .vc p { margin: 0; font-size: var(--fs-sm); color: var(--ap-muted); line-height: 1.55; }
@media (max-width: 991.98px) { .vgrid { grid-template-columns: repeat(2, minmax(0,1fr)); } } @media (max-width: 575.98px) { .vgrid { grid-template-columns: minmax(0,1fr); } }

/* flow: fund -> buy -> delivered or refunded */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; position: relative; counter-reset: f; }
.flow > div { position: relative; background: #fff; border: 1px solid var(--ap-border); border-radius: 24px; padding: 1.6rem 1.4rem 1.4rem; counter-increment: f; }
.flow > div::before { content: counter(f); position: absolute; top: -14px; left: 1.4rem; width: 30px; height: 30px; border-radius: 10px; background: var(--ap-dark); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: var(--fs-sm); }
.flow h3 { margin: .3rem 0 .4rem; } .flow p { margin: 0; color: var(--ap-muted); font-size: var(--fs-sm); }
@media (max-width: 767.98px) { .flow { grid-template-columns: minmax(0,1fr); gap: 1.4rem; } }

/* dark stats band */
.band { background: var(--ap-dark); color: #fff; border-radius: 32px; padding: clamp(2rem, 4vw, 3.2rem); display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.5rem; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(14,159,110,.5), transparent 70%); }
.band > div { position: relative; z-index: 1; } .band b { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); letter-spacing: -.04em; color: #4ade9d; line-height: 1.1; }
.band span { color: rgba(255,255,255,.75); font-size: var(--fs-sm); }
@media (max-width: 767.98px) { .band { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }

/* ---------- use-case cards ---------- */
.uc { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.ucard { background: #fff; border: 1px solid var(--ap-border); border-radius: 26px; padding: 1.7rem; display: flex; flex-direction: column; gap: .8rem; transition: transform .3s var(--apx-ease, ease), box-shadow .3s; }
.ucard:hover { transform: translateY(-5px); box-shadow: var(--ap-shadow); }
.ucard .who { display: flex; align-items: center; gap: .8rem; } .ucard .who i { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; font-style: normal; }
.ucard .who b { display: block; font-family: var(--font-display); font-size: var(--fs-lg); letter-spacing: -.02em; } .ucard .who span { font-size: var(--fs-xs); color: var(--ap-muted); }
.ucard p { margin: 0; color: var(--ap-muted); font-size: var(--fs-sm); } .ucard .ticks { margin: .2rem 0 0; } .ucard .ticks li { font-size: var(--fs-sm); }
@media (max-width: 991.98px) { .uc { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } } @media (max-width: 575.98px) { .uc { grid-template-columns: minmax(0,1fr); } }

/* ---------- review form ---------- */
.rv { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
@media (max-width: 991.98px) { .rv { grid-template-columns: minmax(0,1fr); } }
.panel { background: #fff; border: 1px solid var(--ap-border); border-radius: 28px; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--ap-shadow-sm); }
.stars { display: flex; gap: .3rem; flex-direction: row-reverse; justify-content: flex-end; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { cursor: pointer; font-size: 2.2rem; line-height: 1; color: #d9e1dd; transition: color .15s, transform .15s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--ap-gold); }
.stars label:hover { transform: scale(1.15); }
.f-lab { display: block; font-size: var(--fs-xs); font-weight: 650; color: #33423d; margin: 0 0 .35rem; }
.f-in { width: 100%; background: #f8fbfa; border: 1.5px solid var(--ap-border); border-radius: 14px; padding: .8rem 1rem; min-height: 50px; color: var(--ap-dark); transition: border-color .2s, box-shadow .2s, background .2s; font-size: 1rem; }
.f-in:focus { outline: 0; background: #fff; border-color: var(--ap-green); box-shadow: 0 0 0 4px rgba(14,159,110,.14); }
textarea.f-in { min-height: 130px; resize: vertical; }
.promise { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 0; border-top: 1px solid var(--ap-border); }
.promise:first-child { border-top: 0; padding-top: 0; }
.promise i { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 1.25rem; flex: none; font-style: normal; }
.promise b { display: block; font-family: var(--font-display); letter-spacing: -.015em; } .promise span { font-size: var(--fs-sm); color: var(--ap-muted); }

/* ---------- contact ---------- */
.ct { display: grid; grid-template-columns: .minmax(0,85fr) minmax(0,1.15fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
@media (max-width: 991.98px) { .ct { grid-template-columns: minmax(0,1fr); } }
.ct-card { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--ap-border); border-radius: 20px; color: inherit; transition: transform .25s var(--apx-ease, ease), box-shadow .25s, border-color .25s; margin-bottom: .8rem; }
a.ct-card:hover { transform: translateX(4px); box-shadow: var(--ap-shadow-sm); border-color: rgba(14,159,110,.4); color: inherit; }
.ct-card i { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 1.4rem; font-style: normal; flex: none; }
.ct-card b { display: block; font-family: var(--font-display); letter-spacing: -.015em; } .ct-card span { font-size: var(--fs-sm); color: var(--ap-muted); }

/* ---------- accordion ---------- */
.faq-list .accordion-item { border: 1px solid var(--ap-border) !important; border-radius: 18px !important; margin-bottom: .7rem; overflow: hidden; background: #fff; box-shadow: none; }
.faq-list .accordion-button { background: #fff; font-weight: 650; font-size: var(--fs-md); padding: 1.1rem 1.3rem; box-shadow: none !important; color: var(--ap-dark); }
.faq-list .accordion-button:not(.collapsed) { background: var(--ap-green-light); color: var(--ap-green-dark); }
.faq-list .accordion-body { color: var(--ap-muted); font-size: var(--fs-md); }

/* ---------- footer ---------- */
.ft { background: #0b1411; color: rgba(255,255,255,.72); padding: clamp(3rem, 5vw, 5rem) 0 1.5rem; margin-top: 0; }
.ft-top { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,2fr); gap: 3rem; }
.ft-brand p { max-width: 22rem; margin: 1rem 0; font-size: var(--fs-sm); }
.ft-contact { display: grid; gap: .1rem; } .ft-contact a { display: inline-flex !important; align-items: center; gap: .55rem; padding: .3rem 0 !important; }
.ft-contact .ico { color: var(--ap-gold); }
.ft-cols { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; }
.ft h5 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .8rem; }
.ft a { color: rgba(255,255,255,.68); display: block; padding: .28rem 0; font-size: var(--fs-sm); transition: color .2s, transform .2s; }
.ft a:hover { color: #fff; transform: translateX(3px); }
.ft .footer-bottom { margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: var(--fs-xs); color: rgba(255,255,255,.55); }
@media (max-width: 767.98px) { .ft-top { grid-template-columns: minmax(0,1fr); gap: 2rem; } .ft-cols { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }

/* ---------- legal pages ---------- */
.legal { max-width: 46rem; margin: 0 auto; }
.legal h2 { font-size: var(--fs-xl); margin: 2rem 0 .6rem; } .legal p, .legal li { color: #44524d; font-size: var(--fs-md); line-height: 1.7; }
.ft .ft-brand p { color: rgba(255,255,255,.72); }
.ft .navbar-brand-ap { font-size: 1.25rem; }
.ft .navbar-brand-ap{display:inline-flex;align-items:center;gap:.6rem}
