/* CamTech & Financial Solutions — Company Registration Portal
   Clean, minimal, corporate financial-services design. Light theme,
   generous white space, restrained color and animation. */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root{
  --navy: #17324a;
  --navy-deep: #0e2233;
  --teal: #2fa8c9;
  --teal-deep: #1f7f9c;
  --bg: #f7f9fb;
  --surface: #ffffff;
  --border: #e4e9ee;
  --text: #1c2b38;
  --muted: #6b7c8a;
  --muted-2: #94a3b0;
  --green: #1f9d63;
  --amber: #c07a12;
  --red: #c23b3b;

  --grad: linear-gradient(100deg, var(--navy) 0%, var(--teal) 100%);
  --radius: 14px;
  --radius-sm: 9px;
  --container: 1160px;

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto;} *{transition-duration:.001ms !important;} }

body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--font-body); font-size:16px; line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit; cursor:pointer;}
input,select,textarea{font-family:inherit;}

h1,h2,h3,h4{font-family:var(--font-display); font-weight:700; line-height:1.18; margin:0; color:var(--navy-deep);}
h1{font-size:clamp(2.1rem,4.2vw,3.1rem); font-weight:800; letter-spacing:-.01em;}
h2{font-size:clamp(1.6rem,3vw,2.2rem); letter-spacing:-.01em;}
h3{font-size:1.15rem;}
p{margin:0;}
.lede{font-size:1.05rem; color:var(--muted); max-width:56ch;}

.container{max-width:var(--container); margin:0 auto; padding:0 24px;}
.section{padding:84px 0;}
.section--tight{padding:56px 0;}
@media (max-width:760px){ .section{padding:56px 0;} .container{padding:0 18px;} }

.eyebrow{
  font-size:.78rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  color:var(--teal-deep); margin-bottom:12px; display:block;
}
.center{text-align:center; margin-left:auto; margin-right:auto;}
.section-head{max-width:640px; margin-bottom:44px;}
.section-head.center{margin-left:auto; margin-right:auto;}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 26px; border-radius:9px; font-weight:600; font-size:.95rem;
  border:1px solid transparent; transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.btn-primary{ background:var(--navy); color:#fff; box-shadow:0 6px 18px -6px rgba(23,50,74,.4); }
.btn-primary:hover{ background:var(--navy-deep); transform:translateY(-1px); }
.btn-teal{ background:var(--teal); color:#fff; box-shadow:0 6px 18px -6px rgba(47,168,201,.5); }
.btn-teal:hover{ background:var(--teal-deep); transform:translateY(-1px); }
.btn-ghost{ background:#fff; border-color:var(--border); color:var(--navy); }
.btn-ghost:hover{ border-color:var(--navy); }
.btn-block{ width:100%; }
.btn-sm{ padding:10px 18px; font-size:.85rem; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }

/* ---------- Nav ---------- */
.nav{ position:sticky; top:0; z-index:100; background:rgba(255,255,255,.92); backdrop-filter:blur(10px); border-bottom:1px solid var(--border); }
.nav-inner{ display:flex; align-items:center; justify-content:space-between; padding:14px 24px; max-width:var(--container); margin:0 auto; gap:20px; }
.brand img{ height:34px; width:auto; }
.nav-links{ display:flex; align-items:center; gap:26px; }
.nav-links a{ font-size:.88rem; font-weight:500; color:var(--muted); white-space:nowrap; }
.nav-links a:hover, .nav-links a.active{ color:var(--navy); }
.nav-toggle{ display:none; background:none; border:1px solid var(--border); border-radius:8px; padding:9px 11px; color:var(--navy); }
.nav-toggle svg{ width:18px; height:18px; display:block; }
@media (max-width:900px){
  .nav-links{
    position:fixed; top:63px; right:0; left:0; height:calc(100vh - 63px); z-index:90;
    background:#fff; flex-direction:column; align-items:flex-start; gap:0; padding:8px 20px 30px;
    transform:translateY(-8px); opacity:0; pointer-events:none; transition:transform .2s ease, opacity .2s ease;
    border-top:1px solid var(--border); overflow-y:auto;
  }
  .nav-links.open{ transform:translateY(0); opacity:1; pointer-events:auto; }
  .nav-links a{ padding:14px 0; width:100%; border-bottom:1px solid var(--border); }
  .nav-actions .btn-ghost{ display:none; }
  .nav-toggle{ display:inline-flex; align-items:center; }
}

/* ---------- Hero ---------- */
.hero{ padding:64px 0 70px; border-bottom:1px solid var(--border); }
.hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:50px; align-items:center; }
@media (max-width:900px){ .hero-grid{ grid-template-columns:1fr; } }
.hero-ctas{ display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.trust-row{ display:flex; flex-wrap:wrap; gap:10px 22px; margin-top:34px; }
.trust-item{ display:flex; align-items:center; gap:8px; font-size:.85rem; color:var(--muted); font-weight:500; }
.trust-item svg{ width:16px; height:16px; color:var(--green); flex-shrink:0; }

.hero-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:30px; box-shadow:0 30px 60px -30px rgba(23,50,74,.18);
}

/* ---------- Cards ---------- */
.card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:26px; transition:box-shadow .18s ease, border-color .18s ease; }
.card:hover{ box-shadow:0 14px 30px -18px rgba(23,50,74,.2); border-color:#d7dfe6; }
.grid{ display:grid; gap:20px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:900px){ .grid-3,.grid-4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr; } }

.icon-circle{
  width:44px; height:44px; border-radius:11px; background:rgba(47,168,201,.1);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px; color:var(--teal-deep);
}
.icon-circle svg{ width:22px; height:22px; }

.tag{ display:inline-block; font-size:.72rem; font-weight:600; letter-spacing:.04em; text-transform:uppercase; padding:5px 11px; border-radius:999px; border:1px solid var(--border); color:var(--muted); }
.tag-green{ color:var(--green); border-color:rgba(31,157,99,.35); background:rgba(31,157,99,.08); }
.tag-amber{ color:var(--amber); border-color:rgba(192,122,18,.35); background:rgba(192,122,18,.08); }
.tag-red{ color:var(--red); border-color:rgba(194,59,59,.35); background:rgba(194,59,59,.08); }
.tag-teal{ color:var(--teal-deep); border-color:rgba(47,168,201,.35); background:rgba(47,168,201,.08); }
.demo-flag{ font-size:.68rem; font-weight:600; letter-spacing:.05em; text-transform:uppercase; padding:4px 10px; border-radius:6px; background:rgba(192,122,18,.1); border:1px solid rgba(192,122,18,.35); color:var(--amber); }

/* ---------- Steps (How it works) ---------- */
.step-card{ position:relative; padding-top:8px; }
.step-num{ font-family:var(--font-display); font-size:2.1rem; font-weight:800; color:#dbe6ec; line-height:1; margin-bottom:10px; }

/* ---------- FAQ accordion ---------- */
.faq-item{ border-bottom:1px solid var(--border); }
.faq-q{ display:flex; align-items:center; justify-content:space-between; padding:20px 0; cursor:pointer; font-weight:600; color:var(--navy-deep); }
.faq-q svg{ width:18px; height:18px; color:var(--muted); flex-shrink:0; transition:transform .2s ease; }
.faq-item.open .faq-q svg{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .25s ease; color:var(--muted); }
.faq-item.open .faq-a{ max-height:220px; }
.faq-a-inner{ padding-bottom:20px; }

/* ---------- Footer ---------- */
.footer{ border-top:1px solid var(--border); padding:56px 0 26px; background:var(--surface); }
.footer-grid{ display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:40px; margin-bottom:40px; }
@media (max-width:700px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
.footer h4{ font-size:.78rem; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); margin-bottom:14px; }
.footer ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; }
.footer a{ color:var(--muted); font-size:.9rem; }
.footer a:hover{ color:var(--navy); }
.footer-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; padding-top:22px; border-top:1px solid var(--border); font-size:.8rem; color:var(--muted-2); }

/* ---------- Forms ---------- */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:640px){ .form-grid{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:7px; }
.field.full{ grid-column:1/-1; }
.field label{ font-size:.82rem; font-weight:600; color:var(--navy-deep); }
.field .hint{ font-size:.78rem; color:var(--muted-2); font-weight:400; }
.field input, .field select, .field textarea{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius-sm);
  padding:12px 14px; color:var(--text); font-size:.95rem; outline:none; transition:border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--teal); }
.field textarea{ resize:vertical; min-height:90px; }

/* ---------- Multi-step form shell ---------- */
.form-shell{ max-width:820px; margin:0 auto; }
.progress-wrap{ margin-bottom:34px; }
.progress-label{ display:flex; justify-content:space-between; font-size:.82rem; font-weight:600; color:var(--muted); margin-bottom:10px; }
.progress-track{ height:6px; background:var(--border); border-radius:99px; overflow:hidden; }
.progress-fill{ height:100%; background:var(--grad); border-radius:99px; transition:width .3s ease; }
.step-panel{ display:none; }
.step-panel.active{ display:block; animation:fadein .25s ease; }
@keyframes fadein{ from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:none;} }
.step-actions{ display:flex; justify-content:space-between; margin-top:32px; gap:12px; }

.dyn-entry{ border:1px solid var(--border); border-radius:var(--radius-sm); padding:20px; margin-bottom:16px; position:relative; background:#fbfcfd; }
.dyn-entry-remove{ position:absolute; top:14px; right:14px; background:none; border:none; color:var(--muted-2); font-size:1.1rem; padding:2px 6px; }
.dyn-entry-remove:hover{ color:var(--red); }
.add-entry-btn{ border:1.5px dashed var(--border); background:none; border-radius:var(--radius-sm); padding:13px; width:100%; color:var(--teal-deep); font-weight:600; font-size:.88rem; }
.add-entry-btn:hover{ border-color:var(--teal); background:rgba(47,168,201,.05); }

.upload-box{ border:1.5px dashed var(--border); border-radius:var(--radius-sm); padding:22px; text-align:center; background:#fbfcfd; }
.upload-box input[type=file]{ margin-top:10px; }
.upload-filename{ font-size:.82rem; color:var(--green); margin-top:8px; font-weight:600; }

.summary-block{ border:1px solid var(--border); border-radius:var(--radius-sm); padding:20px; margin-bottom:16px; }
.summary-block h4{ font-size:.85rem; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); margin-bottom:12px; display:flex; justify-content:space-between; align-items:center; }
.summary-row{ display:flex; justify-content:space-between; gap:20px; padding:6px 0; font-size:.92rem; border-bottom:1px dashed var(--border); }
.summary-row:last-child{ border-bottom:none; }
.summary-row span:first-child{ color:var(--muted); }
.summary-row span:last-child{ font-weight:600; text-align:right; }

.check-row{ display:flex; align-items:flex-start; gap:10px; font-size:.88rem; color:var(--muted); margin-bottom:14px; }
.check-row input{ margin-top:3px; width:16px; height:16px; flex-shrink:0; }

/* PesePay payment card */
.pay-card{ border:1px solid var(--border); border-radius:var(--radius); padding:26px; background:#fbfcfd; }
.pay-amount{ font-family:var(--font-display); font-size:2.2rem; font-weight:800; color:var(--navy-deep); }
.pesepay-badge{ display:inline-flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--border); border-radius:999px; padding:6px 14px; font-size:.8rem; font-weight:700; color:var(--navy); }
.pay-status{ display:flex; align-items:center; gap:10px; padding:14px 16px; border-radius:var(--radius-sm); font-size:.9rem; font-weight:600; margin-top:16px; }
.pay-status.pending{ background:rgba(192,122,18,.08); color:var(--amber); }
.pay-status.success{ background:rgba(31,157,99,.08); color:var(--green); }
.spinner{ width:15px; height:15px; border:2px solid rgba(192,122,18,.3); border-top-color:var(--amber); border-radius:50%; animation:spin .7s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* Tracking */
.timeline{ position:relative; padding-left:34px; }
.timeline::before{ content:""; position:absolute; left:10px; top:6px; bottom:6px; width:2px; background:var(--border); }
.timeline-item{ position:relative; padding-bottom:28px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-dot{ position:absolute; left:-34px; top:2px; width:22px; height:22px; border-radius:50%; background:#fff; border:2px solid var(--border); display:flex; align-items:center; justify-content:center; }
.timeline-item.done .timeline-dot{ border-color:var(--green); background:var(--green); }
.timeline-item.active .timeline-dot{ border-color:var(--teal); background:var(--teal); }
.timeline-dot svg{ width:11px; height:11px; color:#fff; }

.wa-float{
  position:fixed; right:22px; bottom:22px; z-index:200; width:56px; height:56px; border-radius:50%;
  background:linear-gradient(135deg,#25d366,#1aa64b); display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 26px -8px rgba(37,211,102,.55); transition:transform .18s ease;
}
.wa-float:hover{ transform:scale(1.06); }
.wa-float svg{ width:26px; height:26px; fill:#fff; }

.divider{ height:1px; background:var(--border); border:none; margin:0; }
::selection{ background:var(--teal); color:#fff; }

/* ---------- Tabs (merged How It Works / Why CamTech / FAQ) ---------- */
.tabs-nav{ display:flex; gap:6px; justify-content:center; flex-wrap:wrap; margin-bottom:34px; border-bottom:1px solid var(--border); }
.tabs-nav button{ background:none; border:none; padding:14px 20px; font-weight:600; font-size:.92rem; color:var(--muted); border-bottom:2px solid transparent; margin-bottom:-1px; }
.tabs-nav button.active{ color:var(--navy); border-bottom-color:var(--teal); }
.tab-panel{ display:none; }
.tab-panel.active{ display:block; animation:fadein .2s ease; }
@keyframes fadein{ from{opacity:0;} to{opacity:1;} }

/* ---------- Admin ---------- */
.admin-shell{ display:grid; grid-template-columns:220px 1fr; min-height:calc(100vh - 63px); }
@media (max-width:860px){ .admin-shell{ grid-template-columns:1fr; } }
.admin-side{ border-right:1px solid var(--border); padding:22px 14px; background:var(--surface); }
@media (max-width:860px){ .admin-side{ border-right:none; border-bottom:1px solid var(--border); display:flex; overflow-x:auto; gap:4px; } }
.admin-nav a{ display:block; padding:11px 14px; border-radius:8px; font-size:.88rem; font-weight:500; color:var(--muted); white-space:nowrap; margin-bottom:2px; }
.admin-nav a:hover{ background:var(--bg); color:var(--navy); }
.admin-nav a.active{ background:rgba(47,168,201,.1); color:var(--teal-deep); font-weight:600; }
.admin-main{ padding:28px; }
.admin-table{ width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.admin-table th{ text-align:left; font-size:.72rem; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); background:var(--bg); padding:12px 16px; border-bottom:1px solid var(--border); }
.admin-table td{ padding:13px 16px; border-bottom:1px solid var(--border); font-size:.9rem; }
.admin-table tr:last-child td{ border-bottom:none; }
.admin-table tr.clickable{ cursor:pointer; }
.admin-table tr.clickable:hover{ background:var(--bg); }
.stage-btns{ display:flex; flex-wrap:wrap; gap:8px; }
.stage-btn{ padding:9px 14px; border-radius:8px; border:1px solid var(--border); background:#fff; font-size:.82rem; font-weight:600; color:var(--muted); }
.stage-btn.current{ background:var(--navy); color:#fff; border-color:var(--navy); }
.doc-row{ display:flex; justify-content:space-between; align-items:center; padding:10px 14px; border:1px solid var(--border); border-radius:8px; margin-bottom:8px; font-size:.88rem; }
.login-shell{ max-width:380px; margin:80px auto; }
