/* ==========================================================================
   Pika Homepage – Scoped to .pika-home-modern
   ========================================================================== */

/* ── Section rhythm ────────────────────────────────────────────────────── */
.ph-section        { padding: 80px 0; }
.ph-section-sm     { padding: 48px 0; }
.ph-section-alt    { background: #f6f9f7; }
.ph-section-dark   { background: #0c3a30; color: #fff; }
.ph-section-dark .ph-muted { color: rgba(255,255,255,.7); }
.ph-muted          { color: var(--pika-muted); }

.ph-eyebrow {
    display: inline-block;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--pika-primary2);
    margin-bottom: 10px;
}
.ph-section-dark .ph-eyebrow { color: #9edd05; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.ph-hero { padding: 96px 0 56px; overflow: hidden; }

.ph-hero-title {
    font-size: clamp(2.1rem, 3.4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.025em;
    color: var(--pika-text);
    margin-bottom: 20px;
}
.ph-hero-desc {
    font-size: 1.08rem;
    line-height: 1.72;
    color: var(--pika-muted);
    max-width: 540px;
    margin-bottom: 28px;
}
.ph-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }

.ph-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px;
    border: 1px solid var(--pika-border); background: #fff;
    font-size: .8rem; color: #495057;
}
.ph-tag i { color: var(--pika-primary); font-size: .92rem; }

/* Hero mock dashboard */
.ph-mock {
    position: relative; background: #fff;
    border: 1px solid var(--pika-border);
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 28px 72px rgba(12,58,48,.11);
}
.ph-mock-header {
    display: flex; gap: 6px; padding: 11px 16px;
    background: #f3f5f4; border-bottom: 1px solid var(--pika-border);
}
.ph-mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #dee2e6; }
.ph-mock-dot:first-child  { background: #ff6b6b; }
.ph-mock-dot:nth-child(2) { background: #ffc107; }
.ph-mock-dot:nth-child(3) { background: #51cf66; }

.ph-mock-body { display: flex; min-height: 310px; }
.ph-mock-sidebar {
    background: #f6f9f7; border-right: 1px solid var(--pika-border);
    padding: 14px; width: 152px; flex-shrink: 0;
}
.ph-mock-nav-item {
    display: flex; align-items: center; gap: 7px;
    padding: 7px 9px; border-radius: 6px;
    font-size: .76rem; color: var(--pika-muted); margin-bottom: 3px;
}
.ph-mock-nav-item.active { background: #eaf4dd; color: var(--pika-text); font-weight: 600; }
.ph-mock-main { flex: 1; padding: 18px; }
.ph-mock-stat {
    background: #f8f9fa; border: 1px solid #e9ecef;
    border-radius: 8px; padding: 12px; text-align: center;
}
.ph-mock-stat-val { font-size: 1.25rem; font-weight: 800; color: var(--pika-text); }
.ph-mock-stat-lbl { font-size: .72rem; color: var(--pika-muted); }
.ph-mock-bar { height: 7px; border-radius: 4px; background: #e9ecef; margin-top: 5px; }
.ph-mock-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg,#84c225,#9edd05); }
.ph-mock-overlay {
    position: absolute; background: #fff;
    border: 1px solid var(--pika-border); border-radius: 10px;
    padding: 12px 16px; box-shadow: 0 14px 36px rgba(0,0,0,.11); z-index: 2;
}
.ph-mock-overlay-1 { right: -12px; top: 56px; }
.ph-mock-overlay-2 { left: -12px;  bottom: 36px; }

/* ── Trust cards ───────────────────────────────────────────────────────── */
.ph-trust-card {
    background: #fff; border: 1px solid var(--pika-border);
    border-radius: 10px; padding: 22px; height: 100%;
    transition: transform .2s;
}
.ph-trust-card:hover { transform: translateY(-2px); }
.ph-trust-icon {
    width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 10px; background: #eaf4dd; border: 1px solid #cfe5b4;
    color: var(--pika-primary2); font-size: 1.2rem; margin-bottom: 14px;
}

/* ── Problem / Solution cards ──────────────────────────────────────────── */
.ph-problem-card {
    background: #fff; border: 1px solid #f0d0d0;
    border-radius: 10px; padding: 22px; height: 100%;
}
.ph-problem-icon {
    width: 40px; height: 40px; display: grid; place-items: center;
    border-radius: 8px; background: #fef2f2; color: #ef4444;
    font-size: 1.1rem; margin-bottom: 12px;
}
.ph-solution-card {
    background: #fff; border: 1px solid #cfe5b4;
    border-radius: 10px; padding: 22px; height: 100%;
}
.ph-solution-icon {
    width: 40px; height: 40px; display: grid; place-items: center;
    border-radius: 8px; background: #eaf4dd; color: var(--pika-primary2);
    font-size: 1.1rem; margin-bottom: 12px;
}

/* ── Module cards (products) ───────────────────────────────────────────── */
.ph-module-card {
    background: #fff; border: 1px solid var(--pika-border);
    border-radius: 10px; padding: 24px; height: 100%;
    transition: transform .2s, border-color .2s;
}
.ph-module-card:hover { transform: translateY(-3px); border-color: var(--pika-primary); }
.ph-module-icon {
    width: 48px; height: 48px; display: grid; place-items: center;
    border-radius: 10px; background: #eaf4dd; border: 1px solid #cfe5b4;
    color: var(--pika-primary2); font-size: 1.3rem; margin-bottom: 16px;
}

/* ── Channel cards ─────────────────────────────────────────────────────── */
.ph-channel-card {
    background: #fff; border: 1px solid var(--pika-border);
    border-radius: 10px; padding: 24px; text-align: center;
    height: 100%; transition: transform .2s, box-shadow .2s;
}
.ph-channel-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.ph-channel-icon {
    width: 56px; height: 56px; display: grid; place-items: center;
    border-radius: 14px; font-size: 1.5rem; margin: 0 auto 16px;
}
.ph-channel-icon--wa    { background: #dcf8c6; color: #25d366; }
.ph-channel-icon--sms   { background: #e3f2fd; color: #1976d2; }
.ph-channel-icon--email { background: #fff3e0; color: #f57c00; }
.ph-channel-icon--push  { background: #fce4ec; color: #e91e63; }

/* ── Journey flow visual ───────────────────────────────────────────────── */
.ph-flow {
    display: flex; flex-direction: column;
    padding: 24px; background: #fff;
    border: 1px solid var(--pika-border); border-radius: 12px;
}
.ph-flow-node {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 16px; background: #f8f9fa; border: 1px solid #e9ecef;
    border-radius: 8px; font-size: .86rem; font-weight: 600; color: var(--pika-text);
}
.ph-flow-node i { font-size: 1rem; }
.ph-flow-node--trigger   { border-left: 3px solid #84c225; }
.ph-flow-node--condition { border-left: 3px solid #ffc107; }
.ph-flow-node--action    { border-left: 3px solid #1976d2; }
.ph-flow-node--end       { border-left: 3px solid #e91e63; }
.ph-flow-line { width: 2px; height: 18px; background: #dee2e6; margin-left: 26px; }

/* ── AI panel visual ───────────────────────────────────────────────────── */
.ph-ai-panel {
    background: #fff; border: 1px solid var(--pika-border);
    border-radius: 12px; overflow: hidden;
}
.ph-ai-panel-header {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 18px; background: #f8f9fa;
    border-bottom: 1px solid var(--pika-border);
    font-weight: 600; font-size: .88rem;
}
.ph-ai-panel-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.ph-ai-msg {
    max-width: 85%; padding: 11px 15px;
    border-radius: 12px; font-size: .86rem; line-height: 1.55;
}
.ph-ai-msg--user {
    align-self: flex-end; background: #0c3a30; color: #fff;
    border-bottom-right-radius: 4px;
}
.ph-ai-msg--bot {
    align-self: flex-start; background: #eaf4dd; color: var(--pika-text);
    border-bottom-left-radius: 4px;
}
.ph-ai-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 8px;
    border: 1px solid var(--pika-border); background: #f8f9fa;
    font-size: .82rem; color: var(--pika-muted);
}

/* ── Scenario cards ────────────────────────────────────────────────────── */
.ph-scenario-card {
    background: #fff; border: 1px solid var(--pika-border);
    border-radius: 10px; padding: 22px; height: 100%;
    transition: transform .2s;
}
.ph-scenario-card:hover { transform: translateY(-2px); }
.ph-scenario-icon {
    width: 42px; height: 42px; display: grid; place-items: center;
    border-radius: 10px; background: #eaf4dd; border: 1px solid #cfe5b4;
    color: var(--pika-primary2); font-size: 1.1rem; margin-bottom: 14px;
}

/* ── Compliance cards ──────────────────────────────────────────────────── */
.ph-compliance-card {
    display: flex; align-items: flex-start; gap: 14px;
    background: #fff; border: 1px solid var(--pika-border);
    border-radius: 10px; padding: 22px; height: 100%;
}
.ph-compliance-icon {
    width: 42px; height: 42px; display: grid; place-items: center;
    border-radius: 10px; background: #eaf4dd; border: 1px solid #cfe5b4;
    color: var(--pika-primary2); font-size: 1.1rem; flex-shrink: 0;
}

/* ── Optional module cards ─────────────────────────────────────────────── */
.ph-optional-card {
    background: #f8f9fa; border: 1px dashed #ced4da;
    border-radius: 10px; padding: 24px; height: 100%;
    transition: transform .2s, border-color .2s;
}
.ph-optional-card:hover { transform: translateY(-2px); border-color: var(--pika-primary); }
.ph-optional-badge {
    display: inline-block; font-size: .7rem; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 999px;
    background: #fff3e0; color: #e65100; margin-bottom: 14px;
}

/* ── CTA section ───────────────────────────────────────────────────────── */
.ph-cta-section {
    padding: 80px 0;
    background: linear-gradient(170deg,#0c3a30 0%,#0a2e26 100%);
    color: #fff;
}
.ph-cta-title {
    font-size: clamp(1.8rem,2.8vw,2.5rem);
    font-weight: 800; line-height: 1.15; margin-bottom: 18px;
}
.ph-cta-desc {
    color: rgba(255,255,255,.72); font-size: 1.06rem;
    line-height: 1.72; max-width: 600px; margin-bottom: 28px;
}

/* Shared buttons */
.ph-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 26px; border-radius: 8px;
    background: var(--pika-primary); color: #0c3a30;
    font-weight: 700; border: 1px solid var(--pika-primary);
    text-decoration: none; transition: all .2s;
}
.ph-btn-primary:hover { background: var(--pika-primary2); border-color: var(--pika-primary2); transform: translateY(-1px); color: #0c3a30; }

.ph-btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 26px; border-radius: 8px;
    background: transparent; color: var(--pika-text);
    font-weight: 600; border: 1px solid #bfd1c9;
    text-decoration: none; transition: all .2s;
}
.ph-btn-outline:hover { background: #ecf4ef; border-color: #9fb8ad; color: #0e2c24; }

.ph-btn-light {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 8px;
    background: #9edd05; color: #0c3a30;
    font-weight: 700; border: none; text-decoration: none;
    transition: all .2s;
}
.ph-btn-light:hover { background: #84c225; transform: translateY(-1px); color: #0c3a30; }

.ph-btn-outline-light {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 8px;
    background: transparent; color: #fff;
    font-weight: 600; border: 1px solid rgba(255,255,255,.3);
    text-decoration: none; transition: all .2s;
}
.ph-btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); color: #fff; }

/* ── Mega dropdown (nav) ───────────────────────────────────────────────── */
.pika-mega-dropdown {
    min-width: 480px; padding: 18px;
    border: 1px solid var(--pika-border); border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,.11); background: #fff;
}
.pika-mega-item {
    display: flex; gap: 12px; padding: 9px 11px;
    border-radius: 8px; text-decoration: none;
    color: var(--pika-text); transition: background .15s;
}
.pika-mega-item:hover { background: #f6f9f7; color: var(--pika-text); }
.pika-mega-icon {
    width: 34px; height: 34px; display: grid; place-items: center;
    border-radius: 8px; background: #eaf4dd; color: var(--pika-primary2);
    font-size: .95rem; flex-shrink: 0;
}
.pika-mega-title { font-weight: 600; font-size: .85rem; margin-bottom: 1px; }
.pika-mega-desc  { font-size: .76rem; color: var(--pika-muted); line-height: 1.4; }

/* Smaller mega for channels */
.pika-mega-dropdown--sm { min-width: 320px; }

/* ── Dashboard mockup (segmentation) ───────────────────────────────────── */
.ph-seg-visual {
    background: #fff; border: 1px solid var(--pika-border);
    border-radius: 12px; padding: 20px;
}
.ph-seg-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid #f0f0f0;
    font-size: .84rem; color: var(--pika-text);
}
.ph-seg-row:last-child { border-bottom: none; }
.ph-seg-badge {
    padding: 3px 10px; border-radius: 999px;
    font-size: .72rem; font-weight: 600;
}
.ph-seg-badge--green  { background: #eaf4dd; color: #4a7c10; }
.ph-seg-badge--blue   { background: #e3f2fd; color: #1565c0; }
.ph-seg-badge--orange { background: #fff3e0; color: #e65100; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width:991.98px) {
    .ph-hero { padding: 64px 0 40px; }
    .ph-section { padding: 52px 0; }
    .ph-mock-overlay { display: none; }
    .ph-mock-sidebar { display: none; }
    .pika-mega-dropdown,
    .pika-mega-dropdown--sm { min-width: 100%; }
}
@media (max-width:767.98px) {
    .ph-hero-title { font-size: 1.75rem; }
    .ph-cta-title  { font-size: 1.55rem; }
}
