/* shared page CSS for every BrainCraft page (only what sits inside a visual or the close's name) */
.nav__logo .bc-logo { width: 28px; height: 28px; border-radius: 7px; flex: none; }
/* the close word: Outfit needs a full line box or its caps are clipped */
.close__word { line-height: 1.02; font-size: clamp(64px, 19.6vw, 284px); }

/* ---------- BrainCraft product screens, shared by the feature pages (inside visuals only) ---------- */
.bc-win { background: #fbfbf9; color: #16201a; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgb(22 32 26 / .1), 0 30px 60px -30px rgb(22 32 26 / .55); font: 400 14px/1.4 var(--font-text); }
.bc-win__bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid rgb(22 32 26 / .1); font-size: 13px; color: #4f5751; white-space: nowrap; }
.bc-win__bar b { color: #16201a; font-weight: 500; }
.bc-win__bar .sp { flex: 1; }
.bc-code { font-family: var(--font-mono); color: #16201a; background: #ecede8; border-radius: 6px; padding: 3px 8px; }
.bc-q { padding: 20px 24px 28px; display: grid; align-content: start; gap: 10px; }
.bc-q__kind { font-size: 13px; color: #4f5751; }
.bc-q__text { margin: 0 0 6px; font: 500 20px/1.3 var(--font-display); letter-spacing: -0.01em; color: #16201a; }
.bc-opt { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; padding: 0 14px; border-radius: 9px; background: #f0f1ed; overflow: hidden; font-size: 14px; color: #16201a; }
.bc-opt::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v, 0%); background: #dfe5df; }
.bc-opt.is-right::before { background: #cfe6d6; }
.bc-opt > * { position: relative; }
.bc-opt b { font-weight: 500; font-variant-numeric: tabular-nums; }
.bc-opt.is-right > span::after { content: " ✓"; color: #2e7a4b; font-weight: 500; }
.bc-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: #4f5751; flex-wrap: wrap; }
.bc-foot .sp { flex: 1; }
.bc-tag { height: 28px; padding: 0 10px; border-radius: 8px; display: inline-flex; align-items: center; font-size: 13px; background: #ecede8; color: #16201a; }
.bc-tag--ok { background: #e4efe6; color: #2a7445; }   /* 4.83:1; the brand green reads 4.45 on this pale */
.bc-cloud { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 16px; padding: 18px 8px 8px; }
.bc-cloud span { font-family: var(--font-display); line-height: 1.1; color: #16201a; }
.bc-cloud .w1 { font-size: 44px; color: #2e7a4b; } .bc-cloud .w2 { font-size: 30px; } .bc-cloud .w3 { font-size: 22px; color: #3d6b8f; } .bc-cloud .w4 { font-size: 17px; color: #4f5751; }
.bc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bc-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid rgb(22 32 26 / .1); border-radius: 10px; background: #fff; font-size: 14px; color: #16201a; }
.bc-list li small { display: block; font-size: 13px; color: #4f5751; }
.bc-vote { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; background: #f0f1ed; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.bc-vote::before { content: "▲"; font-size: 10px; color: #2e7a4b; }
.bc-stars { display: flex; gap: 6px; font-size: 30px; line-height: 1; color: #d8dbd4; }
.bc-stars .on { color: #2e7a4b; }
.bc-scale { display: flex; justify-content: space-between; font-size: 13px; color: #4f5751; }
.bc-avg { font: 500 40px/1 var(--font-display); color: #16201a; }
.bc-sentence { font: 400 19px/1.9 var(--font-display); color: #16201a; margin: 0; }
.bc-blank { display: inline-block; min-width: 96px; padding: 0 10px; border-bottom: 2px solid #2e7a4b; border-radius: 4px 4px 0 0; background: #e4efe6; color: #2e7a4b; font-family: var(--font-mono); font-size: 16px; line-height: 1.6; text-align: center; }
.bc-blank--empty { background: #f0f1ed; border-color: #b9bfb8; color: #4f5751; }
.bc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-chips span { height: 30px; padding: 0 12px; border-radius: 8px; display: inline-flex; align-items: center; font-size: 13px; background: #f0f1ed; color: #16201a; font-family: var(--font-mono); }
.bc-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bc-rank li { display: grid; grid-template-columns: 28px 14px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: #f0f1ed; font-size: 14px; color: #16201a; }
.bc-rank li:first-child { background: #e4efe6; }
.bc-rank i { font-style: normal; font-family: var(--font-mono); color: #4f5751; }
.bc-rank em { width: 14px; height: 14px; border-radius: 4px; background: var(--c); }
.bc-rank b { font-weight: 500; font-variant-numeric: tabular-nums; }
.bc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bc-stats div { padding: 10px 12px; border-radius: 10px; background: #f0f1ed; font-size: 13px; color: #4f5751; }
.bc-stats b { display: block; font: 500 24px/1.1 var(--font-display); color: #16201a; }
.bc-input { border: 1px solid rgb(22 32 26 / .18); border-radius: 10px; padding: 10px 12px; background: #fff; font-size: 15px; color: #16201a; }
.bc-input small { display: block; margin-top: 4px; font-size: 13px; color: #4f5751; text-align: right; }
.bc-btn { height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; background: #2e7a4b; color: #f7f7f4; }
.bc-pick { display: grid; gap: 8px; }
.bc-pick span { min-height: 42px; padding: 0 14px; border-radius: 10px; display: flex; align-items: center; gap: 10px; border: 1px solid rgb(22 32 26 / .14); background: #fff; font-size: 15px; color: #16201a; }
.bc-pick span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #b9bfb8; flex: none; }
.bc-pick--multi span::before { border-radius: 4px; }
.bc-pick span.is-on { border-color: #2e7a4b; background: #eef6f0; }
.bc-pick span.is-on::before { border-color: #2e7a4b; background: #2e7a4b; box-shadow: inset 0 0 0 3px #eef6f0; }
.bc-sent { font-size: 13px; color: #2e7a4b; font-weight: 500; text-align: center; }

/* the hero's lit stage with the presenter window cut by its right and bottom edges */
.bc-stage { background:
  radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%),
  radial-gradient(60% 50% at 90% 100%, color-mix(in oklab, var(--ground-bg) 80%, var(--ground-accent)), transparent 70%),
  var(--ground-bg); }
.bc-stage > .bc-win { position: absolute; left: var(--s-7); top: var(--s-7); width: calc(100% - var(--s-7) + 28px); }
.bc-stage > .bc-win .bc-q { padding-right: 76px; }
.bc-stage > .ly-float { z-index: 2; }
@media (max-width: 1023px) { .bc-stage > .bc-win { left: var(--s-5); top: var(--s-5); width: calc(100% - var(--s-5) + 28px); } }
@media (max-width: 639px) { .bc-win__bar .sp ~ span { display: none; }
  .bc-stage > .bc-win { left: var(--s-4); top: var(--s-4); width: calc(100% - var(--s-4) + 28px); } .bc-stage > .bc-win .bc-q { padding: 14px 60px 20px 16px; } .bc-q__text { font-size: 17px; } .bc-stage > .ly-float { display: none; } }

/* the student's phone in the split frame */
.bc-phone { width: min(300px, 100%); border-radius: 40px; padding: 12px; background: #16201a; box-shadow: 0 30px 60px -30px rgb(22 32 26 / .6); }
.bc-phone__screen { border-radius: 30px; background: #fbfbf9; min-height: 470px; padding: 32px 18px 20px; display: grid; align-content: start; gap: 12px; color: #16201a; font: 400 15px/1.4 var(--font-text); }
.bc-phone__top { display: flex; justify-content: space-between; font-size: 13px; color: #4f5751; }
.bc-phone__q { margin: 0; font: 500 19px/1.3 var(--font-display); }

/* small previews in the related cards */
.bc-minis .panel { --p-h: 200px; }
.bc-mini { padding: 14px; display: grid; gap: 6px; font-size: 13px; }
.bc-mini .bc-opt { min-height: 30px; font-size: 13px; }
.bc-mini .bc-cloud { padding: 6px 0 0; gap: 0 10px; }
.bc-mini .bc-cloud .w1 { font-size: 30px; } .bc-mini .bc-cloud .w2 { font-size: 21px; } .bc-mini .bc-cloud .w3 { font-size: 16px; } .bc-mini .bc-cloud .w4 { font-size: 13px; }
.bc-mini .bc-list li, .bc-mini .bc-rank li { padding: 6px 10px; font-size: 13px; }
.bc-mini .bc-stars { font-size: 24px; }
.bc-mini .bc-sentence { font-size: 15px; line-height: 1.8; }
.bc-mini .bc-blank { min-width: 64px; font-size: 13px; }
@media (max-width: 639px) { .bc-minis .panel { --p-h: 170px; } }

/* One "screen" is capped at 960px on desktop: the kit sizes every section to exactly 1 or 2 x 100svh, which on a
   tall monitor (or a zoomed-out browser) stretches each section far past its content. 960 keeps the 1440x900
   rhythm the design was checked at and stops the empty bands on taller windows. */
@media (min-width: 1280px) {
  :root {
    --ly-screen: calc(min(100svh, 960px) - var(--ly-nav, 72px));
    --ly-fit: calc(min(100svh, 960px) - var(--padt, 120px) - var(--padb, 72px) - var(--bar, 0px));
    --ly-hero-h: calc(min(100svh, 960px) - var(--nav, 72px) - var(--hgap, 48px) - var(--hpadb, 64px) - var(--bar, 0px));
  }
  main > :is(section, .section) { height: calc(var(--h, 1) * min(100svh, 960px)); }
  /* the closing footer is at least a screen, never exactly one: its call to action, the name set large and the link
     columns are taller than 900px, and a fixed height laid the name over the columns. It is the page's last block,
     so growing past the screen hides nothing */
  footer.closing { height: auto; min-height: min(100svh, 960px); }
  main > :is(.hero, .section--hero) { height: min(100svh, 960px); }
}

/* the language switch: in the bar from 640px, in the menu sheet on a phone */
.bc-lang-sheet { display: none; }
@media (max-width: 639px) { .nav__actions .bc-lang { display: none; } .bc-lang-sheet { display: block; } }

/* a long main-action label keeps only its first word in the phone bar */
@media (max-width: 399px) { .nav__actions .bc-start-tail { display: none; } }

/* Statement sections (one large sentence, its moment) keep a full screen like every section; the sentence sits
   in the middle of it, so the screen is filled on purpose, not left empty below two lines (owner's review). */
main > :is(section, .section).statement > .wrap { display: flex; flex-direction: column; justify-content: center; }

/* ---------- Tablet (owner's review): two columns, sections sized to their content on a portrait tablet,
   pictures in their own shape, one step bigger text, the product window inside its frame ---------- */

/* 768-1023: a split (its words on span-5 or span-7, the picture on span-6 start-7) stands side by side, six
   columns each, as on a desktop, instead of words over a full-width picture; card rows keep the kit's own rules */
@media (min-width: 768px) and (max-width: 1023px) {
  main .grid > :is(.span-5, .span-7):not(.card, .tile) { grid-column: 1 / span 6; }
  main .grid > :is(.span-6.start-7, .span-4.start-9):not(.card, .tile, .ly-collage) { grid-column: 7 / span 6; }
  main :is(.hero--split, .hero--collage) .hero__grid { display: grid; align-items: start; }
  main .hero--split .hero__media, main .hero--collage .hero__art { height: auto; min-height: 0; margin-top: 0; aspect-ratio: 3 / 4; flex: none; }
  main .hero--collage .hero__art { --ly-cut: 0px; }
  main .hero--collage .hero__art > .ly-piece--main { width: calc(100% - 2 * var(--s-6)); }
  /* the words and the lists a step bigger, for the wider column */
  :root:root { --t-label: 14px; --t-small: 15px; --t-body: 17px; --t-lead: 20px; --t-card: 20px; --t-h3: 26px; }
}

/* a portrait tablet (and a narrow window): a section is as tall as its content, not a full 1180px screen
   with its lower half empty; the hero too, so the next section follows its picture */
@media (min-width: 640px) and (max-width: 1279px) and (orientation: portrait) {
  main > :is(section, .section):not(.hero, .section--hero), footer.closing { min-height: 0; }
  main > :is(.hero, .section--hero) { height: auto; min-height: 0; }
  main > :is(.hero, .section--hero) > :is(.wrap, .container) { height: auto; }
  /* a two-screen section's halves follow each other at their own height, not two equal screens */
  main > :is(section, .section).g2 > :is(.wrap, .container) { grid-template-rows: auto auto; row-gap: var(--s-9); }
}

/* 640-1023 and a portrait tablet: a photograph keeps its own shape (4:3, the founder 3:4) instead of
   stretching down to the section's foot and being cropped there; a page's own ratio (an id rule) still wins */
/* (the phone too: stacked under its words a photograph has no row to take its height from, and collapsed to nothing) */
@media (max-width: 639px) {
  main .grid > .frame--photo:not(.hero__media, .bc-peek) { align-self: start; height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  main .grid > .frame--photo.bc-portrait { aspect-ratio: 4 / 5; }
}
@media (min-width: 640px) and (max-width: 1023px), (min-width: 640px) and (max-width: 1279px) and (orientation: portrait) {
  main .grid > .frame--photo:not(.hero__media, .bc-peek) { align-self: start; height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  main .grid > .frame--photo.bc-portrait { aspect-ratio: 3 / 4; }
  main > :is(section, .section) > .wrap > .frame--photo { flex: none; height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  /* the product window stands inside its stage with the same margin on both sides (it runs off the right edge
     only on a desktop) */
  .bc-stage > .bc-win { width: calc(100% - 2 * var(--s-5)); }
  .bc-stage > .bc-win .bc-q { padding-right: 16px; }
}

/* ---------- Peek splits (owner's review): each row of the list shows its own BrainCraft screen in the visual beside
   it, on hover, focus or tap (system.js peek); the visual takes the full height of the list, so the section reads as
   one block. On a photograph the screen sits as a card in its lower corner. ---------- */
.bc-peek-grid { align-items: stretch; }
.bc-peek { position: relative; display: grid; place-items: center; min-height: 440px; padding: var(--s-7) var(--s-6); overflow: hidden; }
.bc-peek::before { display: none; }
/* a page's own shape for its photograph frame (4:3 on the feature pages) would widen a stage held at its minimum
   height past its column; a stage takes the height of its list instead */
main .grid > .bc-peek { aspect-ratio: auto !important; }
.bc-peek > .bc-peek__shot { grid-area: 1 / 1; width: 100%; max-width: 520px; position: relative; z-index: 3; }
.bc-peek > .bc-peek__shot[hidden] { display: none; }
.bc-peek > .bc-peek__shot > .bc-phone { margin-inline: auto; }
.bc-peek .bc-phone__screen { min-height: 0; }
.bc-peek--photo { place-items: end start; padding: var(--s-6); }
.bc-peek--photo > .bc-peek__shot { max-width: 400px; }
.bc-win--card { box-shadow: 0 0 0 1px rgb(22 32 26 / .08), 0 24px 48px -20px rgb(22 32 26 / .5); }
.bc-win--card .bc-q { padding: 16px 18px 20px; }
.bc-peek-grid li[data-peek-to] { cursor: pointer; padding-left: var(--s-4); box-shadow: inset 2px 0 0 transparent; transition: box-shadow var(--dur) var(--ease); }
/* the row on show is marked by a bar in the accent on its left (the kit's dot fell under a two-line row) */
.bc-peek-grid [data-peek-to] .rows__name::after { display: none; }
.bc-peek-grid li[data-peek-to].is-on { box-shadow: inset 2px 0 0 var(--accent); }
.bc-peek-grid li[data-peek-to] .rows__name { transition: color var(--dur) var(--ease); }
@media (min-width: 1024px) {
  /* the stage is at least 520px (about 60% of a 900px screen), so a short list does not leave the section half empty */
  .bc-peek { min-height: min(520px, var(--ly-fit, 520px)); }
  /* beside its screen the row on show is in ink, the others step back */
  .bc-peek-grid li[data-peek-to]:not(.is-on) .rows__name { color: var(--muted); }
  .bc-peek-grid li[data-peek-to]:not(.is-on):hover .rows__name { color: var(--ink); }
}
@media (max-width: 639px) {
  .bc-peek { min-height: 360px; padding: var(--s-5) var(--s-4); }
  .bc-peek--photo { aspect-ratio: auto; min-height: 420px; }
}

/* ---------- Sections sized to their content, at every width (owner's review, asked again on desktop): a section
   held at a full screen left an empty band under any content shorter than the screen. The hero keeps the first
   screen and a statement keeps its full screen with the sentence centred; every other section (and the closing
   footer) is as tall as its content plus the section padding. ---------- */
main > :is(section, .section):not(.hero, .section--hero, .statement) { height: auto; min-height: 0; }
main > :is(section, .section):not(.hero, .section--hero, .statement) > :is(.wrap, .container) { height: auto; }
main > :is(section, .section).g2 > :is(.wrap, .container) { grid-template-rows: auto auto; row-gap: var(--s-9); }
footer.closing { height: auto; min-height: 0; }
/* a block that took what the screen left (the home page's app window) keeps a height of its own */
main > :is(section, .section) > .wrap > .fill, main > :is(section, .section) .group > .fill { flex: none; min-height: 520px; }
@media (max-width: 639px) { main > :is(section, .section) > .wrap > .fill, main > :is(section, .section) .group > .fill { min-height: 420px; } }
/* the padding between two sections: 88 above a section's content and 40 under it (128 between two blocks of content,
   down from 192); a phone 72 and 32 */
:root:root { --padt: 88px; --padb: 40px; }
@media (max-width: 639px) { :root:root { --padt: 72px; --padb: 32px; } }

/* peek shots that are photographs (a chapter's own picture), alone or with a screen card in their lower corner */
/* grid-area auto: an absolute child placed in a grid cell takes the cell as its box; the photograph takes the frame */
.bc-peek > .bc-peek__shot--fill { position: absolute; inset: 0; grid-area: auto; width: auto; max-width: none; z-index: 2; }
/* a row's line under its name, on every page (the page groups each had their own copy; pricing had none) */
.bc-rel small { display: block; font-size: var(--t-small); color: var(--muted); font-weight: 400; }
.bc-peek__shot--fill > .frame__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--ly-pos, 50% 50%); }
.bc-peek__card { position: absolute; left: var(--s-6); bottom: var(--s-6); width: min(400px, calc(100% - 2 * var(--s-6))); z-index: 3; }
.bc-peek__card > .bc-phone { width: min(260px, 100%); }
.bc-peek__card .bc-phone__screen { min-height: 0; }
/* a chosen value in a row of chips (a rating from 0 to 10) */
.bc-chips span.is-on { background: #2e7a4b; color: #f7f7f4; }
@media (max-width: 639px) { .bc-peek__card { left: var(--s-4); bottom: var(--s-4); width: calc(100% - 2 * var(--s-4)); } }

/* ---------- Home hero (owner's review): tabs above the product window switch the kind of session, and the window
   lifts as the page scrolls: it starts tipped back and straightens until it faces the reader (lift.js, scroll-linked,
   no timer; flat with reduced motion or no script). The hero is as tall as its content so the window can sit under
   the fold. ---------- */
main > .hero:has(.bc-lift) { height: auto; min-height: 0; padding-bottom: var(--padb); }
main > .hero:has(.bc-lift) > .wrap { height: auto; }
.bc-lift__tabs { display: inline-flex; align-self: center; gap: 4px; margin-top: var(--s-7); padding: 5px; border-radius: 16px;
  background: color-mix(in oklab, var(--surface, #ecede8) 80%, transparent); border: 1px solid var(--line, rgb(22 32 26 / .1)); }
.bc-lift__tabs > button { height: 40px; padding: 0 20px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  font: 500 15px/1 var(--font-text); color: var(--muted); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.bc-lift__tabs > button:hover { color: var(--ink); }
.bc-lift__tabs > button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(22 32 26 / .14), 0 0 0 1px rgb(22 32 26 / .06); }
.bc-lift__tabs > button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* clip-path clips the painted ground to the round corners even with the 3D perspective (border-radius with overflow
   did not, in a browser that composites the ground's canvas) */
/* the ground's pre-rendered picture (the painterly landscape at seed 11): it paints at once; a desktop draws the live
   ground over it, a phone keeps the picture and never renders WebGL during load (system.js, data-fx-picture); the
   selector outranks .hero--centred .hero__window, whose background shorthand would clear it */
:root .hero__window.bc-lift { background-image: url(/images/hero-ground.webp); background-size: cover; background-position: center; }
.hero--centred .hero__window.bc-lift { flex: none; min-height: 0; margin-top: var(--s-6); padding: clamp(20px, 4.5vw, 64px); border-radius: 32px; clip-path: inset(0 round 32px);
  -webkit-mask-image: none; mask-image: none; perspective: 1800px; perspective-origin: 50% 0%; }
/* the card: the full content width, a frosted rim 10px wide with round corners (30px outside, 22px for the window) */
.bc-lift__card { position: relative; z-index: 1; display: grid; max-width: 1180px; margin-inline: auto; padding: 10px; border-radius: 30px;
  /* no backdrop blur: over the moving painterly ground it re-blurred every frame and cost seconds of main thread on a phone */
  background: rgb(255 255 255 / .62);
  box-shadow: 0 60px 100px -45px rgb(22 32 26 / .6), 0 0 0 1px rgb(255 255 255 / .7), inset 0 1px 0 rgb(255 255 255 / .8);
  transform-origin: 50% 100%; transform: rotateX(var(--lift-x, 0deg)) scale(var(--lift-s, 1)); will-change: transform; }
html.mo-js .bc-lift__card { --lift-x: 18deg; --lift-s: .94; }
/* the four windows share one cell, so the card keeps the tallest one's height and a tab never moves the page; the
   chosen one fades in (lift.js marks the others data-off; with no script only the first shows) */
.bc-lift__card > .bc-win { grid-area: 1 / 1; position: static; left: auto; top: auto; width: auto; transform: none; border-radius: 22px;
  transition: opacity 260ms var(--ease), visibility 0s; }
.bc-lift__card > .bc-win[data-off] { opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease), visibility 0s linear 200ms; }
.bc-lift .bc-win__bar { height: 52px; padding: 0 20px; }
/* the window is as tall as its tallest tab's content (the home page's 420px floor left an empty band under each) */
:root .bc-lift .bc-win__body { min-height: 0; }
:root .bc-lift .bc-q { padding-bottom: 28px; }
/* the results play (lift.js): a bar grows to its value, a question slides in */
.bc-lift .bc-opt::before { transition: width 900ms cubic-bezier(.2, .8, .2, 1); }
.bc-lift .bc-opt.is-pre::before { transition: none; }
.bc-lift .bc-list li { transition: opacity 320ms var(--ease), transform 320ms var(--ease); }
.bc-lift .bc-list li.is-pre { opacity: 0; transform: translateY(8px); transition: none; }
/* a desktop gives the window room: at least 520px under its bar, bigger rows, question and spacing (owner's review) */
@media (min-width: 1024px) {
  :root .bc-lift .bc-win__bar { height: 58px; padding: 0 24px; font-size: 14px; }
  :root .bc-lift .bc-win__body { min-height: 520px; grid-template-columns: 250px 1fr; }
  :root .bc-lift .bc-slides { padding: 16px 12px; gap: 4px; }
  :root .bc-lift .bc-slides span { padding: 12px 10px; font-size: 14px; }
  :root .bc-lift .bc-q { padding: 36px 40px 40px; gap: 14px; align-content: start; }
  :root .bc-lift .bc-q__kind { font-size: 14px; }
  :root .bc-lift .bc-q__text { font-size: 28px; margin-bottom: 10px; }
  :root .bc-lift .bc-opt { height: 50px; min-height: 50px; font-size: 16px; padding: 0 18px; }
  :root .bc-lift .bc-list li { padding: 14px 16px; font-size: 16px; }
  :root .bc-lift .bc-q__foot { margin-top: 10px; font-size: 14px; }
}
.bc-lift .bc-q__text { font-size: 22px; }
@media (prefers-reduced-motion: reduce) { html.mo-js .bc-lift__card { --lift-x: 0deg; --lift-s: 1; } }
@media (max-width: 639px) {
  .bc-lift__tabs { margin-top: var(--s-6); max-width: 100%; overflow-x: auto; }
  .bc-lift__tabs > button { padding: 0 12px; font-size: 14px; }
  .bc-lift__card { padding: 5px; border-radius: 20px; }
  .bc-lift__card > .bc-win { border-radius: 16px; }
  .hero--centred .hero__window.bc-lift { border-radius: 24px; clip-path: inset(0 round 24px); }
  .bc-lift .bc-q__text { font-size: 18px; }
}

/* ---------- The header as a floating capsule (owner's choice, after the taste-skill site; it overrides the kit's
   "no floating pill"): the header itself is transparent and lets the page through; its bar is a rounded capsule 10px
   under the top edge on the page's own width, in the page's ground at 82% with a blur behind it. The Features menu
   opens as a panel of the same width under it; on a phone the capsule holds the logo, the button and the menu. ---------- */
.nav { background: transparent; border-bottom: 0; padding-top: 10px; pointer-events: none; }
.nav__bar { pointer-events: auto; height: calc(var(--nav) - 14px); padding: 0 7px 0 18px; border-radius: 16px;
  background: color-mix(in oklab, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--line); box-shadow: 0 12px 32px -20px rgb(22 32 26 / .4); }
.nav__actions .btn { height: 42px; border-radius: 11px; }
/* the capsule's blur makes it the box its menu is placed in: the menu takes the capsule's width, under it */
.nav__menu { pointer-events: auto; left: -1px; right: -1px; width: auto; margin: 0; top: calc(100% + 8px);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px -28px rgb(22 32 26 / .45); padding: var(--s-6) 0 var(--s-7); }
.nav__menu > .wrap { width: calc(100% - 2 * var(--s-6)); }
/* a bridge over the gap, so the menu stays open while the pointer moves down to it */
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
@media (max-width: 1023px) {
  .nav__bar { padding: 0 6px 0 14px; }
  .nav__toggle { width: 40px; height: 40px; border-radius: 11px; }
  /* an open sheet covers the screen: the blur (which would hold it inside the capsule) is off while it is open */
  .nav.is-open .nav__bar { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  .nav.is-open .nav__links { top: calc(var(--nav) + 4px); }
}
@media (max-width: 639px) { .nav { padding-top: 8px; } .nav__bar { height: calc(var(--nav) - 10px); border-radius: 14px; } .nav__actions .btn { height: 38px; } }
