/* welcome.css - Version 1.0 - March 18, 2026
   About / Welcome page styles for MyFOIA.ai
   Uses DM Serif Display + DM Sans (loaded in welcome.html)
   Rollback: remove link from welcome.html and delete this file
*/

/* ── CSS Variables ───────────────────────────────────────── */
:root {
    --wl-blue:       #1e40af;
    --wl-blue-mid:   #2563eb;
    --wl-blue-light: #dbeafe;
    --wl-gold:       #f59e0b;
    --wl-dark:       #0f172a;
    --wl-mid:        #f1f5f9;
    --wl-text:       #1e293b;
    --wl-muted:      #64748b;
    --wl-white:      #ffffff;
    --wl-radius:     12px;
    --wl-shadow:     0 4px 24px rgba(0,0,0,0.08);
    --wl-font-display: 'DM Serif Display', Georgia, serif;
    --wl-font-body:    'DM Sans', system-ui, sans-serif;
}

/* ── Base ────────────────────────────────────────────────── */
body {
    font-family: var(--wl-font-body) !important;
    background: #f8fafc;
    color: var(--wl-text);
    margin: 0;
    padding: 0;
}

.wl-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── Sections ────────────────────────────────────────────── */
.wl-section {
    padding: 80px 0;
}
.wl-section-light { background: #ffffff; }
.wl-section-mid   { background: #f1f5f9; }
.wl-section-dark  { background: var(--wl-dark); }

.wl-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 52px;
}
.wl-section-header h2 {
    font-family: var(--wl-font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--wl-dark);
    margin: 10px 0 14px;
    line-height: 1.2;
}
.wl-section-header p {
    color: var(--wl-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}
.wl-section-header-light h2 { color: #ffffff; }
.wl-section-header-light p  { color: #94a3b8; }

.wl-tag {
    display: inline-block;
    background: var(--wl-blue-light);
    color: var(--wl-blue);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 6px;
}
.wl-tag-light {
    background: rgba(255,255,255,0.12);
    color: #cbd5e1;
}

/* ── Hero ────────────────────────────────────────────────── */
.wl-hero {
    background: linear-gradient(135deg, var(--wl-dark) 0%, #1e3a8a 60%, #1d4ed8 100%);
    padding: 90px 32px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    position: relative;
    min-height: 420px;
}

.wl-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(37,99,235,0.25) 0%, transparent 65%);
    pointer-events: none;
}

.wl-hero-inner {
    max-width: 560px;
    position: relative;
    z-index: 1;
    animation: wl-fade-up .6s ease both;
}

.wl-hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 14px;
}

.wl-hero-title {
    font-family: var(--wl-font-display);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 20px;
}
.wl-hero-title em {
    font-style: italic;
    color: #93c5fd;
}

.wl-hero-sub {
    color: #bfdbfe;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 32px;
    font-weight: 300;
}

.wl-hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Hero graphic ────────────────────────────────────────── */
.wl-hero-graphic {
    position: relative;
    width: 320px;
    height: 280px;
    flex-shrink: 0;
    z-index: 1;
    animation: wl-fade-up .6s .15s ease both;
}

.wl-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.35;
}
.wl-orb-1 { width: 220px; height: 220px; background: #3b82f6; top: 0; right: 0; animation: wl-float 6s ease-in-out infinite; }
.wl-orb-2 { width: 160px; height: 160px; background: #f59e0b; bottom: 20px; left: 10px; animation: wl-float 8s ease-in-out infinite reverse; }
.wl-orb-3 { width: 100px; height: 100px; background: #818cf8; top: 50%; left: 50%; animation: wl-float 5s ease-in-out infinite 1s; }

.wl-document-stack {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wl-doc {
    position: absolute;
    width: 140px;
    height: 180px;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.wl-doc-1 { top: 0; left: 0; z-index: 3; padding: 20px 16px; box-sizing: border-box; background: #ffffff; }
.wl-doc-2 { top: 8px; left: -10px; z-index: 2; transform: rotate(-4deg); background: #e0e7ff; }
.wl-doc-3 { top: 14px; left: -20px; z-index: 1; transform: rotate(-8deg); background: #bfdbfe; }

.wl-doc-line {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 10px;
}
.wl-doc-line-short { width: 60%; }

.wl-doc-stamp {
    display: inline-block;
    border: 2.5px solid #2563eb;
    color: #2563eb;
    font-family: var(--wl-font-display);
    font-size: 1.1rem;
    padding: 4px 10px;
    border-radius: 4px;
    transform: rotate(-8deg);
    margin-top: 14px;
    opacity: 0.85;
}

/* ── Buttons ─────────────────────────────────────────────── */
.wl-btn {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 8px;
    font-size: 0.93rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .18s ease;
    cursor: pointer;
    border: 2px solid transparent;
}
.wl-btn-primary {
    background: var(--wl-gold);
    color: var(--wl-dark);
    border-color: var(--wl-gold);
}
.wl-btn-primary:hover { background: #e08e00; border-color: #e08e00; transform: translateY(-1px); }
.wl-btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}
.wl-btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.wl-btn-outline {
    background: transparent;
    color: var(--wl-blue);
    border-color: var(--wl-blue);
}
.wl-btn-outline:hover { background: var(--wl-blue-light); }

/* ── Features grid ───────────────────────────────────────── */
.wl-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
}

.wl-feature-card {
    background: #f8faff;
    border: 1px solid #e0e7ff;
    border-radius: var(--wl-radius);
    padding: 28px 26px;
    transition: transform .2s, box-shadow .2s;
    animation: wl-fade-up .5s ease both;
}
.wl-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(37,99,235,0.1);
}
.wl-feature-icon {
    font-size: 1.8rem;
    margin-bottom: 14px;
    display: block;
}
.wl-feature-card h3 {
    font-family: var(--wl-font-display);
    font-size: 1.1rem;
    color: var(--wl-dark);
    margin: 0 0 10px;
}
.wl-feature-card p {
    color: var(--wl-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

/* ── Pricing grid ────────────────────────────────────────── */
.wl-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
    align-items: start;
}

.wl-price-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--wl-radius);
    padding: 32px 28px;
    position: relative;
    transition: transform .2s, box-shadow .2s;
}
.wl-price-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--wl-shadow);
}

.wl-price-featured {
    background: var(--wl-dark);
    border-color: var(--wl-blue-mid);
    transform: scale(1.03);
    box-shadow: 0 16px 48px rgba(37,99,235,0.25);
}
.wl-price-featured:hover { transform: scale(1.03) translateY(-3px); }

.wl-price-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--wl-gold);
    color: var(--wl-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 100px;
    white-space: nowrap;
}

.wl-price-tier {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--wl-muted);
    margin-bottom: 8px;
}
.wl-price-featured .wl-price-tier { color: #94a3b8; }

.wl-price-amount {
    font-family: var(--wl-font-display);
    font-size: 2.4rem;
    color: var(--wl-dark);
    line-height: 1;
    margin-bottom: 2px;
}
.wl-price-amount span { font-size: 1.1rem; color: var(--wl-muted); }
.wl-price-featured .wl-price-amount { color: #ffffff; }
.wl-price-featured .wl-price-amount span { color: #94a3b8; }

.wl-price-period {
    font-size: 0.8rem;
    color: var(--wl-muted);
    margin-bottom: 24px;
}
.wl-price-featured .wl-price-period { color: #94a3b8; }

.wl-price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    font-size: 0.88rem;
    line-height: 1;
}
.wl-price-features li {
    padding: 7px 0;
    border-bottom: 1px solid #f1f5f9;
    color: var(--wl-text);
}
.wl-price-featured .wl-price-features li { color: #cbd5e1; border-bottom-color: rgba(255,255,255,0.08); }
.wl-price-features .wl-muted { color: #cbd5e1; }
.wl-price-featured .wl-price-features .wl-muted { color: #475569; }

/* ── Legal grid ──────────────────────────────────────────── */
.wl-legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.wl-legal-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f8faff;
    border: 1px solid #e0e7ff;
    border-radius: var(--wl-radius);
    padding: 22px 20px;
    text-decoration: none;
    color: inherit;
    transition: all .18s ease;
}
.wl-legal-card:hover {
    background: #eff6ff;
    border-color: var(--wl-blue-mid);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.1);
}
.wl-legal-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.wl-legal-card h4 { font-size: 0.95rem; font-weight: 600; color: var(--wl-dark); margin: 0 0 5px; }
.wl-legal-card p  { font-size: 0.83rem; color: var(--wl-muted); margin: 0; line-height: 1.5; }
.wl-legal-arrow   { font-size: 1.1rem; color: var(--wl-blue-mid); margin-left: auto; flex-shrink: 0; align-self: center; transition: transform .18s; }
.wl-legal-card:hover .wl-legal-arrow { transform: translateX(4px); }

/* ── Contact grid ────────────────────────────────────────── */
.wl-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.wl-contact-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--wl-radius);
    padding: 28px 24px;
    text-decoration: none;
    color: #e2e8f0;
    transition: all .18s ease;
}
.wl-contact-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}
.wl-contact-icon { font-size: 1.8rem; display: block; margin-bottom: 12px; }
.wl-contact-card h4 { font-size: 0.95rem; font-weight: 600; color: #ffffff; margin: 0 0 8px; }
.wl-contact-card p  { font-size: 0.85rem; color: #94a3b8; line-height: 1.55; margin: 0; }
.wl-contact-card strong { color: #93c5fd; }

/* ── Footer ──────────────────────────────────────────────── */
.wl-footer {
    background: #0a0f1e;
    padding: 28px 32px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.wl-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.wl-footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #64748b;
    font-size: 0.82rem;
}
.wl-footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.wl-footer-links a {
    color: #64748b;
    font-size: 0.82rem;
    text-decoration: none;
    transition: color .15s;
}
.wl-footer-links a:hover { color: #94a3b8; }

/* ── Animations ──────────────────────────────────────────── */
@keyframes wl-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes wl-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-16px); }
}

.wl-animate {
    animation: wl-fade-up .5s ease both;
    opacity: 0;
}

/* Trigger animations on scroll via IntersectionObserver (set in HTML inline script) */
.wl-animate.wl-visible { opacity: 1; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .wl-hero {
        flex-direction: column;
        padding: 60px 24px 50px;
        text-align: center;
    }
    .wl-hero-cta { justify-content: center; }
    .wl-hero-graphic { display: none; }
    .wl-section { padding: 56px 0; }
    .wl-container { padding: 0 20px; }
    .wl-price-featured { transform: none; }
    .wl-footer-inner { flex-direction: column; text-align: center; }
    .wl-footer-links { justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════
   welcome.css additions — Version 1.1 — March 22, 2026
   APPEND to the bottom of welcome.css.
   No existing rules changed.
   Adds: 4-column pricing grid, price description, MM limits table,
         upgrade-highlight values, and Managed Mode explainer note.
   ══════════════════════════════════════════════════════════════ */

/* ── 4-column pricing grid ───────────────────────────────── */
/* Replaces wl-pricing-grid (3-col) for the pricing section.  */
.wl-pricing-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

/* ── Card description blurb ──────────────────────────────── */
.wl-price-desc {
    font-size: 0.83rem;
    color: var(--wl-muted);
    line-height: 1.6;
    margin: 0 0 18px;
    min-height: 52px;   /* keeps cards aligned across row */
}
.wl-price-featured .wl-price-desc { color: #94a3b8; }

/* ── MM limits mini-table ────────────────────────────────── */
.wl-price-limits {
    background: #f8fafc;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 18px;
}
.wl-price-featured .wl-price-limits {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
}

.wl-price-limit-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
    padding: 5px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.75rem;
}
.wl-price-limit-row:last-child { border-bottom: none; }
.wl-price-featured .wl-price-limit-row { border-bottom-color: rgba(255,255,255,0.07); }

.wl-limit-label {
    color: var(--wl-muted);
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wl-price-featured .wl-limit-label { color: #cbd5e1; }

.wl-limit-val {
    font-weight: 600;
    color: var(--wl-dark);
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}
.wl-price-featured .wl-limit-val { color: #ffffff; }

/* Highlighted limit values (MM-specific) */
.wl-limit-highlight {
    color: var(--wl-blue-mid);
}
.wl-price-featured .wl-limit-highlight { color: var(--wl-gold); }

/* Greyed-out "not included" */
.wl-limit-none {
    color: #94a3b8;
    font-weight: 400;
}

/* ── Managed Mode explainer note ─────────────────────────── */
.wl-price-note {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #e0e7ff;
    border-left: 4px solid var(--wl-blue-mid);
    border-radius: var(--wl-radius);
    padding: 22px 24px;
    margin-top: 36px;
}

.wl-price-note-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.wl-price-note strong {
    display: block;
    font-size: 0.95rem;
    color: var(--wl-dark);
    margin-bottom: 6px;
}

.wl-price-note p {
    font-size: 0.86rem;
    color: var(--wl-muted);
    line-height: 1.7;
    margin: 0;
}

.wl-price-note a {
    color: var(--wl-blue-mid);
    text-decoration: none;
    font-weight: 600;
}
.wl-price-note a:hover { text-decoration: underline; }

/* ── Responsive: collapse to 2-col then 1-col ────────────── */
@media (max-width: 1024px) {
    .wl-pricing-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    /* Re-apply featured scale at narrower widths */
    .wl-price-featured {
        transform: none;
    }
}

@media (max-width: 600px) {
    .wl-pricing-grid-4 {
        grid-template-columns: 1fr;
    }
    .wl-price-note {
        flex-direction: column;
        gap: 10px;
    }
}

/* ── Tighter card internals for 4-column layout ──────────── */
/* Reduces inner padding so limit rows have more room         */
.wl-pricing-grid-4 .wl-price-card {
    padding: 24px 20px;
}
.wl-pricing-grid-4 .wl-price-limits {
    padding: 8px 10px;
}
