/* Version 1 (12 Nov 2026 evening): the Platform page below the demo, redesigned by Fable after Michiel's review
   ("platform too"; "a bit AI sloppy"). Loaded after variant-hs.css. Scoped to .p-* on the platform page. */

/* shared: a forest mono number */
.p-n { font: 500 13px/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .02em; color: var(--forest, #003d20); }

/* ---------- why: three editorial rows, number | headline | reason | one product detail ---------- */
.p-why { padding-top: 48px; }
.p-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--a-ink); }
.p-rows > li { display: grid; grid-template-columns: 56px minmax(0, 4.2fr) minmax(0, 3.6fr) minmax(0, 4.6fr); gap: 0 40px; align-items: start; padding: 36px 0 40px; border-bottom: 1px solid var(--a-line2); }
.p-rows .p-n { padding-top: 10px; }
.p-rh { margin: 0; font: 400 clamp(30px, 3.1vw, 42px)/1.02 var(--font); letter-spacing: -.04em; color: var(--a-ink); text-wrap: balance; }
.p-rows > li > p { margin: 6px 0 0; font-size: 16px; line-height: 25px; color: var(--a-ink2); text-wrap: pretty; }

/* ---------- data: headline and engraving left, the record we read right (p-scan, below) ---------- */
.p-data-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 96px; align-items: start; }
.p-engr { display: block; width: min(100%, 360px); height: auto; margin: 36px 0 0; mix-blend-mode: multiply; }

/* ---------- waitlist and the card panels (Michiel, 21 Nov 2026): no lime field, no painting and no panel. The
   words and the form are two white cards straight on the page; the row cards and the data card lose their stone
   panel too ("it should be directly on the background"); the pack as a term list ---------- */
.p-why .p-fx.x-surf, .p-data .p-dx.x-surf { min-height: 0; padding: 0; border-radius: 0; background: none; overflow: visible; }
.p-wait-field { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px; align-items: stretch; color: var(--a-ink); }
.p-wait-l { padding: 36px 40px; border: 1px solid var(--a-line); border-radius: 12px; background: #fff; }
.p-wait-l .a-lead { margin-top: 18px; max-width: 30em; color: var(--a-ink2); }
.p-pack { margin: 28px 0 0; border-top: 1px solid var(--a-line); }
.p-pack div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2px 24px; padding: 14px 0; border-bottom: 1px solid var(--a-line); }
.p-pack div:last-child { border-bottom: 0; padding-bottom: 0; }
.p-pack dt { font-size: 15.5px; line-height: 23px; color: var(--forest, #003d20); }
.p-pack dd { margin: 0; font-size: 15.5px; line-height: 23px; color: var(--a-ink); text-wrap: pretty; }
.p-wait .g-form { border: 1px solid var(--a-line); background: #fff; box-shadow: none; }
.p-wait .g-form input { font-size: 16px; }   /* 21 Nov: under 16 px an iPhone zooms the page when the field gets focus */

/* ---------- narrow ---------- */
@media (max-width: 1023px) {
  .p-rows > li { grid-template-columns: 40px minmax(0, 1fr); gap: 12px 20px; padding: 28px 0 32px; }
  .p-rows .p-n { grid-row: 1; padding-top: 8px; }
  .p-rh { grid-column: 2; }
  .p-rows > li > p { grid-column: 2; }
  .p-data-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .p-engr { width: min(100%, 300px); margin-top: 28px; }
  .p-wait-field { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 599px) {
  .p-why { padding-top: 32px; }
  .p-rows > li { grid-template-columns: 32px minmax(0, 1fr); gap: 10px 14px; }
  .p-pack div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .p-wait-l { padding: 24px 20px; }
}

/* ---------- 19 Nov 2026, the Cardinal round: the demo moves ----------
   Michiel picked the shorter Platform page with motion (option B of the group "plat"); the shorter words are simply
   the page now. What is left of it here: when a screen of the demo opens, its content arrives in order. The ranked
   accounts, the signals of a company, and in the CRM screen our newest note while our two fields are written. Not
   with reduced motion and not without script. */
@keyframes p-in { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }
@keyframes p-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: no-preference) {
  html.js .a-dm-rk > li { animation: p-in .5s var(--x-ease) both; animation-delay: calc(var(--i, 0) * 120ms + 80ms); }
  html.js .a-dm-sig > li { animation: p-in var(--x-in) var(--x-ease) both; animation-delay: calc(var(--i, 0) * 180ms + 200ms); }
  html.js :is(.a-dm-rk, .a-dm-sig) > li:nth-child(2) { --i: 1; }
  html.js :is(.a-dm-rk, .a-dm-sig) > li:nth-child(3) { --i: 2; }
  html.js .a-dm-props .is-ours dd { width: fit-content; animation: p-type .6s steps(14, end) .3s both; }
  html.js .a-dm-props .is-ours + .is-ours dd { animation-delay: .9s; }
  html.js .a-dm-act > li:first-child { animation: p-in .5s var(--x-ease) .2s both; }
}
@media print { .a-dm *, .p-fx *, .p-dx * { transition: none !important; animation: none !important; } }
/* 21 Nov 2026, the demo's tabs on a phone: three across on one row and 44 px high (variant-e.css sets two across, so "In HubSpot" stood alone on a second row, 34 px high) */
@media (max-width: 600px) {
  .a-dm-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .a-dm-tab { height: 44px; padding: 0 6px; }
}

/* ---------- the elements on the right of the three rows (p-fx) and of the data block (p-dx) ----------
   Michiel, 19 Nov: "I like the lines now, but just the elements on the right". The rows and the data block keep their
   lines, numbers and headlines. The elements he picked (rows B, data C) are built from the kit in variant-hx.css
   (x-surf, x-card, x-feed, x-brief, x-chip and so on). What the kit does not have is below, in the kit's type sizes
   and motion tokens:
     p-rk     one tinted row in a list card, the fit as words (p-fit)      row 01
     p-rec    a CRM record whose fields say who filled them (p-f, p-by)     row 03
     p-scan   a record with the fields we read and the ones we never read   the data block
   Start states only under html.x-ok, as in the kit. The kit loads after this file, so a rule here that changes a kit
   piece is written one class heavier (.p-why .x-surf). */
.p-fx, .p-dx { min-width: 0; margin: 2px 0 0; }
.p-dx { margin-top: 8px; }
.p-why .x-surf { --x-w: 100%; min-height: 0; padding: 24px; }   /* a surface here is as tall as its card: no fixed height */
.p-data .x-surf { --x-w: 620px; min-height: 0; padding: 40px 32px; }
.p-why .x-head, .p-data .x-head { flex-wrap: wrap; }
.p-why .x-brief .x-row > div > span:first-child { text-wrap: pretty; }

/* row 01: what you tell us once (four tiles) feeds the ranked list */
.p-rk .is-top > div { background: var(--lime-tint, #eff8e2); }
html.x-ok .p-why .x-feed:not(.is-in) :is(.x-srcs > *, .x-lines i) { transition: none; }   /* the unlit state is there at once (the kit would play it backwards, tile by tile, when the page loads) */
.p-fit { flex: none; font-size: 12.5px; line-height: 18px; font-weight: 500; color: var(--forest, #003d20); white-space: nowrap; }
.p-fit.is-good { font-weight: 400; color: var(--a-ink2); }

/* row 03: the record. Our two fields are written on beat 1 and 2, the count in the head comes last */
.p-rec { overflow: hidden; }
.p-f { margin: 0; }
.p-f > div { display: grid; grid-template-columns: minmax(0, 9.6em) minmax(0, 1fr) auto; align-items: center; min-height: 44px; border-top: 1px solid var(--a-line); }
.p-f > div:first-child { border-top: 0; }
.p-f dt { align-self: stretch; display: flex; align-items: center; padding: 8px 10px 8px 16px; background: var(--x-paper); font-size: 12.5px; line-height: 17px; color: var(--a-ink2); }
.p-f dd { min-width: 0; margin: 0; padding: 8px 12px; font-size: 13.5px; line-height: 18px; text-wrap: balance; }
.p-f .p-by { display: flex; align-items: center; gap: 5px; padding: 8px 14px 8px 0; font-size: 12px; font-weight: 500; color: var(--forest, #003d20); }
.p-by img { width: 14px; height: 14px; }
.p-f .is-ours { background: linear-gradient(var(--lime-tint, #eff8e2), var(--lime-tint, #eff8e2)) no-repeat; background-size: calc(var(--p-on, 1) * 100%) 100%; }
.p-f .is-ours dd > span { display: inline-block; vertical-align: top; clip-path: inset(0 calc((1 - var(--p-on, 1)) * 100%) 0 0); }
.p-f .is-ours .p-by { opacity: var(--p-on, 1); }
html.x-ok .p-f .is-ours { transition: background-size .6s var(--x-draw); }
html.x-ok .p-f .is-ours dd > span { transition: clip-path .6s steps(14, end) .12s; }
html.x-ok .p-f .is-ours .p-by { transition: opacity var(--x-base) var(--x-ui) .7s; }
html.x-ok .p-rec[data-beat="0"] .is-ours, html.x-ok .p-rec[data-beat="1"] .is-ours ~ .is-ours { --p-on: 0; }
html.x-ok .p-rec .x-head small { opacity: var(--x-on, 1); transition: opacity var(--x-in) var(--x-ease); }
html.x-ok .p-rec[data-beat="0"] :is(.is-ours, .is-ours *, .x-head small) { transition: none; }   /* the empty state is there at once, it is not played backwards */

/* the data block: a company in your CRM. The two fields we read are tinted and marked one after the other, the others have no value */
.p-scan { overflow: hidden; }
.p-sf { margin: 0; padding: 0; list-style: none; }
.p-sf > li { display: grid; grid-template-columns: minmax(0, 9.6em) minmax(0, 1fr) auto; align-items: center; min-height: 44px; border-bottom: 1px solid var(--a-line); }
.p-sf > li > span:first-child { align-self: stretch; display: flex; align-items: center; padding: 8px 10px 8px 16px; background: var(--x-paper); font-size: 12.5px; line-height: 17px; color: var(--a-ink2); }
.p-sf > li > b { min-width: 0; padding: 8px 12px; font-size: 13.5px; line-height: 18px; font-weight: 400; overflow-wrap: anywhere; }
.p-sf > li > i { width: min(104px, 70%); height: 8px; margin: 0 12px; border-radius: 4px; background: var(--a-line); }
.p-sf > li > :last-child { padding-right: 16px; opacity: var(--p-on, 1); }
.p-never { font-size: 12.5px; line-height: 16px; color: var(--a-ink2); white-space: nowrap; }
.p-sf .is-read { background: linear-gradient(var(--lime-tint, #eff8e2), var(--lime-tint, #eff8e2)) no-repeat; background-size: calc(var(--p-on, 1) * 100%) 100%; }
.p-sf > li:nth-child(2) { --p-w: .9s; }
.p-sf > li:nth-child(3) { --p-w: 1.3s; }
.p-sf > li:nth-child(4) { --p-w: 1.5s; }
html.x-ok .p-scan:not(.is-in) .p-sf { --p-on: 0; }
html.x-ok .p-scan.is-in .is-read { transition: background-size var(--x-slow) var(--x-ease) var(--p-w, .2s); }
html.x-ok .p-scan.is-in .p-sf > li > :last-child { transition: opacity var(--x-base) var(--x-ui) calc(var(--p-w, .2s) + .6s); }
.p-st { margin: 0; padding: 6px 16px 8px; background: var(--x-paper); }
.p-st > div { display: grid; grid-template-columns: minmax(0, 10.8em) minmax(0, 1fr); gap: 0 12px; padding: 7px 0; font-size: 13px; line-height: 18px; }
.p-st dt { color: var(--a-ink2); }
.p-st dd { margin: 0; text-wrap: pretty; }

@media (max-width: 1023px) {
  .p-fx { grid-column: 2; margin-top: 18px; max-width: 460px; }
}
@media (min-width: 1024px) and (max-width: 1179px), (max-width: 430px) {   /* the column is under 350 px wide */
  .p-why .x-surf { padding: 14px; }
  .p-why .x-srcs > li { padding: 0 6px; }
  .p-why .x-srcs svg { display: none; }
  .p-why .x-brief .x-row > div { flex-direction: column; align-items: flex-start; gap: 0; }
  .p-why .x-brief .x-row > div > span:first-child { margin-bottom: 7px; }
  .p-why .x-brief .x-row > div > .x-chip { margin-top: 0; }
  .p-f > div, .p-sf > li { grid-template-columns: minmax(0, 7.4em) minmax(0, 1fr) auto; }
}
@media (max-width: 599px) {
  .p-data .x-surf { padding: 16px; }
  .p-st > div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 359px) {   /* the smallest phones: the tiles under each other */
  .p-why .x-feed { --x-cols-s: 1; }
}

/* ---------- 21 Nov 2026, after the independent review (handoff-2026-11-19/website/reports/round-2-review.md) ---------- */
/* The demo's tab bar: opaque white with a hairline. variant-e.css made it 72% white with a blur behind it (glass), which
   brand 2.0 does not allow. On white the tab that is on needs a fill of its own: the stone of the chips, no shadow. */
.a-dm-tabs { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 0 0 1px rgba(36, 35, 32, .08), 0 10px 30px -18px rgba(36, 35, 32, .5); }
.a-dm-tab[aria-selected="true"] { background: var(--x-stone, #f3f1ec); box-shadow: none; }
/* The demo between 901 and 999 px: with its sidebar the list column was so narrow that the third account ran 93 px
   past the window's edge and was cut off (the window has a fixed height there). The sidebar comes in from 1000 px,
   where the three accounts fit. */
@media (min-width: 901px) and (max-width: 999px) { .a-dm-side { display: none; } }
/* "Watch" in the demo on phones and tablets: 18 px high, so 9 px more to tap above and below (the rows are 51 px apart) */
@media (max-width: 900px) {
  .a-dm-sim button { position: relative; }
  .a-dm-sim button::after { content: ""; position: absolute; inset: -9px 0; }
}

/* 21 Nov evening, Michiel: "remove the big 123". The demo's rank numbers are gone from "This week" and from the
   company view, so their column goes too (variant-e.css: 48, 40 and 30 px in the list, 64 and 36 px in the company view) */
.a-dm-rk > li { grid-template-columns: minmax(0, 1fr) 150px; }
.a-dm-now { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1100px) { .a-dm-rk > li { grid-template-columns: minmax(0, 1fr); } }
