/* ============================================================
   AjoPlus — prototype design system
   Brand: red #F10624 · ink #141414 · white
   Display: Plus Jakarta Sans · UI/body: Inter
   ============================================================ */

:root{
  --red:#F10624;
  --red-700:#C20D1F;
  --red-50:#FDECEE;
  --red-100:#FBDADE;
  --ink:#141414;
  --ink-700:#2A2A2A;
  --ink-soft:#3A3A3A;
  --muted:#6B7280;
  --muted-2:#9AA0AA;
  --line:#E8E9EE;
  --line-2:#F0F1F4;
  --bg:#F5F6F8;
  --paper:#FFFFFF;
  --ok:#1B9E5A;     --ok-bg:#E7F6EE;
  --warn:#B7791F;   --warn-bg:#FBF1DE;
  --info:#1F6FEB;   --info-bg:#E7F0FD;
  --danger:#C20D1F; --danger-bg:#FDECEE;
  --radius:16px;
  --radius-sm:11px;
  --radius-lg:24px;
  --shadow:0 1px 2px rgba(20,20,20,.04), 0 8px 24px -12px rgba(20,20,20,.12);
  --shadow-lg:0 24px 60px -28px rgba(20,20,20,.28);
  --maxw:1180px;
  --display:"Plus Jakarta Sans",ui-sans-serif,system-ui,sans-serif;
  --body:"Inter",ui-sans-serif,system-ui,-apple-system,sans-serif;
}

*{box-sizing:border-box}
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth }
body{
  margin:0; font-family:var(--body); color:var(--ink); background:var(--bg);
  font-size:16px; line-height:1.55; -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
h1,h2,h3,h4{font-family:var(--display); font-weight:800; line-height:1.08; margin:0; letter-spacing:-.02em}
p{margin:0}
.money{font-variant-numeric:tabular-nums; font-feature-settings:"tnum" 1}

/* ---------- layout helpers ---------- */
.container{max-width:var(--maxw); margin:0 auto; padding:0 24px}
.grid{display:grid; gap:20px}
.g2{grid-template-columns:repeat(2,1fr)}
.g3{grid-template-columns:repeat(3,1fr)}
.g4{grid-template-columns:repeat(4,1fr)}
.row{display:flex; gap:16px}
.between{justify-content:space-between}
.center{align-items:center}
.wrap{flex-wrap:wrap}
.col{display:flex; flex-direction:column}
.gap8{gap:8px}.gap12{gap:12px}.gap16{gap:16px}.gap24{gap:24px}
.mt8{margin-top:8px}.mt16{margin-top:16px}.mt24{margin-top:24px}.mt32{margin-top:32px}
.mb8{margin-bottom:8px}.mb16{margin-bottom:16px}.mb24{margin-bottom:24px}
.muted{color:var(--muted)}
.tiny{font-size:12.5px}
.sm{font-size:13.5px}
.right{text-align:right}
.fill{flex:1}
.nowrap{white-space:nowrap}

/* ---------- eyebrow / section heads ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-family:var(--body);
  font-weight:700; font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--red);
}
.eyebrow::before{content:""; width:22px; height:2px; background:var(--red); border-radius:2px}
.section{padding:88px 0}
.section-head{max-width:680px; margin-bottom:44px}
.section-head h2{font-size:40px}
.section-head p{margin-top:14px; color:var(--muted); font-size:17px}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-family:var(--body); font-weight:600; font-size:15px; cursor:pointer;
  padding:12px 20px; border-radius:12px; border:1px solid transparent;
  transition:transform .08s ease, background .15s ease, box-shadow .15s ease, color .15s; white-space:nowrap;
}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--red); color:#fff; box-shadow:0 8px 20px -10px rgba(241,6,36,.7)}
.btn-primary:hover{background:var(--red-700)}
.btn-dark{background:var(--ink); color:#fff}
.btn-dark:hover{background:#000}
.btn-ghost{background:#fff; color:var(--ink); border-color:var(--line)}
.btn-ghost:hover{border-color:#cfd2da; background:#fcfcfd}
.btn-soft{background:var(--red-50); color:var(--red-700)}
.btn-soft:hover{background:var(--red-100)}
.btn-block{width:100%}
.btn-lg{padding:15px 26px; font-size:16px; border-radius:13px}
.btn-sm{padding:8px 13px; font-size:13.5px; border-radius:9px}
.btn .ic{width:17px;height:17px}

/* ---------- badges / pills ---------- */
.badge{display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600;
  padding:4px 10px; border-radius:999px; background:#F1F2F5; color:var(--ink-soft)}
.badge.ok{background:var(--ok-bg); color:var(--ok)}
.badge.warn{background:var(--warn-bg); color:var(--warn)}
.badge.info{background:var(--info-bg); color:var(--info)}
.badge.danger{background:var(--danger-bg); color:var(--danger)}
.dot{width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block}

/* ---------- cards ---------- */
.card{background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow)}
.card-pad{padding:24px}
.card-hover{transition:transform .16s ease, box-shadow .16s ease}
.card-hover:hover{transform:translateY(-4px); box-shadow:var(--shadow-lg)}

/* ============================================================
   PUBLIC HEADER
   ============================================================ */
.site-head{position:sticky; top:0; z-index:50; background:rgba(255,255,255,.86);
  backdrop-filter:saturate(160%) blur(10px); border-bottom:1px solid var(--line)}
.site-head .bar{display:flex; align-items:center; justify-content:space-between; height:74px}
.brand img{height:38px; width:auto}
.nav-links{display:flex; align-items:center; gap:30px}
.nav-links a{font-size:15px; font-weight:500; color:var(--ink-soft); position:relative}
.nav-links a:hover{color:var(--ink)}
.nav-links a.active{color:var(--ink); font-weight:600}
.nav-links a.active::after{content:""; position:absolute; left:0; right:0; bottom:-26px; height:2px; background:var(--red)}
.nav-cta{display:flex; align-items:center; gap:14px}
.nav-cta .login{font-weight:600; font-size:15px}
.burger{display:none; width:42px;height:42px; border:1px solid var(--line); border-radius:11px; background:#fff; cursor:pointer; align-items:center; justify-content:center}
.burger svg{width:20px;height:20px}
.mobile-menu{display:none; padding:8px 24px 22px; border-bottom:1px solid var(--line); background:#fff}
.mobile-menu a{display:block; padding:12px 4px; font-weight:500; border-bottom:1px solid var(--line-2)}
.mobile-menu.open{display:block}

/* ============================================================
   HERO + public sections
   ============================================================ */
.hero{position:relative; overflow:hidden; background:
   radial-gradient(900px 500px at 88% -8%, var(--red-50), transparent 60%),
   linear-gradient(180deg,#fff, #fff 60%, var(--bg))}
.hero-grid{display:grid; grid-template-columns:1.05fr .95fr; gap:54px; align-items:center; padding:84px 0 92px}
.hero h1{font-size:60px; letter-spacing:-.03em}
.hero h1 .hl{color:var(--red)}
.hero .lead{font-size:19px; color:var(--ink-soft); margin-top:22px; max-width:520px}
.hero-cta{display:flex; gap:14px; margin-top:32px; flex-wrap:wrap}
.hero-trust{display:flex; gap:30px; margin-top:40px; flex-wrap:wrap}
.hero-trust .t{display:flex; flex-direction:column}
.hero-trust .t b{font-family:var(--display); font-size:26px}
.hero-trust .t span{font-size:13px; color:var(--muted)}

.kpi-strip{display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line);
  border:1px solid var(--line); border-radius:var(--radius); overflow:hidden}
.kpi{background:#fff; padding:22px 24px}
.kpi b{font-family:var(--display); font-size:30px; display:block}
.kpi span{font-size:13.5px; color:var(--muted)}

/* feature cards */
.feature{padding:26px}
.feature .ico{width:46px;height:46px;border-radius:13px;background:var(--red-50); color:var(--red);
  display:flex;align-items:center;justify-content:center; margin-bottom:18px}
.feature .ico svg{width:23px;height:23px}
.feature h3{font-size:19px}
.feature p{color:var(--muted); margin-top:9px; font-size:15px}

/* steps */
.steps{counter-reset:step; display:grid; grid-template-columns:repeat(3,1fr); gap:24px}
.step{position:relative; padding:28px 24px 26px}
.step .n{counter-increment:step; font-family:var(--display); font-weight:800; font-size:15px;
  width:34px;height:34px;border-radius:50%; background:var(--ink); color:#fff;
  display:flex;align-items:center;justify-content:center; margin-bottom:16px}
.step .n::before{content:counter(step,decimal-leading-zero)}
.step h3{font-size:18px}
.step p{color:var(--muted); margin-top:8px; font-size:14.5px}

/* product/pricing */
.prod{padding:28px; display:flex; flex-direction:column}
.prod.flag{border:1.5px solid var(--red); position:relative}
.prod.flag::before{content:"Most chosen"; position:absolute; top:-12px; left:28px; background:var(--red); color:#fff;
  font-size:11.5px; font-weight:700; letter-spacing:.04em; padding:4px 11px; border-radius:999px}
.prod h3{font-size:21px}
.prod .rate{font-family:var(--display); font-size:38px; margin:14px 0 2px}
.prod .rate small{font-size:14px; color:var(--muted); font-weight:600; font-family:var(--body)}
.prod ul{list-style:none; padding:0; margin:18px 0 22px; display:flex; flex-direction:column; gap:11px}
.prod li{display:flex; gap:10px; font-size:14.5px; color:var(--ink-soft)}
.prod li svg{width:18px;height:18px;color:var(--red); flex:none; margin-top:1px}

/* CTA band */
.cta-band{background:var(--ink); color:#fff; border-radius:var(--radius-lg); padding:56px; position:relative; overflow:hidden}
.cta-band h2{font-size:38px; color:#fff}
.cta-band p{color:#C9CACE; margin-top:12px; max-width:520px}
.cta-band .pot-bg{position:absolute; right:-40px; bottom:-60px; width:320px; opacity:.12}

/* ---------- rotation ring (signature) ---------- */
.ring-card{background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg); padding:26px}
.ring-card .rc-head{display:flex; justify-content:space-between; align-items:center; margin-bottom:6px}
.ring-wrap{position:relative; display:flex; justify-content:center; padding:6px 0 2px}
.ring-center{position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center}
.ring-center small{font-size:12px; color:var(--muted); letter-spacing:.04em}
.ring-center b{font-family:var(--display); font-size:30px; margin-top:2px}
.ring-center .who{font-size:13px; color:var(--red); font-weight:600; margin-top:2px}

/* ============================================================
   FOOTER (dark)
   ============================================================ */
.site-foot{background:var(--ink); color:#C9CACE; padding:64px 0 28px; margin-top:0}
.foot-logo{font-family:var(--display); font-weight:800; font-size:26px; color:#fff; letter-spacing:-.02em}
.foot-logo .p{color:var(--red)}
.foot-grid{display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:32px}
.foot-grid h5{color:#fff; font-family:var(--body); font-size:13px; letter-spacing:.08em; text-transform:uppercase; margin:0 0 14px}
.foot-grid a{display:block; padding:6px 0; font-size:14.5px; color:#A9ABB2}
.foot-grid a:hover{color:#fff}
.foot-bottom{border-top:1px solid #2C2C2C; margin-top:44px; padding-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:13px; color:#8A8C92}

/* ============================================================
   AUTH (split screen)
   ============================================================ */
.auth{min-height:100vh; display:grid; grid-template-columns:1.05fr 1fr}
.auth-aside{background:var(--ink); color:#fff; padding:48px; position:relative; overflow:hidden; display:flex; flex-direction:column}
.auth-aside .foot-logo{font-size:28px}
.auth-aside .pot{position:absolute; right:-60px; bottom:-70px; width:360px; opacity:.13}
.auth-aside h2{font-size:34px; color:#fff; margin-top:auto; max-width:420px}
.auth-aside p{color:#C9CACE; margin-top:14px; max-width:420px}
.auth-aside .pts{margin-top:26px; display:flex; flex-direction:column; gap:14px}
.auth-aside .pts div{display:flex; gap:12px; align-items:center; color:#E6E7EA; font-size:15px}
.auth-aside .pts svg{width:20px;height:20px;color:var(--red); flex:none}
.auth-main{display:flex; align-items:center; justify-content:center; padding:40px 24px; background:#fff}
.auth-box{width:100%; max-width:430px}
.auth-box .lg{height:40px; margin-bottom:26px}
.auth-box h1{font-size:30px}
.auth-box .sub{color:var(--muted); margin-top:8px; margin-bottom:26px}

/* ---------- forms ---------- */
.field{margin-bottom:16px}
.field label{display:block; font-size:13.5px; font-weight:600; margin-bottom:7px}
.input, .select, textarea.input{
  width:100%; padding:13px 14px; border:1px solid var(--line); border-radius:11px; background:#fff;
  font-family:var(--body); font-size:15px; color:var(--ink); transition:border .15s, box-shadow .15s}
.input::placeholder{color:var(--muted-2)}
.input:focus, .select:focus, textarea.input:focus{outline:none; border-color:var(--red); box-shadow:0 0 0 3px var(--red-50)}
.input-icon{position:relative}
.input-icon svg{position:absolute; left:13px; top:50%; transform:translateY(-50%); width:18px; height:18px; color:var(--muted-2)}
.input-icon .input{padding-left:42px}
.hint{font-size:12.5px; color:var(--muted); margin-top:6px}
.check{display:flex; gap:10px; align-items:flex-start; font-size:14px; color:var(--ink-soft)}
.check input{margin-top:3px; accent-color:var(--red); width:16px;height:16px}
.divider{display:flex; align-items:center; gap:14px; color:var(--muted-2); font-size:13px; margin:22px 0}
.divider::before,.divider::after{content:""; height:1px; background:var(--line); flex:1}

/* OTP */
.otp{display:flex; gap:10px; justify-content:space-between}
.otp input{width:54px; height:60px; text-align:center; font-size:24px; font-weight:700; font-family:var(--display);
  border:1px solid var(--line); border-radius:12px}
.otp input:focus{outline:none; border-color:var(--red); box-shadow:0 0 0 3px var(--red-50)}

/* file upload */
.drop{border:1.5px dashed #CFD2DA; border-radius:14px; padding:24px; text-align:center; background:#FCFCFD; cursor:pointer; transition:.15s}
.drop:hover{border-color:var(--red); background:var(--red-50)}
.drop .ic{width:42px;height:42px;border-radius:12px;background:var(--red-50);color:var(--red); display:flex;align-items:center;justify-content:center; margin:0 auto 12px}
.drop .ic svg{width:20px;height:20px}
.drop b{font-size:14.5px}
.upload-row{display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:#fff}
.upload-row .fi{width:38px;height:38px;border-radius:9px;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.upload-row .fi svg{width:18px;height:18px}

/* stepper */
.stepper{display:flex; align-items:center; gap:0; margin-bottom:28px}
.stepper .s{display:flex; align-items:center; gap:10px; color:var(--muted); font-size:13px; font-weight:600}
.stepper .s .b{width:28px;height:28px;border-radius:50%; border:2px solid var(--line); display:flex;align-items:center;justify-content:center; font-size:13px; background:#fff}
.stepper .s.done .b{background:var(--red); border-color:var(--red); color:#fff}
.stepper .s.active{color:var(--ink)}
.stepper .s.active .b{border-color:var(--red); color:var(--red)}
.stepper .line{flex:1; height:2px; background:var(--line); margin:0 12px}
.stepper .line.done{background:var(--red)}

/* ============================================================
   PORTAL SHELL (member = light · admin = dark)
   ============================================================ */
.shell{display:grid; grid-template-columns:264px 1fr; min-height:100vh}
.sidebar{background:#fff; border-right:1px solid var(--line); padding:22px 16px; position:sticky; top:0; height:100vh; display:flex; flex-direction:column; overflow-y:auto}
.sidebar .lg{height:34px; margin:6px 8px 22px}
.side-sec{font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--muted-2); padding:14px 12px 8px}
.side-nav a{display:flex; align-items:center; gap:12px; padding:11px 12px; border-radius:11px; font-size:14.5px; font-weight:500; color:var(--ink-soft); position:relative}
.side-nav a svg{width:19px;height:19px; color:var(--muted)}
.side-nav a:hover{background:var(--line-2)}
.side-nav a.active{background:var(--red-50); color:var(--red-700); font-weight:600}
.side-nav a.active svg{color:var(--red)}
.side-nav a.active::before{content:""; position:absolute; left:-16px; top:8px; bottom:8px; width:3px; background:var(--red); border-radius:0 3px 3px 0}
.side-foot{margin-top:auto; padding:14px 8px 4px}
.side-card{background:var(--ink); color:#fff; border-radius:14px; padding:16px}
.side-card b{font-family:var(--display); display:block; font-size:15px}
.side-card p{color:#C9CACE; font-size:12.5px; margin:6px 0 12px}

/* admin variant — dark sidebar */
.shell.admin .sidebar{background:var(--ink); border-right-color:#262626}
.shell.admin .foot-logo{font-size:23px; margin:6px 8px 4px}
.shell.admin .side-sec{color:#6E7077}
.shell.admin .side-nav a{color:#B9BBC1}
.shell.admin .side-nav a svg{color:#7E808A}
.shell.admin .side-nav a:hover{background:#222}
.shell.admin .side-nav a.active{background:rgba(241,6,36,.16); color:#fff}
.shell.admin .side-nav a.active svg{color:var(--red)}
.shell.admin .side-card{background:#222}

.staff-tag{display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; color:var(--red); background:rgba(241,6,36,.16); padding:4px 9px; border-radius:6px; margin:0 8px 16px}

/* topbar */
.main{display:flex; flex-direction:column; min-width:0}
.topbar{position:sticky; top:0; z-index:20; background:rgba(245,246,248,.86); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line); padding:16px 30px; display:flex; align-items:center; justify-content:space-between; gap:16px}
.topbar h1{font-size:21px}
.topbar .crumb{font-size:12.5px; color:var(--muted); margin-bottom:2px}
.top-actions{display:flex; align-items:center; gap:12px}
.searchbox{position:relative}
.searchbox svg{position:absolute; left:12px; top:50%; transform:translateY(-50%); width:17px;height:17px; color:var(--muted-2)}
.searchbox input{width:240px; padding:9px 12px 9px 36px; border:1px solid var(--line); border-radius:10px; background:#fff; font-size:14px}
.searchbox input:focus{outline:none; border-color:var(--red)}
.icon-btn{width:40px;height:40px;border-radius:11px;border:1px solid var(--line); background:#fff; display:flex;align-items:center;justify-content:center; cursor:pointer; position:relative}
.icon-btn svg{width:19px;height:19px;color:var(--ink-soft)}
.icon-btn .pip{position:absolute; top:8px; right:9px; width:7px;height:7px;border-radius:50%; background:var(--red); border:2px solid #fff}
.avatar{width:40px;height:40px;border-radius:11px; background:var(--ink); color:#fff; display:flex;align-items:center;justify-content:center; font-weight:700; font-family:var(--display)}
.content{padding:28px 30px 48px}
.mobile-top{display:none}

/* stat tiles */
.stat{padding:20px}
.stat .lab{font-size:13px; color:var(--muted); display:flex; align-items:center; gap:8px}
.stat .lab .si{width:30px;height:30px;border-radius:9px; display:flex;align-items:center;justify-content:center; background:var(--red-50); color:var(--red)}
.stat .lab .si svg{width:16px;height:16px}
.stat .val{font-family:var(--display); font-size:30px; margin-top:12px}
.stat .delta{font-size:13px; margin-top:6px; display:inline-flex; align-items:center; gap:5px}
.stat .delta.up{color:var(--ok)} .stat .delta.down{color:var(--danger)}

/* panel */
.panel{background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow)}
.panel-head{padding:18px 22px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:12px}
.panel-head h3{font-size:17px}
.panel-body{padding:22px}
.panel-pad{padding:22px}

/* table */
.table{width:100%; border-collapse:collapse; font-size:14px}
.table th{text-align:left; font-weight:600; color:var(--muted); font-size:12px; letter-spacing:.04em; text-transform:uppercase;
  padding:12px 16px; border-bottom:1px solid var(--line)}
.table td{padding:14px 16px; border-bottom:1px solid var(--line-2)}
.table tr:last-child td{border-bottom:none}
.table tbody tr:hover{background:var(--line-2)}
.t-strong{font-weight:600}
.tx-ic{width:34px;height:34px;border-radius:10px; display:flex;align-items:center;justify-content:center; flex:none}
.tx-in{background:var(--ok-bg); color:var(--ok)} .tx-out{background:var(--danger-bg); color:var(--danger)}
.tx-ic svg{width:16px;height:16px}
.amt-in{color:var(--ok); font-weight:600} .amt-out{color:var(--ink); font-weight:600}

/* progress + pot */
.progress{height:9px; border-radius:99px; background:var(--line); overflow:hidden}
.progress > i{display:block; height:100%; background:var(--red); border-radius:99px}
.progress.ink > i{background:var(--ink)}
.goal{display:flex; align-items:center; gap:16px}
.pot-fill{width:54px;height:54px; flex:none; position:relative}

/* tabs */
.tabs{display:flex; gap:4px; background:var(--line-2); padding:4px; border-radius:12px; width:fit-content}
.tabs button{border:none; background:transparent; padding:8px 16px; border-radius:9px; font-family:var(--body);
  font-weight:600; font-size:13.5px; color:var(--muted); cursor:pointer}
.tabs button.active{background:#fff; color:var(--ink); box-shadow:var(--shadow)}

/* segmented info list */
.deflist{display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line); border:1px solid var(--line); border-radius:12px; overflow:hidden}
.deflist > div{background:#fff; padding:14px 16px}
.deflist dt{font-size:12.5px; color:var(--muted)}
.deflist dd{margin:4px 0 0; font-weight:600; font-family:var(--display)}

/* avatars row (groups) */
.faces{display:flex}
.faces span{width:30px;height:30px;border-radius:50%; border:2px solid #fff; margin-left:-8px; display:flex;align-items:center;justify-content:center;
  font-size:11px; font-weight:700; color:#fff; font-family:var(--display)}
.faces span:first-child{margin-left:0}

/* misc */
.empty{text-align:center; padding:44px 24px; color:var(--muted)}
.empty .ic{width:54px;height:54px;border-radius:14px; background:var(--line-2); display:flex;align-items:center;justify-content:center; margin:0 auto 14px}
.list-row{display:flex; align-items:center; gap:14px; padding:14px 0; border-bottom:1px solid var(--line-2)}
.list-row:last-child{border-bottom:none}
.note-box{background:var(--red-50); border:1px solid var(--red-100); border-radius:12px; padding:14px 16px; font-size:13.5px; color:var(--ink-soft); display:flex; gap:10px}
.note-box svg{width:18px;height:18px;color:var(--red);flex:none;margin-top:1px}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1024px){
  .hero h1{font-size:48px}
  .cta-band h2,.section-head h2{font-size:32px}
  .foot-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:880px){
  .nav-links{display:none}
  .nav-cta .login{display:none}
  .burger{display:flex}
  .hero-grid{grid-template-columns:1fr; gap:38px; padding:48px 0 56px}
  .hero .lead{max-width:none}
  .g4{grid-template-columns:repeat(2,1fr)}
  .g3{grid-template-columns:1fr}
  .g2{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr}
  .kpi-strip{grid-template-columns:repeat(2,1fr)}
  .auth{grid-template-columns:1fr}
  .auth-aside{display:none}
  /* portal */
  .shell{grid-template-columns:1fr}
  .sidebar{position:fixed; left:0; top:0; bottom:0; width:264px; z-index:80; transform:translateX(-100%); transition:transform .22s ease}
  .sidebar.open{transform:none}
  .scrim{display:none; position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:70}
  .scrim.open{display:block}
  .mobile-top{display:flex; align-items:center; justify-content:space-between; padding:12px 18px; background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:30}
  .mobile-top .lg{height:30px}
  .topbar{display:none}
  .content{padding:20px 18px 44px}
  .searchbox input{width:160px}
}
@media (max-width:560px){
  .section{padding:60px 0}
  .hero h1{font-size:38px}
  .section-head h2{font-size:27px}
  .cta-band{padding:32px}
  .deflist{grid-template-columns:1fr}
  .otp input{width:42px;height:52px;font-size:20px}
  .kpi-strip{grid-template-columns:1fr 1fr}
}

@media (prefers-reduced-motion:reduce){
  *{animation:none !important; transition:none !important; scroll-behavior:auto !important}
}

/* load animation */
.reveal{opacity:0; transform:translateY(14px); animation:rise .6s cubic-bezier(.2,.7,.3,1) forwards}
.reveal.d1{animation-delay:.06s}.reveal.d2{animation-delay:.12s}.reveal.d3{animation-delay:.18s}.reveal.d4{animation-delay:.24s}
@keyframes rise{to{opacity:1; transform:none}}
.spin-slow{animation:spin 60s linear infinite; transform-origin:center}
@keyframes spin{to{transform:rotate(360deg)}}
