/* =============================================
   Nexcod POS — Public Site Styles
   ============================================= */

body { background: #fafafa; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.3px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.30);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .15s;
}
.site-nav a:hover { color: var(--text); }
.site-nav .btn { font-weight: 600; }

/* ===== Mobile menu toggle (hamburger) — hidden on desktop ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.08), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(124, 58, 237, 0.08), transparent 50%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--brand-100);
  color: var(--brand-700);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid var(--brand-200);
}

.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 0 0 18px;
  background: linear-gradient(135deg, #0f172a 0%, #4f46e5 60%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #0f172a;
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero .btn-primary { padding: 14px 28px; font-size: 15px; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

.hero-stats div { display: flex; align-items: center; gap: 6px; }
.hero-stats strong { color: var(--text); font-size: 14px; }

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0 0 12px;
}

.section-head p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Features grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all .2s;
}

.feature-card:hover {
  border-color: var(--brand-300);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.08);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-100), var(--brand-200));
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 28px;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--brand-600);
  box-shadow: 0 20px 50px rgba(79, 70, 229, 0.15);
  transform: scale(1.03);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.pricing-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  margin: 0 0 4px;
}

.pricing-card .desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-card .price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 4px;
}

.pricing-card .price small {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 22px 0;
}

.pricing-card li {
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pricing-card li::before {
  content: '✓';
  color: #10b981;
  font-weight: 700;
  flex-shrink: 0;
}
.pricing-card li.feat-no { color: #94a3b8; }
.pricing-card li.feat-no::before { content: '✗'; color: #cbd5e1; }

/* ===== Auth pages ===== */
.auth-wrap {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.1), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.1), transparent 50%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border);
}

.auth-card h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
  text-align: center;
}

.auth-card .auth-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.auth-card .form-input { padding: 12px 14px; }

.auth-card hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}

.auth-foot {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-foot a {
  color: var(--brand-600);
  font-weight: 600;
  text-decoration: none;
}

/* OTP input boxes */
.otp-input-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 12px 0;
}

.otp-input-row input {
  width: 48px;
  height: 56px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text);
  outline: none;
}

.otp-input-row input:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* ===== Footer ===== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 24px;
  margin-top: 60px;
}

.site-footer .site-brand { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.footer-grid a {
  display: block;
  padding: 5px 0;
  color: #94a3b8;
  text-decoration: none;
  font-size: 13.5px;
}
.footer-grid a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 22px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

/* ===== Form input alias (so includes/header.php works) ===== */
.form-input { /* alias of .input */
  width: 100%;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border .15s, box-shadow .15s;
}
.form-input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15); }
textarea.form-input { font-family: inherit; min-height: 90px; }

.form-select {
  width: 100%;
  padding: 10px 14px;
  padding-right: 38px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 14px;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.form-select:focus { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15); }

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

/* aliases for variables not in design-system */
:root {
  --primary: var(--brand-600);
  --bg-card: var(--surface);
  --bg-subtle: var(--surface-2);
}

/* Mobile */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.10);
    padding: 8px 16px 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .28s ease, opacity .2s ease;
  }
  .site-nav.open {
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a {
    display: block;
    padding: 13px 6px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
  }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav .btn {
    margin-top: 10px;
    text-align: center;
    border-bottom: 0 !important;
  }
  .site-nav .header-social { display: none; }
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-card.featured { transform: none; }
}

/* ============================================================
   Landing v2 + Founder/Team — premium look & scroll animations
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(620px 320px at 18% 8%, rgba(99,102,241,0.16), transparent 70%),
    radial-gradient(560px 320px at 92% 0%, rgba(139,92,246,0.14), transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 .grad {
  background: linear-gradient(100deg, #4f46e5, #8b5cf6 60%, #6366f1);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.btn-lg { padding: 13px 26px; font-size: 15px; }

.trust-strip { background: #fff; border-bottom: 1px solid var(--border); padding: 18px 0; }
.trust-strip .container { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.trust-strip span { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.trust-items { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; }
.trust-items div { font-size: 13px; font-weight: 600; color: #475569; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; }

.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.step-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 22px; position: relative; }
.step-no { width: 40px; height: 40px; border-radius: 12px; background: #4f46e5; color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step-card h3 { margin: 0 0 6px; font-size: 17px; }
.step-card p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; }

.why-v2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
.why-v2 h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 30px; letter-spacing: -.5px; margin: 14px 0 10px; }
.why-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.why-list li { color: #e2e8f0; font-size: 15px; font-weight: 500; }
.why-card { display: grid; gap: 12px; }
.why-stat { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); border-radius: 14px; padding: 18px 20px; }
.why-stat strong { display: block; font-size: 22px; color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; }
.why-stat span { color: #94a3b8; font-size: 13px; }

.faq details { border: 1px solid var(--border); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; font-size: 15px; list-style: none; outline: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: #4f46e5; font-weight: 700; font-size: 20px; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 16px; color: var(--text-muted); font-size: 14px; line-height: 1.6; }

.page-hero { padding: 56px 0 20px; text-align: center; background: radial-gradient(560px 260px at 50% -10%, rgba(99,102,241,0.14), transparent 70%); }
.page-hero h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 40px; letter-spacing: -1px; margin: 14px 0 8px; }

.founder-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.founder-photo { aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #ede9fe; border: 1px solid var(--border); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-photo.noimg { display: flex; align-items: center; justify-content: center; }
.founder-photo.noimg::after { content: attr(data-i); font-size: 80px; font-weight: 800; color: #8b5cf6; font-family: 'Plus Jakarta Sans', sans-serif; }
.founder-body h2 { margin: 0; font-size: 26px; }
.founder-role { color: #4f46e5; font-weight: 600; margin: 4px 0 16px; }
.founder-body blockquote { border-left: 3px solid #4f46e5; margin: 0 0 18px; padding: 6px 0 6px 16px; font-size: 17px; font-style: italic; color: #334155; }
.founder-body p { color: #475569; line-height: 1.7; margin: 0 0 14px; }

.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.team-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; text-align: center; transition: transform .2s, box-shadow .2s; }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(2,6,23,0.10); }
.team-photo {
  width: 104px; height: 104px; margin: 0 auto 16px; border-radius: 50%;
  overflow: hidden; position: relative;
  background: linear-gradient(135deg, #ede9fe, #e0e7ff);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(99,102,241,0.25);
  display: flex; align-items: center; justify-content: center;
}
.team-ini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 38px; font-weight: 800; color: #8b5cf6; font-family: 'Plus Jakarta Sans', sans-serif; z-index: 0; }
.team-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.team-ig { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-top: 12px; border-radius: 9px; color: #fff; background: linear-gradient(135deg,#f58529,#dd2a7b 55%,#8134af); }
.team-ig:hover { transform: translateY(-1px); }
.team-card h3 { margin: 0 0 2px; font-size: 16px; }
.team-role { color: #4f46e5; font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.team-card p { color: var(--text-muted); font-size: 13px; line-height: 1.55; margin: 0; }

@media (max-width: 820px) {
  .steps-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .why-v2 { grid-template-columns: 1fr; }
  .founder-wrap { grid-template-columns: 1fr; }
  .founder-photo { max-width: 260px; }
}
@media (max-width: 520px) {
  .steps-grid, .team-grid { grid-template-columns: 1fr; }
}

/* Header "Start Free" button — nav link color was overriding the button's white text.
   Force white text + add a soft blue glow. */
.site-nav a.btn-primary,
.site-nav a.btn-primary:hover,
.site-nav a.btn-primary:focus,
.site-nav a.btn-primary:visited {
  color: #fff !important;
}
.site-nav a.btn-primary {
  box-shadow: 0 0 0 1px rgba(99,102,241,0.35), 0 6px 20px rgba(79,70,229,0.45);
}
.site-nav a.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(99,102,241,0.55), 0 8px 28px rgba(99,102,241,0.60);
  transform: translateY(-1px);
}
/* ===== Social links (Follow us) ===== */
.footer-social { margin-top: 18px; }
.footer-social-label { display:block; font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:#94a3b8; margin-bottom:9px; }
.footer-social-icons { display:flex; gap:10px; flex-wrap:wrap; }
.footer-social-icons a { width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.06); color:#cbd5e1; transition:transform .15s, background .15s, color .15s; }
.footer-social-icons a:hover { background:#4f46e5; color:#fff; transform:translateY(-2px); }
.footer-social-icons svg { width:19px; height:19px; }

.header-social { display:inline-flex; gap:4px; align-items:center; margin:0 4px; padding:0 4px; border-left:1px solid var(--border,#e2e8f0); }
.header-social a { width:30px; height:30px; border-radius:7px; display:flex; align-items:center; justify-content:center; color:#64748b; transition:background .15s, color .15s; }
.header-social a:hover { background:#eef2ff; color:#4338ca; }
.header-social svg { width:17px; height:17px; }
@media (max-width: 980px){ .header-social { display:none; } }

/* ===== Inline button spinner (loading state) ===== */
.nxcd-spin { display:inline-block; width:14px; height:14px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; vertical-align:-2px; animation:nxcdSpin .6s linear infinite; }
@keyframes nxcdSpin { to { transform:rotate(360deg); } }
button.is-loading, .btn.is-loading, input.is-loading { opacity:.8 !important; cursor:wait !important; pointer-events:none !important; }

/* ===== Button loading spinner (global submit guard) ===== */
.nxcd-btn-spin{display:inline-block;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:nxcdspin .6s linear infinite;vertical-align:-2px;margin-right:5px}
@keyframes nxcdspin{to{transform:rotate(360deg)}}
button.is-loading,.btn.is-loading,a.btn.is-loading{opacity:.8;cursor:progress;pointer-events:none}
