/* ══════════════════════════════════════════════
   PV AI Chatbot — Theme CSS
   Shared: CSS variables, nav, footer, buttons,
   section helpers, landing-page sections.
   ══════════════════════════════════════════════ */

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

:root {
    --lp-primary:       #2d5a27;
    --lp-primary-dark:  #1e3d1a;
    --lp-primary-light: #f0f7ef;
    --lp-accent:        #86a361;
    --lp-bg:            #fafbf9;
    --lp-text:          #1a1c19;
    --lp-text-2:        #4a5d48;
    --lp-border:        #e2e8df;
    --lp-shadow:        0 4px 24px rgba(45,90,39,.08);
    --lp-radius:        12px;
}

.lp-body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background: var(--lp-bg);
    color: var(--lp-text);
    line-height: 1.6;
}

.lp-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── BUTTONS ──────────────────────────────────── */

.lp-btn-primary {
    background: var(--lp-primary);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .2s;
    display: inline-block;
}
.lp-btn-primary:hover { background: var(--lp-primary-dark); }

.btn-hero-primary {
    background: #fff;
    color: var(--lp-primary) !important;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-hero-primary:hover { background: var(--lp-primary-light); transform: translateY(-2px); }

.btn-hero-secondary {
    background: rgba(255,255,255,.12);
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    border: 1.5px solid rgba(255,255,255,.3);
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.22); }

/* ── NAV ──────────────────────────────────────── */

.lp-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250,251,249,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--lp-border);
}
.lp-nav .lp-inner {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    color: var(--lp-primary);
    text-decoration: none;
}
.lp-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--lp-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lp-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.lp-nav-links a {
    color: var(--lp-text-2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color .2s;
}
.lp-nav-links a:hover { color: var(--lp-primary); }

body.admin-bar .lp-nav { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .lp-nav { top: 46px; }
}

/* ── FOOTER ───────────────────────────────────── */

.lp-footer {
    background: var(--lp-primary-dark);
    color: rgba(255,255,255,.65);
    padding: 40px 24px;
}
.lp-footer .lp-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.lp-footer .lf-logo  { color: #fff; font-weight: 700; font-size: 16px; }
.lp-footer .lf-sub   { font-size: 12px; margin-top: 4px; }
.lp-footer .lf-links { display: flex; gap: 24px; }
.lp-footer .lf-links a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: 13px;
    transition: color .2s;
}
.lp-footer .lf-links a:hover { color: #fff; }
.lp-footer .lf-copy  { font-size: 13px; }

/* ── SHARED SECTION HELPERS ───────────────────── */

.lp-section { padding: 80px 24px; }

.section-tag {
    display: inline-block;
    background: var(--lp-primary-light);
    color: var(--lp-primary);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--lp-text);
    margin-bottom: 12px;
    letter-spacing: -.3px;
}
.section-desc {
    font-size: 16px;
    color: var(--lp-text-2);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 56px;
}
.section-center { text-align: center; }
.section-center .section-desc { margin-left: auto; margin-right: auto; }

/* ── LANDING PAGE — HERO ──────────────────────── */

.lp-hero {
    background: linear-gradient(135deg, var(--lp-primary-dark) 0%, var(--lp-primary) 60%, #3d7a35 100%);
    padding: 80px 24px;
    overflow: hidden;
}
.lp-hero .lp-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.9);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,.2);
}
.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: #7dff6b;
    border-radius: 50%;
    flex-shrink: 0;
}
.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -.5px;
}
.hero-title span { color: #a8e096; }
.hero-desc {
    font-size: 17px;
    color: rgba(255,255,255,.8);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 500px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── LANDING PAGE — CHAT DEMO ─────────────────── */

.chat-demo {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0,0,0,.3);
    overflow: hidden;
    max-width: 360px;
    margin: 0 auto;
}
.chat-demo-header {
    background: var(--lp-primary);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-demo-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.chat-demo-info .cdn { color: #fff; font-weight: 700; font-size: 15px; }
.chat-demo-info .cds {
    color: rgba(255,255,255,.75);
    font-size: 12px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.chat-demo-info .cds::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: #7dff6b;
    border-radius: 50%;
}
.chat-demo-body {
    padding: 20px;
    background: #f6f8f6;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 220px;
}
.chat-msg {
    max-width: 88%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.55;
}
.chat-msg.bot {
    background: #fff;
    color: var(--lp-text);
    border-radius: 4px 12px 12px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    align-self: flex-start;
}
.chat-msg.user {
    background: var(--lp-primary);
    color: #fff;
    border-radius: 12px 4px 12px 12px;
    align-self: flex-end;
}
.chat-demo-input {
    padding: 12px 16px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #eee;
}
.chat-demo-input input {
    flex: 1;
    border: 1px solid #e0e7dd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
    color: #aaa;
    font-family: inherit;
    pointer-events: none;
}
.chat-demo-send {
    background: var(--lp-primary);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── LANDING PAGE — STATS ─────────────────────── */

.lp-stats {
    background: var(--lp-primary-light);
    border-bottom: 1px solid #d4e8d0;
    padding: 32px 24px;
}
.lp-stats .lp-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.stat-item  { text-align: center; }
.stat-num   { font-size: 32px; font-weight: 800; color: var(--lp-primary); line-height: 1; }
.stat-label { font-size: 13px; color: var(--lp-text-2); margin-top: 6px; }

/* ── LANDING PAGE — PROVIDERS ─────────────────── */

.lp-providers {
    background: #fff;
    border-bottom: 1px solid var(--lp-border);
    padding: 24px;
}
.lp-providers .lp-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}
.provider-label { font-size: 13px; color: var(--lp-text-2); font-weight: 500; white-space: nowrap; }
.provider-logos { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; justify-content: center; }
.provider-item  { display: flex; align-items: center; gap: 8px; color: #444; font-size: 15px; font-weight: 700; opacity: .65; }
.provider-item svg { width: 20px; height: 20px; }

/* ── LANDING PAGE — FEATURES ──────────────────── */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    padding: 28px;
    transition: all .2s;
}
.feature-card:hover {
    box-shadow: var(--lp-shadow);
    border-color: var(--lp-accent);
    transform: translateY(-2px);
}
.feature-icon  { width: 48px; height: 48px; background: var(--lp-primary-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 22px; }
.feature-title { font-size: 17px; font-weight: 700; color: var(--lp-text); margin-bottom: 8px; }
.feature-desc  { font-size: 14px; color: var(--lp-text-2); line-height: 1.65; }

/* ── LANDING PAGE — HOW IT WORKS ──────────────── */

.lp-how { background: #fff; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}
.steps-grid::before {
    content: '';
    position: absolute;
    top: 27px;
    left: 18%;
    right: 18%;
    height: 2px;
    background: linear-gradient(90deg, var(--lp-primary-light), var(--lp-accent), var(--lp-primary-light));
}
.step-card  { text-align: center; position: relative; z-index: 1; }
.step-num   { width: 56px; height: 56px; background: var(--lp-primary); color: #fff; font-size: 22px; font-weight: 800; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 4px 16px rgba(45,90,39,.3); }
.step-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--lp-text); }
.step-desc  { font-size: 14px; color: var(--lp-text-2); line-height: 1.65; }
.step-code  { background: #f6f8f6; border: 1px solid var(--lp-border); border-radius: 8px; padding: 10px 14px; font-family: monospace; font-size: 12px; color: var(--lp-primary); margin-top: 14px; text-align: left; }

/* ── LANDING PAGE — ARCHITECTURE ─────────────── */

.lp-arch { background: linear-gradient(180deg, #f0f7ef 0%, var(--lp-bg) 100%); }

.arch-diagram    { background: #fff; border: 1px solid var(--lp-border); border-radius: 20px; padding: 40px; box-shadow: var(--lp-shadow); }
.arch-row-label  { font-size: 11px; color: var(--lp-text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.arch-providers  { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.arch-provider   { background: var(--lp-primary-light); border: 1px solid var(--lp-accent); border-radius: 10px; padding: 8px 18px; font-size: 13px; font-weight: 600; color: var(--lp-primary); }
.arch-arrow      { text-align: center; color: var(--lp-accent); font-size: 22px; margin: 16px 0; }
.arch-hub        { background: var(--lp-primary); color: #fff; border-radius: 16px; padding: 20px 32px; text-align: center; display: inline-block; }
.arch-hub .ah-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; opacity: .7; margin-bottom: 4px; }
.arch-hub .ah-name  { font-size: 20px; font-weight: 800; }
.arch-hub .ah-sub   { font-size: 12px; opacity: .8; margin-top: 4px; }
.arch-sites      { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.arch-site       { background: #f6f8f6; border: 1px solid var(--lp-border); border-radius: 12px; padding: 16px 20px; text-align: center; min-width: 110px; }
.arch-site .si   { font-size: 24px; margin-bottom: 6px; }
.arch-site .sn   { font-size: 12px; font-weight: 600; color: var(--lp-text-2); }
.arch-site.new   { border: 2px dashed var(--lp-accent); background: var(--lp-primary-light); }
.arch-site.new .sn { color: var(--lp-primary); }

/* ── LANDING PAGE — CTA ───────────────────────── */

.lp-cta { background: var(--lp-primary); padding: 80px 24px; text-align: center; }
.lp-cta h2 { font-size: 38px; font-weight: 800; color: #fff; margin-bottom: 16px; line-height: 1.2; }
.lp-cta p  { font-size: 17px; color: rgba(255,255,255,.8); margin-bottom: 36px; line-height: 1.7; }
.cta-btns  { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── RESPONSIVE ───────────────────────────────── */

@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .lp-hero .lp-inner   { grid-template-columns: 1fr; gap: 48px; }
    .hero-title          { font-size: 32px; }
    .features-grid       { grid-template-columns: 1fr; }
    .steps-grid          { grid-template-columns: 1fr; }
    .steps-grid::before  { display: none; }
    .lp-stats .lp-inner  { grid-template-columns: repeat(2, 1fr); }
    .section-title       { font-size: 28px; }
    .lp-nav-links        { display: none; }
    .lp-cta h2           { font-size: 28px; }
    .lp-footer .lp-inner { flex-direction: column; text-align: center; }
    .lp-footer .lf-links { justify-content: center; }
}
