/* Home page: organizational platforms section (bento layout).
   Each platform sets its own accent through data-platform on #org-bento:
   --ob-c = accent, --ob-cd = deep accent (buttons/text on white), --ob-ct = light tint.
   Font weights follow the site's yekanBakh faces: 500 medium, 600 bold, 700 heavy. */

.ob-section {
    --ob-c: #389de7;
    --ob-cd: #1f7fc9;
    --ob-ct: #e8f3fd;
    --ob-ink: #0f172a;
    --ob-text: #334155;
    --ob-muted: #64748b;
    padding-block: 48px;
    color: var(--ob-text);
}
.ob-section[data-platform="clinic"] { --ob-c: #2abb9c; --ob-cd: #13806a; --ob-ct: #e5f7f3; }
.ob-section[data-platform="edu"] { --ob-c: #f2994a; --ob-cd: #c4621a; --ob-ct: #fef2e8; }

.ob-section h2,
.ob-section h3,
.ob-section p { margin: 0; }

.ob-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 26px;
}
.ob-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ob-cd);
    transition: color .3s;
}
.ob-head h2 {
    margin-top: 4px;
    font-size: 30px;
    font-weight: 700;
    color: var(--ob-ink);
    line-height: 1.45;
}

/* Segmented tab switch with a sliding pill (position driven by --ob-i from JS) */
.ob-seg {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(96px, 1fr));
    background: #e6eaf0;
    border-radius: 999px;
    padding: 4px;
}
.ob-pill {
    position: absolute;
    top: 4px;
    bottom: 4px;
    inset-inline-start: 4px;
    width: calc((100% - 8px) / 3);
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 4px 12px -4px rgba(15, 23, 42, .22);
    /* RTL: the first tab sits on the right, so later tabs move the pill left */
    transform: translateX(calc(var(--ob-i, 0) * -100%));
    transition: transform .4s cubic-bezier(.3, .7, .2, 1);
}
.ob-seg button {
    position: relative;
    border: 0;
    background: none;
    padding: 8px 18px;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    color: var(--ob-muted);
    cursor: pointer;
    border-radius: 999px;
    transition: color .25s;
}
.ob-seg button[aria-selected="true"] { color: var(--ob-cd); }
.ob-seg button:focus-visible { outline: 2px solid var(--ob-cd); outline-offset: 2px; }

/* All three panels are stacked in one grid cell: the cell takes the tallest
   panel's height, so switching tabs never resizes the section or its boxes. */
.ob-panels { display: grid; }

/* Bento grid: text card + visual tile on top, four feature tiles below.
   The first row is 1fr so any spare height goes to the top cards, not the tiles. */
.ob-panel {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 1fr auto;
    grid-template-areas: "main vis" "feats feats";
    gap: 16px;
}
.ob-panel.is-hidden {
    visibility: hidden;
    pointer-events: none;
}
.ob-panel:not(.is-hidden) { animation: obIn .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes obIn {
    from { opacity: .15; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.ob-main {
    grid-area: main;
    background: #fff;
    border-radius: 22px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.ob-main h3 {
    font-size: 25px;
    font-weight: 700;
    color: var(--ob-ink);
    line-height: 1.5;
}
.ob-main p {
    margin-bottom: 10px;
    max-width: 52ch;
    line-height: 1.9;
}

/* CTA. It also carries .dv-tab-content-button (Clarity click tracking), whose
   global rules use !important, so the overrides below need it too. */
.ob-section .ob-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: auto;
    height: auto;
    background: var(--ob-cd) !important;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.6;
    padding: 12px 22px;
    border-radius: 12px;
    box-shadow: 0 10px 24px -12px var(--ob-cd);
    transition: transform .2s, box-shadow .2s;
}
.ob-section .ob-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px -12px var(--ob-cd);
}
.ob-cta svg { width: 18px; height: 18px; transition: transform .2s; }
.ob-cta:hover svg { transform: translateX(-4px); }

.ob-vis {
    grid-area: vis;
    position: relative;
    border-radius: 22px;
    background: var(--ob-ct);
    overflow: hidden;
    min-height: 280px;
    display: grid;
    place-items: center;
}
.ob-vis img {
    width: 58%;
    max-width: 250px;
    height: auto;
}

.ob-chip {
    position: absolute;
    z-index: 2;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 9px 14px;
    box-shadow: 0 14px 30px -14px rgba(15, 23, 42, .35);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--ob-ink);
    line-height: 1.5;
    max-width: 230px;
}
.ob-chip b { display: block; font-weight: 600; }
.ob-chip small { display: block; color: var(--ob-muted); font-size: 12px; }
.ob-chip-big { font-size: 22px; font-weight: 700; color: var(--ob-cd); line-height: 1.2; }
.ob-chip-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ob-c);
    color: #fff;
    display: grid;
    place-items: center;
    flex: none;
}
.ob-chip-dot svg { width: 16px; height: 16px; }
.ob-chip-1 { top: 18px; inset-inline-start: 18px; }
.ob-chip-2 { bottom: 18px; inset-inline-end: 18px; }

.ob-feats {
    grid-area: feats;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.ob-feats li {
    background: #fff;
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-weight: 600;
    color: var(--ob-ink);
    line-height: 1.6;
}
.ob-feats svg {
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 12px;
    background: var(--ob-ct);
    color: var(--ob-cd);
    flex: none;
}

@media (max-width: 991.98px) {
    .ob-feats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767.98px) {
    .ob-section { padding-block: 28px; }
    .ob-head { gap: 14px; margin-bottom: 20px; }
    .ob-head h2 { font-size: 22px; }
    .ob-seg { width: 100%; }
    .ob-seg button { padding: 8px 6px; }
    .ob-panel {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        grid-template-areas: "vis" "main" "feats";
    }
    .ob-main { padding: 22px; }
    .ob-main h3 { font-size: 20px; }
    .ob-vis { min-height: 240px; }
    .ob-feats { gap: 10px; }
    .ob-feats li { padding: 14px; font-size: 14px; }
    /* reserve two lines so tiles keep one height across tabs */
    .ob-feats li span { min-height: 3.2em; }
}

@media (prefers-reduced-motion: reduce) {
    .ob-panel:not(.is-hidden) { animation: none; }
    .ob-pill,
    .ob-section .ob-cta,
    .ob-cta svg { transition: none; }
}
