/* ==========================================================================
   Inner pages - section "03 · Inner pages" of the Developer Portal Redesign.

   Long scrolling pages that sit inside the dashboard shell (rail + topbar).
   Loaded after dashboard.css, which supplies the .vd-dash token block, so the
   brand variables are already in scope here.
   ========================================================================== */

.vd-page { min-height: 100%; }

/* ---------- Dark CTA banner (blueprint match, 2026-10) ----------
   App Expo's banner - same gradient/layout pattern as the landing page's
   .vh-cta (home.css), reimplemented under this page's own vd- prefix since
   home.css isn't loaded here. Text block left, button right; wraps to a
   stacked column on narrow viewports. */
.vd-dark-cta {
    background: linear-gradient(135deg, #2E2155 0%, #403C7E 55%, #7A3578 100%);
    border-radius: 18px;
    padding: 36px 40px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.vd-dark-cta-eyebrow {
    font-family: var(--mono, ui-monospace, 'SF Mono', Menlo, monospace);
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-weight: 600;
    color: #FAB554;
    margin-bottom: 8px;
}

.vd-dark-cta h2 { font-size: 24px; font-weight: 700; letter-spacing: -.3px; color: #fff; margin: 0 0 8px; }
.vd-dark-cta p { font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .82); margin: 0; max-width: 620px; }
.vd-dark-cta > div:first-child { flex: 1 1 360px; }

@media (max-width: 640px) {
    .vd-dark-cta { flex-direction: column; align-items: flex-start; }
}

/* ---------- Shared section rhythm ---------- */

.vd-sec { padding: 22px 40px; background: #fff; }
.vd-sec--tint { background: #FAF9FC; border-top: 1px solid var(--line); }
.vd-sec--intro { padding: 44px 40px 4px; }
.vd-sec--wide { padding: 40px; }

.vd-kicker {
    font-family: var(--mono, ui-monospace, 'SF Mono', Menlo, monospace);
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--indigo);
    margin-bottom: 10px;
}

.vd-h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.3px;
    color: var(--blackberry);
    margin: 0;
    max-width: 680px;
}

.vd-lede {
    font-size: 13.5px;
    color: #3D3654;
    margin: 10px 0 0;
    max-width: 660px;
    line-height: 1.6;
}

/* ---------- Page hero ---------- */

.vd-hero-page {
    position: relative;
    overflow: hidden;
    padding: 52px 40px 44px;
    color: #fff;
    background: linear-gradient(135deg, #2E2155 0%, #403C7E 58%, #5D5A9E 100%);
}

.vd-hero-page::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .5;
    pointer-events: none;
    background:
        radial-gradient(620px 300px at 88% -10%, rgba(250, 181, 84, .30), transparent 70%),
        radial-gradient(520px 300px at 8% 120%, rgba(230, 89, 76, .28), transparent 70%);
}

.vd-hero-page > * { position: relative; z-index: 1; max-width: 720px; }

.vd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    font-family: var(--mono, ui-monospace, Menlo, monospace);
    font-size: 10.5px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-weight: 600;
    color: #FAB554;
}

.vd-hero-page h1 {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -1.2px;
    margin: 18px 0 0;
    color: #fff;
}

/* blueprint: "Explore" in gold, "what you can do" in white */
.vd-hero-accent { color: #FAB554; }

.vd-hero-page p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .76);
    margin: 14px 0 0;
    max-width: 620px;
}

/* ---------- Sticky in-page anchor nav ---------- */

.vd-toc {
    position: sticky;
    top: 56px;                       /* clears the app top bar */
    z-index: 5;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 11px 40px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vd-toc a {
    padding: 7px 14px;
    border-radius: 99px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    text-decoration: none;
    white-space: nowrap;
    transition: background .14s ease, color .14s ease, border-color .14s ease;
}

.vd-toc a:hover { background: #FBF8FC; border-color: var(--ink); text-decoration: none; }

.vd-toc a.is-active {
    background: var(--blackberry);
    border-color: var(--blackberry);
    color: #fff;
    font-weight: 600;
}

/* ---------- Product cards ---------- */

.vd-prod { scroll-margin-top: 116px; }

.vd-prod-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--accent-wash) 0%, #fff 46%);
    box-shadow: 0 1px 2px rgba(46, 33, 85, .05);
    transition: box-shadow .18s ease, transform .18s ease;
}

.vd-prod-card:hover {
    box-shadow: 0 14px 34px -18px rgba(46, 33, 85, .35);
    transform: translateY(-2px);
}

.vd-prod-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--accent);
}

.vd-prod-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    padding: 28px 32px 30px 34px;
}

.vd-prod-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.vd-prod-ico {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--accent);
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px var(--accent-shadow);
}
.vd-prod-ico svg { width: 16px; height: 16px; stroke: #fff; fill: none; }

.vd-prod-num {
    font-family: var(--mono, ui-monospace, Menlo, monospace);
    font-size: 10.5px;
    letter-spacing: 1.2px;
    font-weight: 600;
    color: var(--accent);
    opacity: .75;
}

.vd-prod h3 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.5px;
    color: var(--accent);
    margin: 0 0 10px;
    line-height: 1.2;
}

.vd-prod-blurb { font-size: 13px; color: #3D3654; line-height: 1.65; margin: 0; }

.vd-prod-compat {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 99px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11.5px;
    font-weight: 600;
}
.vd-prod-compat::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 99px;
    background: var(--accent);
}

.vd-prod-detail { border-left: 1px solid var(--line); padding-left: 40px; }

.vd-prod-eyebrow {
    font-family: var(--mono, ui-monospace, Menlo, monospace);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: #3D3654;
    margin-bottom: 12px;
}

.vd-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }

.vd-tag {
    font-family: var(--mono, ui-monospace, Menlo, monospace);
    font-size: 10.5px;
    background: var(--accent-faint);
    color: var(--accent);
    padding: 5px 10px;
    border-radius: 99px;
}

.vd-prod-desc { font-size: 13px; color: #4B4560; line-height: 1.7; margin: 0; }
.vd-prod-desc strong { color: var(--ink); font-weight: 600; }

.vd-prod-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

.vd-pill-btn {
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    background: var(--accent);
    transition: filter .14s ease, box-shadow .14s ease;
}
.vd-pill-btn:hover { filter: brightness(1.08); text-decoration: none; box-shadow: 0 6px 16px -6px var(--accent); }

.vd-pill-ghost {
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--accent-line);
    transition: background .14s ease, color .14s ease;
}
.vd-pill-ghost:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* .vd-dash a (dashboard.css) is a class+tag selector, which beats these
   bare-class color rules - the accent-colored pill buttons were rendering
   with dark indigo link text instead of the intended color ("purple on
   purple" on the plum/coral/gold product cards). .vd-page wins on
   specificity regardless of stylesheet load order. */
.vd-page .vd-pill-btn,
.vd-page .vd-pill-btn:hover { color: #fff; }
.vd-page .vd-pill-ghost { color: var(--accent); }
.vd-page .vd-pill-ghost:hover { color: #fff; }

/* cross-product callout under the EHR card */
.vd-crosslink {
    margin-top: 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    background: linear-gradient(120deg, #F3F1FA, #EAF6FB);
    border: 1px solid #DDD8EE;
    border-radius: 16px;
    padding: 20px 26px;
}
.vd-crosslink-ico {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--blackberry);
    display: grid;
    place-items: center;
}
.vd-crosslink-ico svg { width: 18px; height: 18px; stroke: #FAB554; fill: none; }
.vd-crosslink-title { font-size: 14px; font-weight: 700; color: var(--blackberry); margin-bottom: 4px; }
.vd-crosslink p { font-size: 12.5px; color: #3D3660; margin: 0; line-height: 1.65; }

/* ---------- API model cards ---------- */

/* Fix (per user request, 2026-10): all 3 cards on one line instead of
   2-then-1 - 3 columns instead of 2, with the cards themselves shrunk
   (padding/font-sizes below) so 3 fit without crowding. */
.vd-models { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.vd-model {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 18px 16px;
    box-shadow: 0 1px 2px rgba(46, 33, 85, .05);
    transition: box-shadow .18s ease, transform .18s ease;
}
.vd-model:hover { box-shadow: 0 14px 34px -18px rgba(46, 33, 85, .35); transform: translateY(-2px); }

.vd-model-badge {
    align-self: flex-start;
    font-family: var(--mono, ui-monospace, Menlo, monospace);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 4px 9px;
    border-radius: 99px;
    background: var(--accent-soft);
    color: var(--accent);
}

.vd-model-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.3px;
    color: var(--blackberry);
    margin: 11px 0 6px;
}

.vd-model p { font-size: 12px; color: #4B4560; margin: 0; line-height: 1.6; }
.vd-model p strong { color: var(--ink); font-weight: 600; }

.vd-model code {
    font-family: var(--mono, ui-monospace, Menlo, monospace);
    font-size: 12px;
    background: #FBF8FC;
    padding: 1px 5px;
    border-radius: 4px;
}

.vd-model-used {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: #3D3654;
}
.vd-model-used strong { color: var(--ink); font-weight: 600; }

.vd-model .vd-pill-ghost { align-self: flex-start; margin-top: 14px; }

/* ---------- Build-integration steps 2 & 3 (blueprint match, 2026-10) ----------
   "Create & Test" / "Validate your integration" - two cards after the API
   model grid, each with an icon circle + numbered kicker instead of the
   model cards' badge. Reuses .vd-model for the card shell/shadow/hover. */
.vd-buildsteps { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.vd-buildstep-ico {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--accent);
    display: grid;
    place-items: center;
    align-self: flex-start;
}
.vd-buildstep-ico svg { width: 16px; height: 16px; stroke: #fff; fill: none; }

.vd-buildstep .vd-kicker { color: var(--accent); margin: 12px 0 6px; }

@media (max-width: 760px) {
    .vd-buildsteps { grid-template-columns: 1fr; }
}

/* ---------- TL;DR quick-summary (Program Overview) ---------- */

.vd-tldr-wrap { padding: 22px 40px 0; background: #fff; }

.vd-tldr {
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.vd-tldr.is-open { background: linear-gradient(120deg, #FFFBF2, #fff 60%); }

.vd-tldr-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.vd-tldr-toggle svg:first-child { width: 15px; height: 15px; flex: 0 0 15px; color: #A8761A; }
.vd-tldr-title { font-size: 13.5px; font-weight: 700; color: var(--blackberry); }
.vd-tldr-sub { font-size: 12.5px; color: #3D3654; }
.vd-tldr-chev { width: 16px; height: 16px; flex: 0 0 16px; color: #3D3654; margin-left: auto; transition: transform 140ms; }
.vd-tldr.is-open .vd-tldr-chev { transform: rotate(180deg); }

.vd-tldr-body { padding: 0 22px 20px; max-width: 760px; }
.vd-tldr-steps { display: flex; flex-direction: column; gap: 11px; margin: 0 0 18px; }
.vd-tldr-step { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; line-height: 1.55; color: #3D3654; }

.vd-tldr-num {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border-radius: 99px;
    background: #A8761A;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
    margin-top: 1px;
}

.vd-tldr-step b { color: var(--blackberry); }

/* ---------- Closing recap (Program Overview) ---------- */

.vd-recap-table-wrap { margin-top: 24px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.vd-recap-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }

.vd-recap-table th {
    text-align: left;
    padding: 11px 18px;
    background: #FAF9FC;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .9px;
    text-transform: uppercase;
    color: #3D3654;
}

.vd-recap-table td { padding: 13px 18px; border-top: 1px solid var(--line); vertical-align: top; color: #3D3654; }
.vd-recap-table td.vd-recap-name { font-weight: 700; vertical-align: top; }

.vd-recap-model-badge {
    font-family: var(--mono, ui-monospace, 'SF Mono', Menlo, monospace);
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 99px;
}

/* Team feedback (9/8) asked for the comp's four static price tiles back -
   see ProgramOverview.cshtml's closing recap for why these are a reference
   summary only, not a second source of truth for what a vendor can buy. */
.vd-recap-pricetiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.vd-recap-pricetile { border: 1px solid var(--line); border-top: 3px solid; border-radius: 14px; padding: 16px 18px; background: #fff; }
.vd-recap-pricetile-name { font-size: 13.5px; font-weight: 700; }
.vd-recap-pricetile-price { font-size: 18px; font-weight: 700; color: var(--blackberry); letter-spacing: -0.4px; margin: 4px 0 8px; }
.vd-recap-pricetile-desc { font-size: 12px; line-height: 1.6; color: #3D3654; }
.vd-recap-pricetiles-note { font-size: 11.5px; color: #3D3654; margin-top: 8px; }
.vd-recap-pricetiles-note a { font-weight: 600; }

@media (max-width: 780px) {
    .vd-recap-pricetiles { grid-template-columns: repeat(2, 1fr); }
}

.vd-recap-fee {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 16px;
    padding: 18px 22px;
    border-radius: 14px;
    background: rgba(230, 89, 76, .06);
    border: 1px solid rgba(230, 89, 76, .26);
}

.vd-recap-fee svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--coral); margin-top: 2px; }
.vd-recap-fee p { font-size: 12.5px; line-height: 1.7; color: #3D3660; margin: 0; }
.vd-recap-cta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .vd-prod-grid { grid-template-columns: 1fr; gap: 24px; }
    .vd-prod-detail { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
    .vd-models { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
    .vd-sec, .vd-sec--wide, .vd-toc, .vd-hero-page { padding-left: 20px; padding-right: 20px; }
    .vd-hero-page h1 { font-size: 30px; letter-spacing: -.6px; }
    /* Fix (site crawl, 2026-09): same overflow-x/overflow-y pairing gotcha
       as .vd-tabs (manage-account.css) - explicit overflow-y:hidden. */
    .vd-toc { overflow-x: auto; overflow-y: hidden; flex-wrap: nowrap; }
}
