/* QA-Report — shared styles for static SEO/marketing landing pages.
   Dark theme that mirrors the React app's design tokens (src/index.css .dark)
   and the Hero/Features visual language so hand-authored static pages look
   identical to the live site. One file linked by every landing page. */

:root {
  /* Exact tokens from src/index.css .dark */
  --background: 220 20% 11%;
  --foreground: 0 0% 98%;
  --card: 220 18% 14%;
  --muted: 220 16% 20%;
  --muted-foreground: 220 8% 70%;
  --primary: 210 100% 55%;
  --primary-foreground: 0 0% 100%;
  --accent: 195 100% 50%;
  --border: 220 16% 22%;
  --radius: 0.75rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: hsl(var(--accent)); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 80rem; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.gradient-text { background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent))); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- continuous grid zone (ONE seamless grid behind all main content) ----------
   Drawn on a single wrapper so the lines never reset/double at section seams. */
.grid-zone {
  position: relative;
  background-color: hsl(var(--background));
  background-image:
    linear-gradient(to right, #80808012 1px, transparent 1px),
    linear-gradient(to bottom, #80808012 1px, transparent 1px);
  background-size: 24px 24px;
}
.glow { position: absolute; border-radius: 9999px; filter: blur(80px); pointer-events: none; z-index: 0; }
.glow-primary { background: hsl(var(--primary) / 0.06); }
.glow-accent { background: hsl(var(--accent) / 0.06); }

/* ---------- NAV (fixed, blurred, matches Header.tsx) ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsl(var(--background) / 0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border) / 0.8); box-shadow: 0 1px 3px hsl(220 20% 5% / 0.4); }
.nav-inner { max-width: 80rem; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; color: hsl(var(--foreground)); }
.nav-brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: hsl(var(--muted-foreground)); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: hsl(var(--foreground)); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: hsl(var(--muted-foreground)); background: transparent; border: none; cursor: pointer; transition: background .2s, color .2s; }
.icon-btn:hover { background: hsl(var(--muted) / 0.6); color: hsl(var(--foreground)); }
.nav-signin { color: hsl(var(--foreground)); font-weight: 600; font-size: 15px; padding: 0 8px; }
.body-pad { padding-top: 64px; }

/* mobile disclosure menu (no JS, native <details>) — hidden on desktop */
.nav-mobile { display: none; position: static; }
.nav-mobile > summary { list-style: none; cursor: pointer; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: hsl(var(--foreground)); }
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile > summary:hover { background: hsl(var(--muted) / 0.6); }
.nav-mobile .ic-close { display: none; }
.nav-mobile[open] > summary .ic-menu { display: none; }
.nav-mobile[open] > summary .ic-close { display: inline; }
.nav-mobile-panel { position: fixed; top: 64px; left: 0; right: 0; background: hsl(var(--background)); border-bottom: 1px solid hsl(var(--border)); display: flex; flex-direction: column; padding: 8px 24px 20px; box-shadow: 0 24px 40px -20px hsl(220 20% 3% / 0.85); }
.nav-mobile-panel a:not(.btn) { padding: 14px 4px; color: hsl(var(--muted-foreground)); font-weight: 500; font-size: 16px; border-bottom: 1px solid hsl(var(--border) / 0.5); }
.nav-mobile-panel a:not(.btn):hover { color: hsl(var(--foreground)); }
.nav-mobile-panel .nav-mobile-signin { color: hsl(var(--foreground)); }
.nav-mobile-panel .btn { margin-top: 14px; }
.btn-full { width: 100%; }

/* ---------- BUTTONS (match Hero buttons) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-weight: 600; font-size: 15px; transition: all .25s; border: 2px solid transparent; cursor: pointer; line-height: 1; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: hsl(var(--primary)); color: #fff; box-shadow: 0 10px 20px -6px hsl(var(--primary) / 0.5); }
.btn-primary:hover { background: hsl(210 100% 50%); box-shadow: 0 14px 28px -6px hsl(var(--primary) / 0.6); transform: translateY(-1px); }
.btn-accent-outline { border-color: hsl(var(--accent)); color: hsl(var(--accent)); background: transparent; box-shadow: 0 10px 20px -8px hsl(var(--accent) / 0.4); }
.btn-accent-outline:hover { background: hsl(var(--primary)); border-color: hsl(var(--primary)); color: #fff; transform: scale(1.04); }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* ---------- BADGE / EYEBROW ---------- */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 9999px; background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); font-size: 14px; font-weight: 600; border: 1px solid hsl(var(--primary) / 0.2); }
.badge .dot { position: relative; display: inline-flex; width: 8px; height: 8px; }
.badge .dot::before { content: ""; position: absolute; inset: 0; border-radius: 9999px; background: hsl(var(--primary)); opacity: .75; animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite; }
.badge .dot::after { content: ""; position: relative; width: 8px; height: 8px; border-radius: 9999px; background: hsl(var(--primary)); }
@keyframes ping { 75%,100% { transform: scale(2.2); opacity: 0; } }

/* ---------- BREADCRUMB ---------- */
.breadcrumb { padding: 16px 0 0; font-size: 13px; color: hsl(var(--muted-foreground)); }
.breadcrumb a { color: hsl(var(--muted-foreground)); }
.breadcrumb a:hover { color: hsl(var(--foreground)); }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 80px;
  background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(var(--background)) 55%, hsl(var(--muted) / 0.3) 100%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 56px; font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; color: hsl(var(--foreground)); margin: 20px 0; }
.hero h1 .sub { display: block; font-size: 46px; }
.hero-desc { font-size: 19px; color: hsl(var(--muted-foreground)); max-width: 34rem; margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; max-width: 34rem; }
.benefit-item { display: flex; align-items: center; gap: 12px; font-weight: 500; color: hsl(var(--foreground)); font-size: 15px; }
.benefit-item svg { width: 20px; height: 20px; color: hsl(var(--accent)); flex-shrink: 0; }

/* clickable report preview (right of hero) — opens the sample PDF */
.device-report { position: relative; z-index: 1; display: block; border-radius: 16px; overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.6); cursor: pointer;
  box-shadow: 0 30px 60px -15px hsl(220 20% 3% / 0.7), 0 0 0 1px hsl(var(--accent) / 0.18), -8px 8px 44px -10px hsl(var(--accent) / 0.28);
  transition: transform .3s, box-shadow .3s; }
.device-report:hover { transform: translateY(-5px); box-shadow: 0 40px 70px -15px hsl(220 20% 3% / 0.8), 0 0 0 1px hsl(var(--accent) / 0.35), -8px 10px 60px -8px hsl(var(--accent) / 0.4); }
.device-report img { width: 100%; display: block; }
.pdf-hint { position: absolute; bottom: 14px; right: 14px; display: inline-flex; align-items: center; gap: 8px;
  background: hsl(var(--background) / 0.85); backdrop-filter: blur(8px); color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border)); padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.pdf-hint svg { width: 16px; height: 16px; color: hsl(var(--accent)); }

/* ---------- SECTION SHELL ---------- */
.section { position: relative; overflow: hidden; padding: 96px 0; }
.section-alt { background: transparent; } /* no shade band — keep one uniform grid across the whole zone */
.section-head { position: relative; z-index: 1; text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section-head h2 { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; color: hsl(var(--foreground)); margin: 16px 0; line-height: 1.1; }
.section-head p { font-size: 19px; color: hsl(var(--muted-foreground)); }
.inner { position: relative; z-index: 1; }

/* ---------- PAIN ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pain-card { background: hsl(var(--card) / 0.8); backdrop-filter: blur(4px); border: 1px solid hsl(var(--border) / 0.5); border-left: 3px solid #ef4444; border-radius: 14px; padding: 28px; }
.pain-card h3 { font-size: 18px; color: hsl(var(--foreground)); margin-bottom: 10px; }
.pain-card p { font-size: 15px; color: hsl(var(--muted-foreground)); }

/* ---------- STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding: 36px 28px 28px; background: hsl(var(--card) / 0.8); backdrop-filter: blur(4px); border: 1px solid hsl(var(--border) / 0.5); border-radius: 16px; transition: transform .4s, box-shadow .4s; }
.step:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -12px hsl(220 20% 3% / 0.6); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -20px; left: 28px; width: 44px; height: 44px; background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent))); color: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; box-shadow: 0 8px 20px -6px hsl(var(--primary) / 0.6); }
.step h3 { font-size: 19px; margin: 8px 0 10px; color: hsl(var(--foreground)); }
.step p { font-size: 15px; color: hsl(var(--muted-foreground)); }

/* ---------- FEATURES ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card { position: relative; overflow: hidden; background: hsl(var(--card) / 0.8); backdrop-filter: blur(4px); border: 1px solid hsl(var(--border) / 0.5); border-radius: 16px; padding: 28px; transition: transform .4s, box-shadow .4s, border-color .4s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -16px hsl(220 20% 3% / 0.7); border-color: hsl(var(--primary) / 0.4); }
.feature-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; transition: transform .4s; }
.feature-card:hover .feature-icon { transform: scale(1.1); }
.feature-icon svg { width: 26px; height: 26px; color: #fff; }
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; color: hsl(var(--foreground)); transition: color .3s; }
.feature-card:hover h3 { color: hsl(var(--primary)); }
.feature-card p { font-size: 15px; color: hsl(var(--muted-foreground)); }
.ic-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.ic-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.ic-violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.ic-emerald { background: linear-gradient(135deg, #10b981, #059669); }
.ic-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.ic-rose { background: linear-gradient(135deg, #f43f5e, #e11d48); }

/* ---------- SAMPLE FIGURE ---------- */
.figure { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; text-align: center; }
.figure img { border-radius: 16px; border: 1px solid hsl(var(--border) / 0.6); box-shadow: 0 30px 60px -15px hsl(220 20% 3% / 0.7), 0 0 0 1px hsl(var(--accent) / 0.12); }
.figure figcaption { font-size: 15px; color: hsl(var(--muted-foreground)); margin-top: 20px; }

/* ---------- FAQ ---------- */
.faq { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.faq details { background: hsl(var(--card) / 0.8); backdrop-filter: blur(4px); border: 1px solid hsl(var(--border) / 0.5); border-radius: 14px; padding: 0 24px; margin-bottom: 14px; transition: border-color .3s; }
.faq details[open] { border-color: hsl(var(--primary) / 0.4); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-weight: 600; font-size: 17px; color: hsl(var(--foreground)); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: hsl(var(--accent)); font-weight: 300; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 0 22px; font-size: 16px; color: hsl(var(--muted-foreground)); }

/* ---------- PROSE / RELATED ---------- */
.prose { position: relative; z-index: 1; text-align: center; }
.prose h2 { font-size: 30px; color: hsl(var(--foreground)); margin-bottom: 16px; }
.prose p { font-size: 17px; color: hsl(var(--muted-foreground)); }
.prose a { color: hsl(var(--accent)); font-weight: 600; }

/* ---------- CTA BAND ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; padding: 88px 24px; background: linear-gradient(135deg, hsl(var(--primary)), hsl(195 100% 45%)); color: #fff; }
.cta-band h2 { font-size: 40px; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.02em; }
.cta-band p { font-size: 19px; opacity: .95; max-width: 640px; margin: 0 auto 32px; }
.cta-band .btn-primary { background: #fff; color: hsl(var(--primary)); box-shadow: 0 14px 30px -8px hsl(220 20% 3% / 0.4); }
.cta-band .btn-primary:hover { background: #f1f5f9; }
.cta-band .btn-accent-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.cta-band .btn-accent-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: scale(1.04); }

/* ---------- FOOTER ---------- */
.footer { background: hsl(220 20% 9%); color: #b9c0cc; padding: 64px 0 32px; border-top: 1px solid hsl(var(--border) / 0.6); }
.footer-inner { max-width: 80rem; margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #fff; font-size: 17px; font-weight: 700; }
.footer-logo img { height: 32px; width: auto; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: #8b93a3; }
.footer a { color: #8b93a3; }
.footer a:hover { color: #fff; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 16px; letter-spacing: .03em; }
.footer ul { list-style: none; }
.footer li { font-size: 14px; padding: 5px 0; }
.footer-bottom { border-top: 1px solid hsl(var(--border) / 0.6); padding-top: 24px; display: flex; justify-content: space-between; font-size: 13px; color: #8b93a3; flex-wrap: wrap; gap: 8px; }

/* ---------- entrance animation ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.animate-up { animation: fade-up .7s ease both; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 40px; } .hero h1 .sub { font-size: 34px; }
  .pain-grid, .steps, .feature-grid { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band h2 { font-size: 30px; }
  /* mobile nav: collapse desktop links + utility items into the hamburger */
  .nav-links { display: none; }
  .nav-actions > .icon-btn,
  .nav-actions > .nav-signin,
  .nav-actions > .btn-primary { display: none; }
  .nav-mobile { display: inline-flex; }
}
