/* QLOGIX "Quarter" - Our app / Client portal page.
   Loaded after ../styles.css; uses its tokens and shared parts (.label, .bar, .h2, .btn, .sec-head, .art).
   The page's own idea: a shipment's status as a route line with the position dot and five milestones. */

.ap-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.label > span { min-width: 0; }

/* ---------- hero ---------- */
.ap-hero { position: relative; padding-top: clamp(100px, 12vh, 160px); padding-bottom: clamp(40px, 5vw, 80px); }
.ap-hero__grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 80px); align-items: center; }
.ap-hero__h1 {
  margin-top: 26px;
  font-family: var(--display);
  font-size: clamp(3.2rem, min(8.6vw, 13.5vh), 8.2rem);
  font-weight: 800; line-height: .92; letter-spacing: -.03em;
  font-variation-settings: "opsz" 96;
  overflow-wrap: break-word;
}
.ap-hero__h1 em { display: block; font-style: normal; color: var(--brand-600); }
/* the full stop of "Live." is the position dot */
.ap-stop { display: inline-block; width: .17em; height: .17em; margin-left: .09em; border-radius: 50%; background: var(--brand-400); box-shadow: 0 0 0 .085em rgba(41, 182, 232, .25); }
.ap-hero__lead { margin-top: clamp(22px, 3.4vh, 34px); max-width: 36ch; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.5; color: var(--muted); }
.ap-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(24px, 3.8vh, 38px); }
.js .ap-hero__cta[data-reveal] { transition-delay: .25s; }

.ap-hero__side { position: relative; padding-left: 16%; padding-bottom: 72px; }
.ap-hero__art { aspect-ratio: 4 / 5; max-height: 70vh; margin-left: auto; border-radius: var(--r) var(--q) var(--r) var(--r); }

/* the five milestones: the legend of the arc, and the piece that overlaps the picture */
.ap-hero__steps {
  position: absolute; left: 0; bottom: 0; width: min(54%, 300px);
  padding: clamp(18px, 1.8vw, 26px) clamp(18px, 1.8vw, 26px) clamp(16px, 1.6vw, 22px);
  background: var(--navy-950); color: var(--on-dark);
  border-radius: var(--r) calc(var(--r) * 2.6) var(--r) var(--r);
  box-shadow: 0 0 0 10px #fff;
}
.ap-hero__steps li { position: relative; padding: 0 0 14px 34px; font-family: var(--display); font-weight: 600; font-size: clamp(1rem, 1.25vw, 1.1875rem); line-height: 1.25; letter-spacing: -.01em; }
.ap-hero__steps li:last-child { padding-bottom: 0; }
.ap-hero__steps li::before { content: ""; position: absolute; left: 3px; top: .22em; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 3px var(--brand-300); }
.ap-hero__steps li::after { content: ""; position: absolute; left: 9px; top: calc(.22em + 18px); bottom: calc(-.22em + 4px); width: 2px; background: var(--navy-700); }
.ap-hero__steps li:last-child::after { display: none; }
.ap-hero__steps li.is-done::before { background: var(--brand-300); }
.ap-hero__steps li.is-done::after { background: var(--brand-300); }
.ap-hero__steps li.is-now { color: #fff; font-weight: 750; }
.ap-hero__steps li.is-now::before { background: var(--brand-400); box-shadow: 0 0 0 6px rgba(41, 182, 232, .3); }
.js .ap-hero__steps { transform-origin: 0 100%; transition: transform 1s .7s var(--ease), opacity .5s .7s; }
@supports selector(:has(*)) { /* without :has() the list simply stays visible */
  .js .ap-hero__steps { opacity: 0; transform: scale(.8); }
  .js .ap-hero__side:has(.art.is-seen) .ap-hero__steps { opacity: 1; transform: none; }
}

/* ---------- the three figures, set like the homepage facts ---------- */
.ap-facts { border-block: 1px solid var(--navy-100); padding-block: clamp(18px, 2.2vw, 30px); }
.ap-facts ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px clamp(20px, 2.6vw, 48px); }
.ap-facts li { display: flex; align-items: center; gap: .6em; font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.25; color: var(--muted); }
.ap-facts li span { max-width: 9em; }
.ap-facts li + li::before { content: ""; flex: none; width: 34px; height: 6px; margin-right: clamp(20px, 2.6vw, 48px); background: var(--brand-400); border-radius: 1px; }
.ap-facts b { flex: none; white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 4.5rem); letter-spacing: -.035em; line-height: 1; color: var(--navy-950); }

/* wide screens: one row; a label stays on one line when the row has room and wraps only when it must */
@media (min-width: 1181px) {
  .ap-facts ul { flex-wrap: nowrap; }
  .ap-facts li { min-width: 0; }
  .ap-facts li span { max-width: none; text-wrap: balance; }
}

/* ---------- inside the platform ---------- */
.ap-inside { --ring: #fff; margin-top: clamp(48px, 6vw, 96px); padding-block: var(--sec); background: var(--navy-950); color: #fff; border-radius: var(--q) 0 0 0; }
.ap-inside .label { color: var(--brand-300); }
.ap-inside .h2 em { color: var(--brand-400); }
.ap-inside .sec-head__lead { color: var(--on-dark); }

.ap-pv { display: grid; gap: 18px; }
.ap-pv__sheet {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  background: #fff; color: var(--navy-950);
  border-radius: var(--r) calc(var(--q) * .6) var(--r) var(--r);
  overflow: hidden;
}
.ap-pv__main { display: grid; gap: clamp(20px, 2.4vw, 34px); align-content: start; padding: clamp(20px, 3vw, 46px); min-width: 0; }
.ap-pv__t { font-family: var(--display); font-weight: 750; font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.05; letter-spacing: -.03em; }
.ap-pv__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.ap-pv__tag { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; color: var(--brand-700); } /* the site's label style */
.ap-pv__s { flex: 0 0 100%; color: var(--muted); font-size: .9875rem; }

.ap-pv__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-block: 1.5px solid var(--navy-100); }
.ap-pv__stats > div { display: flex; flex-direction: column; gap: 6px; padding: clamp(14px, 1.6vw, 22px) clamp(12px, 1.6vw, 24px) clamp(14px, 1.6vw, 22px) 0; }
.ap-pv__stats > div + div { padding-left: clamp(12px, 1.6vw, 24px); border-left: 1.5px solid var(--navy-100); }
.ap-pv__stats dd { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 3.25rem); line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ap-pv__stats dt { order: 2; font-size: .875rem; line-height: 1.35; color: var(--muted); }

.ap-ship { display: grid; gap: clamp(20px, 2.2vw, 30px); padding: clamp(18px, 2.2vw, 30px); background: var(--brand-50); border-radius: 20px; }
.ap-ship__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; }
.ap-ship__id { font-family: var(--display); font-weight: 750; font-size: clamp(1.2rem, 1.6vw, 1.5rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ap-ship__route { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-weight: 500; }
.ap-ship__route i { position: relative; width: 26px; height: 2px; background: currentColor; }
.ap-ship__route i::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.ap-ship__state { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; font-weight: 700; color: var(--brand-700); }
.ap-ship__state::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-400); box-shadow: 0 0 0 4px rgba(41, 182, 232, .3); }
.ap-ship__eta { font-size: .9375rem; color: var(--muted); }
.ap-ship__eta b { color: var(--navy-950); font-weight: 700; font-variant-numeric: tabular-nums; }

/* the route line: five milestones, done / now / ahead */
.ap-ms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ap-ms li { position: relative; padding: 34px 10px 0 0; font-size: .875rem; line-height: 1.3; font-weight: 500; color: var(--muted); -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.ap-ms li::before { content: ""; position: absolute; z-index: 1; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-50); box-shadow: inset 0 0 0 3px var(--navy-400); }
.ap-ms li::after { content: ""; position: absolute; left: 9px; top: 9.5px; width: 100%; height: 3px; background: repeating-linear-gradient(90deg, var(--navy-400) 0 6px, transparent 6px 12px); transform-origin: 0 50%; }
.ap-ms li:last-child::after { display: none; }
.ap-ms li.is-done, .ap-ms li.is-now { color: var(--navy-950); font-weight: 600; }
.ap-ms li.is-done::before { background: var(--brand-700); box-shadow: none; }
.ap-ms li.is-done::after { background: var(--brand-700); }
.ap-ms li.is-now { font-weight: 700; }
.ap-ms li.is-now::before { left: -2px; top: 0; width: 22px; height: 22px; background: var(--brand-400); box-shadow: 0 0 0 6px rgba(41, 182, 232, .3); }

.ap-score { display: grid; align-content: start; gap: 6px; padding: clamp(22px, 3vw, 46px); padding-top: clamp(28px, 5vw, 76px); background: var(--navy-900); color: #fff; min-width: 0; }
.ap-score__big { display: flex; align-items: baseline; gap: 10px; font-family: var(--display); }
.ap-score__big b { font-weight: 800; font-size: clamp(4rem, 7.4vw, 7rem); line-height: .86; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.ap-score__big span { font-weight: 600; font-size: clamp(1.25rem, 1.8vw, 1.75rem); color: var(--brand-300); }
.ap-score__cap { color: var(--on-dark); font-size: .9875rem; }
.ap-score__list { display: grid; gap: 18px; margin: clamp(20px, 2.6vw, 36px) 0 0; }
.ap-score__list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: baseline; }
.ap-score__list dt { font-size: .9375rem; color: var(--on-dark); }
.ap-score__list dd { font-family: var(--display); font-weight: 700; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.ap-score__list i { position: relative; grid-column: 1 / -1; height: 6px; background: var(--navy-700); border-radius: 1px; overflow: hidden; }
.ap-score__list i::after { content: ""; position: absolute; inset: 0; background: var(--brand-400); transform: scaleX(var(--v, 1)); transform-origin: 0 50%; }

.ap-pv__cap { display: flex; align-items: flex-start; gap: 14px; font-size: .875rem; line-height: 1.5; color: var(--on-dark); }
.ap-pv__cap .bar { margin-top: .5em; }

.ap-notes { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px 0; margin-top: clamp(36px, 4.5vw, 72px); }
.ap-notes > div { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 1.5px solid rgba(255, 255, 255, .16); }
.ap-notes > div:first-child { padding-right: clamp(24px, 5vw, 88px); }
.ap-notes h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1.05; letter-spacing: -.03em; }
.ap-notes p { max-width: 46ch; color: var(--on-dark); }

/* entrance of the preview's drawn parts (JS + motion allowed only) */
@media screen and (prefers-reduced-motion: no-preference) {
  .js .ap-pv .ap-ms li::after { transform: scaleX(0); transition: transform .5s var(--ease-in-out); }
  .js .ap-pv .ap-ms li::before { opacity: 0; transition: opacity .4s; }
  .js .ap-pv.is-seen .ap-ms li::after { transform: none; }
  .js .ap-pv.is-seen .ap-ms li::before { opacity: 1; }
  .js .ap-pv.is-seen .ap-ms li:nth-child(1)::before { transition-delay: .5s; }
  .js .ap-pv.is-seen .ap-ms li:nth-child(1)::after { transition-delay: .6s; }
  .js .ap-pv.is-seen .ap-ms li:nth-child(2)::before { transition-delay: 1s; }
  .js .ap-pv.is-seen .ap-ms li:nth-child(2)::after { transition-delay: 1.1s; }
  .js .ap-pv.is-seen .ap-ms li:nth-child(3)::before { transition-delay: 1.5s; }
  .js .ap-pv.is-seen .ap-ms li:nth-child(3)::after { transition-delay: 1.7s; }
  .js .ap-pv.is-seen .ap-ms li:nth-child(4)::before { transition-delay: 1.8s; }
  .js .ap-pv.is-seen .ap-ms li:nth-child(4)::after { transition-delay: 1.9s; }
  .js .ap-pv.is-seen .ap-ms li:nth-child(5)::before { transition-delay: 2s; }
  .js .ap-pv .ap-score__list i::after { transform: scaleX(0); transition: transform 1.1s .6s var(--ease-in-out); }
  .js .ap-pv.is-seen .ap-score__list i::after { transform: scaleX(var(--v, 1)); }
  .js .ap-pv.is-seen .ap-score__list div:nth-child(2) i::after { transition-delay: .75s; }
  .js .ap-pv.is-seen .ap-score__list div:nth-child(3) i::after { transition-delay: .9s; }
}

/* ---------- features: large typographic rows ---------- */
.ap-feat { padding-block: var(--sec); }
.ap-rows { border-bottom: 1.5px solid var(--navy-200); }
.ap-row {
  display: grid; grid-template-columns: clamp(48px, 7vw, 120px) minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(24px, 4vw, 72px); align-items: start;
  padding-block: clamp(28px, 3.6vw, 60px); border-top: 1.5px solid var(--navy-200);
}
.ap-row__n { padding-top: .5em; font-family: var(--display); font-weight: 600; font-size: 1.0625rem; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.ap-row h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 4rem); line-height: 1; letter-spacing: -.032em; text-wrap: balance; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.ap-row h3 i { display: block; font-style: normal; font-weight: 400; color: var(--muted); }
.ap-row__b { display: grid; gap: clamp(18px, 2vw, 28px); padding-top: .35em; }
.ap-row__b p { max-width: 46ch; font-size: 1.1875rem; line-height: 1.5; color: var(--muted); }
.ap-row__b ul { display: grid; gap: 12px; }
.ap-row__b li { position: relative; padding-left: 30px; font-weight: 500; line-height: 1.4; }
.ap-row__b li::before { content: ""; position: absolute; left: 0; top: .55em; width: 16px; height: 4px; background: var(--brand-400); }

/* ---------- closing band ---------- */
.ap-cta { position: relative; z-index: 1; padding-block: var(--sec); background: var(--brand-400); color: var(--navy-950); border-radius: 0 var(--q) 0 0; }
.ap-cta__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: end; }
.ap-cta__copy { display: grid; gap: 26px; }
.ap-cta .h2 { font-size: clamp(2.9rem, 7.2vw, 7rem); line-height: .92; }
.ap-cta__act { display: grid; gap: clamp(22px, 2.6vw, 34px); padding-bottom: .6vw; }
.ap-cta__now { display: grid; grid-template-columns: clamp(72px, 7vw, 104px) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); align-items: center; }
.ap-cta__now p { max-width: 34ch; font-size: 1.125rem; font-weight: 500; }
.ap-cta__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.ap-cta .btn--ghost { --hov: var(--brand-200); box-shadow: inset 0 0 0 1.5px var(--navy-950); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .ap-facts li + li::before { display: none; }
  .ap-facts ul { display: grid; grid-template-columns: repeat(3, auto); }
  .ap-row { grid-template-columns: clamp(40px, 6vw, 80px) minmax(0, 1fr); }
  .ap-row__b { grid-column: 2; padding-top: 0; }
  .ap-pv__sheet { grid-template-columns: 1fr; }
  .ap-score { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); column-gap: clamp(24px, 5vw, 64px); padding-top: clamp(22px, 3vw, 46px); border-radius: 0; }
  .ap-score__list { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; align-self: center; }
  .ap-score__cap { align-self: start; }
}
@media (max-width: 960px) {
  .ap-hero__grid, .ap-cta__grid { grid-template-columns: 1fr; }
  .ap-hero__side { padding-left: 14%; margin-top: 12px; max-width: 560px; }
  .ap-hero__art { max-height: none; }
  .ap-notes { grid-template-columns: 1fr; }
  .ap-notes > div:first-child { padding-right: 0; }
  .ap-cta__grid { align-items: start; }
}
@media (max-width: 640px) {
  .ap-hero__side { padding-left: 0; padding-bottom: 0; }
  .ap-hero__art { width: 86%; }
  .ap-hero__steps { position: relative; width: min(74%, 290px); margin-top: -34%; }
  .ap-facts { padding-block: 8px; }
  .ap-facts ul { grid-template-columns: 1fr; gap: 0; justify-content: stretch; }
  .ap-facts li { display: grid; grid-template-columns: 8.5rem 1fr; align-items: baseline; gap: 12px; padding: 12px 0; font-size: 1rem; }
  .ap-facts li span { max-width: none; }
  .ap-facts li + li { border-top: 1px solid var(--navy-100); }
  .ap-facts li + li::before { display: none; }
  .ap-facts b { font-size: 2rem; }
  .ap-pv__stats { grid-template-columns: 1fr; }
  .ap-pv__stats > div { flex-direction: row; align-items: baseline; gap: 14px; padding: 12px 0; }
  .ap-pv__stats > div + div { padding-left: 0; border-left: 0; border-top: 1.5px solid var(--navy-100); }
  .ap-pv__stats dd { flex: none; width: 7.2rem; font-size: 1.9rem; }
  .ap-ship { margin-inline: -6px; }
  .ap-ship__state { margin-left: 0; width: 100%; }
  /* the route line turns to run down the page */
  .ap-ms { grid-template-columns: 1fr; }
  .ap-ms li { padding: 0 0 18px 36px; font-size: 1rem; }
  .ap-ms li:last-child { padding-bottom: 0; }
  .ap-ms li::after { left: 7.5px; top: 11px; width: 3px; height: 100%; background: repeating-linear-gradient(180deg, var(--navy-400) 0 6px, transparent 6px 12px); transform-origin: 50% 0; }
  .ap-score { grid-template-columns: 1fr; }
  .ap-score__list { grid-column: 1; grid-row: auto; margin-top: 18px; }
  .ap-row { grid-template-columns: 1fr; gap: 12px; }
  .ap-row__n { padding-top: 0; }
  .ap-row__b { grid-column: 1; margin-top: 6px; }
  .ap-cta__btns .btn { flex: 1 1 100%; justify-content: space-between; }
  .ap-cta__btns .btn--ghost { justify-content: center; }
}
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .js .ap-pv .ap-ms li::after { transform: scaleY(0); }
}

@media print {
  .ap-inside, .ap-cta { border-radius: 0; }
  .js .ap-hero__steps { opacity: 1 !important; transform: none !important; }
  .ap-cta__now svg { display: none; }
  .ap-cta__now { grid-template-columns: 1fr; }
}
