/* =====================================================================
   Feature & Industry Page Styles
   Used by: ki-*.html and fuer-*.html
   Imported AFTER css/style.css so it can rely on existing variables.
   ===================================================================== */

/* ---- Layout shell ---- */
.fp { padding: 0; min-height: 100vh; }
.fp-back-strip { padding: 110px 0 0; }
.fp-back {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.9rem; font-weight: 500;
    transition: color 0.2s, transform 0.2s;
}
.fp-back svg { transition: transform 0.2s; }
.fp-back:hover { color: var(--primary); }
.fp-back:hover svg { transform: translateX(-3px); }

/* ---- Hero ---- */
.fp-hero { padding: 56px 0 88px; position: relative; overflow: hidden; }
.fp-hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(60% 50% at 70% 0%, rgba(91,123,255,0.10), transparent 70%),
        radial-gradient(40% 40% at 0% 50%, rgba(16,185,129,0.07), transparent 70%);
    pointer-events: none; z-index: 0;
}
.fp-hero > .container { position: relative; z-index: 1; }
.fp-hero-grid {
    display: grid; gap: 56px;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
}
.fp-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
    font-weight: 700; line-height: 1.08;
    margin: 14px 0 20px; letter-spacing: -0.01em;
}
.fp-hero-sub {
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.15vw, 1.15rem);
    line-height: 1.65; max-width: 56ch; margin-bottom: 28px;
}
.fp-hero-actions {
    display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px;
}
.fp-hero-trust {
    display: flex; flex-wrap: wrap; gap: 18px;
    color: var(--text-secondary); font-size: 0.88rem;
}
.fp-hero-trust span {
    display: inline-flex; align-items: center; gap: 6px;
}
.fp-hero-trust svg { color: var(--accent-green, #10B981); flex-shrink: 0; }

/* ---- Hero visual / phone mock ---- */
.fp-hero-visual {
    position: relative;
    display: flex; justify-content: center; align-items: center;
}
.phone-mock {
    width: 100%; max-width: 360px;
    background: #fff;
    border: 1px solid var(--border-hover);
    border-radius: 28px; padding: 22px;
    box-shadow:
        0 24px 50px rgba(15,23,42,0.10),
        0 4px 12px rgba(15,23,42,0.04);
    position: relative;
}
.phone-mock::before {
    content: ""; position: absolute;
    top: 12px; left: 50%; transform: translateX(-50%);
    width: 84px; height: 6px; border-radius: 3px;
    background: rgba(15,23,42,0.08);
}
.phone-status {
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text-secondary); font-size: 0.78rem; margin: 14px 0 18px;
    font-variant-numeric: tabular-nums;
}
.phone-status .live-dot {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--accent-green, #10B981); font-weight: 600;
}
.phone-status .live-dot::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-green, #10B981);
    box-shadow: 0 0 0 0 rgba(16,185,129,0.6);
    animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.55); }
    70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.dialog { display: flex; flex-direction: column; gap: 10px; }
.dialog-bubble {
    max-width: 86%; padding: 11px 14px;
    border-radius: 14px; font-size: 0.92rem; line-height: 1.45;
    color: var(--text-primary);
}
.dialog-caller {
    align-self: flex-start;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}
.dialog-ai {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(91,123,255,0.10), rgba(91,123,255,0.04));
    border: 1px solid rgba(91,123,255,0.22);
    border-bottom-right-radius: 4px;
}
.dialog-meta {
    color: var(--text-secondary);
    font-size: 0.7rem; margin: -4px 0 6px;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.dialog-meta.caller { align-self: flex-start; }
.dialog-meta.ai { align-self: flex-end; }
.dialog-typing {
    align-self: flex-end;
    display: inline-flex; gap: 4px;
    padding: 12px 14px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(91,123,255,0.10), rgba(91,123,255,0.04));
    border: 1px solid rgba(91,123,255,0.22);
}
.dialog-typing span {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--primary);
    opacity: 0.6;
    animation: typingDot 1.2s ease-in-out infinite;
}
.dialog-typing span:nth-child(2) { animation-delay: 0.15s; }
.dialog-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-2px); }
}
.phone-result {
    margin-top: 16px; padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(16,185,129,0.10), rgba(16,185,129,0.03));
    border: 1px solid rgba(16,185,129,0.25);
    display: flex; align-items: center; gap: 10px;
    font-size: 0.85rem;
}
.phone-result svg { color: var(--accent-green, #10B981); flex-shrink: 0; }
.phone-result strong { color: var(--text-primary); display: block; margin-bottom: 2px; }
.phone-result span { color: var(--text-secondary); }

/* ---- Audio demo block (large variant) ---- */
.fp-audio {
    margin-top: 4px; padding: 18px 20px; border-radius: 16px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    display: flex; align-items: center; gap: 16px;
    max-width: 480px;
}
.fp-audio .audio-demo-btn {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    flex: 1;
}
.fp-audio-hint {
    margin: 8px 0 0 4px;
    color: var(--text-secondary); font-size: 0.82rem;
}

/* ---- Generic section spacing for FP ---- */
.fp-section { padding: 72px 0; }
.fp-section-head { max-width: 760px; margin-bottom: 40px; }
.fp-section-head h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    font-weight: 700; line-height: 1.15; margin: 12px 0 12px;
    letter-spacing: -0.01em;
}
.fp-section-head p {
    color: var(--text-secondary);
    font-size: 1.02rem; line-height: 1.65; max-width: 64ch;
}

/* ---- Steps strip ---- */
.fp-steps {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.fp-step {
    padding: 22px 22px 24px; border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.fp-step:hover {
    transform: translateY(-3px);
    border-color: rgba(91,123,255,0.30);
    box-shadow: var(--shadow-md);
}
.fp-step-num {
    font-family: var(--font-heading);
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
    color: var(--primary); margin-bottom: 14px;
}
.fp-step h3 {
    font-family: var(--font-heading);
    font-size: 1.08rem; font-weight: 600;
    color: var(--text-primary); margin-bottom: 8px;
}
.fp-step p {
    color: var(--text-secondary);
    font-size: 0.93rem; line-height: 1.55;
}

/* ---- Feature bullets (icons + label) ---- */
.fp-bullets {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    list-style: none; padding: 0;
}
.fp-bullets li {
    display: flex; gap: 14px;
    padding: 18px 20px; border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.fp-bullets-icon {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(91,123,255,0.12), rgba(91,123,255,0.04));
    border: 1px solid rgba(91,123,255,0.22);
    color: var(--primary);
}
.fp-bullets strong {
    display: block; color: var(--text-primary); font-weight: 600;
    margin-bottom: 4px; font-size: 0.98rem;
}
.fp-bullets li > div > p,
.fp-bullets li > div > span {
    color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5;
    margin: 0;
}

/* ---- Use-case grid (split detail card with audio) ---- */
.fp-cases {
    display: grid; gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.fp-case {
    padding: 26px; border-radius: 18px;
    background: linear-gradient(180deg, rgba(91,123,255,0.04), #fff 70%);
    border: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.fp-case:hover {
    transform: translateY(-3px);
    border-color: rgba(91,123,255,0.30);
    box-shadow: var(--shadow-md);
}
.fp-case-tag {
    align-self: flex-start;
    padding: 4px 10px; border-radius: 999px;
    background: rgba(91,123,255,0.12);
    color: var(--primary);
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
    text-transform: uppercase;
}
.fp-case h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem; font-weight: 600;
    color: var(--text-primary);
}
.fp-case p {
    color: var(--text-secondary);
    font-size: 0.95rem; line-height: 1.6;
}
.fp-case .audio-demo-btn { margin-top: auto; }

/* ---- Industry chips ---- */
.fp-industries {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.fp-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border-hover);
    color: var(--text-secondary);
    font-size: 0.92rem; font-weight: 500;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}
.fp-chip:hover {
    color: var(--primary);
    border-color: rgba(91,123,255,0.35);
    background: rgba(91,123,255,0.04);
}
.fp-chip-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--primary);
}

/* ---- Related features cards ---- */
.fp-related {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.fp-related-card {
    display: flex; flex-direction: column; gap: 8px;
    padding: 22px; border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.fp-related-card:hover {
    transform: translateY(-3px);
    border-color: rgba(91,123,255,0.30);
    box-shadow: var(--shadow-md);
}
.fp-related-card h4 {
    font-family: var(--font-heading);
    font-size: 1.02rem; font-weight: 600;
}
.fp-related-card p {
    color: var(--text-secondary);
    font-size: 0.9rem; line-height: 1.55; margin: 0;
}
.fp-related-card .fp-related-arrow {
    margin-top: 6px; display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.85rem; color: var(--primary); font-weight: 600;
}

/* ---- Pain-point list (industry pages) ---- */
.fp-pain-grid {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.fp-pain-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 18px; border-radius: 14px;
    background: rgba(239,68,68,0.04);
    border: 1px solid rgba(239,68,68,0.18);
}
.fp-pain-icon {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(239,68,68,0.10); color: #DC2626;
}
.fp-pain-item strong { display: block; color: var(--text-primary); margin-bottom: 4px; }
.fp-pain-item span { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }

/* ---- Outcome line ---- */
.fp-outcomes {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 24px;
}
.fp-outcome {
    padding: 18px; border-radius: 12px;
    background: rgba(16,185,129,0.06);
    border: 1px solid rgba(16,185,129,0.22);
}
.fp-outcome strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem; font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.fp-outcome span {
    color: var(--text-secondary); font-size: 0.88rem;
}

/* ---- FAQ (light variant for subpages) ---- */
.fp-faq {
    display: flex; flex-direction: column; gap: 10px;
    max-width: 800px;
}
.fp-faq-item {
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.fp-faq-q {
    width: 100%; text-align: left;
    background: none; border: none; cursor: pointer;
    padding: 18px 20px;
    color: var(--text-primary); font-weight: 600; font-size: 1rem;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    font-family: var(--font-body, inherit);
}
.fp-faq-q::after {
    content: "+"; font-size: 1.4rem; line-height: 1;
    color: var(--text-secondary);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.fp-faq-item.open .fp-faq-q::after { transform: rotate(45deg); }
.fp-faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
}
.fp-faq-item.open .fp-faq-a { max-height: 400px; }
.fp-faq-a-inner {
    padding: 0 20px 20px;
    color: var(--text-secondary); font-size: 0.95rem; line-height: 1.65;
}

/* ---- CTA card (compact reusable) ---- */
.fp-cta {
    padding: 44px; border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(91,123,255,0.08), rgba(91,123,255,0.02)),
        #fff;
    border: 1px solid rgba(91,123,255,0.22);
    box-shadow: var(--shadow-md);
    display: grid; gap: 24px;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
}
.fp-cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    font-weight: 700; line-height: 1.2; margin-bottom: 10px;
}
.fp-cta p {
    color: var(--text-secondary);
    font-size: 1rem; line-height: 1.6;
}
.fp-cta-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---- Mobile ---- */
@media (max-width: 900px) {
    .fp-hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .fp-hero-visual { order: -1; }
    .phone-mock { max-width: 320px; }
    .fp-cta { grid-template-columns: 1fr; padding: 32px; }
    .fp-section { padding: 56px 0; }
    .fp-back-strip { padding: 100px 0 0; }
}
@media (max-width: 540px) {
    .fp-hero { padding: 36px 0 56px; }
    .fp-audio { padding: 14px 16px; gap: 12px; }
}
