/* Agenda Piena — «Agenda Piena VS <tool>» (vs.js), on top of funnel.css, sales.css and home.css (same paper, tiles,
   ink bar). Mobile first: the table is a list of rows, each row two cells side by side (ours | theirs), no sideways
   scroll at 320 px. Logical properties only: Arabic and Urdu mirror by themselves. */

.vs-hero { padding-block: clamp(40px, 7vw, 96px) clamp(24px, 4vw, 48px); }
.vs-hero__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .12em .32em; }
.vs-hero__h span { direction: inherit; }
.vs-vs { font-style: normal; font-size: .5em; letter-spacing: .08em; padding: .18em .5em; border-radius: 999px; background: var(--ink, #15171c); color: var(--surface); align-self: center; }
.vs-crumb { margin: 0 0 12px; font-size: .95rem; }
.vs-crumb a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 4px; }
.vs-kicker { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }

/* in short: pick them / pick us */
.vs-pick__grid, .vs-cost__grid { display: grid; gap: 16px; margin-block-start: 24px; }
@media (min-width: 820px) { .vs-pick__grid, .vs-cost__grid { grid-template-columns: 1fr 1fr; } }
.vs-pick__card, .vs-cost__card { padding: clamp(20px, 3vw, 32px); }
.vs-pick__card h3, .vs-cost__card h3 { margin: 0 0 12px; font-size: 1.2rem; }
.vs-pick__card ul, .vs-method__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.vs-pick__card li, .vs-method__list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.vs-pick__card .ap-icon, .vs-method__list .ap-icon { flex: none; width: 20px; height: 20px; margin-block-start: 2px; color: var(--accent-ink); }
.vs-pick__card--ap, .vs-cost__card--ap { box-shadow: 0 0 0 2px var(--accent), var(--hm-shadow); }

/* the table */
.vs-legend { position: sticky; inset-block-start: calc(76px + env(safe-area-inset-top, 0px)); z-index: 5; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-block: 24px 8px; }
.vs-legend span { padding: 10px 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--hm-shadow); font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.vs-legend span:first-child { background: var(--ink, #15171c); color: var(--surface); }
.vs-groups, .vs-rows { margin: 0; padding: 0; list-style: none; }
.vs-group { margin-block-start: 28px; }
.vs-group__h { margin: 0 0 10px; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.vs-rows { display: grid; gap: 10px; }
.vs-row { padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: var(--hm-shadow); }
.vs-row__k { margin: 0 0 10px; font-weight: 650; line-height: 1.35; }
.vs-row__cells { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vs-cell { min-width: 0; padding: 10px 12px; border-radius: 14px; background: var(--hm-inner); }
.vs-cell__v { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 700; }
.vs-cell__n { margin: 6px 0 0; font-size: .88rem; line-height: 1.4; color: var(--ink-2, #3b3f47); overflow-wrap: anywhere; }
.vs-cell__s { margin: 6px 0 0; font-size: .8rem; }
.vs-cell__s a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.vs-mark { display: grid; place-items: center; inline-size: 24px; block-size: 24px; border-radius: 8px; }
.vs-mark .ap-icon { width: 15px; height: 15px; }
.vs-cell--yes .vs-mark { background: #d8efe0; color: #11603a; }
.vs-cell--part .vs-mark { background: #f6ead0; color: #7a5300; }
.vs-cell--no .vs-mark { background: #f4dcda; color: #9a2a20; }
.vs-cell--unknown .vs-mark { background: var(--paper-2); color: var(--ink-3); }
@media (min-width: 900px) {
  .vs-row { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 16px; align-items: start; }
  .vs-row__k { margin: 10px 0 0; }
  .vs-legend { grid-template-columns: minmax(200px, 1fr) 1fr 1fr; }
  .vs-legend::before { content: ''; }
}

/* where they win */
.vs-wins__list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
@media (min-width: 820px) { .vs-wins__list { grid-template-columns: 1fr 1fr; } }
.vs-wins__list li { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; line-height: 1.45; }
.vs-wins__list .ap-icon { flex: none; width: 20px; height: 20px; margin-block-start: 2px; color: var(--accent-ink); }

/* the cost */
.vs-cost__card ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.vs-cost__card li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding-block-end: 12px; border-block-end: 1px solid var(--paper-2); }
.vs-cost__card li:last-child { border: 0; padding: 0; }
.vs-cost__card li strong { font-size: 1.15rem; white-space: nowrap; }
.vs-cost__card li > a, .vs-cost__card li > span:not(.vs-cost__t) { grid-column: 1 / -1; font-size: .82rem; color: var(--ink-3); }

/* cta, method, others, index */
.vs-cta__card, .vs-method__card { padding: clamp(22px, 4vw, 44px); }
.vs-method__k { margin: 20px 0 8px; font-size: 1rem; }
.vs-method__src { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; font-size: .88rem; }
.vs-method__src a { overflow-wrap: anywhere; color: var(--ink-2, #3b3f47); }
.vs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.vs-chips a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 16px; border-radius: 999px; background: var(--surface); box-shadow: var(--hm-shadow); font-weight: 600; }
.vs-chips__vs { margin-inline-end: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; color: var(--accent-ink); }
.vs-index__h { margin: 36px 0 12px; }
.vs-index__grid { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .vs-index__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .vs-index__grid { grid-template-columns: repeat(3, 1fr); } }
.vs-index__card { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; min-height: 100%; padding: 18px 20px; color: inherit; text-decoration: none; transition: translate .3s var(--hm-spring); }
.vs-index__card strong { font-size: 1.05rem; }
.vs-index__card span { grid-column: 1; font-size: .9rem; color: var(--ink-3); line-height: 1.4; }
.vs-index__card .ap-icon { grid-row: 1 / span 2; grid-column: 2; width: 20px; height: 20px; color: var(--accent-ink); }
.vs-index__card:hover { translate: 0 -2px; }
[dir="rtl"] .vs-index__card .ap-icon, [dir="rtl"] .vs-cta .sp-btn .ap-icon { scale: -1 1; }
@media (prefers-reduced-motion: reduce) { .vs-index__card { transition: none; } }
