.guide-page { background: #f4f2e8; }
.guide-page main em { font-family: var(--editorial); font-weight: 400; letter-spacing: -.035em; }
.guide-cover { position: relative; isolation: isolate; overflow: hidden; background: #16241c; color: #fbf9ed; }
.guide-cover > img { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 64%; height: 100%; object-fit: cover; object-position: center 50%; }
.guide-cover::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #16241c 30%, rgb(22 36 28 / .95) 40%, rgb(22 36 28 / .26) 64%, transparent 88%); }
.guide-cover-inner { padding-block: clamp(3.2rem, 6vw, 6rem); }
.guide-cover-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1.4rem; }
.guide-cover h1 { font-size: clamp(3.55rem, 7.55vw, 7.4rem); font-weight: 590; line-height: .94; letter-spacing: -.08em; }
.guide-cover h1 em { display: block; color: var(--lime); }
.guide-cover p { max-width: min(44ch, 51%); margin-block: 1.4rem 1.7rem; font-size: clamp(1rem, 1.26vw, 1.2rem); line-height: 1.57; }
.guide-index { background: #e6ead4; border-bottom: 1px solid #aeb7a2; }
.guide-index .wrap { display: flex; flex-wrap: wrap; gap: .2rem clamp(1.5rem, 4.3vw, 4.5rem); }
.guide-index a, .guide-footer a, .guide-link { display: inline-flex; align-items: center; min-height: 2.8rem; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: .24em; }
.guide-index a { min-height: 3.8rem; font-size: 1rem; text-decoration: none; }
.guide-index a:hover { text-decoration: underline; }
.guide-product, .guide-pro, .guide-security { padding-block: clamp(3.25rem, 6.8vw, 6.5rem); }
.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  grid-template-areas: "summary photo" "details photo";
  column-gap: clamp(2rem, 5vw, 6rem);
}
.guide-summary { grid-area: summary; align-self: end; }
.guide-details { grid-area: details; align-self: start; }
.guide-identity { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.2rem; color: #3d5144; font-size: .95rem; font-weight: 575; }
.guide-product h2, .guide-pro h2, .guide-security h2, .guide-contact h2 { font-size: clamp(2.7rem, 5.3vw, 5.6rem); font-weight: 580; line-height: .98; letter-spacing: -.072em; }
.guide-lead { max-width: 54ch; margin-top: 1.2rem; color: #394c41; font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.57; }
.guide-rows { display: grid; grid-template-columns: minmax(7.5rem, .65fr) minmax(0, 1.7fr); margin: 1.6rem 0 .5rem; border-bottom: 1px solid #aeb6a5; }
.guide-rows dt, .guide-rows dd { margin: 0; padding-block: .8rem; border-top: 1px solid #aeb6a5; line-height: 1.48; }
.guide-rows dt { padding-right: .9rem; font-weight: 640; letter-spacing: -.023em; }
.guide-rows dd { color: #36443b; }
.guide-link { margin-top: .25rem; }
.guide-shot { grid-area: photo; align-self: center; min-width: 0; margin: 0; }
.guide-photo {
  display: block;
  position: relative;
  container-type: inline-size;
  overflow: hidden;
  background-color: #28302a;
  background-image: var(--photo);
  background-size: 100% 100%;
  aspect-ratio: var(--photo-aspect);
  cursor: zoom-in;
}
/* Align each original app screenshot with the glass in its market photograph. */
.connect-photo {
  --photo: url("../img/marketagent/buyer-bench.webp");
  --screen-footer: #fff;
  --photo-aspect: 1122 / 1402;
  --glass-x: 27.95%; --glass-y: 7.23%;
  --glass-width: 45.28%; --glass-height: 84.08%;
  --glass-radius: 9.76% 9.76% 7.6% 9.1% / 4.18% 4.18% 3.25% 3.9%;
  --glass-angle: matrix(.999939, .011077, -.022288, .999752, 0, 0);
}
.hub-photo {
  --photo: url("../img/marketagent/stand-counter.webp");
  --screen-footer: #164068;
  --photo-aspect: 960 / 1200;
  --glass-x: 26.910%; --glass-y: 14.908%;
  --glass-width: 37.759%; --glass-height: 70.303%;
  --glass-radius: 8.28% / 3.56%;
  --glass-angle: matrix(.994498, -.104756, .099947, .994993, 0, 0);
}
.guide-photo::before, .guide-photo .guide-original {
  position: absolute;
  left: var(--glass-x);
  top: var(--glass-y);
  width: var(--glass-width);
  height: var(--glass-height);
  border-radius: var(--glass-radius);
  transform: var(--glass-angle);
  transform-origin: top left;
}
/* Back the bezel with black so antialiased edges cannot reveal the coloured placeholder. */
.guide-photo::before { content: ""; background: #12191b; }
.guide-photo .guide-original {
  border: .8cqw solid #12191b;
  object-fit: contain;
  /* Extend the app's header and footer colours into the rounded ends of the glass. */
  background: linear-gradient(to bottom, #164068 50%, var(--screen-footer) 50%);
}
:is(.guide-shot, .hub-receiving-shot) figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .2rem .75rem;
  margin-top: .3rem;
  padding-bottom: .1rem;
  border-bottom: 1px solid #aeb6a5;
  color: #3b4c41;
  font-size: .91rem;
}
:is(.guide-shot, .hub-receiving-shot) figcaption a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; text-underline-offset: .22em; }
.guide-hub { border-block: 1px solid #b9bfaf; background: #e5e7da; }
.guide-hub .guide-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-areas: "photo summary" "photo details"; }
.hub-jumps { display: flex; flex-wrap: wrap; column-gap: 1.2rem; margin-top: .45rem; }
.hub-jumps a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .94rem; font-weight: 610; text-underline-offset: .22em; }
.guide-hub .guide-rows { margin-top: .65rem; }
.hub-actions { display: flex; gap: .25rem 1.35rem; flex-wrap: wrap; align-items: center; margin-top: 1.1rem; }
.hub-actions .guide-link { margin: 0; }
.hub-examples { margin-top: clamp(2.7rem, 5vw, 5rem); }
.hub-lot, .hub-reporting { display: grid; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.hub-lot { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); padding-block: clamp(2.25rem, 4vw, 3.7rem); border-top: 1px solid #a3ae9a; }
.hub-example-copy h3 { margin: 0; max-width: 13ch; font-size: clamp(2.45rem, 4.1vw, 4.2rem); font-weight: 560; letter-spacing: -.065em; line-height: .99; }
.hub-example-copy h3 em { display: inline-block; }
.hub-example-copy p, .hub-ask p { margin: .9rem 0 0; color: #394b40; line-height: 1.55; max-width: 49ch; }
.hub-receiving-shot { margin: 0; }
.hub-receiving-shot > a { display: block; cursor: zoom-in; }
.hub-receiving-shot img { width: 100%; height: auto; border: 1px solid #a7b2a4; border-radius: .35rem; }
.hub-reporting { grid-template-columns: repeat(2, minmax(0,1fr)); padding: clamp(1.4rem,3.7vw,3.8rem); background: #18352d; color: #f8f7e9; }
.hub-reporting .hub-example-copy h3 em { color: #dffa82; }
.hub-reporting p { color: #e4eadc; }
.hub-ask { padding-left: clamp(1.1rem,3.6vw,3rem); border-left: 1px solid #718778; }
.hub-ask h4 { margin: 0; font-size: 1.12rem; font-weight: 625; letter-spacing: -.025em; }
.hub-ask img { width: min(100%, 25rem); height: auto; margin-top: .9rem; border-radius: .45rem; }
.hub-ask p { font-size: .97rem; }
.guide-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.2rem, 6vw, 7rem); }
.guide-split .guide-lead { max-width: 35ch; }
.guide-split .guide-rows { align-self: start; margin: 0; }
.guide-security { background: #162e23; color: #f5f4e8; }
.guide-security h2 em { color: var(--lime); }
.guide-security .guide-lead, .guide-security dd { color: #dbe4d8; }
.guide-security .guide-rows, .guide-security dt, .guide-security dd { border-color: #647767; }
.guide-contact { padding-block: clamp(3rem, 5.4vw, 5rem); background: #e4eccf; }
.guide-contact .wrap, .guide-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.guide-contact p { max-width: 50ch; margin-top: 1rem; }
.guide-contact .button { flex: none; }
.guide-footer { border-top: 1px solid #acb4a0; background: #efede1; }
.guide-footer .wrap { justify-content: flex-start; flex-wrap: wrap; padding-block: .75rem; }
.guide-footer a { font-size: .94rem; }

@media (max-width: 52rem) {
  .hub-lot { grid-template-columns: 1fr; }
  .hub-example-copy h3 { max-width: none; }
  .hub-lot p { max-width: 62ch; }
  .guide-grid, .guide-hub .guide-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    grid-template-areas: "summary summary" "details photo";
    align-items: start;
    gap: 1.3rem 1.65rem;
  }
  .guide-details .guide-rows { margin-top: 0; }
  .guide-split { gap: 2rem; }
  .guide-rows { grid-template-columns: 1fr; }
  .guide-rows dt { padding: .8rem 0 .12rem; }
  .guide-rows dd { border-top: 0; padding-block: .2rem .85rem; }
}
@media (max-width: 38rem) {
  .hub-reporting { grid-template-columns: 1fr; gap: 1.5rem; }
  .hub-ask { border-left: 0; border-top: 1px solid #718778; padding: 1.25rem 0 0; }
  .guide-cover > img { width: 100%; object-position: 68% 25%; }
  .guide-cover::before { background: linear-gradient(90deg, rgb(17 33 23 / .94), rgb(17 33 23 / .82) 55%, rgb(17 33 23 / .42)); }
  .guide-cover h1 { font-size: clamp(3.35rem, 12vw, 4.6rem); }
  .guide-cover p { max-width: 31ch; }
  .guide-index .wrap { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; padding-block: .35rem; }
  .guide-index a { min-height: 2.75rem; }
  .guide-grid, .guide-hub .guide-grid, .guide-split { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .guide-grid, .guide-hub .guide-grid { grid-template-areas: "summary" "photo" "details"; }
  .guide-product h2, .guide-pro h2, .guide-security h2, .guide-contact h2 { font-size: clamp(2.5rem, 9.6vw, 3.6rem); }
  .guide-contact .wrap { align-items: flex-start; flex-direction: column; }
  .guide-footer .wrap { gap: 0 1.2rem; }
}
@media (max-width: 22rem) {
  .guide-hub[id], .hub-examples section[id] { scroll-margin-top: 8rem; }
}
