/*
CHANGE LOG
File: /static/css/try_now.css
Document Type: CSS Stylesheet
Purpose: Styles for friction-free try-now homepage with prominent CTA
Main App: nsgia_app.py
Blueprint: N/A (static CSS)
Routes: /
Context: Green theme landing page with red "Try Now" button for LinkedIn conversions
HTML Templates: ai_index.html
Dependencies: None
Version History:
2025-09-01 v1.0 - Initial creation for try-now functionality
*/

/* === BACKGROUND COLOR CUSTOMIZATION === */
:root {
    /* Deep green theme to complement memory system's purple */
    --bg-color-1: #166534; /* Deep forest green */
    --bg-color-2: #15803d; /* Rich sage green */
    --header-color-1: #166534; /* Deep forest green */
    --header-color-2: #15803d; /* Rich sage green */
    --text-color: #ffffff; /* White text */
    --card-bg: #ffffff; /* White cards */
    --try-now-color: #dc2626; /* Bright red for Try Now button */
}

/* === BASE STYLES === */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    background: linear-gradient(135deg, var(--bg-color-1) 0%, var(--bg-color-2) 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-color);
}

.nsg-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* === HERO SECTION === */
.ms-hero {
    text-align: center;
    padding: 60px 20px 40px;
    margin-bottom: 40px;
}

.ms-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
    line-height: 1.2;
}

.ms-hero-subtext {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ms-hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.ms-primary-cta {
    background: var(--try-now-color);
    color: white;
    padding: 18px 36px;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
    border: 2px solid var(--try-now-color);
}

.ms-primary-cta:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(220, 38, 38, 0.4);
}

.ms-secondary-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.ms-link-muted {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ms-link-muted:hover {
    color: rgba(255,255,255,0.9);
}

.ms-separator {
    color: rgba(255,255,255,0.5);
}

/* === CARDS SECTION === */
.ms-cards-section {
    margin-bottom: 60px;
}

.ms-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.ms-card {
    background: white;
    border-radius: 12px;
    padding: 32px 24px;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.ms-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--header-color-1);
}

.ms-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
}

.ms-card p {
    font-size: 1rem;
    line-height: 1.5;
    color: #6b7280;
    margin-bottom: 8px;
}

.ms-card-note {
    font-size: 0.85rem;
    color: #9ca3af;
    font-style: italic;
}

.ms-card-primary {
    border-color: var(--try-now-color);
    border-width: 2px;
}

.ms-card-primary:hover {
    border-color: #b91c1c;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
}

/* === TESTIMONIALS CARD === */
.ms-testimonials-card {
    grid-column: 1 / -1; /* Span full width of grid */
    max-width: none; /* Remove width constraint for full width */
}

.ms-testimonials-list {
    text-align: left;
}

.ms-testimonial-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 0.9rem;
    line-height: 1.4;
    flex-wrap: wrap;
}

.ms-testimonial-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.ms-testimonial-ai {
    color: var(--header-color-1);
    font-weight: 600;
    min-width: 80px;
    flex-shrink: 0;
}

.ms-testimonial-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.85rem;
    font-family: monospace;
    transition: color 0.2s ease;
    flex-shrink: 1;
    word-break: break-all;
}

.ms-testimonial-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.ms-testimonial-desc {
    color: #6b7280;
    font-style: italic;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Mobile responsive for testimonials */
@media (max-width: 768px) {
    .ms-testimonial-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .ms-testimonial-ai {
        min-width: auto;
    }
    
    .ms-testimonial-link {
        word-break: break-all;
    }
}

/* === SECONDARY CTA === */
.ms-secondary-cta-section {
    text-align: center;
    margin-bottom: 40px;
}

.ms-secondary-cta {
    background: transparent;
    color: var(--text-color);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ms-secondary-cta:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* === CONVERT PERMANENT BANNER === */
.nsg-convert-banner {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f2937;
    text-align: center;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.2);
}

.nsg-convert-banner h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.nsg-convert-banner p {
    margin-bottom: 12px;
    opacity: 0.9;
}

.nsg-convert-btn {
    background: #1f2937;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nsg-convert-btn:hover {
    background: #374151;
    transform: translateY(-1px);
}

/* === CARDS === */
.nsg-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.nsg-feature-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.nsg-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.nsg-card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.nsg-feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-color);
    font-weight: 600;
}

.nsg-feature-card p {
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 15px;
}

.nsg-card-cta {
    color: var(--header-color-1);
    font-weight: 600;
    font-size: 0.9rem;
}

/* === TOAST === */
.nsg-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-color);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    font-size: 0.9rem;
    display: none;
    z-index: 1000;
}

.nsg-toast.show { display: block; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .ms-hero h1 { 
        font-size: 2.2rem; 
    }
    
    .ms-hero-subtext {
        font-size: 1.1rem;
    }
    
    .ms-primary-cta {
        font-size: 1.1rem;
        padding: 16px 28px;
    }
    
    .ms-cards-grid { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    
    .ms-quotes {
        flex-direction: column;
        gap: 24px;
    }
    
    .nsg-main-container { 
        padding: 15px; 
    }
}

@media (max-width: 480px) {
    .ms-hero {
        padding: 40px 15px 30px;
    }
    
    .ms-hero h1 {
        font-size: 1.8rem;
    }
    
    .ms-hero-subtext {
        font-size: 1rem;
    }
    
    .ms-primary-cta {
        font-size: 1rem;
        padding: 14px 24px;
    }
    
    .ms-card {
        padding: 24px 20px;
    }

}


/* --- How it works illustrations --- */
/* --- How it works illustrations (clean grid) --- */
.ms-illustrations{
  margin: 2.5rem auto 3.5rem;
  max-width: 1100px;
  padding: 0 1rem;
}

.ms-ill-heading{
  font-size: 1.35rem;
  font-weight: 700;
  color: #eef6ef;
  margin: 0 0 1.25rem;
  text-align: left;      /* left aligns under the testimonials */
}

/* 4 across desktop */
.ms-ill-row{
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 24px;
}

/* single tile */
.ms-ill-item{
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f7fbf7;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  padding: 12px;
  text-decoration: none;
  color: #143e20;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ms-ill-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

/* square thumbnail with proper crop */
.ms-ill-thumb{
  width: 100%;
  aspect-ratio: 1 / 1;     /* square */
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.ms-ill-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;       /* fills square nicely */
  display: block;
}

/* caption */
.ms-ill-caption{
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.25rem;
  color: #143e20;
  display: -webkit-box;
  -webkit-line-clamp: 2;   /* clamp to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* responsive */
@media (max-width: 980px){
  .ms-ill-row{ grid-template-columns: repeat(2, minmax(220px,1fr)); }
}
@media (max-width: 520px){
  .ms-ill-row{ grid-template-columns: 1fr; }
  .ms-ill-heading{ text-align:center; }
}
