/*
Theme Name: Kullqi
Theme URI: https://www.kullqi.com
Author: Kullqi
Description: Réplica exacta de la landing de Kullqi (kullqi.com), como tema de WordPress, con sección "Últimos temas" para el blog.
Version: 1.0
Text Domain: kullqi
*/

:root {
  --ink-900: #0f1222; --ink-700: #454b60; --ink-500: #868ba3;
  --paper-100: #ffffff; --paper-200: #f5f5fb; --rule: #e6e6f2;
  --brand-500: #0a64ec; --brand-600: #0749ac; --brand-100: #e6f0fd;
  --success-500: #17a568; --success-100: #e3f8ee;
  --warn-500: #b8860b; --warn-100: #fff3d6;
  --code-bg: #14162a; --code-ink: #dfe2ff; --code-accent: #8fe3b3; --code-string: #ffcf8f; --code-key: #9fb4ff;
  --bg-gradient: linear-gradient(160deg, #eaf2ff 0%, #f7fbff 45%, #eafff9 100%);
  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'Consolas', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg-gradient); background-attachment: fixed; color: var(--ink-900); font-family: var(--font); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-600); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
code { font-family: var(--font-mono); }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 1.75rem; padding-right: 1.75rem; }

/* --- Cabecera / navegación --- */
header.nav { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,0.75); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--ink-900); }
.brand-mark { width: 1.55rem; height: 1.55rem; border-radius: 8px; overflow: hidden; flex: none; display: block; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
nav.links { display: flex; align-items: center; gap: 1rem; font-size: 0.92rem; font-weight: 600; }
.nav-plain-links { display: flex; align-items: center; gap: 1.5rem; margin-right: 0.5rem; }
nav.links a.plain { color: var(--ink-700); white-space: nowrap; }
nav.links a.plain:hover { color: var(--ink-900); }

/* --- Botones --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.7rem 1.4rem; border-radius: 10px; font-weight: 700; font-size: 0.92rem; border: 1px solid transparent; white-space: nowrap; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-500); color: #fff; box-shadow: 0 14px 24px -14px rgba(10,100,236,0.55); }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-ghost { border-color: var(--rule); color: var(--ink-900); background: #fff; }
.btn-ghost:hover { border-color: var(--brand-500); color: var(--ink-900); }

/* --- Hero (home) --- */
.hero { position: relative; padding: 6rem 0 3.5rem; overflow: hidden; }
.hero-glow { position: absolute; inset: -30% -10% auto -10%; height: 620px; z-index: 0; pointer-events: none; filter: blur(70px); opacity: 0.55; }
.hero-glow .blob { position: absolute; border-radius: 50%; }
.hero-glow .blob-a { width: 460px; height: 460px; left: 4%; top: 4%; background: var(--brand-100); animation: drift-a 17s ease-in-out infinite; }
.hero-glow .blob-b { width: 420px; height: 420px; right: 6%; top: 10%; background: #d7f5ea; animation: drift-b 19s ease-in-out infinite; }
@keyframes drift-a { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(26px,18px) scale(1.06); } }
@keyframes drift-b { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-22px,14px) scale(0.96); } }
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 46rem; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; color: var(--brand-600); background: var(--brand-100); border: 1px solid #d3e6fc; padding: 0.4rem 0.9rem; border-radius: 999px; margin-bottom: 1.75rem; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success-500); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(23,165,104,0.5); } 50% { box-shadow: 0 0 0 6px transparent; } }
h1 { font-weight: 800; font-size: clamp(2.3rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 1.25rem; color: var(--ink-900); }
h1 em { font-style: normal; background: linear-gradient(95deg, var(--brand-500), #02c9a0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 1.15rem; color: var(--ink-700); max-width: 34rem; margin: 0 auto 2.25rem; }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.1rem; }
.hero-note { font-size: 0.85rem; color: var(--ink-500); }
.hero.wrap { text-align: left; padding: 3.75rem 0 2.5rem; }
.hero.wrap h1 { max-width: 34rem; }
.hero.wrap .lede { margin: 0 0 2rem; max-width: 36rem; }
.hero.wrap .hero-ctas { justify-content: flex-start; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.hero-content > * { opacity: 0; animation: rise 0.7s cubic-bezier(0.16,1,0.3,1) forwards; }
.hero-content > *:nth-child(1) { animation-delay: 0.05s; } .hero-content > *:nth-child(2) { animation-delay: 0.16s; }
.hero-content > *:nth-child(3) { animation-delay: 0.27s; } .hero-content > *:nth-child(4) { animation-delay: 0.38s; } .hero-content > *:nth-child(5) { animation-delay: 0.47s; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-group .feature, .reveal-group .chain-step { opacity: 0; transform: translateY(18px); transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1), transform 0.5s cubic-bezier(0.16,1,0.3,1), border-color 0.2s ease, box-shadow 0.2s ease; }
.reveal-group.is-visible .feature, .reveal-group.is-visible .chain-step { opacity: 1; transform: translateY(0); }
.reveal-group.is-visible .feature:nth-child(1) { transition-delay: 0.05s; } .reveal-group.is-visible .feature:nth-child(2) { transition-delay: 0.13s; }
.reveal-group.is-visible .feature:nth-child(3) { transition-delay: 0.21s; } .reveal-group.is-visible .feature:nth-child(4) { transition-delay: 0.29s; }
.reveal-group.is-visible .feature:nth-child(5) { transition-delay: 0.05s; } .reveal-group.is-visible .feature:nth-child(6) { transition-delay: 0.13s; }
.reveal-group.is-visible .feature:nth-child(7) { transition-delay: 0.21s; } .reveal-group.is-visible .feature:nth-child(8) { transition-delay: 0.29s; }
.reveal-group.is-visible .chain-step:nth-child(1) { transition-delay: 0.05s; } .reveal-group.is-visible .chain-step:nth-child(2) { transition-delay: 0.16s; } .reveal-group.is-visible .chain-step:nth-child(3) { transition-delay: 0.27s; }

/* --- Panel de demo (home) --- */
.demo { padding: 1rem 0 5.5rem; }
.demo-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; align-items: stretch; }
.panel { background: var(--paper-100); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 48px -34px rgba(15,18,34,0.22); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule); }
.panel-title { font-weight: 700; font-size: 0.95rem; color: var(--ink-900); }
.panel-live { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 700; color: var(--success-500); text-transform: uppercase; letter-spacing: 0.04em; }
.panel-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success-500); animation: pulse-dot 2s ease-in-out infinite; }

.activity-body { padding: 0.5rem 0.5rem 0.75rem; min-height: 320px; }
.activity-row { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.7rem 0.75rem; border-radius: 10px; animation: row-in 0.35s ease-out; }
.activity-row + .activity-row { margin-top: 2px; }
@keyframes row-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.activity-icon { width: 2rem; height: 2rem; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; }
.activity-icon.alta { background: var(--success-100); }
.activity-icon.verify { background: var(--brand-100); }
.activity-icon.anula { background: #fff3d6; }
.activity-icon svg { width: 16px; height: 16px; }
.activity-main { flex: 1; min-width: 0; }
.activity-title { font-size: 0.9rem; font-weight: 600; color: var(--ink-900); }
.activity-sub { font-size: 0.78rem; color: var(--ink-500); font-family: var(--font-mono); margin-top: 0.1rem; }
.activity-time { font-size: 0.76rem; color: var(--ink-500); flex: none; padding-top: 0.15rem; }

.dash-body { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.9rem; }
.dash-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.stat-tile { background: var(--paper-200); border: 1px solid var(--rule); border-radius: 12px; padding: 0.9rem 1rem; }
.stat-tile .stat-label { font-size: 0.72rem; color: var(--ink-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.35rem; }
.stat-tile .stat-value { font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink-900); }
.stat-tile.good .stat-value { color: var(--success-500); }

.spark-card { background: var(--paper-200); border: 1px solid var(--rule); border-radius: 12px; padding: 0.9rem 1rem 0.7rem; }
.spark-card .stat-label { font-size: 0.72rem; color: var(--ink-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.spark-card svg { display: block; width: 100%; height: 56px; }
.spark-line { fill: none; stroke: var(--brand-500); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw-line 1.4s cubic-bezier(0.16,1,0.3,1) 0.3s forwards; }
.spark-fill { opacity: 0; animation: fade-in 1s ease 1.1s forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

.compliance-row { display: flex; align-items: center; justify-content: space-between; background: var(--success-100); border: 1px solid #cdeedd; border-radius: 12px; padding: 0.8rem 1rem; }
.compliance-row .label { font-size: 0.85rem; color: #0d6b45; font-weight: 600; }
.compliance-pill { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 700; color: var(--success-500); }
.compliance-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success-500); animation: pulse-dot 2s ease-in-out infinite; }
.verify-note { font-size: 0.76rem; color: var(--ink-500); text-align: right; }

.trust { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 1.1rem 0; display: flex; align-items: center; justify-content: center; gap: 0.6rem; text-align: center; font-size: 0.92rem; color: var(--ink-700); }
.trust strong { color: var(--ink-900); }

/* --- Secciones genéricas --- */
section { padding: 5rem 0; }
.section-head { max-width: 40rem; margin: 0 0 3rem; }
.section-eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 0.75rem; display: block; }
h2 { font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.05rem); margin: 0 0 0.75rem; letter-spacing: -0.015em; color: var(--ink-900); }
.section-head p { color: var(--ink-700); font-size: 1.05rem; margin: 0; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.feature { background: var(--paper-100); border: 1px solid var(--rule); border-radius: 16px; padding: 1.6rem; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; box-shadow: 0 16px 32px -28px rgba(15,18,34,0.18); }
.feature:hover { transform: translateY(-4px); border-color: #cfe3fc; box-shadow: 0 20px 36px -22px rgba(10,100,236,0.35); }
.feature-icon { width: 2.4rem; height: 2.4rem; border-radius: 10px; background: var(--brand-100); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.feature-icon svg { width: 20px; height: 20px; color: var(--brand-600); }
.feature h3 { font-size: 1.02rem; font-weight: 700; margin: 0 0 0.5rem; color: var(--ink-900); }
.feature h3 a { color: inherit; }
.feature h3 a:hover { color: var(--brand-600); }
.feature p { color: var(--ink-700); font-size: 0.92rem; margin: 0; }
.feature .post-date { display: block; margin-top: 0.6rem; font-size: 0.78rem; color: var(--ink-500); }

.chain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.chain::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand-500) 0%, var(--brand-500) 8%, transparent 8%, transparent 100%); background-size: 300% 100%; animation: chain-flow 4.5s ease-in-out infinite; }
@keyframes chain-flow { 0% { background-position: 100% 0; } 45%, 55% { background-position: 0 0; } 100% { background-position: -100% 0; } }
.chain-step { background: var(--paper-100); border: 1px solid var(--rule); padding: 1.75rem; position: relative; transition: background 0.2s ease; }
.chain-step:hover { background: var(--paper-200); }
.chain-step:first-child { border-radius: 16px 0 0 16px; } .chain-step:last-child { border-radius: 0 16px 16px 0; border-left: none; } .chain-step:nth-child(2) { border-left: none; border-right: none; }
.chain-step .tag { font-size: 0.72rem; font-weight: 700; color: var(--brand-600); text-transform: uppercase; letter-spacing: 0.04em; }
.chain-step h3 { font-size: 1.05rem; font-weight: 700; margin: 0.6rem 0 0.5rem; color: var(--ink-900); }
.chain-step p { color: var(--ink-700); font-size: 0.88rem; margin: 0; }

.pricing-card { background: linear-gradient(135deg, var(--brand-500), #0749ac 60%, #02c9a0); color: #fff; border-radius: 20px; padding: 2.5rem; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; box-shadow: 0 32px 56px -30px rgba(98,112,217,0.55); }
.pricing-card .plan-name { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.8); }
.pricing-card h2 { color: #fff; margin-top: 0.5rem; }
.pricing-card ul { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.pricing-card li { padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.22); font-size: 0.94rem; display: flex; gap: 0.6rem; color: rgba(255,255,255,0.92); }
.pricing-card li:last-child { border-bottom: none; }
.pricing-card li::before { content: "✓"; color: #fff; font-weight: 700; flex: none; }
.price-box { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28); border-radius: 14px; padding: 1.75rem; text-align: center; backdrop-filter: blur(6px); }
.price-box .offer-badge { display: inline-block; background: #fff; color: var(--brand-600); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 0.85rem; }
.price-box .amount-row { display: flex; align-items: baseline; justify-content: center; gap: 0.6rem; }
.price-box .amount-old { font-size: 1.3rem; font-weight: 600; text-decoration: line-through; opacity: 0.65; }
.price-box .amount { font-size: 2.75rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.price-box .amount sup { font-size: 1.1rem; font-weight: 600; }
.price-box .period { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.price-box .offer-note { color: rgba(255,255,255,0.75); font-size: 0.78rem; margin: 0.35rem 0 1.5rem; }
.price-box .btn-onbrand { width: 100%; background: #fff; color: var(--brand-600); }
.price-box .btn-onbrand:hover { background: #f5f5fb; }

.cta-band { text-align: center; padding: 4.5rem 0; }
.cta-band h2 { max-width: 30rem; margin-left: auto; margin-right: auto; }

/* --- Páginas de contenido (contacto / sobre-nosotros) --- */
main.content { max-width: 42rem; margin: 0 auto; padding: 4.5rem 1.75rem 5rem; }
main.content h1 { font-weight: 800; font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin: 0 0 1.25rem; }
main.content .lede { font-size: 1.1rem; color: var(--ink-700); margin: 0 0 2.5rem; max-width: none; }
main.content h2 { font-weight: 700; font-size: 1.3rem; margin: 2.25rem 0 0.75rem; }
main.content p { color: var(--ink-700); font-size: 1rem; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1rem; }
.contact-card { background: var(--paper-100); border: 1px solid var(--rule); border-radius: 16px; padding: 1.6rem; box-shadow: 0 16px 32px -28px rgba(15,18,34,0.18); }
.contact-icon { width: 2.4rem; height: 2.4rem; border-radius: 10px; background: var(--brand-100); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.contact-icon svg { width: 20px; height: 20px; color: var(--brand-600); }
.contact-card h2 { font-size: 1rem; font-weight: 700; margin: 0 0 0.35rem; }
.contact-card a, .contact-card p { color: var(--ink-700); font-size: 0.96rem; margin: 0; }
.contact-card a:hover { color: var(--brand-600); }
.contact-card.full { grid-column: 1 / -1; }

.entry-content { color: var(--ink-700); font-size: 1rem; }
.entry-content h2 { font-weight: 700; font-size: 1.3rem; margin: 2.25rem 0 0.75rem; color: var(--ink-900); }
.entry-content h3 { font-weight: 700; font-size: 1.1rem; margin: 1.75rem 0 0.6rem; color: var(--ink-900); }
.entry-content p { margin: 0 0 1.1rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content a { color: var(--brand-600); text-decoration: underline; }
.entry-content img { max-width: 100%; height: auto; border-radius: 12px; }
.entry-content blockquote { margin: 1.5rem 0; padding: 0.5rem 0 0.5rem 1.25rem; border-left: 3px solid var(--brand-500); color: var(--ink-700); font-style: italic; }
.entry-content code { background: var(--brand-100); color: var(--brand-600); padding: 0.12rem 0.4rem; border-radius: 5px; font-size: 0.86em; }

.fact-card { background: var(--paper-100); border: 1px solid var(--rule); border-radius: 16px; padding: 1.5rem 1.75rem; margin-top: 2.5rem; box-shadow: 0 16px 32px -28px rgba(15,18,34,0.18); }
.fact-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); font-size: 0.94rem; }
.fact-row:last-child { border-bottom: none; }
.fact-row dt { color: var(--ink-500); font-weight: 600; }
.fact-row dd { margin: 0; color: var(--ink-900); text-align: right; }
dl.fact-card { margin: 2.5rem 0 0; }

/* --- Página de desarrolladores --- */
.quickstart { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 2.5rem; }
.code-card { background: var(--code-bg); border-radius: 16px; overflow: hidden; box-shadow: 0 28px 52px -30px rgba(15,18,34,0.55); }
.code-card-head { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.code-card-head span { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.code-card pre { margin: 0; padding: 1.25rem; overflow-x: auto; font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.65; color: var(--code-ink); }
.code-card .c-key { color: var(--code-key); }
.code-card .c-str { color: var(--code-string); }
.code-card .c-com { color: rgba(223,226,255,0.42); }
.code-card .c-ok { color: var(--code-accent); }

.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 3rem; align-items: start; padding: 3.5rem 0 5.5rem; }
.side-nav { position: sticky; top: 5.5rem; display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.88rem; }
.side-nav a { color: var(--ink-700); padding: 0.45rem 0.6rem; border-radius: 8px; font-weight: 600; }
.side-nav a:hover { color: var(--ink-900); background: var(--paper-100); }
.side-nav .side-nav-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-500); margin: 1.1rem 0.6rem 0.35rem; }
.side-nav .side-nav-label:first-child { margin-top: 0; }

main.docs { min-width: 0; }
.doc-section { padding-top: 1rem; margin-top: -1rem; }
.doc-section + .doc-section { margin-top: 3.25rem; padding-top: 0; border-top: 1px solid var(--rule); padding-top: 3.25rem; }
.doc-section h2 { font-weight: 800; font-size: 1.4rem; letter-spacing: -0.01em; margin: 0 0 0.6rem; }
.doc-section .section-kicker { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brand-600); display: block; margin-bottom: 0.5rem; }
.doc-section > p { color: var(--ink-700); font-size: 0.98rem; margin: 0 0 1.1rem; max-width: 42rem; }
.doc-section p code, .doc-section li code, .doc-section td code { background: var(--brand-100); color: var(--brand-600); padding: 0.12rem 0.4rem; border-radius: 5px; font-size: 0.86em; }

.table-card { background: var(--paper-100); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; box-shadow: 0 16px 32px -28px rgba(15,18,34,0.16); margin: 1.25rem 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.87rem; min-width: 460px; }
th { text-align: left; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-500); padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--rule); white-space: nowrap; }
td { padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--rule); color: var(--ink-700); vertical-align: top; }
tr:last-child td { border-bottom: none; }
td:first-child, th:first-child { white-space: nowrap; }
.method { display: inline-block; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700; padding: 0.18rem 0.5rem; border-radius: 6px; }
.method-get { background: var(--brand-100); color: var(--brand-600); }
.method-post { background: var(--success-100); color: #0d6b45; }
.method-put { background: var(--warn-100); color: #7a5a06; }
.method-delete { background: #fde2e2; color: #a3262c; }
.path { font-family: var(--font-mono); font-size: 0.86rem; color: var(--ink-900); }
.scope-pill { display: inline-block; font-family: var(--font-mono); font-size: 0.74rem; background: var(--paper-200); border: 1px solid var(--rule); padding: 0.15rem 0.5rem; border-radius: 6px; color: var(--ink-700); white-space: nowrap; }

.callout { display: flex; gap: 0.9rem; background: var(--brand-100); border: 1px solid #d3e6fc; border-radius: 14px; padding: 1.1rem 1.25rem; margin: 1.25rem 0; }
.callout.callout-warn { background: var(--warn-100); border-color: #f1e0ab; }
.callout-icon { flex: none; width: 1.4rem; height: 1.4rem; margin-top: 0.1rem; }
.callout-icon svg { width: 100%; height: 100%; }
.callout p { margin: 0; font-size: 0.9rem; color: var(--ink-900); }
.callout strong { font-weight: 700; }

.flow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0; }
.flow-step { background: var(--paper-100); border: 1px solid var(--rule); border-radius: 14px; padding: 1.25rem 1.4rem; box-shadow: 0 16px 32px -28px rgba(15,18,34,0.16); }
.flow-step .flow-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--brand-600); }
.flow-step h3 { font-size: 0.98rem; font-weight: 700; margin: 0.5rem 0 0.4rem; }
.flow-step p { margin: 0; font-size: 0.86rem; color: var(--ink-700); }
.flow-step code { font-size: 0.8rem; }
.flow-arrow { display: none; }

.end-cta { text-align: center; padding: 4rem 0; border-top: 1px solid var(--rule); }
.end-cta h2 { font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 0.75rem; letter-spacing: -0.015em; }
.end-cta p { color: var(--ink-700); font-size: 1rem; margin: 0 0 1.75rem; }

/* --- Pie --- */
footer { border-top: 1px solid var(--rule); padding: 3rem 0 2.5rem; font-size: 0.85rem; color: var(--ink-500); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; }
.footer-links { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.footer-links a { color: var(--ink-500); }
.footer-links a:hover { color: var(--ink-900); }
.footer-bottom { border-top: 1px solid var(--rule); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 900px) {
  .demo-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .chain { grid-template-columns: 1fr; }
  .chain::before { display: none; }
  .chain-step { border-radius: 0 !important; border: 1px solid var(--rule) !important; border-bottom: none !important; }
  .chain-step:last-child { border-bottom: 1px solid var(--rule) !important; }
  .pricing-card { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2rem; }
  .side-nav { position: static; flex-direction: row; overflow-x: auto; gap: 0.35rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--rule); }
  .side-nav .side-nav-label { display: none; }
  .side-nav a { white-space: nowrap; }
  .flow { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 1.25rem; padding-right: 1.25rem; }
  section, .demo { padding: 3.25rem 0; }
  .hero { padding: 2.5rem 0 2.5rem; }
  .nav-plain-links { display: none; }
  .nav-secondary-btn { display: none; }
  nav.links { gap: 0.6rem; }
  .btn { padding: 0.65rem 1.1rem; font-size: 0.86rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .features { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .pricing-card { padding: 1.75rem 1.35rem; }
  .footer-top { flex-direction: column; gap: 1.25rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  main.content { padding: 3rem 1.25rem 3.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .brand { font-size: 1.05rem; }
  h1 { font-size: 1.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content > *, .reveal, .reveal-group .feature, .reveal-group .chain-step, .activity-row, .spark-line, .spark-fill {
    opacity: 1 !important; transform: none !important; animation: none !important; stroke-dashoffset: 0 !important;
  }
  .hero-glow .blob, .eyebrow .dot, .panel-live .dot, .compliance-pill .dot, .chain::before { animation: none !important; }
  .cookie-banner { transition: none !important; }
}

.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 50;
  max-width: 680px; margin: 0 auto;
  background: var(--paper-100); border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: 0 24px 48px -24px rgba(15,18,34,0.35);
  padding: 1.1rem 1.25rem; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  transform: translateY(140%); opacity: 0; transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.35s ease;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner-text { flex: 1 1 280px; }
.cookie-banner-text p { margin: 0 0 0.3rem; font-size: 0.86rem; color: var(--ink-700); }
.cookie-banner-text a { color: var(--brand-600); font-weight: 600; font-size: 0.82rem; }
.cookie-banner-actions { display: flex; gap: 0.6rem; flex: none; }
.cookie-banner-actions .btn { padding: 0.6rem 1.1rem; font-size: 0.86rem; }
@media (max-width: 520px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-banner-text { flex: none; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; }
}
