/* visx.app — site styles. Mobile first, no external dependencies. */

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-soft: #eef2ff;
  --secondary: #0ea5e9;
  --secondary-soft: #e0f2fe;
  --accent: #14b8a6;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tint: #f5f7ff;
  --success: #16a34a;
  --danger: #dc2626;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px -6px rgba(15, 23, 42, .08);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, .05), 0 24px 48px -12px rgba(30, 27, 75, .18);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --container: 1180px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text-2); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; font-weight: 750; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1.1em; }
li { margin-bottom: .35em; }
code { font-family: var(--mono); font-size: .88em; background: var(--primary-soft); color: #3730a3; padding: .12em .4em; border-radius: 5px; word-break: break-word; }
pre { position: relative; margin: 0 0 1.4em; padding: 18px 20px; overflow: auto; background: #0f172a; color: #e2e8f0; border-radius: var(--radius); font-size: .86rem; line-height: 1.6; }
pre code { background: none; color: inherit; padding: 0; font-size: inherit; word-break: normal; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--text); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 12px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.125rem; color: var(--text-2); max-width: 760px; }

/* ---------- Icons ---------- */
.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon-xs { width: .85em; height: .85em; display: inline-block; vertical-align: -1px; }
.icon-lg { width: 26px; height: 26px; }
.icon-xl { width: 34px; height: 34px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .78em 1.35em; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 650; font-size: .95rem; line-height: 1.2; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s, border-color .18s, color .18s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #6366f1); color: #fff; box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .6); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); box-shadow: 0 10px 22px -8px rgba(79, 70, 229, .7); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--primary-soft); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .5); background: transparent; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-sm { padding: .55em 1em; font-size: .875rem; border-radius: 10px; }
.btn-xs { padding: .42em .7em; font-size: .78rem; border-radius: 8px; gap: .35em; }
.btn-lg { padding: .95em 1.7em; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; text-decoration: none !important; }
.logo-text span { color: var(--muted); font-weight: 600; }
.logo-light { color: #fff; }
.logo-light .logo-text span { color: #a5b4fc; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav li { margin: 0; }
.main-nav ul a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--text-2); font-weight: 560; font-size: .95rem; text-decoration: none; transition: background .15s, color .15s; }
.main-nav ul a:hover, .main-nav ul a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.main-nav .nav-cta-mobile { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); background: #fff; border-radius: 11px; cursor: pointer; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s var(--ease), opacity .2s, top .25s var(--ease); }
.nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 16px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s; overflow-y: auto; border-top: 1px solid var(--border); }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav ul a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .main-nav .nav-cta-mobile { display: inline-flex; }
  .header-cta span { display: none; }
  .header-cta { padding: 10px; }
}
@media (max-width: 380px) { .header-cta { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-tint { background: linear-gradient(180deg, var(--bg-tint), #fff); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }
.section-subtitle { font-size: 1.4rem; margin: 48px 0 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); background: var(--primary-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); background: var(--primary-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 8px; }
.tag { font-size: .78rem; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px; font-family: var(--mono); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 7vw, 88px); background: radial-gradient(1100px 500px at 85% -10%, rgba(14, 165, 233, .12), transparent 60%), radial-gradient(900px 500px at 0% 0%, rgba(99, 102, 241, .12), transparent 60%), #fff; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 .grad { background: linear-gradient(120deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-tagline { font-size: 1.15rem; font-weight: 650; color: var(--text); margin-bottom: .5em; }
.hero-desc { font-size: 1.08rem; color: var(--muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: .9rem; color: var(--text-2); }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.hero-trust .icon { color: var(--success); }
.hero-visual { position: relative; }
.hero-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px; position: relative; z-index: 1; animation: floatIn .9s var(--ease) both; }
.hero-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hero-card-head strong { color: var(--text); font-size: .95rem; }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: block; }
.dots i:nth-child(1) { background: #fca5a5; } .dots i:nth-child(2) { background: #fcd34d; } .dots i:nth-child(3) { background: #86efac; }
.hero-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.kpi { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.kpi span { display: block; font-size: .72rem; color: var(--muted); }
.kpi strong { font-size: 1.05rem; color: var(--text); }
.hero-float { position: absolute; z-index: 2; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px; font-size: .82rem; display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.hero-float .icon { color: var(--primary); }
.hero-float-1 { left: 28px; bottom: -20px; animation: bob 6s ease-in-out infinite; }
.hero-float-2 { right: -10px; top: -14px; animation: bob 7s ease-in-out infinite reverse; }
.bar-grow { transform-origin: bottom; transform-box: fill-box; animation: grow 1s var(--ease) both; }
.line-draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.8s .4s var(--ease) forwards; }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes floatIn { from { opacity: 0; transform: translateY(18px); } }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- Trust bar ---------- */
.trust-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 22px 16px; }
.trust-item .icon-wrap { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.trust-item strong { display: block; color: var(--text); font-size: .98rem; }
.trust-item span { font-size: .84rem; color: var(--muted); }

/* ---------- Cards & grids ---------- */
.grid-3, .grid-2, .grid-4 { display: grid; gap: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c7d2fe; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.card-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; color: var(--primary); background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft)); }
.card-icon .icon { width: 24px; height: 24px; }
.two-col { display: grid; gap: 40px; align-items: start; }
.about-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.about-points li { display: flex; gap: 14px; margin: 0; }
.about-points .card-icon { width: 40px; height: 40px; margin: 0; border-radius: 11px; flex: none; }
.about-points strong { color: var(--text); display: block; }
.about-points span { color: var(--muted); font-size: .95rem; }
.stat-panel { background: linear-gradient(160deg, #1e1b4b, #312e81 55%, #0c4a6e); color: #e0e7ff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); }
.stat-panel h3 { color: #fff; }
.stat-panel ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.stat-panel li { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: .95rem; }
.stat-panel .icon { color: #7dd3fc; margin-top: 3px; }
.stat-panel code { background: rgba(255, 255, 255, .1); color: #e0e7ff; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px 24px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 18px; right: 20px; font-size: 2.4rem; font-weight: 800; color: var(--primary-soft); line-height: 1; }
.step h3 { margin-bottom: .4em; }
.step-extra::before { content: none; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
.steps-list { padding-left: 1.3em; }
.steps-list li { margin-bottom: .7em; padding-left: .3em; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: .6em; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.info-card h3 { display: flex; align-items: center; gap: 8px; }
.info-card h3 .icon { color: var(--primary); }

/* ---------- Download info ---------- */
.dl-grid { display: grid; gap: 16px; }
.dl-item { display: flex; gap: 14px; padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.dl-item .card-icon { width: 42px; height: 42px; margin: 0; flex: none; }
.dl-item h3 { font-size: 1rem; margin-bottom: .25em; }
.dl-item p { margin: 0; font-size: .92rem; color: var(--muted); }
.download-feature { display: grid; gap: 20px; align-items: center; padding: 28px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #fff, var(--bg-tint)); border: 1px solid #c7d2fe; box-shadow: var(--shadow); }
.download-feature-icon { width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center; background: var(--primary); color: #fff; }
.download-feature h2 { font-size: 1.6rem; margin-bottom: .3em; }
.meta-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--text-2); }
.meta-list li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.meta-list .icon { color: var(--primary); }
.file-grid { display: grid; gap: 16px; margin-top: 18px; }
.file-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s, border-color .2s; }
.file-card:hover { box-shadow: var(--shadow); border-color: #c7d2fe; }
.file-card-head { display: flex; align-items: center; gap: 10px; color: var(--primary); }
.file-card-head h3 { margin: 0; font-size: 1.02rem; }
.file-card p { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.file-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.status-icon { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin: 0 auto 20px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 560px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg-soft); color: var(--text); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
td .platform { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--text); }
td .platform .icon { color: var(--primary); }
.ok { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-weight: 650; }
.partial { display: inline-flex; align-items: center; gap: 6px; color: #b45309; font-weight: 650; }

/* ---------- Benefits ---------- */
.benefit { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s; }
.benefit:hover { border-color: #c7d2fe; box-shadow: var(--shadow); }
.benefit .card-icon { margin: 0; flex: none; }
.benefit h3 { font-size: 1.05rem; margin-bottom: .3em; }
.benefit p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; gap: 20px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-thumb { aspect-ratio: 16 / 8; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft)); color: var(--primary); position: relative; overflow: hidden; }
.post-thumb .icon { width: 42px; height: 42px; position: relative; z-index: 1; }
.post-thumb::after { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%; background: radial-gradient(closest-side, rgba(255, 255, 255, .7), transparent); }
.post-card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .8rem; color: var(--muted); display: flex; gap: 12px; margin-bottom: 8px; }
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-card h3 { font-size: 1.05rem; margin-bottom: .45em; }
.post-card h3 a { color: var(--text); }
.post-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .92rem; }
.read-more .icon { transition: transform .2s; }
.read-more:hover .icon { transform: translateX(3px); }

/* ---------- FAQ ---------- */
.faq-groups { display: grid; gap: 32px; }
.faq-group h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 14px; }
.faq-group h3 .icon { color: var(--primary); }
.faq-item { border: 1px solid var(--border); border-radius: 12px; background: #fff; margin-bottom: 10px; transition: border-color .2s, box-shadow .2s; }
.faq-item.is-open { border-color: #c7d2fe; box-shadow: var(--shadow-sm); }
.faq-item h4 { margin: 0; font-size: 1rem; letter-spacing: 0; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; background: none; border: 0; font: inherit; font-weight: 650; color: var(--text); text-align: left; cursor: pointer; line-height: 1.4; }
.faq-question .plus { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); position: relative; flex: none; transition: transform .3s var(--ease), background .2s; }
.faq-question .plus::before, .faq-question .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; background: var(--primary); transform: translate(-50%, -50%); border-radius: 2px; }
.faq-question .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq-item.is-open .plus { background: var(--primary); }
.faq-item.is-open .plus::before, .faq-item.is-open .plus::after { background: #fff; }
.faq-item.is-open .plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { padding: 0 20px 18px; margin: 0; color: var(--muted); }
html:not(.js) .faq-answer { grid-template-rows: 1fr; }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px); text-align: center; color: #e0e7ff; background: radial-gradient(600px 300px at 90% 0%, rgba(14, 165, 233, .45), transparent 60%), linear-gradient(135deg, #312e81, #4f46e5); box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; max-width: 720px; margin: 0 auto .5em; }
.cta-band p { max-width: 620px; margin: 0 auto 28px; font-size: 1.06rem; }
.cta-band .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Playground ---------- */
.tool { display: grid; gap: 20px; margin-bottom: 28px; }
.tool-controls, .tool-preview { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.tool-preview { position: relative; min-width: 0; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 650; font-size: .9rem; color: var(--text); margin-bottom: 6px; padding: 0; }
.hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
p.hint { margin: 6px 0 0; }
select, textarea, input[type="text"], input[type="email"] { width: 100%; font: inherit; font-size: .95rem; color: var(--text); background: #fff; border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
textarea { font-family: var(--mono); font-size: .86rem; line-height: 1.55; resize: vertical; min-height: 120px; }
select:focus, textarea:focus, input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, .14); }
.field-invalid { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: .82rem; margin: 6px 0 0; min-height: 1em; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: inline-flex !important; align-items: center; gap: 7px; font-weight: 550 !important; font-size: .85rem !important; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; margin: 0 !important; transition: border-color .15s, background .15s; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.swatch:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.swatch:has(input:focus-visible) { outline: 3px solid rgba(79, 70, 229, .45); }
.toggles { display: grid; gap: 10px; }
.toggle { display: flex !important; align-items: center; gap: 10px; font-weight: 550 !important; font-size: .9rem !important; cursor: pointer; margin: 0 !important; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle span { width: 38px; height: 22px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background .2s; flex: none; }
.toggle span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.toggle input:checked + span { background: var(--primary); }
.toggle input:checked + span::after { transform: translateX(16px); }
.toggle input:focus-visible + span { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; }
.preview-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.preview-head h3 { margin: 0; font-size: 1.3rem; }
.preview-kicker { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.preview-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.preview-chart { width: 100%; aspect-ratio: 16 / 9; background: linear-gradient(180deg, #fff, var(--bg-soft)); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px; }
.preview-chart svg { width: 100%; height: 100%; animation: fadeIn .35s var(--ease); }
.preview-chart .mark { transition: opacity .15s; cursor: crosshair; }
.preview-chart svg:hover .mark { opacity: .55; }
.preview-chart svg .mark:hover { opacity: 1; }
@keyframes fadeIn { from { opacity: 0; } }
.chart-tooltip { position: absolute; z-index: 5; pointer-events: none; background: #0f172a; color: #fff; font-size: .8rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; box-shadow: var(--shadow); white-space: nowrap; }
.code-box { margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.code-box summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; font-weight: 650; font-size: .9rem; color: var(--text); background: var(--bg-soft); list-style: none; }
.code-box summary::-webkit-details-marker { display: none; }
.code-box pre { margin: 0; border-radius: 0; max-height: 300px; font-size: .8rem; }
.copy-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: .78rem; font-weight: 650; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--border-strong); background: #fff; color: var(--text); cursor: pointer; }
.copy-btn:hover { border-color: var(--primary); color: var(--primary); }
.copy-btn-float { position: absolute; top: 10px; right: 10px; background: rgba(255, 255, 255, .1); color: #e2e8f0; border-color: rgba(255, 255, 255, .2); }
.copy-btn-float:hover { background: rgba(255, 255, 255, .2); color: #fff; border-color: rgba(255, 255, 255, .4); }
.chart-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .chart-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .chart-grid { grid-template-columns: repeat(3, 1fr); } }
.chart-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
.chart-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.chart-card.is-active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, .14); }
.chart-card[hidden] { display: none; }
.chart-card.pop-in { animation: popIn .45s var(--ease) both; }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.chart-card-preview { border: 0; padding: 12px 12px 0; background: linear-gradient(180deg, var(--bg-soft), #fff); cursor: pointer; display: block; width: 100%; }
.mini-chart { aspect-ratio: 240 / 140; width: 100%; }
.mini-chart svg { width: 100%; height: 100%; }
.chart-card-body { padding: 12px 16px 4px; flex: 1; }
.chart-card-body h3 { font-size: 1rem; margin-bottom: .25em; }
.chart-card-body p { font-size: .86rem; color: var(--muted); margin: 0; }
.chart-card-actions { display: flex; gap: 6px; padding: 12px 16px 16px; flex-wrap: wrap; }
.tool-footer { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.tool-note { text-align: center; margin: 16px auto 0; max-width: 680px; }

/* ---------- Inner pages ---------- */
.page-hero { padding: clamp(36px, 6vw, 64px) 0 clamp(28px, 4vw, 40px); background: radial-gradient(800px 360px at 90% -20%, rgba(14, 165, 233, .1), transparent 60%), radial-gradient(800px 360px at 0% 0%, rgba(99, 102, 241, .1), transparent 60%), #fff; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); max-width: 900px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.content-layout { display: grid; gap: 40px; }
.prose { font-size: 1.04rem; min-width: 0; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.8rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5em; }
.prose > :first-child { margin-top: 0; }
.prose ul li, .prose ol li { margin-bottom: .5em; }
.prose table { margin-bottom: 1.4em; }
.prose .table-wrap { margin-bottom: 1.6em; }
.prose blockquote, .callout { margin: 0 0 1.4em; padding: 16px 20px; border-left: 4px solid var(--primary); background: var(--bg-tint); border-radius: 0 12px 12px 0; color: var(--text-2); }
.callout p:last-child { margin: 0; }
.callout-warn { border-color: #f59e0b; background: #fffbeb; }
.toc, .sidebar-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.toc h2, .sidebar-card h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.1em; font-size: .92rem; }
.toc li { margin-bottom: .4em; }
.sidebar { display: grid; gap: 20px; align-content: start; }
.sidebar-card ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.sidebar-card li { margin-bottom: .55em; }
.sidebar-cta { background: linear-gradient(160deg, #312e81, var(--primary)); color: #e0e7ff; border: 0; }
.sidebar-cta h2 { color: #c7d2fe; }
.sidebar-cta p { font-size: .92rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--muted); margin-top: 8px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.related { margin-top: 48px; }
.contact-grid { display: grid; gap: 28px; }
.contact-form .row { display: grid; gap: 16px; }
.form-status { margin-top: 14px; font-size: .92rem; min-height: 1.2em; }
.form-status.is-error { color: var(--danger); }
.form-status.is-ok { color: var(--success); }
.topic-list { display: grid; gap: 12px; list-style: none; padding: 0; }
.topic-list li { display: flex; gap: 12px; margin: 0; padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.topic-list .icon { color: var(--primary); margin-top: 3px; }
.topic-list strong { color: var(--text); display: block; }
.topic-list span { font-size: .92rem; color: var(--muted); }
.legal .prose h2 { font-size: 1.35rem; }
.updated { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); }

/* ---------- Ads (only rendered when enabled in site.php) ---------- */
.ad-slot { margin: 32px auto; max-width: 970px; min-height: 100px; text-align: center; }
.ad-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1023; color: #a5b4cb; padding: 64px 0 0; font-size: .94rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 40px; }
.footer-brand p { margin: 16px 0 0; max-width: 380px; }
.footer-note { font-size: .82rem; color: #8090ab; }
.footer-title { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-title-gap { margin-top: 24px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55em; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; }
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal li { margin: 0; }
.scroll-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease), background .2s; }
.scroll-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.scroll-top:hover { background: var(--primary-dark); }

/* ---------- Reveal animation (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .grid-2, .post-grid, .dl-grid, .file-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-form .row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .download-feature { grid-template-columns: auto 1fr; }
  .download-feature .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-item + .trust-item { border-left: 1px solid var(--border); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4, .post-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .dl-grid, .file-grid { grid-template-columns: repeat(3, 1fr); }
  .file-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .tool { grid-template-columns: 330px 1fr; align-items: start; }
  .tool-controls { position: sticky; top: calc(var(--header-h) + 16px); }
  .faq-groups { grid-template-columns: 1fr 1fr; }
  .content-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
  .sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
  .contact-grid { grid-template-columns: 1.2fr .8fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr 1fr; }
  .download-feature { grid-template-columns: auto 1fr auto; }
  .download-feature .btn { grid-column: auto; }
}
@media (max-width: 899px) { .hero-float { display: none; } }
@media (max-width: 520px) {
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-kpis { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .kpi { padding: 8px; }
  .tool-controls, .tool-preview { padding: 16px; border-radius: var(--radius); }
  .preview-actions .btn { flex: 1; }
  .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .line-draw { stroke-dashoffset: 0; }
}
@media print {
  .site-header, .site-footer, .scroll-top, .tool-controls, .cta-band, .sidebar { display: none !important; }
  body { color: #000; }
}
