/* THE BORROWED LAYER · the look of the blocks p-kit.js writes (see p-plan.js for what was taken and what was not).
   The site's own colours: the accent is its gold, a gain is its green, a loss its red; the gold button stays the
   request's alone. Nothing here switches, so nothing here can move the page. */
.p-sec { position: relative; z-index: 1; padding-block: clamp(56px, 7vw, 112px); background: #020304; }
.p-sec + .p-sec { padding-top: 0; }
.p-head { display: grid; gap: 16px; justify-items: start; max-width: 62ch; }
.p-sec--c .p-head { justify-items: center; text-align: center; margin-inline: auto; max-width: 980px; }
.p-sec--c .p-head .lead { margin-inline: auto; max-width: 62ch; }
/* the pill that names a block */
.p-pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--accent-line); background: rgba(214, 177, 92, .07); font: 600 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.p-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(214, 177, 92, .8); }
/* two lines: the first plain, the second in the accent */
.p-h { margin: 0; font: 650 clamp(30px, 2.2vw + 16px, 56px)/1.04 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
.p-h .gold { display: block; }
.p-col { display: grid; gap: 22px; justify-items: start; align-content: center; }
.p-two { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 76px); align-items: center; }
.p-k { font: 600 10.5px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--hue, 214 177 92)); }
.p-demo { display: inline-block; margin-bottom: 12px; font: 600 10.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-tertiary); }
.p-demo::before { content: "● "; color: var(--pl-pos); }
.pos { color: var(--pl-pos); } .neg { color: var(--pl-neg); }

/* the parts by name */
.p-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.p-chips a { display: inline-flex; padding: 9px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .03); color: var(--text-secondary); font: 600 13px/1 var(--font-sans); text-decoration: none; transition: color .25s, border-color .25s; }
.p-chips a:hover, .p-chips a:focus-visible { color: var(--text-primary); border-color: var(--accent-line); }

/* four answers, as cards of glass standing a step apart */
.p-answers { list-style: none; margin: 0; padding: 0 0 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.p-answer { display: grid; gap: 10px; align-content: start; padding: 20px 20px 18px; border-radius: 20px; border: 1px solid rgb(var(--hue) / .22); background: linear-gradient(180deg, rgb(var(--hue) / .11), rgb(var(--hue) / .02) 62%), #0a0d10; box-shadow: 0 26px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05); }
.p-answer:nth-child(even) { translate: 0 18px; }
.p-answer > b { font: 650 18px/1.2 var(--font-display); letter-spacing: -.01em; }
.p-answer dl { margin: 0; display: grid; gap: 7px; }
.p-answer dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.p-answer dt { color: var(--text-secondary); font-size: 13.5px; }
.p-answer dd { margin: 0; font: 700 15px/1 var(--font-mono); }
.p-answer p { margin: 2px 0 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .07); color: var(--text-secondary); font-size: 13px; line-height: 1.45; }

/* a list of what is there */
.p-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.p-check li { position: relative; padding: 13px 14px 13px 42px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .025); font: 600 14px/1.35 var(--font-sans); }
.p-check li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; border-radius: 50%; background: rgba(214, 177, 92, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6b15c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.p-check--row { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(26px, 3vw, 40px); }

/* three numbers on a line of light */
.p-nums { position: relative; list-style: none; margin: clamp(30px, 4vw, 56px) auto 0; padding: 0; max-width: 1060px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
/* the line of light runs behind the cards and out past them; the cards are glass, so it shows through and around */
.p-nums::before { content: ""; position: absolute; left: -14%; right: -14%; top: 50%; height: 2px; translate: 0 -50%; background: linear-gradient(90deg, transparent, rgba(240, 205, 125, .95) 22%, #fff3d2 50%, rgba(240, 205, 125, .95) 78%, transparent); box-shadow: 0 0 70px 16px rgba(214, 177, 92, .34), 0 0 18px 3px rgba(240, 205, 125, .6); }
.p-nums::after { content: ""; position: absolute; left: 12%; right: 12%; top: -34%; bottom: -34%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(214, 177, 92, .2), transparent 72%); filter: blur(12px); pointer-events: none; }
.p-nums li { position: relative; display: grid; gap: 12px; padding: clamp(22px, 2.4vw, 34px); border-radius: 22px; border: 1px solid rgba(255, 236, 190, .16); background: linear-gradient(180deg, rgba(24, 28, 33, .74), rgba(10, 13, 16, .82)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 30px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .09); text-align: left; }
.p-nums b { font: 700 clamp(32px, 3.2vw, 60px)/1 var(--font-mono); letter-spacing: -.03em; color: var(--pl-neg); }
.p-nums span { color: var(--text-secondary); font-size: 14.5px; line-height: 1.4; }
.p-fine { margin: 22px auto 0; text-align: center; font: 600 11px/1.5 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-tertiary); }

/* the part and the question it answers */
.p-grid { list-style: none; margin: clamp(26px, 3vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.p-grid a { position: relative; display: grid; gap: 12px; align-content: start; height: 100%; min-height: 148px; padding: 20px 44px 20px 20px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(180deg, rgb(var(--hue) / .09), transparent 70%), #0a0d10; color: inherit; text-decoration: none; transition: border-color .25s, translate .25s; }
.p-grid a:hover, .p-grid a:focus-visible { border-color: rgb(var(--hue) / .5); translate: 0 -3px; }
.p-grid b { font: 650 19px/1.22 var(--font-display); letter-spacing: -.015em; text-wrap: balance; }
.p-grid i { position: absolute; right: 18px; bottom: 16px; font-style: normal; color: rgb(var(--hue)); }
.p-found { margin-top: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 22px; align-items: center; padding: 18px 20px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .08); background: #0a0d10; text-align: left; }
.p-found ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--text-secondary); font-size: 14.5px; line-height: 1.45; }
.p-found b { color: var(--text-primary); font-family: var(--font-mono); font-size: .95em; }
.p-found--line { max-width: 1060px; margin-inline: auto; }

/* three steps */
.p-steps { counter-reset: p; list-style: none; margin: clamp(30px, 4vw, 52px) auto 0; padding: 0; max-width: 1180px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; text-align: left; }
.p-steps > li { counter-increment: p; position: relative; display: grid; gap: 10px; align-content: start; padding: 30px 22px 22px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(180deg, #10141a, #0a0d10); }
.p-steps > li::before { content: counter(p); position: absolute; left: 20px; top: -13px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #17130a; font: 700 13px/1 var(--font-mono); box-shadow: 0 0 0 5px #020304, 0 0 22px rgba(214, 177, 92, .55); }
.p-steps b { font: 650 19px/1.2 var(--font-display); letter-spacing: -.015em; }
.p-steps p { margin: 0; color: var(--text-secondary); font-size: 14.5px; line-height: 1.5; }
/* what the app reads, named in the first step */
.p-src { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.p-src li { padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .03); color: var(--text-secondary); font: 600 12px/1 var(--font-sans); }
.p-mini { margin-top: 6px; display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--surface-well); box-shadow: var(--well-rim); font: 600 12px/1.3 var(--font-mono); color: var(--text-tertiary); }
.p-mini em { font-style: normal; color: var(--text-primary); }
.p-mini--vs { grid-template-columns: minmax(0, 1fr) auto; }
.p-mini em.pos { color: var(--pl-pos); } .p-mini em.neg { color: var(--pl-neg); }
/* Step 1 with its tutorial clip (p-kit.js steps, a page with clips). A film of the app in a third-width card cannot
   be read, so the clip stands at about a chapter's window size or larger. From 1200 px it stands beside the three
   steps, which stack on the left as one compact list about as tall as the clip (steps 2 and 3 with their small
   example beside the sentence); narrower, the stacked steps grew far taller than the clip (500 px against 330 at
   1024), so there it stands right after step 1 at the full width of the column, and steps 2 and 3 share the row under
   it (one column on a phone). Each card's number stands inside it, on the left: stacked cards with the number over
   their top edge needed twice the gap. Step 1 wears the tone contour (e-kit.css) and the clip's frame a line of the
   same gold all the way round, so the two read as one. The clip's box is the kit's (.e-clip, 16 : 9 reserved), and
   it is not one of the parts the block brings in anew (live-cards.js replay), so it never moves. */
.p-stepv { counter-reset: p; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; margin-top: clamp(30px, 4vw, 52px); text-align: left; }
.p-stepv > .p-steps { display: contents; }
.p-stepv .p-steps > li:first-child, .p-stepv > .p-clip { grid-column: 1 / -1; }
.p-stepv > .p-clip { order: 1; }
.p-stepv .p-steps > li:nth-child(n+2) { order: 2; }
.p-stepv .p-steps > li { grid-template-columns: 28px minmax(0, 1fr); gap: 8px 14px; align-content: center; padding: 16px 20px; }
.p-stepv .p-steps > li > * { grid-column: 2; }
.p-stepv .p-steps > li > b { align-self: center; }
.p-stepv .p-steps > li::before { position: static; grid-column: 1; grid-row: 1; box-shadow: 0 0 18px rgba(214, 177, 92, .45); }
.p-stepv .p-mini { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; max-width: 400px; margin-top: 2px; padding: 9px 12px; }
.p-stepv .p-steps > .p-step-clip { border-color: transparent; background: linear-gradient(rgb(var(--tone) / .05), rgb(var(--tone) / .05)), linear-gradient(180deg, #10141a, #0a0d10); }
.p-steps .p-vid { display: flex; align-items: center; gap: 8px; color: var(--accent); font: 600 13px/1.35 var(--font-sans); }
.p-vid .ic { width: 16px; height: 16px; }
.p-clip { position: relative; --hue: 214 177 92; }
.p-clip > .e-clip { border-color: rgb(var(--hue) / .38); box-shadow: 0 0 70px rgb(var(--hue) / .12), 0 0 24px rgb(var(--hue) / .1); }
@media (min-width: 1200px) {
  .p-stepv { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: clamp(20px, 2.6vw, 44px); }
  .p-stepv > .p-steps { display: grid; grid-column: 1; grid-row: 1; margin: 0; max-width: none; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .p-stepv > .p-clip { grid-column: 2; grid-row: 1; align-self: start; }
  .p-stepv .p-steps > li:nth-child(n+2) { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .p-stepv .p-steps > li:nth-child(n+2) > b { grid-column: 2 / -1; }
  .p-stepv .p-steps > li:nth-child(n+2) > .p-mini { grid-column: 3; grid-row: 2; margin: 0; align-self: center; }
}
/* on a phone the number stands beside the title only, and the rest of the card takes its whole width */
@media (max-width: 600px) { .p-stepv { grid-template-columns: minmax(0, 1fr); } .p-stepv .p-steps > li > :not(b) { grid-column: 1 / -1; } }

/* what you get */
.p-get { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 64px); align-items: center; padding: clamp(24px, 3.4vw, 52px); border-radius: 28px; border: 1px solid var(--accent-line); background: radial-gradient(120% 90% at 0% 0%, rgba(214, 177, 92, .1), transparent 55%), #0a0d10; box-shadow: 0 40px 90px rgba(0, 0, 0, .5); }
.p-incl { display: grid; gap: 14px; }
.p-incl .p-check { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* a page whose own headings wear the pill too, as .p-pill. shared.css paints .session-title's words with its
   background (clipped to the text, colour transparent): the pill's own background must be unclipped and the words
   given a colour, or the pill stands empty. A grid stretches it across the column: it keeps its own width. */
.p-pills .session-title { width: fit-content; gap: 9px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--accent-line); background: rgba(214, 177, 92, .07); -webkit-background-clip: border-box; background-clip: border-box; color: var(--accent); filter: none; font: 600 11px/1 var(--font-mono); letter-spacing: .14em; }
.p-pills .session-title::before { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(214, 177, 92, .8); }

@media (max-width: 1100px) { .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .p-check--row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .p-two, .p-get { grid-template-columns: minmax(0, 1fr); } .p-steps { grid-template-columns: minmax(0, 1fr); gap: 26px; } .p-nums { grid-template-columns: minmax(0, 1fr); } .p-nums::before { display: none; } .p-found { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .p-answers, .p-grid, .p-check--row, .p-incl .p-check { grid-template-columns: minmax(0, 1fr); } .p-answer:nth-child(even) { translate: none; } .p-answers { padding-bottom: 0; } .p-grid a { min-height: 0; } }
