/* ==============================================
   TapPlaza — Redesigned Premium UI
   Refined Dark-first, editorial luxury SaaS
   ============================================== */

/* ── DESIGN TOKENS ── */
:root {
  /* Core palette */
  --bg:      #060810;
  --bg2:     #090c14;
  --bg3:     #0d1020;
  --surf:    #0f1422;
  --surf2:   #141929;
  --bdr:     #1a2238;
  --bdr2:    #22304d;

  /* Brand accent — electric indigo-to-cyan */
  --acc:     #3858E9;
  --acc2:    #2a44d4;
  --acc3:    #3858E9;
  --acc-glow:rgba(56,88,233,0.18);

  /* Semantic */
  --gold:    #f0b429;
  --grn:     #22d07a;
  --red:     #ff4b60;

  /* Typography */
  --t1:      #eef2fc;
  --t2:      #6b7fa3;
  --t3:      #3a4d6e;

  /* Fonts */
  --ffd:     'Bricolage Grotesque', 'DM Serif Display', sans-serif;
  --ffb:     'Inter', sans-serif;

  /* Radii */
  --r:       8px;
  --rlg:     14px;
  --rxl:     20px;

  /* Mode */
}

/* ── LIGHT MODE ── */
body.light-mode {
  --bg:   #f5f7ff;
  --bg2:  #ebedfa;
  --bg3:  #dde1f5;
  --surf: #ffffff;
  --surf2:#f0f2ff;
  --bdr:  #d0d5f0;
  --bdr2: #b8bfdf;
  --t1:   #0b0e1f;
  --t2:   #4a5070;
  --t3:   #8a90b0;
}

html.light-mode {
  --bg:   #f5f7ff; --bg2:  #ebedfa; --bg3:  #dde1f5;
  --surf: #ffffff;  --surf2:#f0f2ff;
  --bdr:  #d0d5f0;  --bdr2: #b8bfdf;
  --t1:   #0b0e1f;  --t2:   #4a5070; --t3:   #8a90b0;
}

/* Light mode overrides */
body.light-mode .site-header,
html.light-mode .site-header  { background: rgba(245,247,255,0.96); }
body.light-mode .mobile-nav,
html.light-mode .mobile-nav   { background: var(--bg2); }
/* Light mode hero — text adapts to light background */
body.light-mode .hero::before,
html.light-mode .hero::before {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(56,88,233,.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 85% 70%, rgba(56,88,233,.05) 0%, transparent 55%);
}
body.light-mode .hero h1,
html.light-mode .hero h1 { color: var(--t1); -webkit-text-fill-color: var(--t1); }
body.light-mode .hero h1 .highlight,
html.light-mode .hero h1 .highlight { -webkit-text-fill-color: transparent; }
body.light-mode .hero h1 .hero-muted,
html.light-mode .hero h1 .hero-muted { color: var(--t2); -webkit-text-fill-color: var(--t2); }
body.light-mode .hero-sub,
html.light-mode .hero-sub { color: var(--t2); }
body.light-mode .hero-badge,
html.light-mode .hero-badge { background: rgba(56,88,233,.08); border-color: rgba(56,88,233,.18); color: var(--t2); }
body.light-mode .hero-stats,
html.light-mode .hero-stats { background: var(--surf); border-color: var(--bdr); }
body.light-mode .stat-num,
html.light-mode .stat-num { color: var(--t1); }
body.light-mode .stat-label,
html.light-mode .stat-label { color: var(--t3); }
body.light-mode .hero .btn-ghost,
html.light-mode .hero .btn-ghost { color: var(--t2); border-color: var(--bdr); }
body.light-mode .btn-ghost { color: var(--t2); border-color: var(--bdr); }
body.light-mode .btn-ghost:hover { background: var(--bg3); }
body.light-mode .trust-bar  { background: var(--surf); }
body.light-mode .section-dark { background: var(--bg2); }
body.light-mode .product-card { background: var(--surf); }
body.light-mode .feat-card    { background: var(--surf); }
body.light-mode .feat-card:hover { background: var(--surf2); }
body.light-mode .testimonial  { background: var(--surf); }
body.light-mode .hero-stats   { background: var(--surf); }
body.light-mode .hero-badge   { background: var(--surf); }
body.light-mode .step-num     { background: var(--surf); }
body.light-mode .hv-card      { background: var(--surf); }
body.light-mode .site-footer  { background: var(--bg2); }
body.light-mode .section-label { background: rgba(56,88,233,.09); border-color: rgba(56,88,233,.2); }
html.light-mode .site-footer  { background: var(--bg2); }
html.light-mode .section-dark { background: var(--bg2); }

/* Mode toggle */
.mode-toggle {
  width: 34px; height: 34px; border-radius: var(--r);
  background: var(--surf); border: 1px solid var(--bdr);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; transition: all .2s;
  flex-shrink: 0; line-height: 1;
}
.mode-toggle:hover { background: var(--surf2); border-color: var(--acc); }
/* Dark mode: show sun (click to go light) */
.mode-toggle::after { content: '☀️'; }
/* Light mode: show moon (click to go dark) */
body.light-mode .mode-toggle::after,
html.light-mode .mode-toggle::after { content: '🌙'; }

/* ── GOOGLE FONTS IMPORT (added via header.php wp_head) ── */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700;12..96,800&family=Inter:wght@400;500;600&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--t1);
  font-family: var(--ffb);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── LAYOUT ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 36px; }
section { padding: 96px 0; }
.section-dark { background: var(--bg2); }

/* ── SECTION LABELS ── */
.section-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--acc);
  background: rgba(56,88,233,.08);
  border: 1px solid rgba(56,88,233,.18);
  padding: 5px 13px; border-radius: 100px;
  margin-bottom: 18px;
}
.section-label::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 8px var(--acc);
  flex-shrink: 0;
}

/* ── SECTION TITLES ── */
.section-title {
  font-family: var(--ffd);
  font-size: var(--h2-size, clamp(1.7rem, 3vw, 2.5rem));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.035em;
  color: var(--t1);
  margin-bottom: 14px;
}
.section-sub {
  font-size: .88rem; color: var(--t2);
  line-height: 1.8; max-width: 500px;
}
.text-accent { color: var(--acc); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: var(--r);
  font-family: var(--ffb); font-size: .82rem; font-weight: 600;
  cursor: pointer; border: none; transition: all .2s ease;
  white-space: nowrap; line-height: 1; letter-spacing: .01em;
}
.btn-ghost {
  background: transparent;
  color: var(--t2);
  border: 1px solid var(--bdr);
}
.btn-ghost:hover {
  color: var(--t1);
  border-color: rgba(56,88,233,.35);
  background: rgba(56,88,233,.06);
}
.btn-primary {
  background: var(--acc);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 0 0 rgba(56,88,233,0);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.14) 0%, transparent 60%);
  border-radius: inherit;
}
.btn-primary:hover {
  background: #4f6feb;
  box-shadow: 0 6px 28px rgba(56,88,233,.4);
  transform: translateY(-2px);
}
.btn-lg { padding: 13px 28px; font-size: .88rem; border-radius: 10px; }

/* ── NOISE TEXTURE — applied to dark backgrounds ── */
.has-noise::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ==============================================
   HEADER
   ============================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px;
  background: rgba(6,8,16,.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: box-shadow .3s, background .3s;
}
.site-header.scrolled {
  background: rgba(6,8,16,.96);
  box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 8px 32px rgba(0,0,0,.6);
}

body { padding-top: 64px; }
.admin-bar .site-header { top: 32px; }
.admin-bar body { padding-top: calc(64px + 32px); }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar body { padding-top: calc(58px + 46px); }
}

/* Logo */
.site-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ffd); font-size: 1.05rem; font-weight: 800;
  color: var(--t1); letter-spacing: -.025em; flex-shrink: 0;
}
.logo-text {
  font-family: var(--ffd); font-size: 1.1rem; font-weight: 800;
  color: var(--t1); letter-spacing: -.03em;
}
.logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(145deg, var(--acc), var(--acc2));
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  box-shadow: 0 0 18px rgba(56,88,233,.35), inset 0 1px 0 rgba(255,255,255,.2);
  flex-shrink: 0;
}

/* Desktop nav */
.primary-nav { display: flex; align-items: center; gap: 0; }
.primary-nav a {
  color: var(--t2); font-size: .8rem; font-weight: 500;
  padding: 6px 13px; border-radius: 6px;
  transition: all .18s; letter-spacing: .005em;
}
.primary-nav a:hover { color: var(--t1); background: rgba(255,255,255,.05); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 5px; width: 34px; height: 34px;
}
.nav-hamburger span {
  display: block; height: 2px; width: 20px;
  background: var(--t2); border-radius: 2px;
  transition: transform .25s, opacity .25s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-controls {
  display: none;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.mode-toggle-mobile {
  width: 34px; height: 34px; border-radius: var(--r);
  background: var(--surf); border: 1px solid var(--bdr);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; transition: all .2s;
  flex-shrink: 0; line-height: 1;
}
.mode-toggle-mobile:hover  { background: var(--surf2); border-color: var(--acc); }
.mode-toggle-mobile::after { content: '☀️'; }
body.light-mode .mode-toggle-mobile::after,
html.light-mode .mode-toggle-mobile::after { content: '🌙'; }

/* Mobile drawer */
.mobile-nav {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--bg2); z-index: 899;
  padding: 8px 20px 48px;
  flex-direction: column; overflow-y: auto;
  border-top: 1px solid var(--bdr);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block; padding: 14px 6px;
  font-size: .9rem; font-weight: 500; color: var(--t2);
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: color .15s;
}
.mobile-nav a:hover { color: var(--t1); }
.mobile-nav-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.mobile-nav-actions .btn { justify-content: center; width: 100%; }

/* ==============================================
   HERO — elevated, immersive
   ============================================== */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 88px;
  display: flex; align-items: center;
  min-height: 680px;
  background: var(--bg);
}

/* Atmospheric overlay */
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%,  rgba(56,88,233,.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 85% 60%,  rgba(56,88,233,.06)  0%, transparent 55%),
    radial-gradient(ellipse 35% 35% at 15% 75%,  rgba(56,88,233,.04) 0%, transparent 55%);
}

/* Sharp grid — hidden because SVG now carries its own grid */
.hero-grid { display: none; }

/* Hero BG Illustration */
.hero-bg-illustration {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible; /* let cards breathe — clipping handled by SVG viewBox */
}
.hero-bg-illustration svg {
  width: 100%; height: 100%; display: block;
  overflow: visible;
}

/* Container sits above illustration AND the ::before glow overlay */
.hero > .container {
  position: relative;
  z-index: 10;
}

.hero-content {
  position: relative; z-index: 10;
  text-align: center;
  max-width: 860px; margin: 0 auto;
}

/* Badge pill — premium */
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(56,88,233,.08);
  border: 1px solid rgba(56,88,233,.2);
  border-radius: 100px; padding: 6px 16px 6px 10px;
  font-size: .72rem; font-weight: 500; color: var(--t2);
  margin-bottom: 28px;
  animation: fadeUp .5s ease both;
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grn); box-shadow: 0 0 10px var(--grn);
  animation: blip 2.5s ease-in-out infinite; flex-shrink: 0;
}
@keyframes blip {
  0%, 100% { opacity: 1;  box-shadow: 0 0 10px var(--grn); }
  50%       { opacity: .35; box-shadow: 0 0 3px var(--grn); }
}

/* H1 — editorial scale */
.hero h1 {
  font-family: var(--ffd);
  font-size: var(--h1-size, clamp(2rem, 5vw, 4rem));
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.04em;
  margin-bottom: 22px;
  animation: fadeUp .5s .1s ease both;
}
.hero h1 .highlight {
  background: linear-gradient(130deg, var(--acc) 0%, var(--acc3) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 .hero-muted {
  color: var(--t2);
  -webkit-text-fill-color: var(--t2);
}

/* Sub */
.hero-sub {
  font-size: clamp(.85rem, 1.5vw, .98rem);
  color: var(--t2); line-height: 1.85;
  max-width: 580px; margin: 0 auto 36px;
  animation: fadeUp .5s .18s ease both;
}

/* CTA row */
.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 52px;
  animation: fadeUp .5s .26s ease both;
}

/* Stats — glassmorphism pill */
.hero-stats {
  display: inline-flex; align-items: center;
  gap: 0; flex-wrap: nowrap;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 18px 28px;
  animation: fadeUp .5s .34s ease both;
  backdrop-filter: blur(12px);
}
.stat { text-align: center; padding: 0 22px; }
.stat-divider { width: 1px; height: 30px; background: rgba(255,255,255,.07); flex-shrink: 0; }
.stat-num {
  font-family: var(--ffd);
  font-size: 1.5rem; font-weight: 800;
  color: var(--t1); line-height: 1; letter-spacing: -.03em;
}
.stat-num span { color: var(--acc); }
.stat-label {
  font-size: .62rem; color: var(--t3);
  margin-top: 5px; letter-spacing: .08em; text-transform: uppercase;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==============================================
   TRUST BAR — minimal, refined ticker
   ============================================== */
.trust-bar {
  height: 40px; overflow: hidden;
  background: var(--surf);
  border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr);
  display: flex; align-items: center;
  position: relative;
}
.trust-bar::before, .trust-bar::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none;
}
.trust-bar::before { left: 0; background: linear-gradient(to right, var(--surf), transparent); }
.trust-bar::after  { right: 0; background: linear-gradient(to left, var(--surf), transparent); }
.trust-track {
  display: flex; align-items: center; gap: 30px;
  white-space: nowrap; padding: 0 30px;
  animation: ticker 30s linear infinite;
}
.trust-bar:hover .trust-track { animation-play-state: paused; }
.trust-item { font-size: .72rem; color: var(--t3); font-weight: 500; flex-shrink: 0; letter-spacing: .04em; }
.trust-sep  { color: var(--bdr2); flex-shrink: 0; font-size: .5rem; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ==============================================
   SECTION HELPERS
   ============================================== */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 44px; flex-wrap: wrap; gap: 14px;
}
.section-head-center {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 52px;
}
.section-head-center .section-sub { text-align: center; }

/* ==============================================
   PRODUCT CARDS — elevated, editorial
   ============================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bdr);
  border: 1px solid var(--bdr);
  border-radius: var(--rxl);
  overflow: hidden;
}
.product-card {
  background: var(--surf);
  transition: background .22s, transform .22s;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  position: relative;
}
.product-card::after {
  content: '';
  position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(145deg, rgba(56,88,233,.04) 0%, transparent 70%);
  transition: opacity .22s;
  pointer-events: none;
}
.product-card:hover { background: var(--surf2); }
.product-card:hover::after { opacity: 1; }

.card-thumb {
  height: 160px; background: var(--bg3);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.card-thumb img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
/* Dynamic gradient overlay on thumb */
.card-thumb::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6,8,16,.55) 100%);
  z-index: 1;
}
.card-thumb-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(56,88,233,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,88,233,.04) 1px, transparent 1px);
  background-size: 20px 20px;
}
.card-thumb-icon { font-size: 2.4rem; opacity: .12; position: relative; z-index: 1; }
.card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: .58rem; font-weight: 700; letter-spacing: .08em;
  padding: 4px 9px; border-radius: 100px; text-transform: uppercase;
}
.badge-sale {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: var(--red); color: #fff;
  font-size: .58rem; font-weight: 700; padding: 4px 9px; border-radius: 100px;
}
.card-body  { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-title {
  font-family: var(--ffd); font-size: .92rem; font-weight: 700;
  color: var(--t1); margin-bottom: 7px; line-height: 1.3; letter-spacing: -.015em;
}
.card-desc  { font-size: .78rem; color: var(--t2); line-height: 1.65; margin-bottom: 14px; flex: 1; }
.card-meta  {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 13px; border-top: 1px solid var(--bdr); margin-top: auto;
}
.card-price { font-family: var(--ffd); font-size: .9rem; font-weight: 700; color: var(--t1); letter-spacing: -.01em; }
.card-ver   {
  font-size: .62rem; color: var(--t3);
  background: var(--bg3); border: 1px solid var(--bdr);
  padding: 3px 8px; border-radius: 100px;
}
.products-cta { text-align: center; margin-top: 36px; }

/* ==============================================
   FEATURES BENTO — sharp grid layout
   ============================================== */
.features-bento {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; border-radius: var(--rxl); overflow: hidden;
  border: 1px solid var(--bdr);
  background: var(--bdr);
  margin-top: 52px;
}
.feat-card {
  background: var(--surf); padding: 30px 26px;
  transition: background .2s;
  display: flex; flex-direction: column; gap: 11px;
  position: relative; overflow: hidden;
}
.feat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent);
  opacity: 0; transition: opacity .25s;
}
.feat-card:hover { background: var(--surf2); }
.feat-card:hover::before { opacity: .5; }
.feat-wide       { grid-column: span 2; flex-direction: row; align-items: flex-start; gap: 22px; }
.feat-icon-lg    { font-size: 2rem; flex-shrink: 0; margin-top: 2px; }
.feat-icon       { font-size: 1.5rem; }
.feat-title      { font-family: var(--ffd); font-size: .9rem; font-weight: 700; color: var(--t1); letter-spacing: -.01em; }
.feat-desc       { font-size: .78rem; color: var(--t2); line-height: 1.75; }

/* ==============================================
   STEPS — refined numbering
   ============================================== */
.steps-track {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; margin-top: 52px; position: relative;
}
.step-item { text-align: center; padding: 0 16px; position: relative; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surf);
  border: 1px solid var(--bdr2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ffd); font-size: .88rem; font-weight: 800;
  color: var(--acc);
  margin: 0 auto 18px; position: relative; z-index: 1;
  box-shadow: 0 0 0 4px rgba(56,88,233,.06);
}
.step-connector {
  position: absolute; top: 24px;
  left: calc(50% + 24px); right: calc(-50% + 24px);
  height: 1px;
  background: linear-gradient(90deg, var(--bdr2), transparent);
}
.step-title { font-family: var(--ffd); font-size: .88rem; font-weight: 700; color: var(--t1); margin-bottom: 8px; letter-spacing: -.01em; }
.step-desc  { font-size: .76rem; color: var(--t2); line-height: 1.7; }

/* ==============================================
   TESTIMONIALS — polished cards
   ============================================== */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 16px; margin-top: 52px;
}
.testimonial {
  background: var(--surf);
  border: 1px solid var(--bdr);
  border-radius: var(--rlg); padding: 24px;
  position: relative; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.testimonial::before {
  content: '"';
  position: absolute; top: -8px; right: 18px;
  font-size: 5rem; font-family: var(--ffd);
  color: rgba(56,88,233,.07);
  line-height: 1;
  pointer-events: none;
}
.testimonial:hover {
  border-color: rgba(56,88,233,.2);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.testimonial-stars { color: var(--gold); margin-bottom: 12px; font-size: .78rem; letter-spacing: 2px; }
.testimonial-text  { font-size: .8rem; color: var(--t2); line-height: 1.8; margin-bottom: 18px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 11px; }
.author-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(145deg, var(--acc), var(--acc2));
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; color: #fff;
  box-shadow: 0 0 12px rgba(56,88,233,.3);
}
.author-name { font-weight: 600; font-size: .82rem; color: var(--t1); letter-spacing: -.01em; }
.author-role { font-size: .7rem; color: var(--t3); margin-top: 2px; }

/* ==============================================
   CTA — bold, immersive
   ============================================== */
.cta-section {
  padding: 112px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(56,88,233,.07) 0%, transparent 65%),
    radial-gradient(ellipse 30% 30% at 20% 80%, rgba(56,88,233,.04)  0%, transparent 55%);
}
.cta-inner { position: relative; z-index: 2; }
.cta-title  { font-size: clamp(1.8rem, 4vw, 3rem); }
.cta-actions {
  display: inline-flex; align-items: center;
  gap: 12px; flex-wrap: wrap; justify-content: center;
}

/* ==============================================
   FOOTER — structured, refined
   ============================================== */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--bdr);
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 44px; border-bottom: 1px solid var(--bdr);
}
.footer-brand p { color: var(--t2); font-size: .8rem; line-height: 1.75; margin-top: 14px; max-width: 240px; }
.footer-col h4  {
  font-family: var(--ffb); font-size: .62rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--t3); margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--t2); font-size: .8rem; transition: color .15s; }
.footer-col ul li a:hover { color: var(--t1); }
.footer-bottom {
  margin-top: 24px; display: flex; align-items: center;
  justify-content: space-between; font-size: .72rem; color: var(--t3);
  flex-wrap: wrap; gap: 12px;
}
.footer-badges  { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge   {
  display: flex; align-items: center; gap: 5px;
  background: var(--surf); border: 1px solid var(--bdr);
  padding: 4px 11px; border-radius: 100px; font-size: .66rem; color: var(--t2);
}
.footer-badge .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--grn); flex-shrink: 0; }

/* ==============================================
   INNER PAGES
   ============================================== */
.page-wrap    { max-width: 1140px; margin: 0 auto; padding: 52px 36px 88px; }
.page-content { color: var(--t2); line-height: 1.85; font-size: .9rem; }
.page-content h1, .page-content h2, .page-content h3 {
  font-family: var(--ffd); color: var(--t1);
  margin: 28px 0 12px; letter-spacing: -.025em;
}
.page-content p { margin-bottom: 16px; }
.page-content a { color: var(--acc); }

/* ==============================================
   REVEAL
   ============================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==============================================
   TABLET — max 1024px
   ============================================== */
@media (max-width: 1024px) {
  .products-grid     { grid-template-columns: repeat(2, 1fr); }
  .features-bento    { grid-template-columns: repeat(2, 1fr); }
  .feat-wide         { grid-column: span 2; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid       { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps-track       { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .step-connector    { display: none; }
}

/* ==============================================
   MOBILE — max 768px
   ============================================== */
@media (max-width: 768px) {
  .site-header   { padding: 0 20px; height: 58px; }
  body           { padding-top: 58px; }
  .primary-nav   { display: none; }
  .nav-actions   { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-controls { display: flex; }
  .mobile-nav    { top: 58px; }

  .container { padding: 0 20px; }
  section    { padding: 64px 0; }
  .cta-section { padding: 72px 0; }
  .page-wrap { padding: 36px 20px 64px; }

  .hero     { padding: 72px 0 60px; min-height: 580px; }
  .hero h1  { font-size: clamp(1.7rem, 7vw, 2.5rem); white-space: normal; overflow-wrap: break-word; word-break: break-word; }
  .hero-content { max-width: 100%; padding: 0 4px; }
  .hero-bg-illustration { min-height: 580px; }
  .hero-bg-illustration svg { min-height: 580px; }
  .hero-actions {
    flex-direction: column; align-items: center; gap: 10px;
  }
  .hero-actions .btn {
    width: auto; min-width: 210px; justify-content: center;
  }

  .hero-stats {
    display: flex; flex-wrap: nowrap;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    width: 100%; padding: 16px 18px; border-radius: 12px;
    gap: 0; scrollbar-width: none;
  }
  .hero-stats::-webkit-scrollbar { display: none; }
  .stat          { padding: 0 16px; flex-shrink: 0; }
  .stat-num      { font-size: 1.25rem; }
  .stat-label    { font-size: .6rem; }
  .stat-divider  { height: 26px; }

  .products-grid { grid-template-columns: 1fr; background: none; border-radius: var(--rlg); gap: 12px; }
  .product-card  { border: 1px solid var(--bdr); border-radius: var(--rlg); }
  .section-head  { flex-direction: column; align-items: flex-start; gap: 10px; }

  .features-bento { grid-template-columns: 1fr; }
  .feat-wide      { grid-column: span 1; flex-direction: column; }
  .feat-card      { padding: 22px 18px; }

  .steps-track { grid-template-columns: 1fr; gap: 28px; }
  .step-item   { text-align: left; display: flex; flex-direction: column; align-items: flex-start; }
  .step-num    { margin: 0 0 13px 0; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .footer-grid   { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-brand p { max-width: 100%; }
  .footer-badges { justify-content: center; }
  .footer-col ul { padding: 0; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }

  .cta-actions { flex-direction: column; align-items: center; width: 100%; }
  .cta-actions .btn { width: auto; min-width: 210px; justify-content: center; }
  .products-cta .btn { min-width: 220px; width: auto; }

  .section-head-center { text-align: left; align-items: flex-start; }
  .section-head-center .section-sub { text-align: left; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.5rem; }
  .stat    { padding: 0 11px; }
}

/* ==============================================
   TESTIMONIAL SLIDERS
   ============================================== */
.testi-slider {
  margin-top: 52px; overflow: hidden; position: relative;
}
.testi-track {
  display: flex; flex-direction: row; flex-wrap: nowrap;
  gap: 16px; will-change: transform;
}
.testi-original .testi-track .testimonial,
.testi-spotlight .testi-track .testimonial {
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 0;
}

@media (min-width: 601px) and (max-width: 959px) {
  .testi-original .testi-track .testimonial,
  .testi-spotlight .testi-track .testimonial {
    flex: 0 0 calc((100% - 16px) / 2);
  }
}
@media (max-width: 600px) {
  .testi-original .testi-track .testimonial,
  .testi-spotlight .testi-track .testimonial {
    flex: 0 0 100%;
  }
}

.testi-spotlight .testi-track .testimonial {
  opacity: .4; transform: scale(.94);
  transition: opacity .38s, transform .38s, border-color .38s;
}
.testi-spotlight .testi-track .testimonial.testi-spotlight-active {
  opacity: 1; transform: scale(1);
  border-color: var(--acc);
  box-shadow: 0 0 0 1px var(--acc), 0 10px 30px rgba(56,88,233,.15);
}

.testi-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 28px;
}
.testi-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surf2); border: 1px solid var(--bdr);
  color: var(--t1); font-size: .9rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .18s, border-color .18s, color .18s;
}
.testi-btn:hover    { background: var(--acc); border-color: var(--acc); color: #fff; }
.testi-btn:disabled { opacity: .3; cursor: not-allowed; }
.testi-dots { display: flex; gap: 6px; }
.testi-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bdr2); border: none; cursor: pointer;
  padding: 0; transition: background .2s, transform .2s;
}
.testi-dot.on { background: var(--acc); transform: scale(1.5); }

/* Ticker */
.testi-ticker {
  overflow: hidden; position: relative; margin-top: 52px;
}
.testi-ticker::before, .testi-ticker::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.testi-ticker::before { left:  0; background: linear-gradient(to right, var(--bg2), transparent); }
.testi-ticker::after  { right: 0; background: linear-gradient(to left,  var(--bg2), transparent); }
.testi-ticker-rail {
  display: flex; flex-direction: row; flex-wrap: nowrap; gap: 16px;
  width: max-content;
}
.testi-ticker-rail:hover { animation-play-state: paused !important; }
.testi-ticker-rail .testimonial { flex: 0 0 340px; min-width: 0; }
@keyframes testi-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--testi-dist)); }
}

body.light-mode .testi-btn { background: var(--surf); border-color: var(--bdr); }

/* Blog */
.blog-post-title {
  font-size: 2.5rem; font-family: var(--ffd); font-weight: 800;
  letter-spacing: -.04em; line-height: 1.1; margin-bottom: 24px;
  color: var(--t1); -webkit-text-fill-color: var(--t1);
}
.blog-post-content { font-size: 16px; line-height: 1.85; color: var(--t2); }
.blog-post-content p { margin-bottom: 1.4em; }
.blog-post-content h2,.blog-post-content h3 { color: var(--t1); margin: 1.8em 0 .7em; }
.blog-post-meta { font-size: 13px; color: var(--t3); display: flex; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; align-items: center; }
.blog-cat { background: rgba(56,88,233,.1); color: var(--acc); padding: 3px 10px; border-radius: 20px; font-weight: 600; font-size: .85em; }
.blog-post-thumb { margin-bottom: 30px; border-radius: var(--rlg); overflow: hidden; }
.blog-post-thumb img { width: 100%; height: auto; display: block; }
.blog-post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--bdr); flex-wrap: wrap; }
.blog-nav-link { color: var(--acc); text-decoration: none; font-weight: 600; font-size: .88rem; max-width: 45%; }
body.light-mode .blog-post-title { color: var(--t1)!important; -webkit-text-fill-color: var(--t1)!important; }

/* ==============================================
   SIDEBAR LAYOUT
   ============================================== */
.tap-layout-wrap { display: block; }
.tap-main-col    { width: 100%; }
.tap-sidebar-col { display: none; }

.tap-layout-wrap.tap-has-sidebar {
  display: flex !important; align-items: flex-start;
  gap: 0; max-width: 1400px; margin: 0 auto;
  padding: 0 36px; box-sizing: border-box;
}
.tap-layout-wrap.tap-has-sidebar .tap-main-col {
  flex: 1; min-width: 0;
  max-width: 100% !important; margin: 0 !important;
  padding-left: 0 !important; padding-right: 0 !important;
  width: auto !important; float: none !important;
}
.tap-layout-wrap.tap-has-sidebar .tap-sidebar-col {
  display: block !important;
  width: 300px; min-width: 300px; flex-shrink: 0;
  padding-top: 52px; padding-left: 36px;
  box-sizing: border-box; border-left: 1px solid var(--bdr);
}
.tap-layout-wrap.tap-has-sidebar.tap-sidebar-left { flex-direction: row-reverse; }
.tap-layout-wrap.tap-has-sidebar.tap-sidebar-left .tap-sidebar-col {
  padding-left: 0; padding-right: 36px;
  border-left: none; border-right: 1px solid var(--bdr);
}

@media (max-width: 768px) {
  .tap-layout-wrap.tap-has-sidebar,
  .tap-layout-wrap.tap-has-sidebar.tap-sidebar-left {
    flex-direction: column !important; padding: 0 20px;
  }
  .tap-layout-wrap.tap-has-sidebar .tap-sidebar-col {
    width: 100% !important; min-width: 0 !important;
    padding: 28px 0 0 0 !important;
    border-left: none !important; border-right: none !important;
    border-top: 1px solid var(--bdr);
  }
}

/* Sidebar widgets */
.sidebar-widget {
  margin-bottom: 28px; background: var(--surf);
  border: 1px solid var(--bdr); border-radius: var(--r); padding: 22px;
}
.sidebar-widget-title {
  font-family: var(--ffd); font-size: .88rem; font-weight: 700;
  color: var(--t1); margin: 0 0 14px;
  padding-bottom: 11px; border-bottom: 1px solid var(--bdr); letter-spacing: -.01em;
}
.sidebar-widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar-widget ul li {
  padding: 7px 0; border-bottom: 1px solid var(--bdr);
  font-size: .82rem; color: var(--t2);
}
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a { color: var(--t2); text-decoration: none; transition: color .2s; }
.sidebar-widget ul li a:hover { color: var(--acc); }

.tap-layout-wrap.tap-has-sidebar .tap-home-sidebar-col {
  display: block !important;
  width: 300px; min-width: 300px; flex-shrink: 0;
  padding-top: 60px; padding-left: 36px;
  box-sizing: border-box; border-left: 1px solid var(--bdr);
}
.tap-layout-wrap.tap-has-sidebar.tap-sidebar-left .tap-home-sidebar-col {
  padding-left: 0; padding-right: 36px;
  border-left: none; border-right: 1px solid var(--bdr);
}
@media (max-width: 768px) {
  .tap-layout-wrap.tap-has-sidebar .tap-home-sidebar-col {
    width: 100% !important; min-width: 0 !important;
    padding: 28px 0 0 0 !important;
    border-left: none !important; border-right: none !important;
    border-top: 1px solid var(--bdr);
  }
  .page-wrap.tapplaza-with-sidebar,
  .page-wrap.tapplaza-with-sidebar.sidebar-left {
    flex-direction: column;
  }
  .tapplaza-sidebar { width: 100%; }
}

body.tapplaza-sidebar-on .tap-layout-wrap {
  display: flex !important; align-items: flex-start;
  max-width: 1400px; margin: 0 auto; padding: 0 36px; box-sizing: border-box;
}
body.tapplaza-sidebar-on .tap-main-col {
  flex: 1; min-width: 0;
  max-width: 100% !important; margin: 0 !important;
  padding-left: 0 !important; padding-right: 0 !important;
}
body.tapplaza-sidebar-on .tap-sidebar-col {
  display: block !important;
  width: 300px; min-width: 300px; flex-shrink: 0;
  padding-top: 52px; padding-left: 36px;
  box-sizing: border-box; border-left: 1px solid var(--bdr);
}
body.tapplaza-sidebar-left .tap-layout-wrap { flex-direction: row-reverse; }
body.tapplaza-sidebar-left .tap-sidebar-col {
  padding-left: 0; padding-right: 36px;
  border-left: none; border-right: 1px solid var(--bdr);
}
@media (max-width: 768px) {
  body.tapplaza-sidebar-on .tap-layout-wrap {
    flex-direction: column !important; padding: 0 20px;
  }
  body.tapplaza-sidebar-on .tap-sidebar-col {
    width: 100% !important; min-width: 0 !important;
    padding: 28px 0 0 0 !important;
    border-left: none !important; border-right: none !important;
    border-top: 1px solid var(--bdr);
  }
}

/* ==============================================
   SERVICES / WHAT WE DO — premium redesign
   ============================================== */
.services-section {
  padding: 96px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
  align-items: stretch;
}
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ── Card base ── */
.service-card {
  position: relative;
  background: var(--surf);
  border: 1px solid var(--bdr);
  border-radius: var(--rlg);
  padding: 32px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  box-sizing: border-box;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
/* Top accent line on hover */
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent);
  opacity: 0; transition: opacity .25s;
}
/* Subtle inner glow */
.service-card::after {
  content: '';
  position: absolute; inset: 0; border-radius: var(--rlg);
  background: linear-gradient(135deg, rgba(56,88,233,.04) 0%, transparent 60%);
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  border-color: rgba(56,88,233,.35);
}
.service-card:hover::before { opacity: 1; }

/* ── Featured card ── */
.service-card--featured {
  border-color: rgba(56,88,233,.4);
  background: linear-gradient(160deg, var(--surf) 0%, rgba(56,88,233,.07) 100%);
  box-shadow: 0 4px 24px rgba(56,88,233,.12);
}
.service-card--featured::before { opacity: .6; }
.service-card--featured:hover {
  box-shadow: 0 20px 60px rgba(56,88,233,.25);
  border-color: var(--acc);
}
.service-featured-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: .6rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: var(--acc);
  padding: 4px 10px; border-radius: 100px;
  box-shadow: 0 2px 12px rgba(56,88,233,.4);
}

/* ── Icon ── */
.service-icon-wrap {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(56,88,233,.08);
  border: 1px solid rgba(56,88,233,.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .25s, border-color .25s, box-shadow .25s;
}
.service-card:hover .service-icon-wrap,
.service-card--featured .service-icon-wrap {
  background: rgba(56,88,233,.14);
  border-color: rgba(56,88,233,.35);
  box-shadow: 0 0 16px rgba(56,88,233,.2);
}
.service-icon { font-size: 1.5rem; line-height: 1; }

/* ── Body ── */
.service-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-title {
  font-family: var(--ffd); font-size: .95rem; font-weight: 700;
  color: var(--t1); margin: 0; letter-spacing: -.02em; line-height: 1.25;
}
.service-desc { font-size: .8rem; color: var(--t2); line-height: 1.8; margin: 0; }

/* ── Checklist ── */
.service-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.service-list li {
  font-size: .78rem; color: var(--t2);
  padding-left: 20px; position: relative; line-height: 1.5;
}
.service-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--acc); font-weight: 700; font-size: .75rem;
}

/* ── CTA ── */
.services-cta {
  margin-top: 52px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.services-cta-text { font-size: .95rem; color: var(--t2); margin: 0; }
.services-cta-btns {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center; align-items: center;
}

/* Light mode */
body.light-mode .service-card,
html.light-mode .service-card {
  background: var(--surf);
  border-color: var(--bdr);
  box-shadow: 0 2px 12px rgba(0,0,30,.06);
}
body.light-mode .service-card:hover,
html.light-mode .service-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,30,.12);
  border-color: rgba(56,88,233,.3);
}
body.light-mode .service-card--featured,
html.light-mode .service-card--featured {
  background: linear-gradient(160deg, var(--surf) 0%, rgba(56,88,233,.04) 100%);
  border-color: rgba(56,88,233,.25);
}
body.light-mode .service-icon-wrap,
html.light-mode .service-icon-wrap {
  background: rgba(56,88,233,.07);
  border-color: rgba(56,88,233,.15);
}
