/* ==========================================================================
   SKYTERRA GROUP: Custom Agents, the walkthrough of 21 November 2026
   Loaded last, after the page's older sheets and the shared site_v5.css.

   What is here:
     1. the hero: words left, the two buttons right (12:28)
     2. the bubble Sky Guides where the page shows an agent at work
     3. the Train step in words: Kept or Fixed, a rule, a rank (12:58)
     4. "Costs and ROI, explained": one figure in six stops (14:17 to 14:43)
     5. Getting started: two white doors
   Text is ink or the brand blue. Boxes are white with the dark blue border.
   The one light fill is --v5-select, on a selected state.
   ========================================================================== */

/* ---------- 0. the first visit ----------
   Until the web fonts arrive the page is set in a local font. These stand-ins give that font the web fonts'
   widths and line metrics (size-adjust and the overrides, measured against Arial), so the lines break where they will break and nothing moves
   when the fonts come in. A browser with none of the named fonts uses its own, as before. */
@font-face{ font-family:"Space Grotesk Fallback"; font-weight:400 500; size-adjust:108%; ascent-override:91.1%; descent-override:27.8%; line-gap-override:0%;
            src:local("Arial"), local("Liberation Sans"), local("Helvetica Neue"), local("Helvetica"), local("Arimo"); }
@font-face{ font-family:"Space Grotesk Fallback"; font-weight:600 700; size-adjust:101%; ascent-override:97.4%; descent-override:29.7%; line-gap-override:0%;
            src:local("Arial Bold"), local("Liberation Sans Bold"), local("Helvetica Neue Bold"), local("Helvetica Bold"), local("Arimo Bold"); }
@font-face{ font-family:"Space Grotesk Caps Fallback"; font-weight:400 700; size-adjust:90%; ascent-override:109.3%; descent-override:33.3%; line-gap-override:0%;      /* capitals: buttons, the menu */
            src:local("Arial"), local("Liberation Sans"), local("Helvetica Neue"), local("Helvetica"), local("Arimo"); }
@font-face{ font-family:"Poppins Fallback"; font-weight:400 500; size-adjust:112%; ascent-override:93.75%; descent-override:31.25%; line-gap-override:8.9%;
            src:local("Arial"), local("Liberation Sans"), local("Helvetica Neue"), local("Helvetica"), local("Arimo"); }
@font-face{ font-family:"Poppins Fallback"; font-weight:600 700; size-adjust:105%; ascent-override:100%; descent-override:33.3%; line-gap-override:9.5%;
            src:local("Arial Bold"), local("Liberation Sans Bold"), local("Helvetica Neue Bold"), local("Helvetica Bold"), local("Arimo Bold"); }
:root{ --f-display:"Space Grotesk", "Space Grotesk Fallback", "Poppins", system-ui, -apple-system, sans-serif;
       --f-body:"Poppins", "Poppins Fallback", system-ui, -apple-system, sans-serif; }
.btn, .header-nav a{ font-family:"Space Grotesk", "Space Grotesk Caps Fallback", "Poppins", system-ui, -apple-system, sans-serif; }

/* ---------- 1. hero ---------- */
/* The inner pages share one title: 3.5rem on one line at desktop width, as in the_app_v5.css. Here the two buttons
   stand beside it, so from 1140 to 1306 px the size gives way to keep that one line (nowrap: it is one line in any
   font, so the hero is the same height before and after the web font arrives). Under 1140 px the hero is one
   centered column, the title is the two-line lockup, and its size never exceeds the size it has at 1140 px:
   the title steps down as the window narrows, never up. */
.pg-head h1{ font-weight:700; font-size:clamp(2.5rem, 1.3rem + 4vw, 2.8rem); letter-spacing:-.04em; line-height:1; text-wrap:balance; }
.pg-head h1 .v5-hl{ display:block; }
@media (min-width:1140px){
  .pg-head h1{ font-size:clamp(2.8rem, 6.8vw - 32.8px, 3.5rem); text-wrap:wrap; white-space:nowrap; }
  .pg-head h1 .v5-hl{ display:inline; }
}
.hero5{ display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center;
        gap:24px clamp(24px,3.4vw,56px); }
.hero5 .lead{ max-width:40em; }
.hero5-act{ display:grid; justify-items:center; gap:14px; }
.hero5-crew{ display:flex; align-items:flex-end; justify-content:center; gap:4px; }
.hero5 .cta-row{ margin-top:0; flex-wrap:nowrap; }

/* ---------- 2. Sky Guides at work ---------- */
.mf-f .sgb{ margin:-6px 0 -2px; }                      /* the fix is a guide's work */
.hx2-tab .sgb{ margin:-4px 0; }

/* ---------- 3. the Train step ---------- */
.trn{ display:grid; justify-items:center; gap:8px; text-align:center; }
.trn-h{ font-family:var(--f-display); font-weight:600; font-size:var(--fs-body); line-height:1.3; color:var(--ink); }
.trn-vs{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.trn-v{ position:relative; display:inline-flex; align-items:center; justify-content:center; min-height:36px; padding:4px 14px;
        background:#fff; border:var(--v5-edge-w) solid var(--v5-edge); border-radius:99px;
        font-family:var(--f-display); font-weight:600; font-size:var(--fs-small); line-height:1; color:var(--brand); }
.trn-v--fix{ border-style:dashed; color:var(--ink); }
/* the one Fixed result points down at the rule it becomes */
.trn-v--fix::before{ content:""; position:absolute; left:50%; top:calc(100% + 3px); width:2px; height:13px; margin-left:-1px; background:var(--brand); }
.trn-v--fix::after{ content:""; position:absolute; left:50%; top:calc(100% + 9px); width:8px; height:8px; margin-left:-4px;
                    border-right:2px solid var(--brand); border-bottom:2px solid var(--brand); transform:rotate(45deg); }
.trn-rule{ margin-top:14px; padding:8px 18px; background:#fff; border:var(--v5-edge-w) solid var(--v5-edge); border-radius:var(--v5-r-sm);
           font-size:var(--fs-body); line-height:1.35; color:var(--ink); }
.trn-rule b{ font-family:var(--f-display); font-weight:600; color:var(--brand); }
.trn-h--rank{ margin-top:10px; }
.trn-ranks{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0 clamp(8px,1.6vw,22px); }
.trn-ranks li{ position:relative; display:grid; justify-items:center; justify-content:center; gap:4px;
               font-family:var(--f-display); font-weight:600; font-size:var(--fs-small); line-height:1.2; color:var(--ink); }
.trn-ranks li:last-child{ color:var(--brand); }
/* a short arrow from each rank to the next */
.trn-ranks li + li::before{ content:""; position:absolute; top:34px; left:calc(clamp(8px,1.6vw,22px) / -2 - 5px); width:8px; height:8px;
                            border-top:2px solid var(--brand); border-right:2px solid var(--brand); transform:rotate(45deg); }

/* ---------- 4. Costs and ROI, explained ---------- */
.cr{ display:grid; gap:18px; scroll-margin-top:calc(var(--nav-h) + 16px); }
.cr-stage{ display:grid; gap:clamp(18px,2.2vw,28px); padding:clamp(18px,2.6vw,36px); background:#fff;
           border:var(--v5-edge-w) solid var(--v5-edge); border-radius:var(--v5-r); box-shadow:var(--v5-lift); }

/* the readout: the number of this stop, and how we got it. On a wide screen Back and Next stand
   either side of it; they keep their places from stop to stop. */
.cr-top{ display:grid; gap:16px; }
.cr-read{ display:grid; text-align:center; }
@media (min-width:1021px){
  .cr.is-live .cr-top{ grid-template-columns:17.5rem minmax(0,1fr) 17.5rem; align-items:center; gap:0 16px; }
  .cr.is-live .stp-nav{ display:contents; }
  .cr.is-live .cr-read{ grid-area:1 / 2; }
  .cr.is-live .stp-prev{ grid-area:1 / 1; justify-self:start; }
  .cr.is-live .stp-next{ grid-area:1 / 3; justify-self:end; }
}
.cr-p{ display:grid; justify-items:center; align-content:center; gap:8px; }
.cr-p + .cr-p{ margin-top:18px; }                       /* without script the six read as a list */
.cr-big{ font-family:var(--f-display); font-weight:600; font-size:clamp(1.25rem, .9rem + 1.5vw, 2.25rem);
         line-height:1; letter-spacing:-.02em; color:var(--ink); }
.cr-num{ display:inline-block; font-size:2.6em; letter-spacing:-.04em; text-align:right; color:var(--brand);
         font-variant-numeric:tabular-nums; }
.cr-how{ max-width:34em; font-size:var(--fs-lead); line-height:1.4; color:var(--ink); text-wrap:balance; }
.js .cr .cr-p{ grid-area:1 / 1; margin-top:0; visibility:hidden; opacity:0; }
.js .cr .cr-p.is-on{ visibility:visible; opacity:1; transition:opacity var(--d2) ease; }
html:not(.js) .cr .stp-rail{ display:none; }            /* a rail that could not be used is not shown */

/* the chart: the tasks as dots, then three pairs of bars drawn to scale */
.cr-chart{ display:grid; gap:clamp(14px,1.8vw,24px); }
.cr-work{ display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:0 12px; }
.cr-work .cr-l{ grid-column:1 / -1; min-height:0; justify-content:center; }
.cr-dots{ display:flex; flex-wrap:wrap; gap:3px; }
.cr-dots i{ width:6px; height:6px; border-radius:50%; background:var(--brand); }
.cr.is-live .cr-dots i{ opacity:0; transform:scale(.4); transition:opacity 180ms ease, transform 180ms var(--e-out); }
.cr.is-live .cr-dots i.on{ opacity:1; transform:none; }

.cr-groups{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px clamp(20px,3vw,44px); align-items:start; }
.cr-g{ --lab:9.5rem; display:grid; gap:2px; min-width:0; }       /* --lab: room kept for the value at the bar's tip */
/* a head inside the chart is centred over its bars, as every head on the page is */
.cr-gh{ font-family:var(--f-display); font-weight:600; font-size:var(--fs-h3); letter-spacing:-.015em; line-height:1.2; color:var(--ink);
        text-align:center; }
.cr-l{ display:flex; align-items:flex-end; gap:8px; min-height:3.1em; padding-bottom:2px; font-size:var(--fs-small); line-height:1.35; color:var(--ink); }
.cr-t{ display:flex; align-items:center; min-height:44px; }
.cr-bar{ flex:none; height:18px; min-width:3px; border-radius:0 5px 5px 0; width:calc(var(--w) * (100% - var(--lab)) / 100); }
.cr-bar--hand{ background:var(--c-hand); }
.cr-bar--ours{ background:var(--c-ours); }
.cr-sum{ margin-top:6px; font-size:var(--fs-small); line-height:1.45; color:var(--ink); text-wrap:balance; }
.cr-sum b{ font-family:var(--f-display); font-weight:600; color:var(--brand); }

/* every number is a button: point at it or focus it for how we got it, press it to go to its stop */
.cr-val{ position:relative; display:inline-flex; flex:none; }
.cr-v{ appearance:none; border:0; background:none; cursor:pointer; min-height:44px; margin-left:2px; padding:0 8px;
       border-radius:var(--v5-r-sm); font-family:var(--f-display); font-weight:600; font-size:1.0625rem; line-height:1;
       color:var(--brand); white-space:nowrap; text-decoration:underline dotted; text-decoration-thickness:1.5px;
       text-underline-offset:5px; transition:background var(--d1) ease; }
.cr-v.is-cur{ background:var(--v5-select); }
.cr-v:focus-visible{ outline:3px solid var(--sky); outline-offset:2px; }
.cr-tip{ display:none; position:absolute; z-index:3; left:0; bottom:calc(100% + 4px); width:max-content; max-width:min(18.5rem, 72vw);
         padding:10px 14px; background:#fff; border:var(--v5-edge-w) solid var(--v5-edge); border-radius:var(--v5-r-sm);
         box-shadow:0 12px 24px -14px rgba(0,76,151,.6); font-size:var(--fs-small); line-height:1.4; color:var(--ink);
         text-align:left; white-space:normal; text-wrap:pretty; }
.cr-val--end .cr-tip{ left:auto; right:0; }
/* a bar's note stands over its row, from the row's left edge: always inside the figure, on any screen */
.cr-t{ position:relative; }
.cr-t .cr-val{ position:static; }
.cr-tip::after{ content:""; position:absolute; left:0; right:0; top:100%; height:8px; }   /* the pointer can cross to the note */
.cr-v:focus-visible + .cr-tip, .cr-val.is-open > .cr-tip{ display:block; }   /* is-open: the number was tapped */
@media (hover:hover){
  .cr-v:hover{ background:var(--v5-select); }
  .cr-val:hover > .cr-tip{ display:block; }
}
.cr .cr-val.is-off > .cr-tip{ display:none; }           /* Escape puts the note away */
/* where a note stands, so that nothing moves when it opens or closes and no number is covered:
   wide, under its own group, in the room the tallest group leaves; on a tablet, under its own group too, in room
   the group keeps for it (.cr-room, set by the script: every note of the group in one cell, unseen); on a phone no
   room is kept: the note lies over the chart, right under its number, where the script finds it clear of every
   number and of its own label and dots (it may lie over a heading or another row's label). A note takes no
   room in the flow, so it cannot push a number out from under a finger. A monthly number's note is already printed
   in its group (the label, the sum), so pointing marks those words. */
.cr-g{ position:relative; }
.cr-g .cr-t{ position:static; }
.cr-g .cr-tip::after{ display:none; }
.cr-room{ display:none; }
@media (min-width:1021px){
  .cr-g .cr-tip{ top:calc(100% + 6px); bottom:auto; max-width:100%; }
}
@media (min-width:701px) and (max-width:1020px){
  .cr-room{ display:grid; margin-top:6px; }
  .cr-room > span{ grid-area:1 / 1; visibility:hidden; padding:10px 14px; border:var(--v5-edge-w) solid transparent;
                   font-size:var(--fs-small); line-height:1.4; text-align:left; text-wrap:pretty; }
  .cr-g .cr-tip{ top:auto; bottom:0; left:0; right:0; width:auto; max-width:none; box-shadow:none; }
}
@media (max-width:700px){
  .cr-chart{ position:relative; }
  .cr-chart .cr-g, .cr-chart .cr-val{ position:static; }
  .cr-chart .cr-tip{ left:var(--tx, 0); top:var(--ty, 0); right:auto; bottom:auto; width:var(--tw, 100%); max-width:none; padding:6px 12px; text-wrap:balance; }
  .cr-groups{ row-gap:26px; }                           /* a three-line note fits between a group's last number and the next group's first */
  .cr-chart .cr-tip::after{ display:none; }
  .cr-chart .cr-tip.is-none{ display:none; }            /* no clear place at this width: the readout above says the same words */
}
.cr-g:has(.cr-val:not(.is-off) > [aria-describedby="cr-eng"]:is(:hover, :focus-visible)) #cr-eng,
.cr-g:has(.cr-val.is-open > [aria-describedby="cr-eng"]) #cr-eng,
.cr-g:has(.cr-val:not(.is-off) > [aria-describedby="cr-sum"]:is(:hover, :focus-visible)) #cr-sum,
.cr-g:has(.cr-val.is-open > [aria-describedby="cr-sum"]) #cr-sum{
  outline:var(--v5-edge-w) solid var(--v5-edge); outline-offset:5px; border-radius:var(--v5-r-sm); }
/* Back keeps its place when it is not offered (the first stop), so Next never moves under a pointer */
.is-live .stp-nav .btn[hidden]{ display:inline-flex; visibility:hidden; }
.js .stp.is-live > .stp-nav, .cr.is-live .stp-nav{ display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); }
.is-live .stp-nav .stp-prev{ justify-self:end; }
@media (max-width:640px){
  /* a narrow screen: Next takes the row, Back the row under it (kept when Back is not offered) */
  .js .stp.is-live > .stp-nav, .cr.is-live .stp-nav{ grid-template-columns:minmax(0,1fr); }
  .stp-nav .btn, .stp-nav .stp-next, .cr .stp-nav .stp-next{ width:auto; min-width:0; padding:0 16px; justify-self:stretch; }
  .stp-nav .stp-prev[hidden] + .stp-next, .stp-nav .stp-next{ grid-column:auto; grid-row:1; }
  .is-live .stp-nav .stp-prev{ grid-row:2; justify-self:stretch; }
}
/* one column: a step's words and its drawing stay together in the middle of the shared box (no gap between them) */
@media (max-width:900px){ #build .stp-panel{ align-content:center; } }
@media (min-width:1021px){ .cr.is-live .stp-nav{ display:contents; } }
@media (min-width:481px){ .cr .stp-nav .stp-next{ min-width:17.5rem; } }   /* the longest label: Next: With Sky Guides */

/* a stop shows the parts up to it; the rest wait, with their room kept, so nothing jumps */
.cr.is-live [data-at]{ visibility:hidden; opacity:0; transform:translateY(8px);
                       transition:opacity var(--d2) ease, transform var(--d2) var(--e-out), visibility 0s linear var(--d2); }
.cr.is-live [data-at].is-shown{ visibility:visible; opacity:1; transform:none; transition-delay:0s; }
.cr.is-live [data-at] .cr-bar{ width:0; transition:width 900ms var(--e-out) 120ms; }
.cr.is-live .is-shown .cr-bar{ width:calc(var(--w) * (100% - var(--lab)) / 100); }

.cr-note{ font-size:var(--fs-body); line-height:1.45; text-align:center; text-wrap:balance; color:var(--ink); }

/* ---------- 5. Getting started ---------- */
.doors .door{ align-items:center; text-align:center; }
.doors .door p{ max-width:32em; }
.doors .door-act{ justify-content:center; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion:no-preference){
  .cr.is-live .is-shown .cr-l .sgb{ animation:dgPop 400ms var(--e-out) 200ms both; }
}
@media (prefers-reduced-motion:reduce){
  .cr.is-live [data-at], .cr.is-live [data-at] .cr-bar, .js .cr .cr-p, .cr.is-live .cr-dots i{ transition:none; }
}

/* ---------- widths ---------- */
@media (max-width:1139px){                              /* the hero as one centered column */
  .hero5{ grid-template-columns:minmax(0,1fr); justify-items:center; text-align:center; }
  .hero5 .lead{ margin-inline:auto; }
  .hero5 .cta-row{ justify-content:center; }
}
@media (max-width:1020px){
  .cr-lx{ display:none; }                               /* the rail's labels in their short form, one line each */
  .cr-top{ margin-bottom:10px; }                        /* Back and Next stand clear of the chart under them */
  .cr-groups{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cr-g--month{ grid-column:1 / -1; }
  .cr-l{ min-height:0; padding-top:8px; }               /* each label here is one line: no room is held for a second */
}
/* on a tablet the monthly bars keep the left column and their sum stands beside them, in the right one */
@media (min-width:701px) and (max-width:1020px){
  .cr-g--month{ grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:clamp(20px,3vw,44px); align-items:center; }
  .cr-g--month > .cr-gh{ grid-column:1 / -1; }
  .cr-g--month > .cr-row{ grid-column:1; }
  .cr-g--month > .cr-sum{ grid-column:2; grid-row:2 / span 2; margin-top:0; }
  /* the task count and its note have a column of their own beside the dots: the note opens under its number
     and covers nothing */
  .cr-work{ grid-template-columns:minmax(0,1fr) 15rem; align-items:start; }
  .cr-work .cr-val{ justify-self:start; }
  .cr-work .cr-tip{ left:0; right:auto; top:calc(100% + 4px); bottom:auto; width:15rem; max-width:none; }
  .cr-work .cr-tip::after{ top:auto; bottom:100%; }
}
@media (max-width:700px){
  .cr-groups{ grid-template-columns:minmax(0,1fr); }
  .cr-g--month{ grid-column:auto; }
  .cr-work{ grid-template-columns:minmax(0,1fr); }
  .cr-work .cr-val{ justify-self:end; }
  .cr-dots{ gap:2px; }
  .cr-dots i{ width:5px; height:5px; }
  .trn-ranks .sgb{ --sgb:52px !important; }
  .trn-ranks li + li::before{ top:22px; }
}
@media (max-width:480px){
  /* the four verdicts keep one line, so the arrow under Fixed lands on the rule; a rank's name keeps one line too */
  .trn-vs{ flex-wrap:nowrap; gap:6px; }
  .trn-v{ padding:4px 11px; }
  .trn-ranks li{ font-size:.875rem; white-space:nowrap; }
  .hero5-crew .sgb{ --sgb:52px !important; }
  .hero5-crew .sgb--lead{ --sgb:76px !important; }
  .hero5 .cta-row{ flex-wrap:wrap; width:100%; }
}
@media (max-width:359px){
  .trn-vs{ gap:4px; }
  .trn-v{ padding:4px 8px; font-size:.8125rem; }
  .trn-ranks li{ font-size:.8125rem; white-space:normal; }
}

@media print{
  .cr.is-live [data-at]{ visibility:visible; opacity:1; transform:none; }
  .js .cr .cr-p{ grid-area:auto; margin-top:18px; visibility:visible; opacity:1; }
  .cr.is-live .cr-dots i{ opacity:1; transform:none; }
  .cr .stp-rail, .stp-nav, .cr-room{ display:none !important; }
  .cr-bar, .cr-dots i{ print-color-adjust:exact; -webkit-print-color-adjust:exact; }
}
