/**
 * captixa.css — the shared site layer loaded by views/layouts/main.php
 * Captixa - Website
 *
 * What is left of the five stylesheets the site used to load on every page
 * (landing.css, pages.css, vo.css, landing-pages.css, responsive.css), pruned
 * in Phase 11 to the rules a live page still uses and renamed vo-/vh- → cx-.
 * Most of it is the guest checkout and order-complete pages (cx-checkout-*,
 * cx-success-*). Page designs live in their own files: captixa-site.css
 * (cxs-), captixa-home.css (cxh-), captixa-offer.css (cxo-) and
 * captixa-captions.css (cxc-).
 */

/* ===== from landing.css ===== */

/* ============================================================================
   ANIMATIONS
   ============================================================================ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================================================
   FAQ SECTION
   ============================================================================ */

.faq-item {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: var(--surface-hover);
}

.faq-question h4 {
    font-size: var(--text-base);
    font-weight: 600;
    margin: 0;
}

.faq-question i {
    color: var(--text-muted);
    font-size: var(--text-sm);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* ===== from vo.css ===== */
/* A faint grid that fades out from the top centre, plus the green glow behind
   the headline and the app window. Purely decorative. */
.cx-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(640px 320px at 50% 0%, rgba(22, 196, 127, .10), transparent 70%),
        radial-gradient(900px 420px at 50% 72%, rgba(22, 196, 127, .07), transparent 70%),
        linear-gradient(180deg, transparent 0%, var(--surface-1) 100%);
}
.cx-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(15, 15, 15, .055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 15, 15, .055) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
}

/* ===========================================================================
   Small shared pieces used by the checkout and order-complete pages: the
   mint icon tile, the arrow link and the numbered step badge.
   =========================================================================== */

.cx-ico {
    display: grid; place-items: center; flex-shrink: 0;
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--primary-surface); color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(22, 196, 127, .14);
    font-size: 17px;
}
.cx-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--accent); font-size: 14.5px; font-weight: 600;
}
.cx-link i { font-size: 11px; transition: transform .2s ease; }
.cx-link:hover { color: var(--accent); }
.cx-link:hover i, a:hover > .cx-link i { transform: translateX(3px); }

/* --- how it works ---------------------------------------------------------- */
.cx-step-n {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
    background: var(--primary-gradient); color: var(--primary-ink);
    font-family: var(--font-display); font-size: 17px; font-weight: 700;
    box-shadow: 0 8px 18px -8px rgba(22, 196, 127, .6);
}

/* ===========================================================================
   Guest checkout and order-complete pages. The page head reuses the
   grid-and-glow background (.cx-hero-bg).
   =========================================================================== */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Reading layout */

@media (max-width: 1100px) {
}

/* ===========================================================================
   Guest checkout (views/guest/checkout.php). The summary, payment methods and
   their script are shared partials styled in views/partials/checkout-styles.php;
   this is only the page around them.
   =========================================================================== */
.cx-checkout { position: relative; isolation: isolate; overflow: hidden; padding: 56px 0 96px; background: #fff; }
.cx-checkout .cx-hero-bg { background: radial-gradient(640px 320px at 50% 0%, rgba(22, 196, 127, .10), transparent 70%); }
.cx-checkout-head { max-width: 44rem; margin: 0 auto 40px; text-align: center; }
.cx-checkout-back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 14px; font-weight: 500; }
.cx-checkout-back:hover { color: var(--accent); }
.cx-checkout-head h1 {
    margin: 18px 0 0; font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3rem);
    line-height: 1.08; letter-spacing: -.04em; color: var(--text);
}
.cx-checkout-head > p { margin: 12px 0 0; color: var(--text-secondary); font-size: 1.05rem; }
.cx-checkout-steps { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.cx-checkout-steps li {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
    background: #fff; border: 1px solid var(--border); color: var(--text-muted); font-size: 13.5px; font-weight: 500;
}
.cx-checkout-steps li span {
    display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
    background: var(--surface-3); color: var(--text-muted); font-size: 11.5px; font-weight: 700;
}
.cx-checkout-steps li.is-on { color: var(--text); }
.cx-checkout-steps li.is-on span { background: var(--primary); color: var(--primary-ink); }

.cx-checkout-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; max-width: 1080px; margin: 0 auto; align-items: start; }
.cx-checkout-grid > * { min-width: 0; }
.cx-checkout-card {
    padding: 28px; border-radius: 22px; background: #fff; border: 1px solid var(--border);
    box-shadow: 0 30px 60px -44px rgba(15, 15, 15, .35);
}
.cx-checkout-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--border-light); }
.cx-checkout-card-head h2 { margin: 0; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -.02em; color: var(--text); }
.cx-checkout-card-head p { margin: 2px 0 0; color: var(--text-muted); font-size: 14px; }

.cx-checkout .email-section { margin: 4px 0 18px; }
.cx-checkout .email-section label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.cx-checkout .email-section label i { color: var(--accent); }
.cx-checkout .email-section input {
    width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--border);
    background: var(--surface-1); color: var(--text); font-family: inherit; font-size: 15.5px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.cx-checkout .email-section input:focus { outline: none; background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(22, 196, 127, .12); }
.cx-checkout .email-section small { display: block; margin-top: 6px; color: var(--text-muted); font-size: 13px; }
.cx-checkout .currency-note { margin: 8px 0 18px; }
.cx-checkout .method-panel .btn { border-radius: 12px; }
.cx-checkout-login { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--border-light); text-align: center; color: var(--text-muted); font-size: 14px; }
.cx-checkout-login a { color: var(--accent); font-weight: 600; }

.cx-checkout-side { display: grid; gap: 16px; position: sticky; top: 96px; }
.cx-checkout-trust { padding: 22px; border-radius: 20px; background: var(--surface-1); border: 1px solid var(--border); }
.cx-checkout-trust > b { display: block; margin-bottom: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.cx-checkout-trust ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cx-checkout-trust li { display: flex; gap: 12px; color: var(--text-secondary); font-size: 14.5px; line-height: 1.45; }
.cx-checkout-trust li i { width: 18px; margin-top: 2px; text-align: center; color: var(--accent); }
.cx-checkout-secure {
    display: flex; gap: 10px; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: 12px;
    background: #fff; border: 1px solid var(--border); color: var(--text-secondary); font-size: 13.5px;
}
.cx-checkout-secure i { color: var(--success); }
.cx-checkout-help { margin: 14px 0 0; color: var(--text-muted); font-size: 13.5px; }
.cx-checkout-help a { color: var(--accent); font-weight: 600; }

@media (max-width: 900px) {
    .cx-checkout-grid { grid-template-columns: minmax(0, 1fr); }
    .cx-checkout-side { position: static; order: -1; }
    .cx-checkout-trust { display: none; }
}
@media (max-width: 640px) {
    .cx-checkout { padding: 36px 0 64px; }
    .cx-checkout-card { padding: 20px; border-radius: 18px; }
}

/* --- checkout success (views/guest/success.php) ------------------------------ */
.cx-success { --state: #0F7B31; --state-bg: rgba(15, 123, 49, .1); }
.cx-success.is-pending { --state: #96600A; --state-bg: rgba(150, 96, 10, .12); }
.cx-success.is-processing { --state: #1D4ED8; --state-bg: rgba(37, 99, 235, .1); }
.cx-success-head { max-width: 42rem; margin: 0 auto 40px; text-align: center; }
.cx-success-icon {
    display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto; border-radius: 50%;
    background: var(--state); color: #fff; font-size: 34px;
    box-shadow: 0 0 0 10px var(--state-bg), 0 18px 40px -12px var(--state);
    animation: cx-pop .5s cubic-bezier(.2, .9, .3, 1.3) both;
}
@keyframes cx-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.cx-success-head h1 {
    margin: 28px 0 0; font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3rem);
    line-height: 1.08; letter-spacing: -.04em; color: var(--text);
}
.cx-success-head > p { margin: 12px auto 0; max-width: 36rem; color: var(--text-secondary); font-size: 1.05rem; line-height: 1.6; }
.cx-success .cx-checkout-steps li.is-on span { background: var(--success); }
.cx-success .cx-checkout-steps li span i { font-size: 10px; }

.cx-success-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px; max-width: 1080px; margin: 0 auto; align-items: start; }
.cx-success-grid > * { min-width: 0; }
.cx-success-h2 { margin: 28px 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }

.cx-key { padding: 22px; border-radius: 18px; background: rgba(15, 123, 49, .06); border: 1px solid rgba(15, 123, 49, .25); }
.cx-key-label { display: flex; align-items: center; gap: 8px; color: var(--success); font-size: 13.5px; font-weight: 700; }
.cx-key-row { display: flex; gap: 10px; margin-top: 12px; }
.cx-key-row code {
    flex: 1; min-width: 0; display: flex; align-items: center; padding: 12px 16px; border-radius: 12px;
    background: #fff; border: 1px solid rgba(15, 123, 49, .25); color: var(--text);
    font-family: 'JetBrains Mono', monospace; font-size: 17px; font-weight: 600; letter-spacing: .04em; overflow-wrap: anywhere;
}
.cx-key-row .btn { border-radius: 12px; white-space: nowrap; }
.cx-key > p { margin: 10px 0 0; color: var(--text-secondary); font-size: 13.5px; }
.cx-copy.is-copied { background: var(--success) !important; border-color: var(--success) !important; color: #fff !important; }

.cx-status-note { display: flex; gap: 14px; padding: 20px; border-radius: 18px; background: var(--state-bg); border: 1px solid var(--state-bg); }
.cx-status-note .cx-ico { background: #fff; color: var(--state); box-shadow: none; }
.cx-status-note b { display: block; color: var(--text); font-size: 15.5px; }
.cx-status-note span { display: block; margin-top: 4px; color: var(--text-secondary); font-size: 14.5px; line-height: 1.55; }

.cx-order { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.cx-order > div { padding: 14px 16px; border-radius: 14px; background: var(--surface-1); border: 1px solid var(--border); min-width: 0; }
.cx-order dt { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.cx-order dd { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.cx-status-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--state-bg); color: var(--state); font-size: 13px; font-weight: 700; }

.cx-account { padding: 6px 18px; border-radius: 14px; background: var(--surface-1); border: 1px solid var(--border); }
.cx-account-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.cx-account-row + .cx-account-row { border-top: 1px solid var(--border); }
.cx-account-row > span { width: 80px; flex-shrink: 0; color: var(--text-muted); font-size: 13.5px; font-weight: 600; }
.cx-account-row code { flex: 1; min-width: 0; font-family: 'JetBrains Mono', monospace; font-size: 14.5px; color: var(--text); overflow-wrap: anywhere; }
.cx-account .copy-btn {
    flex: none; padding: 5px 12px; border-radius: 8px; border: 1px solid var(--border); background: #fff;
    color: var(--text); font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}
.cx-account .copy-btn:hover { border-color: rgba(22, 196, 127, .35); color: var(--accent); }
.cx-status-note .cx-ico { width: 44px; height: 44px; font-size: 18px; }
.cx-account-row em { font-style: normal; color: var(--text-secondary); font-size: 14px; }
.cx-account-note { display: flex; gap: 8px; margin: 0; padding: 12px 0; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 13px; }
.cx-account-note i { margin-top: 3px; color: var(--warning); }

.cx-spam { display: flex; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(150, 96, 10, .08); border: 1px solid rgba(150, 96, 10, .22); color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.cx-spam i { margin-top: 3px; color: var(--warning); }
.cx-spam strong { color: var(--text); }

.cx-success-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.cx-success-actions .btn { border-radius: 12px; }
.cx-success-actions .btn-outline { background: #fff; color: var(--text); }

.cx-success-next { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 14px; }
.cx-success-next li { display: flex; gap: 12px; }
.cx-success-next .cx-step-n { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; flex-shrink: 0; }
.cx-success-next strong { display: block; color: var(--text); font-size: 14.5px; }
.cx-success-next div span { display: block; margin-top: 2px; color: var(--text-secondary); font-size: 13.5px; line-height: 1.5; }
.cx-success .cx-checkout-side .cx-checkout-trust { display: block; }

@media (max-width: 900px) {
    .cx-success-grid { grid-template-columns: minmax(0, 1fr); }
    .cx-success .cx-checkout-side { order: 0; position: static; }
}
@media (max-width: 640px) {
    .cx-order, .cx-success-actions { grid-template-columns: minmax(0, 1fr); }
    .cx-key-row { flex-direction: column; }
    .cx-account-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .cx-success-icon { animation: none; } }

/* ===== from landing-pages.css ===== */

/* ===== from responsive.css ===== */

/* ============================================================================
   TABLET (max-width: 1024px)
   ============================================================================ */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 0px;
    }

    .container {
        padding: 0 var(--space-md);
    }

    /* Sidebar */
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: var(--z-modal);
        width: 280px !important;
        height: 100vh;
        top: 0;
        left: 0;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: calc(var(--z-modal) - 1);
    }

    .sidebar-overlay.active {
        display: block;
    }
}

/* ============================================================================
   MOBILE (max-width: 768px)
   ============================================================================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* FAQ */
    .faq-question h4 {
        font-size: var(--text-sm);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================================
   SMALL MOBILE (max-width: 480px)
   ============================================================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
}
