/* ═══════════════════════════════════════════════════════════════
   Publika sidor – sektioner, kort, hero, CTA
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────────── */
.otimo-hero {
    background: linear-gradient(135deg, var(--otimo-color-background-secondary) 0%, #dde8f0 100%);
    padding: 80px 24px 64px;
    text-align: center;
}

.otimo-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.otimo-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.otimo-hero-subtitle {
    font-size: 1.25rem;
    color: var(--otimo-color-text-secondary);
    margin-bottom: 16px;
}

.otimo-hero-ingress {
    color: var(--otimo-color-text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.otimo-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Sektioner ────────────────────────────────────────────────── */
.otimo-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 24px;
}

.otimo-section--alt {
    background-color: var(--otimo-color-background-secondary);
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}

.otimo-section--alt > h2,
.otimo-section--alt > p,
.otimo-section--alt > div {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.otimo-section h2 {
    text-align: center;
    margin-bottom: 24px;
}

.otimo-section-text {
    max-width: 750px;
    margin: 0 auto;
    color: var(--otimo-color-text-secondary);
    line-height: 1.7;
    text-align: center;
}

/* ── Kortrutnät ───────────────────────────────────────────────── */
.otimo-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.otimo-card-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}

.otimo-card-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

.otimo-card-grid .rz-card {
    text-align: left;
}

.otimo-card-grid .rz-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.otimo-card-grid .rz-card p {
    color: var(--otimo-color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ── USP-banner ───────────────────────────────────────────────── */
.otimo-usp-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    padding: 16px 24px;
    background: var(--otimo-color-primary);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
}

.otimo-usp-banner .rzi {
    font-size: 1.5rem;
}

/* ── Feature-lista ────────────────────────────────────────────── */
.otimo-feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px auto 0;
}

.otimo-feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.otimo-feature-item .rzi {
    font-size: 2rem;
    color: var(--otimo-color-primary);
    flex-shrink: 0;
}

.otimo-feature-item strong {
    display: block;
    margin-bottom: 4px;
}

.otimo-feature-item p {
    margin: 0;
    color: var(--otimo-color-text-secondary);
    font-size: 0.95rem;
}

/* ── CTA-sektion ──────────────────────────────────────────────── */
.otimo-cta-section {
    text-align: center;
    padding: 64px 24px;
}

.otimo-cta-section h2 {
    margin-bottom: 8px;
}

.otimo-cta-section > p {
    color: var(--otimo-color-text-secondary);
    margin-bottom: 24px;
}

/* ── Jämförelsetabell ─────────────────────────────────────────── */
.otimo-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    font-size: 0.95rem;
}

.otimo-comparison-table th,
.otimo-comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--otimo-color-border);
    text-align: left;
}

.otimo-comparison-table thead th {
    background-color: var(--otimo-color-background-secondary);
    font-weight: 600;
}

.otimo-comparison-table tbody tr:hover {
    background-color: var(--otimo-color-background-secondary);
}

/* ── Kontakt-layout ───────────────────────────────────────────── */
.otimo-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: flex-start;
}

.otimo-contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ── Snabbstart-steg ──────────────────────────────────────────── */
.otimo-steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 24px auto 0;
}

.otimo-steps li {
    counter-increment: step;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.otimo-steps li::before {
    content: counter(step);
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--otimo-color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ── Kodblock ─────────────────────────────────────────────────── */
.otimo-code-block {
    background: #1e2a33;
    color: #e0e8ef;
    padding: 16px 20px;
    border-radius: 8px;
    font-family: 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.875rem;
    overflow-x: auto;
    line-height: 1.6;
}

.otimo-code-block .otimo-code-comment {
    color: #6a9955;
}

.otimo-code-block .otimo-code-keyword {
    color: #569cd6;
}

.otimo-code-block .otimo-code-string {
    color: #ce9178;
}

/* ── Responsivt ───────────────────────────────────────────────── */

/* ── Priskort ─────────────────────────────────────────────────── */
.otimo-pricing-card {
    text-align: center;
}

.otimo-pricing-description {
    color: var(--otimo-color-text-secondary);
    font-size: 0.95rem;
    min-height: 48px;
}

.otimo-pricing-price {
    margin: 16px 0 4px;
}

.otimo-pricing-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--otimo-color-primary);
}

.otimo-pricing-currency {
    font-size: 1rem;
    color: var(--otimo-color-text-secondary);
    margin-left: 4px;
}

.otimo-pricing-features {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    text-align: left;
    font-size: 0.9rem;
}

.otimo-pricing-features li {
    padding: 6px 0;
    border-bottom: 1px solid var(--otimo-color-muted);
}

.otimo-pricing-features li.excluded {
    color: var(--otimo-color-text-secondary);
}

/* ── Hero med bild (tvåkolumn) ────────────────────────────────── */
.otimo-hero--split {
    text-align: left;
}

.otimo-hero--split .otimo-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1100px;
}

.otimo-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

/* ── Sektionsbild (centrerad) ────────────────────────────────── */
.otimo-section-image {
    text-align: center;
    margin: 32px auto 0;
    max-width: 700px;
}

.otimo-section-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ── Kontakt-illustration ────────────────────────────────────── */
.otimo-contact-illustration {
    margin-top: 40px;
    text-align: center;
}

.otimo-contact-illustration img {
    max-width: 420px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ── Om oss-illustration ─────────────────────────────────────── */
.otimo-about-illustration {
    text-align: center;
    margin: 0 auto;
    max-width: 600px;
}

.otimo-about-illustration img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ── Provlicens-funktioner ────────────────────────────────────── */
.otimo-trial-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.otimo-trial-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.otimo-trial-feature .rzi {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.otimo-trial-terms {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--otimo-color-background-secondary);
    border-radius: 8px;
    font-size: 0.95rem;
}

.otimo-trial-excluded {
    border-top: 1px solid var(--otimo-color-border);
    padding-top: 12px;
}

.otimo-trial-excluded summary {
    cursor: pointer;
    user-select: none;
}

.otimo-trial-excluded summary:hover {
    color: var(--otimo-color-primary);
}

.otimo-trial-excluded ul {
    margin-top: 8px;
    padding-left: 20px;
}

.otimo-trial-excluded li {
    padding: 2px 0;
}

/* ── Slide-carousel ───────────────────────────────────────────── */
.otimo-carousel {
    margin-top: 32px;
}

.otimo-carousel-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.otimo-carousel-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--otimo-color-text-secondary);
    min-width: 280px;
    text-align: center;
    flex: 1;
}

.otimo-carousel-title-icon {
    font-size: 1.5rem;
    color: var(--otimo-color-primary);
}

.otimo-carousel-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--otimo-color-text-primary);
}

.otimo-carousel-counter {
    font-size: 0.85rem;
    color: var(--otimo-color-text-secondary);
    margin-left: 4px;
}

.otimo-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.otimo-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--otimo-color-border);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.otimo-carousel-dot:hover {
    border-color: var(--otimo-color-primary);
}

.otimo-carousel-dot.active {
    background: var(--otimo-color-primary);
    border-color: var(--otimo-color-primary);
}

/* ── Formulär: 2-kolumnsrad ───────────────────────────────────── */
.otimo-form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

/* ── Beslutsstöd: split (cards + bild sida vid sida) ─────────── */
.otimo-beslutsstod-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 32px;
}

.otimo-beslutsstod-split .otimo-section-image {
    margin: 0;
    max-width: 100%;
}

/* ── Responsivt ───────────────────────────────────────────────── */
@@media (max-width: 768px) {
    .otimo-hero h1 {
        font-size: 1.75rem;
    }

    .otimo-hero--split .otimo-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .otimo-hero--split .otimo-hero-actions {
        justify-content: center;
    }

    .otimo-card-grid,
    .otimo-card-grid--2col,
    .otimo-card-grid--3col {
        grid-template-columns: 1fr;
    }

    .otimo-feature-list {
        grid-template-columns: 1fr;
    }

    .otimo-contact-grid {
        grid-template-columns: 1fr;
    }

    .otimo-trial-features {
        grid-template-columns: 1fr;
    }

    .otimo-form-row-2col {
        grid-template-columns: 1fr;
    }

    .otimo-beslutsstod-split {
        grid-template-columns: 1fr;
    }

    .otimo-usecase-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Användningsfall-sida – /anvandningsfall
   ═══════════════════════════════════════════════════════════════ */

.otimo-usecase-tabs .rz-tabview-nav {
    flex-wrap: wrap;
    gap: 4px;
}

.otimo-usecase-segment {
    padding-top: 24px;
}

.otimo-usecase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.otimo-usecase-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.otimo-usecase-quote {
    font-style: italic;
    color: var(--otimo-color-text-secondary);
    border-left: 3px solid var(--rz-primary);
    padding-left: 12px;
    margin: 0;
}

.otimo-usecase-steps {
    margin: 0;
    padding-left: 20px;
    line-height: 1.7;
}

.otimo-usecase-steps code {
    font-size: 0.85em;
    background: var(--otimo-color-background-secondary);
    padding: 1px 4px;
    border-radius: 3px;
}

.otimo-usecase-result {
    margin: 0;
    line-height: 1.6;
}

.otimo-usecase-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--rz-border-color);
}

.otimo-usecase-endpoints {
    color: var(--otimo-color-text-secondary);
    font-family: monospace;
    font-size: 0.8em;
}

.otimo-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}
