/* Fractional AI Architect pages, and the partner pages.
 *
 * Loaded ALONGSIDE ai-programs-v2.css, not instead of it. These pages reuse the
 * .apv2 hero, panel, definition, cards, tracks, timeline, mesh, proof, india,
 * lead, faq, related and cta components wholesale, plus the four shared
 * partials, which all emit .apv2- classes.
 *
 * Everything below is the small set of components that do not exist yet. The
 * codebase already carries ten near-identical namespaced stylesheets with
 * drifting values, so this deliberately adds components rather than an
 * eleventh copy of the design system.
 */

.arv2 {
    --ar-warn: #a4402f;
}

/* Hours tag in the engagement panel. The panel rows normally end in a lime dot;
   here they end in a duration, which needs to read as data. */
.arv2 .arv2-hours { padding: 4px 8px; border: 1px solid #59674e; color: var(--ap-lime); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: 8px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }

/* Comparison table --------------------------------------------------------- */

.arv2 .arv2-compare-wrap { overflow-x: auto; border: 1px solid var(--ap-line); }
.arv2 .arv2-compare { width: 100%; min-width: 680px; border-collapse: collapse; background: #fff; font-size: 14px; }
.arv2 .arv2-compare th,
.arv2 .arv2-compare td { padding: 17px 20px; border-bottom: 1px solid var(--ap-line); text-align: center; }
.arv2 .arv2-compare th:first-child,
.arv2 .arv2-compare td:first-child { text-align: left; }
.arv2 .arv2-compare thead th { background: var(--ap-ink); color: rgba(255,255,255,.62); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.arv2 .arv2-compare thead th:last-child { background: var(--ap-olive); color: var(--ap-lime); }
.arv2 .arv2-compare tbody tr:last-child td { border-bottom: 0; }
.arv2 .arv2-compare tbody th { font-weight: 600; }
.arv2 .arv2-compare td.is-best { background: rgba(229,254,150,.18); font-weight: 700; }

/* Fit and limits ------------------------------------------------------------ */

.arv2 .arv2-fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); border-top: 1px solid var(--ap-line); border-left: 1px solid var(--ap-line); }
.arv2 .arv2-fit__col { padding: 28px; border-right: 1px solid var(--ap-line); border-bottom: 1px solid var(--ap-line); background: #fff; }
.arv2 .arv2-fit__col h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--ap-line); font-size: 17px; font-weight: 600; letter-spacing: -.025em; }
.arv2 .arv2-fit__col ul { margin: 0; padding: 0; list-style: none; }
.arv2 .arv2-fit__col li { position: relative; padding: 10px 0 10px 20px; color: var(--ap-muted); font-size: 14px; line-height: 1.65; }
.arv2 .arv2-fit__col li:before { position: absolute; left: 0; content: "\21b3"; }
.arv2 .arv2-fit__col--yes li:before { color: var(--ap-green); }
.arv2 .arv2-fit__col--no li:before { color: var(--ar-warn); }

/* CSS-drawn tick and cross. This design language ships no SVG icons. */
.arv2 .arv2-mark { position: relative; flex: 0 0 auto; width: 22px; height: 22px; border: 1px solid var(--ap-line); border-radius: 50%; }
.arv2 .arv2-mark:before,
.arv2 .arv2-mark:after { position: absolute; background: currentColor; content: ""; }
.arv2 .arv2-mark--yes { color: var(--ap-green); border-color: rgba(101,125,0,.45); }
.arv2 .arv2-mark--yes:before { top: 11px; left: 5px; width: 6px; height: 1px; transform: rotate(45deg); }
.arv2 .arv2-mark--yes:after { top: 9px; left: 9px; width: 10px; height: 1px; transform: rotate(-50deg); }
.arv2 .arv2-mark--no { color: var(--ar-warn); border-color: rgba(164,64,47,.4); }
.arv2 .arv2-mark--no:before,
.arv2 .arv2-mark--no:after { top: 10px; left: 6px; width: 10px; height: 1px; }
.arv2 .arv2-mark--no:before { transform: rotate(45deg); }
.arv2 .arv2-mark--no:after { transform: rotate(-45deg); }

/* Partner cards -------------------------------------------------------------- */

.arv2 .arv2-partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); border-top: 1px solid var(--ap-line); border-left: 1px solid var(--ap-line); }
.arv2 .arv2-partner { display: flex; flex-direction: column; min-height: 260px; padding: 28px; border-right: 1px solid var(--ap-line); border-bottom: 1px solid var(--ap-line); background: rgba(255,255,255,.4); color: inherit; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.arv2 .arv2-partner:hover { z-index: 1; background: #fff; transform: translateY(-4px); }
.arv2 .arv2-partner__logo { display: flex; align-items: center; height: 46px; margin-bottom: 22px; }
.arv2 .arv2-partner__logo img { max-width: 132px; max-height: 40px; object-fit: contain; }
.arv2 .arv2-partner__name { font-size: 24px; font-weight: 600; letter-spacing: -.035em; }
.arv2 .arv2-partner h3 { margin: 14px 0 12px; font-size: 19px; line-height: 1.22; font-weight: 600; letter-spacing: -.03em; }
.arv2 .arv2-partner p { margin: 0 0 20px; color: var(--ap-muted); font-size: 14px; line-height: 1.65; }
.arv2 .arv2-partner__go { margin-top: auto; color: var(--ap-green); font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* Platforms we build on. Deliberately a lighter treatment than a partner card,
   because it is a different and smaller claim. */
.arv2 .arv2-platforms { border-top: 1px solid var(--ap-line); }
.arv2 .arv2-platform { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--ap-line); color: inherit; text-decoration: none; }
.arv2 .arv2-platform:hover { background: var(--ap-paper); }
.arv2 .arv2-platform strong { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.arv2 .arv2-platform p { margin: 0; color: var(--ap-muted); font-size: 13px; line-height: 1.55; }
.arv2 .arv2-platform span { color: var(--ap-green); font-size: 15px; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.arv2 .arv2-platform:hover span { opacity: 1; transform: none; }

/* Partner detail split ------------------------------------------------------- */

.arv2 .arv2-partner-hero__logo { display: inline-flex; align-items: center; padding: 14px 18px; border-radius: 4px; background: #fff; }
.arv2 .arv2-partner-hero__logo img { max-width: 150px; max-height: 44px; object-fit: contain; }

@media (max-width: 800px) {
    .arv2 .arv2-fit { grid-template-columns: 1fr; }
    .arv2 .arv2-partners { grid-template-columns: 1fr; }
    .arv2 .arv2-platform { grid-template-columns: 1fr; gap: 6px; }
    .arv2 .arv2-platform span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .arv2 * { scroll-behavior: auto !important; transition: none !important; }
}
