/* Funil Pronto — landing page (HTML/CSS puro, tema claro) */

:root {
  color-scheme: light;
  --bg: #f6f6fa;
  --paper: #ffffff;
  --ink: #0f1222;
  --ink-2: #4a5068;
  --ink-3: #868ca3;
  --line: #e3e4ee;
  --line-2: #d3d5e3;
  --blue: #2f5bff;
  --violet: #7b4dff;
  --grad: linear-gradient(110deg, #2f5bff 0%, #7b4dff 100%);
  --canvas: #12141c;
  --canvas-2: #1a1d28;
  --canvas-line: rgb(255 255 255 / 0.09);
  --wa: #10b981;
  --mail: #ef4444;
  --sms: #3b82f6;
  --radius: 16px;
  --display: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ol, ul { list-style: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
i { font-style: normal; }
svg { flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); }

.wrap { width: 100%; max-width: 74rem; margin: 0 auto; padding: 0 1rem; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--mono); font-size: 0.8125rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; height: 2.5rem; padding: 0 1.125rem; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; transition: transform 150ms, filter 150ms, background-color 150ms, border-color 150ms; }
.btn:active { transform: translateY(1px); }
.btn-lg { height: 3.25rem; padding: 0 1.5rem; font-size: 1rem; border-radius: 0.875rem; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { filter: brightness(1.35); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 12px 28px -12px rgb(47 91 255 / 0.65); }
.btn-grad:hover { filter: brightness(1.08); }
.btn-line { border-color: var(--line-2); background: var(--paper); }
.btn-line:hover { border-color: var(--ink-3); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { filter: brightness(0.95); }
.btn-white-line { border-color: rgb(255 255 255 / 0.5); color: #fff; }
.btn-white-line:hover { background: rgb(255 255 255 / 0.12); }
.link-quiet { font-size: 0.875rem; font-weight: 500; color: var(--ink-2); }
.link-quiet:hover { color: var(--ink); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(246 246 250 / 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; }
.brand img { height: 2.25rem; width: auto; }
.nav, .header-actions { display: none; }
.nav { gap: 1.75rem; }
.nav a { font-size: 0.875rem; font-weight: 500; color: var(--ink-2); transition: color 150ms; }
.nav a:hover { color: var(--ink); }
.header-actions { align-items: center; gap: 1.25rem; }
.menu-toggle { display: inline-flex; padding: 0.5rem; margin-right: -0.5rem; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu.open { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.25rem; padding-top: 0.75rem; padding-bottom: 1.25rem; }
.mobile-menu nav > a:not(.btn) { padding: 0.625rem 0; font-size: 1rem; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 0.75rem; height: 3rem; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 3.5rem 0 4rem; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -12rem 0 auto; height: 34rem; background: radial-gradient(40rem 20rem at 20% 30%, rgb(47 91 255 / 0.13), transparent 70%), radial-gradient(36rem 20rem at 85% 10%, rgb(123 77 255 / 0.14), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero-copy { max-width: 52rem; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 0.375rem; height: 2rem; padding: 0 0.875rem 0 0.625rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); box-shadow: 0 2px 8px -4px rgb(15 18 34 / 0.12); }
.ch-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; }
.ch-dot.ch-wa { background: var(--wa); }
.ch-dot.ch-mail { background: var(--mail); margin-left: -0.125rem; }
.ch-dot.ch-sms { background: var(--sms); margin-left: -0.125rem; margin-right: 0.25rem; }
.hero h1 { margin-top: 1.5rem; font-size: clamp(2.375rem, 7.5vw, 4.5rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.lead { margin-top: 1.5rem; max-width: 38rem; font-size: 1.125rem; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.hero-cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- canvas (flow builder) ---------- */
.canvas { margin-top: 3.5rem; border-radius: 1.5rem; background: var(--canvas); color: #eef0f7; box-shadow: 0 40px 80px -40px rgb(15 18 34 / 0.55), 0 0 0 1px rgb(15 18 34 / 0.08); overflow: hidden; }
.canvas-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--canvas-line); background: var(--canvas-2); }
.canvas-tabs { display: flex; gap: 1rem; font-size: 0.8125rem; color: #8b90a7; white-space: nowrap; overflow: hidden; }
.canvas-tabs .is-on { color: #fff; font-weight: 600; }
.canvas-actions { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; white-space: nowrap; }
.valid { color: var(--wa); font-weight: 600; }
.ghost-btn, .pub-btn { display: none; padding: 0.375rem 0.75rem; border-radius: 0.5rem; font-weight: 600; }
.ghost-btn { border: 1px solid var(--canvas-line); color: #c5c9da; }
.pub-btn { background: var(--grad); color: #fff; }
.canvas-body { display: grid; min-height: 22rem; background-color: var(--canvas); background-image: radial-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1px); background-size: 18px 18px; }
.palette { display: none; flex-direction: column; gap: 0.375rem; padding: 1.25rem; border-right: 1px solid var(--canvas-line); background: rgb(26 29 40 / 0.85); }
.palette strong { font-size: 0.875rem; }
.palette small { font-size: 0.75rem; color: #8b90a7; line-height: 1.4; }
.pal-item { margin-top: 0.75rem; display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 0.75rem; border-radius: 0.625rem; border: 1px dashed rgb(255 255 255 / 0.22); font-size: 0.8125rem; font-weight: 600; cursor: grab; }

.flow { display: flex; flex-direction: column; align-items: center; padding: 1.75rem 1rem; }
.node { width: 100%; max-width: 21rem; border-radius: 0.875rem; background: var(--canvas-2); border: 1px solid var(--canvas-line); padding: 0.875rem 1rem; box-shadow: 0 16px 30px -18px rgb(0 0 0 / 0.8); }
.node-kind { display: inline-block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8b90a7; }
.node strong { display: block; margin-top: 0.25rem; font-size: 0.9375rem; }
.node-start { border-color: rgb(47 91 255 / 0.55); }
.node-start .node-kind { color: #7f9bff; }
.node-end { max-width: 12rem; text-align: center; }
.node-tags { margin-top: 0.625rem; display: flex; flex-wrap: wrap; gap: 0.375rem; }
.tg { padding: 0.125rem 0.5rem; border-radius: 999px; background: rgb(47 91 255 / 0.18); color: #b9c8ff; font-size: 0.6875rem; font-weight: 600; }
.node-msg { border-color: rgb(123 77 255 / 0.55); max-width: 24rem; }
.node-msg .node-kind { color: #b49bff; }
.msgs { margin-top: 0.625rem; display: grid; gap: 0.5rem; }
.msgs li { display: grid; gap: 0.25rem; padding: 0.625rem 0.75rem; border-radius: 0.625rem; background: rgb(255 255 255 / 0.04); border: 1px solid var(--canvas-line); }
.msgs p { font-size: 0.8125rem; line-height: 1.45; color: #d5d8e6; }
.msgs i { font-family: var(--mono); font-size: 0.75rem; color: #b49bff; }
.msgs time { font-size: 0.6875rem; color: #8b90a7; }
.ch { justify-self: start; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.0625rem 0.5rem; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; }
.ch::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: currentColor; }
.ch-wa { color: var(--wa); background: rgb(16 185 129 / 0.14); }
.ch-mail { color: var(--mail); background: rgb(239 68 68 / 0.12); }
.ch-sms { color: var(--sms); background: rgb(59 130 246 / 0.14); }

.wire { position: relative; width: 2px; height: 2.75rem; background: repeating-linear-gradient(to bottom, rgb(255 255 255 / 0.35) 0 6px, transparent 6px 11px); }
.pulse { position: absolute; left: 50%; top: 0; width: 0.625rem; height: 0.625rem; margin-left: -0.3125rem; border-radius: 50%; background: #9b7bff; box-shadow: 0 0 0 4px rgb(123 77 255 / 0.25), 0 0 16px #7b4dff; animation: travel-y 2.4s ease-in-out infinite; }
.pulse.delay { animation-delay: 1.2s; }
@keyframes travel-y { 0% { top: -5%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 95%; opacity: 0; } }
@keyframes travel-x { 0% { left: -5%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 95%; opacity: 0; } }

/* ---------- facts ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.facts-inner { display: grid; grid-template-columns: repeat(2, 1fr); }
.facts-inner > div { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.5rem 0.75rem 1.5rem 0; }
.facts-inner > div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts-inner > div:nth-child(even) { padding-left: 1rem; }
.facts-inner > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.facts b { font-family: var(--display); font-size: 2.25rem; line-height: 1; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts span { font-size: 0.875rem; color: var(--ink-2); }

/* ---------- section heads ---------- */
.head-split { display: grid; gap: 1rem; }
.head-split h2 { font-size: clamp(1.875rem, 5vw, 3rem); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; }
.head-split p { max-width: 30rem; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.65; }
.head-split strong { color: var(--ink); font-weight: 600; }
.triggers, .channels, .track, .pricing, .faq { padding: 5rem 0; }

/* ---------- triggers matrix ---------- */
.matrix-wrap { margin-top: 2.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.5rem; }
.matrix { display: grid; grid-template-columns: 8.5rem repeat(4, minmax(8.5rem, 1fr)); gap: 0.5rem; min-width: 44rem; }
.mx-corner { display: flex; flex-direction: column; justify-content: flex-end; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.mx-corner span:last-child { text-align: right; }
.mx-col { display: flex; align-items: flex-end; padding: 0 0.25rem 0.375rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.mx-row { display: flex; align-items: center; font-family: var(--display); font-size: 0.9375rem; font-weight: 700; }
.mx-cell { min-height: 4.25rem; padding: 0.75rem; border-radius: 0.875rem; background: var(--paper); border: 1px solid var(--line); text-align: left; font-size: 0.875rem; font-weight: 600; transition: border-color 150ms, box-shadow 150ms, transform 150ms; }
button.mx-cell:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: 0 10px 20px -14px rgb(15 18 34 / 0.35); }
.mx-cell.is-on { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 14px 28px -14px rgb(47 91 255 / 0.7); }
.mx-cell.empty { background: transparent; border-style: dashed; }
.mx-wide { grid-column: span 4; }
.mx-cell small { display: block; margin-bottom: 0.25rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.mx-cell.is-on small { color: rgb(255 255 255 / 0.75); }

@media (max-width: 767.98px) {
  .matrix-wrap { overflow: visible; }
  .matrix { grid-template-columns: 1fr 1fr; min-width: 0; }
  .mx-corner, .mx-col, .mx-cell.empty { display: none; }
  .mx-row { grid-column: 1 / -1; margin-top: 0.75rem; }
  .mx-row:first-of-type { margin-top: 0; }
  .mx-wide { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  .mx-cell small { display: none; }
}

.recipe { margin-top: 1.5rem; display: grid; gap: 1.25rem; padding: 1.5rem; border-radius: 1.25rem; background: var(--paper); border: 1px solid var(--line); }
.recipe-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); }
.recipe-head h3 { margin-top: 0.375rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.recipe-head p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--ink-3); }
.recipe-steps { display: grid; gap: 0.75rem; counter-reset: rs; }
.recipe-steps li { position: relative; display: grid; gap: 0.375rem; padding: 0.875rem 1rem 0.875rem 2.75rem; border-radius: 0.875rem; background: var(--bg); border: 1px solid var(--line); animation: rise 300ms ease both; }
.recipe-steps li::before { counter-increment: rs; content: counter(rs); position: absolute; left: 0.875rem; top: 0.875rem; display: grid; place-items: center; width: 1.375rem; height: 1.375rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.6875rem; font-weight: 700; }
.recipe-steps .meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.recipe-steps time { font-size: 0.75rem; font-weight: 600; color: var(--ink-3); }
.recipe-steps p { font-size: 0.875rem; color: var(--ink-2); line-height: 1.5; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- channels ---------- */
.channels { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ch-grid { margin-top: 3rem; display: grid; gap: 1rem; }
.ch-card { position: relative; display: flex; flex-direction: column; padding: 1.75rem; border-radius: 1.25rem; border: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.ch-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.ch-card-wa { --c: var(--wa); }
.ch-card-mail { --c: var(--mail); }
.ch-card-sms { --c: var(--sms); }
.ch-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 0.875rem; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.ch-card h3 { margin-top: 1.25rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.ch-card > p { margin-top: 0.625rem; color: var(--ink-2); line-height: 1.6; }
.ch-card ul { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: 0.625rem; }
.ch-card li { position: relative; padding-left: 1.375rem; font-size: 0.875rem; color: var(--ink-2); line-height: 1.5; }
.ch-card li::before { content: ""; position: absolute; left: 0; top: 0.4rem; width: 0.625rem; height: 0.375rem; border-left: 2px solid var(--c); border-bottom: 2px solid var(--c); transform: rotate(-45deg); }

/* ---------- vars ---------- */
.vars { padding: 5rem 0; background: var(--ink); color: #fff; }
.vars-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #a9b2d6; }
.switch { display: inline-flex; align-items: center; gap: 0.75rem; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 3rem; height: 1.75rem; border-radius: 999px; background: rgb(255 255 255 / 0.18); transition: background 200ms; }
.switch-thumb { position: absolute; top: 0.1875rem; left: 0.1875rem; width: 1.375rem; height: 1.375rem; border-radius: 50%; background: #fff; transition: transform 200ms; }
.switch input:checked + .switch-track { background: var(--grad); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(1.25rem); }
.switch input:focus-visible + .switch-track { outline: 2px solid #9db0ff; outline-offset: 3px; }
.switch-text { font-size: 0.9375rem; font-weight: 600; }
.vars-sentence { margin-top: 2rem; font-family: var(--display); font-size: clamp(1.625rem, 4.6vw, 3.25rem); line-height: 1.3; font-weight: 700; letter-spacing: -0.025em; color: rgb(255 255 255 / 0.92); text-wrap: pretty; }
.v { display: inline-block; padding: 0 0.3em; border-radius: 0.3em; font-family: var(--mono); font-size: 0.72em; font-weight: 600; vertical-align: 0.08em; color: #c9b8ff; background: rgb(123 77 255 / 0.22); border: 1px solid rgb(123 77 255 / 0.45); transition: all 250ms; }
.vars-sentence.real .v { font-family: var(--display); font-size: 1em; font-weight: 800; vertical-align: baseline; padding: 0; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; border-color: transparent; }
.vars-list { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.vars-list code { font-family: var(--mono); font-size: 0.8125rem; padding: 0.375rem 0.625rem; border-radius: 0.5rem; background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.1); color: #c5cbe6; }

/* ---------- track ---------- */
.track-grid { margin-top: 3rem; display: grid; gap: 1rem; }
.panel { min-width: 0; padding: 1.25rem; border-radius: 1.25rem; background: var(--paper); border: 1px solid var(--line); }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.panel-head strong { font-family: var(--display); font-size: 1.0625rem; }
.search, .csv { font-size: 0.75rem; padding: 0.375rem 0.75rem; border-radius: 0.5rem; border: 1px solid var(--line); color: var(--ink-3); }
.csv { color: var(--ink); font-weight: 600; }
.table { overflow-x: auto; }
.tr { display: grid; grid-template-columns: 1.4fr 0.9fr 1fr 1.1fr 0.8fr; align-items: center; gap: 0.5rem; min-width: 32rem; padding: 0.75rem 0.25rem; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.tr:last-child { border-bottom: 0; }
.th { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding-top: 0; }
.st { display: inline-flex; padding: 0.125rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.st-ok { color: #047857; background: #d1fae5; }
.st-wait { color: #92400e; background: #fef3c7; }
.st-stop { color: #4b5563; background: #e5e7eb; }
.panel-note { margin-top: 0.75rem; font-size: 0.75rem; color: var(--ink-3); }
.bars { display: grid; gap: 1rem; }
.bar-row { display: grid; grid-template-columns: 5rem 1fr 2.75rem; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.bar-row b { text-align: right; font-family: var(--mono); font-size: 0.8125rem; }
.bar { height: 0.75rem; border-radius: 999px; background: var(--bg); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; }
.ch-wa-bg { background: var(--wa); }
.ch-mail-bg { background: var(--mail); }
.ch-sms-bg { background: var(--sms); }
.report-list { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: 0.5rem; }
.report-list li { font-size: 0.875rem; color: var(--ink-2); }
.report-list li::before { content: "↳ "; color: var(--violet); font-weight: 700; }

/* ---------- pricing ---------- */
.pricing { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tabs { margin-top: 2.5rem; display: inline-flex; gap: 0.25rem; padding: 0.25rem; border-radius: 0.875rem; background: var(--bg); border: 1px solid var(--line); }
.tab { height: 2.5rem; padding: 0 1rem; border-radius: 0.625rem; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); transition: all 150ms; }
.tab.is-on { background: var(--paper); color: var(--ink); box-shadow: 0 2px 8px -3px rgb(15 18 34 / 0.2); }
.plans { margin-top: 1.5rem; display: grid; gap: 1rem; }
.plan { position: relative; display: flex; flex-direction: column; padding: 1.75rem; border-radius: 1.25rem; border: 1px solid var(--line); background: var(--bg); animation: rise 300ms ease both; }
.plan.rec { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan-badge { position: absolute; top: 1.25rem; right: 1.25rem; padding: 0.25rem 0.625rem; border-radius: 999px; background: var(--grad); color: #fff; font-size: 0.6875rem; font-weight: 700; }
.plan h3 { font-size: 1rem; font-weight: 700; }
.plan-price { margin-top: 1rem; font-family: var(--display); font-size: 2.75rem; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.plan-price small { font-size: 1rem; font-weight: 700; letter-spacing: 0; margin-right: 0.125rem; }
.plan-credits { margin-top: 0.75rem; font-size: 1rem; font-weight: 600; }
.plan-unit { margin-top: 0.25rem; font-size: 0.875rem; color: var(--ink-3); }
.plan.rec .plan-unit { color: #a9b2d6; }
.plan .btn { margin-top: 1.75rem; width: 100%; }
.plan.rec .btn { background: #fff; color: var(--ink); }
.pay-note { margin-top: 1.25rem; font-size: 0.8125rem; color: var(--ink-3); }

/* ---------- faq ---------- */
.faq-inner { display: grid; gap: 2rem; }
.faq h2 { font-size: clamp(1.875rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.faq-list { display: grid; gap: 0.625rem; }
.faq details { border-radius: 1rem; background: var(--paper); border: 1px solid var(--line); transition: border-color 150ms; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.125rem 1.25rem; cursor: pointer; list-style: none; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; flex-shrink: 0; border-radius: 50%; background: var(--bg); font-size: 1.125rem; font-weight: 500; color: var(--ink-2); transition: transform 200ms; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.25rem 1.25rem; color: var(--ink-2); line-height: 1.65; }

/* ---------- cta ---------- */
.cta { padding: 1rem 0 5rem; }
.cta-card { position: relative; display: grid; gap: 2rem; padding: 2.5rem 1.5rem; border-radius: 1.75rem; background: var(--grad); color: #fff; overflow: hidden; }
.cta-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(30rem 18rem at 100% 0%, rgb(255 255 255 / 0.22), transparent 70%); pointer-events: none; }
.cta-funnel { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.cta-funnel i { display: block; height: 1.25rem; border-radius: 0.375rem; background: rgb(255 255 255 / 0.9); clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%); }
.cta-funnel i:nth-child(1) { width: 10rem; opacity: 1; }
.cta-funnel i:nth-child(2) { width: 8rem; opacity: 0.8; }
.cta-funnel i:nth-child(3) { width: 6rem; opacity: 0.6; }
.cta-funnel i:nth-child(4) { width: 2.5rem; opacity: 0.45; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.cta-copy { position: relative; z-index: 1; }
.cta-copy h2 { font-size: clamp(2rem, 5.5vw, 3.25rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.cta-copy p { margin-top: 1rem; max-width: 32rem; font-size: 1.0625rem; line-height: 1.6; color: rgb(255 255 255 / 0.86); }
.cta-actions { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { display: grid; gap: 1.5rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand img { height: 2.25rem; width: auto; }
.footer-brand p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--ink-3); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; font-size: 0.875rem; color: var(--ink-2); }
.footer-inner nav a:hover { color: var(--ink); }
.copy { font-size: 0.8125rem; color: var(--ink-3); }

/* ---------- responsive ---------- */
@media (min-width: 560px) {
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .ghost-btn, .pub-btn { display: inline-block; }
}

@media (min-width: 768px) {
  .wrap { padding: 0 1.5rem; }
  .hero { padding: 5rem 0 5.5rem; }
  .triggers, .channels, .track, .pricing, .faq, .vars { padding: 7rem 0; }
  .head-split { grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; }
  .head-split p { justify-self: end; }
  .facts-inner { grid-template-columns: repeat(4, 1fr); }
  .facts-inner > div { padding: 2rem 1.5rem; border-bottom: 0 !important; border-right: 1px solid var(--line); }
  .facts-inner > div:first-child { padding-left: 0; }
  .facts-inner > div:last-child { border-right: 0; }
  .recipe { grid-template-columns: 16rem 1fr; gap: 2rem; padding: 2rem; }
  .recipe-steps { align-content: start; }
  .track-grid { grid-template-columns: 1.4fr 1fr; }
  .panel { padding: 1.5rem; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .faq-inner { grid-template-columns: 0.7fr 1.3fr; gap: 4rem; }
  .cta-card { grid-template-columns: auto 1fr; align-items: center; gap: 3.5rem; padding: 4rem; }
  .cta-funnel i:nth-child(1) { width: 12rem; }
  .cta-funnel i:nth-child(2) { width: 9rem; }
  .cta-funnel i:nth-child(3) { width: 6rem; }
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
  .footer-inner nav { justify-content: center; }
}

@media (min-width: 960px) {
  .nav, .header-actions { display: flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
  .canvas-body { grid-template-columns: 13rem 1fr; }
  .palette { display: flex; }
  .flow { flex-direction: row; align-items: center; justify-content: center; padding: 3rem 1.5rem; }
  .node { width: auto; }
  .node-start { flex: 0 0 13.5rem; }
  .node-msg { flex: 0 1 22rem; }
  .node-end { flex: 0 0 9.5rem; }
  .wire { flex: 1 1 2rem; max-width: 5rem; min-width: 2rem; width: auto; height: 2px; background: repeating-linear-gradient(to right, rgb(255 255 255 / 0.35) 0 6px, transparent 6px 11px); }
  .pulse { top: 50%; left: 0; margin: -0.3125rem 0 0; animation-name: travel-x; }
  .ch-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { animation: none !important; transition: none !important; }
}
