/*
 * Landing Pages Styles for Cases Module
 * Replaces inline styles from public views
 */

/* Registry Components - Alignment with bizlink_theme */
.registry-card, .brutal-card, .testimonial-card {
    background: #ffffff;
    border: 1px solid #000000;
    box-shadow: 4px 4px 0px 0px rgba(0,0,0,1);
    border-radius: 2px;
    padding: 2.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.registry-card:hover, .brutal-card:hover, .testimonial-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px 0px rgba(0,0,0,1);
}

/* Standardized Button System */
.btn-base, .btn-protocol, .btn-secondary, .btn-accent, .btn-primary, .btn-outline, .btn-outline-white {
    padding: 0.85rem 1.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 2px;
    cursor: pointer;
    border: 2px solid #000;
}

.btn-protocol, .btn-primary {
    background: #000;
    color: #fff;
    box-shadow: 4px 4px 0px rgba(0,0,0,1);
}

.btn-protocol:hover, .btn-primary:hover {
    background: #fff;
    color: #000;
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px rgba(0,0,0,1);
}

.btn-secondary, .btn-outline, .btn-outline-white {
    background: transparent;
    color: #000;
    border: 2px solid #000;
}

.btn-secondary:hover, .btn-outline:hover, .btn-outline-white:hover {
    background: #000;
    color: #fff;
    transform: translateY(-1px);
}

.btn-accent {
    background: #facc15;
    color: #000;
    box-shadow: 4px 4px 0px rgba(0,0,0,1);
}

.btn-accent:hover {
    background: #000;
    color: #facc15;
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px rgba(0,0,0,1);
}

/* Path Section Styles */
.path-panel {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 2px solid #000;
    min-height: 80vh;
}

.path-panel:last-child {
    border-right: none;
}

.path-panel:hover {
    flex: 1.2;
}

.path-index {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12rem;
    font-weight: 900;
    line-height: 1;
    position: absolute;
    bottom: -2rem;
    right: -1rem;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    transition: all 0.4s ease;
}

.path-panel:hover .path-index {
    opacity: 0.08;
    transform: scale(1.1) rotate(-5deg);
}

.path-panel.bg-black,
.path-panel.bg-black h2,
.path-panel.bg-black p,
.path-panel.bg-black .path-index {
    color: #fff !important;
}

.path-panel.bg-black .rl {
    color: #fff;
}

.path-panel.bg-black .rl.text-white\/20 {
    color: rgba(255, 255, 255, 0.2) !important;
}

/* Testimonial Section */
.testimonial-card {
    flex: 0 0 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
}

@media (max-width: 768px) {
    .testimonial-card { flex: 0 0 320px; padding: 1.5rem; }
    .path-panel { border-right: none; border-bottom: 2px solid #000; min-height: auto; padding: 4rem 2rem; }
}

.verified-pill {
    background: #000;
    color: #fff;
    padding: 4px 10px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 2px;
}

.registry-id {
    font-family: 'Courier New', monospace;
    font-size: 9px;
    color: #9ca3af;
    letter-spacing: 0.05em;
}

/* Hero Section Styles */
.hero-gradient {
    background: radial-gradient(circle at 50% 50%, #f9fafb 0%, #f3f4f6 100%);
}

.hero-headline {
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Carousel/Social Proof */
.reviews-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 2rem;
    padding: 20px 0;
}
.reviews-carousel::-webkit-scrollbar {
    display: none;
}

/* Animations (Tailwind-like) */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    animation: fade-up 0.6s ease-out forwards;
}

/* Animation Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

@media (max-width: 768px) {
    .pricing-tier { box-shadow: 8px 8px 0px #000; scale: 1 !important; }
    .pricing-tier:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0px #000; }
}
.pricing-tier {
    border: 2px solid #000;
    box-shadow: 8px 8px 0px 0px rgba(0,0,0,1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pricing-tier:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px 0px rgba(0,0,0,1);
}

/* Funnel/Path Panels */
.funnel-panel {
    border: 1px solid #e5e7eb;
    background: #fff;
    transition: all 0.3s ease;
}

.funnel-panel:hover {
    border-color: #000;
    transform: scale(1.02);
}

/* Header & Navigation */
:root { 
    --navbar-height: 64px;
    --stats-bar-height: 40px;
    --header-height: calc(var(--navbar-height) + var(--stats-bar-height)); 
}

@media (max-width: 768px) {
    :root { 
        --navbar-height: 56px; 
        --stats-bar-height: 36px; 
    }
}

#navbar {
    height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #000;
}

#stats-strip {
    height: var(--stats-bar-height);
    background: #000;
    color: #fff;
    border-bottom: 1px solid #000;
    position: fixed;
    top: var(--navbar-height);
    width: 100%;
    z-index: 90;
    display: flex;
    align-items: center;
}

.nav-link {
    position: relative;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: #666;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active { 
    color: #000; 
}

.nav-link.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #000;
}

.stats-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.5rem;
    height: 100%;
    border-right: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .stats-block { padding: 0 0.75rem; gap: 0.4rem; }
    .stats-block span:first-child { display: none; }
}

/* Top Live Bar */
#top-live-bar {
    height: 32px;
    background: #000;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 120;
}

/* Typography */
body { font-family: 'Inter', sans-serif; overflow-x: hidden; color: #000; background-color: #ffffff; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.font-tech { font-family: 'Space Grotesk', sans-serif; }

@media (min-width: 768px) {
    .text-stroke-responsive { -webkit-text-stroke: 2px black; color: transparent; }
}
@media (max-width: 767px) {
    .text-stroke-responsive { color: black; }
}

/* Utilities */
.counter { font-variant-numeric: tabular-nums; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* GSI Button */
#google-login-button-desktop, #google-login-button-mobile {
    filter: grayscale(1);
    transition: transform 0.2s ease;
}
#google-login-button-desktop:hover, #google-login-button-mobile:hover {
    transform: translate(-2px, -2px);
}

/* Reveal Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes lineUp {
    from { transform: translateY(110%); }
    to { transform: translateY(0); }
}

.reveal-left  { opacity: 0; }
.reveal-left.is-visible  { animation: slideInLeft  0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.reveal-right { opacity: 0; }
.reveal-right.is-visible { animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.reveal-scale { opacity: 0; }
.reveal-scale.is-visible { animation: scaleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.rl-wrap { display: block; overflow: hidden; }
.rl { display: block; transform: translateY(110%); }
.rl.is-visible { animation: lineUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.reveal-item { opacity: 0; }
.reveal-item.is-visible { animation: fadeInUp 0.5s ease-out forwards; }

/* Loader */
.loader-brutal { width:60px; height:60px; border:8px solid #000; border-top:8px solid #facc15; animation:funnel-spin 0.8s linear infinite; }
@keyframes funnel-spin { 0%{transform:rotate(0deg)} 100%{transform:rotate(360deg)} }

/* Text Stroke */
.text-stroke {
    -webkit-text-stroke: 1.5px black;
    color: transparent;
}

@keyframes slideRight {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.animate-slide-right { animation: slideRight 0.8s cubic-bezier(0.23, 1, 0.32, 1); }

/* Modal & Progress */
.modal-overlay {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.step-progress {
    height: 4px;
    background: #f3f4f6;
    width: 100%;
    position: relative;
}
.step-progress-bar {
    height: 100%;
    background: #000;
    width: 0%;
    transition: width 0.4s ease;
}

.track-input:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

/* Legal & Policy Content */
.legal-container h2 { 
    text-transform: uppercase; 
    letter-spacing: -0.02em; 
    border-bottom: 2px solid #000; 
    padding-bottom: 0.5rem; 
    margin-top: 3.5rem; 
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.legal-container h2::before {
    content: '§';
    display: block;
    color: #000;
    font-family: 'serif';
}
.legal-container p { margin-bottom: 1.5rem; line-height: 1.8; color: #1a1a1a; text-align: justify; }
.legal-container ul { margin-bottom: 1.5rem; list-style-type: none; padding-left: 0; }
.legal-container li { margin-bottom: 1rem; position: relative; padding-left: 2rem; color: #1a1a1a; line-height: 1.8; }
.legal-container li::before {
    content: '●';
    position: absolute;
    left: 0.5rem;
    font-size: 0.75rem;
    top: 0.1rem;
    color: #000;
}
.legal-container strong { color: #000; font-weight: 700; }

/* Report & Risk Badges */
.risk-badge-LOW      { background:#dcfce7; color:#166534; border:2px solid #16a34a; }
.risk-badge-MEDIUM   { background:#fef9c3; color:#854d0e; border:2px solid #ca8a04; }
.risk-badge-HIGH     { background:#fee2e2; color:#991b1b; border:2px solid #dc2626; }
.risk-badge-CRITICAL { background:#7f1d1d; color:#fff;    border:2px solid #450a0a; }

@media print { 
    .no-print { display:none; } 
}

/* OTP Gate Styles */
.gate-card {
    background: #fff;
    border: 2px solid #000;
    box-shadow: 6px 6px 0 #000;
    max-width: 420px;
    width: 100%;
    padding: 40px 36px;
}
.gate-logo {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #9ca3af;
    margin-bottom: 28px;
}
.gate-sub {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 32px;
    line-height: 1.5;
}
.otp-input {
    width: 100%;
    border: 2px solid #000;
    padding: 14px 16px;
    font-size: 28px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-align: center;
    outline: none;
    transition: box-shadow 0.15s;
}
.otp-input:focus { box-shadow: 4px 4px 0 #000; }
.btn-verify {
    width: 100%;
    background: #000;
    color: #fff;
    border: 2px solid #000;
    padding: 14px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-verify:hover:not(:disabled) { background: #1f2937; }
.btn-verify:disabled { opacity: 0.5; cursor: not-allowed; }
.error-msg {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 10px 14px;
    font-size: 12px;
    color: #b91c1c;
    margin-bottom: 16px;
    display: none;
}
.locked-msg {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 12px 14px;
    font-size: 12px;
    color: #92400e;
    margin-bottom: 16px;
}
.pdf-viewer { width: 100%; height: 70vh; border: 2px solid #000; margin-top: 20px; }
.gate-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 10px;
    color: #9ca3af;
    text-align: center;
}

/* Policy Content */
.policy-container {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    color: #374151;
}

.policy-container h2 {
    color: #000;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
