/* Odrim API marketing page */

.api-shell {
    max-width: 1080px;
}

.api-header .page-header-actions {
    gap: 10px;
}

.api-nav-link {
    font-size: .8rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: background .15s, color .15s, border-color .15s;
}

.api-nav-link:hover {
    color: var(--text);
    background: var(--hdr-hover);
}

.api-nav-link.is-active {
    color: var(--text);
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.api-hero {
    text-align: center;
    margin-bottom: 48px;
}

.api-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.api-hero h1 {
    font-size: clamp(1.85rem, 4.5vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.12;
    margin-bottom: 14px;
}

.api-hero h1 .grad {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.api-hero-lead {
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto 24px;
}

.api-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.api-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    padding: 11px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background .15s, border-color .15s, transform .15s;
}

.api-btn:hover {
    transform: translateY(-1px);
}

.api-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #4338ca));
    border-color: color-mix(in srgb, var(--accent) 60%, transparent);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}

.api-btn-primary:hover {
    filter: brightness(1.06);
}

.api-btn-secondary {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

.api-btn-secondary:hover {
    background: var(--hdr-hover);
    border-color: var(--border2);
}

.api-section {
    margin-bottom: 52px;
}

.api-section-head {
    text-align: center;
    margin-bottom: 28px;
}

.api-section-head h2 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.03em;
    margin-bottom: 8px;
}

.api-section-head p {
    font-size: .92rem;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto;
}

.api-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.api-feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 20px;
    box-shadow: 0 8px 28px var(--shadow);
}

.api-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 14px;
}

.api-feature-icon svg {
    width: 20px;
    height: 20px;
}

.api-feature h3 {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.api-feature p {
    font-size: .85rem;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
}

.api-code-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow);
}

.api-code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: .75rem;
    color: var(--muted);
}

.api-code-tabs {
    display: flex;
    gap: 6px;
}

.api-code-tab {
    font-family: inherit;
    font-size: .72rem;
    font-weight: 500;
    color: var(--muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
}

.api-code-tab.active {
    color: var(--text);
    background: var(--hdr-hover);
    border-color: var(--border);
}

.api-code-block {
    margin: 0;
    padding: 18px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: .78rem;
    line-height: 1.65;
    color: var(--text);
    overflow-x: auto;
    background: color-mix(in srgb, var(--bg) 60%, var(--surface));
}

.api-code-block[hidden] {
    display: none;
}

.api-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: stretch;
}

.api-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 18px;
    box-shadow: 0 8px 28px var(--shadow);
}

.api-plan.featured {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
    box-shadow: 0 0 0 1px var(--accent-soft), 0 14px 40px var(--shadow);
}

.api-plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.api-plan h3 {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: capitalize;
    margin-bottom: 6px;
}

.api-plan-price {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 16px;
}

.api-plan-price span {
    font-size: .85rem;
    font-weight: 500;
    color: var(--muted);
}

.api-plan-price-custom {
    font-size: 1.35rem;
}

.api-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    flex: 1;
}

.api-plan-features li {
    font-size: .82rem;
    color: var(--muted);
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.api-plan-features li:last-child {
    border-bottom: none;
}

.api-plan-features li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent2);
    margin-top: 7px;
    flex-shrink: 0;
}

.api-plan-cta {
    width: 100%;
    margin-top: auto;
}

.api-plan-cta.is-muted {
    opacity: .65;
    pointer-events: none;
    cursor: default;
}

.api-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 32px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.api-trust-item {
    font-size: .82rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-trust-item svg {
    width: 16px;
    height: 16px;
    color: var(--accent2);
    flex-shrink: 0;
}

.api-footnote {
    text-align: center;
    font-size: .78rem;
    color: var(--muted);
    margin-top: 18px;
}

@media (max-width: 960px) {
    .api-plan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .api-features {
        grid-template-columns: 1fr;
    }

    .api-plan-grid {
        grid-template-columns: 1fr;
    }

    .api-nav-link:not(.is-active) {
        display: none;
    }
}
