/* platforms: one sideways-scrolling row of separate cards in the page's card style, each on its own slice of a streaked
   brand-colour material (strongest at the top where the name sits, then a pale tint behind the text). Instagram and
   YouTube get the wide cards, their offers in two columns. The row scrolls across the full screen width, but its resting
   positions line up with the page's text column; on desktop the parts in the side margins fade out. The name pill links
   to the platform's page. */
/* --bleed-l / --bleed-r: screen edge to the text column (1200px container, 24px side padding); platform-strip.js sets the
   exact values, since 100vw also counts a classic scrollbar */
.strip { --bleed-l:max(24px, calc(50vw - 576px)); --bleed-r:var(--bleed-l); display:flex; gap:18px;
  margin:38px calc(-1 * var(--bleed-r)) 0 calc(-1 * var(--bleed-l)); padding:6px var(--bleed-r) 30px var(--bleed-l);
  overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding:0 var(--bleed-r) 0 var(--bleed-l);
  overscroll-behavior-x:contain; scrollbar-width:none; }
.strip::-webkit-scrollbar { display:none; }
.strip__col { --x:0%; flex:0 0 300px; scroll-snap-align:start; padding:22px 24px 24px;
  background:url(platform-strip-band.jpg) var(--x) 0 / 1200px 470px no-repeat var(--white); border:1px solid var(--line); border-radius:var(--radius-lg);
  transition:transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.strip__col--wide { flex-basis:520px; }
.strip__col:nth-child(2) { --x:100%; } .strip__col:nth-child(3) { --x:20%; } .strip__col:nth-child(4) { --x:55%; } .strip__col:nth-child(5) { --x:90%; }
.strip__col:hover { transform:translateY(-4px); border-color:var(--line-2); box-shadow:var(--shadow-card); }
.strip__col:has(.strip__head:focus-visible) { outline:2px solid var(--blue); outline-offset:3px; }
.strip__col--wide .strip__offers { display:grid; grid-template-columns:1fr 1fr; gap:16px 32px; }
.strip__col--wide .strip__offers li + li { margin-top:0; }
/* the arrows sit at the right, level with the heading's last line (they take no height of their own); the cards start
   44px under the heading, like the other sections' content */
.strip-nav { display:flex; gap:8px; width:max-content; margin:-42px 0 0 auto; }
.strip-nav button { display:grid; place-items:center; width:42px; height:42px; padding:0; border-radius:50%; cursor:pointer;
  color:var(--ink); background:var(--white); border:1px solid var(--line-2); transition:color .2s, border-color .2s, opacity .2s; }
.strip-nav button:hover:not(:disabled) { color:var(--blue); border-color:var(--blue); }
.strip-nav button:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.strip-nav button:disabled { opacity:.35; cursor:default; }
@media (max-width:999px), (hover:none) { .strip-nav { display:none; } .strip { margin-top:36px; } }
/* desktop with a mouse: two pages that each fill the text column exactly (percentages here are of the column, because
   the row's side padding equals its bleed). Instagram + YouTube first, then TikTok + X + Facebook. Everything inside the
   column is fully visible; outside it the row fades to nothing over the side margin, at most 200px. */
@media (min-width:1000px) and (hover:hover){
  .strip { --fade-l:min(var(--bleed-l), 200px); --fade-r:min(var(--bleed-r), 200px);
    --fade:linear-gradient(to right, transparent calc(var(--bleed-l) - var(--fade-l)), #000 var(--bleed-l),
      #000 calc(100% - var(--bleed-r)), transparent calc(100% - var(--bleed-r) + var(--fade-r)));
    -webkit-mask-image:var(--fade); mask-image:var(--fade); }
  .strip__col { flex-basis:calc((100% - 36px) / 3); }
  .strip__col--wide { flex-basis:calc((100% - 18px) / 2); }
}
@media (max-width:640px){
  .strip { gap:12px; }
  .strip__col, .strip__col--wide { flex-basis:min(84%, 320px); padding:22px 22px 24px; border-radius:22px; }
  .strip__col--wide .strip__offers { display:block; }
  .strip__col--wide .strip__offers li + li { margin-top:14px; }
}
@media (hover:none){ .strip__col:hover { transform:none; box-shadow:none; } }
.strip__col { position:relative; display:flex; flex-direction:column; min-width:0; }
.strip__name { align-self:flex-start; margin:0; font-size:.98rem; font-weight:600; letter-spacing:-.01em; white-space:nowrap; }
/* the name pill is the link; its ::after stretches over the whole column, so the pill must stay unpositioned */
.strip__head { display:inline-flex; align-items:center; gap:8px; padding:4px 12px 4px 4px; border-radius:999px; color:var(--ink);
  background:rgba(255,255,255,.86); border:1px solid rgba(255,255,255,.95); box-shadow:0 8px 18px -12px rgba(15,28,90,.45);
  transition:background .3s var(--ease-soft), color .2s; }
.strip__head::after { content:""; position:absolute; inset:0; }
.strip__head .plogo { flex:none; width:28px; height:28px; border-radius:50%; }
.strip__head .plogo svg { width:15px; height:15px; }
.strip__arrow { margin-left:-1px; color:var(--blue); font-weight:500; transition:transform .35s var(--ease); }
.strip__col:hover .strip__head, .strip__head:focus-visible { background:var(--white); color:var(--blue); }
.strip__col:hover .strip__arrow, .strip__head:focus-visible .strip__arrow { transform:translateX(3px); }
.strip__head:focus-visible { outline:none; }
.strip__offers { flex:1; margin:34px 0 0; padding:0; list-style:none; }
.strip__offers li { display:flex; flex-direction:column; gap:2px; }
.strip__offers li + li { margin-top:14px; }
.strip__offers b { font-size:.95rem; font-weight:600; color:var(--ink); }
.strip__offers span { font-size:.86rem; line-height:1.5; color:var(--muted); }
@media (prefers-reduced-motion: reduce){ .strip__col, .strip__arrow { transition:none; } .strip__col:hover { transform:none; } }
