/* ============================================================
   Caplora Lab — purple & white theme
   ============================================================ */
:root {
	--purple-950: #2e1065;
	--purple-900: #3b0764;
	--purple-800: #5b21b6;
	--purple-700: #6d28d9;
	--purple-600: #7c3aed;
	--purple-500: #8b5cf6;
	--purple-200: #ddd6fe;
	--purple-100: #ede9fe;
	--purple-50:  #f5f3ff;
	--ink:        #211b35;
	--muted:      #5f5a74;
	--line:       #e8e4f5;
	--white:      #ffffff;
	--green:      #25d366;
	--radius:     16px;
	--shadow:     0 10px 30px rgba(76, 29, 149, 0.10);
	--shadow-lg:  0 24px 60px rgba(46, 16, 101, 0.18);
	--font:       'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.65; font-size: 16.5px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-700); text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { line-height: 1.18; font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.section { padding: 84px 0; }
.section.tint { background: var(--purple-50); }
.section.dark { background: linear-gradient(135deg, var(--purple-950), var(--purple-800)); color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple-600); background: var(--purple-100); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.section.dark .section-head .eyebrow { color: var(--purple-100); background: rgba(255,255,255,0.12); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.section.dark .section-head p { color: rgba(255,255,255,0.82); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 14px 28px; border-radius: 12px; font-weight: 700; font-size: 0.98rem; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(120deg, var(--purple-700), var(--purple-500)); color: #fff; box-shadow: 0 8px 22px rgba(109, 40, 217, .35); }
.btn-outline { border: 2px solid var(--purple-200); color: var(--purple-800); background: #fff; }
.btn-white { background: #fff; color: var(--purple-800); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.btn-wa { background: var(--green); color: #fff; box-shadow: 0 8px 22px rgba(37, 211, 102, .35); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand-logo { height: 34px; width: auto; }
.site-nav > ul { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink); font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 6px; }
.site-nav a:hover { color: var(--purple-700); }
.has-sub { position: relative; }
.sub-menu { position: absolute; top: calc(100% + 12px); left: -16px; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s ease; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { display: block; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.sub-menu a:hover { background: var(--purple-50); }
.nav-cta a { background: linear-gradient(120deg, var(--purple-700), var(--purple-500)); color: #fff !important; padding: 10px 20px; border-radius: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--purple-900); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(130deg, var(--purple-950) 0%, var(--purple-800) 55%, var(--purple-600) 100%); color: #fff; }
.hero::before { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,.45), transparent 65%); top: -180px; right: -120px; }
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(221,214,254,.16), transparent 60%); bottom: -160px; left: -100px; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding: 84px 0 0; }
.hero-copy .eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); padding: 7px 16px; border-radius: 999px; margin-bottom: 22px; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy h1 em { font-style: normal; background: linear-gradient(90deg, #ddd6fe, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy p { font-size: 1.12rem; color: rgba(255,255,255,.85); max-width: 540px; margin-bottom: 30px; }
.hero-figure { position: relative; align-self: end; }
.hero-figure .portrait { width: min(360px, 80%); margin: 0 auto; border-radius: 26px 26px 0 0; box-shadow: var(--shadow-lg); filter: saturate(1.05); }
.hero-figure::before { content: ""; position: absolute; inset: 8% -6% -2% -6%; background: linear-gradient(160deg, rgba(139,92,246,.35), rgba(46,16,101,0) 60%); border-radius: 32px; pointer-events: none; }
.hero-badge { position: absolute; background: #fff; color: var(--ink); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 16px; font-size: .85rem; font-weight: 700; line-height: 1.3; }
.hero-badge small { display: block; color: var(--muted); font-weight: 600; }
.hero-badge.b1 { top: 16%; left: -4%; }
.hero-badge.b2 { bottom: 12%; right: -2%; }
.hero-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: rgba(255,255,255,0.08); border-top: 1px solid rgba(255,255,255,0.14); }
.hero-stat { padding: 26px 18px; text-align: center; }
.hero-stat b { display: block; font-size: 1.9rem; font-weight: 800; }
.hero-stat span { font-size: .86rem; color: rgba(255,255,255,.75); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--purple-600), var(--purple-500)); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: #fff; font-size: 1.35rem; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; }
.card .card-link { display: inline-block; margin-top: 16px; font-weight: 700; font-size: .93rem; }
.card .card-link::after { content: " →"; }
.card ul.ticks { margin-top: 14px; }
ul.ticks li { position: relative; padding-left: 28px; margin-bottom: 9px; color: var(--muted); font-size: .96rem; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 19px; height: 19px; border-radius: 50%; background: var(--purple-100); color: var(--purple-700); font-size: .72rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 3px; }
.section.dark ul.ticks li { color: rgba(255,255,255,.85); }
.section.dark ul.ticks li::before { background: rgba(255,255,255,.16); color: #fff; }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 84px; }
.split .eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--purple-600); background: var(--purple-100); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.split h2 { margin-bottom: 16px; }
.split p.lead { color: var(--muted); margin-bottom: 18px; }
.split-media { position: relative; }
.split-media img { border-radius: 20px; box-shadow: var(--shadow-lg); }
.split-media.blend-purple::after { content: ""; position: absolute; inset: 0; border-radius: 20px; background: linear-gradient(150deg, rgba(109,40,217,.30), rgba(139,92,246,.05) 55%); mix-blend-mode: multiply; pointer-events: none; }

/* ---------- Logo wall / marquee ---------- */
.logo-marquee { overflow: hidden; position: relative; padding: 10px 0; }
.logo-track { display: flex; gap: 22px; width: max-content; animation: marquee 60s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-chip { flex: 0 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; width: 108px; height: 78px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(76,29,149,.07); }
.logo-chip img { max-height: 56px; width: auto; max-width: 88px; object-fit: contain; border-radius: 8px; }
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
.logo-wall .logo-chip { width: auto; height: 104px; }
.logo-wall .logo-chip img { max-height: 76px; max-width: 120px; }
.logo-wall figure { text-align: center; }
.logo-wall figcaption { font-size: .72rem; color: var(--muted); margin-top: 6px; font-weight: 600; }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.stat-tile b { display: block; font-size: 2.5rem; font-weight: 800; color: var(--purple-700); }
.section.dark .stat-tile b { color: #fff; }
.stat-tile span { color: var(--muted); font-weight: 600; font-size: .95rem; }
.section.dark .stat-tile span { color: rgba(255,255,255,.78); }

/* ---------- Chat mockup ---------- */
.chat-mock { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; max-width: 420px; margin: 0 auto; border: 1px solid var(--line); }
.chat-mock-head { background: linear-gradient(120deg, var(--purple-800), var(--purple-600)); color: #fff; padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.chat-mock-head .avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.chat-mock-head b { display: block; font-size: .95rem; }
.chat-mock-head small { opacity: .8; font-size: .78rem; }
.chat-mock-body { padding: 20px; background: var(--purple-50); min-height: 300px; }
.bubble { max-width: 84%; padding: 11px 15px; border-radius: 16px; margin-bottom: 12px; font-size: .9rem; line-height: 1.45; box-shadow: 0 2px 8px rgba(76,29,149,.06); }
.bubble.bot { background: #fff; border-bottom-left-radius: 4px; }
.bubble.user { background: var(--purple-600); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.bubble.note { background: var(--purple-100); color: var(--purple-900); font-size: .78rem; font-weight: 700; text-align: center; max-width: 100%; }

/* ---------- Visa card mockup ---------- */
.visa-card { width: min(420px, 100%); aspect-ratio: 1.586; border-radius: 22px; background: linear-gradient(130deg, #2e1065 0%, #5b21b6 48%, #7c3aed 100%); color: #fff; padding: 28px; position: relative; box-shadow: var(--shadow-lg); margin: 0 auto; overflow: hidden; }
.visa-card::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%); top: -120px; right: -80px; }
.visa-card .vc-brand { font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; }
.visa-card .vc-chip { width: 46px; height: 34px; border-radius: 7px; background: linear-gradient(135deg, #fbbf24, #d97706); margin-top: 26px; position: relative; }
.visa-card .vc-chip::after { content: ""; position: absolute; inset: 8px 6px; border: 1.5px solid rgba(0,0,0,.25); border-radius: 4px; }
.visa-card .vc-num { font-size: 1.28rem; letter-spacing: .14em; margin-top: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.visa-card .vc-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 22px; }
.visa-card .vc-foot small { display: block; font-size: .62rem; opacity: .75; text-transform: uppercase; letter-spacing: .08em; }
.visa-card .vc-visa { font-style: italic; font-weight: 800; font-size: 1.5rem; letter-spacing: .02em; }

/* ---------- EDGE checker ---------- */
.checker { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 38px; max-width: 720px; margin: 0 auto; }
.checker h3 { margin-bottom: 6px; }
.checker > p { color: var(--muted); font-size: .95rem; margin-bottom: 24px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
.field select { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); font-family: var(--font); font-size: .96rem; color: var(--ink); background: #fff; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%236d28d9' stroke-width='2' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; }
.field select:focus { outline: none; border-color: var(--purple-500); box-shadow: 0 0 0 4px var(--purple-100); }
.checker-result { display: none; margin-top: 24px; padding: 22px; border-radius: 14px; font-size: .97rem; }
.checker-result.ok { display: block; background: #ecfdf5; border: 1.5px solid #a7f3d0; color: #065f46; }
.checker-result.maybe { display: block; background: var(--purple-50); border: 1.5px solid var(--purple-200); color: var(--purple-900); }
.checker-result.no { display: block; background: #fff7ed; border: 1.5px solid #fed7aa; color: #9a3412; }
.checker-result .btn { margin-top: 14px; }
.small-print { font-size: .8rem; color: var(--muted); margin-top: 18px; }

/* ---------- Accordion (industries) ---------- */
.accordion { max-width: 860px; margin: 0 auto; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; overflow: hidden; }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 24px; background: none; border: 0; cursor: pointer; font-family: var(--font); font-size: 1.02rem; font-weight: 700; color: var(--ink); text-align: left; }
.acc-head .acc-ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; background: var(--purple-100); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.acc-head .acc-title { flex: 1; }
.acc-head .acc-arrow { transition: transform .2s; color: var(--purple-600); }
.acc-item.open .acc-arrow { transform: rotate(180deg); }
.acc-body { display: none; padding: 0 24px 22px 84px; color: var(--muted); font-size: .96rem; }
.acc-item.open .acc-body { display: block; }
.acc-body b { color: var(--ink); }
.acc-body p { margin-bottom: 10px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-size: .85rem; font-weight: 800; color: var(--purple-600); background: var(--purple-100); border-radius: 999px; padding: 4px 12px; display: inline-block; margin-bottom: 14px; }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--purple-900), var(--purple-600)); border-radius: 24px; color: #fff; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; box-shadow: var(--shadow-lg); }
.cta-band h2 { max-width: 560px; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 8px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(130deg, var(--purple-950), var(--purple-700)); color: #fff; padding: 72px 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,.4), transparent 65%); top: -160px; right: -100px; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); padding: 6px 15px; border-radius: 999px; margin-bottom: 18px; }
.page-hero h1 { max-width: 780px; }
.page-hero p.sub { max-width: 660px; margin-top: 16px; color: rgba(255,255,255,.85); font-size: 1.08rem; }
.page-hero .btn-row { margin-top: 28px; }

/* ---------- Contact ---------- */
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
.contact-card h3 { margin-bottom: 16px; }
.contact-card li { margin-bottom: 12px; color: var(--muted); }
.contact-card li b { color: var(--ink); display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-950); color: rgba(255,255,255,.78); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr 1.1fr; gap: 40px; padding: 64px 24px 44px; }
.footer-logo { height: 30px; width: auto; background: #fff; padding: 6px 10px; border-radius: 8px; margin-bottom: 18px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; font-size: .92rem; }
.footer-col a { color: rgba(255,255,255,.78); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .85rem; }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 58px; height: 58px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(37, 211, 102, .45); transition: transform .15s; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.hero-inner { grid-template-columns: 1fr; padding-top: 64px; }
	.hero-figure { display: none; }
	.hero-stats { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
	.grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
	.split { grid-template-columns: 1fr; gap: 32px; }
	.split-media { order: -1; }
	.stats-band { grid-template-columns: repeat(2, 1fr); }
	.nav-toggle { display: block; }
	.site-nav { position: fixed; inset: 76px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; max-height: calc(100vh - 76px); overflow-y: auto; }
	.site-nav.open { display: block; }
	.site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; }
	.site-nav > ul > li { border-bottom: 1px solid var(--line); }
	.site-nav > ul > li:last-child { border-bottom: 0; }
	.site-nav a { padding: 14px 4px; display: flex; }
	.sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 16px; display: block; }
	.nav-cta { padding-top: 12px; }
	.nav-cta a { justify-content: center; }
	.cta-band { padding: 36px 28px; }
	.checker { padding: 26px 20px; }
	.acc-body { padding-left: 24px; }
	.steps { grid-template-columns: 1fr; }
}
