/* Open Source Projects and its first project's page, Vektor Slice (the #vektor-slice view, owner 08.11).
   Open Source: a card per project, the words on the left and a screenshot on the right; the whole card opens
   the project's page. Vektor Slice: the centred head with the button that waits ("Coming Soon to GitHub",
   greyed like the calculator's waiting Next, since the repo is still private); the three steps on a black
   band, a row each with a real still of the plugin from the owner's demo recordings; by hand against with the plugin in two soft cards; what it
   does in six cards; why you host it yourself on the second band; setup in three cards; who makes it, with
   the audit button. Teal on the bands is Turquoise 4 and 5, as on every black card. Colours come from
   tokens.css only. */

/* ---- Open Source Projects: the project cards ---- */
.os-list { display: grid; gap: 20px; max-width: calc(1040px + var(--gutter) * 2); margin-top: 56px; }
.os-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 3.4vw, 40px);
  color: inherit;
}
/* a Vektor Slice badge (the card's and the page's) leads with Figma's own mark in its colours, like the hero
   badge leads with Klaviyo's */
.badge-logo { display: block; flex: none; width: auto; height: 15px; }
.badge:has(> .badge-logo) { padding-left: 12px; }
.os-copy h3 { margin-top: 20px; font-size: var(--t-title); line-height: 1.1; letter-spacing: -0.035em; }
.os-copy h3 + p { margin-top: 14px; max-width: 440px; font-size: var(--t-lead); line-height: 1.55; }
.os-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: var(--t-body); font-weight: 500; color: var(--accent-words); transition: color var(--hover) ease; }
.os-more svg { width: 16px; height: 16px; }
.os-card:hover .os-more { color: var(--fg); }
/* the plugin is tall: the card shows its top, where the frame and its first slices are */
.os-shot { aspect-ratio: 4 / 3; }
.os-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---- Vektor Slice: the head ---- */
.vs-intro { padding-bottom: clamp(48px, 6vw, 80px); }
.vs-cta { margin-top: 34px; }
/* the button that waits: no link yet, greyed, nothing under the mouse */
.btn.vs-soon:disabled { background: var(--line); color: var(--fg-soft); cursor: default; }
.vs-note { max-width: 560px; margin: 16px auto 0; font-size: var(--t-label); line-height: 1.5; color: var(--fg-soft); text-wrap: balance; }

/* a still of the plugin at work (the owner's own demo recordings, cropped clear of the desktop): rounded, a
   hairline round it */
.vs-shot { display: block; overflow: hidden; border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--line); }
.vs-shot img { display: block; width: 100%; height: auto; }
.band .vs-shot { border-color: var(--glass-line); }

/* ---- the three steps on the first band ---- */
.vs-how-head { max-width: 640px; margin: 0 auto; text-align: center; }
.vs-how-head h2 { font-family: var(--f-head); font-weight: 500; font-size: var(--t-headline); line-height: 1.08; letter-spacing: -0.04em; color: var(--on-sky); }
.vs-how-lead { margin-top: 20px; font-size: var(--t-lead); line-height: 1.5; color: var(--on-sky-soft); text-wrap: balance; }
.vs-steps { list-style: none; display: flex; flex-direction: column; gap: clamp(56px, 7vw, 96px); margin-top: clamp(56px, 6vw, 80px); }
/* a step is a row: its words, and a wide still of the plugin at work; the sides swap from row to row */
.vs-step { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.vs-step:nth-child(even) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.vs-step:nth-child(even) .vs-step-copy { order: 2; }
.vs-step-copy { max-width: 420px; }
.vs-step-no { font-size: var(--t-label); font-weight: 500; line-height: 1.2; color: var(--accent-words); }
.band .vs-step-no { color: var(--accent-on-sky); }
.vs-step h3 { margin-top: 14px; font-family: var(--f-head); font-weight: 500; font-size: var(--t-quote); line-height: 1.2; letter-spacing: -0.02em; color: var(--on-sky); }
.vs-step h3 + p { margin-top: 14px; font-size: var(--t-lead); line-height: 1.55; color: var(--on-sky-soft); text-wrap: pretty; }

/* ---- by hand, against with the plugin ---- */
.vs-compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: calc(1040px + var(--gutter) * 2); margin-top: 56px; }
.vs-way-name { font-size: var(--t-label); font-weight: 500; line-height: 1.2; color: var(--fg-soft); }
.vs-way.is-ours { background: var(--white); border-color: var(--accent); }
.vs-way.is-ours .vs-way-name { color: var(--accent-words); }
.vs-way-list { list-style: none; margin-top: 14px; counter-reset: vs-way; }
.vs-way-list li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; line-height: 24px; color: var(--fg); }
.vs-way-list li + li { border-top: 1px solid var(--line); }
.vs-way-list.is-numbered li { color: var(--fg-soft); }
.vs-way-list.is-numbered li::before { counter-increment: vs-way; content: counter(vs-way, decimal-leading-zero); flex: none; width: 20px; font-size: var(--t-label); font-weight: 500; color: var(--fg-soft); font-variant-numeric: tabular-nums; }

/* ---- what it does: six soft cards, three to a row on wide screens, each with its own small drawing
   (uploads/art/icons/slice-*, drawn for this page by tools/make-art.mjs --icons, owner 08.11) ---- */
.vs-feature-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.vs-feature-grid > .card { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }

/* ---- why you host it yourself, on the second band ---- */
.vs-own-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.vs-own-copy h2 { font-family: var(--f-head); font-weight: 500; font-size: var(--t-headline); line-height: 1.08; letter-spacing: -0.04em; color: var(--on-sky); text-wrap: balance; }
.vs-own-text { max-width: 500px; margin-top: 24px; font-size: var(--t-lead); line-height: 1.55; color: var(--on-sky-soft); text-wrap: pretty; }
.vs-own-list { list-style: none; max-width: 540px; margin-top: 28px; }
.vs-own-list li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; line-height: 24px; color: var(--on-sky); }
.vs-own-list li + li { border-top: 1px solid var(--glass-line); }
.vs-own-list .note-box rect { fill: var(--hero-press); }
.vs-own-list .note-box path { stroke: var(--on-hero-press); }

/* ---- setup: three soft cards, each with the mark of the service it sets up, then the button again ---- */
.vs-setup-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.vs-setup-grid > .card { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
/* the real marks of Vercel, Figma and Klaviyo (uploads/brand/, the files as their makers publish them),
   top left like the home page's process cards, the step's number top right; sized by eye to one weight */
.vs-logo { display: block; flex: none; height: 36px; width: auto; }
.vs-logo[src*="klaviyo"] { height: 30px; }
.vs-logo[src*="vercel"] { height: 32px; }
.vs-cta-end { margin-top: 48px; text-align: center; }

@media (max-width: 1099px) {
  .vs-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .os-card { grid-template-columns: 1fr; }
  .vs-step, .vs-step:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .vs-step:nth-child(even) .vs-step-copy { order: 0; }
  .vs-compare-grid, .vs-setup-grid { grid-template-columns: 1fr; }
  .vs-setup-grid > .card { display: block; grid-row: auto; }
  .vs-own-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .os-list, .vs-compare-grid, .vs-setup-grid, .vs-feature-grid { margin-top: 40px; gap: 12px; }
  .vs-feature-grid { grid-template-columns: 1fr; }
  .vs-feature-grid > .card { display: block; grid-row: auto; }
  .vs-feature-grid > .card h3 + p { margin-top: 12px; }
  .vs-steps { margin-top: 40px; }
  .vs-cta .btn { width: 100%; }
}
