/* Offering detail shell (same as the other offering pages): brand tokens from brand-system.css, scoped to the body class. */
.offering-page { --panel:color-mix(in srgb,var(--bg) 78%,transparent);--tint:color-mix(in srgb,var(--ocean-shallow) 16%,transparent);font-family:Ataero,Arial,sans-serif; }
.offering-page main { position:relative;overflow-wrap:break-word; }
.offering-page h1,.offering-page h2,.offering-page h3 { font-weight:400; }
.offering-page .visually-hidden { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
.offering-page main a:not(.action):focus-visible,.offering-page .action:focus-visible { outline:2px solid var(--ink);outline-offset:4px; }

.offer-actions { display:flex;flex-wrap:wrap;align-items:center;gap:1rem 2rem; }
.offer-actions>a:not(.action) { display:inline-flex;align-items:center;min-height:44px;margin-top:1.5rem; }
.offer-label { color:var(--muted); }

.offer-section,.offering-page main>section:not(.offer-hero) { padding-block:clamp(3rem,5vw,4.5rem);border-top:1px solid var(--line); }
.offer-heading { max-width:64rem;margin-bottom:clamp(2rem,4vw,3rem); }
.offer-heading h2,.offer-cta h2,.status-panel h2 { margin:.75rem 0 1rem;font-size:var(--type-section); }
.offer-heading>p:not(.eyebrow),.offer-cta>p:not(.eyebrow) { max-width:46ch;margin:0;font-size:1.125rem;line-height:1.6;color:var(--muted); }
.stage-kind { margin:0;font-size:var(--type-label);letter-spacing:var(--track-label);text-transform:uppercase;color:var(--blue); }

/* Illustration frames share one caption bar. */
.offering-page figure { margin:0; }
.offering-page figure>figcaption { display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem 1rem;padding:1rem clamp(1rem,2.5vw,1.5rem);font-size:.875rem;border-bottom:1px solid var(--line); }
.offer-frame { border:1px solid var(--line);border-radius:1.25rem;background:var(--panel);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);overflow:hidden; }

.offer-cta { text-align:center; }
.offer-cta h2,.offer-cta>p:not(.eyebrow) { margin-inline:auto; }
.offer-cta>.eyebrow { margin-inline:auto; }
.offer-cta>p:not(.eyebrow) { text-wrap:balance; }
.offer-cta .action { margin:2rem auto 0; }

/* A small breaking wave rests on the hairline before the closing section, as on the other inner pages. */
@media not (forced-colors:active) {
  .offer-cta { position:relative; }
  .offer-cta::before { content:"";position:absolute;top:-24.5px;inset-inline-start:0;width:120px;height:24px;pointer-events:none;background:var(--wave-motif) center/120px 24px no-repeat; }
}


/* Related links and shared list resets. */
.offering-page :is(.int-flow,.int-grid,.int-related,.wf-steps,.wf-uses,.wf-approach) { list-style:none; }
.offer-section h3,.int-step h3 { margin:0 0 .5rem;font-size:var(--type-card);line-height:1.25; }
.offer-section li p { margin:0;line-height:1.55;color:var(--muted); }
.int-related { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr));gap:0 2rem;margin:0;padding:0; }
.int-related a { display:grid;grid-template-columns:1fr auto;gap:.25rem 1rem;align-items:center;min-height:44px;padding:1.25rem 0;text-decoration:none;color:inherit;border-bottom:1px solid var(--line); }
.int-related strong { font-weight:400;font-size:1.25rem; }
.int-related a>span:not([aria-hidden]) { grid-column:1;color:var(--muted); }
.int-related a>span[aria-hidden] { grid-row:1 / 3;grid-column:2;font-size:1.4rem; }
.int-related a:hover strong { text-decoration:underline;text-underline-offset:5px; }
/* The arrow nudges only under a mouse, so touch never leaves it stuck mid-move. */
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .int-related a>span[aria-hidden] { transition:translate .18s cubic-bezier(.2,.75,.25,1); }
  .int-related a:hover>span[aria-hidden] { translate:3px -3px; }
}
/* AI integration: what arrives, what the AI reads, what your system receives. */
.int-flow { display:grid;grid-template-columns:1fr;margin:0;padding:0; }
.int-step { position:relative;display:grid;align-content:start;gap:1rem;padding:clamp(1.25rem,3vw,2rem); }
.int-step+.int-step { border-top:1px solid var(--line); }
.int-message { margin:0;padding:1rem 1.15rem;font-size:1.05rem;line-height:1.5;background:var(--tint);border:1px solid var(--line);border-radius:16px 16px 16px 4px; }
.int-message p { margin:0; }
.int-ai { background:linear-gradient(160deg,color-mix(in srgb,var(--ocean-shallow) 14%,transparent),transparent 70%); }
.int-fields { display:grid;gap:.5rem;margin:0; }
.int-fields div { display:flex;justify-content:space-between;gap:1rem;padding:.6rem .85rem;border:1px solid var(--line);border-radius:.6rem;background:var(--panel); }
.int-fields dt { font-size:var(--type-label);letter-spacing:.04em;color:var(--muted); }
.int-fields dd { margin:0;text-align:end; }
.int-more a { display:inline-flex;align-items:center;gap:.4rem;min-height:44px;margin-top:1rem; }
.int-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:1.5rem;margin:0;padding:0; }
.int-grid li { padding-top:1.25rem;border-top:2px solid var(--ocean-mid); }
@media(min-width:900px) {
  .int-flow { grid-template-columns:1fr 1fr 1.15fr; }
  .int-step+.int-step { border-top:0;border-inline-start:1px solid var(--line); }
  /* A small arrow on each divider shows the direction of travel. */
  .int-step+.int-step::before { content:"→";position:absolute;top:50%;inset-inline-start:-15px;display:grid;place-items:center;width:30px;height:30px;translate:0 -50%;color:var(--ocean-mid);background:var(--bg);border:1px solid var(--line);border-radius:50%; }
}

/* The page headline reads from the left edge, with its eyebrow, intro and actions in the same column; section headings below stay centred. */
.offer-hero { padding-block:var(--page-space) clamp(3rem,5vw,4.5rem);display:flex;flex-direction:column;align-items:flex-start; }
.offer-hero h1 { max-width:min(100%,16ch);margin:1.25rem 0 0;font-size:clamp(2.75rem,1.4rem + 6vw,7rem);line-height:1.02;letter-spacing:-.055em;text-wrap:balance; }
.offer-hero .offer-status { margin:1.5rem 0 0;font-size:.9375rem;color:var(--muted); }
.offer-hero .intro { max-width:44ch;margin:1.5rem 0 0;color:var(--muted); }
.offer-hero .offer-actions { gap:1rem 1.75rem;margin-top:2.25rem; }
.offer-hero .offer-actions>a,.offer-hero .action { margin-top:0; }

.int-card { display:grid;gap:.6rem;padding:1rem 1.1rem;border:1px solid var(--line);border-left:3px solid var(--ocean-mid);border-radius:.6rem;background:var(--panel); }
.int-card p { margin:0;max-width:none; }
.int-card-title { font-size:1.05rem; }
.int-card-detail { color:var(--muted); }
.int-card-status { justify-self:start;padding:.2rem .65rem;font-size:var(--type-label);border:1px dashed var(--ink);border-radius:2rem; }

/* Coastal surfaces: figures and cards sit on the shared --surface tokens so they stand apart from the page backdrop; inner cards drop back to --bg. */
.integration-page { --panel:var(--surface,color-mix(in srgb,var(--blue) 7%,var(--bg)));--tint:var(--surface-strong,color-mix(in srgb,var(--blue) 14%,var(--bg)));--panel-line:color-mix(in srgb,var(--ink) 26%,transparent); }
.integration-page main section:not(.offer-hero) .eyebrow { color:var(--blue); }
.integration-page .offer-frame { border-color:var(--panel-line); }
.integration-page :is(.int-fields div,.int-card) { background:var(--bg); }

/* Section headings and their descriptions centre in a bounded column; examples and cards below stay start-aligned. */
.offer-heading { margin-inline:auto;text-align:center; }
.offer-heading h2 { text-wrap:balance; }
.offer-heading>p:not(.eyebrow),.offer-heading>.eyebrow { margin-inline:auto; }
.offer-heading>p:not(.eyebrow) { text-wrap:balance; }

/* QVS case study: a feature selector, one illustrative phone screen at a time, then the full study.
   The site theme and type frame the device; inside the screen the QVS palette stays fixed in both themes.
   The html scroll-padding (6rem) clears the 77px header; the section is pulled up by its own top padding so a link to
   #case-study lands the eyebrow about 1rem below the header instead of after a band of empty padding. */
.integration-page #case-study { --case-pad:clamp(3rem,5vw,4.5rem);scroll-margin-top:calc(-1 * var(--case-pad) - .25rem); }
.offer-heading>p.qvs-scope { margin-top:.75rem;font-size:.9375rem;color:var(--ink); }
.qvs-case { --app-brand:#4a1d8f;--app-brand-soft:#efe9f8;--app-yellow:#f5b301;--app-bg:#f7f6fb;--app-card:#fff;--app-text:#1c1533;--app-sub:#5d5675;--app-rule:#ebe8f2;--map-land:#efedf4;--map-block:#e4e1ec;--map-road:#fff;
  display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:clamp(1.5rem,4vw,2rem);max-width:46rem;margin-inline:auto; }
/* The heading sits inside the case grid; its margin tops the row gap up to the usual heading spacing. */
.qvs-case>.offer-heading { justify-self:stretch;margin-bottom:calc(clamp(2rem,4vw,3rem) - clamp(1.5rem,4vw,2rem)); }
/* Three equal tabs; at very large text sizes on a phone they stack rather than run past the screen. */
.qvs-steps { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,5.5em),1fr));gap:2px;width:min(100%,25rem);min-width:0;margin:0;padding:3px;border:1px solid var(--panel-line);border-radius:999px; }
.qvs-steps label { position:relative;display:block; }
.qvs-steps input { position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer; }
.qvs-steps span { display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 .4rem;font-size:.9375rem;white-space:nowrap;color:var(--muted);border-radius:999px;transition:background-color .16s ease,color .16s ease; }
.qvs-steps input:hover+span { color:var(--ink); }
.qvs-steps input:checked+span { color:var(--bg);background:var(--ink); }
.qvs-steps input:focus-visible+span { outline:2px solid var(--blue);outline-offset:3px; }

.qvs-stage { display:grid;justify-items:center;gap:1.5rem;width:100%; }
.qvs-phone { width:284px;max-width:100%;padding:9px;border-radius:44px;background:#17142a;box-shadow:0 0 0 1px #2c2748 inset,0 0 0 1px var(--line),0 18px 40px -20px rgba(20,10,50,.45); }
.qp-screen { position:relative;height:548px;overflow:hidden;border-radius:36px;color:var(--app-text);background:var(--app-bg);font:400 16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;overflow-wrap:normal; }
.qp-screen p { max-width:none;margin:0; }
.qp-island { position:absolute;z-index:3;top:10px;left:50%;width:80px;height:23px;margin-left:-40px;border-radius:14px;background:#0d0b18; }
.qp-home { position:absolute;z-index:3;bottom:7px;left:50%;width:100px;height:4px;margin-left:-50px;border-radius:4px;background:rgba(28,21,51,.5); }
/* Arrival shows first; :has() swaps the screen and its note for the chosen feature. Without :has() Arrival stays in place; its defaults are separate rules because a browser drops any selector list it cannot parse.
   The notes share one grid cell and hide by visibility, so the tallest note sets the height and switching never moves what follows. */
.qp-view { display:none;position:absolute;inset:0; }
.qvs-case .qp-view[data-view=arrival] { display:block; }
.qvs-case:has(#qvs-dispatch:checked) .qp-view[data-view=dispatch],
.qvs-case:has(#qvs-analytics:checked) .qp-view[data-view=analytics] { display:block; }
.qvs-case:has(#qvs-dispatch:checked,#qvs-analytics:checked) .qp-view[data-view=arrival] { display:none; }
.qvs-notes { display:grid; }
.qvs-note { grid-area:1/1;visibility:hidden; }
.qvs-case .qvs-note[data-view=arrival] { visibility:visible; }
.qvs-case:has(#qvs-dispatch:checked) .qvs-note[data-view=dispatch],
.qvs-case:has(#qvs-analytics:checked) .qvs-note[data-view=analytics] { visibility:visible; }
.qvs-case:has(#qvs-dispatch:checked,#qvs-analytics:checked) .qvs-note[data-view=arrival] { visibility:hidden; }
/* The incoming screen settles from 40% rather than from nothing, so a change never passes through an empty phone; only the note rises. */
@media(prefers-reduced-motion:no-preference) {
  .qp-view { animation:qvs-screen-in .2s ease-out; }
  .qvs-case .qvs-note[data-view=arrival] { animation:qvs-note-in .2s ease-out; }
  .qvs-case:has(#qvs-dispatch:checked) .qvs-note[data-view=dispatch],
  .qvs-case:has(#qvs-analytics:checked) .qvs-note[data-view=analytics] { animation:qvs-note-in .2s ease-out; }
  .qvs-case:has(#qvs-dispatch:checked,#qvs-analytics:checked) .qvs-note[data-view=arrival] { animation:none; }
}
@keyframes qvs-screen-in { from { opacity:.4; } }
@keyframes qvs-note-in { from { opacity:0;transform:translateY(4px); } }
@media(prefers-reduced-motion:reduce) { .qvs-steps span { transition:none; } }

.qp-map { position:absolute;inset:0;display:block;width:100%;max-width:none;height:100%; }
.qp-sheet { position:absolute;z-index:2;inset-inline:0;bottom:0;padding:20px 18px 30px;border-radius:24px 24px 0 0;background:var(--app-card);box-shadow:0 -8px 24px -14px rgba(40,20,90,.3); }
.qp-page { position:absolute;inset:0;display:flex;flex-direction:column;padding:64px 18px 28px; }
.qp-screen .qp-title { margin-bottom:20px;font-size:24px;font-weight:700;letter-spacing:-.01em; }
.qp-label { display:block;font-size:13px;line-height:1.3;color:var(--app-sub); }
.qp-value { display:block;font-size:17px;font-weight:650;line-height:1.3; }
.qp-row { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px; }
.qp-ai { display:inline-flex;align-items:center;gap:6px;padding:3px 10px;font-size:13px;font-weight:650;white-space:nowrap;color:var(--app-brand);background:var(--app-brand-soft);border-radius:999px; }
.qp-ai i { width:6px;height:6px;border-radius:50%;background:var(--app-yellow); }
.qp-window { position:relative;height:10px;margin:14px 0 8px;border-radius:10px;background:var(--app-rule); }
.qp-window b { position:absolute;inset-block:0;left:38%;width:30%;border-radius:10px;background:var(--app-brand); }
.qp-ends { display:flex;justify-content:space-between;font-size:13px;color:var(--app-sub); }
.qp-card { padding:16px;border-radius:18px;background:var(--app-card);box-shadow:0 0 0 1px var(--app-rule) inset; }
.qp-who { display:flex;align-items:center;gap:12px; }
.qp-badge { display:grid;flex:none;place-items:center;width:42px;height:42px;color:#fff;border-radius:13px;background:var(--app-brand); }
.qp-badge.qp-soft { color:var(--app-brand);background:var(--app-brand-soft); }
.qp-link { display:flex;justify-content:center;padding:6px 0; }
.qp-link::before { content:"";width:2px;height:24px;border-radius:2px;background:#d9d4e6; }
.qp-state { display:inline-flex;align-items:center;gap:4px;margin-top:6px;padding:3px 9px;font-size:13px;font-weight:650;color:#136b3a;background:#e3f5ea;border-radius:999px; }
.qp-screen .qp-section { margin:26px 0 10px;font-size:14px;font-weight:650;color:var(--app-sub); }
.qp-queue { padding:2px 14px;border-radius:18px;background:var(--app-card);box-shadow:0 0 0 1px var(--app-rule) inset; }
.qp-qrow { display:flex;align-items:center;gap:12px;padding:12px 0; }
.qp-qrow+.qp-qrow { border-top:1px solid var(--app-rule); }
.qp-qico { display:grid;flex:none;place-items:center;width:34px;height:34px;color:var(--app-brand);border-radius:10px;background:var(--app-brand-soft); }
.qp-qname { font-size:16px;font-weight:600;white-space:nowrap; }
.qp-qstate { margin-inline-start:auto;padding:2px 9px;font-size:13px;font-weight:650;color:#7a5600;background:#fff4d6;border-radius:999px; }
.qp-qstate.qp-done { color:#136b3a;background:#e3f5ea; }
.qp-chart { display:block;width:100%;height:auto;margin-top:10px; }
.qp-split { display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px; }
.qp-split .qp-value { font-size:16px; }
.qp-bars { display:flex;align-items:flex-end;gap:5px;height:48px;margin-top:12px; }
.qp-bars i { flex:1;height:var(--h);border-radius:4px 4px 2px 2px;background:var(--app-brand); }
.qp-bars.qp-soft i { background:var(--app-yellow); }
.qp-screen .qp-foot { margin-top:auto;font-size:13px;text-align:center;color:var(--app-sub); }

.qvs-notes { max-width:34rem;text-align:center; }
.qvs-note h3 { margin:0 0 .4rem;font-size:var(--type-card);line-height:1.2; }
.qvs-note p { margin:0;font-size:1.0625rem;line-height:1.5;color:var(--muted);text-wrap:balance; }
.qvs-case>.action { margin:0; }
/* Beside the phone, the note starts level with the screen title rather than the phone's middle. */
@media(min-width:620px) {
  .qvs-stage { grid-template-columns:284px minmax(0,20rem);justify-content:center;align-items:start;gap:2.5rem; }
  .qvs-notes { justify-self:start;margin-top:4.5rem;text-align:start; }
}
/* Desktop: heading, picker, note and link share the left column, centred within it; the whole phone sits beside
   them at its own size, so the example fits one laptop screen. The pair centres on the page, and the empty 1fr rows centre the shorter column against the taller one.
   .qvs-stage is a plain wrapper, so dissolving it only lets the phone and note join this grid. */
@media(min-width:64rem) {
  .qvs-case { grid-template-columns:minmax(0,44rem) 284px;grid-template-rows:1fr repeat(4,auto) 1fr;justify-content:center;gap:0 clamp(3rem,6vw,5rem);max-width:none; }
  .qvs-case>.offer-heading { grid-area:2/1;margin-bottom:1.75rem; }
  .qvs-steps { grid-area:3/1; }
  .qvs-stage { display:contents; }
  .qvs-phone { grid-column:2;grid-row:1/-1;align-self:center; }
  .qvs-notes { grid-area:4/1;justify-self:center;margin-top:1.5rem;text-align:center; }
  .qvs-case>.action { grid-area:5/1;margin-top:1.5rem; }
}
@media(forced-colors:active) { .qvs-steps input:checked+span { outline:2px solid CanvasText; } }

/* Dark theme: our night version of the illustrative QVS screens, keyed to the site toggle rather than the OS.
   Navy surfaces follow the Bahr dark theme, with cards and map blocks a step lighter than the screen; purple stays for the
   route, estimate and charts, and the destination pin turns yellow. Tokens swap without transitions, so a theme change
   never passes through a light screen. */
html[data-theme=dark] .qvs-case { --app-brand:#a58bfa;--app-brand-ink:#cbbcff;--app-brand-soft:#203858;--app-bg:#0e1d31;--app-card:#172b44;--app-text:#edf2f8;--app-sub:#aabbd0;--app-rule:#2a4160;--map-land:#0e1d31;--map-block:#1a2f4a;--map-road:#13253c; }
html[data-theme=dark] .qvs-phone { background:#03080f;box-shadow:0 0 0 1px #1d2c40 inset,0 0 0 1px var(--line),0 18px 40px -20px rgba(0,0,0,.7); }
html[data-theme=dark] .qvs-case .qp-screen { box-shadow:0 0 0 1px #1f3350; }
html[data-theme=dark] .qvs-case .qp-island { background:#000; }
html[data-theme=dark] .qvs-case .qp-map path[fill="#fff"] { fill:var(--app-yellow);stroke:var(--app-yellow); }
html[data-theme=dark] .qvs-case .qp-map circle[r="6"] { fill:var(--app-bg); }
html[data-theme=dark] .qvs-case .qp-map path[stroke="#fff"] { stroke:var(--app-bg); }
html[data-theme=dark] .qvs-case .qp-map ellipse { fill:#000;opacity:.5; }
html[data-theme=dark] .qvs-case .qp-sheet { box-shadow:0 -1px 0 var(--app-rule),0 -12px 24px -14px rgba(0,0,0,.8); }
html[data-theme=dark] .qvs-case .qp-ai { color:var(--app-brand-ink); }
html[data-theme=dark] .qvs-case .qp-badge { color:var(--app-text);background:#2b4a73; }
html[data-theme=dark] .qvs-case :is(.qp-badge.qp-soft,.qp-qico) { color:var(--app-sub);background:var(--app-brand-soft); }
html[data-theme=dark] .qvs-case .qp-link::before { background:var(--app-rule); }
html[data-theme=dark] .qvs-case .qp-home { background:rgba(237,242,248,.45); }
html[data-theme=dark] .qvs-case :is(.qp-state,.qp-qstate.qp-done) { color:#8be3ae;background:#123a2e; }
html[data-theme=dark] .qvs-case .qp-qstate:not(.qp-done) { color:#ffd36b;background:#3a3014; }

/* Saudi buying questions: four short columns in the same ruled style as the deliverables grid. */
.int-buy { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:2rem 1.5rem; }
.int-buy>div { padding-top:1.25rem;border-top:2px solid var(--ocean-mid); }
.int-buy ul,.int-buy ol { display:grid;gap:.75rem;margin:0;padding-inline-start:1.1rem; }
.int-buy li { line-height:1.55;color:var(--muted); }
.int-buy li::marker { color:var(--blue); }
.int-buy li strong { font-weight:400;color:var(--ink); }

/* FAQ: native disclosure rows, matching the home page questions. */
.int-faq { max-width:52rem;margin-inline:auto;border-bottom:1px solid var(--line); }
.int-faq details { border-top:1px solid var(--line); }
.int-faq summary { display:flex;align-items:baseline;justify-content:space-between;gap:1.5rem;min-height:44px;padding:1.25rem 0;cursor:pointer;list-style:none; }
.int-faq summary::-webkit-details-marker { display:none; }
.int-faq summary::after { content:"+" / "";flex:none;color:var(--blue);font-size:1.5rem;line-height:1;transition:transform .25s; }
.int-faq details[open] summary::after { transform:rotate(45deg); }
.int-faq summary h3 { margin:0;font-size:1.25rem; }
.int-faq summary:hover h3 { color:var(--blue); }
.int-faq summary:focus-visible { outline:2px solid var(--blue);outline-offset:4px; }
.int-faq details>p { max-width:64ch;margin:0;padding:0 0 1.5rem;line-height:1.6;color:var(--muted); }
@media(prefers-reduced-motion:reduce) { .int-faq summary::after { transition:none; } }
