/* Services (variant D of the October 2026 drafts) and the archived drafts A, B and C
   (archive/page-services-a.php, -b.php, -c.php). Built on proemi.css, site.css, visual.css and variants.css. */

/* ---------- Shared ---------- */

/* "What you get": three ticked lines on a card or row */
.vs-gets { display: flex; flex-direction: column; gap: 9px; }
.vs-gets__item { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.35; color: var(--ink-soft); }
.vs-gets .hv-ok { width: 20px; height: 20px; }
.vs-gets .hv-ok svg { width: 12px; height: 12px; }
[data-theme="dark"] .vs-gets .hv-ok { background: color-mix(in srgb, var(--status) 24%, transparent); }

/* Service cards (B and C): the home card plus what you get and, in C, the AI service that fits */
.vs-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.vs-cards > li { display: flex; }
.vs-cards > li[hidden] { display: none; }
.vs-card .vs-gets { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.vs-card.vh-card--ai { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-2) 45%, transparent); }
.vs-card.vh-card--ai:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-2) 45%, transparent), var(--shadow-soft); }
.vs-pair { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent-2) 13%, var(--white)); font-size: 14px; line-height: 1.4; color: var(--ink-soft); }
.vs-pair__head { display: flex; align-items: center; gap: 8px; }
.vs-pair__head b { font-size: 14px; font-weight: 600; color: var(--ink); }
/* A card reached from a link on the page (#svc-…) is outlined. */
.vs-cards > li:target > .vh-card { box-shadow: 0 0 0 2px var(--accent), var(--shadow-soft); }
@media (max-width: 1199px) { .vs-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .vs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .vs-cards { grid-template-columns: minmax(0, 1fr); } .vs-cards .vh-card { min-height: 0; } }

/* The draft switcher (archive/services-v-switch.php) sits above the mobile action bar. */
@media (max-width: 767px) { .vh-switch { bottom: 84px; } }

/* ---------- Variant A: the list ---------- */

.vs-a-hero { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(24px, 2.6vw, 36px); padding: clamp(56px, 7vw, 120px) var(--hod-px-panel) clamp(20px, 2.4vw, 32px); }
.vs-a-hero__title { margin: 0; font-size: clamp(48px, 8.4vw, 136px); line-height: .98; letter-spacing: -0.045em; font-weight: 400; color: var(--ink); text-wrap: balance; }
.vs-a-hero__title .vh-serif { color: var(--accent); }
.vs-a-hero__foot { align-self: stretch; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; }
.vs-a-hero__sub { margin: 0; max-width: 52ch; color: var(--muted); font-weight: 400; }
.vs-a-index { align-self: stretch; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(16px, 3vw, 48px); border-top: 1px solid var(--line); }
.vs-a-index__item { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px 8px 0; color: var(--ink); text-decoration: none; }
.vs-a-index__item + .vs-a-index__item { padding-left: 24px; border-left: 1px solid var(--line); }
.vs-a-index__name { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
.vs-a-index__item:hover .vs-a-index__name { color: var(--accent); }

.vs-a-group { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 96px); align-items: start; }
.vs-a-group--dark { background: var(--surface); color: var(--ink); border-radius: var(--radius-panel); padding: clamp(48px, 6vw, 96px) var(--hod-px-panel); }
.vs-a-group__head { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }
.vs-a-group__title { margin: 0; font-size: clamp(44px, 4.6vw, 72px); line-height: 1; letter-spacing: -0.035em; font-weight: 400; color: var(--ink); }
.vs-a-group--dark .vs-a-group__title { font-family: var(--font-serif); font-style: italic; font-size: clamp(72px, 8vw, 128px); line-height: .9; letter-spacing: -0.01em; color: var(--accent-2); }
.vs-a-group__line { margin: 0; max-width: 30ch; }
.vs-a-rows { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--prm-c-05); }
.vs-a-group--dark .vs-a-rows { border-color: var(--line); }
.vs-a-row { display: grid; grid-template-columns: 40px minmax(0, 1.15fr) minmax(0, 1fr) 52px; gap: 12px clamp(20px, 3vw, 44px); align-items: start; padding: clamp(24px, 2.8vw, 36px) 0; border-top: 1px solid var(--prm-c-05); color: var(--ink); text-decoration: none; }
.vs-a-group--dark .vs-a-row { border-color: var(--line); }
.vs-a-row:hover { color: var(--ink); }
.vs-a-row__num { padding-top: .6em; }
.vs-a-row__main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vs-a-row__name { font-size: clamp(28px, 2.9vw, 44px); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.vs-a-row__label { -webkit-box-decoration-break: clone; box-decoration-break: clone; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s cubic-bezier(.2, .8, .2, 1); }
.vs-a-row:hover .vs-a-row__label { background-size: 100% 1px; }
.vs-a-row__line { max-width: 44ch; }
.vs-a-row__gets { padding-top: 8px; }
.vs-a-row__go { width: 52px; height: 52px; box-sizing: border-box; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--prm-c-05); color: var(--ink); transition: background .25s, border-color .25s, color .25s, transform .35s cubic-bezier(.2, .8, .2, 1); }
.vs-a-group--dark .vs-a-row__go { border-color: rgba(240, 240, 240, .25); }
.vs-a-row:hover .vs-a-row__go { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: rotate(-45deg); }
.vs-a-rows > li:target .vs-a-row__go { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (max-width: 1100px) {
	.vs-a-group { grid-template-columns: minmax(0, 1fr); }
	.vs-a-group__head { position: static; }
}
@media (max-width: 760px) {
	.vs-a-index { grid-template-columns: minmax(0, 1fr); }
	.vs-a-index__item, .vs-a-index__item + .vs-a-index__item { flex-direction: row; align-items: baseline; gap: 14px; padding: 14px 0; border-left: 0; }
	.vs-a-index__item + .vs-a-index__item { border-top: 1px solid var(--line); }
	.vs-a-index__item > :last-child { margin-left: auto; white-space: nowrap; }
	.vs-a-row { grid-template-columns: minmax(0, 1fr) 44px; gap: 14px 16px; }
	.vs-a-row__num { grid-column: 1 / -1; padding-top: 0; }
	.vs-a-row__main { grid-column: 1; grid-row: 2; }
	.vs-a-row__go { grid-column: 2; grid-row: 2; width: 44px; height: 44px; }
	.vs-a-row__gets { grid-column: 1 / -1; padding-top: 0; }
}

/* ---------- Variant B: cards ---------- */

.vs-b-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 96px); align-items: center; padding: clamp(48px, 6vw, 104px) var(--hod-px-panel) clamp(40px, 5vw, 72px); }
.vs-b-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.vs-b-hero__title { margin: 0; font-size: clamp(42px, 5.4vw, 88px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 400; color: var(--ink); text-wrap: balance; }
.vs-b-hero__title .vh-serif { display: block; color: var(--accent); }
.vs-b-hero__sub { margin: 0; max-width: 44ch; color: var(--muted); font-weight: 400; }
.vs-b-quick { display: flex; flex-direction: column; padding: 8px 22px 10px; background: var(--white); color: var(--ink); border-radius: var(--radius-card); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.vs-b-quick__head { padding: 16px 0 12px; }
.vs-b-quick__row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.vs-b-quick__row:hover { color: var(--ink); }
.vs-b-quick__row > svg { color: var(--label); transition: transform .3s ease, color .3s; }
.vs-b-quick__row:hover > svg { color: var(--ink); transform: translateX(3px); }
.vs-b-quick__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--page); color: var(--ink); transition: background .25s, color .25s; }
.vs-b-quick__icon.is-ai { background: color-mix(in srgb, var(--accent-2) 22%, transparent); color: #0b6f9e; }
.vs-b-quick__icon .hod-icon { width: 24px; height: 24px; }
.vs-b-quick__row:hover .vs-b-quick__icon { background: var(--accent); color: var(--on-accent); }
.vs-b-quick__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vs-b-quick__text b { font-size: 17px; font-weight: 500; line-height: 1.3; }
.vs-b-quick__text small { font-family: var(--font-mono); font-size: 12.5px; line-height: 16px; color: var(--label); }
@media (max-width: 1000px) { .vs-b-hero { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
	.vs-b-quick { padding: 4px 16px 6px; }
	.vs-b-quick__row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; }
	.vs-b-quick__icon { width: 40px; height: 40px; border-radius: 12px; }
	.vs-b-quick__text b { font-size: 16px; }
}

/* ---------- Variant C: AI built in ---------- */

/* Service finder: a scripted chat in the page head (services.js) */
.vs-finder__chat { min-height: 360px; }
.vs-finder__answer { display: flex; flex-direction: column; gap: 8px; }
.vs-finder__picks { display: flex; flex-direction: column; gap: 6px; max-width: 92%; }
.vs-finder__pick { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 14px 7px 7px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; transition: border-color .2s, transform .25s cubic-bezier(.2, .8, .2, 1); }
.vs-finder__pick:hover { color: var(--ink); border-color: var(--prm-c-05); transform: translateX(3px); }
.vs-finder__pick > svg { color: var(--label); }
.vs-finder__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--page); color: var(--ink); }
.vs-finder__icon.is-ai { background: color-mix(in srgb, var(--accent-2) 22%, transparent); color: #0b6f9e; }
.vs-finder__icon .hod-icon { width: 20px; height: 20px; }
.vs-finder__name { display: flex; flex-direction: column; min-width: 0; }
.vs-finder__name b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.vs-finder__name small { font-family: var(--font-mono); font-size: 11.5px; line-height: 15px; color: var(--label); }
.vs-finder__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px; border-top: 1px solid var(--line); }
.vs-finder__chip { cursor: pointer; min-height: 40px; padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--prm-c-06); background: var(--white); color: var(--ink); font-size: 14px; line-height: 1.2; transition: background .2s, color .2s, border-color .2s; }
.vs-finder__chip:hover { border-color: var(--prm-01); }
.vs-finder__chip[aria-pressed="true"] { background: var(--prm-01); border-color: var(--prm-01); color: var(--on-dark); }
html:not(.js) .vs-finder__chips { display: none; }
.vs-finder__typing { align-self: flex-start; display: flex; gap: 4px; padding: 14px 16px; background: var(--white); border-radius: 16px 16px 16px 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.vs-finder__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--prm-c-05); animation: vs-typing 1s ease-in-out infinite; }
.vs-finder__typing i:nth-child(2) { animation-delay: .15s; }
.vs-finder__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes vs-typing { 0%, 80%, 100% { opacity: .35; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.vs-finder [data-finder-in] { animation: vs-in .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vs-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 560px) {
	.vs-finder__chat { min-height: 430px; }
	.vs-finder__picks { max-width: 100%; }
	.vs-finder__chips { padding: 12px; }
	.vs-finder__chip { font-size: 13.5px; padding: 8px 12px; }
}

/* The four AI services: picture and text side by side on wide screens */
.vs-c-ai { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.vs-c-ai > li { display: flex; }
.vs-c-aicard { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--prm-c-01); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color .25s, transform .35s cubic-bezier(.2, .8, .2, 1); }
.vs-c-aicard:hover { color: var(--ink); border-color: rgba(240, 240, 240, .35); transform: translateY(-4px); }
.vs-c-ai > li:target .vs-c-aicard { border-color: var(--accent); }
.vs-c-aicard__pic { height: auto; min-height: 280px; border: 0; border-radius: 0; background: color-mix(in srgb, var(--accent-2) 9%, var(--prm-c-01)); }
.vs-c-aicard__pic .hv-mock { max-width: 340px; }
.vs-c-aicard__body { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.4vw, 30px); }
.vs-c-aicard .vs-gets { margin-top: 4px; }
.vs-c-aicard:hover .vh-card__more { color: var(--ink); }
@media (max-width: 1240px) {
	.vs-c-aicard { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
	.vs-c-aicard__pic { min-height: 0; height: 250px; }
}
@media (max-width: 760px) { .vs-c-ai { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Variant D: the list you build from (now /services/) ---------- */

/* Situations in the page head: a row per group (label, then its chips), and why the picked set under them. */
.vs-d-sits { align-self: stretch; display: flex; flex-direction: column; gap: 16px; margin-top: clamp(8px, 2vw, 24px); border-top: 1px solid var(--line); padding-top: 20px; }
.vs-d-sits__rows { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px clamp(16px, 2vw, 32px); }
.vs-d-sits__row { display: contents; }
.vs-d-sits__label { padding-top: 15px; }
.vs-d-sits__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vs-d-sits__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; border-top: 1px solid var(--line); padding-top: 14px; }
.vs-d-sits__why { margin: 0; max-width: 88ch; color: var(--ink-soft); font-weight: 400; }
.vs-d-sits__why .pm-text-mono-badge { margin-right: 8px; }
.vs-d-sits__foot .hod-linkbtn { margin-left: auto; }
@media (max-width: 760px) {
	.vs-d-sits__rows { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.vs-d-sits__label { padding-top: 10px; }
	/* Two situations to a row, so the five groups stay short on a phone (each group has an even count). */
	.vs-d-sits__chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vs-d-sits__chips .hod-chip { white-space: normal; text-align: left; line-height: 1.3; padding: 10px 14px; border-radius: 14px; }
}
.vs-d.hod-build { scroll-margin-top: 88px; }
.vs-d .hod-build__parts { gap: clamp(40px, 4.4vw, 64px); }
.vs-d-group { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 88px; }
.vs-d-group--dark { background: var(--surface); color: var(--ink); border-radius: var(--radius-panel); padding: clamp(24px, 3.4vw, 48px); }
.vs-d-group__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; }
.vs-d-group__title { margin: 0; font-size: clamp(40px, 4.4vw, 68px); line-height: 1; letter-spacing: -0.035em; font-weight: 400; color: var(--ink); }
.vs-d-group--dark .vs-d-group__title { font-family: var(--font-serif); font-style: italic; font-size: clamp(56px, 6vw, 96px); line-height: .9; letter-spacing: -0.01em; color: var(--accent-2); }
.vs-d-group__line { margin: 0; max-width: 36ch; }
.vs-d-rows { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--prm-c-05); }
.vs-d-row { border-top: 1px solid var(--prm-c-05); scroll-margin-top: 88px; }
.vs-d-group--dark .vs-d-rows, .vs-d-group--dark .vs-d-row { border-color: var(--line); }
.vs-d-row__toggle { cursor: pointer; width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1.1fr) minmax(0, 1fr) 48px; gap: 12px clamp(16px, 2.4vw, 36px); align-items: start; padding: clamp(20px, 2.4vw, 30px) 0; background: none; border: 0; text-align: left; color: var(--ink); font: inherit; }
.vs-d-row__num { padding-top: .5em; }
.vs-d-row__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vs-d-row__name { font-size: clamp(26px, 2.5vw, 38px); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.vs-d-row__gets { padding-top: 6px; }
/* The add button: a "+" that turns into an orange tick once the service is in the setup. */
/* The row is a clickable area (services.js); the round button is the toggle itself, with the state in aria-pressed. */
.vs-d-add { cursor: pointer; width: 48px; height: 48px; box-sizing: border-box; padding: 0; border-radius: 50%; display: grid; place-items: center; background: none; border: 1px solid var(--prm-c-05); color: var(--ink); font: inherit; transition: background .25s, border-color .25s, color .25s, transform .3s cubic-bezier(.2, .8, .2, 1); }
.vs-d-add svg { grid-area: 1 / 1; width: 18px; height: 18px; transition: opacity .2s, transform .3s cubic-bezier(.2, .8, .2, 1); }
.vs-d-add svg:not(.vs-d-add__plus) { opacity: 0; transform: scale(.6); }
.vs-d-group--dark .vs-d-add { border-color: rgba(240, 240, 240, .25); }
.vs-d-row__toggle:hover .vs-d-add { border-color: var(--ink); transform: scale(1.06); }
.vs-d-add[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.vs-d-row__toggle:hover .vs-d-add[aria-pressed="true"] { border-color: var(--accent); }
.vs-d-add[aria-pressed="true"] .vs-d-add__plus { opacity: 0; transform: rotate(90deg) scale(.6); }
.vs-d-add[aria-pressed="true"] svg:not(.vs-d-add__plus) { opacity: 1; transform: none; }
.vs-d-row.is-on .vs-d-row__name { color: var(--accent-ink); }
.vs-d-group--dark .vs-d-row.is-on .vs-d-row__name { color: var(--accent); }
.vs-d-row__opts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 32px; padding: 0 0 clamp(20px, 2.4vw, 30px) calc(32px + clamp(16px, 2.4vw, 36px)); }
.vs-d-row__opts[hidden] { display: none; }
.vs-d-row__more { display: flex; align-items: center; gap: 8px; min-height: 36px; margin-left: auto; color: var(--muted); }
.vs-d-group--dark .hod-opt { background: transparent; border-color: rgba(240, 240, 240, .22); color: var(--ink-soft); }
.vs-d-group--dark .hod-opt:hover { border-color: var(--on-dark); }
.vs-d-group--dark .hod-opt[aria-pressed="true"] { background: var(--on-dark); border-color: var(--on-dark); color: var(--hero-dark); }
.vs-d-send { box-sizing: border-box; justify-content: center; }
.vs-d .hv-chain__chip { max-width: 100%; }
.vh-brief__setup { margin-bottom: 8px; }
/* The foot of "Your setup": the send button and "Clear setup", spaced like the rest of the summary. */
.vs-d-foot { display: flex; flex-direction: column; gap: 20px; }
/* Wide screens, where the summary is sticky: it never grows past the window. Taller content scrolls inside it,
   while the foot stays pinned at its bottom (it covers the panel's bottom padding). While more is hidden under
   the foot, services.js sets is-more and the foot casts a soft shadow over it. */
@media (min-width: 1110px) {
	.vs-d .hod-summary { --pad: clamp(22px, 2.4vw, 30px); max-height: calc(100vh - 104px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
	.admin-bar .vs-d .hod-summary { max-height: calc(100vh - 136px); }
	.vs-d-foot { position: sticky; bottom: calc(-1 * var(--pad)); z-index: 1; margin: -12px calc(-1 * var(--pad)) calc(-1 * var(--pad)); padding: 12px var(--pad) var(--pad); background: var(--white); transition: box-shadow .2s; }
	.hod-summary.is-more .vs-d-foot { box-shadow: 0 -14px 18px -14px rgba(0, 0, 0, .18); }
}
@media (max-width: 760px) {
	.vs-d-row__toggle { grid-template-columns: minmax(0, 1fr) 44px; gap: 12px 16px; }
	.vs-d-row__num { grid-column: 1 / -1; padding-top: 0; }
	.vs-d-row__main { grid-column: 1; grid-row: 2; }
	.vs-d-add { grid-column: 2; grid-row: 2; width: 44px; height: 44px; }
	.vs-d-row__gets { grid-column: 1 / -1; padding-top: 0; }
	.vs-d-row__opts { padding-left: 0; }
	.vs-d-row__more { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.vs-d-add, .vs-d-add svg, .vs-d-foot,
	.vs-a-row__label, .vs-a-row__go, .vs-b-quick__row > svg, .vs-b-quick__icon, .vs-finder__pick, .vs-c-aicard { transition: none; }
	.vs-finder__typing i, .vs-finder [data-finder-in] { animation: none; }
}
