/* ================================================================
   qualmatic.css — Shared stylesheet for all QualMatic pages
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

/* ── TOKENS ── */
:root {
  --navy:   #0C1929;
  --navy2:  #0F1B2D;
  --navy3:  #142236;
  --blue:   #185FA5;
  --blue2:  #378ADD;
  --teal:   #1D9E75;
  --teal2:  #25C48E;
  --white:  #F5F7FA;
  --muted:  #8BA3BC;
  --border: rgba(255,255,255,0.08);
  --card:   rgba(255,255,255,0.04);
  --fh: 'Outfit', sans-serif;
  --fb: 'DM Sans', sans-serif;
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px;
  --ease: 0.2s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; }
a { color: inherit; }
body {
  background: var(--navy); color: var(--white);
  font-family: var(--fb); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: var(--fh); line-height: 1.15; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(12,25,41,0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-word { font-family: var(--fh); font-weight: 600; font-size: 20px; color: var(--white); letter-spacing: -0.3px; }
.logo-word span { color: var(--teal2); }
nav a.cta-nav {
  background: var(--teal); color: #fff; padding: 9px 22px;
  border-radius: var(--r-sm); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: background var(--ease);
}
nav a.cta-nav:hover { background: var(--teal2); }

/* ── LAYOUT ── */
section { padding: 96px 48px; max-width: 1100px; margin: 0 auto; }
.full-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── TYPOGRAPHY HELPERS ── */
.section-kicker {
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal2); margin-bottom: 14px; display: block;
}
h2.section-title { font-size: clamp(28px,3.5vw,42px); font-weight: 700; letter-spacing: -0.5px; margin-bottom: 14px; }
.section-sub { font-size: 18px; color: var(--muted); font-weight: 300; max-width: 560px; margin-bottom: 56px; line-height: 1.65; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--teal); color: #fff; padding: 14px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 500; font-family: var(--fh);
  text-decoration: none; display: inline-block;
  transition: background var(--ease), transform 0.15s;
}
.btn-primary:hover { background: var(--teal2); transform: translateY(-1px); }
.btn-primary.lg { font-size: 16px; padding: 16px 36px; }
.btn-ghost {
  border: 1px solid var(--border); color: var(--muted); padding: 14px 28px;
  border-radius: 8px; font-size: 15px; font-weight: 400;
  text-decoration: none; display: inline-block;
  transition: border-color var(--ease), color var(--ease);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); color: var(--white); }

/* ── ANIMATIONS ── */
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(0.8)} }
@keyframes fadeSlide { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }

/* ── HERO ── */
.hero-outer { padding: 0 48px; max-width: 1196px; margin: 0 auto; }
.hero-section {
  padding-top: 140px; padding-bottom: 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
h1.hero-title { font-size: clamp(36px,4.5vw,54px); font-weight: 700; letter-spacing: -1px; margin-bottom: 20px; }
h1.hero-title em { font-style: normal; color: var(--teal2); }
.hero-sub { font-size: 18px; color: var(--muted); margin-bottom: 36px; line-height: 1.65; font-weight: 300; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.stat-num { font-family: var(--fh); font-size: 28px; font-weight: 700; }
.stat-num span { color: var(--teal2); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── HERO VISUAL — overflow visible so live-badge is never clipped ── */
.hero-visual {
  background: var(--navy3); border: 1px solid var(--border); border-radius: 16px;
  padding: 36px 28px 28px;   /* extra top padding = room for the badge */
  position: relative;
  overflow: visible;          /* was hidden — fixed */
}
.hero-visual::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(29,158,117,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.live-badge {
  position: absolute; top: -14px; right: 20px;
  background: var(--teal); color: #fff;
  font-size: 11px; font-weight: 500; padding: 4px 12px; border-radius: 100px;
  white-space: nowrap; box-shadow: 0 2px 12px rgba(29,158,117,0.45);
}
.flow-step {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 8px;
  animation: fadeSlide 0.5s ease both;
}
.flow-step:nth-child(1){animation-delay:.1s}
.flow-step:nth-child(2){animation-delay:.25s}
.flow-step:nth-child(3){animation-delay:.4s}
.flow-step:nth-child(4){animation-delay:.55s}
.flow-step.highlight { border-color: rgba(29,158,117,0.3); }
.step-icon { width:36px;height:36px;border-radius:8px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:17px; }
.si-blue  { background: rgba(24,95,165,0.25); }
.si-teal  { background: rgba(29,158,117,0.25); }
.si-amber { background: rgba(186,117,23,0.2); }
.step-title { font-size:13px;font-weight:500; }
.step-sub   { font-size:12px;color:var(--muted);margin-top:1px; }
.step-arrow { text-align:center;color:var(--border);font-size:14px;margin:2px 0; }
.flow-footer { display:flex;align-items:center;gap:6px;margin-top:12px; }
.flow-dot { width:6px;height:6px;border-radius:50%;background:var(--teal2);animation:pulse 2s infinite;flex-shrink:0; }
.flow-status { font-size:11px;color:var(--muted); }

/* ── PAIN CARDS ── */
.pain-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:16px; }
.pain-card { background:var(--card);border:1px solid var(--border);border-radius:var(--r-lg);padding:28px 24px;transition:border-color var(--ease); }
.pain-card:hover { border-color:rgba(255,255,255,0.15); }
.pain-stat { font-family:var(--fh);font-size:44px;font-weight:700;line-height:1;margin-bottom:10px; }
.pain-stat span { color:var(--blue2); }
.pain-title { font-size:15px;font-weight:500;margin-bottom:8px; }
.pain-desc  { font-size:14px;color:var(--muted);line-height:1.6; }

/* ── HOW IT WORKS ── */
.how-wrap { background:var(--navy3);border-radius:var(--r-xl);padding:56px 48px;border:1px solid var(--border); }
.how-steps { display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin-top:48px;position:relative; }
.how-steps::before { content:'';position:absolute;top:28px;left:10%;right:10%;height:1px;background:linear-gradient(90deg,transparent,var(--blue) 20%,var(--teal) 80%,transparent); }
.how-step { text-align:center;position:relative;z-index:1;padding:0 12px; }
.how-num { width:56px;height:56px;border-radius:50%;margin:0 auto 16px;background:var(--navy2);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-family:var(--fh);font-size:20px;font-weight:600;color:var(--blue2); }
.how-step.active .how-num { background:var(--teal);border-color:var(--teal);color:#fff; }
.how-step-title { font-size:14px;font-weight:500;margin-bottom:6px; }
.how-step-desc  { font-size:13px;color:var(--muted);line-height:1.5; }

/* ── DEMOS ── */
.demos-tabs { display:flex;gap:8px;margin-bottom:40px;flex-wrap:wrap; }
.demo-tab {
  padding:9px 20px;border-radius:100px;font-size:14px;font-weight:500;
  cursor:pointer;border:1px solid var(--border);color:var(--muted);
  background:transparent;font-family:var(--fb);transition:all var(--ease);
}
.demo-tab:hover { border-color:rgba(255,255,255,0.2);color:var(--white); }
.demo-tab.active { background:var(--blue);border-color:var(--blue);color:#fff; }
.demo-stage { display:none; }
/* Inline demo iframe */
.demo-stage iframe {
  display: block;
  background: var(--navy3);
}
.demo-stage.active { display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:start; }
.screen { background:var(--navy3);border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden; }
.screen-bar { background:rgba(255,255,255,0.04);border-bottom:1px solid var(--border);padding:10px 16px;display:flex;align-items:center;gap:8px; }
.dot-r{width:10px;height:10px;border-radius:50%;background:#E24B4A;opacity:.6}
.dot-y{width:10px;height:10px;border-radius:50%;background:#EF9F27;opacity:.6}
.dot-g{width:10px;height:10px;border-radius:50%;background:#1D9E75;opacity:.6}
.screen-url { font-size:11px;font-family:monospace;color:var(--muted);margin-left:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.screen-body { padding:20px;min-height:320px; }
.screen-label { font-size:12px;color:var(--muted);margin-bottom:14px;font-weight:500;text-transform:uppercase;letter-spacing:.06em; }
.chat-wrap { display:flex;flex-direction:column;gap:10px; }
.bubble { max-width:82%;padding:10px 14px;border-radius:12px;font-size:13px;line-height:1.5; }
.bubble.bot  { background:rgba(24,95,165,0.2);border:1px solid rgba(55,138,221,0.25);align-self:flex-start;border-radius:4px 12px 12px 12px; }
.bubble.user { background:var(--navy);border:1px solid var(--border);color:var(--muted);align-self:flex-end;border-radius:12px 4px 12px 12px; }
.bot-name { font-size:11px;color:var(--blue2);font-weight:500;margin-bottom:4px; }
.score-row { display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--border); }
.score-row:last-child { border-bottom:none; }
.score-name { font-size:13px; } .score-meta { font-size:12px;color:var(--muted); }
.score-badge { font-size:11px;font-weight:600;padding:3px 10px;border-radius:100px;white-space:nowrap; }
.hot  { background:rgba(226,75,74,0.15); color:#F09595;border:1px solid rgba(226,75,74,0.25); }
.warm { background:rgba(186,117,23,0.15);color:#FAC775;border:1px solid rgba(186,117,23,0.25); }
.cold { background:rgba(55,138,221,0.12);color:#85B7EB;border:1px solid rgba(55,138,221,0.2); }
.seq-row { display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--border); }
.seq-row:last-child { border-bottom:none; }
.seq-day { font-size:11px;color:var(--blue2);font-weight:600;width:36px;flex-shrink:0;padding-top:6px; }
.seq-icon { width:30px;height:30px;border-radius:8px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:14px; }
.seq-icon.done { background:rgba(29,158,117,0.15); } .seq-icon.pending { background:rgba(255,255,255,0.04); }
.seq-subject { font-size:13px;font-weight:500; }
.seq-body    { font-size:12px;color:var(--muted);margin-top:2px;line-height:1.4; }
.seq-status  { font-size:11px;margin-top:4px; }
.seq-status.ok { color:var(--teal2); } .seq-status.wait { color:var(--muted); }
.cal-grid { display:grid;grid-template-columns:repeat(5,1fr);gap:6px; }
.cal-day-hdr { font-size:10px;color:var(--muted);text-align:center;padding:4px 0;font-weight:500; }
.cal-slot { padding:6px 4px;border-radius:6px;border:1px solid var(--border);text-align:center;font-size:11px;color:var(--muted); }
.cal-slot.booked { background:rgba(29,158,117,0.15);border-color:rgba(29,158,117,0.35);color:var(--teal2);font-weight:500; }
.cal-slot.taken  { background:rgba(255,255,255,0.03);color:rgba(255,255,255,0.2); }
.cal-slot.today  { border-color:var(--blue);color:var(--white); }
.demo-desc h3 { font-family:var(--fh);font-size:22px;font-weight:600;margin-bottom:12px;letter-spacing:-0.3px; }
.demo-desc p  { font-size:15px;color:var(--muted);line-height:1.7;margin-bottom:20px; }
.demo-tag { display:inline-block;font-size:11px;font-weight:500;padding:3px 10px;border-radius:100px;background:rgba(29,158,117,0.12);border:1px solid rgba(29,158,117,0.25);color:var(--teal2);margin-bottom:14px; }
.demo-features { list-style:none;display:flex;flex-direction:column;gap:10px; }
.demo-features li { display:flex;gap:10px;font-size:14px;color:var(--muted);align-items:flex-start;line-height:1.5; }
.demo-features li::before { content:'✓';color:var(--teal2);font-weight:700;flex-shrink:0;margin-top:1px; }
.bar-wrap { margin-top:28px; }
.bar-row  { display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:5px; }
.bar-track { background:var(--border);border-radius:4px;height:4px;margin-bottom:14px; }
.bar-fill  { height:4px;border-radius:4px; }
.bar-fill.bad  { background:rgba(226,75,74,0.5);width:100%; }
.bar-fill.good { background:var(--teal);width:1%; }

/* ── PACKAGES ── */
.services-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:16px; }
.service-card { border:1px solid var(--border);border-radius:var(--r-lg);padding:28px 24px;background:var(--card);transition:border-color var(--ease),transform var(--ease); }
.service-card:hover { border-color:rgba(55,138,221,0.4);transform:translateY(-2px); }
.service-card.featured { border-color:var(--teal);background:rgba(29,158,117,0.05);position:relative; }
.service-badge { position:absolute;top:-12px;left:24px;background:var(--teal);color:#fff;font-size:11px;font-weight:600;padding:3px 12px;border-radius:100px;font-family:var(--fh); }
.service-icon  { font-size:28px;margin-bottom:16px;display:block; }
.service-name  { font-family:var(--fh);font-size:18px;font-weight:600;margin-bottom:6px; }
.service-price { font-family:var(--fh);font-size:26px;font-weight:700;margin-bottom:4px; }
.service-price span { font-size:14px;font-weight:400;color:var(--muted); }
.service-desc  { font-size:14px;color:var(--muted);margin-bottom:20px;line-height:1.55; }
.service-items { list-style:none; }
.service-items li { font-size:14px;color:var(--muted);padding:5px 0;border-bottom:1px solid var(--border);display:flex;align-items:flex-start;gap:8px;line-height:1.5; }
.service-items li:last-child { border-bottom:none; }
.service-items li::before { content:'✓';color:var(--teal2);font-weight:600;flex-shrink:0; }
.service-cta { display:block;text-align:center;margin-top:24px;padding:12px;border:1px solid var(--border);border-radius:8px;color:var(--muted);font-size:14px;text-decoration:none;transition:border-color var(--ease),color var(--ease); }
.service-card.featured .service-cta { background:var(--teal);border-color:var(--teal);color:#fff; }
.service-cta:hover { border-color:var(--teal2);color:var(--white); }

/* ── CTA ── */
.cta-wrap { background:linear-gradient(135deg,var(--navy3) 0%,rgba(24,95,165,0.15) 100%);border:1px solid var(--border);border-radius:var(--r-xl);padding:72px 56px;text-align:center;position:relative;overflow:hidden; }
.cta-wrap::before { content:'';position:absolute;top:-80px;left:50%;transform:translateX(-50%);width:400px;height:300px;background:radial-gradient(ellipse,rgba(29,158,117,0.1) 0%,transparent 70%);pointer-events:none; }
.cta-wrap h2 { font-size:clamp(28px,3vw,40px);font-weight:700;letter-spacing:-0.5px;margin-bottom:14px; }
.cta-wrap p  { font-size:18px;color:var(--muted);font-weight:300;max-width:480px;margin:0 auto 36px; }
.cta-note    { font-size:13px;color:var(--muted);margin-top:14px; }

/* ── FOOTER ── */
footer { border-top:1px solid var(--border);padding:32px 48px;display:flex;align-items:center;justify-content:space-between;font-size:13px;color:var(--muted); }
footer a { color:var(--muted);text-decoration:none;transition:color var(--ease); }
footer a:hover { color:var(--white); }
.footer-left  { display:flex;align-items:center;gap:10px; }
.footer-sep   { color:rgba(255,255,255,0.18); }
.footer-links { display:flex;gap:24px; }

/* ── COOKIE BANNER ── */
#cookie-banner {
  position:fixed;bottom:0;left:0;right:0;z-index:999;
  background:var(--navy2);border-top:1px solid var(--border);
  padding:18px 48px;display:flex;align-items:center;
  justify-content:space-between;gap:24px;flex-wrap:wrap;
  transition:transform 0.35s ease,opacity 0.35s ease;
}
#cookie-banner.hidden { transform:translateY(110%);opacity:0;pointer-events:none; }
#cookie-banner p { font-size:13px;color:var(--muted);line-height:1.6;flex:1;min-width:200px; }
#cookie-banner p a { color:var(--blue2);text-decoration:underline; }
#cookie-banner p a:hover { color:var(--white); }
.cookie-actions { display:flex;gap:10px;flex-shrink:0; }
.btn-cookie-accept { background:var(--teal);color:#fff;border:none;padding:9px 20px;border-radius:var(--r-sm);font-size:13px;font-weight:500;cursor:pointer;font-family:var(--fb);transition:background var(--ease); }
.btn-cookie-accept:hover { background:var(--teal2); }
.btn-cookie-reject { background:transparent;color:var(--muted);border:1px solid var(--border);padding:9px 20px;border-radius:var(--r-sm);font-size:13px;cursor:pointer;font-family:var(--fb);transition:border-color var(--ease),color var(--ease); }
.btn-cookie-reject:hover { border-color:rgba(255,255,255,0.2);color:var(--white); }

/* ── PRIVACY PAGE ── */
.prose-page { padding-top:128px;max-width:760px;margin:0 auto;padding-left:48px;padding-right:48px;padding-bottom:96px; }
.prose-page h1 { font-size:clamp(30px,4vw,46px);font-weight:700;letter-spacing:-0.5px;margin-bottom:8px; }
.prose-date  { font-size:13px;color:var(--muted);margin-bottom:48px;display:block; }
.prose-page h2 { font-size:20px;font-weight:600;margin:44px 0 12px;padding-top:44px;border-top:1px solid var(--border); }
.prose-page h2:first-of-type { border-top:none;margin-top:0;padding-top:0; }
.prose-page p  { font-size:15px;color:var(--muted);line-height:1.8;margin-bottom:16px; }
.prose-page ul { list-style:none;margin:0 0 16px;padding:0; }
.prose-page ul li { font-size:15px;color:var(--muted);line-height:1.8;padding:4px 0;display:flex;gap:10px; }
.prose-page ul li::before { content:'—';color:rgba(255,255,255,0.2);flex-shrink:0; }
.prose-page a { color:var(--blue2);text-decoration:underline; }
.prose-page a:hover { color:var(--white); }
.prose-note { background:var(--card);border:1px solid var(--border);border-radius:var(--r-md);padding:16px 20px;margin:20px 0; }
.prose-note p { margin:0;font-size:14px; }

/* ── RESPONSIVE ── */
@media (max-width:768px) {
  nav { padding:16px 20px; }
  .hero-outer { padding:0 20px; }
  .hero-section { grid-template-columns:1fr;padding-top:100px;padding-bottom:60px;gap:40px; }
  section { padding:64px 20px; }
  .pain-grid,.services-grid { grid-template-columns:1fr; }
  .how-steps { grid-template-columns:1fr 1fr; }
  .how-steps::before { display:none; }
  .how-wrap { padding:32px 20px; }
  .demo-stage.active { grid-template-columns:1fr; }
  .demos-tabs { gap:6px; }
  .cta-wrap { padding:48px 24px; }
  footer { flex-direction:column;gap:16px;padding:24px 20px;text-align:center; }
  .footer-links { justify-content:center;flex-wrap:wrap; }
  #cookie-banner { padding:16px 20px;flex-direction:column;align-items:flex-start; }
  .cookie-actions { width:100%; }
  .btn-cookie-accept,.btn-cookie-reject { flex:1;text-align:center; }
  .prose-page { padding-left:20px;padding-right:20px; }
}
