/* ===== MINI RESULT PAGE ===== */
body.mini-page { background: #F0F4F8; }

/* ── STEPPER ──────────────────────────────────────────────────────────── */
.mini-stepper-wrap { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 0.875rem 0; overflow: hidden; }
.mini-stepper { display: flex; align-items: center; justify-content: center; gap: 0; max-width: 700px; margin: 0 auto; padding: 0 1rem; }
.mst-item { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; flex: 0 0 auto; }
.mst-dot { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700; background: #e2e8f0; color: #94a3b8; flex-shrink: 0; }
.mst-item span { font-size: 0.65rem; color: #94a3b8; text-align: center; line-height: 1.2; max-width: 72px; }
.mst-item.done .mst-dot { background: #5DCAA5; color: #fff; }
.mst-item.done span { color: #5DCAA5; }
.mst-item.current .mst-dot { background: #0d2137; color: #fff; box-shadow: 0 0 0 3px rgba(93,202,165,0.35); }
.mst-item.current span { color: #0d2137; font-weight: 600; }
.mst-line { flex: 1 1 0; height: 2px; background: #e2e8f0; min-width: 8px; margin-bottom: 1.5rem; }
.mst-line.done { background: #5DCAA5; }
@media (max-width: 560px) {
    .mst-item span { display: none; }
    .mst-line { min-width: 8px; }
}

/* ── HERO ─────────────────────────────────────────────────────────────── */
.mini-hero {
    position: relative;
    background: linear-gradient(135deg, #0f2443 0%, #1A3A5C 55%, #1e4d8c 100%);
    background-size: 300% 300%;
    animation: gradientShift 10s ease infinite;
    overflow: hidden;
    padding: 3.5rem 0 4rem;
    text-align: center;
    color: white;
}
@keyframes gradientShift {
    0%,100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
.mini-hero-blob {
    position: absolute; border-radius: 50%;
    filter: blur(70px); opacity: 0.15;
    animation: floatBlob 9s ease-in-out infinite;
    pointer-events: none;
}
.mini-hero-blob.b1 { width: 350px; height: 350px; background: #5DCAA5; top: -100px; right: 5%; }
.mini-hero-blob.b2 { width: 250px; height: 250px; background: #7F77DD; bottom: -60px; left: 8%; animation-delay: 4s; }
@keyframes floatBlob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-20px)} }

.mini-hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; padding: 0 1.5rem; }

/* SVG check animat */
.mini-check-anim {
    width: 80px; height: 80px; margin: 0 auto 1.5rem;
}
.check-circle {
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    animation: drawCircle 0.6s ease forwards;
}
.check-path {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: drawCheck 0.4s ease 0.5s forwards;
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck  { to { stroke-dashoffset: 0; } }

.mini-hero h1 {
    font-size: 1.75rem; font-weight: 800;
    margin-bottom: 1rem; line-height: 1.25;
}
.mini-hero-sub {
    font-size: 1rem; opacity: 0.85;
    line-height: 1.75; max-width: 560px; margin: 0 auto;
}

/* ── HERO STATS ──────────────────────────────────────────────────────── */
.mini-hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(93,202,165,0.15); border: 1px solid rgba(93,202,165,0.35);
    color: #8ef0d0; font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 0.3rem 1rem; border-radius: 20px; margin-bottom: 1.5rem;
}
.mini-hero-badge-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #5DCAA5;
    animation: dotPulse 1.5s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.7)} }

.mini-hero-stats {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin-top: 2rem;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px; padding: 1rem 1.5rem;
    max-width: 480px; margin-left: auto; margin-right: auto; margin-top: 2rem;
}
.mhs-item { text-align: center; flex: 1; }
.mhs-num { display: block; font-size: 2rem; font-weight: 800; color: #5DCAA5; line-height: 1; }
.mhs-label { font-size: 0.72rem; color: rgba(255,255,255,0.65); line-height: 1.4; margin-top: 0.25rem; }
.mhs-sep { width: 1px; background: rgba(255,255,255,0.15); height: 40px; flex-shrink: 0; }

/* ── TEASER SECTION ──────────────────────────────────────────────────── */
.mini-teaser-section {
    padding: 3.5rem 0;
    background: #f8fafc;
}
.mini-teaser-header { text-align: center; margin-bottom: 2.5rem; }
.mini-teaser-header h2 {
    font-size: 1.6rem; font-weight: 800; color: #1A3A5C; margin-bottom: 0.5rem;
}
.mini-teaser-header p { color: #64748b; font-size: 0.92rem; max-width: 540px; margin: 0 auto; }

.mini-teaser-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.5rem; max-width: 860px; margin: 0 auto 2rem;
}
@media (max-width: 640px) { .mini-teaser-grid { grid-template-columns: 1fr; } }

.mini-block-label {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: #94a3b8; margin-bottom: 1rem;
}

/* Hypothesis cards */
.mini-hyp-block { background: white; border-radius: 16px; padding: 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1.5px solid #e2e8f0; }
.mini-hyp-list { display: flex; flex-direction: column; gap: 0.75rem; }
.mini-hyp-card {
    display: flex; align-items: flex-start; gap: 0.875rem;
    padding: 0.875rem 1rem; border-radius: 12px;
    border: 1.5px solid #e2e8f0; background: #f8fafc;
}
.mini-hyp-card.hyp-main  { border-color: #5DCAA5; background: #f0fdf8; }
.mini-hyp-card.hyp-partial { opacity: 0.75; }
.mini-hyp-card.hyp-locked  { opacity: 0.5; }
.hyp-rank {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; margin-top: 0.1rem;
    background: linear-gradient(135deg, #5DCAA5, #7F77DD);
    color: white; font-size: 0.75rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.hyp-rank.muted { background: #e2e8f0; color: #94a3b8; }
.hyp-body { flex: 1; min-width: 0; }
.hyp-bar-wrap { height: 6px; background: #e2e8f0; border-radius: 6px; overflow: hidden; margin-bottom: 0.5rem; }
.hyp-bar { height: 100%; background: linear-gradient(90deg, #5DCAA5, #7F77DD); border-radius: 6px; }
.hyp-bar-muted { background: #cbd5e1; }

/* Mystery label (H1) */
.hyp-mystery-label {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.72rem; font-weight: 700; color: #059669;
    margin-bottom: 0.5rem;
}
.hyp-pulse-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #5DCAA5; flex-shrink: 0;
    animation: dotPulse 1.5s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.7)} }

/* Redacted name bars */
.hyp-redacted { display: flex; flex-direction: column; gap: 5px; margin-bottom: 0.4rem; }
.hyp-redacted span { height: 13px; border-radius: 4px; background: #334155; display: block; }
.hyp-redacted.muted span { background: #cbd5e1; }

/* CTA hint (H1) */
.hyp-cta-hint { font-size: 0.72rem; color: #7F77DD; font-weight: 600; margin-top: 0.35rem; text-decoration: none; display: inline-block; }
.hyp-cta-hint:hover { color: #5DCAA5; }

.hyp-lock-badge { font-size: 0.68rem; color: #94a3b8; font-weight: 600; }

/* Areas visual */
.mini-areas-block { background: white; border-radius: 16px; padding: 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1.5px solid #e2e8f0; }
.mini-areas-visual {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.625rem;
}
.mav-item {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 0.75rem; border-radius: 10px;
    font-size: 0.8rem; font-weight: 500;
    border: 1.5px solid transparent; transition: all 0.15s;
}
.mav-active {
    background: color-mix(in srgb, var(--ac) 10%, white);
    border-color: color-mix(in srgb, var(--ac) 35%, transparent);
    color: color-mix(in srgb, var(--ac) 80%, #1e293b);
}
.mav-dim { background: #f1f5f9; border-color: #e2e8f0; color: #94a3b8; }
.mav-dot { font-size: 1.15rem; flex-shrink: 0; }
.mav-active .mav-dot { filter: none; }
.mav-dim .mav-dot { filter: grayscale(1) opacity(0.4); }

@supports not (color: color-mix(in srgb, red, blue)) {
    .mav-active { background: #E1F5EE; border-color: #5DCAA5; color: #0F6E56; }
}

.mini-urgency-note {
    margin-top: 1rem; padding: 0.625rem 0.875rem;
    background: #fff8e6; border: 1px solid #f5c842;
    border-radius: 8px; font-size: 0.78rem; color: #7a5a00; font-weight: 500;
}

/* ── URGENCY BAR ─────────────────────────────────────────────────────── */
.mini-urgency-bar {
    display: flex; align-items: center; justify-content: center;
    gap: 1.25rem; flex-wrap: wrap;
    background: linear-gradient(90deg, #7a3a00, #c2500a);
    color: rgba(255,255,255,0.95); font-size: 0.85rem; font-weight: 500;
    padding: 0.75rem 1.5rem; text-align: center;
}
.mini-urgency-bar strong { font-weight: 800; color: #ffd580; }
.urgency-bar-cta {
    white-space: nowrap; padding: 0.35rem 1rem; border-radius: 20px;
    background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4);
    color: white; font-weight: 700; font-size: 0.8rem;
    text-decoration: none; transition: background 0.18s; flex-shrink: 0;
}
.urgency-bar-cta:hover { background: rgba(255,255,255,0.35); }

/* ── WHAT'S INSIDE ───────────────────────────────────────────────────── */
.mini-inside-section { padding: 3rem 0; background: white; border-top: 1px solid #e2e8f0; }
.mini-inside-title { text-align: center; font-size: 1.4rem; font-weight: 800; color: #1A3A5C; margin-bottom: 2rem; }
.mini-inside-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1rem; max-width: 860px; margin: 0 auto;
}
@media (max-width: 700px) { .mini-inside-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .mini-inside-grid { grid-template-columns: 1fr; } }
.mini-inside-card {
    display: flex; gap: 0.75rem; align-items: flex-start;
    padding: 1rem; border-radius: 12px; border: 1.5px solid #e2e8f0;
    background: #f8fafc;
}
.mic-icon { font-size: 1.5rem; flex-shrink: 0; }
.mic-body { display: flex; flex-direction: column; gap: 0.2rem; }
.mic-body strong { font-size: 0.82rem; font-weight: 700; color: #1e293b; }
.mic-body span { font-size: 0.76rem; color: #64748b; line-height: 1.4; }

/* ── PRICE ANCHOR ────────────────────────────────────────────────────── */
.mini-price-anchor {
    max-width: 660px; margin: 0 auto 2.25rem;
    font-size: 1rem; line-height: 1.7; color: #1e293b;
    font-style: italic; text-align: center;
    background: #f0fdf4; border-left: 4px solid #5DCAA5;
    border-radius: 0 12px 12px 0; padding: 1rem 1.5rem;
}

/* ── GUARANTEE ───────────────────────────────────────────────────────── */
.mini-guarantee {
    max-width: 660px; margin: 1.5rem auto 0;
    background: #f0fdf4; border: 1.5px solid #bbf7d0;
    border-radius: 12px; padding: 0.875rem 1.25rem;
    font-size: 0.875rem; color: #166534; font-weight: 500;
    line-height: 1.5; text-align: center;
}

/* ── PAYWALL HEADER ──────────────────────────────────────────────────── */
.mini-paywall-header { text-align: center; margin-bottom: 2rem; }
.mini-paywall-header h2 { font-size: 1.5rem; font-weight: 800; color: #1A3A5C; margin-bottom: 0.4rem; }
.mini-paywall-header p { color: #64748b; font-size: 0.9rem; }

/* ── PAYWALL (PLANS) ─────────────────────────────────────────────────── */
.mini-paywall-section {
    padding: 3rem 0 2rem;
}
.mini-paywall-inner {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
@media (max-width: 680px) {
    .mini-paywall-inner { flex-direction: column; gap: 1rem; }
    .plan-or { transform: rotate(90deg); }
}

.mini-plan-card {
    flex: 1;
    background: white;
    border-radius: 18px;
    padding: 2rem 1.75rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1.5px solid #e2e8f0;
    display: flex; flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none; color: inherit; cursor: pointer;
}
/* Alguns navegadors propaguen el subratllat de l'<a> als fills; ho forcem a tots */
.mini-plan-card, .mini-plan-card * { text-decoration: none !important; }
.mini-plan-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.mini-plan-card:hover .btn-plan-std { background: #5DCAA5; color: white; }
.mini-plan-card:hover .btn-plan-pro { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(127,119,221,0.5); }

.pro-card {
    border-color: #7F77DD;
    background: linear-gradient(160deg, #faf9ff 0%, #f0fff8 100%);
    box-shadow: 0 4px 28px rgba(127,119,221,0.15);
}

.plan-popular {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(90deg, #7F77DD, #5DCAA5);
    color: white; font-size: 0.72rem; font-weight: 700;
    padding: 0.25rem 0.875rem; border-radius: 20px;
    white-space: nowrap; letter-spacing: 0.04em;
}

.plan-card-header { margin-bottom: 1.5rem; }
.plan-name { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin-bottom: 0.4rem; }
.plan-price { font-size: 2.25rem; font-weight: 800; color: #1A3A5C; line-height: 1; }
.plan-price span { font-size: 0.8rem; font-weight: 400; color: #94a3b8; }
.pro-card .plan-price { color: #4B3FC7; }

.plan-features {
    list-style: none; flex: 1;
    display: flex; flex-direction: column; gap: 0.6rem;
    margin-bottom: 1.75rem;
}
.plan-features li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: #334155; }
.plan-features li.pro-extra { color: #4B3FC7; font-weight: 500; }
.pf-icon { font-size: 0.875rem; font-weight: 700; color: #059669; flex-shrink: 0; margin-top: 0.05rem; }
.pf-icon.pro { color: #7F77DD; }
.plan-features li.pro-chat { color: #0d2137; font-weight: 600; background: rgba(93,202,165,0.1); margin: 0.35rem -0.5rem 0; padding: 0.3rem 0.5rem; border-radius: 6px; border-left: 3px solid #5DCAA5; }

.btn-plan-std {
    display: block; text-align: center;
    padding: 0.875rem; border-radius: 10px;
    border: 2px solid #5DCAA5; color: #0F6E56;
    font-weight: 600; font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-plan-std:hover { background: #5DCAA5; color: white; }

.btn-plan-pro {
    display: block; text-align: center;
    padding: 0.875rem; border-radius: 10px;
    background: linear-gradient(135deg, #7F77DD, #5DCAA5);
    color: white; font-weight: 700; font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(127,119,221,0.35);
    transition: all 0.2s;
    animation: planPulse 2.5s ease-in-out infinite;
}
.btn-plan-pro:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(127,119,221,0.5); }
@keyframes planPulse {
    0%,100% { box-shadow: 0 4px 16px rgba(127,119,221,0.35); }
    50%      { box-shadow: 0 4px 24px rgba(127,119,221,0.6); }
}

.plan-or {
    display: flex; align-items: center; justify-content: center;
    width: 40px; flex-shrink: 0;
    font-size: 0.8rem; font-weight: 600; color: #94a3b8;
}


/* ── COMPARACIÓ DETALLADA ─────────────────────────────────────────────── */
.mini-compare-section {
    padding: 3rem 0 4rem;
    background: white;
    margin-top: 2rem;
    border-top: 1px solid #e2e8f0;
}
.mini-compare-section h2 {
    font-size: 1.5rem; font-weight: 700;
    color: #1A3A5C; text-align: center;
    margin-bottom: 1.75rem;
}
.compare-ctas {
    display: flex; gap: 1rem; justify-content: center;
    margin-top: 2rem; flex-wrap: wrap;
}
