/* estimator.css: SLaiCE data estimator. Uses the site's tokens; light only. */
.est { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 743px) { .est { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 744px) and (max-width: 1023px) { .est { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.est-controls { display: flex; flex-direction: column; gap: 22px; }
.est-f label { display: block; font-weight: 600; font-size: var(--fs-b, 1.0625rem); margin-bottom: 8px; }
.est-row { display: flex; align-items: center; gap: 14px; }
.est-row input[type="range"] { flex: 1; min-width: 0; height: 44px; accent-color: var(--navy, #1F3A5F); cursor: pointer; }
.est-row output { min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: var(--fs-l, 1.375rem); color: var(--navy, #1F3A5F); }
.est-out { background: #FFFFFF; border-radius: 6px; padding: clamp(22px, 2.6vw, 36px); box-shadow: 0 0 0 1px #C7D4E5; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.est-ledger { display: flex; flex-direction: column; gap: 4px; min-height: 212px; } /* room for 12 codes, so the card never jumps */
.est-r { display: grid; grid-template-columns: repeat(var(--cols, 20), minmax(0, 1fr)); gap: 4px; }
.est-r span { height: 14px; border-radius: 2px; background: var(--cell-off, #CFDDEA); }
.est-r span.on { background: var(--blue, #2F5D8C); }
.mo .est-r span { transition: background-color 200ms ease; }
.est-big { margin: 10px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.est-pct { font-family: var(--display); font-weight: 500; font-size: var(--fs-fig, clamp(3.25rem, 2rem + 4vw, 5.5rem)); line-height: 0.9; letter-spacing: -0.022em; color: var(--navy, #1F3A5F); font-variant-numeric: tabular-nums; }
.est-unit { font-size: var(--fs-l, 1.375rem); }
.est-sub { margin: 0; font-size: var(--fs-b, 1.0625rem); }
.est-note { margin: 0; font-size: 0.875rem; color: var(--muted, #5A5860); }
.est-cta { align-self: flex-start; margin-top: 6px; }
.est:not(.is-live) .est-fallback { display: block; }

/* ---------- Security page ---------- */
.sec-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 743px) { .sec-split { grid-template-columns: minmax(0, 1fr); } }
.sec-split .lead { margin-top: 18px; }
.sec-split p { margin-top: 14px; }
.sec-points { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: var(--fs-b, 1.0625rem); }
.sec-points li { position: relative; padding-left: 26px; }
.sec-points li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 14px; height: 3px; background: var(--red, #D1655D); border-radius: 2px; }
.sec-fig { margin: 0; }
/* the network: a filled pale-blue panel, every label inside it */
.sec-net { display: grid; grid-template-columns: auto minmax(64px, 1fr) auto; grid-template-areas: "src l tgt" "src rise tgt" "src via tgt"; align-items: center; column-gap: clamp(14px, 2vw, 28px); row-gap: 10px; padding: clamp(20px, 2.4vw, 32px); background: var(--band, #EAF0F6); border-radius: 12px; }
.sec-net p { margin: 0; max-width: none; }
.sec-net { position: relative; }
/* a copy of one data cell travelling the line */
.net-dot { position: absolute; left: 0; top: 0; width: 16px; height: 11px; margin: -5.5px 0 0 -8px; border-radius: 2px; background: var(--blue, #2F5D8C); box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(31, 58, 95, 0.3); pointer-events: none; }
/* the network boundary: a dashed line just inside the box */
.sec-net { outline: 2px dashed rgba(31, 58, 95, 0.45); outline-offset: -10px; }
/* "Your network" sits between the two systems, over the line */
.sec-net .net-l { grid-area: l; justify-self: center; align-self: end; text-align: center; font-size: var(--fs-14, 0.875rem); font-weight: 600; color: var(--navy, #1F3A5F); }
.net-src { grid-area: src; } .net-tgt { grid-area: tgt; }
.net-sys { display: flex; flex-direction: column; gap: 10px; }
.net-sys p { font-size: var(--fs-b, 1.0625rem); font-weight: 600; }
.net-led { display: grid; grid-template-columns: repeat(4, 26px); gap: 4px; }
.net-tgt .net-led { grid-template-columns: repeat(2, 26px); }
.net-led i { display: block; height: 18px; border-radius: 2px; background: #fff; }  /* white, not pale blue: the diagram sits on the band */
.net-led i.on { background: var(--blue, #2F5D8C); }
.net-rise { grid-area: rise; width: 100%; height: 60px; overflow: visible; }
.net-rise path { fill: none; stroke: var(--red, #D1655D); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.net-via { grid-area: via; justify-self: center; text-align: center; font-size: var(--fs-14, 0.875rem); color: var(--muted, #5A5860); }
@media (max-width: 419px) { .net-led { grid-template-columns: repeat(4, 20px); } .net-tgt .net-led { grid-template-columns: repeat(2, 20px); } }
/* built on SAP's own tools: the heading beside a two-column definition list */
.sec-tools { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 32px; align-items: start; }
.sec-tools > .h2 { grid-column: 1 / span 5; }
.sec-defs { grid-column: 6 / -1; margin: 0; display: grid; }
.sec-defs > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: var(--g); row-gap: 6px; padding: 20px 0; box-shadow: inset 0 -1px 0 #C7D4E5; }
.sec-defs > div:first-child { padding-top: 6px; }
.sec-defs > div:last-child { box-shadow: none; }
.sec-defs dt { font: 600 var(--fs-l, 1.375rem)/1.2 var(--sans); letter-spacing: 0; }
.sec-defs dd { margin: 0; font-size: var(--fs-b, 1.0625rem); }
@media (max-width: 1023px) { .sec-tools > .h2, .sec-defs { grid-column: 1 / -1; } }
@media (max-width: 559px) { .sec-defs > div { grid-template-columns: minmax(0, 1fr); } }
/* the "[Confirm ...]" placeholders keep the site's .ph highlight inside the dash list */
.sec-points .ph { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sec-mask { background: #FFFFFF; border-radius: 6px; padding: 24px 28px; box-shadow: 0 0 0 1px #C7D4E5; display: flex; flex-direction: column; gap: 14px; font-size: var(--fs-b, 1.0625rem); }
.sec-mask p { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin: 0; }
.sec-mask .k { width: 4.5em; color: var(--muted, #5A5860); font-size: var(--fs-14, 0.875rem); }
.sec-mask .arr { color: var(--red, #D1655D); }
.mo .sec-mask { cursor: pointer; }  /* hover or tap replays the masking (demos.js) */
.sec-mask b { color: var(--navy, #1F3A5F); font-weight: 600; letter-spacing: 0.02em; }


/* ---------- Page-open stroke: a thin logo-red line sweeps across the top as each page opens ---------- */
@media (prefers-reduced-motion: no-preference) {
  .mo.first-visit body::after {
    content: ""; position: fixed; z-index: 100; left: 0; right: 0; top: env(safe-area-inset-top, 0px); height: 3px;
    background: var(--red, #D1655D); transform-origin: left center; pointer-events: none;
    animation: page-rise 600ms cubic-bezier(0.77, 0, 0.175, 1) both;
  }
}
@keyframes page-rise {
  0% { transform: scaleX(0); opacity: 1; }
  65% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* security hero: give the button room under the lead */
.p-security .hero-in .actions { margin-top: 32px; }

.est-sec .est-lead { margin: 16px 0 clamp(28px, 4vw, 48px); max-width: 52ch; }


/* ---------- Estimator sliders: a proper thumb, the track filled to it ---------- */
.est-row input[type="range"] { -webkit-appearance: none; appearance: none; background: transparent; height: 44px; }
.est-row input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--navy, #1F3A5F) var(--p, 50%), var(--cell, #CFDDEA) var(--p, 50%)); }
.est-row input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--cell, #CFDDEA); }
.est-row input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--navy, #1F3A5F); }
.est-row input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--navy, #1F3A5F); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.est-row input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--navy, #1F3A5F); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.mo .est-row input[type="range"]::-webkit-slider-thumb { transition: transform 100ms ease-out; }
.est-row input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.est-row input[type="range"]:active::-moz-range-thumb { transform: scale(1.12); }
.est-row input[type="range"]:focus-visible { outline: none; }
.est-row input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--blue, #2F5D8C); outline-offset: 3px; }
.est-row input[type="range"]:focus-visible::-moz-range-thumb { outline: 2px solid var(--blue, #2F5D8C); outline-offset: 3px; }
.est.is-drag .est-r span { transition: none !important; }
/* higher-contrast setting: a solid edge on the estimator card */
@media (prefers-contrast: more) { .est-out { box-shadow: none; border: 1px solid var(--ink, #1C1B1F); } }

/* ---------- Accessibility settings ---------- */
/* "Increase contrast": darker control borders and solid edges on panels and cards */
@media (prefers-contrast: more) {
  :root { --ctl: #5A5860; --line: #8A8790; }
  .card, .sec-net, .est-out, .namecard, .portrait, .drop, .menu, .mcta { box-shadow: none !important; outline: 1px solid var(--ink, #1C1B1F); outline-offset: -1px; }
}
/* "Reduce transparency": anything see-through becomes solid */
@media (prefers-reduced-transparency: reduce) {
  .mcta, .site-head, .subnav, .drop, .menu { background: var(--paper, #FBFAF7) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .qa { --qa-rest: #F7F5F1; }
  .band .qa { --qa-rest: #F4F7FC; }
  .tone .qa { --qa-rest: #F9F8F6; }
}

/* footer: company details and the SAP trademark line, a full-width row under the copyright */
.foot-note { flex-basis: 100%; max-width: 80ch; color: var(--muted); }

/* Home: "Not sure which one?" helper under the two doors. Two yes/no questions point to an offer.
   It needs site.js, so it's hidden without scripts. */
html:not(.js) .pick { display: none; }
.pick { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 24px; margin-top: clamp(56px, 6vw, 96px); }
.pick-head { grid-column: 1 / span 4; }
.pick-sub { margin-top: 8px; color: var(--muted); }
.pick-qs { grid-column: 5 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px var(--g); }
.pick-f { border: 0; margin: 0; padding: 0; min-width: 0; }
.pick-f legend { padding: 0; font-weight: 500; }
.pick-opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border: 1.5px solid var(--ctl, #8C8A90); border-radius: 999px; background: #fff; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .pill input:not(:checked) + span:hover { border-color: var(--ink); } }
.mo .pill span { transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 160ms var(--ease-out); }
.mo .pill span:active { transform: scale(0.97); transition-duration: 80ms; }
/* a fixed height, so answering or changing an answer never moves the page below */
/* before any answer: one quiet line. Answered: a box with text left, button right (it opens smoothly, see site.js) */
.pick-out { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: center; border-radius: 6px; }
.pick-out.is-done { padding: 18px 22px; background: var(--paper-2); }
/* empty until both questions are answered: take back the row gap so nothing sits under the questions */
.pick-out:not(.is-done) { margin-top: -24px; }
.pick-out > p { grid-column: 1; }
.pick-out .btn { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 599px) {
  .pick-qs { grid-template-columns: minmax(0, 1fr); }
  .pick-out { grid-template-columns: minmax(0, 1fr); }
  .pick-out .btn { grid-column: 1; grid-row: auto; justify-self: start; }
}
.pick-out .pick-ans { color: var(--muted); }
.pick-out.is-done .pick-ans { color: var(--ink); font: 600 var(--fs-l)/1.2 var(--sans); letter-spacing: 0; }
.pick-why { margin-top: 8px; max-width: 52ch; }
@media (max-width: 599px) { .pick-out .btn { margin-top: 14px; } }
.mo .pick-out.is-new > * { animation: pick-in 240ms var(--ease-out) both; }
@keyframes pick-in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 899px) { .pick-head, .pick-qs { grid-column: 1 / -1; } }

/* SLaiCE: "What happens after you get in touch". Four steps on one line (desktop), a vertical list below 1024px.
   Each step draws its line to the next one, in turn, when the list scrolls into view; the line stops at the last dot. */
.after-lead { margin-top: 16px; max-width: 52ch; }
.after { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--g); margin-top: clamp(40px, 5vw, 72px); padding: 44px 0 0; list-style: none; }
.after li { position: relative; }
.after li::before { content: ""; position: absolute; left: 0; top: -45px; width: 18px; height: 18px; border-radius: 50%; background: var(--band); box-shadow: inset 0 0 0 4px var(--blue); z-index: 1; }
.after li:last-child::before { background: var(--red); box-shadow: inset 0 0 0 4px var(--red); }
.after li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: -37px; width: calc(100% + var(--g) - 18px); height: 2px; background: var(--blue); transform-origin: left; }
.after-when { font-size: var(--fs-14); letter-spacing: 0.01em; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.after .h3 { margin-top: 10px; }
.after .h3 + p { margin-top: 10px; max-width: 34ch; }
.mo .after:not(.is-in) li::after { transform: scaleX(0); }
.mo .after li::after { transition: transform 380ms var(--ease-in-out); }
.mo .after li:nth-child(2)::after { transition-delay: 300ms; }
.mo .after li:nth-child(3)::after { transition-delay: 600ms; }
.mo .after.is-instant li::after { transition: none; }
/* iPad landscape: labels and titles wrap unevenly across the four columns, so give them equal heights */
@media (min-width: 1024px) and (max-width: 1199px) { .after-when { min-height: 2.9em; } .after .h3 { min-height: 2.4em; } }
@media (max-width: 1023px) {
  .after { grid-template-columns: 1fr; gap: 32px; padding: 0 0 0 40px; max-width: 60ch; }
  .after li::before { left: -40px; top: 0; }
  .after li:not(:last-child)::after { left: -32px; top: 18px; bottom: -32px; width: 2px; height: auto; transform-origin: top; }
  .mo .after:not(.is-in) li::after { transform: scaleY(0); }
}
@media (min-width: 744px) and (max-width: 1023px) {
  .after { max-width: none; }
  .after li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); column-gap: var(--g); align-items: start; }
  .after-when { grid-row: 1 / span 2; padding-top: 0.15em; }
  .after .h3 { margin-top: 0; }
  .after .h3 + p { grid-column: 2; }
}
@media print { .after li::after { transform: none !important; } }

/* ---------- Partners page ---------- */
/* hero: text left, the two routes right; stacked below 900px */
.pt-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--g); align-items: end; }
.pt-hero > :not(.routes) { grid-column: 1; }
.routes { grid-column: 2; grid-row: 1 / span 2; align-self: end; position: relative; margin: 0; height: 200px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(48px, 0.8fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; align-items: center; }
.rt-node { justify-self: end; text-align: center; padding: 10px 14px; font-weight: 600; font-size: var(--fs-14, 0.875rem); line-height: 1.25; background: var(--paper); border: 1px solid #948B70; border-radius: 999px; }
.rt-a { grid-column: 1; grid-row: 1; }
.rt-b { grid-column: 1; grid-row: 2; }
.rt-lines { grid-column: 2; grid-row: 1 / span 2; width: 100%; height: 100%; overflow: visible; }
.rt-lines path { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.rt-lines .rt-2 { stroke: var(--blue); }
.rt-end { grid-column: 3; grid-row: 1 / span 2; justify-self: stretch; text-align: left; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 6px; border-color: var(--ink); }
.rt-sig { width: 58px; height: 10px; }
.rt-sig rect { fill: #C7D4E5; }
.rt-sig rect.on { fill: var(--red); }
@media (max-width: 899px) {
  .pt-hero { grid-template-columns: minmax(0, 1fr); }
  .routes { grid-column: 1; grid-row: auto; margin-top: 40px; height: 170px; max-width: 520px; }
}
.rt-sig rect.pb { fill: var(--blue); }
.routes .cv-again { position: absolute; right: 0; top: calc(100% + 4px); margin: 0; }
/* a block of data travelling one route (fx.js) */
.rt-pk { position: absolute; left: 0; top: 0; width: 16px; height: 11px; margin: -5.5px 0 0 -8px; border-radius: 2px; box-shadow: 0 0 0 2px var(--paper), 0 2px 6px rgba(31, 58, 95, 0.3); pointer-events: none; z-index: 1; }
.rt-pk--a { background: var(--red); } .rt-pk--b { background: var(--blue); }
/* the story (fx.js adds .rt-story, then .rt-s1 to .rt-s3): routes rise in, lines draw, the two blocks arrive together,
   the card fills with both colours and pulses. Once, then "Play Again". Reduced motion or no script: the final frame. */
@media (prefers-reduced-motion: no-preference) {
  .mo .routes.rt-story .rt-node { opacity: 0; transform: translateY(8px) scale(0.97); transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); }
  .mo .routes.rt-story.rt-s1 .rt-node { opacity: 1; transform: none; }
  .mo .routes.rt-story.rt-s1 .rt-b { transition-delay: 80ms; }
  .mo .routes.rt-story.rt-s1 .rt-end { transition-delay: 160ms; }
  .mo .routes.rt-story .rt-lines path { clip-path: inset(-10% 100% -10% -2%); }
  .mo .routes.rt-story.rt-s2 .rt-lines path { clip-path: inset(-10% -2% -10% -2%); transition: clip-path 800ms var(--ease-in-out); }
  .mo .routes.rt-story.rt-s2 .rt-lines .rt-2 { transition-delay: 120ms; }
  .mo .routes.rt-story .rt-sig rect { fill: #C7D4E5; transition: fill 220ms ease; }
  .mo .routes.rt-story.rt-s3 .rt-sig rect.pb { fill: var(--blue); }
  .mo .routes.rt-story.rt-s3 .rt-sig rect.on { fill: var(--red); }
  .mo .routes.rt-story.rt-s3 .rt-sig rect:nth-child(2) { transition-delay: 70ms; }
  .mo .routes.rt-story.rt-s3 .rt-sig rect:nth-child(3) { transition-delay: 140ms; }
  .mo .routes.rt-story.rt-s3 .rt-sig rect:nth-child(4) { transition-delay: 210ms; }
  .mo .routes.rt-story.rt-s3 .rt-end { animation: rt-land 520ms var(--ease-out); }
}
@keyframes rt-land { from { box-shadow: 0 0 0 0 rgba(209, 101, 93, 0); } 45% { box-shadow: 0 0 0 7px rgba(209, 101, 93, 0.2); } to { box-shadow: 0 0 0 0 rgba(209, 101, 93, 0); } }

.pt-logos { margin-top: clamp(28px, 4vw, 48px); }
/* two cards side by side, then stacked */
.pt-pair { margin-top: clamp(40px, 5vw, 64px); }
.pt-card:nth-child(1) { grid-column: 1 / span 6; }
.pt-card:nth-child(2) { grid-column: 7 / -1; }
@media (max-width: 743px) { .pt-card:nth-child(n) { grid-column: 1 / -1; } }

/* Use cases, SAP migration: who does the functional work */
.uc-who { margin: 28px 0 0; padding-top: 22px; box-shadow: inset 0 1px 0 #C7D4E5; }
.uc-who p { margin-top: 10px; }
.uc-who .sec-points { margin-top: 14px; gap: 8px; }

/* masking dots: whole dots only, spread evenly and centred in each cell (a 6px tile from the top-left left cut-off dots on the right and bottom) */
.lc i.mask, .cal-t::after, .cal-d::after, .ck--m::before, .board .c::before, .board .t, .bks--masked i.on { background-repeat: space; background-position: center; }
