/* ============================================
   ARACA INSIGHTS — REDESIGN (Packages tier)
   ============================================ */

.insights-redesign {
    padding: clamp(48px, 7vw, 100px) 0 clamp(60px, 8vw, 120px);
    position: relative;
    overflow: hidden;
}
.insights-redesign::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 40% at 50% 0%, rgba(59, 130, 246, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 85% 70%, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.insights-redesign .insights-header {
    text-align: center;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}
.insights-redesign .insights-header .section-title {
    margin-bottom: 0;
}

/* ============================================
   PRODUCT INTRO STRIP
   ============================================ */
.product-intro {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto 56px;
    text-align: center;
}
.product-intro .intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.22);
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
}
.product-intro .intro-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
    animation: badge-shimmer 5s ease-in-out infinite;
}
.product-intro .intro-badge svg {
    animation: badge-twinkle 2.5s ease-in-out infinite;
    transform-origin: center;
}

.product-intro h2 {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.product-intro h2 .insights-brand {
    font-weight: 700;
    background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 55%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.product-intro h2 .insights-brand sup { font-size: 0.45em; -webkit-text-fill-color: var(--accent); color: var(--accent); }

.product-intro .product-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-primary);
    margin-bottom: 18px;
    opacity: 0.92;
}
.product-intro .product-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 760px;
    margin: 0 auto 24px;
    text-wrap: pretty;
}
.product-intro .product-desc .polishers {
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
}

.product-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
.meta-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}
.meta-pill svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--text-secondary); }
.meta-pill.offline { color: #86efac; border-color: rgba(34,197,94,0.25); background: rgba(34,197,94,0.06); }
.meta-pill.offline .led {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.18);
    animation: led-pulse 2.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes led-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(34,197,94,0.18); }
    50%      { box-shadow: 0 0 0 7px rgba(34,197,94,0.04); }
}

/* ============================================
   PACKAGE TIER CARDS
   ============================================ */
.package-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: stretch;
}

.pkg-card {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 28px 28px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    isolation: isolate;
}
.pkg-card::before {
    /* top accent line */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.pkg-card:hover::before { opacity: 1; }
.pkg-card:hover {
    border-color: var(--border-light);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.32);
}

/* Featured / available state */
.pkg-card.is-available {
    border-color: rgba(59,130,246,0.45);
    background:
        linear-gradient(180deg, rgba(59,130,246,0.06) 0%, transparent 50%),
        var(--bg-secondary);
    box-shadow: 0 0 0 1px rgba(59,130,246,0.25), 0 18px 40px rgba(0,0,0,0.30);
}
.pkg-card.is-available::before {
    content: '';
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 1;
    height: 2px;
}
.pkg-card.is-available:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 22px 48px rgba(59,130,246,0.20);
}

/* coming-soon dim */
.pkg-card.is-coming {
    background:
        repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 12px, transparent 12px 24px),
        var(--bg-secondary);
}

/* Tag in top right */
.pkg-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}
.pkg-tag.tag-available {
    background: rgba(34,197,94,0.10);
    border-color: rgba(34,197,94,0.30);
    color: #86efac;
}
.pkg-tag.tag-available .led {
    width: 6px; height: 6px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.20);
    animation: led-pulse 2.4s ease-in-out infinite;
}
.pkg-tag.tag-coming {
    background: rgba(59,130,246,0.08);
    border-color: rgba(59,130,246,0.25);
    color: #93c5fd;
}

/* Header area: tier name + icon */
.pkg-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.pkg-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    flex-shrink: 0;
}
.pkg-icon svg { width: 18px; height: 18px; }
.pkg-card.is-available .pkg-icon {
    background: rgba(59,130,246,0.14);
    border-color: rgba(59,130,246,0.35);
    color: var(--accent);
}

.pkg-tier {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
    line-height: 1;
}
.pkg-name {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.pkg-pitch {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 22px;
    min-height: 44px;
    text-wrap: pretty;
}

/* Feature list */
.pkg-features {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}
.pkg-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.pkg-feature .check {
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59,130,246,0.10);
    color: var(--accent);
    border: 1px solid rgba(59,130,246,0.20);
}
.pkg-feature .check svg { width: 11px; height: 11px; }
.pkg-feature .check.plus {
    background: rgba(168,85,247,0.10);
    color: #c4b5fd;
    border-color: rgba(168,85,247,0.25);
}
.pkg-feature .check.custom {
    background: rgba(245,158,11,0.10);
    color: #fcd34d;
    border-color: rgba(245,158,11,0.25);
}

.pkg-feature h5 {
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 2px;
}
.pkg-feature p {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.55;
    text-wrap: pretty;
}

/* "Includes everything in Basic" lead-in */
.pkg-includes {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: rgba(255,255,255,0.025);
    border: 1px dashed var(--border-light);
    font-size: 12.5px;
    color: var(--text-secondary);
}
.pkg-includes svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.pkg-includes strong { color: var(--text-primary); font-weight: 600; }

/* Card footer / CTA */
.pkg-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
}
.pkg-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}
.pkg-cta.cta-primary {
    background: var(--accent);
    color: var(--text-on-accent);
}
.pkg-cta.cta-primary:hover {
    background: var(--accent-hover);
    color: var(--text-on-accent);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(59,130,246,0.30);
}
.pkg-cta.cta-primary svg { transition: transform 0.2s; }
.pkg-cta.cta-primary:hover svg { transform: translateX(3px); }

.pkg-cta.cta-soft {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-light);
}
.pkg-cta.cta-soft:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(59,130,246,0.06);
}

.pkg-eta {
    text-align: center;
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* AI agent feature accent (in advanced card) */
.pkg-feature.is-agent h5 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pkg-feature.is-agent .agent-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(168,85,247,0.18), rgba(59,130,246,0.18));
    border: 1px solid rgba(168,85,247,0.30);
    color: #ddd6fe;
}

/* ============================================
   SUPPORT INFO STRIP UNDER GRID
   ============================================ */
.support-strip {
    position: relative;
    z-index: 1;
    margin-top: 36px;
    padding: 22px 28px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.support-strip .icon-block {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34,197,94,0.10);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.22);
    flex-shrink: 0;
}
.support-strip .icon-block svg { width: 20px; height: 20px; }
.support-strip .copy {
    flex: 1;
    min-width: 240px;
}
.support-strip h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.support-strip p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-wrap: pretty;
}
.support-strip .strip-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #86efac;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(34,197,94,0.10);
    border: 1px solid rgba(34,197,94,0.25);
    white-space: nowrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .package-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }
    .pkg-pitch { min-height: 0; }
}
@media (max-width: 560px) {
    .pkg-card { padding: 24px 20px 22px; }
    .product-meta { gap: 6px; }
    .meta-pill { font-size: 10.5px; padding: 7px 11px; }
    .support-strip { padding: 18px 20px; gap: 16px; }
}

/* Reveal animation */
.fade-up {
    opacity: 0;
    transform: translateY(18px);
    animation: fade-up-anim 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fade-up-anim {
    to { opacity: 1; transform: translateY(0); }
}
.fade-up.delay-1 { animation-delay: 0.05s; }
.fade-up.delay-2 { animation-delay: 0.12s; }
.fade-up.delay-3 { animation-delay: 0.20s; }
.fade-up.delay-4 { animation-delay: 0.28s; }

/* Badge animations (used by .product-intro .intro-badge) */
@keyframes badge-shimmer {
    0%, 70%, 100% { left: -100%; opacity: 0; }
    5% { opacity: 1; }
    30% { left: 150%; opacity: 1; }
    35% { opacity: 0; }
}
@keyframes badge-twinkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(15deg); opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
    .fade-up { opacity: 1; transform: none; animation: none; }
    .pkg-tag.tag-available .led { animation: none; }
    .product-intro .intro-badge::after,
    .product-intro .intro-badge svg { animation: none; }
}
