/* URBot.net — Subdomain Product Page Styles */
/* Per-bot theming via CSS custom properties set by JS */

:root {
    --bot-accent: #00ff88;
    --bot-accent-dim: rgba(0, 255, 136, 0.15);
    --bot-accent-glow: rgba(0, 255, 136, 0.25);
    --dark-bg: #0a0e1a;
    --darker-bg: #050812;
    --card-bg: #151a2e;
    --card-bg-hover: #1a2038;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --text-muted: #6b6b8a;
    --error-color: #ff4444;
    --success-color: #00ff88;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--darker-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.page {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== HEADER ===== */
.header {
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.header-back {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: color 0.2s;
}
.header-back:hover {
    color: var(--bot-accent);
}

.header-bot {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--bot-accent);
    box-shadow: 0 0 16px var(--bot-accent-dim);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--card-bg);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bot-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.category-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bot-accent-dim);
    color: var(--bot-accent);
    border: 1px solid var(--bot-accent);
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 3.5rem 0 2.5rem;
}

.tagline {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--bot-accent), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: var(--bot-accent);
    color: var(--darker-bg);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--bot-accent-glow);
}

/* ===== SECTIONS ===== */
.section {
    padding: 3rem 0;
    border-top: 1px solid var(--border-subtle);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
}

/* ===== FEATURES ===== */
.feature-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    max-width: 640px;
    margin: 0 auto;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bot-accent);
    flex-shrink: 0;
    margin-top: 0.45rem;
}

/* ===== DISCLAIMER ===== */
.disclaimer-section {
    background: rgba(255, 68, 68, 0.08);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin: -1rem 0 0;
    font-size: 0.85rem;
    color: #ff8888;
    text-align: center;
    line-height: 1.5;
}

/* ===== TIER CARDS ===== */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.tier-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.tier-card:hover {
    border-color: var(--border-accent);
}

.tier-card.popular {
    border-color: var(--bot-accent);
    box-shadow: 0 0 20px var(--bot-accent-dim);
}

.popular-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bot-accent);
    color: var(--darker-bg);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.tier-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.tier-header h3 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.tier-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bot-accent);
    line-height: 1.1;
}

.tier-license {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.tier-includes {
    list-style: none;
    flex: 1;
    margin-bottom: 1.25rem;
}

.tier-includes li {
    padding: 0.35rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.tier-includes li:last-child {
    border-bottom: none;
}

.tier-includes li::before {
    content: '\2713';
    color: var(--bot-accent);
    font-weight: 700;
    flex-shrink: 0;
}

.tier-includes li.tier-separator {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.8rem;
    border-bottom: none;
    padding-bottom: 0;
}
.tier-includes li.tier-separator::before {
    content: '';
}

.tier-action {
    text-align: center;
}

.buy-btn {
    display: inline-block;
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--bot-accent);
    color: var(--darker-bg);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--bot-accent-glow);
}
.buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.buy-btn.processing {
    position: relative;
    color: transparent;
}
.buy-btn.processing::after {
    content: 'Processing...';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--darker-bg);
    font-weight: 700;
}

/* Checkout form (inline, replaces prompt()) */
.checkout-form {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.checkout-form input[type="email"] {
    padding: 0.6rem 0.75rem;
    border: 2px solid var(--border-accent);
    background: var(--darker-bg);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}
.checkout-form input[type="email"]:focus {
    outline: none;
    border-color: var(--bot-accent);
}
.checkout-submit {
    padding: 0.6rem;
    background: var(--bot-accent);
    color: var(--darker-bg);
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s;
}
.checkout-submit:hover { opacity: 0.9; }
.checkout-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.discount-badge {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--success-color);
    padding: 0.25rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 4px;
}

.checkout-error {
    text-align: center;
    font-size: 0.8rem;
    color: var(--error-color);
}

/* ===== STEPS ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step {
    text-align: center;
    padding: 1.5rem 1rem;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bot-accent);
    color: var(--darker-bg);
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== CHAT DEMO ===== */
.chat-demo {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-bubble {
    max-width: 85%;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-bubble.user {
    align-self: flex-end;
    background: var(--bot-accent);
    color: var(--darker-bg);
    border-bottom-right-radius: 4px;
}

.chat-bubble.bot {
    align-self: flex-start;
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-bottom-left-radius: 4px;
}

.chat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
    display: block;
}

.chat-bubble.user .chat-label {
    color: rgba(0, 0, 0, 0.5);
}

.chat-bubble.bot .chat-label {
    color: var(--bot-accent);
}

/* ===== PACKAGE CONTENTS ===== */
.package-contents {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.package-file {
    padding: 0.65rem 1rem;
    background: var(--card-bg);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.package-file .file-icon {
    margin-right: 0.25rem;
}

.package-file strong {
    color: var(--text-primary);
}

/* ===== TRUST GRID ===== */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.trust-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}

.trust-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.trust-item h3 {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.trust-item p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===== SIGNUP ===== */
.signup-section {
    text-align: center;
}

.signup-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.signup-form {
    display: flex;
    gap: 0.75rem;
    max-width: 420px;
    margin: 0 auto 0.75rem;
}

.signup-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-accent);
    background: var(--darker-bg);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}
.signup-form input:focus {
    outline: none;
    border-color: var(--bot-accent);
}

.signup-form button {
    padding: 0.75rem 1.5rem;
    background: var(--bot-accent);
    color: var(--darker-bg);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s;
    white-space: nowrap;
}
.signup-form button:hover {
    transform: translateY(-1px);
}

.privacy-note {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-subtle);
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--bot-accent);
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 0.8; }

.footer-principle {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ===== MESSAGES ===== */
.message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    transition: opacity 0.5s;
}

.message.success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.message.error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .page {
        padding: 0 1rem;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .hero {
        padding: 2.5rem 0 2rem;
    }

    .tagline {
        font-size: 1.35rem;
    }

    .description {
        font-size: 1rem;
    }

    .tier-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .tier-card.popular {
        order: -1;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .signup-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .tagline {
        font-size: 1.15rem;
    }

    .tier-price {
        font-size: 2rem;
    }

    .bot-name {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.25rem;
    }
}

/* ===== PARTICLES ===== */
.particle {
    position: fixed;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
    background: var(--bot-accent);
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(0) translateX(-10px); }
    75% { transform: translateY(20px) translateX(5px); }
}
