/* All refinements belong to the third concept only. */
body[data-variant="aps"] .concept-bar { background: #14213a; height: 46px; }
body[data-variant="aps"] .concept-tabs { padding: 3px; }
body[data-variant="aps"] .concept-tab { padding-block: 6px; }
body[data-variant="aps"] .concept-tab[aria-selected="true"] { background: #ffffff; color: #17233b; }
.page--aps {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  color: #17233b;
  --a-ink: #17233b;
  --a-muted: #64748b;
  --a-green: #2563eb;
  --a-line: #e2e8f0;
  --story-progress: 0;
  --a-gutter: clamp(24px, 4vw, 64px);
}

.page--aps .site-header {
  width: 100%;
  flex: none;
  height: 76px;
  padding-inline: var(--a-gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
}

.page--aps .site-header::after { content: ""; position: absolute; bottom: 0; left: var(--a-gutter); right: var(--a-gutter); height: 1px; background: #e5eaf1; }
.page--aps .header-cta { justify-self: end; }

.a-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 520;
  letter-spacing: -.015em;
}

.a-nav > a,
.a-product-menu > summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  cursor: pointer;
  color: #334155;
  transition: color 180ms ease;
}

.a-nav > a,
.a-product-menu > summary { padding-inline: 12px; border-radius: 8px; transition: background 180ms ease, color 180ms ease; }
.a-nav > a:hover,
.a-product-menu > summary:hover,
.a-product-menu[open] > summary { color: #17233b; background: #eaf0f7; }
.a-product-menu { position: relative; }
.a-product-menu summary { list-style: none; }
.a-product-menu summary::-webkit-details-marker,
.a-mobile-menu summary::-webkit-details-marker { display: none; }
.a-product-menu summary svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 200ms ease;
}
.a-product-menu[open] summary svg { transform: rotate(180deg); }

.a-menu-panel {
  position: absolute;
  top: 52px;
  left: -24px;
  width: 294px;
  padding: 22px 14px 13px;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 16px 44px #13264b17, 0 2px 6px #13264b08;
  animation: a-menu-enter 180ms ease both;
}
.a-menu-caption { display: block; padding: 0 10px 12px; color: #64748b; font-size: 8px; letter-spacing: .13em; font-weight: 650; }
.a-menu-panel button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--a-ink);
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease;
}
.a-menu-panel button small { display: block; margin-top: 4px; color: #64748b; font-size: 11px; font-weight: 400; }
.a-menu-panel button > span:last-child { color: #64748b; transition: transform 180ms ease; }
.a-menu-panel button:hover { background: #eff6ff; }
.a-menu-panel button:hover > span:last-child { transform: translate(2px, -2px); }

.page--aps .header-cta {
  min-height: 46px;
  padding: 13px 19px;
  gap: 16px;
  border-radius: 10px;
  border: 1px solid #17233b;
  background: #17233b;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.02em;
  transition: background 180ms ease, border-color 180ms ease, transform 140ms ease;
}
.page--aps .header-cta > span { display: grid; place-items: center; width: 16px; height: 18px; background: none; }
.page--aps .header-cta svg,
.page--aps .a-actions svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 260ms cubic-bezier(.2,.7,.2,1); }
.page--aps .header-cta:hover { background: #2457f5; border-color: #2457f5; transform: none; box-shadow: none; }
.page--aps .header-cta:hover svg { transform: translate(2px, -2px); }
.page--aps .header-cta:active { transform: scale(.98); }
.page--aps :is(a, button, summary):focus-visible { outline: 2px solid #2563eb; outline-offset: 4px; }
.a-mobile-menu > summary:focus-visible { border-radius: 4px; }
.a-mobile-menu { display: none; }

.page--aps .a-hero {
  flex: 1;
  width: 100%;
  grid-template-columns: minmax(0, .34fr) minmax(0, .66fr);
  padding: 24px var(--a-gutter) 20px;
  gap: 34px;
  align-items: center;
  min-height: 0;
}
.page--aps .a-copy { padding-bottom: 0; }
.page--aps .a-kicker { font-size: 9px; letter-spacing: .11em; font-weight: 600; color: #64748b; }
.page--aps .a-kicker > span { height: 5px; width: 5px; border-radius: 50%; background: #009f71; box-shadow: 0 0 0 3px #13264b0d; }
.page--aps .a-copy h1 { font-size: clamp(42px, 3.75vw, 59px); font-weight: 640; letter-spacing: -.072em; margin: 22px 0 20px; }
.page--aps .a-copy h1 em { color: #009f71; }
.a-leads { display: grid; min-height: 96px; }
.page--aps .a-lead {
  grid-area: 1 / 1;
  font-size: 14px;
  line-height: 1.65;
  max-width: 450px;
  color: #64748b;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: opacity 420ms ease, transform 600ms ease, visibility 420ms;
}
.page--aps .a-lead.is-active { opacity: 1; visibility: visible; transform: translateY(0); }
.page--aps .a-actions { margin-top: 20px; gap: 15px; }
.page--aps .button--sage {
  min-height: 58px;
  padding: 7px 7px 7px 18px;
  gap: 14px;
  border-radius: 12px;
  background: #2457f5;
  border: 1px solid transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 620;
  letter-spacing: -.02em;
  transition: transform 140ms ease, background 200ms ease;
}
.page--aps .button--sage > span {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 42px;
  overflow: hidden;
  border-radius: 0;
  border-left: 0;
  background: transparent;
  color: #ffffff;
}
.page--aps .button--sage svg { position: absolute; width: 22px; height: 22px; }
.page--aps .button--sage svg + svg { transform: translateX(-36px); }
.page--aps .button--sage:hover { background: #1944d8; transform: translateY(-1px); box-shadow: none; }
.page--aps .button--sage:hover svg { transform: translateX(36px); }
.page--aps .button--sage:hover svg + svg { transform: translateX(0); }
.page--aps .button--sage:active { transform: scale(.98); background: #153bc2; box-shadow: none; }
.page--aps .a-actions .link-arrow {
  min-height: 48px;
  padding: 10px 0;
  gap: 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #334155;
  font-size: 13px;
  font-weight: 520;
  letter-spacing: -.02em;
  text-decoration: none;
  transition: color 180ms ease, transform 140ms ease;
}
.page--aps .a-actions .link-arrow > span { font: inherit; }
.page--aps .a-actions .link-arrow svg { width: 23px; height: 23px; color: #62728e; stroke-width: 1.2; }
.page--aps .a-actions .link-arrow svg path { fill: currentColor; stroke: none; }
.page--aps .a-actions .link-arrow { display: inline-flex; align-items: center; font-family: inherit; cursor: pointer; }
.page--aps .a-actions .link-arrow:hover { color: #2457f5; background: transparent; transform: none; box-shadow: none; }
.page--aps .a-actions .link-arrow:hover > span { text-decoration-color: #2457f5; }
.page--aps .a-actions .link-arrow:hover svg { transform: scale(1.08); color: #2457f5; }
.page--aps .a-actions .link-arrow:active { transform: translateY(1px); }
.page--aps .a-fine { margin-top: 18px; font-size: 11px; color: #64748b; line-height: 1.6; letter-spacing: -.01em; }

.a-stage { min-width: 0; scroll-margin-top: 25px; }
.page--aps .a-photo { display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: center; height: auto; width: 100%; max-width: none; }
.a-photo-media { position: relative; width: calc(100% + 58px); aspect-ratio: 3 / 2; overflow: hidden; border-radius: 12px 46px 12px 12px; background: #f1f5f9; }
.a-photo-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  opacity: 0;
  transform: scale(1);
  transition: opacity 850ms cubic-bezier(.2,.6,.3,1), transform 1400ms cubic-bezier(.2,.6,.3,1);
}
.a-photo-slide.is-active { opacity: 1; transform: scale(1); }
.a-photo-slide[data-story-photo="2"] { object-position: 100% 50%; }
.a-photo-slide[data-story-photo="3"] { object-position: 58% 45%; }
.a-story-cards { position: relative; width: 400px; margin: 0; display: grid; align-items: center; }
.a-story-card { grid-area: 1 / 1; min-width: 0; height: 412px; padding: 23px; background: #fff; border: 1px solid #e4e9f1; border-radius: 16px; box-shadow: 0 16px 48px #14213a1c, 0 2px 5px #14213a06; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 500ms ease, transform 650ms cubic-bezier(.2,.6,.3,1), visibility 500ms; font-variant-numeric: tabular-nums; }
.a-story-card.is-active { opacity: 1; visibility: visible; transform: translateY(0); }
.a-ui-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 19px; font-size: 8px; letter-spacing: .075em; color: #53627b; font-weight: 600; }
.a-ui-head > span { display: flex; align-items: center; gap: 6px; }
.a-ui-head i { width: 5px; height: 5px; background: #00a77b; border-radius: 50%; }
.a-ui-head small { font-size: 8px; color: #8491a5; font-weight: 400; letter-spacing: 0; }
.a-story-card h2 { margin: 0 0 17px; font-size: 20px; font-weight: 580; letter-spacing: -.045em; line-height: 1.2; color: #17233b; }
.a-w-metric { display: flex; align-items: center; gap: 18px; }
.a-w-metric > strong { font-size: 49px; letter-spacing: -.065em; font-weight: 560; line-height: 1.1; }
.a-w-metric > strong > span { font-size: 28px; margin-left: 2px; }
.a-w-metric > div { display: grid; gap: 5px; }
.a-w-metric small { color: #7a879b; font-size: 9px; }
.a-w-badge { width: fit-content; background: #e9f8f2; color: #087e5e; border-radius: 5px; padding: 5px 7px; font-size: 10px; font-weight: 550; white-space: nowrap; }
.a-w-caption { font-size: 10px; color: #6c7a90; margin-top: 13px; }
.a-w-loss-chart { display: block; width: 100%; height: 117px; margin: 12px 0 14px; overflow: visible; }
.a-w-grid { stroke: #edf0f5; fill: none; }
.a-w-chart-label { fill: #7b879a; font-size: 9px; font-family: inherit; }
.a-w-chart-value { fill: #52617b; font-size: 10px; font-family: inherit; font-weight: 600; }
.a-w-chart-value.is-green { fill: #008e67; }
.a-w-insight { display: flex; align-items: center; gap: 10px; border-top: 1px solid #e9edf3; padding-top: 12px; }
.a-w-check { flex: none; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #e9f8f2; color: #008e67; font-size: 14px; }
.a-w-insight p { display: grid; gap: 4px; font-size: 10px; }
.a-w-insight b { font-weight: 550; }
.a-w-insight p > span { color: #7a879b; font-size: 9px; }
.a-w-insight-icon { margin-left: auto; color: #9aa7ba; }
.a-w-revenue { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: #6c7a90; padding-bottom: 13px; border-bottom: 1px solid #edf0f5; }
.a-w-revenue b { font-size: 17px; color: #17233b; font-weight: 550; letter-spacing: -.035em; }
.a-w-revenue small { font-size: 12px; font-weight: 400; color: #7a879b; }
.a-w-report { display: flex; gap: 17px; align-items: center; margin: 14px 0; }
.a-w-donut { width: 148px; flex: none; position: relative; }
.a-w-donut svg { display: block; width: 100%; overflow: visible; }
.a-w-ring-segment { transition: opacity 180ms ease, stroke-width 180ms ease; }
.a-w-donut > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.a-w-donut strong { color: #008e67; font-size: 36px; font-weight: 550; letter-spacing: -.06em; line-height: 1; }
.a-w-donut strong span { font-size: 20px; }
.a-w-donut small { margin-top: 6px; font-size: 9px; color: #6c7a90; }
.a-w-legend { flex: 1; min-width: 0; display: grid; gap: 2px; }
.a-w-legend button { min-height: 44px; width: 100%; display: flex; align-items: center; gap: 7px; padding: 6px; border: 0; border-radius: 6px; background: transparent; text-align: left; color: #53627b; font-family: inherit; cursor: pointer; transition: background 180ms ease; }
.a-w-legend button:hover, .a-w-legend button[aria-pressed="true"] { background: #f3f6fa; }
.a-w-legend i { width: 6px; height: 6px; border-radius: 2px; flex: none; background: var(--category-color); }
.a-w-legend span { font-size: 10px; }
.a-w-legend small { display: block; font-size: 9px; color: #7a879b; margin-top: 3px; white-space: nowrap; }
.a-w-legend b { font-size: 10px; margin-left: auto; font-weight: 550; color: #17233b; }
.a-w-profit { display: flex; align-items: center; justify-content: space-between; padding: 12px; border: 1px solid #dcefe7; background: #f1faf6; border-radius: 8px; }
.a-w-profit > span { display: flex; gap: 6px; align-items: center; color: #087e5e; font-size: 10px; }
.a-w-profit i { width: 5px; height: 5px; border-radius: 50%; background: #00a77b; }
.a-w-profit strong { color: #087e5e; font-size: 22px; letter-spacing: -.04em; font-weight: 550; }
.a-w-profit small { font-size: 13px; font-weight: 400; }
.a-w-invoice-title { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 21px; }
.a-w-invoice-title .a-w-check { width: 34px; height: 34px; font-size: 19px; }
.a-w-invoice-title h2 { margin-bottom: 0; }
.a-w-document { display: flex; align-items: center; gap: 10px; padding: 15px 11px; border: 1px solid #e6ebf2; border-radius: 8px; background: #fbfcfe; }
.a-w-document svg { flex: none; width: 24px; height: 30px; fill: #eef2ff; stroke: #8b9ec4; stroke-width: 1.3; stroke-linejoin: round; }
.a-w-document > div { display: grid; gap: 5px; }
.a-w-document b { font-size: 11px; font-weight: 550; }
.a-w-document span { color: #7a879b; font-size: 9px; }
.a-w-document strong { margin-left: auto; font-size: 17px; font-weight: 550; white-space: nowrap; letter-spacing: -.04em; }
.a-w-document small { font-size: 11px; font-weight: 400; }
.a-w-matched { font-size: 10px; color: #6c7a90; margin: 11px 0 17px; }
.a-w-matched > span { color: #00a77b; margin-right: 5px; }
.a-w-destinations { display: flex; gap: 9px; }
.a-w-destinations > div { flex: 1; position: relative; padding: 12px; border: 1px solid #e6ebf2; border-radius: 8px; }
.a-w-destinations img { display: block; width: 38px; height: 22px; object-fit: contain; object-position: left; }
.a-w-destinations span { display: block; margin-top: 7px; color: #6c7a90; font-size: 9px; }
.a-w-destinations b { position: absolute; right: 12px; top: 13px; display: grid; place-items: center; background: #e9f8f2; color: #008e67; width: 19px; height: 19px; border-radius: 50%; font-size: 11px; font-weight: 500; }
.a-w-invoice-note { display: grid; gap: 4px; margin-top: 17px; font-size: 10px; }
.a-w-invoice-note b { font-weight: 550; }
.a-w-invoice-note span { font-size: 9px; color: #7a879b; }
.a-w-payroll { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
.a-w-payroll > div > span { display: block; color: #6c7a90; font-size: 10px; margin-bottom: 7px; }
.a-w-payroll strong { font-size: 36px; font-weight: 550; letter-spacing: -.055em; line-height: 1; }
.a-w-payroll strong small { font-size: 23px; color: #7a879b; font-weight: 400; }
.a-w-budget-heading { display: flex; justify-content: space-between; margin-top: 26px; font-size: 9px; color: #7a879b; gap: 5px; }
.a-w-budget-heading b { color: #53627b; font-weight: 500; }
.a-w-budget { display: flex; gap: 3px; height: 18px; margin-top: 10px; border-radius: 4px; overflow: hidden; }
.a-w-budget > span { background: #4266f5; }
.a-w-budget > span:nth-child(2) { background: repeating-linear-gradient(125deg,#b9c7fc 0 3px,#dce4ff 3px 6px); }
.a-w-budget > span:nth-child(3) { background: #edf1f6; }
.a-w-budget-key { display: flex; gap: 18px; margin-top: 11px; }
.a-w-budget-key > span { font-size: 9px; color: #7a879b; }
.a-w-budget-key b { display: block; font-size: 11px; color: #334155; font-weight: 500; margin: 5px 0 0 11px; }
.a-w-budget-key i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 1px; background: #4266f5; }
.a-w-budget-key > span:nth-child(2) i { background: #b9c7fc; }
.a-w-reserve { display: flex; align-items: center; gap: 10px; padding: 13px 12px; margin-top: 20px; border-radius: 8px; background: #f1faf6; color: #087e5e; }
.a-w-reserve > span:first-child { font-size: 10px; }
.a-w-reserve strong { margin-left: auto; font-size: 20px; font-weight: 550; letter-spacing: -.035em; }
.a-w-reserve small { font-size: 12px; font-weight: 400; }
.a-w-reserve .a-w-check { width: 21px; height: 21px; font-size: 11px; }
.a-w-team { display: flex; justify-content: space-between; margin-top: 16px; font-size: 9px; color: #7a879b; }
.a-w-team b { font-weight: 400; }
.a-w-team i { display: inline-block; width: 4px; height: 4px; margin-right: 4px; border-radius: 50%; background: #00a77b; }

.a-story-controls { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.a-scene-buttons { display: flex; flex: 1; min-width: 0; gap: 18px; }
.a-scene-buttons button {
  position: relative;
  flex: 1;
  min-width: max-content;
  min-height: 50px;
  padding: 12px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 530;
  text-align: left;
  letter-spacing: -.015em;
  cursor: pointer;
  transition: color 180ms ease;
}
.a-scene-buttons button > span { display: inline-block; transition: transform 180ms ease; }
.a-scene-buttons button:hover { color: #2457f5; background: transparent; }
.a-scene-buttons button:active > span { transform: translateY(1px); }
.a-scene-buttons button > i { display: block; position: absolute; inset: auto 0 0; height: 2px; background: #e2e8f0; overflow: hidden; pointer-events: none; transition: background 180ms ease; }
.a-scene-buttons button > i::after { content: ""; position: absolute; inset: 0; background: #2457f5; transform: scaleX(0); transform-origin: left; }
.a-scene-buttons button:hover > i { background: #a7bcf9; }
.a-scene-buttons button[aria-pressed="true"] { color: #2457f5; background: transparent; font-weight: 600; box-shadow: none; }
.a-scene-buttons button[aria-pressed="true"] > i { background: #c5d2ff; }
.a-scene-buttons button[aria-pressed="true"] > i::after { transform: scaleX(var(--story-progress)); }
.a-stage.is-paused .a-scene-buttons button[aria-pressed="true"] > i::after { transform: scaleX(1); }
.a-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.a-integrations { flex: none; width: 100%; max-width: 1536px; margin: 0 auto; padding: 13px var(--a-gutter) 16px; }
.a-integrations > p { text-align: center; color: #7a879b; font-size: 10px; line-height: 1.5; padding-top: 11px; margin-bottom: 9px; border-top: 1px solid #e2e8f0; }
.a-integration-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; align-items: center; }
.a-integration-logos a { display: flex; align-items: center; justify-content: center; min-height: 44px; gap: 9px; filter: grayscale(1); opacity: .65; mix-blend-mode: multiply; transition: opacity 220ms, filter 220ms; }
.a-integration-logos a + a { border-left: 1px solid #e2e8f0; }
.a-integration-logos a:hover { filter: grayscale(0); opacity: 1; }
.a-integration-logos img { display: block; object-fit: contain; }
.a-mercury span { color: #334155; font-size: 17px; letter-spacing: -.035em; font-weight: 550; }

@keyframes a-menu-enter { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1200px) {
  .page--aps .site-header { gap: 18px; }
  .a-nav { gap: 6px; }
  .page--aps .a-hero { gap: 24px; grid-template-columns: minmax(0, .34fr) minmax(0, .66fr); }
  .page--aps .a-copy h1 { font-size: clamp(37px, 3.7vw, 45px); }
  .page--aps .a-photo { grid-template-columns: minmax(0, 1fr) 370px; }
  .a-photo-media { width: calc(100% + 38px); }
  .a-story-controls { gap: 12px; }
  .a-scene-buttons { gap: 12px; }
  .a-scene-buttons button { padding-inline: 0; font-size: 11px; }
}

@media (max-width: 900px) {
  .a-nav { display: none; }
  .page--aps .site-header { height: 76px; display: flex; }
  .page--aps .header-cta { margin-left: auto; }
  .a-mobile-menu { display: block; }
  .a-mobile-menu > summary { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 40px; list-style: none; cursor: pointer; }
  .a-mobile-menu > summary > span { width: 19px; height: 1px; background: #64748b; transition: transform 180ms ease; }
  .a-mobile-menu[open] > summary > span:first-child { transform: translateY(3px) rotate(45deg); }
  .a-mobile-menu[open] > summary > span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .a-mobile-menu nav { position: absolute; right: 24px; top: 72px; width: 270px; padding: 14px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 16px 40px #13264b1a; animation: a-menu-enter 180ms ease; }
  .a-mobile-menu nav a { display: flex; justify-content: space-between; padding: 15px 12px; color: #334155; font-size: 14px; }
  .a-mobile-menu nav a:hover { background: #eff6ff; border-radius: 6px; }
  .page--aps .a-hero { grid-template-columns: 1fr; padding: 38px 32px 34px; gap: 34px; }
  .page--aps .a-copy { padding-bottom: 0; }
  .page--aps .a-copy h1 { font-size: clamp(54px, 8vw, 69px); white-space: normal; }
  .page--aps .a-lead { max-width: 550px; }
  .a-leads { min-height: 80px; }
  .page--aps .a-photo { grid-template-columns: minmax(0, 1fr) 370px; }
  .a-story-cards { width: 370px; }
  .a-story-controls { margin-top: 20px; }
  .a-scene-buttons button { font-size: 13px; }
  .a-integrations { padding-inline: 32px; }
}

@media (max-width: 640px) {
  body[data-variant="aps"] .concept-bar { height: 56px; }
  .page--aps { min-height: 100svh; }
  .page--aps .site-header { height: 72px; padding: 0 20px; gap: 13px; }
  .page--aps .header-cta { min-height: 44px; font-size: 11px; padding: 11px 15px; gap: 12px; }
  .page--aps .header-cta > span { width: 16px; height: 18px; }
  .page--aps .header-cta svg { width: 14px; height: 14px; }
  .a-mobile-menu > summary { width: 28px; height: 44px; align-items: center; }
  .a-mobile-menu nav { right: 20px; top: 66px; }
  .page--aps .a-hero { padding: 34px 20px 27px; gap: 28px; }
  .page--aps .a-kicker { font-size: 7.5px; gap: 8px; letter-spacing: .095em; }
  .page--aps .a-copy h1 { font-size: clamp(35px, 11.1vw, 66px); line-height: 1.06; margin: 23px 0 22px; letter-spacing: -.071em; }
  .a-leads { min-height: 96px; }
  .page--aps .a-lead { font-size: 13px; line-height: 1.7; }
  .page--aps .a-actions { gap: 7px; margin-top: 22px; display: grid; grid-template-columns: 1fr; }
  .page--aps .button--sage { min-height: 58px; padding: 7px 7px 7px 20px; font-size: 15px; gap: 20px; justify-content: space-between; }
  .page--aps .button--sage > span { width: 42px; height: 42px; }
  .page--aps .a-actions .link-arrow { min-height: 44px; padding: 10px 0; font-size: 13px; gap: 8px; justify-content: center; }
  .page--aps .a-actions .link-arrow svg { width: 17px; height: 17px; }
  .page--aps .a-fine { font-size: 10px; margin-top: 15px; }
  .page--aps .a-photo { display: block; }
  .a-photo-media { width: 100%; border-radius: 10px 40px 10px 10px; }
  .a-story-controls { margin-top: 20px; gap: 10px; align-items: center; }
  .a-scene-buttons { gap: 16px; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: 2px; }
  .a-scene-buttons::-webkit-scrollbar { display: none; }
  .a-scene-buttons button { flex: 0 0 auto; min-width: 64px; min-height: 48px; font-size: 12px; padding: 12px 0; }
  .a-scene-buttons button:focus-visible { outline-offset: -3px; }
  .a-integrations { padding: 12px 20px 24px; }
  .a-integration-logos { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .a-integration-logos a { justify-content: center; min-height: 44px; }
  .a-integration-logos a:nth-child(3) { border-left: 0; }
  .a-logo-1c { width: 56px; height: 28px; }
  .a-logo-iiko { width: 60px; height: 33px; }
  .a-logo-znak { width: 130px; height: 34px; }
  .a-mercury span { font-size: 16px; }
  .a-mercury img { width: 26px; height: 31px; }
}

@media (max-width: 360px) {
  .page--aps .site-header { gap: 9px; padding: 0 16px; }
  .page--aps .a-hero { padding-left: 17px; padding-right: 17px; }
  .page--aps .a-kicker { font-size: 6.6px; }
  .page--aps .a-actions { gap: 10px; }
  .a-leads { min-height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .page--aps *, .page--aps *::before, .page--aps *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Widget scale follows the photograph without shrinking interface text. */
@media (max-width: 1200px) and (min-width: 901px) {
  .a-story-cards { width: 370px; }
  .a-story-card { padding: 20px; }
  .a-w-donut { width: 136px; }
  .a-w-report { gap: 12px; }
}
@media (max-width: 640px) {
  .a-story-cards { width: calc(100% - 12px); margin: -14px 0 0 auto; align-items: start; }
  .a-story-card { height: 412px; padding: 18px; }
  .a-story-card h2 { font-size: 19px; }
  .a-ui-head { font-size: 7px; }
  .a-ui-head small { font-size: 7px; }
  .a-w-donut { width: 128px; }
  .a-w-report { gap: 8px; }
  .a-w-legend button { padding-inline: 4px; gap: 5px; }
  .a-w-profit strong { font-size: 20px; }
  .a-w-payroll strong { font-size: 32px; }
  .a-w-document { padding-inline: 9px; gap: 8px; }
  .a-w-document strong { font-size: 15px; }
}
@media (max-width: 360px) {
  .a-story-card { padding: 15px; }
  .a-story-card[data-story-card="1"] { height: 440px; }
  .a-story-card h2 { font-size: 18px; }
  .a-w-donut { width: 108px; }
  .a-w-report { gap: 5px; }
  .a-w-legend span, .a-w-legend b { font-size: 9px; }
  .a-w-legend small { font-size: 8px; }
  .a-w-payroll strong { font-size: 29px; }
  .a-w-badge { font-size: 9px; }
  .a-w-document b { font-size: 10px; }
  .a-w-document span { font-size: 8px; }
  .a-w-document svg { width: 20px; }
}

/* Telegram conversation: native chat proportions and typography. */
.a-story-card.a-telegram { height: auto; padding: 0; overflow: hidden; border-color: #dce3ee; border-radius: 20px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.a-tg-header { height: 60px; padding: 9px 13px 9px 8px; display: flex; align-items: center; gap: 9px; background: #ffffff; border-bottom: 1px solid #e7edf5; }
.a-tg-back { width: 23px; height: 25px; fill: none; stroke: #288bc7; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.a-tg-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; background: #fff; border: 1px solid #edf0f4; border-radius: 50%; overflow: hidden; }
.a-tg-avatar img { width: 38px; height: 38px; display: block; }
.a-tg-name { display: grid; gap: 3px; }
.a-tg-name b { font-size: 14px; font-weight: 600; letter-spacing: -.015em; color: #111; }
.a-tg-name > span { font-size: 11px; color: #8a969f; }
.a-tg-more { width: 23px; height: 23px; fill: #3b8fcc; margin-left: auto; }
.a-tg-chat { display: flex; flex-direction: column; align-items: flex-start; padding: 10px 12px 12px; gap: 8px; background: #edf3f9; }
.a-tg-date { align-self: center; border-radius: 12px; padding: 3px 9px; color: #708198; background: #ffffffa6; font-size: 10px; font-weight: 500; }
.a-tg-message { position: relative; max-width: 94%; padding: 9px 11px 7px; box-shadow: 0 1px 2px #17233b08; color: #17283d; font-size: 12px; line-height: 1.4; letter-spacing: 0; }
.a-tg-message p { margin: 0 0 8px; }
.a-tg-message b { font-weight: 600; }
.a-tg-outgoing { align-self: flex-end; max-width: 84%; background: #d9eeff; border-radius: 15px 15px 4px 15px; }
.a-tg-outgoing p { margin-bottom: 2px; }
.a-tg-incoming { border-radius: 15px 15px 15px 4px; background: #fff; }
.a-tg-time { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 9px; color: #8a979d; line-height: 1; }
.a-tg-outgoing .a-tg-time { color: #5c93bc; }
.a-tg-time svg { width: 17px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.a-tg-reasons { padding-left: 9px; border-left: 2px solid #00ac70; margin: 0 0 8px; }
.a-tg-reasons p:last-child { margin-bottom: 0; }
.a-tg-incoming .a-tg-followup { margin-bottom: 4px; }
.a-tg-composer { display: flex; align-items: center; gap: 10px; height: 47px; padding: 7px 11px; background: #f8fafd; border-top: 1px solid #e7edf5; }
.a-tg-composer > svg { width: 22px; height: 24px; flex: none; fill: none; stroke: #8a959d; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.a-tg-composer > div { flex: 1; display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid #e2e6e8; border-radius: 18px; padding: 6px 9px 6px 12px; color: #a2a9ae; font-size: 12px; }
.a-tg-composer > div svg { width: 20px; height: 20px; fill: none; stroke: #a2a9ae; stroke-width: 1.3; }
@media (max-width: 640px) {
  .a-tg-message { font-size: 11.5px; line-height: 1.38; }
  .a-tg-header { height: 56px; }
  .a-tg-chat { padding: 9px 10px 10px; }
}
@media (max-width: 360px) {
  .a-tg-message { font-size: 11px; padding-inline: 9px; max-width: 96%; }
  .a-tg-outgoing { max-width: 88%; }
  .a-tg-message p { margin-bottom: 6px; }
}

/* Low laptop viewports keep the controls and integration strip in the hero. */
@media (min-width: 901px) and (max-height: 820px) {
  .page--aps .site-header { height: 68px; }
  .page--aps .a-hero { padding-top: 16px; padding-bottom: 12px; }
  .page--aps .a-copy h1 { margin-block: 18px; font-size: clamp(40px, 3.5vw, 53px); }
  .page--aps .a-kicker { font-size: 8px; }
  .page--aps .a-lead { font-size: 13px; }
  .a-leads { min-height: 88px; }
  .page--aps .a-fine { margin-top: 12px; font-size: 10px; }
  .a-tg-header { height: 52px; }
  .a-tg-chat { gap: 6px; padding-block: 8px; }
  .a-tg-message { line-height: 1.32; }
  .a-tg-message p { margin-bottom: 6px; }
  .a-tg-composer { height: 41px; }
  .a-story-controls { margin-top: 10px; }
  .a-integrations { padding-block: 5px 12px; }
}

@media (min-width: 901px) and (max-height: 760px) {
  .page--aps .site-header { height: 64px; }
  .page--aps .a-hero { padding-block: 12px 8px; }
  .a-scene-buttons button { min-height: 44px; }
  .a-integrations { padding-block: 2px 8px; }
  .a-integrations > p { padding-top: 8px; margin-bottom: 6px; }
}

/* The laptop composition expands with the display; interfaces retain priority. */
@media (min-width: 1500px) and (min-height: 850px) {
  .page--aps { --a-widget-scale: 1.1; --a-layout-width: 1760px; }
  .page--aps .site-header,
  .page--aps .a-hero,
  .page--aps .a-integrations { max-width: var(--a-layout-width); }
  .page--aps .site-header { height: 88px; }
  .a-nav { font-size: 14px; gap: 14px; }
  .page--aps .header-cta { min-height: 50px; font-size: 14px; padding-inline: 22px; }
  .page--aps .a-hero { padding-block: 20px; gap: 42px; }
  .page--aps .a-copy h1 { font-size: clamp(59px, 3.9vw, 69px); }
  .page--aps .a-kicker { font-size: 10px; }
  .page--aps .a-lead { font-size: 16px; max-width: 510px; }
  .a-leads { min-height: 108px; }
  .page--aps .a-actions { margin-top: 25px; gap: 18px; }
  .page--aps .button--sage { min-height: 64px; font-size: 16px; padding-left: 22px; }
  .page--aps .a-actions .link-arrow { font-size: 14px; }
  .page--aps .a-fine { font-size: 12px; }
  .page--aps .a-photo { grid-template-columns: minmax(0, 1fr) calc(400px * var(--a-widget-scale)); }
  .a-story-cards { width: calc(400px * var(--a-widget-scale)); }
  .a-story-card { width: 400px; zoom: var(--a-widget-scale); }
  .a-story-controls { margin-top: 22px; }
  .a-scene-buttons button { font-size: 13px; }
  .a-integrations { padding-bottom: 18px; }
  .a-integrations > p { font-size: 11px; padding-top: 12px; margin-bottom: 10px; }
  .a-integration-logos a { min-height: 58px; }
  .a-integration-logos img { scale: 1.08; }
  .a-mercury span { font-size: 19px; }
}
@media (min-width: 1800px) and (min-height: 950px) {
  .page--aps { --a-widget-scale: 1.25; --a-layout-width: 1920px; --a-gutter: 72px; }
  .page--aps .site-header { height: 96px; }
  .page--aps .a-copy h1 { font-size: clamp(68px, 3.9vw, 78px); }
  .page--aps .a-lead { font-size: 17px; }
  .a-leads { min-height: 116px; }
  .page--aps .a-actions { margin-top: 30px; }
  .a-nav { font-size: 15px; }
}
@media (min-width: 2200px) and (min-height: 1200px) {
  .page--aps { --a-widget-scale: 1.5; --a-layout-width: 2240px; --a-gutter: 80px; }
  .page--aps .site-header { height: 112px; }
  .page--aps .a-copy h1 { font-size: 84px; margin-block: 30px; }
  .page--aps .a-lead { font-size: 19px; max-width: 580px; }
  .a-leads { min-height: 130px; }
  .page--aps .a-kicker { font-size: 11px; }
  .page--aps .a-fine { font-size: 13px; }
  .page--aps .button--sage { min-height: 70px; font-size: 18px; padding-left: 26px; }
  .page--aps .button--sage > span { width: 50px; }
  .page--aps .a-actions .link-arrow { font-size: 16px; }
  .a-nav { font-size: 17px; gap: 20px; }
  .page--aps .header-cta { font-size: 16px; min-height: 54px; }
  .a-scene-buttons button { font-size: 15px; min-height: 56px; }
  .a-integrations { padding-bottom: 32px; }
  .a-integrations > p { font-size: 13px; margin-bottom: 20px; }
  .a-integration-logos a { min-height: 68px; }
  .a-integration-logos img { scale: 1.25; }
  .a-mercury span { font-size: 21px; margin-left: 6px; }
}
