/* ==========================================================================
   peel-redesign.css — the Peel overview page, built to the UI team's comp.
   Scoped under .peel-redesign so the other Peel chapters keep peel-site.css.
   ========================================================================== */

.peel-redesign {
  --pr-dark: #091016;
  --pr-dark-2: #0d1821;
  --pr-panel: #101c26;
  --pr-teal: #19d0ea;
  --pr-teal-lit: #3fe3f6;
  --pr-ink: #0f2029;
  --pr-body: #566974;
  --pr-light: #ffffff;
  --pr-wash: #f4f8f9;
  --pr-line: #e0e8eb;
  --pr-line-dk: rgba(120, 195, 215, .16);
  --pr-max: 1500px;
  --pr-gut: clamp(20px, 3.4vw, 56px);
  color: var(--pr-ink);
  background: var(--pr-light);
}

.peel-redesign section { padding: 0; }
/* Type is set at its real size below (see the type scale): no page-wide zoom. */
.pr-in { max-width: var(--pr-max); margin: 0 auto; padding-left: var(--pr-gut); padding-right: var(--pr-gut); }
.pr-dark { background: var(--pr-dark); color: #dbe7ec; }
.pr-wash { background: var(--pr-wash); }

.peel-redesign h1, .peel-redesign h2, .peel-redesign h3 { color: inherit; letter-spacing: -.022em; }
.pr-dark h1, .pr-dark h2, .pr-dark h3 { color: #fff; }
.pr-eyebrow {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: #7d9aa6; margin: 0 0 18px;
}
.pr-dark .pr-eyebrow { color: #6e8d9b; }
.pr-teal { color: var(--pr-teal-lit); }

/* ---------- buttons ---------- */
.pr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
  font-size: 15px; font-weight: 600; border-radius: 6px; padding: 13px 24px; line-height: 1.2;
  border: 1.5px solid transparent; transition: filter .18s, background .18s, border-color .18s, transform .18s;
}
.pr-btn.fill { background: var(--pr-teal); color: #03171c; }
.pr-btn.fill:hover { filter: brightness(1.1); transform: translateY(-1px); }
.pr-btn.outline { background: transparent; color: #eef7fa; border-color: #5d7a88; }
.pr-btn.outline:hover { border-color: var(--pr-teal-lit); color: #fff; }
.pr-btn.ghost { background: #16222c; color: #e8f2f5; border-color: #2b3d49; }
.pr-btn.ghost:hover { border-color: var(--pr-teal); }
.pr-btn.dark { background: #0c1a22; color: #fff; }
.pr-btn.dark:hover { filter: brightness(1.3); }
.pr-more { color: var(--pr-teal); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.pr-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.peel-redesign .pr-more { color: #11a9c0; }
.pr-dark .pr-more, .pr-console .pr-more { color: var(--pr-teal-lit); }

/* ---------- top bar: dark, and one piece with the hero ---------- */
.pr-top { background: #090f14; border-bottom: 1px solid rgba(120, 195, 215, .10); position: relative; z-index: 3; }
.pr-top .pr-in { display: flex; align-items: center; gap: 22px; padding-top: 14px; padding-bottom: 14px; }
.pr-logo { flex: none; display: flex; align-items: center; gap: 13px; text-decoration: none; font-weight: 600; font-size: 24px; white-space: nowrap; color: var(--pr-teal-lit); letter-spacing: -.01em; }
.pr-logo b { color: #fff; font-weight: 600; }
.pr-logo .bar { width: 1.5px; height: 22px; background: #35505e; }
.pr-topnav { display: flex; flex-wrap: nowrap; gap: 22px; margin-left: 14px; }
.pr-topnav a { color: #d4e2e8; text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.pr-topnav a:hover { color: var(--pr-teal-lit); }
.pr-topacts { margin-left: auto; display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; }
.pr-topacts .pr-btn, .pr-topacts .lang-toggle { white-space: nowrap; }
.pr-topacts .pr-btn { padding: 10px 20px; font-size: 14px; }
.pr-topacts .lang-toggle { color: #9fb7c1; text-decoration: none; font-size: 14px; padding: 0 4px; }
.pr-topacts .lang-toggle:hover { color: #fff; }
.pr-search { width: 42px; height: 40px; display: grid; place-items: center; color: #b9ccd4; border: 1px solid #2b414d; border-radius: 6px; }
.pr-search:hover { color: #fff; border-color: var(--pr-teal-lit); }

/* ---------- hero ---------- */
.pr-hero { background: linear-gradient(160deg, #090f14 0%, #0b1822 52%, #09131b 100%); overflow: hidden; }
.pr-hero .pr-in { display: grid; grid-template-columns: 1.55fr .8fr; gap: 24px; align-items: center; padding-top: 42px; padding-bottom: 46px; }
.pr-hero h1 { font-size: clamp(2.1rem, 3.15vw, 3.4rem); line-height: 1.12; margin: 0 0 20px; font-weight: 700; letter-spacing: -.02em; }
.pr-hero .lede { color: #b5c7cf; font-size: 16px; line-height: 1.62; max-width: 64ch; margin: 0 0 8px; }
.pr-hero .lede b { color: var(--pr-teal-lit); font-weight: 600; }
.pr-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 32px; }
.pr-hero-cta .pr-btn { padding: 14px 26px; font-size: 15.5px; }
.pr-trust { display: flex; flex-wrap: wrap; gap: 0; }
.pr-trust > div { display: flex; gap: 12px; align-items: flex-start; padding: 0 26px; border-left: 1px solid rgba(120, 195, 215, .14); }
.pr-trust > div:first-child { padding-left: 0; border-left: 0; }
.pr-trust > div > div { display: block; }
.pr-trust svg { flex: none; margin-top: 2px; }
.pr-trust strong { display: block; font-size: 14px; color: #eaf4f7; font-weight: 600; }
.pr-trust span { font-size: 13px; color: #8da5b0; line-height: 1.45; }

/* the molecular surface + its record card */
.pr-hero-art { position: relative; min-height: 360px; align-self: stretch; }
.pr-hero-art canvas { position: absolute; inset: -4% -8% -4% -14%; width: 122%; height: 108%; display: block; }
.pr-chip-card {
  position: absolute; right: 0; top: 34px; background: rgba(8, 18, 25, .92);
  border: 1px solid rgba(120, 195, 215, .22); border-radius: 8px; padding: 15px 20px;
  backdrop-filter: blur(7px); min-width: 210px; z-index: 2;
}
.pr-chip-card b { display: block; color: #fff; font-size: 20px; font-weight: 600; letter-spacing: .005em; }
.pr-chip-card em { display: block; font-style: normal; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: #9bb9c5; margin: 4px 0 10px; }
.pr-chip-card span { display: block; font-size: 12.5px; color: #93aab5; line-height: 1.7; }
.pr-hero-quote {
  position: absolute; right: 0; bottom: 10px; max-width: 230px; text-align: left;
  font-size: 15px; line-height: 1.55; color: #a9bec8; font-style: italic;
  border-left: 1.5px solid #3b5b6a; padding-left: 16px; margin: 0; z-index: 2;
}

/* ---------- generic section head ---------- */
.pr-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 26px 36px; }
.pr-head > a.pr-more { padding-top: 12px; white-space: nowrap; }
@media (max-width: 1080px) {
  .pr-logo-grid { grid-template-columns: repeat(4, 1fr); }
  .pr-logo-cell:nth-child(7n) { border-right: 1px solid var(--pr-line); }
  .pr-logo-cell:nth-child(4n) { border-right: 0; }
  .pr-step:not(:last-child)::after { display: none; }
}
@media (max-width: 860px) {
  .pr-topnav { display: none; }
  .pr-hero-art canvas { inset: 0; width: 100%; height: 100%; }
  .pr-trust > div { padding: 0 18px; } .pr-head { grid-template-columns: 1fr; } }
.pr-head h2 { font-size: clamp(1.6rem, 2.9vw, 2.1rem); margin: 0 0 10px; font-weight: 700; }
.pr-head p { color: var(--pr-body); font-size: 14.5px; line-height: 1.6; margin: 0; max-width: 100ch; }
.pr-head p b { color: var(--pr-ink); font-weight: 600; }
.peel-redesign .pr-sec { padding-top: 54px; padding-bottom: 54px; }

/* example chips */
.pr-chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; max-width: 430px; }
.pr-chips a {
  font-size: 12px; color: #3f5560; text-decoration: none; background: #fff;
  border: 1px solid var(--pr-line); border-radius: 6px; padding: 8px 13px;
}
.pr-chips a:hover { border-color: var(--pr-teal); color: var(--pr-teal); }

/* ---------- research console mock ---------- */
.pr-console {
  margin-top: 30px; background: var(--pr-dark); border-radius: 12px;
  border: 1px solid #16242e; overflow: hidden; display: grid;
  grid-template-columns: 186px 1fr; color: #9fb4bd; font-size: 12px;
}
.pr-con-side { border-right: 1px solid #16242e; padding: 16px 0; }
.pr-con-side .t { font-size: 12.5px; font-weight: 700; color: #fff; padding: 0 16px 14px; }
.pr-con-side .t i { font-style: normal; color: var(--pr-teal); font-weight: 500; }
.pr-con-side a { display: flex; align-items: center; gap: 9px; padding: 8px 16px; color: #8ba1ac; text-decoration: none; font-size: 12px; }
.pr-con-side a.on { background: #152630; color: #fff; border-left: 2px solid var(--pr-teal); }
.pr-con-main { padding: 16px 18px 22px; min-width: 0; }
.pr-con-q {
  display: flex; align-items: center; gap: 10px; background: #0d1821;
  border: 1px solid #1d2f3a; border-radius: 7px; padding: 11px 12px; color: #c3d4db; font-size: 12px;
}
.pr-con-q span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-con-q b { background: var(--pr-teal); color: #04161b; border-radius: 5px; width: 25px; height: 23px; display: grid; place-items: center; font-size: 12px; }
.pr-con-steps { display: flex; flex-wrap: wrap; gap: 16px; margin: 13px 0 16px; font-size: 11px; color: #7b929d; }
.pr-con-steps b { color: var(--pr-teal-lit); font-weight: 600; }
.pr-con-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
/* the source fan: central record node → curved wires → one row per source */
.pr-fan { display: grid; grid-template-columns: 74px 46px 1fr; align-items: center; gap: 0; }
.pr-fan-node {
  background: #11212c; border: 1px solid #22394a; border-radius: 8px;
  padding: 11px 8px; text-align: center;
}
.pr-fan-mol { display: block; width: 52px; height: 44px; margin: 0 auto 8px; }
.pr-fan-node strong { display: block; color: #e2eef2; font-size: 11px; }
.pr-fan-node em { display: block; font-style: normal; font-size: 9.5px; color: #7f97a2; }
.pr-fan-node i { display: block; font-style: normal; font-size: 9px; color: var(--pr-teal-lit); margin-top: 4px; }
.pr-fan-wires { width: 46px; height: 100%; min-height: 240px; display: block; }
.pr-src { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #0f1c25; border: 1px solid #1b2b35; border-radius: 7px; padding: 9px 12px; margin-bottom: 8px; }
.pr-fan-rows .pr-src:last-child { margin-bottom: 0; }
@media (max-width: 620px) {
  .pr-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .pr-logo-cell:nth-child(4n) { border-right: 1px solid var(--pr-line); }
  .pr-logo-cell:nth-child(2n) { border-right: 0; }
  .pr-fan { grid-template-columns: 1fr; }
  .pr-fan-wires { display: none; }
  .pr-fan-node { margin-bottom: 10px; }
}
.pr-src strong { display: block; color: #dce8ec; font-size: 11.5px; font-weight: 600; }
.pr-src em { font-style: normal; font-size: 10px; color: #70868f; }
.pr-src i { font-style: normal; font-size: 10.5px; color: var(--pr-teal-lit); white-space: nowrap; }
.pr-ev { background: #0f1c25; border: 1px solid #1b2b35; border-radius: 7px; padding: 13px; }
.pr-ev > b { color: #fff; font-size: 12px; display: block; margin-bottom: 10px; }
.pr-ev-tabs { display: flex; flex-wrap: wrap; gap: 11px; font-size: 10px; color: #70868f; margin-bottom: 11px; }
.pr-ev-tabs b { color: var(--pr-teal-lit); font-weight: 600; }
.pr-rec { border-top: 1px solid #1b2b35; padding: 9px 0; }
.pr-rec strong { color: #dce8ec; font-size: 11px; display: block; }
.pr-rec em { font-style: normal; font-size: 10px; color: #70868f; display: block; margin: 2px 0 5px; }
.pr-tag { display: inline-block; font-size: 9px; padding: 2px 7px; border-radius: 4px; background: rgba(31,182,201,.14); color: var(--pr-teal-lit); margin-right: 5px; }

/* console: source icons, filterable evidence, replay sequence */
.pr-ico { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: #12303d; border: 1px solid #1f4656; }
.pr-ico svg { width: 18px; height: 18px; display: block; }
.pr-ico.lg { width: 34px; height: 34px; }
.pr-ico.lg svg { width: 20px; height: 20px; }
.pr-src { gap: 11px; }
.pr-src-t { flex: 1; min-width: 0; }
.pr-src-t strong, .pr-src-t em { display: block; }
.pr-ev-list { max-height: 392px; overflow: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #254655 transparent; }
.pr-ev-tabs { gap: 6px 8px; }
.pr-ev-tabs button { background: transparent; border: 0; padding: 3px 7px; border-radius: 5px; font: inherit; font-size: 10px; color: #70868f; cursor: pointer; }
.pr-ev-tabs button:hover { color: #b9ccd4; }
.pr-ev-tabs button.on { color: var(--pr-teal-lit); background: rgba(31, 182, 201, .13); font-weight: 600; }
.pr-rec { display: flex; align-items: flex-start; gap: 11px; }
.pr-rec-t { flex: 1; min-width: 0; }
.pr-rec-t strong { word-break: break-word; }
.pr-rec-t em { word-break: break-word; }
.pr-tag.dim { background: rgba(120, 150, 165, .14); color: #8ba1ac; }
.pr-open { flex: none; font-size: 10px; color: var(--pr-teal-lit); text-decoration: none; white-space: nowrap; margin-top: 2px; }
.pr-open:hover { text-decoration: underline; text-underline-offset: 3px; }
.pr-chips a.on { border-color: var(--pr-teal); color: var(--pr-teal); background: rgba(31, 182, 201, .06); }
.pr-con-note { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: var(--pr-body); }
.pr-con-steps b.done::before { animation: none; opacity: .9; }
.pr-console.pending #con-fan, .pr-console.pending #con-ev { opacity: .22; }
.pr-console.pending.show-fan #con-fan, .pr-console.pending.show-ev #con-ev { opacity: 1; }
#con-fan, #con-ev { transition: opacity .5s ease; }
.pr-con-grid #con-fan { min-width: 0; }

/* ---------- use-case cards ---------- */
.pr-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 30px; border: 1px solid var(--pr-line); border-radius: 10px; overflow: hidden; background: #fff; }
.pr-cards article { padding: 24px 20px 20px; border-right: 1px solid var(--pr-line); display: flex; flex-direction: column; }
.pr-cards article:last-child { border-right: 0; }
.pr-cards h3 { font-size: 15px; margin: 16px 0 9px; font-weight: 700; line-height: 1.32; }
.pr-cards p { font-size: 12.8px; color: var(--pr-body); line-height: 1.6; margin: 0 0 18px; flex: 1; }
.pr-cards .pr-more { font-size: 12.5px; }

/* ---------- weightless system ---------- */
.pr-core { background: linear-gradient(170deg, #070e14, #0b1a24 60%, #070f16); }
.pr-core .pr-in { display: grid; grid-template-columns: .92fr 1.3fr .78fr; gap: 34px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.pr-core h2 { font-size: clamp(1.55rem, 2.7vw, 2rem); margin: 0 0 16px; line-height: 1.2; }
.pr-core .lede { color: #93a9b3; font-size: 13.8px; line-height: 1.68; margin: 0 0 20px; }
.pr-ticks { list-style: none; margin: 0 0 24px; padding: 0; }
.pr-ticks li { display: flex; gap: 10px; align-items: center; font-size: 13.2px; color: #c6d6dc; padding: 5px 0; }
.pr-ticks svg { flex: none; }
.pr-stats { background: rgba(10, 23, 31, .72); border: 1px solid var(--pr-line-dk); border-radius: 10px; padding: 22px 22px 18px; }
.pr-stats h3 { font-size: 14.5px; margin: 0 0 10px; }
.pr-stats > p { font-size: 12.3px; color: #8ba1ac; line-height: 1.62; margin: 0 0 18px; }
.pr-stats dl { margin: 0; display: grid; gap: 14px; }
.pr-stats dt { color: var(--pr-teal-lit); font-size: 26px; font-weight: 700; line-height: 1; }
.pr-stats dd { margin: 4px 0 0; font-size: 11.5px; color: #8ba1ac; line-height: 1.45; }
.pr-stats > .pr-stats-note { margin: 16px 0 0; font-size: 10.5px; color: #657b86; line-height: 1.5; }

/* the original 216-cell cube, restyled as glowing nodes on a soft halo */
.pr-cube { position: relative; }
.pr-cube::before {
  content: ""; position: absolute; left: 50%; top: 260px; width: 78%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(47, 155, 255, .20), rgba(31, 182, 201, .07) 55%, transparent 72%);
}
.pr-cube #cube-stage {
  position: relative; height: 520px; border: 0; border-radius: 0; background: transparent;
  overflow: hidden; touch-action: none; cursor: grab; user-select: none;
}
.pr-cube #cube-stage:active { cursor: grabbing; }
.pr-cube .cube-cell {
  background: transparent !important; box-shadow: none !important; border-radius: 0;
}
.pr-cube .cube-cell::before {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  background: #4fd8e8; box-shadow: 0 0 10px 1px currentColor; color: #4fd8e8;
}
.pr-cube .cube-cell[data-k="0"]::before { background: #2f9bff; color: #2f9bff; }
.pr-cube .cube-cell[data-k="1"]::before { background: #4fd8e8; color: #4fd8e8; }
.pr-cube .cube-cell[data-k="2"]::before { background: #9ae6ff; color: #6fcfff; }
.pr-cube .cube-cell[data-k="3"]::before { background: #ffffff; color: #bfeaff; }
.pr-cube .cube-cell[data-k="4"]::before { background: #62b6ff; color: #62b6ff; }
.pr-cube .cube-cell[data-k="5"]::before { background: #ffcf8a; color: #ff9f4a; }
.pr-cube .cube-cell:hover::before { filter: brightness(1.5); box-shadow: 0 0 16px 3px currentColor; }
.pr-cube .cube-axis-lbl { display: none !important; }
.pr-cube-core {
  position: absolute; left: 50%; top: 260px; transform: translate(-50%, -50%);
  text-align: center; pointer-events: none; background: rgba(7, 16, 22, .72);
  border: 1px solid var(--pr-line-dk); border-radius: 8px; padding: 13px 19px;
}
.pr-cube-core b { display: block; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.3; }

.pr-cube-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin-top: 10px; }
.pr-cube-ctl button, .pr-cube-pick button {
  background: #12222c; color: #d5e3e8; border: 1px solid var(--pr-line-dk); border-radius: 7px;
  padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.pr-cube-ctl button:hover, .pr-cube-pick button:hover { border-color: var(--pr-teal); }
.pr-cube-ctl label, .pr-cube-pick label { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: #8ba1ac; }
.pr-cube-ctl select, .pr-cube-pick select {
  background: #12222c; color: #d5e3e8; border: 1px solid var(--pr-line-dk); border-radius: 7px;
  padding: 5px 8px; font-size: 11.5px; max-width: 200px;
}
.pr-cube-ctl input[type="range"] { accent-color: var(--pr-teal); width: 110px; }
#cube-slice-label { font-size: 11.5px; color: var(--pr-teal-lit); }
.pr-cube-hint { text-align: center; color: #6f8791; font-size: 11.5px; margin: 8px 0 0; }
.pr-cube-pick { display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center; margin-top: 10px; }
.pr-cube-more { margin-top: 8px; text-align: center; }
.pr-cube-more > summary { display: inline-block; cursor: pointer; font-size: 12.5px; color: #7f97a2; list-style: none; padding: 4px 8px; }
.pr-cube-more > summary::-webkit-details-marker { display: none; }
.pr-cube-more > summary:hover { color: var(--pr-teal-lit); }
.pr-cube-pick label { flex-direction: column; align-items: flex-start; gap: 4px; }

/* ---------- how it works ---------- */
.pr-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 28px; }
.pr-step { display: flex; gap: 12px; align-items: flex-start; }
.pr-step .n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #0f6f7e; display: grid; place-items: center; }
.pr-step strong { display: block; font-size: 13.5px; margin-bottom: 5px; }
.pr-step p { font-size: 12.2px; color: var(--pr-body); line-height: 1.55; margin: 0; }

/* ---------- your research stays yours ---------- */
.pr-yours { background: linear-gradient(120deg, #070e14, #0d1c26); }
.pr-yours .pr-in { display: grid; grid-template-columns: 1fr .74fr .62fr; gap: 34px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.pr-yours-art { border-radius: 10px; overflow: hidden; border: 1px solid var(--pr-line-dk); line-height: 0; }
.pr-yours-art svg { width: 100%; height: 178px; display: block; }
@media (max-width: 1080px) { .pr-yours .pr-in { grid-template-columns: 1fr 1fr; } .pr-yours-art { grid-column: 1 / -1; } }
.pr-yours h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 0 0 14px; }
.pr-yours p { color: #93a9b3; font-size: 13.6px; line-height: 1.68; margin: 0 0 22px; max-width: 58ch; }
.pr-yours ul { list-style: none; margin: 0; padding: 0; }
.pr-yours li { display: flex; gap: 10px; align-items: center; font-size: 13.2px; color: #c6d6dc; padding: 6px 0; }

/* ---------- closing ---------- */
.pr-close { background: linear-gradient(100deg, #eef4f6 0%, #e4eef2 55%, #dce9ee 100%); position: relative; overflow: hidden; }
.pr-close-art { position: absolute; right: 0; bottom: 0; width: min(54%, 620px); height: 72%; pointer-events: none; line-height: 0; }
.pr-close-art svg { width: 100%; height: 100%; display: block; }
.pr-close .pr-in { position: relative; z-index: 1; }
.pr-close .pr-in { display: grid; grid-template-columns: 1.25fr .75fr; gap: 36px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.pr-close h2 { font-size: clamp(1.55rem, 2.7vw, 2rem); margin: 0 0 14px; }
.pr-close p { color: #4c6069; font-size: 14px; line-height: 1.65; margin: 0 0 24px; max-width: 62ch; }
.pr-close-q { font-style: italic; color: #41565f; font-size: 14.5px; line-height: 1.7; border-left: 2px solid var(--pr-teal); padding-left: 16px; }
.pr-close-q cite { display: block; font-style: normal; font-size: 12px; color: #6f848d; margin-top: 10px; }

/* ---------- motion ----------
   Reveals start VISIBLE and are only hidden once JS confirms it can animate
   them, so a static capture or a no-JS reader still sees a finished page. */
.pr-anim .reveal { opacity: 0; transform: translateY(16px); }
.pr-anim .reveal.in { opacity: 1; transform: none; transition: opacity .62s cubic-bezier(.2,.7,.2,1), transform .62s cubic-bezier(.2,.7,.2,1); }
.pr-anim .reveal.d1.in { transition-delay: .07s; }
.pr-anim .reveal.d2.in { transition-delay: .14s; }
.pr-anim .reveal.d3.in { transition-delay: .21s; }
.pr-anim .reveal.d4.in { transition-delay: .28s; }

/* buttons + cards gain a little life on hover */
.pr-btn { transform: translateZ(0); }
.pr-btn.fill:hover, .pr-btn.dark:hover { transform: translateY(-1px); }
.pr-cards article { transition: background .25s, transform .25s; }
.pr-cards article:hover { background: var(--pr-wash); }
.pr-cards article:hover h3 { color: var(--pr-teal); }
.pr-chips a { transition: border-color .2s, color .2s, transform .2s; }
.pr-chips a:hover { transform: translateY(-1px); }
.pr-src { transition: border-color .25s, background .25s; }
.pr-src:hover { border-color: #2b4a5a; background: #122330; }
.pr-logos img, .pr-logos span { transition: opacity .25s, filter .25s; }
.pr-logos:hover img, .pr-logos:hover span { opacity: .5; }
.pr-logos img:hover, .pr-logos span:hover { opacity: 1; filter: none; }

/* the console's status row runs its sequence instead of sitting static */
.pr-con-steps span { opacity: .34; transition: opacity .45s; }
.pr-con-steps span.lit { opacity: 1; color: #b9ccd4; }
.pr-con-steps b::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px;
  border-radius: 50%; background: var(--pr-teal-lit); vertical-align: middle;
  animation: prPulse 1.5s ease-in-out infinite;
}
@keyframes prPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* the hero's record card drifts gently beside the molecule */
.pr-chip-card { animation: prFloat 7s ease-in-out infinite; }
@keyframes prFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.pr-hero-art svg.mol { animation: prFloat 9s ease-in-out infinite reverse; }

@media (prefers-reduced-motion: reduce) {
  .pr-anim .reveal { opacity: 1; transform: none; }
  .pr-chip-card, .pr-hero-art svg.mol, .pr-con-steps b::before { animation: none; }
  .pr-btn.fill:hover, .pr-btn.dark:hover, .pr-chips a:hover { transform: none; }
}

/* ---------- sources: a 7-column grid, one visual weight per cell ---------- */
.pr-logo-grid { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 22px; border-top: 1px solid var(--pr-line); }
.pr-logo-cell { height: 92px; display: grid; place-items: center; border-bottom: 1px solid var(--pr-line); border-right: 1px solid var(--pr-line); padding: 0 14px; }
.pr-logo-cell:nth-child(7n) { border-right: 0; }
.pr-logo-cell img { height: 34px; width: auto; max-width: 100%; object-fit: contain; opacity: .94; }
.pr-logo-cell .pr-wm { height: 38px; width: auto; max-width: 100%; display: block; }
.pr-logo-cell.more { font-size: 15.5px; color: var(--pr-body); }
.pr-logo-cell:hover img, .pr-logo-cell:hover .pr-wm { opacity: 1; transform: translateY(-1px); }
.pr-logo-cell img, .pr-logo-cell .pr-wm { transition: transform .2s, opacity .2s; }

/* ---------- how it works: connectors between the steps ---------- */
.pr-step { position: relative; padding-right: 26px; }
.pr-step:not(:last-child)::after {
  content: "→"; position: absolute; right: 4px; top: 7px; color: #86a6b3; font-size: 17px;
}
.pr-step .n { background: linear-gradient(145deg, #0f7d8f, #0a5663); border: 1px solid #1fa6ba; }

/* ---------- the live console: a real input, Lois's intro, a mode pill ---------- */
.pr-con-q { display: flex; align-items: center; gap: 10px; background: #0d1821; border: 1px solid #1d2f3a; border-radius: 8px; padding: 6px 8px 6px 16px; transition: border-color .2s, box-shadow .2s; }
.pr-con-q:focus-within { border-color: var(--pr-teal); box-shadow: 0 0 0 3px rgba(25, 208, 234, .14); }
.pr-con-q input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #e3eef2; font: inherit; font-size: 16.5px; padding: 10px 0; }
.pr-con-q input::placeholder { color: #6f8892; }
.pr-con-q input:disabled { opacity: .7; }
.pr-con-q button { flex: none; background: var(--pr-teal); color: #03171c; border: 0; border-radius: 6px; width: 44px; height: 40px; font-size: 18px; font-weight: 700; cursor: pointer; }
.pr-con-q button:hover { filter: brightness(1.1); }
.pr-con-q.busy button { opacity: .5; cursor: progress; }
.pr-con-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 14px 0 16px; flex-wrap: wrap; }
.pr-con-row .pr-con-steps { margin: 0; }
.pr-mode { flex: none; font-size: 13px; font-weight: 600; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; border: 1px solid #2b414d; color: #9fb7c1; }
.pr-mode.live { border-color: var(--pr-teal); color: var(--pr-teal-lit); background: rgba(25, 208, 234, .08); }
.pr-lois { display: flex; gap: 16px; align-items: flex-start; background: #0f1c25; border: 1px solid #1b2b35; border-radius: 10px; padding: 16px 18px; margin-bottom: 18px; }
.pr-lois-av { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid #2b4a5a; }
.pr-lois-b { min-width: 0; }
.pr-lois-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin-bottom: 4px; }
.pr-lois-h strong { color: #fff; font-size: 17px; }
.pr-lois-h span { color: var(--pr-teal-lit); font-size: 13.5px; }
.pr-lois-b p { margin: 0; color: #c3d4db; font-size: 16px; line-height: 1.6; }
.pr-lois-b p.notice { color: #ffd9a0; }
.pr-rec-l { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pr-receipt { font-size: 13px; color: #8ba1ac; text-decoration: none; white-space: nowrap; }
.pr-receipt:hover { color: var(--pr-teal-lit); text-decoration: underline; text-underline-offset: 3px; }
.pr-showall { display: block; width: 100%; margin-top: 10px; padding: 11px; background: transparent; color: var(--pr-teal-lit); border: 1px dashed #2b4a5a; border-radius: 8px; font: inherit; font-size: 14.5px; cursor: pointer; }
.pr-showall:hover { background: rgba(25, 208, 234, .06); }
.pr-ev.empty { display: none; }
.pr-con-grid:has(.pr-ev.empty) { grid-template-columns: 1fr; }
#con-fan:empty { display: none; }

/* ---------- console: sources, connections, thumbnails, filters ---------- */
.pr-con-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pr-left { display: grid; gap: 22px; min-width: 0; }
.pr-col-h { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7d9aa6; }
button.pr-src { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
button.pr-src:hover, button.pr-src.on { border-color: var(--pr-teal); background: #112a35; }
button.pr-src.on { box-shadow: 0 0 0 1px var(--pr-teal) inset; }
.pr-thumb { flex: none; width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 120% at 30% 20%, #17394a, #0b1c26); border: 1px solid #1f4656; }
.pr-graph.empty, .pr-graph:empty { display: none; }
.pr-console.noresults .pr-con-grid { display: none; }
.pr-graph-box { background: radial-gradient(70% 70% at 50% 50%, rgba(47, 155, 255, .10), rgba(9, 16, 22, 0) 70%), #0b1820;
  border: 1px solid #1b2b35; border-radius: 10px; padding: 6px; }
.pr-graph-svg { display: block; width: 100%; height: auto; overflow: visible; }
.pr-graph-svg text { font-size: 13px; fill: #bcd0d8; font-family: inherit; pointer-events: none; }
.pr-graph-svg .gn { cursor: pointer; outline: none; }
.pr-graph-svg .gn:not(.lb) text { display: none; }
.pr-graph-svg .gn:hover text, .pr-graph-svg .gn:focus text, .pr-graph-svg .gn.on text { display: block; fill: #fff; font-weight: 600; }
.pr-graph-svg .gn:hover circle:first-of-type, .pr-graph-svg .gn:focus circle:first-of-type { opacity: .4; }
.pr-graph-svg .gn-c { fill: #fff; font-size: 16px; font-weight: 600; }
.pr-graph-svg .gn-rel { fill: #8ba1ac; font-size: 12px; }
.pr-graph-svg .gn-more { fill: #c3d4db; font-size: 12px; font-weight: 600; }
.pr-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pr-lg { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #0f1c25;
  border: 1px solid #1f3340; color: #b9ccd4; font: inherit; font-size: 13.5px; cursor: pointer; }
.pr-lg i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.pr-lg b { color: #fff; font-weight: 600; }
.pr-lg:hover, .pr-lg.on { border-color: var(--pr-teal); color: #fff; }
.pr-graph-hint { margin: 10px 0 0; font-size: 13.5px; color: #6f8791; }
.pr-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 6px 0 12px; padding: 9px 12px;
  background: rgba(25, 208, 234, .08); border: 1px solid rgba(25, 208, 234, .28); border-radius: 8px; color: #c3d4db; }
.pr-filterbar span { flex: 1; min-width: 0; }
.pr-filterbar b { color: #fff; }
.pr-filterbar button { font: inherit; font-size: 13.5px; border-radius: 6px; padding: 5px 11px; cursor: pointer; }
.pr-research { background: var(--pr-teal); color: #03171c; border: 0; font-weight: 600; }
.pr-clear { background: transparent; color: #b9ccd4; border: 1px solid #2b4a5a; }
.pr-clear:hover { color: #fff; border-color: var(--pr-teal); }
.pr-count { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; background: rgba(25, 208, 234, .14); color: var(--pr-teal-lit); font-size: 13px; font-weight: 600; }
.pr-how { margin-top: 16px; color: var(--pr-body); }
.pr-how > summary { cursor: pointer; font-size: 14.5px; font-weight: 600; color: #4a6672; list-style: none; width: fit-content; }
.pr-how > summary::-webkit-details-marker { display: none; }
.pr-how > summary::before { content: "ⓘ "; color: var(--pr-teal); }
.pr-how > summary:hover { color: var(--pr-teal); }
.pr-how > p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.65; max-width: 110ch; }
/* the records panel takes the height of the left column and scrolls inside it */
.pr-con-grid > .pr-ev { height: 0; min-height: 100%; display: flex; flex-direction: column; }
.pr-con-grid > .pr-ev .pr-ev-list { flex: 1; min-height: 0; max-height: none; overflow: auto; }
@media (max-width: 1360px) {
  .pr-con-grid { grid-template-columns: 1fr; }
  .pr-con-grid > .pr-ev { height: auto; min-height: 0; }
  .pr-con-grid > .pr-ev .pr-ev-list { max-height: 640px; }
}

/* ---------- type scale ----------
   Body copy is 16.5px. Nothing a reader is meant to read goes below 13px;
   labels and chips sit between 13 and 15. Written once, here, with the
   .peel-redesign prefix so it outranks the component rules above. */
.peel-redesign { font-size: 16.5px; }
.peel-redesign .pr-eyebrow { font-size: 13.5px; }
.peel-redesign .pr-logo { font-size: 26px; }
.peel-redesign .pr-topnav a { font-size: 15.5px; }
.peel-redesign .pr-top .pr-btn { font-size: 15px; padding: 11px 20px; }
.peel-redesign .pr-topacts .lang-toggle { font-size: 15px; }
.peel-redesign .pr-btn { font-size: 16px; padding: 14px 26px; }
.peel-redesign .pr-more { font-size: 15.5px; }
.peel-redesign .pr-hero h1 { font-size: clamp(2rem, 2.9vw, 3.5rem); }
.peel-redesign .pr-hero .lede { font-size: 16.5px; line-height: 1.65; }
.peel-redesign .pr-trust strong { font-size: 16px; }
.peel-redesign .pr-trust span { font-size: 14.5px; }
.peel-redesign .pr-chip-card b { font-size: 22px; }
.peel-redesign .pr-chip-card em { font-size: 13px; }
.peel-redesign .pr-chip-card span { font-size: 14px; }
.peel-redesign .pr-hero-quote { font-size: 16.5px; }
.peel-redesign .pr-head h2 { font-size: clamp(2rem, 2.7vw, 2.7rem); }
.peel-redesign .pr-head p { font-size: 16.5px; }
.peel-redesign .pr-chips a { font-size: 14.5px; padding: 10px 16px; }
.peel-redesign .pr-console { font-size: 15px; grid-template-columns: 244px 1fr; }
.peel-redesign .pr-con-side .t { font-size: 16.5px; }
.peel-redesign .pr-con-side a { font-size: 15.5px; padding: 10px 20px; }
.peel-redesign .pr-con-q { font-size: 16.5px; padding: 14px 16px; }
.peel-redesign .pr-con-steps { font-size: 14.5px; }
.peel-redesign .pr-src strong { font-size: 16px; }
.peel-redesign .pr-src em { font-size: 14px; }
.peel-redesign .pr-src i { font-size: 14.5px; }
.peel-redesign .pr-ev > b { font-size: 17px; }
.peel-redesign .pr-ev-tabs button { font-size: 14px; }
.peel-redesign .pr-rec strong { font-size: 16px; }
.peel-redesign .pr-rec em { font-size: 14.5px; }
.peel-redesign .pr-tag { font-size: 13px; padding: 3px 9px; }
.peel-redesign .pr-open { font-size: 14px; }
.peel-redesign .pr-fan { grid-template-columns: 112px 56px 1fr; }
.peel-redesign .pr-fan-wires { width: 56px; }
.peel-redesign .pr-fan-node strong { font-size: 15px; }
.peel-redesign .pr-fan-node em { font-size: 13px; }
.peel-redesign .pr-fan-node i { font-size: 12.5px; }
.peel-redesign .pr-con-note { font-size: 14.5px; }
.peel-redesign .pr-cards h3 { font-size: 19px; }
.peel-redesign .pr-cards p { font-size: 16px; }
.peel-redesign .pr-cards .pr-more { font-size: 15.5px; }
.peel-redesign .pr-core h2 { font-size: clamp(2rem, 2.7vw, 2.7rem); }
.peel-redesign .pr-core .lede { font-size: 16.5px; }
.peel-redesign .pr-ticks li { font-size: 16.5px; }
.peel-redesign .pr-stats h3 { font-size: 18px; }
.peel-redesign .pr-stats > p { font-size: 15.5px; }
.peel-redesign .pr-stats dt { font-size: 36px; }
.peel-redesign .pr-stats dd { font-size: 15px; }
.peel-redesign .pr-stats > .pr-stats-note { font-size: 13.5px; }
.peel-redesign .pr-cube-ctl button, .peel-redesign .pr-cube-pick button { font-size: 14px; padding: 8px 15px; }
.peel-redesign .pr-cube-ctl label, .peel-redesign .pr-cube-pick label { font-size: 13.5px; }
.peel-redesign #cube-slice-label { font-size: 13.5px; }
.peel-redesign .pr-cube-hint { font-size: 13.5px; }
.peel-redesign .pr-cube-more > summary { font-size: 14px; }
.peel-redesign .pr-step strong { font-size: 17.5px; }
.peel-redesign .pr-step p { font-size: 15.5px; }
.peel-redesign .pr-logo-cell.more { font-size: 16.5px; }
.peel-redesign .pr-yours h2 { font-size: clamp(2rem, 2.6vw, 2.6rem); }
.peel-redesign .pr-yours p { font-size: 16.5px; }
.peel-redesign .pr-yours li { font-size: 16.5px; }
.peel-redesign .pr-close h2 { font-size: clamp(2rem, 2.7vw, 2.7rem); }
.peel-redesign .pr-close p { font-size: 16.5px; }
.peel-redesign .pr-close-q { font-size: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1480px) {
  .pr-topnav { gap: 18px; }
  .pr-topnav a:last-child { display: none; }
}
@media (max-width: 1360px) {
  .pr-con-grid { grid-template-columns: 1fr; }
  .pr-core .pr-in { grid-template-columns: 1fr 1fr; }
  .pr-core .pr-stats { grid-column: 1 / -1; }
  .pr-topacts .lang-toggle { display: none; }
}
@media (max-width: 1080px) {
  .pr-cards, .pr-steps { grid-template-columns: repeat(2, 1fr); }
  .pr-cards article { border-bottom: 1px solid var(--pr-line); }
  .pr-core .pr-in { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .pr-hero .pr-in, .pr-yours .pr-in, .pr-close .pr-in { grid-template-columns: 1fr; }
  .pr-console { grid-template-columns: 1fr; }
  .pr-con-side { border-right: 0; border-bottom: 1px solid #16242e; }
  .pr-con-grid { grid-template-columns: 1fr; }
  .pr-topnav { display: none; }
  .pr-chips { justify-content: flex-start; max-width: none; }
}
@media (max-width: 620px) {
  .pr-cards, .pr-steps { grid-template-columns: 1fr; }
  .pr-cube .cube-cell { transform-origin: center; }
  .pr-cube #cube-stage { height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
}

/* what-for (4 up) and plans (3 up) reuse the card grid */
.pr-cards.n4 { grid-template-columns: repeat(4, 1fr); }
.pr-cards.n3 { grid-template-columns: repeat(3, 1fr); }
.pr-price { margin: 4px 0 8px !important; flex: 0 !important; }
.pr-price b { font-size: 34px; font-weight: 700; color: var(--pr-ink, #0d1b24); }
.pr-price span { font-size: 14px; color: var(--pr-body); }
.pr-fine { margin: 14px 0 0; font-size: 14px; color: var(--pr-body); }
@media (max-width: 1080px) { .pr-cards.n3, .pr-cards.n4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .pr-cards.n3, .pr-cards.n4 { grid-template-columns: 1fr; } }

/* why-not-a-model: copy beside the film */
.pr-why { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; }
.pr-film { margin: 0; }
.pr-film-play, .pr-film video { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--pr-line); border-radius: 10px; background: #080b12; overflow: hidden; cursor: pointer; }
.pr-film-play img { display: block; width: 100%; height: auto; }
.pr-film-play span { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 6px; background: rgba(8,11,18,.82); color: #eaf7fa; font-size: 15px; font-weight: 600; }
.pr-film-play:hover span, .pr-film-play:focus-visible span { background: var(--pr-teal); color: #03171c; }
.pr-why-body { max-width: 560px; font-size: 17px; line-height: 1.65; color: var(--pr-ink, #1b2a34); margin: 14px 0 0; }
@media (max-width: 860px) { .pr-why { grid-template-columns: 1fr; } }

/* The console opens on the Research Floor (source fan + evidence), as designed. The connections graph is
   the sidebar's Graph view, not a block stacked under the sources. */
.pr-left .pr-graph { display: none; }
.pr-console.view-graph .pr-graph:not(:empty) { display: block; }
.pr-console.view-graph #con-fan, .pr-console.view-graph .pr-con-grid > .pr-ev { display: none; }
.pr-console.view-graph .pr-con-grid { grid-template-columns: minmax(0, 1fr); }

/* the $100 tier: two options (REPL / REPL + API) chosen inside one card */
.pr-opts { display: flex; gap: 8px; margin: 14px 0 4px; flex-wrap: wrap; }
.pr-opts button { font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--pr-line); background: #fff; color: var(--pr-body); cursor: pointer; }
.pr-opts button b { color: var(--pr-ink, #0d1b24); }
.pr-opts button.on { border-color: var(--pr-teal); background: rgba(25, 208, 234, .10); }
.pr-max .pr-opt { display: flex; flex-direction: column; flex: 1; }
.pr-max .pr-opt[hidden] { display: none; }
.pr-max { display: flex; flex-direction: column; }

/* Lois's panel is empty on the saved example (no greeting) and fills with an answer when a question is asked. */
.pr-lois:empty { display: none; }
.pr-lois .lois-answer { font-size: 15.5px; line-height: 1.6; }
.pr-lois .lois-answer p { margin: 0 0 8px; }
.pr-lois-next { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pr-lois-next button { font: inherit; font-size: 14px; padding: 7px 12px; border-radius: 8px; border: 1px solid #2b3d49; background: #0f1d26; color: #cfe3ea; cursor: pointer; }
.pr-lois-next button:hover { border-color: var(--pr-teal); color: #fff; }

/* the hero card changes with the molecule */
.pr-chip-card { transition: opacity .26s ease; }
.pr-chip-card.swap { opacity: 0; }
