/* ==========================================================================
   DESIGN SYSTEM - PATRIMONIO 360
   ========================================================================== */

:root {
    /* Colors - Base */
    --bg-main: #FAFAFA;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F3F4F6;
    --text-main: #111827;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;

    /* Colors - Brand / Feature */
    --ds-indigo-500: #6366F1;
    --ds-violet-500: #8B5CF6;
    --ds-emerald-500: #10B981;
    --ds-sky-500: #0EA5E9;
    --ds-amber-500: #F59E0B;
    --ds-rose-500: #F43F5E;

    /* Gradients */
    --grad-dashboard: linear-gradient(135deg, #A5B4FC, #60A5FA);
    --grad-dashboard-icon: linear-gradient(135deg, #6366F1, #8B5CF6);
    --grad-portfolio: linear-gradient(135deg, #10B981, #059669);
    --grad-ai: linear-gradient(135deg, #A78BFA, #8B5CF6);
    --grad-simulator: linear-gradient(135deg, #38BDF8, #0EA5E9);
    --grad-savings: linear-gradient(135deg, #FBBF24, #F59E0B);
    --grad-settings: linear-gradient(135deg, #FB7185, #F43F5E);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Radius */
    --radius-md: 12px;
    --radius-lg: 24px;
}

/* Base Styles */
body.ds-applied {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
}

/* Buttons */
.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.ds-btn-primary {
    background: var(--text-main);
    color: #fff;
}

.ds-btn-primary:hover {
    background: #000;
    transform: translateY(-2px);
}

.ds-btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.ds-btn-outline:hover {
    background: var(--bg-card-hover);
}

/* Apps Badges */
.ds-app-badges {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ds-app-badge {
    height: 40px;
    border-radius: 8px;
    transition: opacity 0.2s;
}

.ds-app-badge:hover {
    opacity: 0.8;
}

/* Feature Cards (matching the provided image) */
.ds-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    width: 100%;
}

.ds-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.ds-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Card 1 specific hover styling */
.ds-card.ds-card-highlight:hover {
    background: #EFF6FF;
    /* tailwind blue-50 */
    border-color: #BFDBFE;
    /* tailwind blue-200 */
}

.ds-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ds-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.ds-card-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 24px 0;
}

/* specific styling removed for normalization */

.ds-card-tags {
    display: flex;
    gap: 8px;
    margin-top: auto;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--ds-indigo-500);
    text-transform: uppercase;
}

/* specific styling removed for normalization */

/* Global SVG styling for icons */
.ds-svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.ds-svg-solid {
    fill: currentColor;
    stroke: none;
}

/* ── App Store badges ─────────────────── */
.hero-badges {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.badge-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.badge-pill svg {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}