* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: #f4f8fc;
  color: #1e293b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  padding-top: max(0.5rem, env(safe-area-inset-top));
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  overflow-x: hidden;
  width: 100%;
}
header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.brand-logo-svg { width: 20px; height: 20px; display: block; }
.main-container { max-width: 1200px; margin: 0 auto; padding: 20px 16px; width: 100%; }
.hero-box { text-align: center; max-width: 768px; margin: 6px auto 32px; }

.pill-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px;
  border-radius: 9999px; background: #e8f2fc; border: 1px solid #bfdbfe;
  color: #0060df; font-size: 12px; font-weight: 600; margin-bottom: 16px;
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #0060df; }

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.hero-title span { color: #0060df; }
.hero-desc { color: #64748b; margin-top: 14px; font-size: clamp(14px, 2vw, 15px); line-height: 1.6; }

.dropzone-box {
  margin-top: 28px; border: 2px dashed #cbd5e1; background: #ffffff;
  border-radius: 20px; padding: 36px 20px; cursor: pointer; text-align: center;
  transition: all 0.2s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.dropzone-box:hover { border-color: #0060df; background: #f8fbff; }
.upload-icon-circle {
  width: 52px; height: 52px; background: #e8f2fc; color: #0060df;
  border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
}

.btn-demo {
  display: inline-flex; align-items: center; gap: 8px; background: #0060df;
  color: #ffffff; padding: 10px 20px; border-radius: 12px; font-size: 13px;
  font-weight: 600; border: none; cursor: pointer; box-shadow: 0 4px 12px rgba(0,96,223,0.2);
}
.btn-demo:hover { background: #004ec2; }

.btn-app-install {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px;
  font-size: 12px; font-weight: 600; background: #065f46; color: #ffffff;
  border-radius: 10px; border: none; cursor: pointer; text-decoration: none;
}

.trust-badges-wrap {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
  margin-top: 28px; font-size: 13px; color: #475569; font-weight: 500; align-items: center;
}
.trust-badge-item { display: inline-flex; align-items: center; gap: 6px; }

.dashboard-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.kpi-card {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.kpi-title { font-size: 11px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; }
.kpi-value { font-size: 26px; font-weight: 700; color: #1e293b; margin-top: 4px; }
.kpi-sub { font-size: 11px; color: #64748b; margin-top: 2px; }

/* 2x2 Clean Charts Grid */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 860px) {
  .charts-grid { grid-template-columns: 1fr; }
}

.chart-card {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.chart-card h4 {
  font-size: 12px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px;
}
.chart-canvas-wrap { position: relative; height: 260px; width: 100%; }

.feature-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 16px;
}
.feature-card {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.hidden { display: none !important; }
footer {
  background: #ffffff; border-top: 1px solid #e2e8f0; margin-top: 48px;
  padding: 32px 16px; text-align: center; font-size: 12px; color: #64748b;
}

.custom-select {
  background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 8px;
  padding: 6px 10px; font-size: 12px; font-weight: 600; color: #1e293b; outline: none; cursor: pointer;
}
.btn-mic {
  background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 8px;
  padding: 8px 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.print-only-header { display: none; }

/* Clean C-Suite PDF Print Engine */
@media print {
  @page { size: A4 portrait; margin: 12mm 15mm; }
  body { background: #ffffff !important; color: #0f172a !important; padding: 0 !important; margin: 0 !important; }
  header, footer, #uploadSection, 
  #seoContentSection, #faqSection, #askDataBox, 
  #dashboardActionControls, .no-print, iframe {
    display: none !important; height: 0 !important; visibility: hidden !important;
  }
  .main-container { padding: 0 !important; max-width: 100% !important; }
  #dashboardSection { display: block !important; }
  .print-only-header {
    display: block !important; border-bottom: 2px solid #0060df;
    padding-bottom: 12px; margin-bottom: 20px;
  }
  .print-header-flex { display: flex !important; justify-content: space-between; align-items: center; }
  .kpi-card, .chart-card, .executive-summary-print {
    page-break-inside: avoid !important; box-shadow: none !important; border: 1px solid #cbd5e1 !important;
  }
  .charts-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; page-break-inside: avoid !important; }
  .chart-canvas-wrap { height: 220px !important; }
}
/* Ad slots: fully collapsed unless ads.js turns them on */
.ad-slot { display: none !important; height: 0; margin: 0; padding: 0; overflow: hidden; }
.ad-slot.is-active { display: block !important; height: auto; overflow: visible; text-align: center; }
.ad-slot ins.adsbygoogle { display: block; }
.ad-slot ins.adsbygoogle[data-ad-status="filled"] { margin: 16px auto; }
.ad-slot ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
@media print { .ad-slot, .ad-slot.is-active { display: none !important; } }

/* Site footer (built by footer.js) */
.site-footer { text-align: left; padding: 40px 16px 20px; font-size: 13px; }
.ft-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.ft-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #0f172a; font-size: 18px; font-weight: 800; }
.ft-logo-icon { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #0060df, #38bdf8); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ft-brand p { margin: 12px 0; color: #64748b; line-height: 1.6; max-width: 320px; font-size: 13px; }
.ft-badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #059669; border-radius: 10px; font-size: 12px; font-weight: 700; }
.ft-col .ft-title { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #0f172a; margin: 0 0 12px; text-transform: uppercase; }
.ft-col > a { display: block; color: #64748b; text-decoration: none; font-size: 13px; margin-bottom: 10px; }
.ft-col > a:hover { color: #0060df; }
.ft-bottom { max-width: 1200px; margin: 28px auto 0; padding-top: 18px; border-top: 1px solid #e2e8f0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #64748b; font-size: 12px; }
@media (max-width: 860px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ft-grid { grid-template-columns: 1fr; } }

/* Phones: a header that fits (name + BI, Our Apps, App) */
@media (max-width: 640px) {
  .header-inner { height: auto; min-height: 60px; padding: 8px 12px; gap: 8px; }
  .hdr-text-link { display: none; }
  .brand-name { font-size: 15px !important; white-space: nowrap; }
  .brand-name span { font-size: 10px !important; padding: 1px 6px !important; }
  .btn-app-install span { display: none; }
  .nw-menu-btn { padding: 6px 10px !important; }
}

/* ---- Guide / document pages (shared, no per-page style blocks) ---- */
.article { max-width: 760px; margin: 0 auto; padding: 24px 4px; }
.article h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; line-height: 1.25; margin: 8px 0 6px; letter-spacing: -.02em; }
.article h2 { font-size: 1.2rem; font-weight: 700; margin: 28px 0 8px; color: #0f172a; }
.article p, .article li { font-size: 15.5px; line-height: 1.75; color: #334155; }
.article p { margin: 0 0 14px; }
.article ul, .article ol { margin: 0 0 14px 22px; }
.article li { margin-bottom: 6px; }
.article a { color: #0060df; }
.article code { background: #eef2f7; padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.article pre { background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: 12px; overflow-x: auto; margin: 0 0 14px; }
.article pre code { background: none; padding: 0; color: inherit; }
.meta { font-size: 12px; color: #475569; }
.cta { background: #e8f2fc; border: 1px solid #bfdbfe; border-radius: 14px; padding: 16px 18px; margin: 28px 0; }
.cta a { display: inline-block; margin-top: 8px; padding: 9px 16px; background: #0060df; color: #fff; border-radius: 10px; font-weight: 600; font-size: 13px; text-decoration: none; }

/* ---- Contact form ---- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; color: #1e293b; margin-bottom: 5px; }
.form-input { width: 100%; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 10px; padding: 11px 14px; font-size: 14px; color: #1e293b; outline: none; font-family: inherit; }
.form-input:focus { border-color: #0060df; }
.btn-send { background: #0060df; color: #fff; border: none; padding: 12px 26px; font-size: 14px; font-weight: 700; border-radius: 10px; cursor: pointer; }
.btn-send:hover { background: #004ec2; }
.form-alert { display: none; padding: 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.form-alert.success { display: block; background: #ecfdf5; color: #065f46; font-weight: 700; border: 1px solid #a7f3d0; }
.form-alert.error { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---- Home page content sections ---- */
.doc-section { margin-top: 40px; border-top: 1px solid #e2e8f0; padding-top: 32px; }
.doc-section h2 { font-size: 20px; font-weight: 700; color: #1e293b; margin-bottom: 10px; }
.doc-section > p { font-size: 14px; color: #475569; line-height: 1.7; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 14px 0 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 14px 44px; font-size: 14px; color: #475569; line-height: 1.65; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: #e8f2fc; color: #0060df; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.steps li b { color: #1e293b; }
.faq-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.faq-item h3 { font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.faq-item p { font-size: 13px; color: #64748b; line-height: 1.6; margin: 0; }
.note-box { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 14px; padding: 16px 18px; font-size: 13px; color: #065f46; line-height: 1.65; }
.note-box a, .guide-links a { color: #0060df; font-weight: 600; }
.guide-links { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.guide-links li { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; font-size: 13px; }

/* ---- Ads: label, and space away from buttons ---- */
.ad-slot.is-active { margin: 24px auto 28px; min-height: 250px; }
.ad-slot[data-ad="top-banner"].is-active { min-height: 90px; margin: 12px auto 35px; }
.ad-slot[data-ad="action-banner"].is-active { margin: 35px auto; }
.ad-slot.is-active:has(ins[data-ad-status="unfilled"]) { min-height: 0; margin: 0; }
.ad-slot.is-active::before { content: "ADVERTISEMENT"; display: block; font-size: 11px; letter-spacing: .06em; color: #475569; text-align: center; margin-bottom: 4px; }
.ad-slot.is-active:has(ins[data-ad-status="unfilled"])::before { display: none; }

/* Interactive star rating */
.star-rating-wrap { display: flex; align-items: center; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.star-btns-group { display: flex; gap: 4px; }
.star-btn { background: none; border: none; font-size: 1.7rem; color: #cbd5e1; cursor: pointer; padding: 0; line-height: 1; transition: color 0.15s; }
.star-btn.active { color: #f59e0b; }
.star-btn:focus-visible { outline: 2px solid #0060df; outline-offset: 2px; }
.rating-feedback-txt { font-size: 0.9rem; font-weight: 700; color: #475569; min-width: 140px; }

/* Privacy badge */
.privacy-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #f5f3ff; border: 1px solid #ddd6fe; color: #5b21b6; font-size: 13px; font-weight: 700; }

/* Justified body text */
.doc-section > p, .doc-section li, .feature-card p, .faq-item p, .article p, .article li, main article p, main article li {
  text-align: justify; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word;
}
.hero-desc { text-align: justify; text-align-last: center; hyphens: auto; -webkit-hyphens: auto; }

/* Jump-to bar */
.tool-jump { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin: 0 0 8px; }
.tool-jump a { flex: 0 0 auto; padding: 6px 12px; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; color: #334155; font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tool-jump a:hover, .tool-jump a:focus-visible { border-color: #0060df; color: #0060df; }
#cleanCenter, [id$="Panel"] { scroll-margin-top: 16px; }
