/* The full-frame top of every redesigned page, loaded after the page's own file. Sizes are fixed; from 1240 px the
   top fills the window's height (900 px to 70 % of the width, so the picture never grows under the copy). */
/* ---------- Page variants of the top, set through HeroComponent's class_name: (they came from the pages' own files, which
   load before this one, so they stand before the rules below, as they did) ---------- */
/* For Business (b2-hero, ground: :dark): the fleet scene; the phone's units sit under the room spacer. */
.fp-hero.fp-full.b2-hero { --room: 1 / 1.05; }
/* The homepage's opening (home-top): the wall-shots four-device picture, sized here, not covered:
   up to 1439 px it keeps its 1440 x 900 size and grows only when the top outgrows a 1440 x 1180 box. */
.fp-hero.fp-full.home-top { --room: 1 / 1.034; background: rgb(128, 74, 51); }
@media (min-width: 761px) { .fp-hero.fp-full.home-top .fp-copy h1 { white-space: nowrap; } }
@media (max-width: 760px) { .fp-hero.fp-full.home-top .fp-copy h1 br { display: none; } }
/* Phones: the devices reach the picture's foot, so the caption gets 56 px of the picture's wall color under it.
   The plate keeps its height (so the crop) and stops above that strip; the caption moves down into it. */
@media (max-width: 760px) {
  .fp-hero.fp-full.home-top { padding-bottom: 56px; background: linear-gradient(to top, rgb(187, 126, 97) 56px, rgb(128, 74, 51) 56px); }
  .fp-hero.fp-full.home-top .fp-plate { bottom: 56px; }
  .fp-hero.fp-full.home-top .fp-cap { top: 56px; }
  /* Hung under the buttons (top.css .fp-fit): the picture ends at its foot and the caption is its own strip below it. */
  .fp-hero.fp-full.home-top.fp-fit { padding-bottom: 0; background: rgb(128, 74, 51); }
  .fp-hero.fp-full.home-top.fp-fit > .fp-plate { bottom: 0; }
  .fp-hero.fp-full.home-top.fp-fit > .fp-cap { grid-row: 4; top: 0; padding-top: 2px; background: rgb(187, 126, 97); }
}
@media (min-width: 1240px) {
  .fp-hero.fp-full.home-top { --hh-height: clamp(900px, 100vh, 70vw); }
  .fp-hero.fp-full.home-top .fp-plate img { position: absolute; width: max(100%, 1440px); height: max(100%, 1180px);
    left: calc(100% - max(100%, 1440px)); top: calc((100% - max(100%, 1180px)) * .55); object-position: 100% 55%; }
}
/* From 1440 px the devices grow with the window: as wide as keeps the device group 72 px from the right edge and 24 px
   clear of the nav and caption hairlines, no more stretched than the page tops' pictures, never smaller than at 1440 x 900. */
@media (min-width: 1440px) {
  .fp-hero.fp-full.home-top { --hh-picture-cap: max(177.78%, var(--hh-height) * 2.8444); }
  .fp-hero.fp-full.home-top .fp-plate img {
    --hh-box: max(2560px, 100%, var(--hh-height) * 1.6, min(197.53% - 284.4px, var(--hh-height) * 4.046 - 735.6px,
      var(--hh-height) * 4.4825 - 996.1px, var(--hh-picture-cap)));
    width: var(--hh-box); height: auto; aspect-ratio: 5120 / 3200; left: 50%; top: 55%; translate: -50% -55%; object-position: 50% 55%; }
}
@media (min-width: 1921px) {
  .fp-hero.fp-full.home-top { --hh-picture-cap: max(125%, var(--hh-height) * 3.5556); } /* the 6400 px file loads from here: 1.25 times the cap */
}
.fp-hero.fp-full { --ink: var(--cream); --ink-2: var(--cream); --ink-3: var(--cream); --hair: rgba(246,241,234,.34);
  position: relative; overflow: hidden; background: #e8e4dc; }
.fp-hero.fp-full::after { content: ""; position: absolute; z-index: 1; left: var(--m); right: var(--m); top: 76px; height: 1px; background: var(--hair); }
.fp-hero.fp-full .fp-grid { position: relative; z-index: 2; }
.fp-hero.fp-full .fp-copy { grid-column: 1 / span 5; display: flex; flex-direction: column; }
.fp-hero.fp-full .label { color: var(--ink); font-size: var(--t-eyebrow); font-weight: var(--w-eyebrow); letter-spacing: -0.005em; }
.fp-hero.fp-full .fp-copy h1 { line-height: 1.04; color: var(--ink); text-wrap: balance; max-width: none; }
.fp-hero.fp-full .fp-sub { margin-top: 28px; font-size: var(--t-hero-line); line-height: 1.4; letter-spacing: -0.01em; color: var(--ink-2); max-width: 19em; text-wrap: balance; }
.fp-hero.fp-full .fp-copy .body { margin-top: auto; max-width: 420px; color: var(--ink-2); font-weight: var(--w-on-picture); }
.fp-hero.fp-full .fp-copy .body p + p { margin-top: .9em; }
.fp-hero.fp-full .price { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--hair); max-width: 420px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.fp-hero.fp-full .price .amt { font-family: var(--display); font-weight: var(--w-display); font-size: 40px; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); font-feature-settings: "ss06" 1, "tnum" 1;
  padding-top: .17em; margin-top: -.17em; } /* holds the tall figures' ink inside the box, which Safari clips to */
.fp-hero.fp-full .price .note { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.fp-hero.fp-full .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.fp-hero.fp-full :is(.btn-go, .btn-go:hover, .ds-btn-primary, .ds-btn-primary:hover) { background: var(--cream); color: #211e1b; }
.fp-hero.fp-full :is(.btn-line, .ds-btn-secondary) { border-color: var(--cream); color: var(--cream); }
/* A field on the picture: the focus ring in the top's cream, straight on the wall, as the plugin top's choices draw theirs. */
.fp-hero.fp-full .ds-in { --ds-gap: transparent; --ds-ring: var(--cream); }
.fp-hero.fp-full .actions:not(:has(*)) { display: none; } /* a top with no action (Plugins with the search in its list) */
.fp-hero.fp-full .fp-grid:has(.is-docked, .tb-panel:not([hidden])) { z-index: 55; } /* a tool docked at the window's top, or its open panel (Plugins), stays over the page */
.fp-hero.fp-full .fp-plate { position: absolute; z-index: 0; inset: 0; height: auto; margin: 0; overflow: hidden; }
.fp-hero.fp-full .fp-plate img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 100% 50%; }
.fp-hero.fp-full .fp-cap { position: absolute; z-index: 2; left: max(var(--m), (100% - 1440px) / 2 + var(--m)); right: max(var(--m), (100% - 1440px) / 2 + var(--m)); top: auto; bottom: 30px; }
.fp-hero.fp-full .fp-room { display: none; }
/* A flat dark ground (ground: :dark): light words read heavier on it than on a picture, so 430 here matches a picture's 520. */
.fp-hero.fp-full.fp-on-dark { background: var(--dark-top); }
.fp-hero.fp-full.fp-on-dark .fp-copy .body { font-weight: var(--w-on-flat-dark); }
@media (min-width: 1240px) {
  .fp-hero.fp-full { min-height: clamp(900px, 100vh, 70vw); }
  .fp-hero.fp-full .fp-grid { min-height: calc(clamp(900px, 100vh, 70vw) - 76px); }
  .fp-hero.fp-full .fp-copy { padding: 92px 24px 72px 0; }
  .fp-hero.fp-full .fp-copy h1 { margin-top: 32px; font-size: var(--t-hero); }
  /* short: 640 px whatever the window (a catalog's list follows in the first screen). The picture keeps its top, so its hang
     stays clear of the nav, and gives up its foot. */
  .fp-hero.fp-full.fp-short { min-height: 640px; }
  .fp-hero.fp-full.fp-short .fp-grid { min-height: 564px; }
  .fp-hero.fp-full.fp-short .fp-plate img { object-position: 100% 0; }
  .fp-hero.fp-full.fp-short .fp-copy h1 { margin-bottom: 40px; } /* the least space over the body, where the top is its content's height */
}
@media (max-width: 1239px) {
  .fp-hero.fp-full { display: flex; flex-direction: column; }
  .fp-hero.fp-full .nav { order: 0; }
  .fp-hero.fp-full > .wrap { width: 100%; }
  .fp-hero.fp-full .fp-grid { order: 2; }
  .fp-hero.fp-full .fp-copy { grid-column: 1 / -1; padding: 36px 0 56px; }
  .fp-hero.fp-full .fp-copy h1 { margin-top: 20px; font-size: var(--t-hero-phone); }
  .fp-hero.fp-full .fp-copy .body { margin-top: 28px; }
  .fp-hero.fp-full .fp-plate img { object-position: 50% 100%; }
  .fp-hero.fp-full .fp-room { display: block; order: 3; aspect-ratio: var(--room, 1 / 1.02); }
  .fp-hero.fp-full .fp-cap { position: relative; left: auto; right: auto; bottom: auto; padding: 0 var(--m) 18px; order: 4; }
}
@media (min-width: 761px) and (max-width: 1439px) {
  .fp-hero.fp-full .fp-copy h1 { font-size: clamp(var(--t-hero-phone), 4vw, var(--t-hero)); }
}
/* A short top keeps the desktop's order down to 1000 px, where its wall still hangs right of the words; under it, it stacks. */
@media (min-width: 1000px) and (max-width: 1239px) {
  .fp-hero.fp-full.fp-short { display: block; min-height: 640px; }
  .fp-hero.fp-full.fp-short .fp-grid { min-height: 564px; }
  .fp-hero.fp-full.fp-short .fp-copy { grid-column: 1 / span 6; padding: 92px 24px 72px 0; }
  .fp-hero.fp-full.fp-short .fp-copy h1 { margin: 32px 0 40px; }
  .fp-hero.fp-full.fp-short .fp-copy .body { margin-top: auto; }
  .fp-hero.fp-full.fp-short .fp-plate img { object-position: 100% 0; }
  .fp-hero.fp-full.fp-short .fp-room { display: none; }
  .fp-hero.fp-full.fp-short .fp-cap { position: absolute; left: var(--m); right: var(--m); bottom: 30px; padding: 0; }
}
/* The audience pages (HeroComponent audience:): a quieter label and, on wide windows, a larger heading. */
.fp-hero.fp-full.fp-audience .label { font-size: var(--t-label); font-weight: var(--w-label); letter-spacing: .02em; }
@media (min-width: 1440px) {
  .fp-hero.fp-full.fp-audience .fp-copy h1 { font-size: var(--t-hero-audience); }
}
@media (max-width: 760px) {
  .fp-hero.fp-full::after { top: 64px; }
  .fp-hero.fp-full .fp-sub { font-size: var(--t-hero-line-phone); margin-top: 18px; }
}
/* Phones (.fp-fit): the picture hangs from the copy's foot, its device's top edge (--fp-device) 40 px under the buttons. A long copy
   scales the picture up so its wall still reaches the top; the room under the device grows with it (--fp-copy-foot, from the script). */
@media (max-width: 760px) {
  .fp-hero.fp-full.fp-fit { --fp-tall: calc(100vw * 2926 / 1170); display: grid; grid-template-columns: minmax(0, 1fr); }
  .fp-hero.fp-full.fp-fit > * { grid-column: 1; }
  .fp-hero.fp-full.fp-fit > .nav { grid-row: 1; }
  .fp-hero.fp-full.fp-fit > .fp-grid { grid-row: 2; }
  .fp-hero.fp-full.fp-fit .fp-copy { padding-bottom: 40px; }
  .fp-hero.fp-full.fp-fit > .fp-room { grid-row: 3; aspect-ratio: auto; height: calc((1 - var(--fp-device)) * max(var(--fp-tall), var(--fp-copy-foot, 0px) / var(--fp-device))); }
  .fp-hero.fp-full.fp-fit > .fp-cap { grid-row: 3; align-self: end; }
  .fp-hero.fp-full.fp-fit > .fp-plate { grid-row: 1 / 3; grid-column: 1; overflow: visible; }
  .fp-hero.fp-full.fp-fit .fp-plate img { position: absolute; left: 50%; translate: -50% 0; width: auto; aspect-ratio: 1170 / 2926;
    height: max(100% / var(--fp-device), var(--fp-tall)); top: min(0px, 100% - var(--fp-device) * var(--fp-tall)); }
}
/* A short top stacked on a tablet hangs its picture as a phone top does, as the room under the copy would cover its words. */
@media (min-width: 761px) and (max-width: 999px) {
  .fp-hero.fp-full.fp-short.fp-fit { --fp-tall: calc(100vw * 2926 / 1170); display: grid; grid-template-columns: minmax(0, 1fr); }
  .fp-hero.fp-full.fp-short.fp-fit > * { grid-column: 1; }
  .fp-hero.fp-full.fp-short.fp-fit > .nav { grid-row: 1; }
  .fp-hero.fp-full.fp-short.fp-fit > .fp-grid { grid-row: 2; }
  .fp-hero.fp-full.fp-short.fp-fit .fp-copy { padding-bottom: 40px; }
  .fp-hero.fp-full.fp-short.fp-fit > .fp-room { grid-row: 3; aspect-ratio: auto; height: calc((1 - var(--fp-device)) * max(var(--fp-tall), var(--fp-copy-foot, 0px) / var(--fp-device))); }
  .fp-hero.fp-full.fp-short.fp-fit > .fp-cap { grid-row: 3; align-self: end; }
  .fp-hero.fp-full.fp-short.fp-fit > .fp-plate { grid-row: 1 / 3; grid-column: 1; overflow: visible; }
  .fp-hero.fp-full.fp-short.fp-fit .fp-plate img { position: absolute; left: 50%; translate: -50% 0; width: auto; aspect-ratio: 1170 / 2926;
    height: max(100% / var(--fp-device), var(--fp-tall)); top: min(0px, 100% - var(--fp-device) * var(--fp-tall)); }
}

/* ---------- The Developers hub's top (HeroComponent class_name: "dv-plan-top"): ink words on the lavender plan picture.
   Loaded where developers.css came after this file, so it keeps its place after the rules above. ---------- */
.fp-hero.fp-full.dv-plan-top { --ink: #2b2a29; --ink-2: rgba(43, 42, 41, .84); --ink-3: rgba(43, 42, 41, .7); --hair: rgba(43, 42, 41, .2);
  background: var(--sec-lavender); color: var(--ink); }
.fp-hero.fp-full.dv-plan-top .nav { color: var(--ink); }
.fp-hero.fp-full.dv-plan-top :is(.ds-btn-primary, .ds-btn-primary:hover) { background: var(--icon-ink); color: var(--band-paper); }
.fp-hero.fp-full.dv-plan-top .ds-btn-primary:hover { background: #000; }
.fp-hero.fp-full.dv-plan-top .ds-btn-secondary { border-color: color-mix(in srgb, var(--ink) 40%, transparent); color: var(--ink); }
.fp-hero.fp-full.dv-plan-top .ds-btn-secondary:hover { border-color: var(--ink); }
/* From 1240 px, today's hub rule: the master at the top's full height, under the bar as on every top, right-anchored, slid right until the
   board (from 42 % of its width) starts 56 px past the words' five columns; it never scales. Its ground is the band's. */
@media (min-width: 1240px) {
  .fp-hero.fp-full.dv-plan-top .dv-plan-art { inset: 0; container-type: size; }
  .fp-hero.fp-full.dv-plan-top .dv-plan-art img { position: absolute; top: 0; height: 100%; width: auto; max-width: none;
    --dv-free: calc(max(var(--m), (100cqw - 1440px) / 2 + var(--m)) + (min(100cqw, 1440px) - 2 * var(--m) - 11 * var(--g)) * 5 / 12 + 4 * var(--g) + 56px);
    left: max(100cqw - 200cqh, var(--dv-free) - 200cqh * .42);
    mask-image: linear-gradient(to right, transparent, #000 6%), var(--dv-under-bar); mask-composite: intersect; }
}
/* Below 1240 px the words stand on the band and the phone frame is a block under them. */
@media (max-width: 1239px) {
  .fp-hero.fp-full.dv-plan-top .dv-plan-art { display: none; }
  .fp-hero.fp-full.dv-plan-top .fp-room { aspect-ratio: 1560 / 975; }
  .fp-hero.fp-full.dv-plan-top .fp-room img { display: block; width: 100%; height: 100%; object-fit: cover;
    /* Its top edge fades into the band over the empty ground on the left (the board starts at 62 % of the width). */
    mask-image: linear-gradient(transparent, #000 40px), linear-gradient(#000, #000); mask-size: 60% 100%, 40% 100%;
    mask-position: left top, right top; mask-repeat: no-repeat; }
}

/* A long title (.fp-hero--long-title on the full top): from 1240 px it takes For Work's two-to-three-line measure (seven of the
   twelve columns) and keeps the reference lede gap however long it runs. */
@media (min-width: 1240px) {
  .fp-hero.fp-full.fp-hero--long-title .fp-copy { grid-column: 1 / span 7; }
  .fp-hero.fp-full.fp-hero--long-title .fp-copy .body, .fp-hero.fp-full.fp-hero--long-title .fp-copy .price { max-width: 420px; }
  .fp-hero.fp-full.fp-hero--long-title .fp-copy h1 { margin-bottom: 40px; }
  /* The picture's devices start right of the words' box it was composed for (x 64 to 620 at 1440, the title at 64 px), so the
     title keeps that measure at every size. */
  .fp-hero.fp-full.fp-hero--long-title .fp-copy h1 { max-width: min(556px, 8.6875em); }
  /* Both caption parts stand at the left, on the calm wall the words use: at the right they fall on the room's lightest things
     (an oak door, a counter, a lit table), where cream type has little contrast. */
  .fp-hero.fp-full.fp-hero--long-title .fp-cap .r { margin-left: 0; }
}
/* Narrower than the picture (1240 to 1920 px wide, a window taller than 1.6 : 1 or narrower than 1440): the top cuts it from the
   left, which slides the device under the title. Cut from the left only what keeps the leftmost device (43 % in) 16 px clear of
   the title's right edge, and the rest from the right. At 1440 x 900 and from 1921 nothing changes. */
@media (min-width: 1240px) and (max-width: 1920px) {
  .fp-hero.fp-full.fp-hero--long-title .fp-plate { container-type: size;
    --long-title-pw: max(100cqw, 1.6 * 100cqh);
    --long-title-right: calc(max(var(--m), (100cqw - 1440px) / 2 + var(--m)) + min(556px, 34.75cqw)); }
  .fp-hero.fp-full.fp-hero--long-title .fp-plate img {
    object-position: calc(-1 * clamp(0px, .43 * var(--long-title-pw) - var(--long-title-right) - 16px, var(--long-title-pw) - 100cqw)) 50%; }
}
/* Its crumb runs inline, as one line where it fits. */
.fp-hero.fp-full.fp-hero--long-title .dv-crumb ol { display: block; }
.fp-hero.fp-full.fp-hero--long-title .dv-crumb li { display: inline; }
.fp-hero.fp-full.fp-hero--long-title .dv-crumb li + li::before { margin: 0 6px; }
/* A link inside the top's lines (no reference top has one): the Developers ledes' underline. */
.fp-hero--long-title .fp-copy .body a:not(.s-arrow) { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: currentColor; }
