/* ===========================================================================
   Captixa — /offer long-form sales page (views/site/sales.php).
   Page-only cxo- classes. Tokens from main.css :root; the phone and caption
   demos come from captixa-captions.css (cxc- classes).
   =========================================================================== */

.cxo { background: var(--bg-body); }
.cxo section[id] { scroll-margin-top: 80px; }
.cxo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- shared ---------- */
.cxo-sec { padding: 96px 0; }
.cxo-sec--tint { background: var(--surface-1); border-block: 1px solid var(--border-light); }
.cxo-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.cxo-head--left { text-align: left; margin: 0; }
.cxo-head h2 { font-size: clamp(1.85rem, 3.5vw, 2.6rem); line-height: 1.12; margin-bottom: 14px; }
.cxo-head p { margin: 0; font-size: 1.1rem; color: var(--text-secondary); }
.cxo-kicker { display: inline-block; margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.cxo-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cxo-btn-light { background: var(--surface-2); color: var(--text); border: 1.5px solid var(--border-strong); }
.cxo-btn-light:hover { background: var(--surface-hover); color: var(--text); }
.cxo-btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.cxo-btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- referral + top bar ---------- */
.cxo-ref { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px; background: var(--surface-dark); color: var(--text-on-dark); font-size: 14px; text-align: center; }
.cxo-ref i { color: var(--primary-light); }
.cxo-ref strong { color: #fff; }
.cxo-bar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-light); }
.cxo-bar-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.cxo-logo img { display: block; height: 28px; width: auto; }
.cxo-bar-text { flex: 1; text-align: right; font-size: 14px; color: var(--text-secondary); }
.cxo-bar-text i { color: var(--accent); margin-right: 4px; }

/* ---------- hero ---------- */
.cxo-hero { position: relative; overflow: hidden; padding: 72px 0 88px; background: var(--bg-gradient); }
.cxo-hero-glow { position: absolute; right: -10%; top: -20%; width: 65%; height: 130%; background: radial-gradient(closest-side, rgba(22,196,127,.16), transparent 70%); pointer-events: none; }
.cxo-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.cxo-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 6px 14px; border-radius: 999px; background: var(--primary-glow); color: var(--accent); font-size: 14px; font-weight: 600; }
.cxo-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.02; letter-spacing: -0.04em; margin-bottom: 22px; }
.cxo-strike { position: relative; white-space: nowrap; color: var(--text-muted); }
.cxo-strike::after { content: ''; position: absolute; left: -2%; right: -2%; top: 55%; height: .12em; border-radius: 99px; background: var(--primary); transform: rotate(-3deg); }
.cxo-lead { font-size: 1.2rem; line-height: 1.6; color: var(--text-secondary); max-width: 560px; margin-bottom: 30px; }
.cxo-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 24px 0 0; padding: 0; }
.cxo-trust li { font-size: 14.5px; font-weight: 600; color: var(--text); }
.cxo-trust i { color: var(--accent); margin-right: 6px; }

.cxo-ba { display: flex; align-items: center; justify-content: center; gap: 14px; }
.cxo-ba-item { margin: 0; text-align: center; }
.cxo-ba-item figcaption { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.cxo-phone-sm { width: min(230px, 38vw); padding: 8px; border-radius: 34px; box-shadow: 0 30px 60px -20px rgba(16,18,27,.4); }
.cxo-phone-sm .cxc-screen { border-radius: 27px; }
.cxo-ba-item:first-child .cxc-scene { filter: saturate(.6) brightness(.8); }
.cxo-ba-item--after .cxc-phone { transform: scale(1.06); }
.cxo-ba-arrow { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--primary); color: var(--primary-ink); box-shadow: var(--shadow-md); }
.cxo-muted { position: absolute; left: 8%; right: 24%; bottom: 30%; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.45); color: rgba(255,255,255,.8); font-size: 12.5px; font-weight: 600; text-align: center; }
.cxo-tag { display: inline-block; margin-right: 6px; padding: 3px 9px; border-radius: 999px; background: var(--surface-3); color: var(--text-secondary); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.cxo-tag--mint { background: var(--primary); color: var(--primary-ink); }
.cxo-cap-sm { font-size: clamp(17px, 1.7vw, 21px); bottom: 26%; left: 6%; right: 14%; }

/* ---------- pains ---------- */
.cxo-pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cxo-pain { padding: 28px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.cxo-pain-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: var(--danger-bg); color: var(--danger); font-size: 18px; }
.cxo-pain--new .cxo-pain-ico { background: var(--primary-glow); color: var(--accent); }
.cxo-pain h3 { font-size: 1.15rem; margin-bottom: 8px; }
.cxo-pain p { margin: 0; font-size: 15.5px; color: var(--text-secondary); }

/* ---------- live demo ---------- */
.cxo-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cxo-split h2 { font-size: clamp(1.85rem, 3.5vw, 2.6rem); line-height: 1.12; margin-bottom: 14px; }
.cxo-split-copy > p { font-size: 1.1rem; color: var(--text-secondary); }
.cxo-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.cxo-steps li { display: flex; gap: 14px; align-items: center; font-size: 15.5px; color: var(--text-secondary); }
.cxo-steps b { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-glow); color: var(--accent); font-size: 14px; }
.cxo-steps strong { color: var(--text); }
.cxo-demo { display: flex; flex-direction: column; align-items: center; }
.cxo-demo .cxc-phone { width: min(300px, 76vw); }

/* ---------- benefits ---------- */
.cxo-benefits { display: grid; gap: 28px; }
.cxo-benefit { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px; border-radius: 24px; background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.cxo-benefit--flip .cxo-benefit-visual { order: 2; }
.cxo-benefit h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.2; margin-bottom: 16px; }
.cxo-benefit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cxo-benefit li { position: relative; padding-left: 28px; font-size: 15.5px; color: var(--text-secondary); }
.cxo-benefit li::before { content: '\f00c'; font: 900 13px 'Font Awesome 6 Free'; position: absolute; left: 0; top: 3px; color: var(--accent); }
.cxo-benefit-visual { border-radius: 18px; padding: 24px; min-height: 240px; min-width: 0; }
.cxo-benefit > * { min-width: 0; }

.cxo-words { background: var(--surface-1); border: 1px solid var(--border-light); display: flex; flex-wrap: wrap; align-content: center; gap: 10px; }
.cxo-words span { display: inline-flex; flex-direction: column; gap: 2px; padding: 9px 13px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.cxo-words b { font-size: 16px; }
.cxo-words small { font: 500 11px var(--font-mono); color: var(--text-muted); }
.cxo-words .is-past { border-color: var(--primary-light); background: var(--primary-surface); }
.cxo-words .is-on { background: var(--primary); border-color: var(--primary); }
.cxo-words .is-on b, .cxo-words .is-on small { color: var(--primary-ink); }
.cxo-fix { flex-basis: 100%; margin: 8px 0 0; font-size: 14px; color: var(--text-secondary); }
.cxo-fix i { color: var(--accent); margin-right: 6px; }

.cxo-stylegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0; }
/* ---- "Meet Captixa": dark coverflow of real exports ---- */
.cxo-showcase { position: relative; background: var(--surface-dark); color: var(--text-on-dark); overflow: hidden; }
.cxo-showcase::before { content: ''; position: absolute; left: 50%; top: 45%; width: 900px; height: 620px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(22,196,127,.18), transparent); pointer-events: none; }
.cxo-showcase > .container { position: relative; }
.cxo-showcase .cxo-head h2 { color: var(--text-on-dark); }
.cxo-showcase .cxo-head p { color: var(--text-on-dark-secondary); }
.cxo-kicker--dark { color: var(--primary-light); }
.cxo-steps--row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1000px; margin: 44px auto 0; }
.cxo-showcase .cxo-steps li { color: var(--text-on-dark-secondary); }
.cxo-showcase .cxo-steps strong { color: var(--text-on-dark); }
.cxo-showcase .cxo-demo-more a { color: var(--primary-light); }
.cxo-hero > .container { position: relative; }
.cxo-demo-more { margin: 14px 0 0; text-align: center; font-size: 14.5px; font-weight: 600; }
.cxo-demo-more a { color: var(--accent); }
.cxo-mini { position: relative; aspect-ratio: 16 / 11; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #3A4658, #151A23); }
.cxo-mini:nth-child(2) { background: linear-gradient(160deg, #46304A, #17111A); }
.cxo-mini:nth-child(3) { background: linear-gradient(160deg, #22403A, #0F1715); }
.cxo-mini:nth-child(4) { background: linear-gradient(160deg, #2E3550, #12141F); }
.cxo-cap-mini { left: 6%; right: 6%; bottom: auto; top: 50%; transform: translateY(-50%); font-size: clamp(16px, 1.6vw, 20px); }

.cxo-flow { background: var(--surface-dark); display: grid; align-content: center; gap: 10px; }
.cxo-flow p { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--surface-dark-2); border: 1px solid #2C2C36; color: var(--text-on-dark); font-weight: 600; font-size: 15px; }
.cxo-flow i { width: 20px; text-align: center; color: var(--primary-light); }
.cxo-flow b { margin-left: auto; padding: 4px 10px; border-radius: 999px; font-size: 12px; background: rgba(255,200,61,.12); color: #FFD27A; white-space: nowrap; }
.cxo-flow b.cxo-ok { background: rgba(22,196,127,.14); color: var(--primary-light); }

/* ---------- comparison ---------- */
.cxo-table-wrap { max-width: 900px; margin: 0 auto; overflow-x: auto; border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); background: var(--surface-2); }
.cxo-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cxo-table th, .cxo-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.cxo-table thead th { font-size: 14px; color: var(--text-secondary); background: var(--surface-1); }
.cxo-table thead th.cxo-col-us { color: var(--text); font-size: 16px; }
.cxo-table thead img { vertical-align: -5px; margin-right: 6px; border-radius: 5px; }
.cxo-table tbody th { font-weight: 600; color: var(--text); width: 30%; }
.cxo-table td { color: var(--text-secondary); }
.cxo-table td.cxo-col-us { color: var(--text); font-weight: 600; background: var(--primary-surface); }
.cxo-table td.cxo-col-us i { color: var(--accent); margin-right: 6px; }
.cxo-table tbody tr:last-child > * { border-bottom: 0; }
.cxo-footnote { max-width: 900px; margin: 14px auto 0; font-size: 13px; color: var(--text-muted); text-align: center; }

/* ---------- offer ---------- */
.cxo-currency { display: flex; justify-content: center; gap: 6px; margin: -24px 0 32px; }
.cxo-currency a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-secondary); font-size: 13px; font-weight: 700; }
.cxo-currency a.is-on { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.cxo-plans { display: grid; gap: 20px; justify-content: center; grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); }
.cxo-plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.cxo-plan h3 { font-size: 1.3rem; margin-bottom: 2px; }
.cxo-plan-billing { margin: 0 0 18px; font-size: 14px; color: var(--text-muted); }
.cxo-plan-price { margin: 0 0 6px; }
.cxo-plan-price b { font-size: 2.6rem; font-weight: 900; letter-spacing: -.03em; color: var(--text); }
.cxo-plan-price span { color: var(--text-muted); font-size: 15px; }
.cxo-plan-save { margin: 0 0 8px; font-size: 13.5px; color: var(--accent); font-weight: 600; }
.cxo-plan-save s { color: var(--text-muted); font-weight: 500; }
.cxo-plan-desc { flex: 1; margin: 6px 0 22px; font-size: 15px; color: var(--text-secondary); }
.cxo-plan-btn { width: 100%; }
.cxo-plan--featured { border: 2px solid var(--primary); box-shadow: 0 24px 56px -24px rgba(22,196,127,.5); }
.cxo-plan-badge { position: absolute; top: -13px; left: 28px; padding: 5px 12px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); font-size: 12px; font-weight: 800; }
.cxo-plans-empty { text-align: center; color: var(--text-secondary); }

.cxo-offer-foot { display: grid; grid-template-columns: 1.3fr .9fr; gap: 28px; margin-top: 44px; }
.cxo-included { padding: 32px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--border); }
.cxo-included h3 { font-size: 1.15rem; margin-bottom: 18px; }
.cxo-included ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.cxo-included li { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; color: var(--text); }
.cxo-included li i { color: var(--accent); flex: none; }
.cxo-assure { display: grid; gap: 14px; align-content: start; }
.cxo-assure-item { display: flex; gap: 14px; padding: 20px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.cxo-assure-item > span { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--primary-glow); color: var(--accent); }
.cxo-assure-item b { display: block; margin-bottom: 4px; }
.cxo-assure-item p { margin: 0 0 6px; font-size: 14px; color: var(--text-secondary); }
.cxo-assure-item a { font-size: 14px; font-weight: 700; }
.cxo-secure { margin: 4px 0 0; text-align: center; font-size: 13.5px; color: var(--text-muted); }

/* ---------- free fallback ---------- */
.cxo-free { padding: 56px 0; }
.cxo-free-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 32px 40px; border-radius: 22px; border: 1.5px dashed var(--border-strong); }
.cxo-free h2 { font-size: 1.5rem; margin-bottom: 6px; }
.cxo-free p { margin: 0; color: var(--text-secondary); max-width: 640px; }

/* ---------- FAQ ---------- */
.cxo-faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 56px; align-items: start; }
.cxo-faq details { border-bottom: 1px solid var(--border); }
.cxo-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.cxo-faq summary::-webkit-details-marker { display: none; }
.cxo-faq summary i { flex: none; margin-top: 4px; font-size: 13px; color: var(--text-muted); transition: transform var(--transition-base); }
.cxo-faq details[open] summary i { transform: rotate(45deg); color: var(--accent); }
.cxo-faq details p { margin: 0 0 20px; color: var(--text-secondary); font-size: 15.5px; }

/* ---------- final + footer ---------- */
.cxo-final { padding: 8px 0 96px; }
.cxo-final-card { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; padding: 56px; border-radius: 28px; background: var(--surface-dark); background-image: radial-gradient(50% 80% at 90% 50%, rgba(22,196,127,.25), transparent 70%); }
.cxo-final-card h2 { color: var(--text-on-dark); font-size: clamp(1.85rem, 3.4vw, 2.6rem); line-height: 1.12; margin-bottom: 12px; }
.cxo-final-card p { color: var(--text-on-dark-secondary); font-size: 1.1rem; margin-bottom: 26px; }
.cxo-final-demo { position: relative; height: 170px; }
.cxo-cap-final { left: 0; right: 0; bottom: auto; top: 50%; transform: translateY(-50%); font-size: clamp(24px, 2.4vw, 32px); }
.cxo-footer { padding: 28px 0 40px; border-top: 1px solid var(--border-light); font-size: 14px; color: var(--text-muted); }
.cxo-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.cxo-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.cxo-footer a { color: var(--text-secondary); }

/* ---------- sticky mobile bar ---------- */
.cxo-sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 18px; border-radius: 16px; background: var(--surface-dark); color: var(--text-on-dark); box-shadow: 0 16px 40px rgba(0,0,0,.35);
    transform: translateY(140%); transition: transform .3s ease; }
.cxo-sticky b { display: block; font-size: 14px; }
.cxo-sticky span { font-size: 13px; color: var(--text-on-dark-secondary); }
.cxo-sticky.is-on { transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
    .cxo-hero-grid, .cxo-split, .cxo-benefit, .cxo-offer-foot, .cxo-faq-grid, .cxo-final-card { grid-template-columns: minmax(0, 1fr); }
    .cxo-hero-copy { text-align: center; }
    .cxo-lead { margin-inline: auto; }
    .cxo-cta-row, .cxo-trust { justify-content: center; }
    .cxo-benefit--flip .cxo-benefit-visual { order: 0; }
    .cxo-pains { grid-template-columns: 1fr; }
    .cxo-final-card { text-align: center; padding: 40px 28px; }
    .cxo-final-card .cxo-cta-row { justify-content: center; }
    .cxo-final-demo { height: 110px; }
    .cxo-sticky { display: flex; }
    .cxo-footer { padding-bottom: 96px; }
}
@media (max-width: 640px) {
    .cxo-sec { padding: 64px 0; }
    .cxo-bar-text { display: none; }
    .cxo-bar-inner { justify-content: space-between; }
    .cxo-hero { padding: 44px 0 64px; }
    .cxo-hero h1 { font-size: 2.3rem; }
    .cxo-cta-row .btn { width: 100%; }
    .cxo-ba { gap: 8px; }
    .cxo-ba-arrow { width: 30px; height: 30px; font-size: 12px; }
    .cxo-phone-sm { width: 40vw; border-radius: 24px; padding: 5px; }
    .cxo-phone-sm .cxc-screen { border-radius: 20px; }
    .cxo-cap-sm { font-size: 13px; }
    .cxo-muted { font-size: 10.5px; }
    .cxo-benefit { padding: 24px; gap: 28px; }
    .cxo-included ul { grid-template-columns: 1fr; }
    .cxo-free-inner { flex-direction: column; align-items: stretch; padding: 24px; text-align: center; }
    .cxo-table th, .cxo-table td { padding: 12px 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .cxo-sticky { transition: none; }
}

@media (max-width: 900px) { .cxo-steps--row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cxo-steps--row { grid-template-columns: 1fr; } }

/* "New in 1.1" cards link to their /features page. */
.cxo-pain p a { color: var(--accent); font-weight: 600; white-space: nowrap; }
