/* ===== AGENT.CSS — LexiAgent offentlige sider (iso-styling) ===== */

/* ===== SEKSJON 1: About-grid ===== */
.ag-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2.5rem;
    align-items: start;
}
.ag-about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--iso-text);
}
.ag-about-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ag-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--iso-card-bg);
    border: 1px solid var(--iso-card-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ag-info-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(96, 165, 250, 0.1);
}
.ag-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(96,165,250,.15), rgba(96,165,250,.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.ag-info-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 30%, #34d399 70%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}
.ag-info-card p {
    font-size: 0.875rem;
    color: var(--iso-muted);
    line-height: 1.5;
}

/* ===== SEKSJON 2: Inntektskort ===== */
.ag-earn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.ag-earn-card {
    background: var(--iso-card-bg);
    border: 1px solid var(--iso-card-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.ag-earn-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #60a5fa, #93c5fd, #34d399, #6ee7b7);
}
.ag-earn-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(96, 165, 250, 0.15);
}
.ag-earn-badge {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 30%, #34d399 70%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}
.ag-earn-detail {
    color: var(--iso-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.ag-earn-amount {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--iso-dark);
}
.ag-cta-text {
    text-align: center;
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 30%, #34d399 70%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 2rem;
}

/* ===== STATS BAR ===== */
.ag-stats-bar {
    background: var(--iso-section-alt, #fff);
    padding: 48px 24px;
}
[data-theme="dark"] .ag-stats-bar {
    background: var(--iso-bg);
}
.ag-stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.ag-stat-number {
    font-family: 'Oswald', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--iso-dark);
    margin-bottom: 0.25rem;
}
.ag-stat-label {
    color: var(--iso-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ===== SEKSJON 3: Steg-kort ===== */
.ag-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.ag-step-card {
    background: var(--iso-card-bg);
    border: 1px solid var(--iso-card-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ag-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(96, 165, 250, 0.1);
}
.ag-step-num {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 30%, #34d399 70%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.35;
    margin-bottom: 0.75rem;
    line-height: 1;
}
.ag-step-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--iso-dark);
    margin-bottom: 0.5rem;
}
.ag-step-card p {
    font-size: 0.875rem;
    color: var(--iso-text);
    line-height: 1.6;
}

/* ===== SEKSJON 4: Produkt-kort ===== */
.ag-product-card {
    background: var(--iso-card-bg);
    border: 1px solid var(--iso-card-border);
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 2rem;
}
.section-container .ag-product-card {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.ag-product-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--iso-text);
    margin-bottom: 1.5rem;
}
.ag-product-highlight {
    background: linear-gradient(135deg, rgba(96,165,250,.08), rgba(96,165,250,.02));
    border: 1px solid rgba(96,165,250,.15);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}
.ag-product-highlight span {
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 30%, #34d399 70%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 0.95rem;
}
.ag-product-footer {
    text-align: center;
    color: var(--iso-muted);
    font-size: 0.9rem;
}

/* ===== SEKSJON 5: Fordeler-grid ===== */
.ag-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.ag-benefit-card {
    background: var(--iso-card-bg);
    border: 1px solid var(--iso-card-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ag-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(96, 165, 250, 0.1);
}
.ag-benefit-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 30%, #34d399 70%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}
.ag-benefit-card p {
    font-size: 0.875rem;
    color: var(--iso-text);
    line-height: 1.6;
}

/* ===== SEKSJON 6: Krav-kort ===== */
.ag-req-card {
    background: var(--iso-card-bg);
    border: 1px solid var(--iso-card-border);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 600px;
    margin: 2rem auto 0;
}
.ag-req-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ag-req-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--iso-text);
    border-bottom: 1px solid var(--iso-card-border);
}
.ag-req-list li:last-child {
    border-bottom: none;
}
.ag-req-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #34d399;
}
.ag-req-footer {
    text-align: center;
    color: var(--iso-muted);
    font-size: 0.85rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--iso-card-border);
}

/* ===== SECTION HEADER (matche iso-mønster) ===== */
.section-header h2 {
    font-family: 'Poppins', 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 30%, #34d399 70%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}
.accent-bar {
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, #60a5fa, #34d399);
    border-radius: 2px;
    margin: 0 auto 1.5rem;
}

/* ===== OUTLINE-KNAPP ===== */
.btn-iso-outline {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 32px;
    border-radius: 6px;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}
.btn-iso-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== HERO GRADIENT TEXT ===== */
.iso-hero .hero-text h1 {
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 30%, #34d399 70%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== SPLIT LAYOUT ===== */
.ag-split {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}
.ag-split--reverse { grid-template-columns: 300px 1fr; }
.ag-split--reverse .ag-split-content { order: 2; }
.ag-split--reverse .ag-split-visual { order: 1; }
.ag-split-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    align-self: center;
}

/* Steps 2-col inside split */
.ag-steps-grid--2col { grid-template-columns: 1fr 1fr; }

/* Green CTA button */
.ag-cta-green {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 16px 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #34d399, #10b981);
    color: #0f172a !important;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(52, 211, 153, 0.35);
}
.ag-cta-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(52, 211, 153, 0.5);
    background: linear-gradient(135deg, #6ee7b7, #34d399);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .ag-split, .ag-split--reverse { grid-template-columns: 1fr; gap: 1.5rem; }
    .ag-split--reverse .ag-split-content { order: 1; }
    .ag-split--reverse .ag-split-visual { order: 2; }
    .ag-split-visual { display: none; }
    .ag-steps-grid--2col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .ag-about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .ag-steps-grid--2col { grid-template-columns: 1fr; }
    .ag-earn-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
    .ag-steps-grid { grid-template-columns: 1fr 1fr; }
    .ag-benefits-grid { grid-template-columns: 1fr; }
    .ag-stats-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .ag-product-card { padding: 1.5rem; }
    .ag-req-card { padding: 1.5rem; }
    .section-header h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .ag-steps-grid { grid-template-columns: 1fr; }
    .ag-stats-inner { grid-template-columns: 1fr 1fr; }
}

/* ===== FAQ STYLING ===== */
.agent-hero-compact { padding: 80px 24px 60px; min-height: auto; }
.agent-hero-center { max-width: 720px; margin: 0 auto; text-align: center; }
.agent-faq-container { max-width: 780px; margin: 0 auto; }

.faq-group { display: flex; flex-direction: column; gap: 0; }

.faq-item {
    border: 1px solid var(--iso-card-border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--iso-card-bg);
    transition: box-shadow 0.2s ease;
}
.faq-item:hover { box-shadow: 0 4px 16px rgba(96, 165, 250, 0.08); }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--iso-dark);
    text-align: left;
    gap: 1rem;
    transition: color 0.2s ease;
}
.faq-question:hover { color: var(--iso-coral, #60a5fa); }
.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--iso-muted);
}
.faq-item.is-open .faq-question svg { transform: rotate(180deg); }
.faq-item.is-open .faq-question { color: var(--iso-coral, #60a5fa); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}
.faq-item.is-open .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.25rem;
}
.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--iso-text);
    margin: 0;
}

/* Dark mode FAQ */
[data-theme="dark"] .faq-item {
    background: rgba(26, 26, 46, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .faq-question { color: var(--iso-dark, #E2E8F0); }
[data-theme="dark"] .faq-answer p { color: var(--iso-text, #cbd5e1); }

@media (max-width: 768px) {
    .faq-question { font-size: 0.9rem; padding: 1rem 1.25rem; }
    .faq-answer { padding: 0 1.25rem; }
    .faq-item.is-open .faq-answer { padding: 0 1.25rem 1rem; }
}
