/* =========================================================
   INVOICE GENERATOR — CORE STYLESHEET
   Design tokens, base styles, layout & components
   ========================================================= */

:root{
  /* Brand palette (as specified) */
  --primary:#2563EB;
  --primary-rgb:37,99,235;
  --secondary:#1E40AF;
  --accent:#06B6D4;
  --success:#10B981;
  --bg:#F8FAFC;
  --card-bg:#FFFFFF;
  --text:#111827;
  --text-light:#6B7280;
  --border:#E5E7EB;

  /* Derived tones */
  --ink-paper:#FCFDFF;
  --ledger-line:#EEF2F7;
  --shadow-sm: 0 1px 2px rgba(17,24,39,.04), 0 1px 3px rgba(17,24,39,.06);
  --shadow-md: 0 4px 16px rgba(17,24,39,.06), 0 2px 6px rgba(17,24,39,.05);
  --shadow-lg: 0 20px 48px rgba(17,24,39,.10), 0 8px 20px rgba(17,24,39,.06);
  --shadow-glow: 0 0 0 1px rgba(37,99,235,.08), 0 12px 32px rgba(37,99,235,.18);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --grad-primary: linear-gradient(135deg,#2563EB 0%,#1E40AF 60%,#152F86 100%);
  --grad-accent: linear-gradient(135deg,#06B6D4 0%,#2563EB 100%);
  --grad-mesh: radial-gradient(60% 60% at 15% 15%, rgba(37,99,235,.16) 0%, rgba(37,99,235,0) 60%),
               radial-gradient(50% 50% at 85% 20%, rgba(6,182,212,.14) 0%, rgba(6,182,212,0) 60%),
               radial-gradient(60% 60% at 50% 100%, rgba(30,64,175,.10) 0%, rgba(30,64,175,0) 60%);

  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --container: 1280px;
  --nav-h: 76px;
}

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

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }
input,select,textarea{ font-family:inherit; font-size:1rem; }

h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--text);
  line-height:1.15;
  margin:0 0 .5em;
  letter-spacing:-0.02em;
}
p{ margin:0 0 1em; color:var(--text-light); }

:focus-visible{
  outline:3px solid rgba(37,99,235,.5);
  outline-offset:2px;
  border-radius:4px;
}

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--primary);
  background:rgba(37,99,235,.08);
  border:1px solid rgba(37,99,235,.16);
  padding:6px 14px;
  border-radius:999px;
  margin-bottom:16px;
}
.eyebrow .dot{ width:6px; height:6px; border-radius:50%; background:var(--accent); }

.section{ padding:96px 0; position:relative; }
.section-tight{ padding:64px 0; }
.section-head{ max-width:700px; margin:0 auto 56px; text-align:center; }
.section-head h2{ font-size:clamp(1.9rem,3.4vw,2.6rem); }
.section-head p{ font-size:1.05rem; }
.section-alt{ background:linear-gradient(180deg,#FFFFFF 0%,#F3F7FC 100%); }

/* ---------- Buttons ---------- */
.btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:15px 28px;
  border-radius:12px;
  font-weight:700;
  font-size:.98rem;
  border:1px solid transparent;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space:nowrap;
  overflow:hidden;
  isolation:isolate;
}
.btn svg{ width:18px; height:18px; flex-shrink:0; }
.btn-primary{
  background:var(--grad-primary);
  color:#fff;
  box-shadow:0 10px 24px rgba(37,99,235,.32);
}
.btn-primary:hover{ transform:translateY(-3px); box-shadow:0 16px 32px rgba(37,99,235,.4); }
.btn-outline{
  background:#fff;
  color:var(--text);
  border-color:var(--border);
}
.btn-outline:hover{ transform:translateY(-3px); border-color:var(--primary); color:var(--primary); box-shadow:var(--shadow-md); }
.btn-ghost{
  background:rgba(37,99,235,.06);
  color:var(--primary);
}
.btn-ghost:hover{ background:rgba(37,99,235,.12); }
.btn-success{ background:var(--success); color:#fff; box-shadow:0 10px 20px rgba(16,185,129,.3); }
.btn-success:hover{ transform:translateY(-3px); }
.btn-lg{ padding:18px 36px; font-size:1.05rem; }
.btn-sm{ padding:9px 16px; font-size:.86rem; border-radius:9px; }
.btn-block{ width:100%; }

.btn .ripple{
  position:absolute; border-radius:50%; transform:scale(0);
  background:rgba(255,255,255,.5); pointer-events:none;
  animation:ripple .6s ease-out;
}
@keyframes ripple{ to{ transform:scale(3); opacity:0; } }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:1000;
  height:var(--nav-h);
  display:flex; align-items:center;
  background:rgba(248,250,252,.78);
  backdrop-filter:blur(14px) saturate(160%);
  -webkit-backdrop-filter:blur(14px) saturate(160%);
  border-bottom:1px solid var(--border);
  transition:box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled{ box-shadow:0 6px 24px rgba(17,24,39,.06); background:rgba(255,255,255,.9); }
.nav-inner{ display:flex; align-items:center; justify-content:space-between; gap:24px; }
.logo{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:800; font-size:1.28rem; color:var(--text); }
.logo-mark{
  width:38px; height:38px; border-radius:11px;
  background:var(--grad-primary);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 16px rgba(37,99,235,.35);
}
.logo-mark svg{ width:20px; height:20px; }
.nav-menu{ display:flex; align-items:center; gap:8px; }
.nav-menu a{
  padding:10px 16px; border-radius:9px; font-weight:600; font-size:.95rem;
  color:var(--text); position:relative; transition:color .2s ease, background .2s ease;
}
.nav-menu a:hover{ color:var(--primary); background:rgba(37,99,235,.06); }
.nav-actions{ display:flex; align-items:center; gap:14px; }
.hamburger{
  display:none; flex-direction:column; gap:5px; width:26px; background:none; border:none; padding:6px;
}
.hamburger span{ height:2px; background:var(--text); border-radius:2px; transition:transform .3s ease, opacity .3s ease; }
.hamburger.active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity:0; }
.hamburger.active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.mobile-menu{
  position:fixed; inset:var(--nav-h) 0 0 0; background:#fff; z-index:999;
  transform:translateX(100%); transition:transform .35s ease; padding:32px 24px; overflow-y:auto;
}
.mobile-menu.open{ transform:translateX(0); }
.mobile-menu a{ display:block; padding:16px 4px; font-weight:700; font-size:1.15rem; border-bottom:1px solid var(--border); }

.scroll-progress{
  position:fixed; top:0; left:0; height:3px; background:var(--grad-accent); z-index:1200; width:0%;
}

/* ---------- Hero ---------- */
.hero{
  position:relative; padding:76px 0 60px; overflow:hidden;
  background:var(--bg);
}
.hero::before{
  content:""; position:absolute; inset:0; background:var(--grad-mesh); pointer-events:none;
}
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; position:relative; z-index:2; }
.hero-copy h1{ font-size:clamp(2.3rem,4.6vw,3.6rem); }
.hero-copy .accent{ background:var(--grad-primary); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-copy p.lead{ font-size:1.14rem; max-width:520px; }
.hero-cta{ display:flex; gap:16px; flex-wrap:wrap; margin:32px 0 36px; }
.hero-trust{ display:flex; gap:28px; flex-wrap:wrap; }
.hero-trust div{ display:flex; flex-direction:column; }
.hero-trust strong{ font-family:var(--font-display); font-size:1.3rem; }
.hero-trust span{ font-size:.82rem; color:var(--text-light); }

.hero-visual{ position:relative; display:flex; justify-content:center; }
.floating{ animation:floaty 6s ease-in-out infinite; }
@keyframes floaty{ 0%,100%{ transform:translateY(0px) rotate(-1.2deg); } 50%{ transform:translateY(-16px) rotate(1.2deg); } }

.mock-invoice{
  width:380px; max-width:100%; background:var(--card-bg); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg); padding:28px; position:relative; z-index:2;
  border:1px solid var(--border);
  background-image:linear-gradient(var(--ledger-line) 1px, transparent 1px);
  background-size:100% 34px;
}
.mock-invoice .mi-top{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:18px; }
.mock-invoice .mi-badge{ width:40px; height:40px; border-radius:10px; background:var(--grad-primary); }
.mock-invoice .mi-status{ font-size:.7rem; font-weight:800; letter-spacing:.06em; color:var(--success); background:rgba(16,185,129,.12); padding:5px 10px; border-radius:999px; }
.mock-invoice .mi-line{ height:9px; border-radius:5px; background:var(--border); margin-bottom:12px; }
.mock-invoice .mi-line.short{ width:55%; }
.mock-invoice .mi-line.xshort{ width:35%; }
.mock-invoice .mi-total{ margin-top:20px; padding-top:16px; border-top:1px dashed var(--border); display:flex; justify-content:space-between; align-items:baseline; }
.mock-invoice .mi-total strong{ font-family:var(--font-display); font-size:1.5rem; color:var(--primary); }
.mock-badge-float{
  position:absolute; background:#fff; border:1px solid var(--border); border-radius:14px; box-shadow:var(--shadow-md);
  padding:12px 16px; display:flex; align-items:center; gap:10px; font-weight:700; font-size:.85rem; z-index:3;
}
.mock-badge-float.b1{ top:-6%; right:-8%; animation:floaty 5s ease-in-out infinite; animation-delay:.4s; }
.mock-badge-float.b2{ bottom:6%; left:-12%; animation:floaty 7s ease-in-out infinite; animation-delay:.9s; }
.mock-badge-float svg{ width:22px; height:22px; color:var(--success); }

.hero-shape{ position:absolute; border-radius:40%; filter:blur(0px); opacity:.5; z-index:0; }
.shape1{ width:260px; height:260px; background:rgba(6,182,212,.15); top:-60px; right:6%; }
.shape2{ width:180px; height:180px; background:rgba(37,99,235,.14); bottom:-30px; left:2%; }

/* ---------- Reveal ---------- */
.reveal{ opacity:0; transform:translateY(28px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }
.reveal-scale{ opacity:0; transform:scale(.94); transition:opacity .6s ease, transform .6s ease; }
.reveal-scale.in{ opacity:1; transform:scale(1); }

/* ---------- Cards / Grids ---------- */
.grid{ display:grid; gap:24px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-6{ grid-template-columns:repeat(6,1fr); }

.card{
  background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius-md);
  padding:30px; transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  box-shadow:var(--shadow-sm);
}
.card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); border-color:rgba(37,99,235,.25); }

.icon-tile{
  width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  background:rgba(37,99,235,.08); color:var(--primary); margin-bottom:18px;
}
.icon-tile svg{ width:26px; height:26px; }
.icon-tile.cyan{ background:rgba(6,182,212,.1); color:var(--accent); }
.icon-tile.green{ background:rgba(16,185,129,.1); color:var(--success); }

.feature-card h3{ font-size:1.08rem; }
.feature-card p{ font-size:.94rem; margin-bottom:0; }

/* Glass card */
.glass{
  background:rgba(255,255,255,.6);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,.5);
  box-shadow:var(--shadow-md);
}

/* ---------- Invoice Builder ---------- */
.builder-shell{
  display:grid; grid-template-columns:1.15fr 1fr; gap:32px; align-items:start;
}
.builder-panel{
  background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md); padding:32px; position:relative;
}
.builder-tabs{ display:flex; gap:8px; margin-bottom:28px; flex-wrap:wrap; }
.builder-tab{
  padding:10px 16px; border-radius:9px; font-weight:700; font-size:.88rem;
  background:rgba(37,99,235,.06); color:var(--text-light); border:1px solid transparent; transition:all .2s ease;
}
.builder-tab.active{ background:var(--grad-primary); color:#fff; box-shadow:0 8px 18px rgba(37,99,235,.28); }

.form-section{ display:none; }
.form-section.active{ display:block; animation:fadein .35s ease; }
@keyframes fadein{ from{ opacity:0; transform:translateY(6px);} to{ opacity:1; transform:translateY(0);} }

.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
.field{ display:flex; flex-direction:column; gap:6px; }
.field label{ font-size:.82rem; font-weight:700; color:var(--text); }
.field input, .field select, .field textarea{
  padding:12px 14px; border:1.5px solid var(--border); border-radius:10px; background:#fff;
  transition:border-color .2s ease, box-shadow .2s ease; color:var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color:var(--primary); box-shadow:0 0 0 4px rgba(37,99,235,.12); outline:none;
}
.field textarea{ resize:vertical; min-height:80px; }
.upload-box{
  border:1.5px dashed var(--border); border-radius:12px; padding:18px; text-align:center;
  font-size:.86rem; color:var(--text-light); cursor:pointer; transition:border-color .2s ease, background .2s ease;
  display:flex; flex-direction:column; align-items:center; gap:6px;
}
.upload-box:hover{ border-color:var(--primary); background:rgba(37,99,235,.03); }
.upload-box img{ max-height:60px; border-radius:8px; }

.items-table-wrap{ overflow-x:auto; border-radius:12px; border:1px solid var(--border); }
table.items-table{ width:100%; border-collapse:collapse; min-width:680px; }
.items-table th{
  text-align:left; font-size:.76rem; text-transform:uppercase; letter-spacing:.05em;
  color:var(--text-light); background:#F3F6FA; padding:12px 10px; font-weight:700;
}
.items-table td{ padding:8px; border-top:1px solid var(--border); vertical-align:top; }
.items-table input{ width:100%; padding:9px 10px; border:1.5px solid var(--border); border-radius:8px; font-size:.9rem; }
.items-table input:focus{ border-color:var(--primary); outline:none; box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.row-total{ font-weight:700; white-space:nowrap; padding-top:16px !important; }
.remove-row{
  width:34px; height:34px; border-radius:8px; border:1.5px solid var(--border); background:#fff; color:#EF4444;
  display:flex; align-items:center; justify-content:center; transition:all .2s ease;
}
.remove-row:hover{ background:#FEF2F2; border-color:#FCA5A5; }

.builder-actions{ display:flex; gap:12px; margin-top:24px; flex-wrap:wrap; }

.totals-box{ margin-top:24px; margin-left:auto; max-width:340px; }
.totals-row{ display:flex; justify-content:space-between; padding:8px 0; font-size:.94rem; color:var(--text-light); }
.totals-row.grand{ font-size:1.25rem; font-weight:800; color:var(--text); border-top:2px solid var(--border); margin-top:8px; padding-top:14px; }
.totals-row.grand span:last-child{ color:var(--primary); }
.totals-row input{ width:90px; text-align:right; padding:6px 8px; border:1.5px solid var(--border); border-radius:8px; }

/* Live Preview */
.preview-panel{ position:sticky; top:calc(var(--nav-h) + 20px); }
.preview-paper{
  background:#fff; border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); padding:36px;
  border:1px solid var(--border); font-size:.86rem; min-height:520px;
}
.preview-paper .p-head{ display:flex; justify-content:space-between; align-items:flex-start; border-bottom:2px solid var(--text); padding-bottom:20px; margin-bottom:20px; }
.preview-paper .p-brand{ font-family:var(--font-display); font-weight:800; font-size:1.2rem; }
.preview-paper .p-meta{ text-align:right; font-size:.82rem; color:var(--text-light); }
.preview-paper .p-title{ font-family:var(--font-display); font-size:1.6rem; font-weight:800; color:var(--primary); }
.preview-paper .p-parties{ display:flex; justify-content:space-between; gap:20px; margin-bottom:24px; }
.preview-paper .p-parties h4{ font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text-light); margin-bottom:6px; }
.preview-paper table{ width:100%; border-collapse:collapse; margin-bottom:20px; }
.preview-paper th{ text-align:left; font-size:.72rem; text-transform:uppercase; color:#fff; background:var(--primary); padding:10px; }
.preview-paper td{ padding:9px 10px; border-bottom:1px solid var(--border); font-size:.85rem; }
.preview-paper .p-totals{ margin-left:auto; max-width:260px; }
.preview-paper .p-totals div{ display:flex; justify-content:space-between; padding:5px 0; font-size:.86rem; }
.preview-paper .p-totals .grand{ font-weight:800; font-size:1.15rem; border-top:2px solid var(--text); padding-top:10px; margin-top:6px; }
.preview-paper .p-notes{ margin-top:24px; font-size:.8rem; color:var(--text-light); border-top:1px dashed var(--border); padding-top:16px; }
.preview-empty{ display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:60px 20px; color:var(--text-light); }

/* Template theme variants for preview */
.theme-blue .p-title, .theme-blue th{ background:var(--primary); color:#fff; }
.theme-green th{ background:var(--success); }
.theme-green .p-title{ color:var(--success); }
.theme-dark .p-head{ border-color:#111827; }
.theme-dark th{ background:#111827; }
.theme-dark .p-title{ color:#111827; }
.theme-purple th{ background:#7C3AED; }
.theme-purple .p-title{ color:#7C3AED; }
.theme-orange th{ background:#F97316; }
.theme-orange .p-title{ color:#F97316; }
.theme-gray th{ background:#4B5563; }
.theme-gray .p-title{ color:#4B5563; }
.theme-black th{ background:#000; }
.theme-black .p-title{ color:#000; }
.theme-minimal th{ background:#fff; color:#111827; border-bottom:2px solid #111827; }
.theme-minimal .p-title{ color:#111827; }

/* ---------- Template gallery ---------- */
.template-card{ overflow:hidden; padding:0; }
.template-thumb{
  height:220px; position:relative; padding:20px; display:flex; align-items:center; justify-content:center;
}
.mini-invoice{
  width:100%; background:#fff; border-radius:10px; padding:16px;
  box-shadow:0 10px 24px -12px rgba(15,23,42,.18), 0 0 0 1px rgba(15,23,42,.06);
  font-family:var(--font-body, inherit);
}
.mi-top{ display:flex; align-items:flex-start; gap:8px; }
.mi-logo{
  width:24px; height:24px; min-width:24px; border-radius:6px; background:var(--tc,#2563EB);
  display:flex; align-items:center; justify-content:center;
}
.mi-logo svg{ width:13px; height:13px; }
.mi-head-lines{ flex:1; display:flex; flex-direction:column; gap:2px; padding-top:1px; min-width:0; }
.mi-biz-name{ font-size:.7rem; font-weight:800; color:#1F2937; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mi-biz-sub{ font-size:.58rem; color:#9CA3AF; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mi-badge-wrap{ display:flex; flex-direction:column; align-items:flex-end; gap:3px; }
.mi-badge{
  font-size:.58rem; font-weight:800; letter-spacing:.06em; color:var(--tc,#2563EB);
  border:1px solid var(--tc,#2563EB); border-radius:5px; padding:2px 7px; white-space:nowrap;
}
.mi-inv-no{ font-size:.54rem; color:#9CA3AF; white-space:nowrap; }
.mi-rows{ margin-top:14px; padding-top:12px; border-top:1px dashed var(--border,#E5E7EB); display:flex; flex-direction:column; gap:9px; }
.mi-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.mi-row-label{ font-size:.66rem; color:#4B5563; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mi-row-amt{ font-size:.66rem; font-weight:700; color:#111827; white-space:nowrap; }
.mi-total{
  margin-top:14px; display:flex; align-items:center; justify-content:space-between;
  background:var(--tc,#2563EB); color:#fff; font-size:.74rem; font-weight:700;
  border-radius:7px; padding:8px 12px;
}
.template-body{ padding:20px 22px 24px; display:flex; align-items:center; justify-content:space-between; }
.template-body h3{ font-size:1rem; margin:0; }

/* ---------- Timeline ---------- */
.timeline{ position:relative; display:flex; justify-content:space-between; gap:16px; }
.timeline::before{
  content:""; position:absolute; top:28px; left:6%; right:6%; height:2px;
  background:repeating-linear-gradient(90deg, var(--border) 0 10px, transparent 10px 18px);
}
.timeline-step{ flex:1; text-align:center; position:relative; z-index:1; }
.timeline-num{
  width:56px; height:56px; border-radius:50%; background:var(--grad-primary); color:#fff;
  display:flex; align-items:center; justify-content:center; margin:0 auto 18px; font-family:var(--font-display);
  font-weight:800; font-size:1.2rem; box-shadow:0 10px 22px rgba(37,99,235,.3);
}
.timeline-step h4{ font-size:1rem; }
.timeline-step p{ font-size:.88rem; }

/* ---------- Stats ---------- */
.stats-band{ background:var(--grad-primary); border-radius:var(--radius-xl); padding:56px 40px; color:#fff; }
.stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; text-align:center; }
.stat-num{ font-family:var(--font-display); font-size:clamp(2rem,3.4vw,2.8rem); font-weight:800; }
.stat-label{ font-size:.9rem; opacity:.85; margin-top:6px; }

/* ---------- Testimonials ---------- */
.testi-track{ display:flex; gap:24px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:12px; scrollbar-width:none; }
.testi-track::-webkit-scrollbar{ display:none; }
.testi-card{ min-width:340px; scroll-snap-align:start; }
.testi-stars{ color:#F59E0B; letter-spacing:2px; margin-bottom:12px; }
.testi-person{ display:flex; align-items:center; gap:12px; margin-top:18px; }
.avatar{
  width:44px; height:44px; border-radius:50%; background:var(--grad-accent); display:flex; align-items:center;
  justify-content:center; color:#fff; font-weight:800; font-family:var(--font-display);
}
.testi-controls{ display:flex; justify-content:center; gap:12px; margin-top:24px; }
.testi-controls button{ width:44px; height:44px; border-radius:50%; border:1.5px solid var(--border); background:#fff; display:flex; align-items:center; justify-content:center; transition:all .2s ease; }
.testi-controls button:hover{ border-color:var(--primary); color:var(--primary); }

/* ---------- FAQ ---------- */
.faq-list{ max-width:820px; margin:0 auto; }
.faq-item{ border:1px solid var(--border); border-radius:14px; margin-bottom:12px; overflow:hidden; background:#fff; }
.faq-q{
  display:flex; justify-content:space-between; align-items:center; padding:20px 22px; font-weight:700;
  cursor:pointer; font-size:.98rem;
}
.faq-q svg{ width:20px; height:20px; flex-shrink:0; transition:transform .3s ease; color:var(--primary); }
.faq-item.open .faq-q svg{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .35s ease; padding:0 22px; }
.faq-item.open .faq-a{ max-height:400px; padding-bottom:20px; }
.faq-a p{ margin:0; font-size:.92rem; }

/* ---------- CTA banner ---------- */
.cta-banner{
  background:var(--grad-primary); border-radius:var(--radius-xl); padding:72px 40px; text-align:center; color:#fff;
  position:relative; overflow:hidden;
}
.cta-banner h2{ color:#fff; font-size:clamp(1.8rem,3.6vw,2.6rem); }
.cta-banner p{ color:rgba(255,255,255,.85); max-width:560px; margin-left:auto; margin-right:auto; }
.cta-banner .btn-outline{ background:transparent; color:#fff; border-color:rgba(255,255,255,.4); }
.cta-banner .btn-outline:hover{ background:#fff; color:var(--primary); }
.cta-shape{ position:absolute; border-radius:50%; background:rgba(255,255,255,.08); }

/* ---------- Comparison / Why us ---------- */
.compare-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.compare-list li{ display:flex; align-items:center; gap:12px; padding:14px 0; border-bottom:1px solid var(--border); font-weight:600; font-size:.95rem; }
.compare-list li svg{ width:20px; height:20px; color:var(--success); flex-shrink:0; }

/* ---------- Industries ---------- */
.industry-card{ text-align:center; padding:24px 18px; }
.industry-card .icon-tile{ margin:0 auto 14px; }
.industry-card h4{ font-size:.94rem; margin:0; }

/* ---------- Device showcase ---------- */
.device-frame{ border-radius:20px; border:10px solid #111827; overflow:hidden; box-shadow:var(--shadow-lg); background:#fff; }
.device-frame.tablet{ border-width:14px; border-radius:26px; }
.device-frame.mobile{ border-width:12px; border-radius:30px; max-width:220px; margin:0 auto; }

/* ---------- Footer ---------- */
.site-footer{ background:#0B1220; color:#CBD5E1; padding:72px 0 28px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:48px; }
.footer-brand p{ color:#94A3B8; font-size:.92rem; max-width:280px; }
.footer-col h5{ color:#fff; font-family:var(--font-display); font-size:.9rem; letter-spacing:.04em; text-transform:uppercase; margin-bottom:18px; }
.footer-col a{ display:block; color:#94A3B8; padding:7px 0; font-size:.92rem; transition:color .2s ease, transform .2s ease; }
.footer-col a:hover{ color:#fff; transform:translateX(4px); }
.footer-social{ display:flex; gap:10px; margin-top:18px; }
.footer-social a{ width:38px; height:38px; border-radius:10px; background:rgba(255,255,255,.06); display:flex; align-items:center; justify-content:center; }
.footer-social a:hover{ background:var(--primary); }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.08); padding-top:24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.85rem; color:#64748B; }

/* ---------- Back to top / loader ---------- */
.back-to-top{
  position:fixed; bottom:28px; right:28px; width:52px; height:52px; border-radius:50%; background:var(--grad-primary);
  color:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 12px 26px rgba(37,99,235,.35);
  opacity:0; visibility:hidden; transform:translateY(20px); transition:all .3s ease; z-index:900; border:none;
}
.back-to-top.show{ opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top:hover{ transform:translateY(-4px); }

.page-loader{
  position:fixed; inset:0; background:var(--bg); z-index:3000; display:flex; align-items:center; justify-content:center;
  transition:opacity .5s ease, visibility .5s ease;
}
.page-loader.hide{ opacity:0; visibility:hidden; }
.loader-ring{ width:52px; height:52px; border-radius:50%; border:4px solid var(--border); border-top-color:var(--primary); animation:spin .8s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }

.badge-soft{
  display:inline-flex; align-items:center; gap:6px; font-size:.78rem; font-weight:700; padding:5px 12px;
  border-radius:999px; background:rgba(16,185,129,.1); color:var(--success);
}

.toast{
  position:fixed; bottom:28px; left:50%; transform:translateX(-50%) translateY(20px); background:#111827; color:#fff;
  padding:14px 22px; border-radius:12px; font-weight:600; font-size:.92rem; opacity:0; visibility:hidden;
  transition:all .3s ease; z-index:2000; box-shadow:var(--shadow-lg); display:flex; align-items:center; gap:10px;
}
.toast.show{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.toast svg{ width:18px; height:18px; color:var(--success); }

/* Legal / simple pages */
.simple-page{ padding:140px 0 100px; max-width:820px; margin:0 auto; }
.simple-page h1{ font-size:2.2rem; }
.simple-page h2{ font-size:1.3rem; margin-top:36px; }
.simple-page p, .simple-page li{ color:var(--text-light); font-size:.98rem; }
.simple-page ul{ padding-left:20px; list-style:disc; margin-bottom:16px; }
.updated-badge{ font-size:.82rem; color:var(--text-light); margin-bottom:24px; display:inline-block; background:#F1F5F9; padding:6px 14px; border-radius:999px; }

.breadcrumb{ font-size:.85rem; color:var(--text-light); margin-bottom:18px; }
.breadcrumb a{ color:var(--primary); font-weight:600; }

/* ---------- Print (used by Print Invoice) ---------- */
@media print{
  body *{ visibility:hidden; }
  #invoicePreview, #invoicePreview *{ visibility:visible; }
  #invoicePreview{ position:absolute; top:0; left:0; width:100%; box-shadow:none; border:none; }
  .back-to-top, .site-header, .toast, .page-loader{ display:none !important; }
}
