/* Ingestion + Play sections (beauty variants). App-icon tiles are 22px squircles; frames 20px. */

/* ---------------------------------------------------------------- ingestion */
.sec-ingest { padding: clamp(5rem, 9vw, 8rem) 0; overflow: hidden; }
.ig-h { margin-bottom: clamp(2.4rem, 5vw, 3.6rem); max-width: 18ch; }
.ig-stage { position: relative; display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: clamp(3rem, 9vw, 9rem); align-items: center; }
.ig-groups { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2.6rem; }
.ig-grp { position: relative; padding: 2rem 1.4rem 1.4rem; border-radius: 28px; border: 1px solid var(--line-2); background: rgb(255 255 255 / .015); }
.ig-label { position: absolute; top: 0; left: 50%; transform: translate(-50%, -55%); padding: .45rem 1.1rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 14.5px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; box-shadow: 0 10px 24px -14px rgb(0 0 0 / .8); }
.ig-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.ig-tile, .ig-more { position: relative; aspect-ratio: 1; border-radius: 22px; opacity: 0; transform: translateY(14px) scale(.96); transition: transform 500ms var(--ease), opacity 700ms var(--ease); transition-delay: calc(var(--i) * 70ms); }
.in .ig-tile, .in .ig-more { opacity: 1; transform: none; }
.ig-tile { display: grid; place-items: center; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 82%, #fff 18%), var(--c) 55%, color-mix(in srgb, var(--c) 80%, #000 20%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 18px 30px -18px color-mix(in srgb, var(--c) 70%, #000); }
.ig-tile:hover { transform: translateY(-4px) scale(1.03); }
.ig-tile em { position: absolute; bottom: -1.6rem; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; opacity: 0; transition: opacity 250ms var(--ease); }
.ig-tile:hover em { opacity: 1; }
.ig-tile .ig-logo, .ig-tile .ig-ph { width: 46%; height: 46%; font-size: 2.4rem; }
.ig-more { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 6%; padding: 13%; background: var(--surface-2); border: 1px solid var(--line-2); }
.ig-more > span { display: grid; place-items: center; min-height: 0; border-radius: 6px; background: rgb(255 255 255 / .06); }
.ig-more .ig-logo, .ig-more .ig-ph { width: 62%; height: 62%; font-size: 1rem; }
.ig-logo { display: block; background: var(--c); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; }
.ig-ph { display: grid; place-items: center; color: var(--c); line-height: 1; }
.ig-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ig-wires .w-base { fill: none; stroke: rgb(255 255 255 / .12); stroke-width: 1.5; }
.ig-wires .w-flow { fill: none; stroke: url(#ig-g); stroke-width: 1.6; stroke-dasharray: 2 10; stroke-linecap: round; animation: ig-flow 1.4s linear infinite; }
.ig-wires .w-pel.d { fill: var(--d); } .ig-wires .w-pel.s { fill: var(--s); }
@keyframes ig-flow { to { stroke-dashoffset: -12; } }

.ig-laptop { position: relative; z-index: 1; display: block; width: 100%; border: 0; padding: 0; background: none; cursor: pointer; transition: transform 600ms var(--ease); }
.ig-laptop:hover { transform: translateY(-4px); }
.ig-screen { position: relative; display: block; padding: 2.2% 2.2% 2.6%; border-radius: 22px 22px 6px 6px; background: linear-gradient(#202329, #15171b); border: 1px solid rgb(255 255 255 / .1); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 40px 80px -40px rgb(0 0 0 / .9); }
.ig-cam { position: absolute; top: .9%; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: #2a2e35; transform: translateX(-50%); }
.ig-app { position: relative; display: block; aspect-ratio: 1280 / 780; overflow: hidden; border-radius: 6px; background: #f5f6f8; }
.ig-app-in { position: absolute; left: 0; top: 0; width: 1280px; height: 780px; transform-origin: 0 0; }
.ig-base { position: relative; display: block; height: 18px; margin: 0 -6%; border-radius: 2px 2px 16px 16px; background: linear-gradient(#3a3e46, #24272d 55%, #17191d); box-shadow: 0 30px 40px -20px rgb(0 0 0 / .8); }
.ig-base i { position: absolute; left: 50%; top: 0; width: 16%; height: 7px; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: #1a1c20; }
.ig-cta { position: absolute; left: 50%; bottom: -3.2rem; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .4rem; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; transition: color 250ms var(--ease); }
.ig-laptop:hover .ig-cta { color: var(--d); }

/* ---------------------------------------------------------------- play */
.sec-play { padding: clamp(5rem, 9vw, 8rem) 0 clamp(4rem, 8vw, 7rem); }
.play-h { text-align: center; font-size: clamp(2.6rem, 6vw, 5.4rem); margin: 0 auto clamp(2.4rem, 5vw, 3.6rem); }
.play-wrap { max-width: 1480px; margin: 0 auto; padding: 0 clamp(.75rem, 2vw, 2rem); }
.play-frame { position: relative; height: min(820px, 88dvh); border-radius: 20px; overflow: hidden; border: 1px solid rgb(255 255 255 / .22); background: #f5f6f8; box-shadow: 0 0 0 8px rgb(255 255 255 / .05), 0 0 120px -30px rgb(var(--d-rgb, 242 118 63) / .28), 0 60px 120px -50px rgb(0 0 0 / .95); }
.play-app { position: absolute; inset: 0; }
.play-frame:not(.live) .play-app { pointer-events: none; }
.play-overlay { position: absolute; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 28px; border: 0; background: linear-gradient(transparent 55%, rgb(18 20 26 / .28)); cursor: pointer; transition: opacity 400ms var(--ease); }
.play-overlay span { display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.3rem; border-radius: 999px; background: rgb(24 27 33 / .85); border: 1px solid var(--line-2); color: var(--ink); font-size: 15px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 40px -16px rgb(0 0 0 / .8); transition: transform 300ms var(--ease); }
.play-overlay span .ph-light { font-size: 19px; color: var(--d); }
.play-overlay:hover span { transform: translateY(-3px); }
.play-frame.live .play-overlay { opacity: 0; pointer-events: none; }
.play-expand { position: absolute; z-index: 71; top: 10px; right: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgb(17 20 26 / .14); background: #fff; color: #15171b; font-size: 17px; cursor: pointer; opacity: .85; transition: opacity 200ms var(--ease); }
.play-expand:hover { opacity: 1; }
.play-frame.live .play-expand { top: 11px; right: 10px; opacity: .5; }
.play-frame:fullscreen { height: 100dvh; border-radius: 0; border: 0; }
.play-frame:fullscreen .play-expand { opacity: .7; }
/* leave room for the expand button in the app header and drawer */
.play-frame .bfa-top { padding-right: 52px; }
.play-frame .bfa-drawer .dh { padding-right: 54px; }
.play-frame .bfa-toasts { top: 70px; }

@media (max-width: 960px) {
  .ig-stage { grid-template-columns: 1fr; gap: 3rem; }
  .ig-wires { display: none; }
  .ig-groups { max-width: 520px; }
  .ig-cta { position: static; transform: none; justify-content: center; margin-top: 1.4rem; }
  .play-frame { height: 82dvh; }
}
@media (prefers-reduced-motion: reduce) { .ig-tile, .ig-more { opacity: 1; transform: none; } }
