/* Amazon S3 page only (/aws/s3/). Loaded via `extra: crm, p-aws-s3`. Every class is scoped with .pas3- */

/* ---------- hero: bucket + storage-class stairs ---------- */
.pas3-hero .pas3-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.pas3-hero .crm-sub { max-width: 42ch; }
.pas3-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; max-width: 600px; }
.pas3-chips li { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 11px; border-radius: 999px; background: #fff; border: 1px solid #DCE7EF; font: 600 13.5px/1.25 var(--f-body); color: #082238; box-shadow: 0 10px 20px -16px rgba(8,34,56,.5); }
.pas3-chips i { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.pas3-badge img { width: 64px !important; padding: 6px 8px; border-radius: 10px; background: #fff; border: 1px solid #E2E8F0; }

.pas3-scene { position: relative; margin: 0; min-height: 470px; }
.pas3-stairs { position: absolute; inset: 0 0 auto 0; height: 330px; margin: 0; padding: 0; list-style: none; }
.pas3-stairs li { position: absolute; left: calc(var(--i) * 15% + 6%); top: calc(var(--i) * 58px); width: 40%; height: calc(330px - var(--i) * 58px); padding: 12px 14px; border-radius: 14px 14px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, #fff), color-mix(in srgb, var(--c) 4%, #F7FAFC) 70%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); border-bottom: 0; z-index: calc(var(--i) + 1); box-shadow: -10px 0 24px -20px rgba(8,34,56,.6); opacity: 0; transform: translateY(24px); animation: pas3-step-in .7s cubic-bezier(.2,.7,.1,1) forwards; animation-delay: calc(.15s + var(--i) * .12s); }
.pas3-stairs li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 14px 14px 0 0; background: var(--c); }
.pas3-stairs b { display: block; font: 700 12.5px/1.2 var(--f-display); color: #082238; }
.pas3-stairs span { display: block; margin-top: 3px; font: 800 15px/1 var(--f-display); color: var(--c); }
.pas3-stairs__cap { position: absolute; right: 2%; top: 336px; margin: 0; font: 600 11.5px/1 var(--f-body); color: #64748B; letter-spacing: .02em; }
@keyframes pas3-step-in { to { opacity: 1; transform: none; } }

.pas3-bucket { position: absolute; left: 4%; bottom: 0; width: 250px; height: 240px; z-index: 10; }
.pas3-bucket__svg { position: absolute; left: 5px; bottom: 0; width: 240px; height: 210px; overflow: visible; filter: drop-shadow(0 30px 30px rgba(8,34,56,.35)); z-index: 1; }
.pas3-bucket__level { transition: y .9s cubic-bezier(.2,.7,.1,1); }
.pas3-bucket__logo { position: absolute; z-index: 2; left: 98px; top: 118px; width: 54px; height: 54px; border-radius: 12px; background: #fff; padding: 4px; box-shadow: 0 8px 18px -8px rgba(0,0,0,.4); }
.pas3-bucket__name { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); white-space: nowrap; font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #1B6F3B; }
.pas3-drop { position: absolute; left: calc(50% + var(--x)); top: 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 5px; border-radius: 9px; background: #fff; border: 1px solid #DCE7EF; font: 600 11.5px/1 var(--f-body); color: #082238; white-space: nowrap; box-shadow: 0 10px 18px -12px rgba(8,34,56,.6); transform: translate(-50%, -80px); opacity: 0; z-index: 0; }
.pas3-drop i { font: 800 9px/1 var(--f-display); font-style: normal; padding: 4px 5px; border-radius: 5px; background: var(--c); color: #fff; }
.pas3-scene.is-live .pas3-drop { animation: pas3-drop 5.6s cubic-bezier(.55,0,.8,.6) infinite; animation-delay: var(--d); }
@keyframes pas3-drop {
  0% { opacity: 0; transform: translate(-50%, -110px) rotate(-4deg); }
  8% { opacity: 1; }
  20% { opacity: 1; transform: translate(-50%, 40px) rotate(3deg); }
  27% { opacity: 1; transform: translate(-50%, 86px) scale(.85); }
  30%, 100% { opacity: 0; transform: translate(-50%, 96px) scale(.8); }
}
.pas3-tag { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 12px; background: #fff; border: 1px solid #DCE7EF; font: 600 12.5px/1.2 var(--f-body); color: #082238; box-shadow: 0 18px 34px -22px rgba(8,34,56,.55); z-index: 12; }
.pas3-tag--count { right: 4%; bottom: 74px; }
.pas3-tag--count b { font: 800 16px/1 var(--f-display); color: #1B6F3B; font-variant-numeric: tabular-nums; }
.pas3-tag em { margin-left: 4px; padding: 2px 7px; border-radius: 999px; background: #FFF4D6; font: 700 10.5px/1.3 var(--f-body); font-style: normal; color: #7A5200; }
.pas3-tag--lock { right: 10%; bottom: 20px; }
.pas3-tag--lock svg { width: 16px; height: 16px; fill: none; stroke: #0A6FA8; stroke-width: 2; stroke-linecap: round; }

/* ---------- fit list ---------- */
.pas3-fit__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.pas3-fit__card { position: relative; padding: 22px 22px 22px 66px; border-radius: 18px; background: #fff; border: 1px solid #E2E8F0; }
.pas3-fit__card h3 { margin: 0 0 6px; font: 700 17.5px/1.3 var(--f-display); color: #082238; }
.pas3-fit__card p { margin: 0; font-size: 15px; line-height: 1.55; color: #475569; }
.pas3-fit__card a { color: #0A6FA8; font-weight: 600; }
.pas3-fit__mark { position: absolute; left: 20px; top: 22px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font: 800 16px/1 var(--f-display); }
.pas3-fit__card.is-yes .pas3-fit__mark { background: #DDF4E6; color: #1B6F3B; }
.pas3-fit__card.is-no { background: #FBF7F4; border-style: dashed; border-color: #E8D5C8; }
.pas3-fit__card.is-no .pas3-fit__mark { background: #FCE4DE; color: #A62D19; }

/* ---------- services ---------- */
.pas3-svc { background: linear-gradient(180deg, #F3F7F9, #fff); }
.pas3-svc__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.pas3-svc__card { position: relative; padding: 24px 20px 22px; border-radius: 18px; background: #fff; border: 1px solid #E2E8F0; overflow: hidden; transition: transform .3s cubic-bezier(.2,.7,.1,1), box-shadow .3s; }
.pas3-svc__card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c); transform: scaleX(.18); transform-origin: left; transition: transform .4s cubic-bezier(.2,.7,.1,1); }
.pas3-svc__card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(8,34,56,.5); }
.pas3-svc__card:hover::after { transform: scaleX(1); }
.pas3-svc__n { display: inline-block; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, #fff); font: 700 11.5px/1.2 var(--f-body); letter-spacing: .05em; text-transform: uppercase; color: var(--c); }
.pas3-svc__card h3 { margin: 14px 0 8px; font: 700 17px/1.3 var(--f-display); color: #082238; }
.pas3-svc__card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #475569; }

/* ---------- story: descending staircase ---------- */
.pas3-life__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(24px, 4vw, 48px); align-items: start; margin-top: 44px; }
.pas3-steps { position: relative; margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pas3-step { position: relative; display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-left: calc(var(--i) * 4.5%); padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid #E2E8F0; border-left: 5px solid var(--c); box-shadow: 0 16px 30px -28px rgba(8,34,56,.6); transition: opacity .6s, transform .6s cubic-bezier(.2,.7,.1,1), box-shadow .3s; }
.pas3-steps.is-arm .pas3-step { opacity: .25; transform: translateY(18px); }
.pas3-steps.is-arm .pas3-step.is-on { opacity: 1; transform: none; }
.pas3-step::before { content: ""; position: absolute; left: -5px; top: 100%; width: 22px; height: 10px; border-left: 2px dashed color-mix(in srgb, var(--c) 50%, #CBD5E1); border-bottom: 2px dashed color-mix(in srgb, var(--c) 50%, #CBD5E1); border-radius: 0 0 0 8px; }
.pas3-step:last-child::before { display: none; }
.pas3-step__day { margin: 0; font: 800 15px/1.1 var(--f-display); color: var(--c); }
.pas3-step h3 { margin: 0 0 4px; font: 700 16.5px/1.3 var(--f-display); color: #082238; }
.pas3-step p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #475569; }
.pas3-step__px { font: 800 18px/1 var(--f-display); color: #082238; text-align: right; white-space: nowrap; }
.pas3-step__px small { display: block; margin-top: 4px; font: 600 11px/1 var(--f-body); color: #64748B; }
.pas3-step--end { background: #F8FAFC; border-style: dashed; border-left-style: solid; }
.pas3-rule { position: sticky; top: 110px; border-radius: 18px; background: #0B2238; color: #CFE3F2; overflow: hidden; box-shadow: 0 40px 70px -46px rgba(8,34,56,.8); }
.pas3-rule__h { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 12px 16px; background: #0E2D4A; font: 600 12.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #8FB3CC; }
.pas3-rule__h em { padding: 3px 8px; border-radius: 999px; background: #FFB81C; font: 700 10.5px/1.2 var(--f-body); font-style: normal; color: #082238; }
.pas3-rule pre { margin: 0; padding: 16px; overflow-x: auto; font: 500 11.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: #E6F1F8; }
.pas3-rule__note { margin: 0; padding: 14px 16px 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; line-height: 1.55; color: #A9C4D8; }

/* ---------- signature interactive: storage-class chooser ---------- */
.pas3-ch__box { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; margin-top: 40px; }
.pas3-ch__in, .pas3-ch__out { padding: 26px; border-radius: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #DCE8F2; }
.pas3-sl { display: block; margin: 0 0 20px; }
.pas3-sl > span { display: flex; justify-content: space-between; gap: 10px; font: 600 14.5px/1.3 var(--f-body); color: #fff; }
.pas3-sl b { font: 800 16px/1 var(--f-display); color: #FFB81C; font-variant-numeric: tabular-nums; }
.pas3-sl input { width: 100%; margin: 12px 0 4px; accent-color: #3FB97A; }
.pas3-sl small { font-size: 12.5px; color: #8FB3CC; }
.pas3-ch__set { margin: 0 0 18px; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pas3-ch__set legend { width: 100%; margin: 0 0 10px; padding: 0; font: 600 14.5px/1.3 var(--f-body); color: #fff; }
.pas3-ch__set label { position: relative; cursor: pointer; }
.pas3-ch__set input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pas3-ch__set span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); font: 600 13.5px/1 var(--f-body); color: #DCE8F2; transition: background .2s, border-color .2s, color .2s; }
.pas3-ch__set input:checked + span { background: #3FB97A; border-color: #3FB97A; color: #062014; }
.pas3-ch__set input:focus-visible + span, .pas3-ch__chk input:focus-visible { outline: 2px solid #FFB81C; outline-offset: 2px; }
.pas3-ch__chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: #DCE8F2; cursor: pointer; }
.pas3-ch__chk input { margin-top: 3px; width: 17px; height: 17px; accent-color: #3FB97A; flex: none; }
.pas3-ch__bars { display: grid; gap: 9px; margin: 0 0 18px; padding: 0; list-style: none; }
.pas3-ch__bars li { display: grid; grid-template-columns: 172px minmax(0, 1fr) 84px; grid-template-areas: "n bar v" "n note note"; align-items: center; column-gap: 12px; padding: 7px 10px; border-radius: 12px; transition: background .3s, opacity .3s; }
.pas3-ch__bars span { grid-area: n; font: 600 13.5px/1.25 var(--f-body); color: #fff; }
.pas3-ch__bars i { grid-area: bar; display: block; height: 10px; border-radius: 6px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; }
.pas3-ch__bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); border-radius: 6px; background: linear-gradient(90deg, #00A3D9, #5FD3F3); transition: width .5s cubic-bezier(.2,.7,.1,1); }
.pas3-ch__bars b { grid-area: v; font: 700 14px/1 var(--f-display); text-align: right; color: #fff; font-variant-numeric: tabular-nums; }
.pas3-ch__bars em { grid-area: note; font: 500 11.5px/1.3 var(--f-body); font-style: normal; color: #8FB3CC; min-height: 0; }
.pas3-ch__bars em:empty { display: none; }
.pas3-ch__bars li.is-out { opacity: .42; }
.pas3-ch__bars li.is-out i::after { background: rgba(255,255,255,.3); }
.pas3-ch__bars li.is-pick { background: rgba(63,185,122,.16); box-shadow: inset 0 0 0 1px rgba(63,185,122,.6); }
.pas3-ch__bars li.is-pick i::after { background: linear-gradient(90deg, #3FB97A, #A6E9C3); }
.pas3-ch__pick { padding: 14px 16px; border-radius: 14px; background: rgba(8,34,56,.55); font: 500 15px/1.45 var(--f-body); color: #DCE8F2; }
.pas3-ch__pick b { font: 800 19px/1.2 var(--f-display); color: #FFB81C; }
.pas3-ch__why { margin: 12px 0 0; font-size: 13.5px; line-height: 1.55; color: #A9C4D8; }
.pas3-ch__note { margin: 22px 0 0; font-size: 13px; line-height: 1.6; color: #8FB3CC; max-width: 110ch; }

/* ---------- S3 + Zoho ---------- */
.pas3-zoho__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.pas3-pat { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid #E2E8F0; }
.pas3-pat__k { margin: 0 0 16px; font: 700 18px/1.3 var(--f-display); color: #082238; }
.pas3-chain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0 0 16px; padding: 0; list-style: none; }
.pas3-chain li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px; border-radius: 14px; background: #F3F7F9; text-align: center; font: 600 12.5px/1.3 var(--f-body); color: #1E293B; }
.pas3-chain li + li::before { content: ""; position: absolute; left: -19px; top: 50%; width: 16px; height: 2px; background: repeating-linear-gradient(90deg, #3FB97A 0 4px, transparent 4px 7px); }
.pas3-chain li + li::after { content: ""; position: absolute; left: -6px; top: calc(50% - 4px); border: 5px solid transparent; border-left-color: #3FB97A; border-right: 0; }
.pas3-chain img, .pas3-chain svg { width: 28px; height: 28px; }
.pas3-chain svg { fill: none; stroke: #0A6FA8; stroke-width: 2; stroke-linecap: round; }
.pas3-pat > p:last-child { margin: 0; font-size: 14.5px; line-height: 1.55; color: #475569; }
.pas3-pat a { color: #0A6FA8; font-weight: 600; }

/* ---------- pricing ---------- */
.pas3-price { background: linear-gradient(180deg, #F3F7F9, #fff); }
.pas3-price .crm-vs__wrap { margin-top: 36px; }
.pas3-rates td small { display: block; margin-top: 3px; font-size: 12.5px; color: #64748B; }
.pas3-meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.pas3-meters li { padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid #E2E8F0; font-size: 14px; line-height: 1.5; color: #475569; }
.pas3-meters b { display: block; margin-bottom: 4px; font: 700 15px/1.3 var(--f-display); color: #082238; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .pas3-svc__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pas3-fit__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .pas3-hero .pas3-hero__grid, .pas3-life__grid, .pas3-ch__box { grid-template-columns: minmax(0, 1fr); }
  .pas3-scene { max-width: 560px; width: 100%; margin: 0 auto; }
  .pas3-rule { position: static; }
  .pas3-zoho__grid, .pas3-meters { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .pas3-scene { min-height: 400px; }
  .pas3-stairs { height: 270px; }
  .pas3-stairs li { top: calc(var(--i) * 46px); height: calc(270px - var(--i) * 46px); width: 44%; left: calc(var(--i) * 14%); padding: 10px 9px; }
  .pas3-stairs b { font-size: 11px; }
  .pas3-stairs span { font-size: 13px; }
  .pas3-stairs__cap { top: 276px; }
  .pas3-bucket { left: 0; transform: scale(.78); transform-origin: left bottom; }
  .pas3-tag--count { right: 0; bottom: 70px; }
  .pas3-tag--lock { right: 0; bottom: 18px; }
  .pas3-fit__grid, .pas3-svc__grid { grid-template-columns: minmax(0, 1fr); }
  .pas3-step { grid-template-columns: minmax(0, 1fr) auto; margin-left: calc(var(--i) * 2.5%); padding: 14px; }
  .pas3-step > div { grid-column: 1 / -1; grid-row: 2; }
  .pas3-step__day { grid-column: 1; grid-row: 1; }
  .pas3-ch__in, .pas3-ch__out { padding: 20px 16px; }
  .pas3-ch__bars li { grid-template-columns: minmax(0, 1fr) 76px; grid-template-areas: "n v" "bar bar" "note note"; row-gap: 6px; }
  .pas3-chain { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pas3-chain li { flex-direction: row; text-align: left; }
  .pas3-chain li + li::before { left: 50%; top: -14px; width: 2px; height: 12px; background: repeating-linear-gradient(180deg, #3FB97A 0 4px, transparent 4px 7px); }
  .pas3-chain li + li::after { left: calc(50% - 4px); top: -5px; border: 5px solid transparent; border-top-color: #3FB97A; border-bottom: 0; }
  .pas3-pat { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pas3-stairs li { animation: none; opacity: 1; transform: none; }
  .pas3-scene.is-live .pas3-drop { animation: none; }
  .pas3-drop { display: none; }
  .pas3-steps.is-arm .pas3-step { opacity: 1; transform: none; }
  .pas3-svc__card, .pas3-svc__card::after, .pas3-ch__bars i::after, .pas3-bucket__level { transition: none; }
}
