/* QxChartPulse — website styles, from the brand guide: green #03c378 on near-black, silver and gray neutrals. */
:root {
  --bg: #0a0f11;
  --bg-2: #0d1316;
  --card: #11181b;
  --card-2: #151e22;
  --border: #1e292d;
  --border-2: #2a383d;
  --text: #e3e6e8;
  --muted: #8b969c;
  /* Brand green (Premium, primary actions) and silver (free) */
  --brand: #03c378;
  --brand-2: #2fe09a;
  --brand-soft: rgba(3, 195, 120, 0.12);
  --silver: #c9d1d5;
  --silver-soft: rgba(201, 209, 213, 0.07);
  --green: #03c378;
  --green-soft: rgba(3, 195, 120, 0.12);
  --red: #e0565b;
  --blue: #38b2d6;
  --radius: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'Cascadia Mono', Consolas, ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(3, 195, 120, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(105, 113, 119, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 750; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.brand-text { color: var(--brand); }
.green { color: var(--green); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(10, 15, 17, 0.8); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(30, 41, 45, 0.75); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: 0.04em; }
.brand:hover { color: var(--text); }
.brand .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
.brand .wordmark { font: 800 19px/1 var(--font); letter-spacing: -0.01em; color: var(--text); white-space: nowrap; }
.brand .wordmark b { color: var(--brand); font-weight: inherit; }
.footer-brand .brand-mark { width: 36px; height: 36px; border-radius: 9px; }
.footer-brand .wordmark { font-size: 22px; }
.site-footer .tagline { margin-top: 6px; font: 600 11px var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.final-cta .final-mark { width: 116px; height: auto; margin: -18px auto 10px; }
@media (max-width: 380px) { .brand .wordmark { font-size: 16px; } }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); }
.lang { display: flex; border: 1px solid var(--border-2); border-radius: 8px; overflow: hidden; }
.lang button { all: unset; cursor: pointer; padding: 4px 9px; font: 600 11px var(--mono); color: var(--muted); }
.lang button[aria-pressed='true'] { background: var(--border-2); color: var(--text); }
.menu-btn { all: unset; display: none; cursor: pointer; padding: 6px; color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid var(--border-2);
  font: 700 14px var(--font); letter-spacing: 0.02em; color: var(--text); background: var(--card-2);
  cursor: pointer; transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); color: var(--text); background: #1a2428; }
.btn.primary { background: linear-gradient(180deg, var(--brand-2), var(--brand)); border-color: var(--brand); color: #03140c; }
.btn.primary:hover { filter: brightness(1.06); color: #03140c; }
.btn.ghost { background: transparent; border-color: rgba(3, 195, 120, 0.6); color: var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); color: var(--brand-2); }
.btn.small { padding: 8px 14px; font-size: 13px; }
.btn.block { width: 100%; }
/* Download button: "Downloading… 42%" with a progress fill → "Completed" with a check. Quick, no long animations. */
.btn[data-download] { position: relative; overflow: hidden; isolation: isolate; transition: transform 0.12s ease, filter 0.12s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.btn[data-download]::before { content: ''; position: absolute; inset: 0 auto 0 0; z-index: -1; width: var(--dl, 0%); background: rgba(255, 255, 255, 0.3); transition: width 0.15s linear, opacity 0.2s ease; }
.btn[data-download][data-state='loading'] { cursor: progress; }
.btn[data-download][data-state='done'] { background: var(--green); border-color: var(--green); color: #03140c; }
.btn[data-download][data-state='done']::before { opacity: 0; }
.dl-spin { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid rgba(18, 22, 31, 0.22); border-top-color: currentColor; animation: spin 0.8s linear infinite; }
.btn:not(.primary) .dl-spin { border-color: rgba(230, 233, 239, 0.22); border-top-color: currentColor; }
.dl-check { width: 6px; height: 11px; flex: none; margin: -3px 3px 0 2px; border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); animation: dl-pop 0.2s ease-out both; }
.dl-pct { min-width: 4ch; font: 700 12px var(--mono); font-variant-numeric: tabular-nums; opacity: 0.7; text-align: left; }
@keyframes dl-pop { from { opacity: 0; transform: rotate(45deg) scale(0.5); } to { opacity: 1; transform: rotate(45deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .dl-check { animation: none; } .dl-spin { animation-duration: 2.4s; } }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.hero h1 .accent { background: linear-gradient(90deg, var(--brand-2), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18px; color: #c3cbcf; max-width: 560px; margin: 18px 0 26px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: 13px; }
.trust > span::before { content: '✓ '; color: var(--green); font-weight: 700; }
.shot {
  position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--border-2);
  background: var(--card); box-shadow: var(--shadow);
}
.shot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); pointer-events: none; }
.shot .bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: #263236; }
.hero .shot img { aspect-ratio: 1220 / 580; object-fit: cover; object-position: left top; width: 100%; }

/* Feature grid */
.grid { display: grid; gap: 16px; }
.grid.f4 { grid-template-columns: repeat(4, 1fr); }
.grid.f3 { grid-template-columns: repeat(3, 1fr); }
.grid.f2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature { display: grid; gap: 8px; align-content: start; position: relative; }
.feature .icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--border-2); font-size: 18px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }
.tag { position: absolute; top: 18px; right: 18px; font: 700 10px var(--mono); letter-spacing: 0.1em; padding: 3px 8px; border-radius: 999px; }
.tag.free { color: var(--silver); background: var(--silver-soft); border: 1px solid rgba(201, 209, 213, 0.3); }
.tag.premium { color: var(--brand); background: var(--brand-soft); border: 1px solid rgba(3, 195, 120, 0.35); }

/* Showcase */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.showcase + .showcase { margin-top: 64px; }
.showcase.flip .shot { order: 2; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.checks li { padding-left: 26px; position: relative; color: #c3cbcf; }
.checks li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.checks.premium li::before { color: var(--brand); }

/* Free vs Premium */
.compare { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: stretch; }
.plan-col { display: grid; gap: 14px; align-content: start; }
.plan-col.premium { border-color: rgba(3, 195, 120, 0.5); background: linear-gradient(180deg, rgba(3, 195, 120, 0.07), transparent 40%), var(--card); }
.plan-col h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.plan-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.plan-col li { display: flex; gap: 10px; color: #c3cbcf; font-size: 15px; }
.plan-col li::before { content: '✓'; color: var(--silver); font-weight: 800; }
.plan-col.premium li::before { color: var(--brand); }
.plan-col li.no { color: var(--muted); }
.plan-col li.no::before { content: '—'; color: var(--border-2); }

/* Trial band */
.trial-band {
  border-radius: 20px; padding: 48px; display: grid; grid-template-columns: 1.3fr auto; gap: 24px; align-items: center;
  background: radial-gradient(600px 220px at 10% 0%, rgba(47, 224, 154, 0.18), transparent 70%), linear-gradient(135deg, #0f1d18, #0e1417);
  border: 1px solid rgba(3, 195, 120, 0.45);
}
.trial-band h2 { margin-bottom: 8px; }
.timer { font: 800 44px var(--mono); color: var(--brand); letter-spacing: -0.02em; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
/* Every card shares the same four rows (head, price, features, button): the buttons line up even when one card has less text. */
.price-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 14px; position: relative; }
@supports not (grid-template-rows: subgrid) {
  .price-card { display: flex; flex-direction: column; gap: 14px; }
  .price-card .btn { margin-top: auto; }
}
.price-card .btn { align-self: end; }
.price { flex-wrap: wrap; align-self: start; }
.price-card ul { align-self: start; }
.price-card.highlight { border-color: var(--brand); box-shadow: 0 0 0 1px rgba(3, 195, 120, 0.35), var(--shadow); }
.price-card .badge { position: absolute; top: -11px; left: 22px; background: var(--brand); color: #03140c; font: 800 10px var(--mono); letter-spacing: 0.1em; padding: 4px 9px; border-radius: 999px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price .amount { font: 800 38px var(--font); letter-spacing: -0.03em; }
.price .per { color: var(--muted); font-size: 14px; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; color: #c3cbcf; }
.price-card li::before { content: '✓ '; color: var(--silver); font-weight: 800; }
.price-card.premium li::before { color: var(--brand); }
.price-card .btn { margin-top: auto; }
.note { font-size: 13px; color: var(--muted); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: 18px; left: 22px;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font: 800 13px var(--mono); color: #03140c; background: var(--brand);
}
.step p { color: var(--muted); font-size: 14px; margin: 0; }
ol.howto { margin: 0; padding-left: 22px; display: grid; gap: 12px; color: #c3cbcf; }
ol.howto code, .kbd { font-family: var(--mono); font-size: 13px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 6px; padding: 1px 6px; color: var(--text); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--brand); font-weight: 800; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

/* Risk */
.risk { border: 1px solid rgba(224, 86, 91, 0.35); background: rgba(224, 86, 91, 0.06); border-radius: var(--radius); padding: 22px 24px; color: #d4bfc0; font-size: 14px; }
.risk strong { color: #f0a3a6; }

/* Page hero (inner pages) */
.page-hero { padding: 64px 0 24px; }
.page-hero p { font-size: 18px; color: #c3cbcf; max-width: 720px; }
.prose { max-width: 820px; }
.prose h2 { font-size: 24px; margin-top: 40px; }
.prose h3 { margin-top: 26px; }
.prose p, .prose li { color: #c3cbcf; }
.prose ul { padding-left: 22px; }
.callout { border-left: 3px solid var(--brand); background: var(--brand-soft); padding: 14px 18px; border-radius: 0 10px 10px 0; color: #d3eee1; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 40px; margin-top: 40px; background: var(--bg-2); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #c3cbcf; font-size: 14px; }
.site-footer .legal { margin-top: 28px; font-size: 12.5px; color: var(--muted); display: grid; gap: 8px; }

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap, .showcase, .compare, .trial-band { grid-template-columns: 1fr; }
  .showcase.flip .shot { order: 0; }
  .grid.f4, .pricing { grid-template-columns: repeat(2, 1fr); }
  .grid.f3, .steps { grid-template-columns: 1fr 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 8px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
  .menu-btn { display: block; margin-left: auto; }
  .site-header .header-cta { display: none; }
  .grid.f4, .grid.f3, .grid.f2, .pricing, .steps, .site-footer .cols { grid-template-columns: 1fr; }
  .trial-band { padding: 28px; }
  .timer { font-size: 34px; }
}

/* Language: every text exists in both languages; only the active one shows. */
html:not([data-lang='en']) [data-l='en'] { display: none !important; }
html[data-lang='en'] [data-l='es'] { display: none !important; }

/* Pricing extras */
.saving { margin-left: 4px; align-self: center; font: 800 11px var(--mono); letter-spacing: 0.06em; color: var(--green); background: var(--green-soft); border: 1px solid rgba(3, 195, 120, 0.35); padding: 3px 8px; border-radius: 999px; }
.secure { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin-top: 22px; color: var(--muted); font-size: 13.5px; }
.secure > span::before { content: '🔒 '; }
.notice-bar { border: 1px solid rgba(3, 195, 120, 0.45); background: var(--brand-soft); color: #d3eee1; border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }
.notice-bar[hidden] { display: none; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 8px; }
.stat { background: var(--card); padding: 18px 20px; }
.stat b { display: block; font: 800 28px var(--font); letter-spacing: -0.02em; color: var(--text); }
.stat span { color: var(--muted); font-size: 13.5px; }

/* Hero visual */
.hero .shot { transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(3, 195, 120, 0.12), 0 0 120px rgba(3, 195, 120, 0.08); }
.live-badge { position: absolute; top: 46px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font: 700 10.5px var(--mono); letter-spacing: 0.1em; color: var(--green); background: rgba(10, 15, 17, 0.85); border: 1px solid rgba(3, 195, 120, 0.4); padding: 4px 9px; border-radius: 999px; }
.live-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(3, 195, 120, 0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(3, 195, 120, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(3, 195, 120, 0); } 100% { box-shadow: 0 0 0 0 rgba(3, 195, 120, 0); } }

/* Trust tiles */
.trust-tile { display: grid; gap: 6px; }
.trust-tile .icon { font-size: 22px; }
.trust-tile p { color: var(--muted); font-size: 14px; margin: 0; }

/* Final CTA */
.final-cta { text-align: center; border-radius: 20px; padding: 56px 24px; background: radial-gradient(700px 260px at 50% 0%, rgba(3, 195, 120, 0.16), transparent 70%), var(--card); border: 1px solid var(--border-2); }
.final-cta .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* Thank-you page */
.key-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 20px; border-radius: 12px; border: 1px dashed var(--brand); background: var(--bg-2); }
.key-box code { font: 800 clamp(16px, 2.6vw, 22px) var(--mono); letter-spacing: 0.04em; color: var(--brand-2); word-break: break-all; }
.copied { border-color: var(--green) !important; color: var(--green) !important; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-2); border-top-color: var(--brand); animation: spin 0.9s linear infinite; display: inline-block; vertical-align: middle; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Reveal on scroll */
html.reveal-on .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.reveal-on .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero .shot { transform: none; } }
@media (max-width: 980px) { .stats { grid-template-columns: repeat(2, 1fr); } .hero .shot { transform: none; } }
