/* The six-column hierarchy follows the presentation supplied by the user. */
.end-mosaic { background: var(--soft); }
.end-mosaic-container { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.end-mosaic-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
.end-mosaic-heading h2 { max-width: 820px; font-size: clamp(36px, 4.2vw, 60px); line-height: 1.06; letter-spacing: -.045em; }
.end-mosaic-heading h2 span { color: var(--muted); }
.end-mosaic-hint { margin-top: 20px; max-width: 540px; color: var(--muted); font-size: 17px; }
.end-mosaic-brand { flex: 0 0 auto; max-width: 220px; padding-bottom: 5px; font-size: 23px; line-height: 1.2; letter-spacing: -.04em; }
.end-mosaic-brand strong { display: block; color: var(--accent); font-size: 38px; font-weight: 650; }
.end-mosaic-grid { display: grid; grid-template-columns: 1fr 1fr 1.08fr 1.08fr 1fr 1fr; grid-template-rows: repeat(4, 178px); grid-template-areas: 'food events bank bank car car' 'food events bank bank credit credit' 'pay pay bank bank meal meal' 'face face cashback cashback fleet fleet'; gap: 16px; }
.end-mosaic-tile { position: relative; min-width: 0; overflow: hidden; border-radius: 24px; padding: 22px; background: var(--paper); isolation: isolate; --mosaic-focus: var(--accent); --mosaic-hover: rgb(0 0 0 / .035); }
.end-mosaic-copy { position: relative; z-index: 1; min-width: 0; }
.end-mosaic-copy h3 { font-size: 22px; line-height: 1.12; letter-spacing: -.035em; font-weight: 600; overflow-wrap: normal; }
.end-mosaic-copy p { margin-top: 9px; color: var(--muted); font-size: 16px; line-height: 1.35; letter-spacing: -.015em; }
.end-mosaic-open { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; transition: background-color 150ms ease-out; }
.end-mosaic-open:focus-visible { outline: 3px solid var(--mosaic-focus); outline-offset: -6px; }
.end-mosaic-open:active { background: var(--mosaic-hover); transition-duration: 60ms; }
.end-mosaic-plus { position: absolute; right: 15px; bottom: 15px; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; color: var(--accent); background: var(--soft); }
.end-mosaic-plus svg { width: 18px; height: 18px; stroke-width: 1.8; }
.end-mosaic-bank { grid-area: bank; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 27px 24px 22px; }
.end-mosaic-bank h3 { max-width: 330px; font-size: 27px; }
.end-mosaic-bank p { font-size: 18px; }
.end-mosaic-bank-image { flex: 1; min-height: 0; width: 100%; max-width: 300px; height: 0; margin-top: 20px; object-fit: contain; }
.end-mosaic-food { grid-area: food; display: flex; flex-direction: column; }
.end-mosaic-food-image { flex: 1; min-height: 0; width: calc(100% + 44px); max-width: none; height: 0; margin: 16px -22px 40px; object-fit: cover; object-position: center; }
.end-mosaic-caption { position: absolute; left: 22px; bottom: 20px; font-size: 13px; color: var(--muted); }
.end-mosaic-events { grid-area: events; background: var(--brand-soft); color: var(--brand-deep); }
.end-mosaic-events .end-mosaic-copy p { color: var(--accent-hover); }
.end-mosaic-events-image { position: absolute; bottom: 66px; left: -30px; width: calc(100% + 60px); max-width: none; height: auto; mix-blend-mode: multiply; }
.end-mosaic-compact { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px 32px; }
.end-mosaic-compact .end-mosaic-copy { flex: 1; }
.end-mosaic-symbol { flex: 0 0 auto; width: 64px; height: 64px; color: var(--accent); stroke-width: 1.25; }
.end-mosaic-car { grid-area: car; background: var(--brand-soft); }
.end-mosaic-car .end-mosaic-copy p, .end-mosaic-face .end-mosaic-copy p { color: var(--accent-hover); }
.end-mosaic-credit { grid-area: credit; background: var(--dark); color: white; --mosaic-focus: white; --mosaic-hover: rgb(255 255 255 / .07); }
.end-mosaic-credit .end-mosaic-copy { flex: 0 1 48%; }
.end-mosaic-credit .end-mosaic-copy p { color: var(--dark-muted); }
.end-mosaic-credit-image { position: absolute; width: 235px; max-width: none; right: -6px; top: 13px; mix-blend-mode: lighten; }
.end-mosaic-credit .end-mosaic-plus { color: white; background: var(--dark-surface); }
.end-mosaic-pay { grid-area: pay; background: var(--brand-deep); color: white; --mosaic-focus: white; --mosaic-hover: rgb(255 255 255 / .07); }
.end-mosaic-pay .end-mosaic-copy p { color: var(--brand-soft); }
.end-mosaic-pay .end-mosaic-symbol { color: var(--brand-soft); }
.end-mosaic-face { grid-area: face; background: var(--brand-soft-strong); }
.end-mosaic-meal { grid-area: meal; background: var(--paper); }
.end-mosaic-fleet { grid-area: fleet; background: var(--paper); }
.end-mosaic-cashback { grid-area: cashback; justify-content: flex-start; background: var(--accent); color: white; --mosaic-focus: white; --mosaic-hover: rgb(255 255 255 / .07); }
.end-mosaic-cashback .end-mosaic-copy p { color: white; }
.end-mosaic-cashback .end-mosaic-symbol { color: white; width: 52px; height: 52px; }
@media (hover: hover) and (pointer: fine) { .end-mosaic-open:hover { background: var(--mosaic-hover); } }
@media (max-width: 1100px) and (min-width: 901px) {
  .end-mosaic-container { width: calc(100% - 64px); }
  .end-mosaic-tile { padding: 18px; }
  .end-mosaic-copy h3 { font-size: 20px; }
  .end-mosaic-copy p { font-size: 15px; }
  .end-mosaic-symbol { width: 48px; height: 48px; }
  .end-mosaic-credit-image { width: 205px; right: -20px; top: 24px; }
  .end-mosaic-bank h3 { font-size: 25px; }
}
@media (max-width: 900px) {
  .end-mosaic-container { width: min(680px, calc(100% - 48px)); }
  .end-mosaic-heading { align-items: start; flex-direction: column; gap: 24px; margin-bottom: 32px; }
  .end-mosaic-heading h2 { font-size: clamp(34px, 6vw, 52px); }
  .end-mosaic-brand { font-size: 17px; }
  .end-mosaic-brand strong { display: inline; font-size: inherit; }
  .end-mosaic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 510px 340px repeat(3, minmax(200px, auto)) minmax(170px, auto); grid-template-areas: 'bank bank' 'food events' 'car credit' 'pay face' 'meal fleet' 'cashback cashback'; gap: 14px; }
  .end-mosaic-bank { padding: 24px 24px 18px; }
  .end-mosaic-bank h3 { max-width: none; }
  .end-mosaic-bank-image { max-width: 285px; margin-top: 18px; }

  .end-mosaic-events-image { width: calc(100% + 40px); left: -20px; bottom: 48px; }
  .end-mosaic-compact { align-items: flex-start; flex-direction: column; gap: 20px; padding: 22px; }
  .end-mosaic-compact .end-mosaic-copy { flex: none; }
  .end-mosaic-symbol { width: 54px; height: 54px; }
  .end-mosaic-credit .end-mosaic-copy { max-width: 100%; }
  .end-mosaic-credit-image { position: relative; width: calc(100% + 36px); right: auto; top: auto; margin: -10px -18px -10px; }
  .end-mosaic-cashback { flex-direction: row; align-items: center; gap: 22px; padding-right: 48px; }
  .end-mosaic-cashback .end-mosaic-copy { flex: 1; }
}
@media (max-width: 480px) {
  .end-mosaic-container { width: calc(100% - 40px); }
  .end-mosaic-grid { gap: 12px; grid-template-rows: 460px 300px repeat(3, minmax(205px, auto)) minmax(170px, auto); }
  .end-mosaic-tile { border-radius: 20px; padding: 18px; }
  .end-mosaic-copy h3 { font-size: 20px; }
  .end-mosaic-copy p { font-size: 15px; }
  .end-mosaic-food-image { width: calc(100% + 36px); margin-inline: -18px; }
  .end-mosaic-bank h3 { max-width: 260px; font-size: 25px; }
  .end-mosaic-bank p { font-size: 17px; }
  .end-mosaic-bank-image { max-width: 255px; }
  .end-mosaic-caption { display: none; }
  .end-mosaic-symbol { width: 47px; height: 47px; }
  .end-mosaic-plus { right: 12px; bottom: 12px; width: 28px; height: 28px; }
  .end-mosaic-cashback { gap: 16px; padding-right: 42px; }
  .end-mosaic-cashback .end-mosaic-symbol { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .end-mosaic-open { transition: none; } }
@media (prefers-contrast: more) { .end-mosaic-tile { border: 1px solid currentColor; } }
