/* =========================================================
   iPay × Tacos Marcial — landing
   Mobile-first. Breakpoints: 640 / 900 / 1120
   ========================================================= */

:root{
  --blue:#2A28C3;
  --blue-2:#4240DD;
  --blue-deep:#1C1A9A;
  --lila:#F5F5FF;
  --lila-2:#D6D7FF;
  --lila-3:#9B9FFD;
  --purple:#722ED1;
  --gold:#FAAD14;
  --ink:#01001E;
  --body:#343434;
  --muted:#5B5B5B;
  --line:#E6E6F5;
  --white:#FFFFFF;
  --grad:linear-gradient(113deg,#6866EC 0%,#2C2AC5 100%);
  --grad-h:linear-gradient(90deg,#2A28C3 0%,#4240DD 100%);
  --shadow:0 1px 2px rgba(20,29,43,.07),0 4px 12px rgba(37,51,122,.04),0 12px 32px rgba(24,33,83,.02);
  --shadow-lg:0 18px 48px rgba(42,40,195,.18);
  --r-sm:12px; --r:20px; --r-lg:28px; --r-xl:36px;
  --gutter:20px;
  --header-h:68px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 12px);-webkit-text-size-adjust:100%}
body{margin:0;font-family:'Roboto',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:16px;line-height:1.55;color:var(--body);background:var(--white);overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
h1,h2,h3{color:var(--ink);margin:0;line-height:1.12;letter-spacing:-.01em}
p{margin:0}
a{color:var(--blue)}
ul,ol{margin:0;padding:0;list-style:none}
figure{margin:0}
button{font:inherit}
:focus-visible{outline:3px solid var(--lila-3);outline-offset:3px;border-radius:6px}

.container{width:100%;max-width:1200px;margin:0 auto;padding:0 var(--gutter)}
.skip{position:absolute;left:-999px;top:8px;background:var(--blue);color:#fff;padding:8px 14px;border-radius:8px;z-index:100}
.skip:focus{left:8px}

.hl{color:var(--blue-2)}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 20px;border-radius:999px;font-weight:500;font-size:15px;text-decoration:none;border:2px solid transparent;transition:background .2s,color .2s,border-color .2s,transform .2s,box-shadow .2s;white-space:nowrap}
.btn-lg{min-height:52px;padding:12px 26px;font-size:16px}
.btn-primary{background:var(--blue);color:#fff}
.btn-primary:hover{background:var(--blue-2);box-shadow:0 8px 20px rgba(42,40,195,.28)}
.btn-ghost{background:transparent;color:var(--blue);border-color:var(--lila-2)}
.btn-ghost:hover{border-color:var(--blue);background:#fff}
.btn-white{background:#fff;color:var(--blue)}
.btn-white:hover{background:var(--lila);transform:translateY(-1px)}

/* ---------- header ---------- */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid transparent;transition:border-color .2s,box-shadow .2s}
.site-header.scrolled{border-color:var(--line);box-shadow:0 4px 18px rgba(1,0,30,.05)}
.header-inner{height:var(--header-h);display:flex;align-items:center;gap:16px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.brand img{width:auto}
.brand .brand-ipay{height:28px}
.brand .brand-tm{height:44px}
.brand-x{color:var(--muted);font-size:20px;font-weight:300;line-height:1}
.nav{display:none}
.header-cta{display:none}
.menu-toggle{margin-left:auto;width:44px;height:44px;border:0;background:var(--lila);border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer}
.menu-toggle span{width:20px;height:2px;background:var(--ink);border-radius:2px;transition:transform .25s,opacity .2s}
.menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.nav.open{display:flex;flex-direction:column;position:absolute;left:0;right:0;top:var(--header-h);background:#fff;padding:12px var(--gutter) 22px;border-bottom:1px solid var(--line);box-shadow:0 16px 30px rgba(1,0,30,.08)}
.nav.open a:not(.btn){padding:14px 4px;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none;font-weight:500}
.nav.open .nav-cta-mobile{margin-top:16px}

/* ---------- hero ---------- */
.hero{background:var(--lila);padding:28px 0 48px;position:relative;overflow:hidden}
.hero::before{content:"";position:absolute;right:-240px;top:-200px;width:560px;height:560px;border-radius:50%;background:radial-gradient(circle,rgba(155,159,253,.35),rgba(155,159,253,0) 70%);pointer-events:none}
.hero-grid{display:grid;gap:36px;position:relative}
.eyebrow{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--lila-2);color:var(--blue);font-weight:500;font-size:14px;padding:6px 14px;border-radius:999px;box-shadow:var(--shadow)}
.eyebrow .dot{width:8px;height:8px;border-radius:50%;background:var(--gold)}
.hero h1{font-size:clamp(34px,8.6vw,62px);font-weight:700;margin:18px 0 16px;letter-spacing:-.02em}
.hero .lead{font-size:clamp(17px,2.4vw,20px);color:var(--body);max-width:520px}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.hero-actions .btn{flex:1 1 auto}
.hero-checks{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:24px;font-size:14px;color:var(--ink);font-weight:500}
.hero-checks li{display:flex;align-items:center;gap:6px}
.hero-checks svg{width:18px;height:18px;fill:none;stroke:var(--blue);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}

.hero-visual{position:relative}
.hero-card{position:relative;border-radius:var(--r-xl);background:var(--grad);aspect-ratio:1/1.02;box-shadow:var(--shadow-lg)}
.hero-clip{position:absolute;inset:0;border-radius:inherit;overflow:hidden;isolation:isolate}
.hero-blob{position:absolute;inset:auto -20% -35% -20%;height:75%;border-radius:50%;background:radial-gradient(circle at 50% 40%,rgba(255,255,255,.22),rgba(255,255,255,0) 65%);z-index:-1}
.hero-clip::after{content:"";position:absolute;width:62%;aspect-ratio:1;border-radius:50%;border:2px solid rgba(255,255,255,.18);right:-14%;top:-12%;z-index:-1}
.hero-person{position:absolute;bottom:0;left:50%;transform:translateX(-46%);height:92%;width:auto;max-width:none;filter:drop-shadow(0 20px 30px rgba(1,0,30,.25))}

.chip{position:absolute;display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:16px;font-size:12px;line-height:1.3;color:var(--ink);background:#fff;box-shadow:0 10px 30px rgba(1,0,30,.16);max-width:58%}
.chip strong{display:block;font-weight:700;font-size:12.5px}
.chip ul{margin-top:4px;display:grid;gap:2px;color:var(--body)}
.chip li::before{content:"•";color:var(--blue);margin-right:5px}
.glass{background:rgba(255,255,255,.86);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.7)}
.chip-icon{flex:none;width:30px;height:30px;border-radius:10px;background:var(--blue);display:flex;align-items:center;justify-content:center}
.chip-icon.gold{background:var(--gold)}
.chip-icon svg{width:17px;height:17px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.chip-icon.gold svg{stroke:var(--ink)}
.chip-a{left:12px;top:14px}
.chip-a ul{display:none}
.chip-b{display:none}
.chip-c{right:12px;bottom:16px;align-items:center}
.chip-d{display:none}

/* ---------- co-brand ---------- */
.cobrand{background:var(--grad);color:#fff;padding:56px 0;position:relative;overflow:hidden}
.cobrand::before{content:"";position:absolute;left:-180px;bottom:-220px;width:460px;height:460px;border-radius:50%;background:rgba(255,255,255,.06)}
.cobrand-grid{display:grid;gap:32px;align-items:center;position:relative}
.cobrand-photo{border-radius:var(--r-xl);overflow:hidden;aspect-ratio:4/3;box-shadow:0 20px 50px rgba(1,0,30,.25)}
.cobrand-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 38%}
.lockup{display:flex;align-items:center;gap:16px;margin-bottom:26px;flex-wrap:wrap}
.lockup-ipay{height:44px;width:auto}
.lockup-x{font-size:30px;font-weight:300;opacity:.85;line-height:1}
.lockup-tm{height:72px;width:auto}
.cobrand-copy p{font-size:17px;line-height:1.6;color:rgba(255,255,255,.9)}
.cobrand-copy .cobrand-lead{font-size:clamp(20px,3vw,26px);line-height:1.38;color:#fff;margin-bottom:16px;font-weight:400}
.cobrand-lead strong{font-weight:700}

/* ---------- sections ---------- */
.section{padding:64px 0}
.section-head{max-width:720px;margin-bottom:36px}
.section-head.center{text-align:center;margin-left:auto;margin-right:auto}
.section-head h2,.what-intro h2,.benefit-copy h2,.panel-copy h2,.demo-copy h2{font-size:clamp(28px,5.4vw,44px);font-weight:700;margin:12px 0 14px}
.section-head p{font-size:17px;color:var(--body)}
.kicker{display:inline-block;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--blue)}
.kicker-light{color:var(--lila-2)}

.ico-box{flex:none;width:48px;height:48px;border-radius:14px;background:var(--lila);color:var(--blue);display:flex;align-items:center;justify-content:center}
.ico-box svg,.ico-circle svg,.tab-ico svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ico-circle{flex:none;width:52px;height:52px;border-radius:50%;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center}

.dash-list{display:grid;gap:10px}
.dash-list li{position:relative;padding-left:22px}
.dash-list li::before{content:"";position:absolute;left:0;top:.62em;width:12px;height:3px;border-radius:2px;background:var(--blue)}

/* ---------- stats ---------- */
.stats-grid{display:grid;gap:16px}
.stats-photo{border-radius:var(--r-lg);overflow:hidden;aspect-ratio:16/10}
.stats-photo img{width:100%;height:100%;object-fit:cover}
.stat-card{border-radius:var(--r-lg);padding:28px 26px;display:flex;flex-direction:column;justify-content:space-between;gap:18px;min-height:190px}
.stat-num{font-size:clamp(60px,14vw,92px);font-weight:700;line-height:.95;letter-spacing:-.03em}
.stat-card p{font-size:17px;line-height:1.45;max-width:300px}
.stat-blue{background:var(--grad);color:#fff}
.stat-blue .stat-num{color:#fff}
.stat-blue p{color:rgba(255,255,255,.92)}
.stat-lila{background:var(--lila);border:1px solid var(--lila-2)}
.stat-lila .stat-num{color:var(--blue)}
.stat-lila p{color:var(--ink)}
.source{margin-top:16px;font-size:13px;color:var(--muted)}

/* ---------- impact ---------- */
.impact{background:var(--lila)}
.impact-grid{display:grid;gap:16px}
.impact-card{background:#fff;border-radius:var(--r-lg);padding:26px;box-shadow:var(--shadow)}
.impact-top{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.impact-top h3{font-size:21px;font-weight:700}
.impact-card .dash-list{color:var(--body)}
.impact-dark{background:var(--blue);color:#fff}
.impact-dark h3{color:#fff}
.impact-dark .ico-box{background:rgba(255,255,255,.14);color:#fff}
.impact-dark .dash-list{color:rgba(255,255,255,.92)}
.impact-dark .dash-list li::before{background:var(--gold)}

/* ---------- benefit ---------- */
.benefit-grid{display:grid;gap:36px;align-items:center}
.benefit-list{display:grid;gap:14px;margin-top:28px}
.benefit-item{display:flex;gap:16px;align-items:flex-start;padding:20px;border:1px solid var(--line);border-radius:var(--r);background:#fff;transition:border-color .2s,box-shadow .2s}
.benefit-item:hover{border-color:var(--lila-2);box-shadow:var(--shadow)}
.tag{display:inline-block;font-size:12px;font-weight:500;color:var(--purple);background:#F4ECFF;padding:3px 10px;border-radius:999px;margin-bottom:8px}
.benefit-item h3{font-size:19px;font-weight:700;margin-bottom:4px}
.benefit-photo{position:relative;border-radius:var(--r-xl);overflow:visible}
.benefit-photo img{border-radius:var(--r-xl);width:100%;aspect-ratio:4/3;object-fit:cover;object-position:60% 50%}
.float-pill{position:absolute;left:16px;bottom:16px;display:flex;align-items:center;gap:8px;background:#fff;color:var(--ink);font-weight:500;font-size:14px;padding:10px 16px;border-radius:999px;box-shadow:0 10px 30px rgba(1,0,30,.15)}
.float-pill svg{width:18px;height:18px;fill:none;stroke:var(--blue);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}

/* ---------- what ---------- */
.what{background:var(--ink);color:#fff;position:relative;overflow:hidden}
.what::before{content:"";position:absolute;right:-200px;top:-160px;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,rgba(66,64,221,.55),rgba(66,64,221,0) 70%)}
.what-grid{display:grid;gap:36px;position:relative}
.what-intro h2{color:#fff}
.what-intro p{color:rgba(255,255,255,.82);font-size:17px}
.what-list{display:grid;gap:14px}
.what-list li{display:flex;gap:18px;align-items:flex-start;padding:22px;border-radius:var(--r);background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12)}
.what-list .num{flex:none;font-size:30px;font-weight:700;color:var(--lila-3);line-height:1}
.what-list h3{color:#fff;font-size:20px;font-weight:700;margin-bottom:4px}
.what-list p{color:rgba(255,255,255,.78)}

/* ---------- value ---------- */
.value-grid{display:grid;gap:16px}
.value-card{padding:26px;border-radius:var(--r-lg);background:var(--lila);border:1px solid transparent;transition:transform .2s,border-color .2s,background .2s}
.value-card:hover{transform:translateY(-3px);border-color:var(--lila-2);background:#fff}
.value-card .ico-box{background:#fff;margin-bottom:18px}
.value-card h3{font-size:19px;font-weight:700;margin-bottom:6px}

/* ---------- how ---------- */
.how{background:var(--lila)}
.steps{display:grid;gap:0;position:relative;counter-reset:s}
.step{position:relative;padding:0 0 28px 72px}
.step:last-child{padding-bottom:0}
.step::before{content:"";position:absolute;left:25px;top:52px;bottom:0;width:2px;background:repeating-linear-gradient(to bottom,var(--lila-3) 0 6px,transparent 6px 12px)}
.step:last-child::before{display:none}
.step-num{position:absolute;left:0;top:0;width:52px;height:52px;border-radius:50%;background:var(--blue);color:#fff;font-weight:700;font-size:17px;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 6px var(--lila),0 0 0 7px var(--lila-2)}
.step h3{font-size:20px;font-weight:700;margin:12px 0 6px}
.step p{color:var(--body)}

/* ---------- panel ---------- */
.panel-grid{display:grid;gap:36px;align-items:center}
.panel-visual{position:relative;padding:24px 8px}
.panel-bg{position:absolute;inset:0 6% 0 6%;border-radius:var(--r-xl);background:var(--grad)}
.panel-visual img{position:relative;width:100%;filter:drop-shadow(0 24px 30px rgba(1,0,30,.25))}
.panel-copy p{font-size:17px}
.check-list{display:grid;gap:12px;margin-top:24px}
.check-list li{display:flex;gap:12px;align-items:center;padding:14px 16px;border-radius:14px;background:var(--lila);color:var(--ink);font-weight:500}
.check-list li::before{content:"";flex:none;width:24px;height:24px;border-radius:50%;background:var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/14px no-repeat}

/* ---------- demo ---------- */
.demo{background:var(--grad);color:#fff;position:relative;overflow:hidden}
.demo::after{content:"";position:absolute;right:-120px;bottom:-180px;width:480px;height:480px;border-radius:50%;background:rgba(255,255,255,.07)}
.demo-grid{display:grid;gap:40px;align-items:center;position:relative;z-index:1}
.demo-copy h2{color:#fff}
.demo-copy>p{color:rgba(255,255,255,.88);font-size:17px}
.demo-tabs{display:grid;gap:10px;margin-top:26px}
.demo-tabs button{display:flex;align-items:center;gap:14px;text-align:left;padding:14px 16px;border-radius:18px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.08);color:#fff;cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.demo-tabs button:hover{background:rgba(255,255,255,.16)}
.demo-tabs button[aria-selected="true"]{background:#fff;color:var(--ink);border-color:#fff}
.demo-tabs strong{display:block;font-weight:700;font-size:16px}
.demo-tabs small{display:block;font-size:13.5px;opacity:.8}
.tab-ico{flex:none;width:42px;height:42px;border-radius:12px;background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center}
.demo-tabs button[aria-selected="true"] .tab-ico{background:var(--blue);color:#fff}
.demo-phone{display:flex;justify-content:center}
.phone{width:min(300px,74vw);filter:drop-shadow(0 30px 40px rgba(1,0,30,.35))}
.phone-screen{position:relative;aspect-ratio:486/1010}
.phone-screen img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;opacity:0;transition:opacity .35s ease}
.phone-screen img.is-active{opacity:1}
html:not(.js) .phone-screen img:first-child{opacity:1}

/* ---------- ecosystem ---------- */
.eco-grid{display:grid;gap:12px}
.eco-item{display:flex;align-items:center;gap:16px;padding:18px 20px;border-radius:var(--r);background:#fff;border:1px solid var(--line);font-weight:500;color:var(--ink);font-size:17px;box-shadow:var(--shadow)}
.eco-item .ico-circle{background:var(--lila);color:var(--blue)}
.eco-main{background:var(--blue);color:#fff;border-color:var(--blue)}
.eco-main .ico-circle{background:rgba(255,255,255,.16);color:#fff}

/* ---------- launch ---------- */
.launch{background:var(--lila)}
.phases{display:grid;gap:16px;counter-reset:p}
.phase{position:relative;background:#fff;border-radius:var(--r-lg);padding:26px;box-shadow:var(--shadow);counter-increment:p}
.phase::after{content:"0" counter(p);position:absolute;right:22px;top:16px;font-size:44px;font-weight:700;color:var(--lila-2);line-height:1}
.days{display:inline-block;background:var(--gold);color:var(--ink);font-weight:700;font-size:14px;padding:5px 12px;border-radius:999px}
.phase h3{font-size:22px;font-weight:700;margin:16px 0 14px}
.note{margin-top:18px;font-size:13px;color:var(--muted);text-align:center}

/* ---------- clients ---------- */
.clients{background:var(--grad);color:#fff;overflow:hidden}
.clients .section-head h2{color:#fff}
.testimonials{display:grid;gap:16px}
.testimonial{background:#fff;color:var(--body);border-radius:var(--r-lg);padding:26px;display:flex;flex-direction:column;gap:16px;position:relative}
.testimonial::after{content:"”";position:absolute;right:22px;top:4px;font-size:88px;line-height:1;font-weight:700;color:var(--blue)}
.testimonial img{width:64px;height:64px;border-radius:50%;object-fit:cover;background:var(--lila)}
.testimonial blockquote{margin:0;font-size:16.5px;line-height:1.55;flex:1}
.testimonial figcaption strong{display:block;color:var(--ink);font-size:17px}
.testimonial figcaption span{font-size:14px;color:var(--muted)}

.logo-marquee{margin-top:48px;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.logo-track{display:flex;align-items:center;gap:44px;width:max-content}
.logo-track img{height:38px;width:auto;opacity:.95}
.logo-track img.tall{height:58px}
.js .logo-track.animate{animation:marquee 38s linear infinite}
.logo-marquee:hover .logo-track{animation-play-state:paused}
@keyframes marquee{to{transform:translateX(-50%)}}
html:not(.js) .logo-track{flex-wrap:wrap;justify-content:center;width:auto}

/* ---------- CTA ---------- */
.cta{padding:64px 0}
.cta-card{position:relative;border-radius:var(--r-xl);background:var(--ink);overflow:hidden;padding:36px 26px 0;display:grid;gap:28px}
.cta-card::before{content:"";position:absolute;left:-120px;top:-160px;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(66,64,221,.6),rgba(66,64,221,0) 70%)}
.cta-copy{position:relative}
.cta h2{color:#fff;font-size:clamp(28px,5.6vw,46px);font-weight:700}
.cta h2 span{color:var(--lila-3)}
.cta-copy p{color:rgba(255,255,255,.8);margin-top:14px;font-size:17px}
.cta-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px;margin-top:26px}
.cta-mail{color:#fff;font-weight:500;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.4)}
.cta-mail:hover{border-color:#fff}
.cta-people{position:relative;display:flex;align-items:flex-end;justify-content:center;gap:0}
.cta-people img{height:150px;width:auto;margin:0 -10px}
.cta-people img:nth-child(2){height:126px}

/* ---------- footer ---------- */
.footer{border-top:1px solid var(--line);padding:32px 0 40px}
.footer-inner{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.footer-logo{height:30px;width:auto}
.footer p{font-size:14px;color:var(--muted)}
.footer-meta a{color:var(--muted)}

/* ---------- reveal ---------- */
.js .reveal{opacity:0;transform:translateY(18px);transition:opacity .6s ease,transform .6s ease}
.js .reveal.in{opacity:1;transform:none}

/* =========================================================
   ≥ 640px
   ========================================================= */
@media (min-width:640px){
  :root{--gutter:28px}
  .hero-actions .btn{flex:0 0 auto}
  .hero-card{aspect-ratio:4/3.4}
  .chip{font-size:13px;max-width:46%;padding:12px 14px}
  .chip strong{font-size:14px}
  .chip-a ul{display:grid}
  .chip-d{display:flex;right:14px;top:42%}
  .stats-grid{grid-template-columns:1fr 1fr}
  .stats-photo{grid-column:1 / -1}
  .value-grid{grid-template-columns:1fr 1fr}
  .eco-grid{grid-template-columns:1fr 1fr}
  .eco-main{grid-column:1 / -1}
  .testimonials{grid-template-columns:1fr 1fr}
  .testimonial:last-child{grid-column:1 / -1}
  .cta-people img{height:190px}
  .cta-people img:nth-child(2){height:160px}
  .footer-inner{flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap}
}

/* =========================================================
   ≥ 900px
   ========================================================= */
@media (min-width:900px){
  :root{--gutter:40px;--header-h:76px}
  .section{padding:96px 0}
  .menu-toggle{display:none}
  .nav{display:flex;gap:28px;margin-left:auto}
  .nav a{color:var(--ink);text-decoration:none;font-weight:500;font-size:15px;position:relative}
  .nav a:not(.btn)::after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:2px;background:var(--blue);transform:scaleX(0);transition:transform .2s}
  .nav a:not(.btn):hover::after{transform:scaleX(1)}
  .nav-cta-mobile{display:none !important}
  .header-cta{display:inline-flex;margin-left:12px}
  .brand{gap:14px}
  .brand .brand-ipay{height:34px}
  .brand .brand-tm{height:54px}

  .hero{padding:56px 0 88px}
  .hero-grid{grid-template-columns:1.15fr 1fr;align-items:center;gap:48px}
  .hero-card{aspect-ratio:1/1.08}
  .chip-b{display:flex;left:-28px;bottom:26%;align-items:center;max-width:52%}
  .chip-a{left:-28px;top:28px}
  .chip-c{right:-20px;bottom:30px}
  .chip-d{right:-20px;top:40%}

  .cobrand{padding:96px 0}
  .cobrand-grid{grid-template-columns:1fr 1.05fr;gap:64px}
  .cobrand-photo{aspect-ratio:4/4.2}
  .lockup-ipay{height:54px}
  .lockup-tm{height:92px}

  .stats-grid{grid-template-columns:1.35fr 1fr 1fr;align-items:stretch}
  .stats-photo{grid-column:auto;aspect-ratio:auto;min-height:320px}
  .stat-card{min-height:320px;padding:34px 30px}

  .impact-grid{grid-template-columns:1fr 1fr 1.15fr}
  .impact-card{padding:32px}

  .benefit-grid{grid-template-columns:1.05fr 1fr;gap:64px}
  .benefit-photo img{aspect-ratio:4/4.6}
  .float-pill{left:-24px;bottom:40px;font-size:15px;padding:12px 18px}

  .what-grid{grid-template-columns:1fr 1.1fr;gap:64px;align-items:center}

  .value-grid{grid-template-columns:repeat(4,1fr)}

  .steps{grid-template-columns:repeat(4,1fr);gap:28px}
  .step{padding:0;text-align:left}
  .step::before{left:64px;right:-28px;top:25px;bottom:auto;width:auto;height:2px;background:repeating-linear-gradient(to right,var(--lila-3) 0 6px,transparent 6px 12px)}
  .step-num{position:relative}
  .step h3{margin-top:24px}
  .step{background:#fff;border-radius:var(--r-lg);padding:26px 24px 30px;box-shadow:var(--shadow)}
  .step::before{left:calc(26px + 52px + 12px);right:16px;top:51px}
  .step:last-child::before{display:none}
  .step-num{box-shadow:none}

  .panel-grid{grid-template-columns:1.15fr 1fr;gap:64px}
  .panel-visual{padding:44px 0}

  .demo-grid{grid-template-columns:1.1fr 1fr;gap:64px}
  .phone{width:320px}

  .eco-grid{grid-template-columns:repeat(4,1fr)}
  .eco-main{grid-column:1 / -1;justify-content:center;font-size:19px;padding:22px}
  .eco-item:not(.eco-main){flex-direction:column;align-items:flex-start;padding:24px}

  .phases{grid-template-columns:repeat(3,1fr);gap:24px}
  .phase{padding:32px}

  .testimonials{grid-template-columns:repeat(3,1fr)}
  .testimonial:last-child{grid-column:auto}
  .testimonial{padding:30px}

  .cta{padding:96px 0}
  .cta-card{grid-template-columns:1.2fr 1fr;padding:64px 0 0 64px;align-items:end}
  .cta-copy{padding-bottom:64px}
  .cta-people img{height:230px}
  .cta-people img:nth-child(2){height:194px}
  .cta-people img:nth-child(4){display:none}
  .cta-people{padding-right:32px}
}

/* =========================================================
   ≥ 1120px
   ========================================================= */
@media (min-width:1120px){
  .hero h1{font-size:60px}
  .chip-a{left:-56px}
  .chip-b{left:-56px}
  .chip-c{right:-36px}
  .chip-d{right:-36px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .logo-track.animate{animation:none;flex-wrap:wrap;justify-content:center;width:auto}
  .js .reveal{opacity:1;transform:none;transition:none}
  *{transition:none !important}
}

/* ---------- hero personalizado ---------- */
.brand-name{color:var(--ink);background:linear-gradient(transparent 62%,rgba(250,173,20,.45) 62%,rgba(250,173,20,.45) 92%,transparent 92%)}
.hero-lockup{display:flex;align-items:center;gap:18px;margin-top:28px;color:var(--muted);font-size:26px;font-weight:300;line-height:1}
.hero-lockup .hl-ipay{height:34px;width:auto}
.hero-lockup .hl-tm{height:58px;width:auto}
.hero-team{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 42%}
.hero-clip::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(42,40,195,0) 55%,rgba(42,40,195,.55) 100%);pointer-events:none}
.cobrand-inner{max-width:900px;text-align:center;position:relative}
.cobrand-inner .cobrand-lead{margin:14px 0 16px}
.cobrand-inner p:last-child{max-width:680px;margin:0 auto}
@media (min-width:900px){.hero-lockup .hl-ipay{height:40px}.hero-lockup .hl-tm{height:68px}}
/* chips placed away from faces on the team photo */
.hero-card .chip-a{top:auto;bottom:16px;left:12px}
.hero-card .chip-c{bottom:auto;top:14px;right:12px}
@media (min-width:640px){
  .hero-card .chip-a{bottom:20px;left:14px}
  .hero-card .chip-d{top:auto;bottom:20px;right:14px}
  .hero-card .chip-c{top:16px;right:14px}
}
@media (min-width:900px){
  .hero-card .chip-b{top:20px;bottom:auto;left:-28px}
  .hero-card .chip-a{bottom:24px;left:-28px}
  .hero-card .chip-c{top:auto;bottom:24px;right:-20px}
  .hero-card .chip-d{bottom:100px;right:-20px}
}
@media (min-width:1120px){
  .hero-card .chip-a,.hero-card .chip-b{left:-56px}
  .hero-card .chip-c,.hero-card .chip-d{right:-36px}
}

/* mobile/tablet: photo goes between the eyebrow and the headline */
@media (max-width:899px){
  .hero-grid{display:flex;flex-direction:column;gap:0}
  .hero-copy{display:contents}
  .hero-copy .eyebrow{order:1;align-self:flex-start}
  .hero-visual{order:2;margin-top:20px}
  .hero-copy h1{order:3;margin-top:28px}
  .hero-copy .lead{order:4}
  .hero-copy .hero-lockup{order:5}
  .hero-copy .hero-checks{order:6}
}

/* ---------- co-brand: statement + tiles ---------- */
.cobrand::after{content:"";position:absolute;right:-140px;top:-160px;width:420px;height:420px;border-radius:50%;border:2px solid rgba(255,255,255,.12);pointer-events:none}
.cb-grid{display:grid;gap:32px;align-items:center;position:relative;z-index:1}
.cb-lead{margin:14px 0 16px;font-size:clamp(21px,3.2vw,30px);line-height:1.32;color:#fff;font-weight:400}
.cb-lead strong{font-weight:700;color:#FFD666}
.cb-text{font-size:17px;line-height:1.6;color:rgba(255,255,255,.88);max-width:560px}
.cb-tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cb-tile{display:flex;flex-direction:column;gap:6px;padding:18px 16px;border-radius:var(--r);background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);transition:background .2s,transform .2s}
.cb-tile:hover{background:rgba(255,255,255,.16);transform:translateY(-2px)}
.cb-tile strong{font-size:16px;line-height:1.25;color:#fff;margin-top:6px}
.cb-tile>span:last-child{font-size:13.5px;line-height:1.4;color:rgba(255,255,255,.78)}
.cb-ico{width:42px;height:42px;border-radius:12px;background:#fff;color:var(--blue);display:flex;align-items:center;justify-content:center}
.cb-ico svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.cb-tile:nth-child(2) .cb-ico{background:var(--gold);color:var(--ink)}
@media (min-width:900px){
  .cobrand{padding:88px 0}
  .cb-grid{grid-template-columns:1.1fr 1fr;gap:64px}
  .cb-tiles{gap:16px}
  .cb-tile{padding:24px 22px}
  .cb-tile strong{font-size:18px}
}
/* header with co-brand: keep nav on one line at tablet-landscape widths */
.nav a{white-space:nowrap}
@media (min-width:900px) and (max-width:1119px){
  .nav{gap:18px}
  .nav a{font-size:14px}
  .header-cta{margin-left:6px;padding:10px 16px}
  .brand{gap:10px}
  .brand .brand-ipay{height:28px}
  .brand .brand-tm{height:46px}
}
/* Shalom wordmark is wide: size by height accordingly */
.brand .brand-tm{height:20px}
.hero-lockup{gap:14px}
.hero-lockup .hl-ipay{height:30px}
.hero-lockup .hl-tm{height:22px}
@media (min-width:900px){
  .brand .brand-tm{height:24px}
  .hero-lockup .hl-ipay{height:38px}
  .hero-lockup .hl-tm{height:30px}
}
@media (min-width:900px) and (max-width:1119px){.brand .brand-tm{height:20px}}
.hero-team{object-position:50% 30%}
