/* ==========================================================================
   FadPay Next — marketing page styles (hero, parallax, 3D phone, sections)
   ========================================================================== */

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 6rem); overflow: clip; }
.hero::before { content:""; position:absolute; inset:0; background: var(--grad-hero); pointer-events:none; z-index:0; }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } }

.hero h1 { font-size: var(--fs-display); letter-spacing: -.035em; }
.hero h1 .gradient-text { display: inline-block; }
.hero .lead { margin-top: 1.4rem; max-width: 52ch; }
@media (max-width: 960px){ .hero .lead { margin-inline: auto; } }
.hero-cta { display: flex; gap: .8rem; margin-top: 2rem; flex-wrap: wrap; }
@media (max-width: 960px){ .hero-cta { justify-content: center; } }
.hero-meta { display: flex; gap: 1.6rem; margin-top: 2.2rem; flex-wrap: wrap; }
@media (max-width: 960px){ .hero-meta { justify-content: center; } }
.hero-meta .k { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.hero-meta .v { font-size: var(--fs-xs); color: var(--text-3); }

/* Parallax decorative orbs ------------------------------------------------ */
.orb { position: absolute; border-radius: 50%; filter: blur(30px); opacity: .5; z-index: 0; pointer-events: none; }
.orb.b1 { width: 360px; height: 360px; background: radial-gradient(circle at 30% 30%, #0171cb, transparent 70%); top: -80px; left: -60px; }
.orb.b2 { width: 300px; height: 300px; background: radial-gradient(circle at 30% 30%, #2FC4D8, transparent 70%); bottom: -60px; right: -40px; opacity: .4; }
.orb.b3 { width: 220px; height: 220px; background: radial-gradient(circle at 30% 30%, #35B15A, transparent 70%); top: 30%; right: 20%; opacity: .3; }

/* -------- 3D phone ------------------------------------------------------- */
.phone-stage { position: relative; display: grid; place-items: center; perspective: 1600px; min-height: 620px; }
@media (max-width: 960px){ .phone-stage { min-height: 560px; margin-top: 2rem; } }

.phone {
  position: relative; width: 310px; height: 632px;
  transform-style: preserve-3d;
  transform: rotateY(-18deg) rotateX(6deg) rotateZ(1deg);
  transition: transform .3s var(--ease);
  will-change: transform;
}
.phone.no-tilt { transform: none; }
.phone-frame {
  position: absolute; inset: 0; border-radius: 46px;
  background: linear-gradient(150deg, #2a3550, #0c1730);
  padding: 12px;
  box-shadow:
    0 2px 3px rgba(255,255,255,.25) inset,
    0 -2px 6px rgba(0,0,0,.5) inset,
    var(--shadow-xl),
    0 60px 90px -50px rgba(10,30,61,.9);
}
.phone-screen {
  position: relative; height: 100%; width: 100%; border-radius: 36px; overflow: hidden;
  background: var(--grad-navy);
  box-shadow: 0 0 0 2px rgba(0,0,0,.4) inset;
}
.phone .island {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; background: #05101f; border-radius: 999px; z-index: 8;
  display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding-right: 9px;
}
.phone .island::before { content:""; width: 8px; height: 8px; border-radius: 50%; background: #16324f; box-shadow: 0 0 0 2px #0a1a2c; }
.phone .glare { position: absolute; inset: 0; z-index: 7; pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 70%, rgba(255,255,255,.06) 100%); }
.phone .btn-vol { right: -3px; top: 150px; width: 3px; height: 58px; position: absolute; background: #1a2740; border-radius: 3px; }
.phone .btn-pow { left: -3px; top: 176px; width: 3px; height: 76px; position: absolute; background: #1a2740; border-radius: 3px; }

/* floating parallax cards around the phone */
.float-card {
  position: absolute; z-index: 5; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: .8rem 1rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .7rem; will-change: transform;
}
.float-card .fc-ic { width: 2.2rem; height: 2.2rem; border-radius: var(--r-sm); display: grid; place-items: center; color: #fff; flex: none; }
.float-card .fc-t { font-size: .78rem; font-weight: 800; color: var(--text); line-height: 1.15; }
.float-card .fc-s { font-size: .68rem; color: var(--text-3); }
.float-card.fc-1 { top: 8%; left: -6%; }
.float-card.fc-2 { bottom: 12%; right: -8%; }
.float-card.fc-3 { bottom: 34%; left: -10%; }
@media (max-width: 520px){ .float-card { display: none; } }

/* ---- The FadPay app UI recreated inside the screen --------------------- */
.fpapp { position: absolute; inset: 0; color: #EAF1FB; font-size: 13px; }
.fpapp-screen { position: absolute; inset: 0; opacity: 0; transform: scale(1.02); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; padding: 46px 16px 0; overflow: hidden; }
.fpapp-screen.active { opacity: 1; transform: none; }

.fpapp-top { display: flex; align-items: center; gap: .55rem; }
.fpapp-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; }
.fpapp-hi { font-size: 10px; color: #9FB2CE; }
.fpapp-name { font-size: 13px; font-weight: 800; color: #fff; }
.fpapp-bell { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }

.fpapp-balance { margin-top: 14px; border-radius: 20px; padding: 16px; background: linear-gradient(160deg,#1a3d6e,#0c2244); border: 1px solid rgba(120,170,240,.18); box-shadow: 0 18px 30px -18px rgba(0,0,0,.7); }
.fpapp-balance .lbl { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #8FA6C8; }
.fpapp-balance .amt { font-size: 26px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fpapp-balance .amt small { font-size: 12px; font-weight: 700; color: #9FB2CE; margin-left: 3px; }
.fpapp-chip { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 10px; font-weight: 700; color: #35C46A; background: rgba(53,196,106,.14); padding: 3px 8px; border-radius: 999px; }

.fpapp-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-top: 14px; }
.fpapp-action { background: rgba(255,255,255,.06); border-radius: 14px; padding: 10px 4px; text-align: center; }
.fpapp-action .ai { width: 30px; height: 30px; margin: 0 auto 6px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.fpapp-action .at { font-size: 9px; color: #C7D5EA; font-weight: 700; }

.fpapp-sec { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #7C90B2; margin: 16px 2px 8px; font-weight: 800; }
.fpapp-tx { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.04); margin-bottom: 6px; }
.fpapp-tx .txi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #fff; }
.fpapp-tx .txn { font-size: 11px; font-weight: 700; color: #EAF1FB; }
.fpapp-tx .txs { font-size: 9px; color: #8798B6; }
.fpapp-tx .txa { margin-left: auto; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.txa.pos { color: #35C46A; } .txa.neg { color: #EAF1FB; }

.fpapp-tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 62px; background: rgba(8,22,44,.86); backdrop-filter: blur(10px); border-top: 1px solid rgba(120,170,240,.12); display: flex; align-items: center; justify-content: space-around; padding: 0 14px 8px; }
.fpapp-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 8px; color: #6E82A4; }
.fpapp-tab.on { color: #0171cb; }
.fpapp-tab svg { width: 18px; height: 18px; }
.fpapp-fab { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; margin-top: -22px; box-shadow: 0 10px 22px -6px rgba(1,113,203,.55), 0 0 0 4px rgba(8,22,44,.55); }
.fpapp-fab img { width: 26px; height: auto; display: block; }

/* Pro payroll mini screen */
.fpapp-pro-head { font-size: 15px; font-weight: 800; color: #fff; margin-top: 6px; }
.fpapp-pro-sub { font-size: 10px; color: #9FB2CE; margin-bottom: 12px; }
.fpapp-emp { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.05); margin-bottom: 6px; }
.fpapp-emp .ea { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; flex: none; }
.fpapp-emp .en { font-size: 11px; font-weight: 700; }
.fpapp-emp .er { font-size: 8.5px; color: #8798B6; }
.fpapp-emp .ep { margin-left: auto; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fpapp-emp .echeck { width: 16px; height: 16px; border-radius: 50%; background: rgba(53,196,106,.2); color: #35C46A; display: grid; place-items: center; flex: none; }
.fpapp-paybtn { position: absolute; left: 16px; right: 16px; bottom: 22px; background: var(--grad-brand); color: #fff; border-radius: 16px; padding: 13px; text-align: center; font-weight: 800; font-size: 13px; box-shadow: 0 14px 26px -10px rgba(30,111,224,.7); }

/* screen dots */
.phone-dots { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.phone-dots button { width: 7px; height: 7px; border-radius: 999px; background: var(--border); transition: all var(--dur-1) var(--ease); }
.phone-dots button.on { width: 20px; background: var(--brand); }

/* How it works ------------------------------------------------------------ */
.step { position: relative; padding-left: 3.4rem; }
.step .n { position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--grad-brand); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: var(--glow-brand); }
.step h3 { font-size: 1.15rem; }
.step p { margin-top: .4rem; font-size: var(--fs-sm); }

/* Split feature (image + text) ------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.split.rev .split-visual { order: 2; }
@media (max-width: 900px){ .split { grid-template-columns: 1fr; } .split.rev .split-visual { order: 0; } }
.split-visual { position: relative; border-radius: var(--r-2xl); padding: clamp(1.4rem,3vw,2.4rem); background: var(--grad-navy); box-shadow: var(--shadow-xl); overflow: hidden; }
.split-visual::before { content:""; position:absolute; inset:0; background: var(--grad-hero); opacity:.7; }
.split-visual > * { position: relative; }

.checklist li { display: flex; gap: .7rem; align-items: flex-start; padding: .45rem 0; color: var(--text-2); }
.checklist li svg { flex: none; color: var(--success); width: 1.25rem; height: 1.25rem; margin-top: .15rem; }
.checklist li b { color: var(--text); }

/* Payroll visual card ----------------------------------------------------- */
.pay-visual { background: var(--surface); border-radius: var(--r-lg); padding: 1.1rem; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.pay-row { display: flex; align-items: center; gap: .7rem; padding: .6rem .3rem; border-bottom: 1px solid var(--hairline); }
.pay-row:last-child { border-bottom: 0; }
.pay-row .pa { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .78rem; flex: none; }
.pay-row .pn { font-weight: 700; font-size: .9rem; }
.pay-row .pr { font-size: var(--fs-xs); color: var(--text-3); }
.pay-row .pamt { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.pay-row .pdone { color: var(--success); }

/* Code block (developers) ------------------------------------------------- */
.code-card { background: #0b1b33; border-radius: var(--r-lg); border: 1px solid #1e3a61; overflow: hidden; box-shadow: var(--shadow-xl); }
.code-head { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; border-bottom: 1px solid #1e3a61; }
.code-head .dot { width: .7rem; height: .7rem; border-radius: 50%; background: #33507e; }
.code-head .dot.r{background:#ff5f57} .code-head .dot.y{background:#febc2e} .code-head .dot.g{background:#28c840}
.code-head .fname { margin-left: .6rem; font-size: var(--fs-xs); color: #9FB2CE; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.code-body { padding: 1.1rem 1.2rem; overflow-x: auto; }
.code-body pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .82rem; line-height: 1.7; color: #cdd9ee; }
.code-body .k { color: #7cc7ff; } .code-body .s { color: #8ee6a8; } .code-body .c { color: #6784a8; } .code-body .p { color: #f0a868; } .code-body .fn { color: #e2c4ff; }

/* Pricing ----------------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; align-items: stretch; }
@media (max-width: 900px){ .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.featured { border-color: var(--brand); box-shadow: var(--glow-brand); }
.price-card .tier { font-weight: 800; font-size: 1.1rem; }
.price-card .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin-top: .6rem; }
.price-card .amount span { font-size: 1rem; color: var(--text-3); font-weight: 600; }
.price-card ul { margin: 1.2rem 0; display: flex; flex-direction: column; gap: .6rem; }
.price-card ul li { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--text-2); }
.price-card ul li svg { color: var(--success); flex: none; width: 1.1rem; height: 1.1rem; margin-top: .15rem; }
.price-card .btn { margin-top: auto; }
.price-tag { position: absolute; top: -.8rem; right: 1.2rem; }

/* CTA banner -------------------------------------------------------------- */
.cta-banner { position: relative; overflow: hidden; border-radius: var(--r-2xl); background: var(--grad-navy); color: #fff; padding: clamp(2.5rem,6vw,4.5rem); text-align: center; box-shadow: var(--shadow-xl); }
.cta-banner::before { content:""; position:absolute; inset:0; background: var(--grad-hero); opacity:.9; }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #C7D5EA; max-width: 46ch; margin: 1rem auto 2rem; }

/* Auth (login / register) ------------------------------------------------- */
.auth-wrap { min-height: calc(100vh / 0.9); zoom: 0.9; display: grid; grid-template-columns: 1.15fr 0.85fr;
  background-color: var(--navy); background-image: var(--auth-img);
  background-size: cover; background-position: right center; background-repeat: no-repeat; }
.auth-main { order: 1; }   /* form on the LEFT */
.auth-aside { order: 2; }  /* image + copy on the RIGHT */
@media (max-width: 900px){ .auth-wrap { grid-template-columns: 1fr; } }
/* The account-type image lives on .auth-wrap (full width); the aside is
   transparent so the image shows through, with a light left/bottom darken to
   keep the overlaid copy legible over the photo's own dark area. */
.auth-aside { position: relative; overflow: hidden; background: transparent; color: #fff; padding: clamp(2rem,4vw,3.5rem); display: flex; flex-direction: column; }
.auth-aside::after { content:""; position:absolute; inset:0; z-index:0;
  background:
    linear-gradient(180deg, rgba(6,17,40,0) 58%, rgba(6,17,40,.55) 100%),
    linear-gradient(108deg, rgba(6,17,40,.62) 0%, rgba(6,17,40,.26) 30%, rgba(6,17,40,0) 55%); }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside .brand .wordmark, .auth-aside .auth-quote, .auth-aside .auth-senegal { text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.auth-senegal { margin-top: auto; padding-top: 1.5rem; display: inline-flex; align-items: center; gap: .55rem; font-size: .92rem; font-weight: 700; color: #fff; }
.auth-senegal .flag { font-size: 1.2rem; }
@media (max-width: 900px){ .auth-aside { display: none; } }
.auth-aside .brand .wordmark { color: #fff; }
.auth-aside .brand .wordmark .wm-pay, .auth-aside .brand .wordmark .wm-next { color: var(--brand-2); }
.auth-quote { margin-top: auto; }
.auth-quote h2 { color: #fff; font-size: clamp(1.6rem,1.2rem+1.6vw,2.4rem); line-height: 1.15; }
.auth-quote p { color: #C7D5EA; margin-top: 1rem; }
.auth-props { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.auth-prop { display: flex; gap: .8rem; align-items: flex-start; }
.auth-prop .ap-ic { width: 2.4rem; height: 2.4rem; border-radius: var(--r-sm); background: rgba(255,255,255,.12); display: grid; place-items: center; flex: none; backdrop-filter: blur(6px); }
.auth-prop b { color: #fff; } .auth-prop span { color: #B9C8E0; font-size: var(--fs-sm); }

/* Form panel: opaque on the right (form stays readable), fading to transparent
   on the left so the shared background image shows through toward the middle. */
.auth-main { display: flex; flex-direction: column; padding: clamp(1.5rem,4vw,3rem);
  background: linear-gradient(to right, var(--bg) 0%, var(--bg) 52%, color-mix(in srgb, var(--bg) 55%, transparent) 80%, transparent 100%); }
@media (max-width: 900px){ .auth-main { background: var(--bg); } }
.auth-topbar { display: flex; align-items: center; justify-content: space-between; }
.auth-card { width: 100%; max-width: 430px; margin: auto; padding-block: 2rem; }
.auth-card.auth-card-wide { max-width: 560px; }   /* register: room for the 3 account-type tiles */
.auth-card h1 { font-size: clamp(1.6rem,1.2rem+1.4vw,2.1rem); }
.auth-card .sub { color: var(--text-2); margin-top: .5rem; margin-bottom: 1.8rem; }
.auth-alt { text-align: center; margin-top: 1.4rem; color: var(--text-2); font-size: var(--fs-sm); }
.auth-alt a { color: var(--brand); font-weight: 700; }
.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.4rem 0; color: var(--text-3); font-size: var(--fs-xs); }
.auth-divider::before, .auth-divider::after { content:""; flex: 1; height: 1px; background: var(--hairline); }
.demo-hint { background: var(--info-soft); border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent); border-radius: var(--r-md); padding: .8rem 1rem; font-size: var(--fs-xs); color: var(--text-2); margin-bottom: 1.4rem; }
.demo-hint b { color: var(--brand); }

/* Page hero (subpages) ---------------------------------------------------- */
.page-hero { padding-block: clamp(3rem,6vw,5rem) clamp(2rem,4vw,3rem); text-align: center; position: relative; overflow: clip; }
.page-hero::before { content:""; position:absolute; inset:0; background: var(--grad-hero); z-index:0; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--fs-h1); }
.page-hero p { max-width: 60ch; margin: 1rem auto 0; }
